@ebay/muse-lib-react 1.3.5 → 2.0.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.
- package/MUSE_README.md +370 -0
- package/build/MUSE_README.md +252 -503
- package/build/dev/assets/_muse-virtual-entry-jqLrDl9I.css +1 -0
- package/build/dev/deps-manifest.json +6 -0
- package/build/dev/index.html +34 -0
- package/build/dev/info.json +15 -0
- package/build/dev/lib-manifest.json +1861 -2547
- package/build/dev/main.js +320 -75585
- package/build/dev/main.js.map +1 -1
- package/build/dist/assets/_muse-virtual-entry-jqLrDl9I.css +1 -0
- package/build/dist/deps-manifest.json +6 -0
- package/build/dist/index.html +34 -0
- package/build/dist/info.json +15 -0
- package/build/dist/lib-manifest.json +1794 -2727
- package/build/dist/main.js +111 -3
- package/build/dist/main.js.map +1 -1
- package/build/test/assets/_muse-virtual-entry-jqLrDl9I.css +1 -0
- package/build/test/deps-manifest.json +6 -0
- package/build/test/index.html +34 -0
- package/build/test/info.json +15 -0
- package/build/test/lib-manifest.json +1801 -2718
- package/build/test/main.js +111 -3
- package/build/test/main.js.map +1 -1
- package/package.json +41 -43
- package/src/a.json +3 -0
- package/src/common/configStore.js +9 -8
- package/src/features/common/HelloWorld.jsx +14 -0
- package/src/features/common/Test1.jsx +12 -0
- package/src/features/common/index.js +1 -0
- package/src/features/common/route.js +7 -0
- package/src/features/sub-app/{LoadingSkeleton.js → LoadingSkeleton.jsx} +1 -2
- package/build/dev/asset-manifest.json +0 -11
- package/build/dev/muse.d.ts +0 -170
- package/build/dev/static/media/subAppLoading2.bf08007b83457287ade1cedb71bc70f7.svg +0 -7
- package/build/dist/asset-manifest.json +0 -11
- package/build/dist/main.js.LICENSE.txt +0 -125
- package/build/dist/muse.d.ts +0 -170
- package/build/dist/static/media/subAppLoading2.bf08007b83457287ade1cedb71bc70f7.svg +0 -7
- package/build/test/asset-manifest.json +0 -11
- package/build/test/main.js.LICENSE.txt +0 -125
- package/build/test/muse.d.ts +0 -170
- package/build/test/static/media/subAppLoading2.bf08007b83457287ade1cedb71bc70f7.svg +0 -7
- /package/build/dev/{static/media/logo.b23b880b0dac2229042c.png → assets/logo-V3RbDVED.png} +0 -0
- /package/build/dist/{static/media/logo.b23b880b0dac2229042c.png → assets/logo-V3RbDVED.png} +0 -0
- /package/build/test/{static/media/logo.b23b880b0dac2229042c.png → assets/logo-V3RbDVED.png} +0 -0
- /package/src/{Root.js → Root.jsx} +0 -0
- /package/src/common/{routeConfig.js → routeConfig.jsx} +0 -0
- /package/src/features/common/{ErrorBoundary.js → ErrorBoundary.jsx} +0 -0
- /package/src/features/common/{Nodes.js → Nodes.jsx} +0 -0
- /package/src/features/common/{PageNotFound.js → PageNotFound.jsx} +0 -0
- /package/src/features/common/{useExtPoint.js → useExtPoint.jsx} +0 -0
- /package/src/features/home/{App.js → App.jsx} +0 -0
- /package/src/features/home/{Homepage.js → Homepage.jsx} +0 -0
- /package/src/features/sub-app/{C2SProxyFailed.js → C2SProxyFailed.jsx} +0 -0
- /package/src/features/sub-app/{FixedSubAppContainer.js → FixedSubAppContainer.jsx} +0 -0
- /package/src/features/sub-app/{SubAppContainer.js → SubAppContainer.jsx} +0 -0
- /package/src/features/sub-app/{route.js → route.jsx} +0 -0
- /package/src/{index.js → index.jsx} +0 -0
package/build/dist/main.js
CHANGED
|
@@ -1,3 +1,111 @@
|
|
|
1
|
-
/*! For license information please see main.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={636:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("css-loader@6.7.3/dist/runtime/sourceMaps.js"),a=n.n(r),o=n("css-loader@6.7.3/dist/runtime/api.js"),i=n.n(o)()(a());i.push([e.id,"body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n.home-app.muse-app .muse-app_plugin-root-placeholder {\n position: absolute;\n top: 0;\n height: 0;\n width: 0;\n left: -8000px;\n}\n.home-homepage {\n text-align: center;\n min-width: 600px;\n}\n.home-homepage .app {\n text-align: center;\n}\n.home-homepage .app-logo {\n height: 80px;\n}\n.home-homepage .app-header {\n padding: 40px 20px 20px 20px;\n}\n.home-homepage h3 {\n font-size: 20px;\n font-weight: bold;\n}\n.home-homepage .app-title {\n font-size: 26px;\n margin-top: 10px;\n}\n.home-homepage .app-intro {\n font-size: 16px;\n}\n.home-homepage ul,\n.home-homepage li {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.home-homepage ul {\n margin-top: 20px;\n}\n.home-homepage li {\n margin-top: 10px;\n}\n.home-homepage a {\n color: #0288d1;\n text-decoration: none;\n}\n.home-homepage a:hover {\n text-decoration: underline;\n}\n.home-homepage p.memo {\n color: #999;\n line-height: 150%;\n font-style: italic;\n font-size: 14px;\n margin: 20px auto;\n}\n.common-page-not-found {\n color: red;\n padding: 15px;\n}\n.common-error-boundary {\n color: red;\n padding: 20px;\n}\n.muse-react_sub-app-sub-app-container {\n height: 100vh;\n position: relative;\n}\n.muse-react_sub-app-sub-app-container .sub-app-sub-app-failed {\n color: red;\n padding: 16px;\n}\n.muse-react_sub-app-sub-app-container .sub-app-iframe-wrapper {\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.muse-react_sub-app-sub-app-container iframe {\n margin: 0;\n width: 100%;\n height: 100%;\n border: none;\n}\n.muse-layout_home-main-layout-page-container > .sub-app-sub-app-container {\n margin: -30px;\n width: calc(100% + 60px);\n height: calc(100vh - 50px);\n}\n.muse-react_sub-app-fixed-sub-app-container iframe {\n width: 100%;\n height: 100%;\n border: none;\n margin: 0;\n}\n.muse-react_sub-app-fixed-sub-app-container > div {\n height: calc(100vh - 200px);\n}\n.sub-app-loading-skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1200;\n background: #fff;\n display: grid;\n place-items: center;\n}\n.sub-app-loading-skeleton svg {\n width: 80px;\n height: 80px;\n}\n.sub-app-loading-skeleton label {\n color: #777;\n display: inline-block;\n margin-top: 10px;\n}\n.sub-app-c-2-s-proxy-failed {\n position: absolute;\n color: orange;\n line-height: 150%;\n margin: auto;\n left: 50%;\n margin-left: -300px;\n top: 40%;\n width: 600px;\n padding: 20px;\n border-radius: 4px;\n border: 1px solid orange;\n}\n.sub-app-c-2-s-proxy-failed h3 {\n color: orange;\n}\n","",{version:3,sources:["webpack://./src/styles/global.less","webpack://./src/styles/index.less","webpack://./src/features/home/App.less","webpack://./src/features/home/Homepage.less","webpack://./src/features/common/PageNotFound.less","webpack://./src/features/common/ErrorBoundary.less","webpack://./src/features/sub-app/SubAppContainer.less","webpack://./src/features/sub-app/FixedSubAppContainer.less","webpack://./src/features/sub-app/LoadingSkeleton.less","webpack://./src/features/sub-app/C2SProxyFailed.less"],names:[],mappings:"AAIA;EACE,SAAA;EACA,UAAA;EACA,uBAAA;ACHF;ACFA;EAEI,kBAAA;EACA,MAAA;EACA,SAAA;EACA,QAAA;EACA,aAAA;ADGJ;AETA;EACE,kBAAA;EACA,gBAAA;AFWF;AEbA;EAKI,kBAAA;AFWJ;AEhBA;EASI,YAAA;AFUJ;AEnBA;EAaI,4BAAA;AFSJ;AEtBA;EAiBI,eAAA;EACA,iBAAA;AFQJ;AE1BA;EAsBI,eAAA;EACA,gBAAA;AFOJ;AE9BA;EA2BI,eAAA;AFMJ;AEjCA;;EAgCI,gBAAA;EACA,SAAA;EACA,UAAA;AFKJ;AEvCA;EAsCI,gBAAA;AFIJ;AE1CA;EAyCI,gBAAA;AFIJ;AE7CA;EA6CI,cAAA;EACA,qBAAA;AFGJ;AEFI;EACE,0BAAA;AFIN;AEpDA;EAqDI,WAAA;EACA,iBAAA;EAEA,kBAAA;EACA,eAAA;EACA,iBAAA;AFCJ;AG3DA;EACE,UAAA;EACA,aAAA;AH6DF;AI/DA;EACE,UAAA;EACA,aAAA;AJiEF;AKnEA;EACE,aAAA;EACA,kBAAA;ALqEF;AKvEA;EAII,UAAA;EACA,aAAA;ALsEJ;AK3EA;EAQI,kBAAA;EACA,MAAA;EACA,YAAA;EACA,WAAA;ALsEJ;AKjFA;EAeI,SAAA;EACA,WAAA;EACA,YAAA;EACA,YAAA;ALqEJ;AKjEA;EACE,aAAA;EACA,wBAAA;EACA,0BAAA;ALmEF;AM9FA;EAEI,WAAA;EACA,YAAA;EACA,YAAA;EACA,SAAA;AN+FJ;AMpGA;EASI,2BAAA;AN8FJ;AOrGA;EACE,kBAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,gBAAA;EACA,aAAA;EACA,mBAAA;APuGF;AO9GA;EASI,WAAA;EACA,YAAA;APwGJ;AOlHA;EAaI,WAAA;EACA,qBAAA;EACA,gBAAA;APwGJ;AQvHA;EACE,kBAAA;EACA,aAAA;EACA,iBAAA;EACA,YAAA;EACA,SAAA;EACA,mBAAA;EACA,QAAA;EACA,YAAA;EACA,aAAA;EACA,kBAAA;EACA,wBAAA;ARyHF;AQpIA;EAcI,aAAA;ARyHJ",sourcesContent:["@import './mixins';\n\n// Here you put all global css rules.\n\nbody {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n","body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n.home-app.muse-app .muse-app_plugin-root-placeholder {\n position: absolute;\n top: 0;\n height: 0;\n width: 0;\n left: -8000px;\n}\n.home-homepage {\n text-align: center;\n min-width: 600px;\n}\n.home-homepage .app {\n text-align: center;\n}\n.home-homepage .app-logo {\n height: 80px;\n}\n.home-homepage .app-header {\n padding: 40px 20px 20px 20px;\n}\n.home-homepage h3 {\n font-size: 20px;\n font-weight: bold;\n}\n.home-homepage .app-title {\n font-size: 26px;\n margin-top: 10px;\n}\n.home-homepage .app-intro {\n font-size: 16px;\n}\n.home-homepage ul,\n.home-homepage li {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.home-homepage ul {\n margin-top: 20px;\n}\n.home-homepage li {\n margin-top: 10px;\n}\n.home-homepage a {\n color: #0288d1;\n text-decoration: none;\n}\n.home-homepage a:hover {\n text-decoration: underline;\n}\n.home-homepage p.memo {\n color: #999;\n line-height: 150%;\n font-style: italic;\n font-size: 14px;\n margin: 20px auto;\n}\n.common-page-not-found {\n color: red;\n padding: 15px;\n}\n.common-error-boundary {\n color: red;\n padding: 20px;\n}\n.muse-react_sub-app-sub-app-container {\n height: 100vh;\n position: relative;\n}\n.muse-react_sub-app-sub-app-container .sub-app-sub-app-failed {\n color: red;\n padding: 16px;\n}\n.muse-react_sub-app-sub-app-container .sub-app-iframe-wrapper {\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.muse-react_sub-app-sub-app-container iframe {\n margin: 0;\n width: 100%;\n height: 100%;\n border: none;\n}\n.muse-layout_home-main-layout-page-container > .sub-app-sub-app-container {\n margin: -30px;\n width: calc(100% + 60px);\n height: calc(100vh - 50px);\n}\n.muse-react_sub-app-fixed-sub-app-container iframe {\n width: 100%;\n height: 100%;\n border: none;\n margin: 0;\n}\n.muse-react_sub-app-fixed-sub-app-container > div {\n height: calc(100vh - 200px);\n}\n.sub-app-loading-skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1200;\n background: #fff;\n display: grid;\n place-items: center;\n}\n.sub-app-loading-skeleton svg {\n width: 80px;\n height: 80px;\n}\n.sub-app-loading-skeleton label {\n color: #777;\n display: inline-block;\n margin-top: 10px;\n}\n.sub-app-c-2-s-proxy-failed {\n position: absolute;\n color: orange;\n line-height: 150%;\n margin: auto;\n left: 50%;\n margin-left: -300px;\n top: 40%;\n width: 600px;\n padding: 20px;\n border-radius: 4px;\n border: 1px solid orange;\n}\n.sub-app-c-2-s-proxy-failed h3 {\n color: orange;\n}\n","@import '../../styles/mixins';\n\n.home-app.muse-app {\n .muse-app_plugin-root-placeholder {\n position: absolute;\n top: 0;\n height: 0;\n width: 0;\n left: -8000px;\n }\n}\n","@import '../../styles/mixins';\n\n.home-homepage {\n text-align: center;\n min-width: 600px;\n\n .app {\n text-align: center;\n }\n\n .app-logo {\n height: 80px;\n }\n\n .app-header {\n padding: 40px 20px 20px 20px;\n }\n\n h3 { \n font-size: 20px;\n font-weight: bold;\n }\n\n .app-title {\n font-size: 26px;\n margin-top: 10px;\n }\n\n .app-intro {\n font-size: 16px;\n }\n\n ul,\n li {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ul {\n margin-top: 20px;\n }\n li {\n margin-top: 10px;\n }\n\n a {\n color: #0288d1;\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n }\n\n p.memo {\n color: #999;\n line-height: 150%;\n\n font-style: italic;\n font-size: 14px;\n margin: 20px auto;\n }\n}\n","@import '../../styles/mixins';\n\n.common-page-not-found {\n color: red;\n padding: 15px;\n}\n","@import '../../styles/mixins';\n\n.common-error-boundary {\n color: red;\n padding: 20px;\n}\n","@import '../../styles/mixins';\n\n.muse-react_sub-app-sub-app-container {\n height: 100vh;\n position: relative;\n .sub-app-sub-app-failed {\n color: red;\n padding: 16px;\n }\n .sub-app-iframe-wrapper {\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n }\n\n iframe {\n margin: 0;\n width: 100%;\n height: 100%;\n border: none;\n }\n}\n\n.muse-layout_home-main-layout-page-container > .sub-app-sub-app-container {\n margin: -30px;\n width: ~'calc(100% + 60px)';\n height: ~'calc(100vh - 50px)';\n}\n",".muse-react_sub-app-fixed-sub-app-container {\n iframe {\n width: 100%;\n height: 100%;\n border: none;\n margin: 0;\n }\n\n > div {\n height: ~'calc(100vh - 200px)';\n }\n}\n","@import '../../styles/mixins';\n\n.sub-app-loading-skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1200;\n background: #fff;\n display: grid;\n place-items: center;\n svg {\n width: 80px;\n height: 80px;\n }\n label {\n color: #777;\n display: inline-block;\n margin-top: 10px;\n }\n}\n","@import '../../styles/mixins';\n\n.sub-app-c-2-s-proxy-failed {\n position: absolute;\n color: orange;\n line-height: 150%;\n margin: auto;\n left: 50%;\n margin-left: -300px;\n top: 40%;\n width: 600px;\n padding: 20px;\n border-radius: 4px;\n border: 1px solid orange;\n\n h3 {\n color: orange;\n }\n}\n"],sourceRoot:""}]),i.locals={};const u=i},810:(e,t,n)=>{"use strict";function r(e,t,n,r){var a,o=!1,i=0;function u(){a&&clearTimeout(a)}function s(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var f=this,d=Date.now()-i;function p(){i=Date.now(),n.apply(f,l)}o||(r&&!a&&p(),u(),void 0===r&&d>e?p():!0!==t&&(a=setTimeout(r?function(){a=void 0}:p,void 0===r?e-d:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),s.cancel=function(){u(),o=!0},s}function a(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}n.r(t),n.d(t,{debounce:()=>a,throttle:()=>r})},948:(e,t,n)=>{},"@babel/runtime@7.20.13/helpers/esm/defineProperty.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("@babel/runtime@7.20.13/helpers/esm/toPropertyKey.js");function a(e,t,n){return(t=(0,r.default)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"@babel/runtime@7.20.13/helpers/esm/extends.js":(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.r(t),n.d(t,{default:()=>r})},"@babel/runtime@7.20.13/helpers/esm/objectSpread2.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("@babel/runtime@7.20.13/helpers/esm/defineProperty.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},"@babel/runtime@7.20.13/helpers/esm/objectWithoutProperties.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("@babel/runtime@7.20.13/helpers/esm/objectWithoutPropertiesLoose.js");function a(e,t){if(null==e)return{};var n,a,o=(0,r.default)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},"@babel/runtime@7.20.13/helpers/esm/objectWithoutPropertiesLoose.js":(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.r(t),n.d(t,{default:()=>r})},"@babel/runtime@7.20.13/helpers/esm/toPrimitive.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("@babel/runtime@7.20.13/helpers/esm/typeof.js");function a(e,t){if("object"!==(0,r.default)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==(0,r.default)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},"@babel/runtime@7.20.13/helpers/esm/toPropertyKey.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("@babel/runtime@7.20.13/helpers/esm/typeof.js"),a=n("@babel/runtime@7.20.13/helpers/esm/toPrimitive.js");function o(e){var t=(0,a.default)(e,"string");return"symbol"===(0,r.default)(t)?t:String(t)}},"@babel/runtime@7.20.13/helpers/esm/typeof.js":(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,{default:()=>r})},"@ebay/muse-lib-react@1.3.5/src/Root.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("@babel/runtime@7.20.13/helpers/esm/objectWithoutProperties.js"),o=n("react@18.2.0/index.js"),i=n("react-redux@8.1.2/es/index.js"),u=n("react-router-dom@6.15.0/dist/index.js"),s=n("lodash@4.17.21/lodash.js"),l=n.n(s),c=n("@ebay/nice-modal-react@1.2.10/lib/esm/index.js"),f=n("js-plugin@1.1.0/plugin.js"),d=n.n(f),p=n("@ebay/muse-lib-react@1.3.5/src/common/store.js"),h=n("@ebay/muse-lib-react@1.3.5/src/common/routeConfig.js"),m=n("@ebay/muse-lib-react@1.3.5/src/common/history.js"),v=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/SubAppContext.js"),y=n("@tanstack/react-query@4.33.0/build/lib/index.mjs"),g=n("@ebay/muse-lib-react@1.3.5/src/utils.js"),b=n("react@18.2.0/jsx-runtime.js");const w=["path","exact","render","component","childRoutes"],x=new y.QueryClient({defaultOptions:{queries:{staleTime:1/0,retry:0,refetchOnWindowFocus:!1}}});function S(e,t){const n=[],o=(e,t)=>{const{path:i,exact:s,render:l,component:c,childRoutes:f}=e,d=(0,a.default)(e,w);let p;if(p=/^\//.test(i)?i:"".concat(t,"/").concat(i),p=p.replace(/\/+/g,"/"),(l||c)&&f){const e=S(f,p);n.push((0,b.jsx)(u.Route,(0,r.default)((0,r.default)({exact:!1,element:l?l():(0,b.jsx)(c,{children:(0,b.jsx)(u.Outlet,{})}),path:p},d),{},{children:e}),p.toString()))}else c||l?n.push((0,b.jsx)(u.Route,(0,r.default)({element:l?l():(0,b.jsx)(c,{}),path:p,exact:!("exact"in e)||s},d),p.toString())):f&&f.forEach(e=>o(e,p))};return e.reduce((e,t)=>(l().isArray(t.path)?t.path.forEach(n=>{e.push((0,r.default)((0,r.default)({},t),{},{path:n}))}):e.push(t),e),[]).forEach(e=>o(e,t)),n}const j={browser:u.createBrowserRouter,hash:u.createHashRouter,memory:u.createMemoryRouter},E=()=>{const[e,t]=(0,o.useState)(null),n=(0,o.useCallback)(e=>{"sub-app-context-change"===e.type&&t(e.data)},[]);(0,o.useEffect)(()=>{var e,t;const r="muse-react_handle-context-change";return null===(e=window.MUSE_GLOBAL)||void 0===e||null===(t=e.msgEngine)||void 0===t||t.addListener(r,n),()=>{var e,t;return null===(e=window.MUSE_GLOBAL)||void 0===e||null===(t=e.msgEngine)||void 0===t?void 0:t.removeListener(r)}},[n]);const a=(e=>(d().invoke("!root.renderChildren").forEach(t=>{if(!l().isFunction(t))throw new Error("root.renderChildren should be a function.");e=t(e)}),e))(S((0,h.default)(),"/")),{routerType:s="browser",basePath:f}=window.MUSE_GLOBAL.appVariables||{},w=j[s]((0,u.createRoutesFromElements)(a)),E=d().invoke("!routerProps")[0]||{};"browser"===s&&(E.navigator=m.default);const _=[{order:10,key:"react-query",provider:y.QueryClientProvider,props:{client:x},renderProvider:null},{order:20,key:"redux-provider",provider:i.Provider,props:{store:p.default.getStore()}},{order:30,key:"muse-sub-app",provider:v.default.Provider,props:{value:e}},{order:40,key:"nice-modal",provider:c.default.Provider},{order:50,key:"react-router",provider:u.RouterProvider,props:(0,r.default)({basename:f,router:w},E)}];return(0,g.extendArray)(_,"providers","root",{providers:_}),_.filter(Boolean).reduceRight((e,t)=>t.provider?(0,b.jsx)(t.provider,(0,r.default)((0,r.default)({},t.props),{},{children:e}),null===e||void 0===e?void 0:e.key):t.renderProvider?t.renderProvider(e):e,(0,b.jsx)(b.Fragment,{}))}},"@ebay/muse-lib-react@1.3.5/src/common/configStore.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("redux@4.2.1/es/redux.js"),a=n("redux-thunk@2.4.2/es/index.js"),o=n("@ebay/muse-lib-react@1.3.5/src/common/rootReducer.js");const i=[a.default];let u=e=>e;const s=function(e){return(0,r.createStore)((0,o.default)(),e,(0,r.compose)((0,r.applyMiddleware)(...i),u))}},"@ebay/muse-lib-react@1.3.5/src/common/history.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,a,o=n("history@5.3.0/index.js");let i;switch((null===(r=window.MUSE_GLOBAL)||void 0===r||null===(a=r.appConfig)||void 0===a?void 0:a.routerType)||"browser"){case"browser":default:i=o.createBrowserHistory;break;case"memory":i=o.createMemoryHistory;break;case"hash":i=o.createHashHistory}const u=i()},"@ebay/muse-lib-react@1.3.5/src/common/rootReducer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n("redux@4.2.1/es/redux.js"),a=n("lodash@4.17.21/lodash.js"),o=n.n(a),i=n("js-plugin@1.1.0/plugin.js"),u=n.n(i),s=n("@ebay/nice-modal-react@1.2.10/lib/esm/index.js"),l=n("@ebay/muse-lib-react@1.3.5/src/features/home/redux/reducer.js"),c=n("@ebay/muse-lib-react@1.3.5/src/features/common/redux/reducer.js"),f=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/reducer.js");const d={modals:s.default.reducer,home:l.default,common:c.default,subApp:f.default},p=()=>(u().getPlugins("reducer").forEach(e=>{const t=o().camelCase("plugin-".concat(e.name));d[t]?console.error("Duplicated reducer key for plugin: ",e.name):d[t]=e.reducer}),u().getPlugins("reducers").forEach(e=>{Object.keys(e.reducers).forEach(t=>{d[t]=e.reducers[t]})}),(0,r.combineReducers)(d))},"@ebay/muse-lib-react@1.3.5/src/common/routeConfig.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=(n("react@18.2.0/index.js"),n("js-plugin@1.1.0/plugin.js")),o=n.n(a),i=n("@ebay/muse-lib-react@1.3.5/src/features/home/index.js"),u=n("@ebay/muse-lib-react@1.3.5/src/features/common/index.js"),s=n("@ebay/muse-lib-react@1.3.5/src/features/home/route.js"),l=n("@ebay/muse-lib-react@1.3.5/src/features/common/route.js"),c=n("lodash@4.17.21/lodash.js"),f=n.n(c),d=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/route.js"),p=n("react@18.2.0/jsx-runtime.js");const h=[s.default,l.default,d.default];function m(e){if(!e.childRoutes||!e.childRoutes.length)return;const t=f().find(e.childRoutes,e=>e.isIndex);if(t){const n=(0,r.default)({},t);n.path="",n.exact=!0,n.autoIndexRoute=!0,e.childRoutes.unshift(n)}e.childRoutes.forEach(m)}const v=()=>{const e=[...h];o().invoke("!route").forEach(t=>{e.push(...f().castArray(t))});const t=window.MUSE_GLOBAL||{};let n=i.Homepage;const a=o().getPlugins("home.homepage");if(1===a.length)n=a[0].home.homepage;else if(a.length>1){const e=f().find(a,{name:t.homepage});n=e?e.home.homepage:()=>(0,p.jsxs)("div",{style:{color:"red",padding:"20px"},children:["Failed to show homepage: multiple homepages found from:"," ",a.map(e=>e.name).join(", "),". You should load only one plugin which defines homepage."]})}e.unshift({path:"",component:n});const s=[{path:"/",component:i.App,childRoutes:[...f().cloneDeep(e),{path:"*",name:"Page not found",component:u.PageNotFound}].filter(e=>e.component||e.render||e.childRoutes&&e.childRoutes.length>0)}];return s.forEach(m),(e=>{const t={},n=[...e],a=[];for(;n.length>0;){const o=n.shift();null!==o&&void 0!==o&&o.id&&(t[o.id]=o),o.childRoutes&&(f().forEachRight([...o.childRoutes],(e,t)=>{f().isArray(null===e||void 0===e?void 0:e.path)&&o.childRoutes.splice(t,1,...e.path.map(e=>(0,r.default)((0,r.default)({},o),{},{path:e})))}),n.push(...o.childRoutes),[...o.childRoutes].forEach(t=>{var n;null!==t&&void 0!==t&&null!==(n=t.path)&&void 0!==n&&n.startsWith("/")?(f().pull(o.childRoutes,t),e.unshift(t)):t.parent&&(a.push(t),f().pull(o.childRoutes,t))}))}a.forEach(e=>{const n=e.parent;t[n]?(t[n].childRoutes||(t[n].childRoutes=[]),t[n].childRoutes.unshift(e)):console.warn("Warning: no parent route found with id ".concat(n,"."),e)})})(s[0].childRoutes),s}},"@ebay/muse-lib-react@1.3.5/src/common/store.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("@ebay/muse-lib-react@1.3.5/src/common/configStore.js");const a={store:null,getStore(){return this.store||(this.store=(0,r.default)()),this.store},getState(){return this.getStore().getState()},dispatch(e){return this.getStore().dispatch(e)},subscribe(e){return this.getStore().subscribe(e)},replaceReducer(e){return this.getStore().replaceReducer(e)}}},"@ebay/muse-lib-react@1.3.5/src/features/common/ErrorBoundary.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react@18.2.0/jsx-runtime.js");class o extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?(0,a.jsx)("div",{className:"common-error-boundary",children:this.props.message||"Something went wrong."}):this.props.children}}},"@ebay/muse-lib-react@1.3.5/src/features/common/Nodes.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=(n("react@18.2.0/index.js"),n("@ebay/muse-lib-react@1.3.5/src/features/common/utils.js")),o=n("react@18.2.0/jsx-runtime.js");function i(e){let{items:t=[],extName:n="items",extBase:i,extArgs:u}=e;(0,a.extendArray)(t,n,i,u);const s=[];return t.filter(Boolean).forEach(e=>{let t;e.render?t=e.render():e.content?t=e.content:e.component&&(t=(0,o.jsx)(e.component,(0,r.default)({},e.props),e.key)),s.push(t)}),s}},"@ebay/muse-lib-react@1.3.5/src/features/common/PageNotFound.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/jsx-runtime.js");function a(){return(0,r.jsx)("div",{className:"common-page-not-found",children:"Page not found."})}},"@ebay/muse-lib-react@1.3.5/src/features/common/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ErrorBoundary:()=>a.default,Nodes:()=>o.default,PageNotFound:()=>r.default,useExtPoint:()=>i.default});var r=n("@ebay/muse-lib-react@1.3.5/src/features/common/PageNotFound.js"),a=n("@ebay/muse-lib-react@1.3.5/src/features/common/ErrorBoundary.js"),o=n("@ebay/muse-lib-react@1.3.5/src/features/common/Nodes.js"),i=n("@ebay/muse-lib-react@1.3.5/src/features/common/useExtPoint.js")},"@ebay/muse-lib-react@1.3.5/src/features/common/redux/initialState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},"@ebay/muse-lib-react@1.3.5/src/features/common/redux/reducer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("@ebay/muse-lib-react@1.3.5/src/features/common/redux/initialState.js");const a=[];function o(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default,n=arguments.length>1?arguments[1]:void 0;return n.type,e=t,a.reduce((e,t)=>t(e,n),e)}},"@ebay/muse-lib-react@1.3.5/src/features/common/route.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={path:"common",name:"Common",childRoutes:[]}},"@ebay/muse-lib-react@1.3.5/src/features/common/useExtPoint.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("react@18.2.0/index.js"),o=n("js-plugin@1.1.0/plugin.js"),i=n.n(o),u=n("lodash@4.17.21/lodash.js"),s=n.n(u),l=n("react@18.2.0/jsx-runtime.js");function c(e,t){const n=i().invoke("!"+e,t),[o,u]=(0,a.useState)([]),c=(0,a.useCallback)(e=>{u(s().flatten([...o,e]))},[o]);return{extNode:(0,l.jsx)(l.Fragment,{children:n.map((e,n)=>(0,l.jsx)(e,(0,r.default)({callback:c},t),n))}),values:o}}},"@ebay/muse-lib-react@1.3.5/src/features/common/utils.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{extendArray:()=>u});var r=n("js-plugin@1.1.0/plugin.js"),a=n.n(r),o=n("lodash@4.17.21/lodash.js"),i=n.n(o);const u=function(e,t,n){const r=t.charAt(0).toUpperCase()+t.slice(1);for(var o=arguments.length,u=new Array(o>3?o-3:0),s=3;s<o;s++)u[s-3]=arguments[s];a().invoke("".concat(n,".preProcess").concat(r),...u);const l=i().flatten(a().invoke("".concat(n,".get").concat(r),...u));return e.push(...l),a().invoke("".concat(n,".process").concat(r),...u),a().invoke("".concat(n,".postProcess").concat(r),...u),a().sort(e),e}},"@ebay/muse-lib-react@1.3.5/src/features/home/App.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});n("react@18.2.0/index.js");var r=n("js-plugin@1.1.0/plugin.js"),a=n.n(r),o=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/hooks/useParentRouteChange.js"),i=n("react@18.2.0/jsx-runtime.js");function u(e){let{children:t}=e;const n=a().getPlugins("rootComponent"),r=a().invoke("!home.mainLayout");if((0,o.default)(),r.length>1){const e=a().getPlugins("home.mainLayout").map(e=>e.name);return(0,i.jsxs)("div",{style:{color:"red",margin:"20px"},children:["Error: multiple layouts found from plugins: ",e.join(", "),". Each application should only have one main layout."]})}const u=r[0],s=u?(0,i.jsx)(u,{children:t}):t;return(0,i.jsxs)("div",{className:"home-app muse-app",children:[(0,i.jsx)("div",{className:"muse-app_main-page-container",children:s}),(0,i.jsx)("div",{className:"muse-app_plugin-root-placeholder",children:n.map(e=>(0,i.jsx)(e.rootComponent,{},e.name))})]})}},"@ebay/muse-lib-react@1.3.5/src/features/home/Homepage.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});n("react@18.2.0/index.js");var r=n("@ebay/muse-lib-react@1.3.5/src/images/logo.png"),a=n("react@18.2.0/jsx-runtime.js");function o(){return(0,a.jsxs)("div",{className:"home-homepage",children:[(0,a.jsxs)("header",{className:"app-header",children:[(0,a.jsx)("img",{src:r,className:"app-logo",alt:"logo"}),(0,a.jsx)("h1",{className:"app-title",children:"Welcome to Muse!"})]}),(0,a.jsxs)("div",{className:"app-intro",children:[(0,a.jsx)("p",{className:"memo",children:"This is the default homepage of a Muse application."}),(0,a.jsx)("h3",{children:"To get started:"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://go/muse",children:"Read docs"})," for Muse."]}),(0,a.jsxs)("li",{children:["Join the slack channel"," ",(0,a.jsx)("a",{href:"https://ebay-eng.slack.com/archives/C0194Q1V8G1",children:"#muse"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/first-plugin",children:"Create a plugin"})," ","and"," ",(0,a.jsx)("a",{href:"https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/customize-layout",children:"define the layout/homepage"})," ","for the application."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#build-a-plugin",children:"Build"})," ","and"," ",(0,a.jsx)("a",{href:"https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#deploy-a-plugin",children:"deploy"})," ","the Muse plugin to the application."]})]})]})]})}},"@ebay/muse-lib-react@1.3.5/src/features/home/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{App:()=>r.default,Homepage:()=>a.default});var r=n("@ebay/muse-lib-react@1.3.5/src/features/home/App.js"),a=n("@ebay/muse-lib-react@1.3.5/src/features/home/Homepage.js")},"@ebay/muse-lib-react@1.3.5/src/features/home/redux/initialState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},"@ebay/muse-lib-react@1.3.5/src/features/home/redux/reducer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("@ebay/muse-lib-react@1.3.5/src/features/home/redux/initialState.js");const a=[];function o(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default,n=arguments.length>1?arguments[1]:void 0;return n.type,e=t,a.reduce((e,t)=>t(e,n),e)}},"@ebay/muse-lib-react@1.3.5/src/features/home/route.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={path:"home",name:"Home",childRoutes:[]}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/C2SProxyFailed.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});n("react@18.2.0/index.js");var r=n("react@18.2.0/jsx-runtime.js");function a(){return(0,r.jsxs)("div",{className:"sub-app-c-2-s-proxy-failed",children:[(0,r.jsx)("h3",{children:"Error: failed to detect c2s proxy."}),(0,r.jsx)("p",{children:"This page needs c2s proxy, please config it and refresh the page."})]})}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/FixedSubAppContainer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/index.js"),o=n("lodash@4.17.21/lodash.js"),i=n.n(o),u=n("@ebay/muse-lib-react@1.3.5/src/common/history.js"),s=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/urlUtils.js"),l=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/index.js"),c=n("react@18.2.0/jsx-runtime.js");const f=i().debounce(e=>{u.default.push(e)}),d=window.MUSE_GLOBAL.msgEngine;function p(e){var t;let{context:n=null,subApp:o}=e;const i=(0,r.useRef)(),[u,p]=(0,r.useState)(),h=(0,a.useLocation)(),m=h.href.replace(h.origin,""),v=s.default.getChildUrlPath(o);console.log("subPath",v);const y=null===(t=i.current)||void 0===t?void 0:t.firstChild,g="".concat(s.default.getOrigin(o.url)).concat(v);(0,r.useEffect)(()=>{i.current&&"app-loaded"===u&&(null===d||void 0===d||d.sendToChild({type:"sub-app-context-change",data:n},y))},[n,o,y,u]),(0,r.useEffect)(()=>{var e;if(!v||!i.current)return;let t=null===(e=i.current)||void 0===e?void 0:e.firstChild;t||(t=document.createElement("iframe"),t.src=g,i.current.appendChild(t))},[g,v]),(0,r.useEffect)(()=>{y&&v&&(null===d||void 0===d||d.sendToChild({type:"parent-route-change",path:v,url:v},y))},[v,y]);const b=(0,r.useCallback)(e=>{if(e.type)if("child-route-change"===e.type&&e.path){const t=s.default.getParentPath(e.path,o);t!==m&&t&&f(t)}else"app-state-change"===e.type&&(p(e.state),"app-loaded"===e.state&&(null===d||void 0===d||d.sendToChild({type:"sub-app-context-change",data:n},y),y.museLoaded=!0))},[o,m,p,n,y]);return(0,r.useEffect)(()=>{const e=Math.random();return null===d||void 0===d||d.addListener(e,b),()=>null===d||void 0===d?void 0:d.removeListener(e)},[b]),(0,c.jsxs)("div",{className:"muse-react_sub-app-fixed-sub-app-container",children:[!(null!==y&&void 0!==y&&y.museLoaded)&&"app-loaded"!==u&&"app-failed"!==u&&"login-page"!==u&&"check-c2s-proxy-failed"!==u&&(0,c.jsx)(l.LoadingSkeleton,{state:u}),"app-failed"===u&&(0,c.jsxs)("div",{className:"sub-app-sub-app-failed",children:["Failed to start sub app ",o.name,": /",o.path," => ",o.url,"."]}),"check-c2s-proxy-failed"===u&&(0,c.jsx)(l.C2SProxyFailed,{}),(0,c.jsx)("div",{ref:i,style:{visibility:["app-loaded","login-page"].includes(u)?"visible":"hidden"},className:"sub-app-iframe-wrapper"})]})}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/LoadingSkeleton.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("react@18.2.0/index.js"),a=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/subAppLoading2.svg"),o=n("react@18.2.0/jsx-runtime.js");const i={"app-starting":"Loading sub app...","app-loading":"Starting sub app...","fetch-user-info":"Fetching user info...","app-begin-login":"Checking authentication...","check-c2s-proxy":"Checking c2s proxy..."};function u(e){let{state:t}=e;return(0,o.jsx)("div",{className:"sub-app-loading-skeleton",children:(0,o.jsxs)("div",{className:"sub-app-loading-center-container",children:[a.ReactComponent?r.createElement(a.ReactComponent):(0,o.jsx)(o.Fragment,{}),(0,o.jsx)("label",{children:i[t]||"Loading sub app..."})]})})}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/SubAppContainer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/index.js"),o=n("lodash@4.17.21/lodash.js"),i=n.n(o),u=n("@ebay/muse-lib-react@1.3.5/src/common/history.js"),s=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/urlUtils.js"),l=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/index.js"),c=n("react@18.2.0/jsx-runtime.js");const f=i().debounce(e=>{u.default.push(e)}),d=window.MUSE_GLOBAL.msgEngine,p={};function h(e){let{context:t=null,subApp:n}=e;const o=(0,r.useRef)(),[i,u]=(0,r.useState)(),h=(0,a.useLocation)(),m=h.href.replace(h.origin,""),v=s.default.getChildUrlPath(n),y=p[n.url],g="".concat(s.default.getOrigin(n.url)).concat(v);(0,r.useEffect)(()=>{o.current&&"app-loaded"===i&&(null===d||void 0===d||d.sendToChild({type:"sub-app-context-change",data:t},y))},[t,n,y,i]);const b=(0,r.useCallback)(async e=>{try{var t;await(null===(t=window.MUSE_GLOBAL)||void 0===t?void 0:t.msgEngine.assertMuseApp(e))}catch(n){console.log("Not a muse app: ",n),u("not-a-muse-app")}},[]);(0,r.useEffect)(()=>{if(!v||!o.current)return;let e=p[n.url];const t=o.current.getBoundingClientRect();e?e.style.left=t.left+"px":(e=document.createElement("iframe"),e.src=g,e.onload=()=>b(e),p[n.url]=e,Object.assign(e.style,{position:"fixed",top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px",border:"none",zIndex:1e3,margin:0}),document.body.appendChild(e))},[g,b,v,n.url]),(0,r.useEffect)(()=>{y&&(null===d||void 0===d||d.sendToChild({type:"parent-route-change",path:v},y))},[v,y]),(0,r.useEffect)(()=>()=>{const e=p[n.url];e&&(e.style.left="-100000px")},[n.url]);const w=(0,r.useCallback)(()=>{const e=p[n.url];if(e&&o.current){const t=o.current.getBoundingClientRect();Object.assign(e.style,{width:t.width+"px",height:t.height+"px"})}},[n.url]);(0,a.useEvent)("resize",w);const x=(0,r.useCallback)(e=>{if(e.type)if("child-route-change"===e.type&&e.path){const t=s.default.getParentPath(e.path,n);t!==m&&f(t)}else"app-state-change"===e.type&&(u(e.state),"app-loaded"===e.state&&(null===d||void 0===d||d.sendToChild({type:"sub-app-context-change",data:t},y),y.museLoaded=!0))},[n,m,u,t,y]);return(0,r.useEffect)(()=>{const e=Math.random();return null===d||void 0===d||d.addListener(e,x),()=>null===d||void 0===d?void 0:d.removeListener(e)},[x]),v?(0,c.jsxs)("div",{className:"muse-react_sub-app-sub-app-container",children:[!(null!==y&&void 0!==y&&y.museLoaded)&&"app-loaded"!==i&&"app-failed"!==i&&"login-page"!==i&&"check-c2s-proxy-failed"!==i&&(0,c.jsx)(l.LoadingSkeleton,{state:i}),"app-failed"===i&&(0,c.jsxs)("div",{className:"sub-app-sub-app-failed",children:["Failed to start sub app ",n.name,": /",n.path," => ",n.url,"."]}),"check-c2s-proxy-failed"===i&&(0,c.jsx)(l.C2SProxyFailed,{}),(0,c.jsx)("div",{ref:o,style:{visibility:["app-loaded","login-page"].includes(i)?"visible":"hidden"},className:"sub-app-iframe-wrapper"})]}):"Error: can not detect a sub app. Are you using sub app container correctly?"}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/SubAppContext.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n("react@18.2.0/index.js").createContext()},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/hooks/useParentRouteChange.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-router-dom@6.15.0/dist/index.js");const o=function(){const e=(0,a.useNavigate)();(0,r.useEffect)(()=>{var t,n;return null===(t=window.MUSE_GLOBAL)||void 0===t||null===(n=t.msgEngine)||void 0===n||n.addListener("muse-react_history",t=>{const n=document.location.href.replace(document.location.origin,"");"parent-route-change"===t.type&&t.path!==n&&(console.log("parent-route-change: ",t.path),e(t.path))}),()=>{var e,t;null===(e=window.MUSE_GLOBAL)||void 0===e||null===(t=e.msgEngine)||void 0===t||t.removeListener("muse-react_history")}},[e])}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{C2SProxyFailed:()=>u.default,FixedSubAppContainer:()=>a.default,LoadingSkeleton:()=>o.default,SubAppContainer:()=>r.default,SubAppContext:()=>i.default});var r=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/SubAppContainer.js"),a=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/FixedSubAppContainer.js"),o=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/LoadingSkeleton.js"),i=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/SubAppContext.js"),u=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/C2SProxyFailed.js")},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/constants.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{SUB_APP_CLEAR_SUB_APP_STATE:()=>a,SUB_APP_SET_SUB_APP_STATE:()=>r});const r="SUB_APP_SET_SUB_APP_STATE",a="SUB_APP_CLEAR_SUB_APP_STATE"},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/initialState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={subAppState:{}}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/reducer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/initialState.js");const a=[n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/setSubAppState.js").reducer];function o(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default,n=arguments.length>1?arguments[1]:void 0;return n.type,e=t,a.reduce((e,t)=>t(e,n),e)}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/setSubAppState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearSubAppState:()=>s,reducer:()=>c,setSubAppState:()=>u,useSetSubAppState:()=>l});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("react@18.2.0/index.js"),o=n("react-redux@8.1.2/es/index.js"),i=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/redux/constants.js");function u(e){return{type:i.SUB_APP_SET_SUB_APP_STATE,data:e}}function s(){return{type:i.SUB_APP_CLEAR_SUB_APP_STATE}}function l(){const e=(0,o.useDispatch)(),t=(0,o.useSelector)(e=>e.subApp.subAppState),n=(0,a.useCallback)(function(){return e(u(...arguments))},[e]),r=(0,a.useCallback)(function(){return e(s(...arguments))},[e]);return{subAppState:t,setSubAppState:n,clearSubAppState:r}}function c(e,t){switch(t.type){case i.SUB_APP_SET_SUB_APP_STATE:return(0,r.default)((0,r.default)({},e),{},{subAppState:t.data});case i.SUB_APP_CLEAR_SUB_APP_STATE:return(0,r.default)((0,r.default)({},e),{},{subAppState:{}});default:return e}}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/route.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});n("react@18.2.0/index.js");var r,a,o,i,u=n("@ebay/muse-lib-react@1.3.5/src/features/sub-app/index.js"),s=n("react@18.2.0/jsx-runtime.js");const l=[],c=null===(r=window.MUSE_GLOBAL)||void 0===r||null===(a=r.plugins)||void 0===a?void 0:a.find(e=>"@ebay/muse-lib-react"===e.name);null===c||void 0===c||null===(o=c.subApps)||void 0===o||null===(i=o.filter(e=>"default"===e.mountPoint||!e.mountPoint))||void 0===i||i.forEach(e=>{l.push({path:e.path+"/*",component:()=>{var t;return(0,s.jsx)(u.SubAppContainer,{subApps:(null===c||void 0===c||null===(t=c.config)||void 0===t?void 0:t.subApps)||[],subApp:e},e.url)}})});const f={path:"sub-app",childRoutes:[...l]}},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/subAppLoading2.svg":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>s,default:()=>l});var r,a=n("react@18.2.0/index.js");const o=["title","titleId"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}function u(e,t){let{title:n,titleId:u}=e,s=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,o);return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"none",display:"block",shapeRendering:"auto"},width:"200px",height:"200px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",ref:t,"aria-labelledby":u},s),n?a.createElement("title",{id:u},n):null,r||(r=a.createElement("g",{transform:"translate(50 50)"},a.createElement("g",{transform:"translate(-17 -17) scale(0.5)"},a.createElement("g",null,a.createElement("animateTransform",{attributeName:"transform",type:"rotate",values:"0;45",keyTimes:"0;1",dur:"0.4545454545454546s",begin:"0s",repeatCount:"indefinite"}),a.createElement("path",{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#86b817"}))),a.createElement("g",{transform:"translate(0 22) scale(0.4)"},a.createElement("g",null,a.createElement("animateTransform",{attributeName:"transform",type:"rotate",values:"45;0",keyTimes:"0;1",dur:"0.4545454545454546s",begin:"-0.2272727272727273s",repeatCount:"indefinite"}),a.createElement("path",{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#e53238"}))),a.createElement("g",{transform:"translate(28 4) scale(0.3)"},a.createElement("g",null,a.createElement("animateTransform",{attributeName:"transform",type:"rotate",values:"0;45",keyTimes:"0;1",dur:"0.4545454545454546s",begin:"-0.2272727272727273s",repeatCount:"indefinite"}),a.createElement("path",{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#f5af02"}))))))}const s=a.forwardRef(u),l=n.p+"static/media/subAppLoading2.bf08007b83457287ade1cedb71bc70f7.svg"},"@ebay/muse-lib-react@1.3.5/src/features/sub-app/urlUtils.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("path-to-regexp@6.2.1/dist.es2015/index.js"),a=n("lodash@4.17.21/lodash.js"),o=n.n(a);const i={getChildUrlPath(e){const t=document.location.href.replace(document.location.origin,""),n=(0,r.match)(e.path,{decode:decodeURIComponent,end:!1})(t);if(console.log(e.path,t,n),n){const a=o().template(e.url)(n.params);let i=t.replace((0,r.pathToRegexp)(e.path,[],{end:!1}),"");const u=a.split("/");u.splice(0,3);let s=u.join("/").replace(/\/*$/,"")+i;return s.startsWith("/")||(s="/"+s),console.log("childUrlPath: ",s),s}return null},getParentPath(e,t){const n=document.location.href.replace(document.location.origin,""),a=(0,r.match)(t.path,{decode:decodeURIComponent,end:!1})(n);if(!a)return null;const i=o().template(t.url)(a.params);console.log("child full path: ",e,t);const u="/"+i.split("/").slice(3).join("/");console.log("mountedSubPath: ",u);if(!("/"===u||e.startsWith(u)&&["","?","/","#"].includes(e.charAt(u.length))))return;const s=(0,r.pathToRegexp)(t.path,[],{end:!1}),l=document.location.pathname;if(!s.test(l))return;const c=l.match(s);console.log("parent register path: ",c[0]);const f=(c[0]+e.replace(u,"")).replace(/\/+/g,"/").replace(/\/$/,"");return console.log("newParentFullPath: ",f),f},getOrigin(e){const t=e.split("/");return t.length=3,t.join("/")}}},"@ebay/muse-lib-react@1.3.5/src/images/logo.png":(e,t,n)=>{"use strict";e.exports=n.p+"static/media/logo.b23b880b0dac2229042c.png"},"@ebay/muse-lib-react@1.3.5/src/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n("react@18.2.0/index.js");var r=n("react-dom@18.2.0/client.js"),a=n("@ebay/muse-lib-react@1.3.5/src/Root.js"),o=n("js-plugin@1.1.0/plugin.js"),i=n.n(o),u=n("react-loadable@5.5.0/lib/index.js"),s=n.n(u),l=n("lodash@4.17.21/lodash.js"),c=n.n(l),f=n("react-use@17.4.0/esm/index.js"),d=(n("@ebay/muse-lib-react@1.3.5/src/styles/index.less"),n("react-router-dom@6.15.0/dist/index.js")),p=n("@tanstack/react-query@4.33.0/build/lib/index.mjs"),h=n("react@18.2.0/jsx-runtime.js");i().register({name:"@ebay/muse-lib-react"});window.MUSE_GLOBAL.appEntries.push({name:"@ebay/muse-lib-react",func:()=>{let e=document.getElementById("muse-react-root");e||(e=document.createElement("div"),e.id="muse-react-root",document.body.appendChild(e)),e.innerHTML="",i().invoke("root.beforeRender");const t=(0,r.createRoot)(e);window.__js_plugin=i(),t.render((0,h.jsx)(a.default,{})),i().invoke("root.afterRender"),i().invoke("onReady")}});const m={Loadable:s(),_:c(),reactUse:f,reactRouterDom:d,reactQuery:p}},"@ebay/muse-lib-react@1.3.5/src/styles/index.less":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n("style-loader@3.3.1/dist/runtime/injectStylesIntoStyleTag.js"),a=n.n(r),o=n("style-loader@3.3.1/dist/runtime/styleDomAPI.js"),i=n.n(o),u=n("style-loader@3.3.1/dist/runtime/insertBySelector.js"),s=n.n(u),l=n("style-loader@3.3.1/dist/runtime/setAttributesWithoutAttributes.js"),c=n.n(l),f=n("style-loader@3.3.1/dist/runtime/insertStyleElement.js"),d=n.n(f),p=n("style-loader@3.3.1/dist/runtime/styleTagTransform.js"),h=n.n(p),m=n(636),v={base:352276};v.styleTagTransform=h(),v.setAttributes=c(),v.insert=s().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=d();a()(m.default,v);const y=m.default&&m.default.locals?m.default.locals:void 0},"@ebay/muse-lib-react@1.3.5/src/utils.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,extendArray:()=>u});var r=n("js-plugin@1.1.0/plugin.js"),a=n.n(r),o=n("lodash@4.17.21/lodash.js"),i=n.n(o);const u=function(e,t,n){const r=(o=t).charAt(0).toUpperCase()+o.slice(1);for(var o,u=arguments.length,s=new Array(u>3?u-3:0),l=3;l<u;l++)s[l-3]=arguments[l];a().invoke("".concat(n,".preProcess").concat(r),...s);const c=i().flatten(a().invoke("".concat(n,".get").concat(r),...s));return e.push(...c),a().invoke("".concat(n,".process").concat(r),...s),a().invoke("".concat(n,".postProcess").concat(r),...s),a().sort(e),e},s={extendArray:u}},"@ebay/nice-modal-react@1.2.10/lib/esm/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalDef:()=>A,Provider:()=>C,antdDrawer:()=>O,antdDrawerV5:()=>M,antdModal:()=>R,antdModalV5:()=>P,bootstrapDialog:()=>D,create:()=>S,default:()=>F,hide:()=>b,muiDialog:()=>L,muiDialogV5:()=>T,reducer:()=>h,register:()=>j,remove:()=>w,show:()=>g,unregister:()=>E,useModal:()=>x});var r=n("react@18.2.0/index.js"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},a.apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},i=Symbol("NiceModalId"),u={},s=r.createContext(u),l=r.createContext(null),c={},f={},d=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(e,t){var n,r,o;switch(void 0===e&&(e=u),t.type){case"nice-modal/show":var i=t.payload,s=i.modalId,l=i.args;return a(a({},e),((n={})[s]=a(a({},e[s]),{id:s,args:l,visible:!!f[s],delayVisible:!f[s]}),n));case"nice-modal/hide":return e[s=t.payload.modalId]?a(a({},e),((r={})[s]=a(a({},e[s]),{visible:!1}),r)):e;case"nice-modal/remove":s=t.payload.modalId;var c=a({},e);return delete c[s],c;case"nice-modal/set-flags":var d=t.payload,p=(s=d.modalId,d.flags);return a(a({},e),((o={})[s]=a(a({},e[s]),p),o));default:return e}};var m={},v={},y=function(e){return"string"===typeof e?e:(e[i]||(e[i]="_nice_modal_"+d++),e[i])};function g(e,t){var n=y(e);if("string"===typeof e||c[n]||j(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!m[n]){var r,a,o=new Promise(function(e,t){r=e,a=t});m[n]={resolve:r,reject:a,promise:o}}return m[n].promise}function b(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete m[t],!v[t]){var n,r,a=new Promise(function(e,t){n=e,r=t});v[t]={resolve:n,reject:r,promise:a}}return v[t].promise}var w=function(e){p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(e)),delete m[e],delete v[e]};function x(e,t){var n=(0,r.useContext)(s),a=(0,r.useContext)(l),o=null,i=e&&"string"!==typeof e;if(!(o=e?y(e):a))throw new Error("No modal id found in NiceModal.useModal.");var u=o;(0,r.useEffect)(function(){i&&!c[u]&&j(u,e,t)},[i,u,e,t]);var f=n[u],d=(0,r.useCallback)(function(e){return g(u,e)},[u]),p=(0,r.useCallback)(function(){return b(u)},[u]),h=(0,r.useCallback)(function(){return w(u)},[u]),x=(0,r.useCallback)(function(e){var t;null===(t=m[u])||void 0===t||t.resolve(e),delete m[u]},[u]),S=(0,r.useCallback)(function(e){var t;null===(t=m[u])||void 0===t||t.reject(e),delete m[u]},[u]),E=(0,r.useCallback)(function(e){var t;null===(t=v[u])||void 0===t||t.resolve(e),delete v[u]},[u]);return{id:u,args:null===f||void 0===f?void 0:f.args,visible:!!(null===f||void 0===f?void 0:f.visible),keepMounted:!!(null===f||void 0===f?void 0:f.keepMounted),show:d,hide:p,remove:h,resolve:x,reject:S,resolveHide:E}}var S=function(e){return function(t){var n,i=t.defaultVisible,u=t.keepMounted,c=t.id,d=o(t,["defaultVisible","keepMounted","id"]),h=x(c),m=h.args,v=h.show,y=(0,r.useContext)(s),g=!!y[c];(0,r.useEffect)(function(){return i&&v(),f[c]=!0,function(){delete f[c]}},[c,v,i]),(0,r.useEffect)(function(){u&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(c,{keepMounted:!0}))},[c,u]);var b=null===(n=y[c])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)(function(){b&&v(m)},[b,m,v]),g?r.createElement(l.Provider,{value:c},r.createElement(e,a({},d,m))):null}},j=function(e,t,n){c[e]?c[e].props=n:c[e]={comp:t,props:n}},E=function(e){delete c[e]},_=function(){var e=(0,r.useContext)(s),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){c[e]||f[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")});var n=t.filter(function(e){return c[e]}).map(function(e){return a({id:e},c[e])});return r.createElement(r.Fragment,null,n.map(function(e){return r.createElement(e.comp,a({key:e.id,id:e.id},e.props))}))},k=function(e){var t=e.children,n=(0,r.useReducer)(h,u),a=n[0];return p=n[1],r.createElement(s.Provider,{value:a},t,r.createElement(_,null))},C=function(e){var t=e.children,n=e.dispatch,a=e.modals;return n&&a?(p=n,r.createElement(s.Provider,{value:a},t,r.createElement(_,null))):r.createElement(k,null,t)},A=function(e){var t=e.id,n=e.component;return(0,r.useEffect)(function(){return j(t,n),function(){E(t)}},[t,n]),null},R=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},P=function(e){var t=R(e),n=t.onOk,r=t.onCancel,a=t.afterClose;return{open:e.visible,onOk:n,onCancel:r,afterClose:a}},O=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},M=function(e){var t=O(e),n=t.onClose,r=t.afterVisibleChange;return{open:e.visible,onClose:n,afterOpenChange:r}},L=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},T=function(e){return{open:e.visible,onClose:function(){return e.hide()},TransitionProps:{onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}},D=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}};const F={Provider:C,ModalDef:A,NiceModalContext:s,create:S,register:j,show:g,hide:b,remove:w,useModal:x,reducer:h,antdModal:R,antdDrawer:O,muiDialog:L,bootstrapDialog:D}},"@remix-run/router@1.8.0/dist/router.js":(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var a;n.r(t),n.d(t,{AbortedDeferredError:()=>W,Action:()=>a,ErrorResponse:()=>J,IDLE_BLOCKER:()=>ue,IDLE_FETCHER:()=>ie,IDLE_NAVIGATION:()=>oe,UNSAFE_DEFERRED_SYMBOL:()=>fe,UNSAFE_DeferredData:()=>$,UNSAFE_convertRoutesToDataRoutes:()=>g,UNSAFE_getPathContributingMatches:()=>N,UNSAFE_invariant:()=>l,UNSAFE_warning:()=>c,createBrowserHistory:()=>u,createHashHistory:()=>s,createMemoryHistory:()=>i,createPath:()=>p,createRouter:()=>ce,createStaticHandler:()=>de,defer:()=>V,generatePath:()=>O,getStaticContextFromError:()=>pe,getToPathname:()=>U,isDeferredData:()=>Fe,isRouteErrorResponse:()=>X,joinPaths:()=>q,json:()=>H,matchPath:()=>M,matchRoutes:()=>b,normalizePathname:()=>B,parsePath:()=>h,redirect:()=>G,redirectDocument:()=>Y,resolvePath:()=>D,resolveTo:()=>I,stripBasename:()=>T}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function i(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map((e,t)=>m(e,"string"===typeof e?null:e.state,0===t?"default":void 0));let i=l(null==r?t.length-1:r),u=a.Pop,s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[i]}function m(e,n,r){void 0===n&&(n=null);let a=d(t?f().pathname:"/",e,n,r);return c("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function v(e){return"string"===typeof e?e:p(e)}return{get index(){return i},get action(){return u},get location(){return f()},createHref:v,createURL:e=>new URL(v(e),"http://localhost"),encodeLocation(e){let t="string"===typeof e?h(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){u=a.Push;let r=m(e,n);i+=1,t.splice(i,t.length,r),o&&s&&s({action:u,location:r,delta:1})},replace(e,n){u=a.Replace;let r=m(e,n);t[i]=r,o&&s&&s({action:u,location:r,delta:0})},go(e){u=a.Pop;let n=l(i+e),r=t[n];i=n,s&&s({action:u,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function u(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:n,search:r,hash:a}=e.location;return d("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:p(t)},null,e)}function s(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=h(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),d("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:p(t))},function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function l(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function c(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?h(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function p(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,i){void 0===i&&(i={});let{window:u=document.defaultView,v5Compat:s=!1}=i,c=u.history,h=a.Pop,m=null,v=y();function y(){return(c.state||{idx:null}).idx}function g(){h=a.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"===typeof e?e:p(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,c.replaceState(r({},c.state,{idx:v}),""));let w={get action(){return h},get location(){return e(u,c)},listen(e){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(o,g),m=e,()=>{u.removeEventListener(o,g),m=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=d(w.location,e,t);n&&n(r,e),v=y()+1;let o=f(r,v),i=w.createHref(r);try{c.pushState(o,"",i)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;u.location.assign(i)}s&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let r=d(w.location,e,t);n&&n(r,e),v=y();let o=f(r,v),i=w.createHref(r);c.replaceState(o,"",i),s&&m&&m({action:h,location:w.location,delta:0})},go:e=>c.go(e)};return w}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));const y=new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,n,a){return void 0===n&&(n=[]),void 0===a&&(a={}),e.map((e,o)=>{let i=[...n,o],u="string"===typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!a[u],'Found a route id collision on id "'+u+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:u});return a[u]=n,n}{let n=r({},e,t(e),{id:u,children:void 0});return a[u]=n,e.children&&(n.children=g(e.children,t,i,a)),n}})}function b(e,t,n){void 0===n&&(n="/");let r=T(("string"===typeof t?h(t):t).pathname||"/",n);if(null==r)return null;let a=w(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let o=null;for(let i=0;null==o&&i<a.length;++i)o=P(a[i],L(r));return o}function w(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let u=q([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),w(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:R(u,e.index),routesMeta:s})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of x(e.path))a(e,t,r);else a(e,t)}),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=x(r.join("/")),u=[];return u.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&u.push(...i),u.map(t=>e.startsWith("/")&&""===t?"/":t)}const S=/^:\w+$/,j=3,E=2,_=1,k=10,C=-2,A=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(A)&&(r+=C),t&&(r+=E),n.filter(e=>!A(e)).reduce((e,t)=>e+(S.test(t)?j:""===t?_:k),r)}function P(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let i=0;i<n.length;++i){let e=n[i],u=i===n.length-1,s="/"===a?t:t.slice(a.length)||"/",l=M({path:e.relativePath,caseSensitive:e.caseSensitive,end:u},s);if(!l)return null;Object.assign(r,l.params);let c=e.route;o.push({params:r,pathname:q([a,l.pathname]),pathnameBase:B(q([a,l.pathnameBase])),route:c}),"/"!==l.pathnameBase&&(a=q([a,l.pathnameBase]))}return o}function O(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(c(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",a=e=>null==e?"":"string"===typeof e?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&"*"===e){return a(t["*"])}const o=e.match(/^:(\w+)(\??)$/);if(o){const[,e,n]=o;let r=t[e];return l("?"===n||null!=r,'Missing ":'+e+'" param'),a(r)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function M(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((e,t,n)=>{if("*"===t){let e=u[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return c(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u[n]||"",t),e},{}),pathname:o,pathnameBase:i,pattern:e}}function L(e){try{return decodeURI(e)}catch(t){return c(!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 T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function D(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"===typeof e?h(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:z(r),hash:Q(a)}}function F(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function N(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function I(e,t,n,a){let o;void 0===a&&(a=!1),"string"===typeof e?o=h(e):(o=r({},e),l(!o.pathname||!o.pathname.includes("?"),F("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),F("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),F("#","search","hash",o)));let i,u=""===e||""===o.pathname,s=u?"/":o.pathname;if(a||null==s)i=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=D(o,i),f=s&&"/"!==s&&s.endsWith("/"),d=(u||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}function U(e){return""===e||""===e.pathname?"/":"string"===typeof e?h(e).pathname:e.pathname}const q=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",H=function(e,t){void 0===t&&(t={});let n="number"===typeof t?{status:t}:t,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),r({},n,{headers:a}))};class W extends Error{}class ${constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],l(e&&"object"===typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>n=t),this.controller=new AbortController;let r=()=>n(new W("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})},{}),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 n=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(n,e,void 0,t),t=>this.onSettle(n,e,t));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof W)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new 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:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach(n=>n(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 n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise(t=>{this.subscribe(r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return l(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:K(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function K(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const V=function(e,t){return void 0===t&&(t={}),new $(e,"number"===typeof t?{status:t}:t)},G=function(e,t){void 0===t&&(t=302);let n=t;"number"===typeof n?n={status:n}:"undefined"===typeof n.status&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",e),new Response(null,r({},n,{headers:a}))},Y=(e,t)=>{let n=G(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n};class J{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function X(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Z=["post","put","patch","delete"],ee=new Set(Z),te=["get",...Z],ne=new Set(te),re=new Set([301,302,303,307,308]),ae=new Set([307,308]),oe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ie={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ue={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,le=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function ce(e){const t=e.window?e.window:"undefined"!==typeof window?window:void 0,n="undefined"!==typeof t&&"undefined"!==typeof t.document&&"undefined"!==typeof t.document.createElement,o=!n;let i;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=le;let u,s={},f=g(e.routes,i,void 0,s),p=e.basename||"/",h=r({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),m=null,y=new Set,w=null,x=null,S=null,j=null!=e.hydrationData,E=b(f,e.history.location,p),_=null;if(null==E){let t=Pe(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Re(f);E=n,_={[r.id]:t}}let k,C,A=!E.some(e=>e.route.lazy)&&(!E.some(e=>e.route.loader)||null!=e.hydrationData),R={historyAction:e.history.action,location:e.history.location,matches:E,initialized:A,navigation:oe,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||_,fetchers:new Map,blockers:new Map},P=a.Pop,O=!1,M=!1,L=!1,D=[],F=[],N=new Map,I=0,U=-1,q=new Map,B=new Set,z=new Map,Q=new Map,H=new Map,W=!1;function $(e){R=r({},R,e),y.forEach(e=>e(R))}function K(t,n){var o,i;let s,l=null!=R.actionData&&null!=R.navigation.formMethod&&Ue(R.navigation.formMethod)&&"loading"===R.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:l?R.actionData:null;let c=n.loaderData?Ce(R.loaderData,n.loaderData,n.matches||[],n.errors):R.loaderData,d=R.blockers;d.size>0&&(d=new Map(d),d.forEach((e,t)=>d.set(t,ue)));let p=!0===O||null!=R.navigation.formMethod&&Ue(R.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);u&&(f=u,u=void 0),M||P===a.Pop||(P===a.Push?e.history.push(t,t.state):P===a.Replace&&e.history.replace(t,t.state)),$(r({},n,{actionData:s,loaderData:c,historyAction:P,location:t,initialized:!0,navigation:oe,revalidation:"idle",restoreScrollPosition:be(t,n.matches||R.matches),preventScrollReset:p,blockers:d})),P=a.Pop,O=!1,M=!1,L=!1,D=[],F=[]}async function V(t,n,o){C&&C.abort(),C=null,P=t,M=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(w&&S){let n=ge(e,t);w[n]=S()}}(R.location,R.matches),O=!0===(o&&o.preventScrollReset);let l=u||f,c=o&&o.overrideNavigation,d=b(l,n,p);if(!d){let e=Pe(404,{pathname:n.pathname}),{matches:t,route:r}=Re(l);return ve(),void K(n,{matches:t,loaderData:{},errors:{[r.id]:e}})}if(R.initialized&&!L&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(R.location,n)&&!(o&&o.submission&&Ue(o.submission.formMethod)))return void K(n,{matches:d});C=new AbortController;let h,m,y=Se(e.history,n,C.signal,o&&o.submission);if(o&&o.pendingError)m={[Ae(d).route.id]:o.pendingError};else if(o&&o.submission&&Ue(o.submission.formMethod)){let e=await async function(e,t,n,r,o){void 0===o&&(o={});X();let u,l=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);$({navigation:l});let c=Qe(r,t);if(c.route.action||c.route.lazy){if(u=await xe("action",e,c,r,s,i,p),e.signal.aborted)return{shortCircuited:!0}}else u={type:v.error,error:Pe(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(De(u)){let e;return e=o&&null!=o.replace?o.replace:u.location===R.location.pathname+R.location.search,await Y(R,u,{submission:n,replace:e}),{shortCircuited:!0}}if(Te(u)){let e=Ae(r,c.route.id);return!0!==(o&&o.replace)&&(P=a.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:u.error}}}if(Le(u))throw Pe(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:u.data}}}(y,n,o.submission,d,{replace:o.replace});if(e.shortCircuited)return;h=e.pendingActionData,m=e.pendingActionError,c=We(n,o.submission),y=new Request(y.url,{signal:y.signal})}let{shortCircuited:g,loaderData:x,errors:j}=await async function(t,n,a,o,i,s,l,c,d){let h=o||We(n,i),m=i||s||He(h),v=u||f,[y,g]=ye(e.history,R,a,m,n,L,D,F,z,B,v,p,c,d);if(ve(e=>!(a&&a.some(t=>t.route.id===e))||y&&y.some(t=>t.route.id===e)),U=++I,0===y.length&&0===g.length){let e=re();return K(n,r({matches:a,loaderData:{},errors:d||null},c?{actionData:c}:{},e?{fetchers:new Map(R.fetchers)}:{})),{shortCircuited:!0}}if(!M){g.forEach(e=>{let t=R.fetchers.get(e.key),n=$e(void 0,t?t.data:void 0);R.fetchers.set(e.key,n)});let e=c||R.actionData;$(r({navigation:h},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},g.length>0?{fetchers:new Map(R.fetchers)}:{}))}g.forEach(e=>{N.has(e.key)&&te(e.key),e.controller&&N.set(e.key,e.controller)});let b=()=>g.forEach(e=>te(e.key));C&&C.signal.addEventListener("abort",b);let{results:w,loaderResults:x,fetcherResults:S}=await J(R.matches,a,y,g,t);if(t.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",b);g.forEach(e=>N.delete(e.key));let j=Oe(w);if(j){if(j.idx>=y.length){let e=g[j.idx-y.length].key;B.add(e)}return await Y(R,j.result,{replace:l}),{shortCircuited:!0}}let{loaderData:E,errors:_}=ke(R,a,y,x,d,g,S,Q);Q.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&Q.delete(t)})});let k=re(),A=ce(U),P=k||A||g.length>0;return r({loaderData:E,errors:_},P?{fetchers:new Map(R.fetchers)}:{})}(y,n,d,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,h,m);g||(C=null,K(n,r({matches:d},h?{actionData:h}:{},{loaderData:x,errors:j})))}function G(e){return R.fetchers.get(e)||ie}async function Y(o,i,u){let{submission:s,replace:c,isFetchActionRedirect:f}=void 0===u?{}:u;i.revalidate&&(L=!0);let h=d(o.location,i.location,r({_isRedirect:!0},f?{_isFetchActionRedirect:!0}:{}));if(l(h,"Expected a location on the redirect navigation"),n){let n=!1;if(i.reloadDocument)n=!0;else if(se.test(i.location)){const r=e.history.createURL(i.location);n=r.origin!==t.location.origin||null==T(r.pathname,p)}if(n)return void(c?t.location.replace(i.location):t.location.assign(i.location))}C=null;let m=!0===c?a.Replace:a.Push,v=s||He(o.navigation);if(ae.has(i.status)&&v&&Ue(v.formMethod))await V(m,h,{submission:r({},v,{formAction:i.location}),preventScrollReset:O});else if(f)await V(m,h,{overrideNavigation:We(h),fetcherSubmission:v,preventScrollReset:O});else{let e=We(h,v);await V(m,h,{overrideNavigation:e,preventScrollReset:O})}}async function J(t,n,r,a,o){let u=await Promise.all([...r.map(e=>xe("loader",o,e,n,s,i,p)),...a.map(t=>{if(t.matches&&t.match&&t.controller)return xe("loader",Se(e.history,t.path,t.controller.signal),t.match,t.matches,s,i,p);return{type:v.error,error:Pe(404,{pathname:t.path})}})]),l=u.slice(0,r.length),c=u.slice(r.length);return await Promise.all([qe(t,r,l,l.map(()=>o.signal),!1,R.loaderData),qe(t,a.map(e=>e.match),c,a.map(e=>e.controller?e.controller.signal:null),!0)]),{results:u,loaderResults:l,fetcherResults:c}}function X(){L=!0,D.push(...ve()),z.forEach((e,t)=>{N.has(t)&&(F.push(t),te(t))})}function Z(e,t,n){let r=Ae(R.matches,t);ee(e),$({errors:{[r.route.id]:n},fetchers:new Map(R.fetchers)})}function ee(e){let t=R.fetchers.get(e);!N.has(e)||t&&"loading"===t.state&&q.has(e)||te(e),z.delete(e),q.delete(e),B.delete(e),R.fetchers.delete(e)}function te(e){let t=N.get(e);l(t,"Expected fetch controller: "+e),t.abort(),N.delete(e)}function ne(e){for(let t of e){let e=Ke(G(t).data);R.fetchers.set(t,e)}}function re(){let e=[],t=!1;for(let n of B){let r=R.fetchers.get(n);l(r,"Expected fetcher: "+n),"loading"===r.state&&(B.delete(n),e.push(n),t=!0)}return ne(e),t}function ce(e){let t=[];for(let[n,r]of q)if(r<e){let e=R.fetchers.get(n);l(e,"Expected fetcher: "+n),"loading"===e.state&&(te(n),q.delete(n),t.push(n))}return ne(t),t.length>0}function fe(e){R.blockers.delete(e),H.delete(e)}function de(e,t){let n=R.blockers.get(e)||ue;l("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(R.blockers);r.set(e,t),$({blockers:r})}function pe(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===H.size)return;H.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(H.entries()),[o,i]=a[a.length-1],u=R.blockers.get(o);return u&&"proceeding"===u.state?void 0:i({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}function ve(e){let t=[];return Q.forEach((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),Q.delete(r))}),t}function ge(e,t){if(x){return x(e,t.map(e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,R.loaderData)))||e.key}return e.key}function be(e,t){if(w){let n=ge(e,t),r=w[n];if("number"===typeof r)return r}return null}return k={get basename(){return p},get state(){return R},get routes(){return f},initialize:function(){return m=e.history.listen(t=>{let{action:n,location:r,delta:a}=t;if(W)return void(W=!1);c(0===H.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=pe({currentLocation:R.location,nextLocation:r,historyAction:n});return o&&null!=a?(W=!0,e.history.go(-1*a),void de(o,{state:"blocked",location:r,proceed(){de(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset(){let e=new Map(R.blockers);e.set(o,ue),$({blockers:e})}})):V(n,r)}),R.initialized||V(a.Pop,R.location),k},subscribe:function(e){return y.add(e),()=>y.delete(e)},enableScrollRestoration:function(e,t,n){if(w=e,S=t,x=n||null,!j&&R.navigation===oe){j=!0;let e=be(R.location,R.matches);null!=e&&$({restoreScrollPosition:e})}return()=>{w=null,S=null,x=null}},navigate:async function t(n,o){if("number"===typeof n)return void e.history.go(n);let i=he(R.location,R.matches,p,h.v7_prependBasename,n,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:u,submission:s,error:l}=me(h.v7_normalizeFormMethod,!1,i,o),c=R.location,f=d(R.location,u,o&&o.state);f=r({},f,e.history.encodeLocation(f));let m=o&&null!=o.replace?o.replace:void 0,v=a.Push;!0===m?v=a.Replace:!1===m||null!=s&&Ue(s.formMethod)&&s.formAction===R.location.pathname+R.location.search&&(v=a.Replace);let y=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,g=pe({currentLocation:c,nextLocation:f,historyAction:v});if(!g)return await V(v,f,{submission:s,pendingError:l,preventScrollReset:y,replace:o&&o.replace});de(g,{state:"blocked",location:f,proceed(){de(g,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(n,o)},reset(){let e=new Map(R.blockers);e.set(g,ue),$({blockers:e})}})},fetch:function(t,n,a,c){if(o)throw new 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.");N.has(t)&&te(t);let d=u||f,m=he(R.location,R.matches,p,h.v7_prependBasename,a,n,null==c?void 0:c.relative),v=b(d,m,p);if(!v)return void Z(t,n,Pe(404,{pathname:m}));let{path:y,submission:g,error:w}=me(h.v7_normalizeFormMethod,!0,m,c);if(w)return void Z(t,n,w);let x=Qe(v,y);O=!0===(c&&c.preventScrollReset),g&&Ue(g.formMethod)?async function(t,n,a,o,c,d){if(X(),z.delete(t),!o.route.action&&!o.route.lazy){let e=Pe(405,{method:d.formMethod,pathname:a,routeId:n});return void Z(t,n,e)}let h=R.fetchers.get(t),m=function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0};return n}(d,h);R.fetchers.set(t,m),$({fetchers:new Map(R.fetchers)});let v=new AbortController,y=Se(e.history,a,v.signal,d);N.set(t,v);let g=I,w=await xe("action",y,o,c,s,i,p);if(y.signal.aborted)return void(N.get(t)===v&&N.delete(t));if(De(w)){if(N.delete(t),U>g){let e=Ke(void 0);return R.fetchers.set(t,e),void $({fetchers:new Map(R.fetchers)})}{B.add(t);let e=$e(d);return R.fetchers.set(t,e),$({fetchers:new Map(R.fetchers)}),Y(R,w,{submission:d,isFetchActionRedirect:!0})}}if(Te(w))return void Z(t,n,w.error);if(Le(w))throw Pe(400,{type:"defer-action"});let x=R.navigation.location||R.location,S=Se(e.history,x,v.signal),j=u||f,E="idle"!==R.navigation.state?b(j,R.navigation.location,p):R.matches;l(E,"Didn't find any matches after fetcher action");let _=++I;q.set(t,_);let k=$e(d,w.data);R.fetchers.set(t,k);let[A,O]=ye(e.history,R,E,d,x,L,D,F,z,B,j,p,{[o.route.id]:w.data},void 0);O.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=R.fetchers.get(t),r=$e(void 0,n?n.data:void 0);R.fetchers.set(t,r),N.has(t)&&te(t),e.controller&&N.set(t,e.controller)}),$({fetchers:new Map(R.fetchers)});let M=()=>O.forEach(e=>te(e.key));v.signal.addEventListener("abort",M);let{results:T,loaderResults:H,fetcherResults:W}=await J(R.matches,E,A,O,S);if(v.signal.aborted)return;v.signal.removeEventListener("abort",M),q.delete(t),N.delete(t),O.forEach(e=>N.delete(e.key));let V=Oe(T);if(V){if(V.idx>=A.length){let e=O[V.idx-A.length].key;B.add(e)}return Y(R,V.result)}let{loaderData:G,errors:ee}=ke(R,R.matches,A,H,void 0,O,W,Q);if(R.fetchers.has(t)){let e=Ke(w.data);R.fetchers.set(t,e)}let ne=ce(_);"loading"===R.navigation.state&&_>U?(l(P,"Expected pending action"),C&&C.abort(),K(R.navigation.location,{matches:E,loaderData:G,errors:ee,fetchers:new Map(R.fetchers)})):($(r({errors:ee,loaderData:Ce(R.loaderData,G,E,ee)},ne||O.length>0?{fetchers:new Map(R.fetchers)}:{})),L=!1)}(t,n,y,x,v,g):(z.set(t,{routeId:n,path:y}),async function(t,n,r,a,o,u){let c=R.fetchers.get(t),f=$e(u,c?c.data:void 0);R.fetchers.set(t,f),$({fetchers:new Map(R.fetchers)});let d=new AbortController,h=Se(e.history,r,d.signal);N.set(t,d);let m=I,v=await xe("loader",h,a,o,s,i,p);Le(v)&&(v=await Be(v,h.signal,!0)||v);N.get(t)===d&&N.delete(t);if(h.signal.aborted)return;if(De(v)){if(U>m){let e=Ke(void 0);return R.fetchers.set(t,e),void $({fetchers:new Map(R.fetchers)})}return B.add(t),void await Y(R,v)}if(Te(v)){let e=Ae(R.matches,n);return R.fetchers.delete(t),void $({fetchers:new Map(R.fetchers),errors:{[e.route.id]:v.error}})}l(!Le(v),"Unhandled fetcher deferred data");let y=Ke(v.data);R.fetchers.set(t,y),$({fetchers:new Map(R.fetchers)})}(t,n,y,x,v,g))},revalidate:function(){X(),$({revalidation:"loading"}),"submitting"!==R.navigation.state&&("idle"!==R.navigation.state?V(P||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation}):V(R.historyAction,R.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:G,deleteFetcher:ee,dispose:function(){m&&m(),y.clear(),C&&C.abort(),R.fetchers.forEach((e,t)=>ee(t)),R.blockers.forEach((e,t)=>fe(t))},getBlocker:function(e,t){let n=R.blockers.get(e)||ue;return H.get(e)!==t&&H.set(e,t),n},deleteBlocker:fe,_internalFetchControllers:N,_internalActiveDeferreds:Q,_internalSetRoutes:function(e){s={},u=g(e,i,void 0,s)}},k}const fe=Symbol("deferred");function de(e,t){l(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let n,a={},o=(t?t.basename:null)||"/";if(null!=t&&t.mapRouteProperties)n=t.mapRouteProperties;else if(null!=t&&t.detectErrorBoundary){let e=t.detectErrorBoundary;n=t=>({hasErrorBoundary:e(t)})}else n=le;let i=g(e,n,void 0,a);async function u(e,t,i,u,c){l(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(Ue(e.method.toLowerCase())){let l=await async function(e,t,i,u,l){let c;if(i.route.action||i.route.lazy){if(c=await xe("action",e,i,t,a,n,o,{isStaticRequest:!0,isRouteRequest:l,requestContext:u}),e.signal.aborted){throw new Error((l?"queryRoute":"query")+"() call aborted")}}else{let t=Pe(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(l)throw t;c={type:v.error,error:t}}if(De(c))throw new Response(null,{status:c.status,headers:{Location:c.location}});if(Le(c)){let e=Pe(400,{type:"defer-action"});if(l)throw e;c={type:v.error,error:e}}if(l){if(Te(c))throw c.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:c.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(Te(c)){let n=Ae(t,i.route.id);return r({},await s(e,t,u,void 0,{[n.route.id]:c.error}),{statusCode:X(c.error)?c.error.status:500,actionData:null,actionHeaders:r({},c.headers?{[i.route.id]:c.headers}:{})})}let f=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal}),d=await s(f,t,u);return r({},d,c.statusCode?{statusCode:c.statusCode}:{},{actionData:{[i.route.id]:c.data},actionHeaders:r({},c.headers?{[i.route.id]:c.headers}:{})})}(e,i,c||Qe(i,t),u,null!=c);return l}let l=await s(e,i,u,c);return Ne(l)?l:r({},l,{actionData:null,actionHeaders:{}})}catch(d){if((f=d)&&Ne(f.response)&&(f.type===v.data||f.type===v.error)){if(d.type===v.error)throw d.response;return d.response}if(function(e){if(!Ne(e))return!1;let t=e.status,n=e.headers.get("Location");return t>=300&&t<=399&&null!=n}(d))return d;throw d}var f}async function s(e,t,i,u,s){let l=null!=u;if(l&&(null==u||!u.route.loader)&&(null==u||!u.route.lazy))throw Pe(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:null==u?void 0:u.route.id});let c=(u?[u]:ve(t,Object.keys(s||{})[0])).filter(e=>e.route.loader||e.route.lazy);if(0===c.length)return{matches:t,loaderData:t.reduce((e,t)=>Object.assign(e,{[t.route.id]:null}),{}),errors:s||null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let f=await Promise.all([...c.map(r=>xe("loader",e,r,t,a,n,o,{isStaticRequest:!0,isRouteRequest:l,requestContext:i}))]);if(e.signal.aborted){throw new Error((l?"queryRoute":"query")+"() call aborted")}let d=new Map,p=_e(t,c,f,s,d),h=new Set(c.map(e=>e.route.id));return t.forEach(e=>{h.has(e.route.id)||(p.loaderData[e.route.id]=null)}),r({},p,{matches:t,activeDeferreds:d.size>0?Object.fromEntries(d.entries()):null})}return{dataRoutes:i,query:async function(e,t){let{requestContext:n}=void 0===t?{}:t,a=new URL(e.url),s=e.method,l=d("",p(a),null,"default"),c=b(i,l,o);if(!Ie(s)&&"HEAD"!==s){let e=Pe(405,{method:s}),{matches:t,route:n}=Re(i);return{basename:o,location:l,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(!c){let e=Pe(404,{pathname:l.pathname}),{matches:t,route:n}=Re(i);return{basename:o,location:l,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let f=await u(e,l,c,n);return Ne(f)?f:r({location:l,basename:o},f)},queryRoute:async function(e,t){let{routeId:n,requestContext:r}=void 0===t?{}:t,a=new URL(e.url),s=e.method,l=d("",p(a),null,"default"),c=b(i,l,o);if(!Ie(s)&&"HEAD"!==s&&"OPTIONS"!==s)throw Pe(405,{method:s});if(!c)throw Pe(404,{pathname:l.pathname});let f=n?c.find(e=>e.route.id===n):Qe(c,l);if(n&&!f)throw Pe(403,{pathname:l.pathname,routeId:n});if(!f)throw Pe(404,{pathname:l.pathname});let h=await u(e,l,c,r,f);if(Ne(h))return h;let m=h.errors?Object.values(h.errors)[0]:void 0;if(void 0!==m)throw m;if(h.actionData)return Object.values(h.actionData)[0];if(h.loaderData){var v;let e=Object.values(h.loaderData)[0];return null!=(v=h.activeDeferreds)&&v[f.route.id]&&(e[fe]=h.activeDeferreds[f.route.id]),e}}}}function pe(e,t,n){return r({},t,{statusCode:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:n}})}function he(e,t,n,r,a,o,i){let u,s;if(null!=o&&"path"!==i){u=[];for(let e of t)if(u.push(e),e.route.id===o){s=e;break}}else u=t,s=t[t.length-1];let l=I(a||".",N(u).map(e=>e.pathnameBase),T(e.pathname,n)||e.pathname,"path"===i);return null==a&&(l.search=e.search,l.hash=e.hash),null!=a&&""!==a&&"."!==a||!s||!s.route.index||ze(l.search)||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(l.pathname="/"===l.pathname?n:q([n,l.pathname])),p(l)}function me(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!Ie(r.formMethod))return{path:n,error:Pe(405,{method:r.formMethod})};let a,o,i=()=>({path:n,error:Pe(400,{type:"invalid-body"})}),u=r.formMethod||"get",s=e?u.toUpperCase():u.toLowerCase(),c=Me(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Ue(s))return i();let e="string"===typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Ue(s))return i();try{let e="string"===typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(m){return i()}}}if(l("function"===typeof FormData,"FormData is not available in this environment"),r.formData)a=je(r.formData),o=r.formData;else if(r.body instanceof FormData)a=je(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=Ee(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=Ee(a)}catch(m){return i()}let f={formMethod:s,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Ue(f.formMethod))return{path:n,submission:f};let d=h(n);return t&&d.search&&ze(d.search)&&a.append("index",""),d.search="?"+a,{path:p(d),submission:f}}function ve(e,t){let n=e;if(t){let r=e.findIndex(e=>e.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function ye(e,t,n,a,o,i,u,s,l,c,f,d,p,h){let m=h?Object.values(h)[0]:p?Object.values(p)[0]:void 0,v=e.createURL(t.location),y=e.createURL(o),g=h?Object.keys(h)[0]:void 0,w=ve(n,g).filter((e,n)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||u.some(t=>t===e.route.id))return!0;let o=t.matches[n],s=e;return be(e,r({currentUrl:v,currentParams:o.params,nextUrl:y,nextParams:s.params},a,{actionResult:m,defaultShouldRevalidate:i||v.pathname+v.search===y.pathname+y.search||v.search!==y.search||ge(o,s)}))}),x=[];return l.forEach((e,o)=>{if(!n.some(t=>t.route.id===e.routeId))return;let u=b(f,e.path,d);if(!u)return void x.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(o),p=Qe(u,e.path),h=!1;h=!c.has(o)&&(!!s.includes(o)||(l&&"idle"!==l.state&&void 0===l.data?i:be(p,r({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},a,{actionResult:m,defaultShouldRevalidate:i})))),h&&x.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:p,controller:new AbortController})}),[w,x]}function ge(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function be(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"===typeof n)return n}return t.defaultShouldRevalidate}async function we(e,t,n){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let o=n[e.id];l(o,"No route found in manifest");let i={};for(let r in a){let e=void 0!==o[r]&&"hasErrorBoundary"!==r;c(!e,'Route "'+o.id+'" has a static property "'+r+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+r+'" will be ignored.'),e||y.has(r)||(i[r]=a[r])}Object.assign(o,i),Object.assign(o,r({},t(o),{lazy:void 0}))}async function xe(e,t,n,r,a,o,i,u){let s,c,f;void 0===u&&(u={});let d=e=>{let r,a=new Promise((e,t)=>r=t);return f=()=>r(),t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:n.params,context:u.requestContext}),a])};try{let r=n.route[e];if(n.route.lazy)if(r){c=(await Promise.all([d(r),we(n.route,o,a)]))[0]}else{if(await we(n.route,o,a),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Pe(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:v.data,data:void 0}}c=await d(r)}else{if(!r){let e=new URL(t.url);throw Pe(404,{pathname:e.pathname+e.search})}c=await d(r)}l(void 0!==c,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(m){s=v.error,c=m}finally{f&&t.signal.removeEventListener("abort",f)}if(Ne(c)){let e,a=c.status;if(re.has(a)){let e=c.headers.get("Location");if(l(e,"Redirects returned/thrown from loaders/actions must have a Location header"),se.test(e)){if(!u.isStaticRequest){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),a=null!=T(r.pathname,i);r.origin===n.origin&&a&&(e=r.pathname+r.search+r.hash)}}else e=he(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,e);if(u.isStaticRequest)throw c.headers.set("Location",e),c;return{type:v.redirect,status:a,location:e,revalidate:null!==c.headers.get("X-Remix-Revalidate"),reloadDocument:null!==c.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest){throw{type:s===v.error?v.error:v.data,response:c}}let o=c.headers.get("Content-Type");return e=o&&/\bapplication\/json\b/.test(o)?await c.json():await c.text(),s===v.error?{type:s,error:new J(a,c.statusText,e),headers:c.headers}:{type:v.data,data:e,statusCode:c.status,headers:c.headers}}return s===v.error?{type:s,error:c}:Fe(c)?{type:v.deferred,deferredData:c,statusCode:null==(p=c.init)?void 0:p.status,headers:(null==(h=c.init)?void 0:h.headers)&&new Headers(c.init.headers)}:{type:v.data,data:c};var p,h}function Se(e,t,n,r){let a=e.createURL(Me(t)).toString(),o={signal:n};if(r&&Ue(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=je(r.formData):o.body=r.formData}return new Request(a,o)}function je(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"===typeof r?r:r.name);return t}function Ee(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function _e(e,t,n,r,a){let o,i={},u=null,s=!1,c={};return n.forEach((n,f)=>{let d=t[f].route.id;if(l(!De(n),"Cannot handle redirect results in processLoaderData"),Te(n)){let t=Ae(e,d),a=n.error;r&&(a=Object.values(r)[0],r=void 0),u=u||{},null==u[t.route.id]&&(u[t.route.id]=a),i[d]=void 0,s||(s=!0,o=X(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else Le(n)?(a.set(d,n.deferredData),i[d]=n.deferredData.data):i[d]=n.data,null==n.statusCode||200===n.statusCode||s||(o=n.statusCode),n.headers&&(c[d]=n.headers)}),r&&(u=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:u,statusCode:o||200,loaderHeaders:c}}function ke(e,t,n,a,o,i,u,s){let{loaderData:c,errors:f}=_e(t,n,a,o,s);for(let d=0;d<i.length;d++){let{key:t,match:n,controller:a}=i[d];l(void 0!==u&&void 0!==u[d],"Did not find corresponding fetcher result");let o=u[d];if(!a||!a.signal.aborted)if(Te(o)){let a=Ae(e.matches,null==n?void 0:n.route.id);f&&f[a.route.id]||(f=r({},f,{[a.route.id]:o.error})),e.fetchers.delete(t)}else if(De(o))l(!1,"Unhandled fetcher revalidation redirect");else if(Le(o))l(!1,"Unhandled fetcher deferred data");else{let n=Ke(o.data);e.fetchers.set(t,n)}}return{loaderData:c,errors:f}}function Ce(e,t,n,a){let o=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&r.route.loader&&(o[n]=e[n]),a&&a.hasOwnProperty(n))break}return o}function Ae(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 Re(e){let t=e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Pe(e,t){let{pathname:n,routeId:r,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",u="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&n&&r?u="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?u="defer() is not supported in actions":"invalid-body"===o&&(u="Unable to encode submission body")):403===e?(i="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):404===e?(i="Not Found",u='No route matches URL "'+n+'"'):405===e&&(i="Method Not Allowed",a&&n&&r?u="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new J(e||500,i,new Error(u),!0)}function Oe(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(De(n))return{result:n,idx:t}}}function Me(e){return p(r({},"string"===typeof e?h(e):e,{hash:""}))}function Le(e){return e.type===v.deferred}function Te(e){return e.type===v.error}function De(e){return(e&&e.type)===v.redirect}function Fe(e){let t=e;return t&&"object"===typeof t&&"object"===typeof t.data&&"function"===typeof t.subscribe&&"function"===typeof t.cancel&&"function"===typeof t.resolveData}function Ne(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function Ie(e){return ne.has(e.toLowerCase())}function Ue(e){return ee.has(e.toLowerCase())}async function qe(e,t,n,r,a,o){for(let i=0;i<n.length;i++){let u=n[i],s=t[i];if(!s)continue;let c=e.find(e=>e.route.id===s.route.id),f=null!=c&&!ge(c,s)&&void 0!==(o&&o[s.route.id]);if(Le(u)&&(a||f)){let e=r[i];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Be(u,e,a).then(e=>{e&&(n[i]=e||n[i])})}}}async function Be(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:v.data,data:e.deferredData.unwrappedData}}catch(r){return{type:v.error,error:r}}return{type:v.data,data:e.deferredData.data}}}function ze(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Qe(e,t){let n="string"===typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&ze(n||""))return e[e.length-1];let r=N(e);return r[r.length-1]}function He(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function We(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $e(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}},"@tanstack/query-core@4.33.0/build/lib/focusManager.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{FocusManager:()=>o,focusManager:()=>i});var r=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs");class o extends r.Subscribable{constructor(){super(),this.setup=e=>{if(!a.isServer&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(e=>{let{listener:t}=e;t()})}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const i=new o},"@tanstack/query-core@4.33.0/build/lib/hydration.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultShouldDehydrateMutation:()=>a,defaultShouldDehydrateQuery:()=>o,dehydrate:()=>i,hydrate:()=>u});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js");function a(e){return e.state.isPaused}function o(e){return"success"===e.state.status}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[],r=[];if(!1!==t.dehydrateMutations){const r=t.shouldDehydrateMutation||a;e.getMutationCache().getAll().forEach(e=>{r(e)&&n.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))})}if(!1!==t.dehydrateQueries){const n=t.shouldDehydrateQuery||o;e.getQueryCache().getAll().forEach(e=>{n(e)&&r.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))})}return{mutations:n,queries:r}}function u(e,t,n){if("object"!==typeof t||null===t)return;const a=e.getMutationCache(),o=e.getQueryCache(),i=t.mutations||[],u=t.queries||[];i.forEach(t=>{var o;a.build(e,(0,r.default)((0,r.default)({},null==n||null==(o=n.defaultOptions)?void 0:o.mutations),{},{mutationKey:t.mutationKey}),t.state)}),u.forEach(t=>{var a;const i=o.get(t.queryHash),u=(0,r.default)((0,r.default)({},t.state),{},{fetchStatus:"idle"});i?i.state.dataUpdatedAt<u.dataUpdatedAt&&i.setState(u):o.build(e,(0,r.default)((0,r.default)({},null==n||null==(a=n.defaultOptions)?void 0:a.queries),{},{queryKey:t.queryKey,queryHash:t.queryHash}),u)})}},"@tanstack/query-core@4.33.0/build/lib/index.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{CancelledError:()=>r.CancelledError,InfiniteQueryObserver:()=>s.InfiniteQueryObserver,MutationCache:()=>l.MutationCache,MutationObserver:()=>c.MutationObserver,QueriesObserver:()=>u.QueriesObserver,Query:()=>v.Query,QueryCache:()=>a.QueryCache,QueryClient:()=>o.QueryClient,QueryObserver:()=>i.QueryObserver,defaultShouldDehydrateMutation:()=>m.defaultShouldDehydrateMutation,defaultShouldDehydrateQuery:()=>m.defaultShouldDehydrateQuery,dehydrate:()=>m.dehydrate,focusManager:()=>d.focusManager,hashQueryKey:()=>h.hashQueryKey,hydrate:()=>m.hydrate,isCancelledError:()=>r.isCancelledError,isError:()=>h.isError,isServer:()=>h.isServer,matchQuery:()=>h.matchQuery,notifyManager:()=>f.notifyManager,onlineManager:()=>p.onlineManager,parseFilterArgs:()=>h.parseFilterArgs,parseMutationArgs:()=>h.parseMutationArgs,parseMutationFilterArgs:()=>h.parseMutationFilterArgs,parseQueryArgs:()=>h.parseQueryArgs,replaceEqualDeep:()=>h.replaceEqualDeep});var r=n("@tanstack/query-core@4.33.0/build/lib/retryer.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/queryCache.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/queryClient.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/queryObserver.mjs"),u=n("@tanstack/query-core@4.33.0/build/lib/queriesObserver.mjs"),s=n("@tanstack/query-core@4.33.0/build/lib/infiniteQueryObserver.mjs"),l=n("@tanstack/query-core@4.33.0/build/lib/mutationCache.mjs"),c=n("@tanstack/query-core@4.33.0/build/lib/mutationObserver.mjs"),f=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),d=n("@tanstack/query-core@4.33.0/build/lib/focusManager.mjs"),p=n("@tanstack/query-core@4.33.0/build/lib/onlineManager.mjs"),h=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),m=n("@tanstack/query-core@4.33.0/build/lib/hydration.mjs"),v=n("@tanstack/query-core@4.33.0/build/lib/query.mjs")},"@tanstack/query-core@4.33.0/build/lib/infiniteQueryBehavior.mjs":(e,t,n)=>{"use strict";function r(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,u,s;const l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,f=null==c?void 0:c.pageParam,d="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),h=(null==(u=e.state.data)?void 0:u.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[];let v=m,y=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),b=(e,t,n,r)=>(v=r?[t,...v]:[...v,t],r?[n,...e]:[...e,n]),w=(t,n,r,a)=>{if(y)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=o,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?y=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{y=!0}),e.signal}});const u=g(o);return Promise.resolve(u).then(e=>b(t,r,e,a))};let x;if(h.length)if(d){const t="undefined"!==typeof f,n=t?f:a(e.options,h);x=w(h,t,n)}else if(p){const t="undefined"!==typeof f,n=t?f:o(e.options,h);x=w(h,t,n,!0)}else{v=[];const t="undefined"===typeof e.options.getNextPageParam;x=!l||!h[0]||l(h[0],0,h)?w([],t,m[0]):Promise.resolve(b([],m[0],h[0]));for(let n=1;n<h.length;n++)x=x.then(r=>{if(!l||!h[n]||l(h[n],n,h)){const o=t?m[n]:a(e.options,r);return w(r,t,o)}return Promise.resolve(b(r,m[n],h[n]))})}else x=w([]);return x.then(e=>({pages:e,pageParams:v}))}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function o(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function i(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=a(e,t);return"undefined"!==typeof n&&null!==n&&!1!==n}}function u(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=o(e,t);return"undefined"!==typeof n&&null!==n&&!1!==n}}n.r(t),n.d(t,{getNextPageParam:()=>a,getPreviousPageParam:()=>o,hasNextPage:()=>i,hasPreviousPage:()=>u,infiniteQueryBehavior:()=>r})},"@tanstack/query-core@4.33.0/build/lib/infiniteQueryObserver.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{InfiniteQueryObserver:()=>l});var r=n("@babel/runtime@7.20.13/helpers/esm/objectWithoutProperties.js"),a=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),o=n("@tanstack/query-core@4.33.0/build/lib/queryObserver.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/infiniteQueryBehavior.mjs");const u=["pageParam"],s=["pageParam"];class l extends o.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,a.default)((0,a.default)({},e),{},{behavior:(0,i.infiniteQueryBehavior)()}),t)}getOptimisticResult(e){return e.behavior=(0,i.infiniteQueryBehavior)(),super.getOptimisticResult(e)}fetchNextPage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pageParam:t}=e,n=(0,r.default)(e,u);return this.fetch((0,a.default)((0,a.default)({},n),{},{meta:{fetchMore:{direction:"forward",pageParam:t}}}))}fetchPreviousPage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pageParam:t}=e,n=(0,r.default)(e,s);return this.fetch((0,a.default)((0,a.default)({},n),{},{meta:{fetchMore:{direction:"backward",pageParam:t}}}))}createResult(e,t){var n,r,o,u,s,l;const{state:c}=e,f=super.createResult(e,t),{isFetching:d,isRefetching:p}=f,h=d&&"forward"===(null==(n=c.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction),m=d&&"backward"===(null==(o=c.fetchMeta)||null==(u=o.fetchMore)?void 0:u.direction);return(0,a.default)((0,a.default)({},f),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.hasNextPage)(t,null==(s=c.data)?void 0:s.pages),hasPreviousPage:(0,i.hasPreviousPage)(t,null==(l=c.data)?void 0:l.pages),isFetchingNextPage:h,isFetchingPreviousPage:m,isRefetching:p&&!h&&!m})}}},"@tanstack/query-core@4.33.0/build/lib/logger.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultLogger:()=>r});const r=console},"@tanstack/query-core@4.33.0/build/lib/mutation.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Mutation:()=>s,getDefaultState:()=>l});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("@tanstack/query-core@4.33.0/build/lib/logger.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/removable.mjs"),u=n("@tanstack/query-core@4.33.0/build/lib/retryer.mjs");class s extends i.Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||a.defaultLogger,this.observers=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=(0,r.default)((0,r.default)({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=(0,u.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,a,o,i,s,l,c;if(!t){var f,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(f=(d=this.mutationCache.config).onMutate)?void 0:f.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const u=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,u,this.state.variables,this.state.context,this)),await(null==(a=(o=this.options).onSuccess)?void 0:a.call(o,u,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,u,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,u,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:u}),u}catch(j){try{var m,v,y,g,b,w,x,S;throw await(null==(m=(v=this.mutationCache.config).onError)?void 0:m.call(v,j,this.state.variables,this.state.context,this)),await(null==(y=(g=this.options).onError)?void 0:y.call(g,j,this.state.variables,this.state.context)),await(null==(b=(w=this.mutationCache.config).onSettled)?void 0:b.call(w,void 0,j,this.state.variables,this.state.context,this)),await(null==(x=(S=this.options).onSettled)?void 0:x.call(S,void 0,j,this.state.variables,this.state.context)),j}finally{this.dispatch({type:"error",error:j})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return(0,r.default)((0,r.default)({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,r.default)((0,r.default)({},t),{},{isPaused:!0});case"continue":return(0,r.default)((0,r.default)({},t),{},{isPaused:!1});case"loading":return(0,r.default)((0,r.default)({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,u.canFetch)(this.options.networkMode),status:"loading",variables:e.variables});case"success":return(0,r.default)((0,r.default)({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,r.default)((0,r.default)({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"});case"setState":return(0,r.default)((0,r.default)({},t),e.state)}})(this.state),o.notifyManager.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},"@tanstack/query-core@4.33.0/build/lib/mutationCache.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{MutationCache:()=>u});var r=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/mutation.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs");class u extends i.Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new a.Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){r.notifyManager.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find(t=>(0,o.matchMutation)(e,t))}findAll(e){return this.mutations.filter(t=>(0,o.matchMutation)(e,t))}notify(e){r.notifyManager.batch(()=>{this.listeners.forEach(t=>{let{listener:n}=t;n(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return r.notifyManager.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(o.noop)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}},"@tanstack/query-core@4.33.0/build/lib/mutationObserver.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{MutationObserver:()=>s});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("@tanstack/query-core@4.33.0/build/lib/mutation.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs"),u=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs");class s extends i.Subscribable{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),(0,u.shallowEqualObjects)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,r.default)((0,r.default)({},this.options),{},{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:(0,a.getDefaultState)(),t=(0,r.default)((0,r.default)({},e),{},{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t}notify(e){o.notifyManager.batch(()=>{var t,n,r,a;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(a=this.mutateOptions).onSettled)||r.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var o,i,u,s;null==(o=(i=this.mutateOptions).onError)||o.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(s=this.mutateOptions).onSettled)||u.call(s,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(e=>{let{listener:t}=e;t(this.currentResult)})})}}},"@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createNotifyManager:()=>a,notifyManager:()=>o});var r=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs");function a(){let e=[],t=0,n=e=>{e()},a=e=>{e()};const o=a=>{t?e.push(a):(0,r.scheduleMicrotask)(()=>{n(a)})},i=()=>{const t=e;e=[],t.length&&(0,r.scheduleMicrotask)(()=>{a(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o(()=>{e(...n)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e}}}const o=a()},"@tanstack/query-core@4.33.0/build/lib/onlineManager.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{OnlineManager:()=>i,onlineManager:()=>u});var r=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs");const o=["online","offline"];class i extends r.Subscribable{constructor(){super(),this.setup=e=>{if(!a.isServer&&window.addEventListener){const t=()=>e();return o.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{o.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(e=>{let{listener:t}=e;t()})}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}}const u=new i},"@tanstack/query-core@4.33.0/build/lib/queriesObserver.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueriesObserver:()=>u});var r=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/queryObserver.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs");class u extends i.Subscribable{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(e=>{e.destroy()})}setQueries(e,t){this.queries=e,a.notifyManager.batch(()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,t));const a=n.map(e=>e.observer),o=Object.fromEntries(a.map(e=>[e.options.queryHash,e])),i=a.map(e=>e.getCurrentResult()),u=a.some((t,n)=>t!==e[n]);(e.length!==a.length||u)&&(this.observers=a,this.observersMap=o,this.result=i,this.hasListeners()&&((0,r.difference)(e,a).forEach(e=>{e.destroy()}),(0,r.difference)(a,e).forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=>e.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions))}findMatchingObservers(e){const t=this.observers,n=new Map(t.map(e=>[e.options.queryHash,e])),r=e.map(e=>this.client.defaultQueryOptions(e)),a=r.flatMap(e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]}),i=new Set(a.map(e=>e.defaultedQueryOptions.queryHash)),u=r.filter(e=>!i.has(e.queryHash)),s=new Set(a.map(e=>e.observer)),l=t.filter(e=>!s.has(e)),c=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new o.QueryObserver(this.client,t)},f=u.map((e,t)=>{if(e.keepPreviousData){const n=l[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:c(e)}});return a.concat(f).sort((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=(0,r.replaceAt)(this.result,n,t),this.notify())}notify(){a.notifyManager.batch(()=>{this.listeners.forEach(e=>{let{listener:t}=e;t(this.result)})})}}},"@tanstack/query-core@4.33.0/build/lib/query.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Query:()=>l});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/logger.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),u=n("@tanstack/query-core@4.33.0/build/lib/retryer.mjs"),s=n("@tanstack/query-core@4.33.0/build/lib/removable.mjs");class l extends s.Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||o.defaultLogger,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options=(0,r.default)((0,r.default)({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=(0,a.replaceData)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(a.noop).catch(a.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,a.timeUntilStale)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const i=(0,a.getAbortController)(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};l(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var f;(l(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(f=c.fetchOptions)?void 0:f.meta});const d=e=>{var t,n,r,a;((0,u.isCancelledError)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,u.isCancelledError)(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(a=this.cache.config).onSettled)||r.call(a,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,u.createRetryer)({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,a;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(a=this.cache.config).onSettled)||r.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):d(new Error(this.queryHash+" data is undefined"))},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return(0,r.default)((0,r.default)({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,r.default)((0,r.default)({},t),{},{fetchStatus:"paused"});case"continue":return(0,r.default)((0,r.default)({},t),{},{fetchStatus:"fetching"});case"fetch":return(0,r.default)((0,r.default)({},t),{},{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,u.canFetch)(this.options.networkMode)?"fetching":"paused"},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.default)((0,r.default)({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(a=e.dataUpdatedAt)?a:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=e.error;return(0,u.isCancelledError)(o)&&o.revert&&this.revertState?(0,r.default)({},this.revertState):(0,r.default)((0,r.default)({},t),{},{error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return(0,r.default)((0,r.default)({},t),{},{isInvalidated:!0});case"setState":return(0,r.default)((0,r.default)({},t),e.state)}})(this.state),i.notifyManager.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}},"@tanstack/query-core@4.33.0/build/lib/queryCache.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryCache:()=>u});var r=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/query.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs");class u extends i.Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const i=t.queryKey,u=null!=(o=t.queryHash)?o:(0,r.hashQueryKeyByOptions)(i,t);let s=this.get(u);return s||(s=new a.Query({cache:this,logger:e.getLogger(),queryKey:i,queryHash:u,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){o.notifyManager.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,r.parseFilterArgs)(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find(e=>(0,r.matchQuery)(n,e))}findAll(e,t){const[n]=(0,r.parseFilterArgs)(e,t);return Object.keys(n).length>0?this.queries.filter(e=>(0,r.matchQuery)(n,e)):this.queries}notify(e){o.notifyManager.batch(()=>{this.listeners.forEach(t=>{let{listener:n}=t;n(e)})})}onFocus(){o.notifyManager.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){o.notifyManager.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}},"@tanstack/query-core@4.33.0/build/lib/queryClient.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryClient:()=>d});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/queryCache.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/mutationCache.mjs"),u=n("@tanstack/query-core@4.33.0/build/lib/focusManager.mjs"),s=n("@tanstack/query-core@4.33.0/build/lib/onlineManager.mjs"),l=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),c=n("@tanstack/query-core@4.33.0/build/lib/infiniteQueryBehavior.mjs"),f=n("@tanstack/query-core@4.33.0/build/lib/logger.mjs");class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queryCache=e.queryCache||new o.QueryCache,this.mutationCache=e.mutationCache||new i.MutationCache,this.logger=e.logger||f.defaultLogger,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=u.focusManager.subscribe(()=>{u.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=s.onlineManager.subscribe(()=>{s.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=(0,a.parseFilterArgs)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll((0,r.default)((0,r.default)({},e),{},{fetching:!0})).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=(0,a.parseQueryArgs)(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(e=>{let{queryKey:t,state:n}=e;return[t,n.data]})}setQueryData(e,t,n){const o=this.queryCache.find(e),i=null==o?void 0:o.state.data,u=(0,a.functionalUpdate)(t,i);if("undefined"===typeof u)return;const s=(0,a.parseQueryArgs)(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(u,(0,r.default)((0,r.default)({},n),{},{manual:!0}))}setQueriesData(e,t,n){return l.notifyManager.batch(()=>this.getQueryCache().findAll(e).map(e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=(0,a.parseFilterArgs)(e,t),r=this.queryCache;l.notifyManager.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[o,i]=(0,a.parseFilterArgs)(e,t,n),u=this.queryCache,s=(0,r.default)({type:"active"},o);return l.notifyManager.batch(()=>(u.findAll(o).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,n){const[r,o={}]=(0,a.parseFilterArgs)(e,t,n);"undefined"===typeof o.revert&&(o.revert=!0);const i=l.notifyManager.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(i).then(a.noop).catch(a.noop)}invalidateQueries(e,t,n){const[o,i]=(0,a.parseFilterArgs)(e,t,n);return l.notifyManager.batch(()=>{var e,t;if(this.queryCache.findAll(o).forEach(e=>{e.invalidate()}),"none"===o.refetchType)return Promise.resolve();const n=(0,r.default)((0,r.default)({},o),{},{type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"});return this.refetchQueries(n,i)})}refetchQueries(e,t,n){const[o,i]=(0,a.parseFilterArgs)(e,t,n),u=l.notifyManager.batch(()=>this.queryCache.findAll(o).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,(0,r.default)((0,r.default)({},i),{},{cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}}))}));let s=Promise.all(u).then(a.noop);return null!=i&&i.throwOnError||(s=s.catch(a.noop)),s}fetchQuery(e,t,n){const r=(0,a.parseQueryArgs)(e,t,n),o=this.defaultQueryOptions(r);"undefined"===typeof o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(a.noop).catch(a.noop)}fetchInfiniteQuery(e,t,n){const r=(0,a.parseQueryArgs)(e,t,n);return r.behavior=(0,c.infiniteQueryBehavior)(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(a.noop).catch(a.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>(0,a.hashQueryKey)(e)===(0,a.hashQueryKey)(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>(0,a.partialMatchKey)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>(0,a.hashQueryKey)(e)===(0,a.hashQueryKey)(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>(0,a.partialMatchKey)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t=(0,r.default)((0,r.default)((0,r.default)((0,r.default)({},this.defaultOptions.queries),this.getQueryDefaults(null==e?void 0:e.queryKey)),e),{},{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,a.hashQueryKeyByOptions)(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:(0,r.default)((0,r.default)((0,r.default)((0,r.default)({},this.defaultOptions.mutations),this.getMutationDefaults(null==e?void 0:e.mutationKey)),e),{},{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},"@tanstack/query-core@4.33.0/build/lib/queryObserver.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryObserver:()=>f});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("@babel/runtime@7.20.13/helpers/esm/objectWithoutProperties.js"),o=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs"),i=n("@tanstack/query-core@4.33.0/build/lib/notifyManager.mjs"),u=n("@tanstack/query-core@4.33.0/build/lib/focusManager.mjs"),s=n("@tanstack/query-core@4.33.0/build/lib/subscribable.mjs"),l=n("@tanstack/query-core@4.33.0/build/lib/retryer.mjs");const c=["refetchPage"];class f extends s.Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),d(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,o.shallowEqualObjects)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&h(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!(0,o.shallowEqualObjects)(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{refetchPage:t}=e,n=(0,a.default)(e,c);return this.fetch((0,r.default)((0,r.default)({},n),{},{meta:{refetchPage:t}}))}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch((0,r.default)((0,r.default)({},e),{},{cancelRefetch:null==(t=e.cancelRefetch)||t})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(o.noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),o.isServer||this.currentResult.isStale||!(0,o.isValidTimeout)(this.options.staleTime))return;const e=(0,o.timeUntilStale)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!o.isServer&&!1!==this.options.enabled&&(0,o.isValidTimeout)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||u.focusManager.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,a=this.currentResult,i=this.currentResultState,u=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,f=s?this.currentResult:this.previousQueryResult,{state:p}=e;let v,{dataUpdatedAt:y,error:g,errorUpdatedAt:b,fetchStatus:w,status:x}=p,S=!1,j=!1;if(t._optimisticResults){const a=this.hasListeners(),o=!a&&d(e,t),i=a&&h(e,n,t,r);(o||i)&&(w=(0,l.canFetch)(e.options.networkMode)?"fetching":"paused",y||(x="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!p.dataUpdatedAt&&null!=f&&f.isSuccess&&"error"!==x)v=f.data,y=f.dataUpdatedAt,x=f.status,S=!0;else if(t.select&&"undefined"!==typeof p.data)if(a&&p.data===(null==i?void 0:i.data)&&t.select===this.selectFn)v=this.selectResult;else try{this.selectFn=t.select,v=t.select(p.data),v=(0,o.replaceData)(null==a?void 0:a.data,v,t),this.selectResult=v,this.selectError=null}catch(C){0,this.selectError=C}else v=p.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof v&&"loading"===x){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))e=a.data;else if(e="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof e)try{e=t.select(e),this.selectError=null}catch(C){0,this.selectError=C}"undefined"!==typeof e&&(x="success",v=(0,o.replaceData)(null==a?void 0:a.data,e,t),j=!0)}this.selectError&&(g=this.selectError,v=this.selectResult,b=Date.now(),x="error");const E="fetching"===w,_="loading"===x,k="error"===x;return{status:x,fetchStatus:w,isLoading:_,isSuccess:"success"===x,isError:k,isInitialLoading:_&&E,data:v,dataUpdatedAt:y,error:g,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:E,isRefetching:E&&!_,isLoadingError:k&&0===p.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:j,isPreviousData:S,isRefetchError:k&&0!==p.dataUpdatedAt,isStale:m(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,o.shallowEqualObjects)(n,t))return;this.currentResult=n;const a={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(a.listeners=!0),this.notify((0,r.default)((0,r.default)({},a),e))}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,l.isCancelledError)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){i.notifyManager.batch(()=>{var t,n,r,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(a=this.options).onSettled)||r.call(a,this.currentResult.data,null);else if(e.onError){var o,i,u,s;null==(o=(i=this.options).onError)||o.call(i,this.currentResult.error),null==(u=(s=this.options).onSettled)||u.call(s,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(e=>{let{listener:t}=e;t(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function d(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&p(e,t,t.refetchOnMount)}function p(e,t,n){if(!1!==t.enabled){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&m(e,t)}return!1}function h(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&m(e,n)}function m(e,t){return e.isStaleByTime(t.staleTime)}},"@tanstack/query-core@4.33.0/build/lib/removable.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Removable:()=>a});var r=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs");class a{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.isValidTimeout)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.isServer?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},"@tanstack/query-core@4.33.0/build/lib/retryer.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{CancelledError:()=>s,canFetch:()=>u,createRetryer:()=>c,isCancelledError:()=>l});var r=n("@tanstack/query-core@4.33.0/build/lib/focusManager.mjs"),a=n("@tanstack/query-core@4.33.0/build/lib/onlineManager.mjs"),o=n("@tanstack/query-core@4.33.0/build/lib/utils.mjs");function i(e){return Math.min(1e3*2**e,3e4)}function u(e){return"online"!==(null!=e?e:"online")||a.onlineManager.isOnline()}class s{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function l(e){return e instanceof s}function c(e){let t,n,l,c=!1,f=0,d=!1;const p=new Promise((e,t)=>{n=e,l=t}),h=()=>!r.focusManager.isFocused()||"always"!==e.networkMode&&!a.onlineManager.isOnline(),m=r=>{d||(d=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},v=n=>{d||(d=!0,null==e.onError||e.onError(n),null==t||t(),l(n))},y=()=>new Promise(n=>{t=e=>{const t=d||!h();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,d||null==e.onContinue||e.onContinue()}),g=()=>{if(d)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(m).catch(t=>{var n,r;if(d)return;const a=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:i,s="function"===typeof u?u(f,t):u,l=!0===a||"number"===typeof a&&f<a||"function"===typeof a&&a(f,t);!c&&l?(f++,null==e.onFail||e.onFail(f,t),(0,o.sleep)(s).then(()=>{if(h())return y()}).then(()=>{c?v(t):g()})):v(t)})};return u(e.networkMode)?g():y().then(g),{promise:p,cancel:t=>{d||(v(new s(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},"@tanstack/query-core@4.33.0/build/lib/subscribable.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Subscribable:()=>r});class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},"@tanstack/query-core@4.33.0/build/lib/utils.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{difference:()=>s,functionalUpdate:()=>i,getAbortController:()=>P,hashQueryKey:()=>g,hashQueryKeyByOptions:()=>y,isError:()=>C,isPlainArray:()=>j,isPlainObject:()=>E,isQueryKey:()=>k,isServer:()=>a,isValidTimeout:()=>u,matchMutation:()=>v,matchQuery:()=>m,noop:()=>o,parseFilterArgs:()=>p,parseMutationArgs:()=>d,parseMutationFilterArgs:()=>h,parseQueryArgs:()=>f,partialDeepEqual:()=>w,partialMatchKey:()=>b,replaceAt:()=>l,replaceData:()=>O,replaceEqualDeep:()=>x,scheduleMicrotask:()=>R,shallowEqualObjects:()=>S,sleep:()=>A,timeUntilStale:()=>c});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js");const a="undefined"===typeof window||"Deno"in window;function o(){}function i(e,t){return"function"===typeof e?e(t):e}function u(e){return"number"===typeof e&&e>=0&&e!==1/0}function s(e,t){return e.filter(e=>!t.includes(e))}function l(e,t,n){const r=e.slice(0);return r[t]=n,r}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function f(e,t,n){return k(e)?"function"===typeof t?(0,r.default)((0,r.default)({},n),{},{queryKey:e,queryFn:t}):(0,r.default)((0,r.default)({},t),{},{queryKey:e}):e}function d(e,t,n){return k(e)?"function"===typeof t?(0,r.default)((0,r.default)({},n),{},{mutationKey:e,mutationFn:t}):(0,r.default)((0,r.default)({},t),{},{mutationKey:e}):"function"===typeof e?(0,r.default)((0,r.default)({},t),{},{mutationFn:e}):(0,r.default)({},e)}function p(e,t,n){return k(e)?[(0,r.default)((0,r.default)({},t),{},{queryKey:e}),n]:[e||{},t]}function h(e,t,n){return k(e)?[(0,r.default)((0,r.default)({},t),{},{mutationKey:e}),n]:[e||{},t]}function m(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:i,stale:u}=e;if(k(i))if(r){if(t.queryHash!==y(i,t.options))return!1}else if(!b(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof u||t.isStale()===u)&&(("undefined"===typeof a||a===t.state.fetchStatus)&&!(o&&!o(t)))}function v(e,t){const{exact:n,fetching:r,predicate:a,mutationKey:o}=e;if(k(o)){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(o))return!1}else if(!b(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(a&&!a(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){return JSON.stringify(e,(e,t)=>E(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function b(e,t){return w(e,t)}function w(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!w(e[n],t[n])))}function x(e,t){if(e===t)return e;const n=j(e)&&j(t);if(n||E(e)&&E(t)){const r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,i=n?[]:{};let u=0;for(let s=0;s<o;s++){const r=n?s:a[s];i[r]=x(e[r],t[r]),i[r]===e[r]&&u++}return r===o&&u===r?e:i}return t}function S(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function j(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function E(e){if(!_(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!_(n)&&!!n.hasOwnProperty("isPrototypeOf")}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return Array.isArray(e)}function C(e){return e instanceof Error}function A(e){return new Promise(t=>{setTimeout(t,e)})}function R(e){A(0).then(e)}function P(){if("function"===typeof AbortController)return new AbortController}function O(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?x(e,t):t}},"@tanstack/react-query@4.33.0/build/lib/Hydrate.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Hydrate:()=>u,useHydrate:()=>i});var r=n("react@18.2.0/index.js"),a=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),o=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs");function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,o.useQueryClient)({context:t.context}),i=r.useRef(t);i.current=t,r.useMemo(()=>{e&&(0,a.hydrate)(n,e,i.current)},[n,e])}const u=e=>{let{children:t,options:n,state:r}=e;return i(r,n),t}},"@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryClientProvider:()=>s,defaultContext:()=>a,useQueryClient:()=>u});var r=n("react@18.2.0/index.js");const a=r.createContext(void 0),o=r.createContext(!1);function i(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=a),window.ReactQueryClientContext):a)}const u=function(){let{context:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=r.useContext(i(e,r.useContext(o)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n,context:a,contextSharing:u=!1}=e;r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const s=i(a,u);return r.createElement(o.Provider,{value:!a&&u},r.createElement(s.Provider,{value:t},n))}},"@tanstack/react-query@4.33.0/build/lib/QueryErrorResetBoundary.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryErrorResetBoundary:()=>u,useQueryErrorResetBoundary:()=>i});var r=n("react@18.2.0/index.js");function a(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const o=r.createContext(a()),i=()=>r.useContext(o),u=e=>{let{children:t}=e;const[n]=r.useState(()=>a());return r.createElement(o.Provider,{value:n},"function"===typeof t?t(n):t)}},"@tanstack/react-query@4.33.0/build/lib/errorBoundaryUtils.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ensurePreventErrorBoundaryRetry:()=>o,getHasError:()=>u,useClearResetErrorBoundary:()=>i});var r=n("react@18.2.0/index.js"),a=n("@tanstack/react-query@4.33.0/build/lib/utils.mjs");const o=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},i=e=>{r.useEffect(()=>{e.clearReset()},[e])},u=e=>{let{result:t,errorResetBoundary:n,useErrorBoundary:r,query:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&(0,a.shouldThrowError)(r,[t.error,o])}},"@tanstack/react-query@4.33.0/build/lib/index.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{CancelledError:()=>r.CancelledError,Hydrate:()=>u.Hydrate,InfiniteQueryObserver:()=>r.InfiniteQueryObserver,IsRestoringProvider:()=>p.IsRestoringProvider,MutationCache:()=>r.MutationCache,MutationObserver:()=>r.MutationObserver,QueriesObserver:()=>r.QueriesObserver,Query:()=>r.Query,QueryCache:()=>r.QueryCache,QueryClient:()=>r.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,QueryErrorResetBoundary:()=>s.QueryErrorResetBoundary,QueryObserver:()=>r.QueryObserver,defaultContext:()=>i.defaultContext,defaultShouldDehydrateMutation:()=>r.defaultShouldDehydrateMutation,defaultShouldDehydrateQuery:()=>r.defaultShouldDehydrateQuery,dehydrate:()=>r.dehydrate,focusManager:()=>r.focusManager,hashQueryKey:()=>r.hashQueryKey,hydrate:()=>r.hydrate,isCancelledError:()=>r.isCancelledError,isError:()=>r.isError,isServer:()=>r.isServer,matchQuery:()=>r.matchQuery,notifyManager:()=>r.notifyManager,onlineManager:()=>r.onlineManager,parseFilterArgs:()=>r.parseFilterArgs,parseMutationArgs:()=>r.parseMutationArgs,parseMutationFilterArgs:()=>r.parseMutationFilterArgs,parseQueryArgs:()=>r.parseQueryArgs,replaceEqualDeep:()=>r.replaceEqualDeep,useHydrate:()=>u.useHydrate,useInfiniteQuery:()=>d.useInfiniteQuery,useIsFetching:()=>l.useIsFetching,useIsMutating:()=>c.useIsMutating,useIsRestoring:()=>p.useIsRestoring,useMutation:()=>f.useMutation,useQueries:()=>a.useQueries,useQuery:()=>o.useQuery,useQueryClient:()=>i.useQueryClient,useQueryErrorResetBoundary:()=>s.useQueryErrorResetBoundary});n("@tanstack/react-query@4.33.0/build/lib/setBatchUpdatesFn.mjs");var r=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),a=n("@tanstack/react-query@4.33.0/build/lib/useQueries.mjs"),o=n("@tanstack/react-query@4.33.0/build/lib/useQuery.mjs"),i=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs"),u=n("@tanstack/react-query@4.33.0/build/lib/Hydrate.mjs"),s=n("@tanstack/react-query@4.33.0/build/lib/QueryErrorResetBoundary.mjs"),l=n("@tanstack/react-query@4.33.0/build/lib/useIsFetching.mjs"),c=n("@tanstack/react-query@4.33.0/build/lib/useIsMutating.mjs"),f=n("@tanstack/react-query@4.33.0/build/lib/useMutation.mjs"),d=n("@tanstack/react-query@4.33.0/build/lib/useInfiniteQuery.mjs"),p=n("@tanstack/react-query@4.33.0/build/lib/isRestoring.mjs")},"@tanstack/react-query@4.33.0/build/lib/isRestoring.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{IsRestoringProvider:()=>i,useIsRestoring:()=>o});var r=n("react@18.2.0/index.js");const a=r.createContext(!1),o=()=>r.useContext(a),i=a.Provider},"@tanstack/react-query@4.33.0/build/lib/reactBatchedUpdates.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{unstable_batchedUpdates:()=>r});const r=n("react-dom@18.2.0/index.js").unstable_batchedUpdates},"@tanstack/react-query@4.33.0/build/lib/setBatchUpdatesFn.mjs":(e,t,n)=>{"use strict";n.r(t);var r=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),a=n("@tanstack/react-query@4.33.0/build/lib/reactBatchedUpdates.mjs");r.notifyManager.setBatchNotifyFunction(a.unstable_batchedUpdates)},"@tanstack/react-query@4.33.0/build/lib/suspense.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ensureStaleTime:()=>r,fetchOptimistic:()=>i,shouldSuspend:()=>o,willFetch:()=>a});const r=e=>{e.suspense&&"number"!==typeof e.staleTime&&(e.staleTime=1e3)},a=(e,t)=>e.isLoading&&e.isFetching&&!t,o=(e,t,n)=>(null==e?void 0:e.suspense)&&a(t,n),i=(e,t,n)=>t.fetchOptimistic(e).then(t=>{let{data:n}=t;null==e.onSuccess||e.onSuccess(n),null==e.onSettled||e.onSettled(n,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})},"@tanstack/react-query@4.33.0/build/lib/useBaseQuery.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useBaseQuery:()=>f});var r=n("react@18.2.0/index.js"),a=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),o=n("@tanstack/react-query@4.33.0/build/lib/useSyncExternalStore.mjs"),i=n("@tanstack/react-query@4.33.0/build/lib/QueryErrorResetBoundary.mjs"),u=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs"),s=n("@tanstack/react-query@4.33.0/build/lib/isRestoring.mjs"),l=n("@tanstack/react-query@4.33.0/build/lib/errorBoundaryUtils.mjs"),c=n("@tanstack/react-query@4.33.0/build/lib/suspense.mjs");function f(e,t){const n=(0,u.useQueryClient)({context:e.context}),f=(0,s.useIsRestoring)(),d=(0,i.useQueryErrorResetBoundary)(),p=n.defaultQueryOptions(e);p._optimisticResults=f?"isRestoring":"optimistic",p.onError&&(p.onError=a.notifyManager.batchCalls(p.onError)),p.onSuccess&&(p.onSuccess=a.notifyManager.batchCalls(p.onSuccess)),p.onSettled&&(p.onSettled=a.notifyManager.batchCalls(p.onSettled)),(0,c.ensureStaleTime)(p),(0,l.ensurePreventErrorBoundaryRetry)(p,d),(0,l.useClearResetErrorBoundary)(d);const[h]=r.useState(()=>new t(n,p)),m=h.getOptimisticResult(p);if((0,o.useSyncExternalStore)(r.useCallback(e=>{const t=f?()=>{}:h.subscribe(a.notifyManager.batchCalls(e));return h.updateResult(),t},[h,f]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),r.useEffect(()=>{h.setOptions(p,{listeners:!1})},[p,h]),(0,c.shouldSuspend)(p,m,f))throw(0,c.fetchOptimistic)(p,h,d);if((0,l.getHasError)({result:m,errorResetBoundary:d,useErrorBoundary:p.useErrorBoundary,query:h.getCurrentQuery()}))throw m.error;return p.notifyOnChangeProps?m:h.trackResult(m)}},"@tanstack/react-query@4.33.0/build/lib/useInfiniteQuery.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useInfiniteQuery:()=>o});var r=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),a=n("@tanstack/react-query@4.33.0/build/lib/useBaseQuery.mjs");function o(e,t,n){const o=(0,r.parseQueryArgs)(e,t,n);return(0,a.useBaseQuery)(o,r.InfiniteQueryObserver)}},"@tanstack/react-query@4.33.0/build/lib/useIsFetching.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useIsFetching:()=>u});var r=n("react@18.2.0/index.js"),a=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),o=n("@tanstack/react-query@4.33.0/build/lib/useSyncExternalStore.mjs"),i=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs");function u(e,t,n){const[u,s={}]=(0,a.parseFilterArgs)(e,t,n),l=(0,i.useQueryClient)({context:s.context}),c=l.getQueryCache();return(0,o.useSyncExternalStore)(r.useCallback(e=>c.subscribe(a.notifyManager.batchCalls(e)),[c]),()=>l.isFetching(u),()=>l.isFetching(u))}},"@tanstack/react-query@4.33.0/build/lib/useIsMutating.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useIsMutating:()=>u});var r=n("react@18.2.0/index.js"),a=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),o=n("@tanstack/react-query@4.33.0/build/lib/useSyncExternalStore.mjs"),i=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs");function u(e,t,n){const[u,s={}]=(0,a.parseMutationFilterArgs)(e,t,n),l=(0,i.useQueryClient)({context:s.context}),c=l.getMutationCache();return(0,o.useSyncExternalStore)(r.useCallback(e=>c.subscribe(a.notifyManager.batchCalls(e)),[c]),()=>l.isMutating(u),()=>l.isMutating(u))}},"@tanstack/react-query@4.33.0/build/lib/useMutation.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useMutation:()=>l});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js"),a=n("react@18.2.0/index.js"),o=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),i=n("@tanstack/react-query@4.33.0/build/lib/useSyncExternalStore.mjs"),u=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs"),s=n("@tanstack/react-query@4.33.0/build/lib/utils.mjs");function l(e,t,n){const l=(0,o.parseMutationArgs)(e,t,n),f=(0,u.useQueryClient)({context:l.context}),[d]=a.useState(()=>new o.MutationObserver(f,l));a.useEffect(()=>{d.setOptions(l)},[d,l]);const p=(0,i.useSyncExternalStore)(a.useCallback(e=>d.subscribe(o.notifyManager.batchCalls(e)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),h=a.useCallback((e,t)=>{d.mutate(e,t).catch(c)},[d]);if(p.error&&(0,s.shouldThrowError)(d.options.useErrorBoundary,[p.error]))throw p.error;return(0,r.default)((0,r.default)({},p),{},{mutate:h,mutateAsync:p.mutate})}function c(){}},"@tanstack/react-query@4.33.0/build/lib/useQueries.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useQueries:()=>f});var r=n("react@18.2.0/index.js"),a=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),o=n("@tanstack/react-query@4.33.0/build/lib/useSyncExternalStore.mjs"),i=n("@tanstack/react-query@4.33.0/build/lib/QueryClientProvider.mjs"),u=n("@tanstack/react-query@4.33.0/build/lib/isRestoring.mjs"),s=n("@tanstack/react-query@4.33.0/build/lib/QueryErrorResetBoundary.mjs"),l=n("@tanstack/react-query@4.33.0/build/lib/errorBoundaryUtils.mjs"),c=n("@tanstack/react-query@4.33.0/build/lib/suspense.mjs");function f(e){let{queries:t,context:n}=e;const f=(0,i.useQueryClient)({context:n}),d=(0,u.useIsRestoring)(),p=(0,s.useQueryErrorResetBoundary)(),h=r.useMemo(()=>t.map(e=>{const t=f.defaultQueryOptions(e);return t._optimisticResults=d?"isRestoring":"optimistic",t}),[t,f,d]);h.forEach(e=>{(0,c.ensureStaleTime)(e),(0,l.ensurePreventErrorBoundaryRetry)(e,p)}),(0,l.useClearResetErrorBoundary)(p);const[m]=r.useState(()=>new a.QueriesObserver(f,h)),v=m.getOptimisticResult(h);(0,o.useSyncExternalStore)(r.useCallback(e=>d?()=>{}:m.subscribe(a.notifyManager.batchCalls(e)),[m,d]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),r.useEffect(()=>{m.setQueries(h,{listeners:!1})},[h,m]);const y=v.some((e,t)=>(0,c.shouldSuspend)(h[t],e,d))?v.flatMap((e,t)=>{const n=h[t],r=m.getObservers()[t];if(n&&r){if((0,c.shouldSuspend)(n,e,d))return(0,c.fetchOptimistic)(n,r,p);(0,c.willFetch)(e,d)&&(0,c.fetchOptimistic)(n,r,p)}return[]}):[];if(y.length>0)throw Promise.all(y);const g=m.getQueries(),b=v.find((e,t)=>{var n,r;return(0,l.getHasError)({result:e,errorResetBoundary:p,useErrorBoundary:null!=(n=null==(r=h[t])?void 0:r.useErrorBoundary)&&n,query:g[t]})});if(null!=b&&b.error)throw b.error;return v}},"@tanstack/react-query@4.33.0/build/lib/useQuery.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useQuery:()=>o});var r=n("@tanstack/query-core@4.33.0/build/lib/index.mjs"),a=n("@tanstack/react-query@4.33.0/build/lib/useBaseQuery.mjs");function o(e,t,n){const o=(0,r.parseQueryArgs)(e,t,n);return(0,a.useBaseQuery)(o,r.QueryObserver)}},"@tanstack/react-query@4.33.0/build/lib/useSyncExternalStore.mjs":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useSyncExternalStore:()=>r});const r=n("use-sync-external-store@1.2.0/shim/index.js").useSyncExternalStore},"@tanstack/react-query@4.33.0/build/lib/utils.mjs":(e,t,n)=>{"use strict";function r(e,t){return"function"===typeof e?e(...t):!!e}n.r(t),n.d(t,{shouldThrowError:()=>r})},"@xobotyi/scrollbar-width@1.9.5/dist/index.esm.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{scrollbarWidth:()=>r});var r=function(e){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==e&&"number"==typeof r.__cache)return r.__cache;var t=document.createElement("div"),n=t.style;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(t,null);var a=t.clientWidth;if(0!==a)return r.__cache=100-a,document.body.removeChild(t),r.__cache;document.body.removeChild(t)}}},"copy-to-clipboard@3.3.3/index.js":(e,t,n)=>{"use strict";var r=n("toggle-selection@1.0.6/index.js"),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,i,u,s,l,c=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),u=document.createRange(),s=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=a[t.format]||a.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(l),u.selectNodeContents(l),s.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(u):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}},"css-loader@6.7.3/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,o){"string"===typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var u=0;u<this.length;u++){var s=this[u][0];null!=s&&(i[s]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&i[c[0]]||("undefined"!==typeof o&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},"css-loader@6.7.3/dist/runtime/sourceMaps.js":e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"===typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(a," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},"fast-deep-equal@3.1.3/react.js":e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!==a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!==a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!==a--;){var i=o[a];if(("_owner"!==i||!t.$$typeof)&&!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n}},"fast-shallow-equal@1.0.0/index.js":(e,t)=>{var n=Object.keys;t.equal=function(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;for(var r=n(e),a=r.length,o=0;o<a;o++)if(!(r[o]in t))return!1;for(o=0;o<a;o++)if(e[r[o]]!==t[r[o]])return!1;return a===n(t).length}},"history@5.3.0/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Action:()=>r,createBrowserHistory:()=>l,createHashHistory:()=>c,createMemoryHistory:()=>f,createPath:()=>v,parsePath:()=>y});var r,a=n("@babel/runtime@7.20.13/helpers/esm/extends.js");!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var o=function(e){return e};var i="beforeunload",u="hashchange",s="popstate";function l(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,u=n.history;function l(){var e=n.location,t=e.pathname,r=e.search,a=e.hash,i=u.state||{};return[i.idx,o({pathname:t,search:r,hash:a,state:i.usr||null,key:i.key||"default"})]}var c=null;n.addEventListener(s,function(){if(c)x.call(c),c=null;else{var e=r.Pop,t=l(),n=t[0],a=t[1];if(x.length){if(null!=n){var o=g-n;o&&(c={action:e,location:a,retry:function(){C(-1*o)}},C(o))}}else k(e)}});var f=r.Pop,d=l(),g=d[0],b=d[1],w=h(),x=h();function S(e){return"string"===typeof e?e:v(e)}function j(e,t){return void 0===t&&(t=null),o((0,a.default)({pathname:b.pathname,hash:"",search:""},"string"===typeof e?y(e):e,{state:t,key:m()}))}function E(e,t){return[{usr:e.state,key:e.key,idx:t},S(e)]}function _(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function k(e){f=e;var t=l();g=t[0],b=t[1],w.call({action:f,location:b})}function C(e){u.go(e)}null==g&&(g=0,u.replaceState((0,a.default)({},u.state,{idx:g}),""));var A={get action(){return f},get location(){return b},createHref:S,push:function e(t,a){var o=r.Push,i=j(t,a);if(_(o,i,function(){e(t,a)})){var s=E(i,g+1),l=s[0],c=s[1];try{u.pushState(l,"",c)}catch(f){n.location.assign(c)}k(o)}},replace:function e(t,n){var a=r.Replace,o=j(t,n);if(_(a,o,function(){e(t,n)})){var i=E(o,g),s=i[0],l=i[1];u.replaceState(s,"",l),k(a)}},go:C,back:function(){C(-1)},forward:function(){C(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(i,p),function(){t(),x.length||n.removeEventListener(i,p)}}};return A}function c(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,l=n.history;function c(){var e=y(n.location.hash.substr(1)),t=e.pathname,r=void 0===t?"/":t,a=e.search,i=void 0===a?"":a,u=e.hash,s=void 0===u?"":u,c=l.state||{};return[c.idx,o({pathname:r,search:i,hash:s,state:c.usr||null,key:c.key||"default"})]}var f=null;function d(){if(f)j.call(f),f=null;else{var e=r.Pop,t=c(),n=t[0],a=t[1];if(j.length){if(null!=n){var o=w-n;o&&(f={action:e,location:a,retry:function(){R(-1*o)}},R(o))}}else A(e)}}n.addEventListener(s,d),n.addEventListener(u,function(){v(c()[1])!==v(x)&&d()});var g=r.Pop,b=c(),w=b[0],x=b[1],S=h(),j=h();function E(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,a=r.indexOf("#");t=-1===a?r:r.slice(0,a)}return t}()+"#"+("string"===typeof e?e:v(e))}function _(e,t){return void 0===t&&(t=null),o((0,a.default)({pathname:x.pathname,hash:"",search:""},"string"===typeof e?y(e):e,{state:t,key:m()}))}function k(e,t){return[{usr:e.state,key:e.key,idx:t},E(e)]}function C(e,t,n){return!j.length||(j.call({action:e,location:t,retry:n}),!1)}function A(e){g=e;var t=c();w=t[0],x=t[1],S.call({action:g,location:x})}function R(e){l.go(e)}null==w&&(w=0,l.replaceState((0,a.default)({},l.state,{idx:w}),""));var P={get action(){return g},get location(){return x},createHref:E,push:function e(t,a){var o=r.Push,i=_(t,a);if(C(o,i,function(){e(t,a)})){var u=k(i,w+1),s=u[0],c=u[1];try{l.pushState(s,"",c)}catch(f){n.location.assign(c)}A(o)}},replace:function e(t,n){var a=r.Replace,o=_(t,n);if(C(a,o,function(){e(t,n)})){var i=k(o,w),u=i[0],s=i[1];l.replaceState(u,"",s),A(a)}},go:R,back:function(){R(-1)},forward:function(){R(1)},listen:function(e){return S.push(e)},block:function(e){var t=j.push(e);return 1===j.length&&n.addEventListener(i,p),function(){t(),j.length||n.removeEventListener(i,p)}}};return P}function f(e){void 0===e&&(e={});var t=e,n=t.initialEntries,i=void 0===n?["/"]:n,u=t.initialIndex,s=i.map(function(e){return o((0,a.default)({pathname:"/",search:"",hash:"",state:null,key:m()},"string"===typeof e?y(e):e))}),l=d(null==u?s.length-1:u,0,s.length-1),c=r.Pop,f=s[l],p=h(),g=h();function b(e,t){return void 0===t&&(t=null),o((0,a.default)({pathname:f.pathname,search:"",hash:""},"string"===typeof e?y(e):e,{state:t,key:m()}))}function w(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function x(e,t){c=e,f=t,p.call({action:c,location:f})}function S(e){var t=d(l+e,0,s.length-1),n=r.Pop,a=s[t];w(n,a,function(){S(e)})&&(l=t,x(n,a))}var j={get index(){return l},get action(){return c},get location(){return f},createHref:function(e){return"string"===typeof e?e:v(e)},push:function e(t,n){var a=r.Push,o=b(t,n);w(a,o,function(){e(t,n)})&&(l+=1,s.splice(l,s.length,o),x(a,o))},replace:function e(t,n){var a=r.Replace,o=b(t,n);w(a,o,function(){e(t,n)})&&(s[l]=o,x(a,o))},go:S,back:function(){S(-1)},forward:function(){S(1)},listen:function(e){return p.push(e)},block:function(e){return g.push(e)}};return j}function d(e,t,n){return Math.min(Math.max(e,t),n)}function p(e){e.preventDefault(),e.returnValue=""}function h(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function m(){return Math.random().toString(36).substr(2,8)}function v(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function y(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},"hoist-non-react-statics@3.3.2/dist/hoist-non-react-statics.cjs.js":(e,t,n)=>{"use strict";var r=n("react-is@18.2.0/index.js"),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?i:u[e.$$typeof]||a}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=i;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var u=s(t),m=s(n),v=0;v<i.length;++v){var y=i[v];if(!o[y]&&(!r||!r[y])&&(!m||!m[y])&&(!u||!u[y])){var g=d(n,y);try{l(t,y,g)}catch(b){}}}}return t}},"js-cookie@2.2.1/src/js.cookie.js":(e,t,n)=>{var r,a;!function(o){if(void 0===(a="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=a),e.exports=o(),!!0){var i=window.Cookies,u=window.Cookies=o();u.noConflict=function(){return window.Cookies=i,u}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function a(){}function o(t,n,o){if("undefined"!==typeof document){"number"===typeof(o=e({path:"/"},a.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(l){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var u="";for(var s in o)o[s]&&(u+="; "+s,!0!==o[s]&&(u+="="+o[s].split(";")[0]));return document.cookie=t+"="+n+u}}function i(e,n){if("undefined"!==typeof document){for(var a={},o=document.cookie?document.cookie.split("; "):[],i=0;i<o.length;i++){var u=o[i].split("="),s=u.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var l=t(u[0]);if(s=(r.read||r)(s,l)||t(s),n)try{s=JSON.parse(s)}catch(c){}if(a[l]=s,e===l)break}catch(c){}}return e?a[e]:a}}return a.set=o,a.get=function(e){return i(e,!1)},a.getJSON=function(e){return i(e,!0)},a.remove=function(t,n){o(t,"",e(n,{expires:-1}))},a.defaults={},a.withConverter=n,a}(function(){})})},"js-plugin@1.1.0/plugin.js":e=>{var t=[],n={},r={},a="undefined"!==typeof window&&"undefined"!==typeof window.document,o="undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node,i=a&&document.location.search.includes("JS_PLUGIN_DEBUG")||o&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.JS_PLUGIN_DEBUG;function u(e,t){for(var n=t.split("."),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return e}e.exports={config:{},register:function(e){if(!e.name)throw console.log("Every plugin should have a name."),console.log(e),new Error("Every plugin should have a name.");if(n[e.name])throw new Error('Plugin "'+e.name+'" already exits.');r={};var a=(t=t.slice()).length;t.forEach((t,n)=>{t.deps&&t.deps.indexOf(e.name)>=0&&(a=Math.min(a,n))}),t.splice(a,0,e),n[e.name]=e,e.initialize&&e.initialize()},unregister:function(e){var a=n[e];if(!a)throw new Error('Plugin "'+e+"\" does't exist.");var o=t.indexOf(a);if(-1===o)throw new Error('Plugin "'+e+"\" does't exist in _plugins but in _byName. This seems to be a bug of js-plugin.");r={},delete n[e],(t=t.slice()).splice(o,1)},getPlugin:function(e){return n[e]},getPlugins:function(e){return e||(e="."),r[e]||(r[e]=t.filter(t=>{if(t.deps&&t.deps.some(e=>!n[e])){const e=t.deps.filter(e=>!n[e]);return console.log("Plugin ".concat(t.name," is not loaded because its deps do not exist: ").concat(e,".")),!1}return"."===e||function(e,t){for(var n=t.split("."),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return!0}(t,e)})),r[e]},processRawPlugins:function(e){e(t),r={}},invoke:function(e){var t=Array.prototype.slice.call(arguments,1);if(!e)throw new Error("Invoke on plugin should have prop argument");var n=/^!/.test(e),r=this.config.throws||/!$/.test(e),a=(e=e.replace(/^!|!$/g,"")).split(".");a.pop();var o=a.join(".");return this.getPlugins(e).map(function(a){var s,l=u(a,e);if(!((s=l).constructor&&s.call&&s.apply)||n)return l;try{return i&&console.log("Before",a.name,e,t),l.apply(u(a,o),t)}catch(c){if(console.log("Failed to invoke plugin: "+a.name+"!"+e),r)throw c;console.log(c)}finally{i&&console.log("After ",a.name,e,t)}return null})},sort:function(e,t){t=t||"order",e.sort((e,n)=>(e.hasOwnProperty(t)?e[t]:1e6)-(n.hasOwnProperty(t)?n[t]:1e6))}}},"lodash@4.17.21/lodash.js":function(e,t,n){var r;e=n.nmd(e),function(){var a,o="Expected a function",i="__lodash_hash_undefined__",u="__lodash_placeholder__",s=16,l=32,c=64,f=128,d=256,p=1/0,h=9007199254740991,m=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",c],["rearg",d]],g="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",S="[object Error]",j="[object Function]",E="[object GeneratorFunction]",_="[object Map]",k="[object Number]",C="[object Object]",A="[object Promise]",R="[object RegExp]",P="[object Set]",O="[object String]",M="[object Symbol]",L="[object WeakMap]",T="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",N="[object Float64Array]",I="[object Int8Array]",U="[object Int16Array]",q="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",Q="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Y=RegExp(V.source),J=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ae.source),ie=/^\s+/,ue=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,je=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['\u2019]",Me="["+Ee+"]",Le="["+Pe+"]",Te="["+_e+"]",De="\\d+",Fe="["+ke+"]",Ne="["+Ce+"]",Ie="[^"+Ee+Pe+De+ke+Ce+Ae+"]",Ue="\\ud83c[\\udffb-\\udfff]",qe="[^"+Ee+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Qe="["+Ae+"]",He="\\u200d",We="(?:"+Ne+"|"+Ie+")",$e="(?:"+Qe+"|"+Ie+")",Ke="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ve="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Te+"|"+Ue+")"+"?",Ye="["+Re+"]?",Je=Ye+Ge+("(?:"+He+"(?:"+[qe,Be,ze].join("|")+")"+Ye+Ge+")*"),Xe="(?:"+[Fe,Be,ze].join("|")+")"+Je,Ze="(?:"+[qe+Te+"?",Te,Be,ze,Me].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(Te,"g"),nt=RegExp(Ue+"(?="+Ue+")|"+Ze+Je,"g"),rt=RegExp([Qe+"?"+Ne+"+"+Ke+"(?="+[Le,Qe,"$"].join("|")+")",$e+"+"+Ve+"(?="+[Le,Qe+We,"$"].join("|")+")",Qe+"?"+We+"+"+Ke,Qe+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Xe].join("|"),"g"),at=RegExp("["+He+Ee+_e+Re+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,st={};st[F]=st[N]=st[I]=st[U]=st[q]=st[B]=st[z]=st[Q]=st[H]=!0,st[g]=st[b]=st[T]=st[w]=st[D]=st[x]=st[S]=st[j]=st[_]=st[k]=st[C]=st[R]=st[P]=st[O]=st[L]=!1;var lt={};lt[g]=lt[b]=lt[T]=lt[D]=lt[w]=lt[x]=lt[F]=lt[N]=lt[I]=lt[U]=lt[q]=lt[_]=lt[k]=lt[C]=lt[R]=lt[P]=lt[O]=lt[M]=lt[B]=lt[z]=lt[Q]=lt[H]=!0,lt[S]=lt[j]=lt[L]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ht||Function("return this")(),vt=t&&!t.nodeType&&t,yt=vt&&e&&!e.nodeType&&e,gt=yt&&yt.exports===vt,bt=gt&&pt.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,jt=wt&&wt.isMap,Et=wt&&wt.isRegExp,_t=wt&&wt.isSet,kt=wt&&wt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function Lt(e,t){return!!(null==e?0:e.length)&&Qt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function Ft(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Nt(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}function It(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var qt=Kt("length");function Bt(e,t,n){var r;return n(e,function(e,n,a){if(t(e,n,a))return r=n,!1}),r}function zt(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function Qt(e,t,n){return t===t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Wt,n)}function Ht(e,t,n,r){for(var a=n-1,o=e.length;++a<o;)if(r(e[a],t))return a;return-1}function Wt(e){return e!==e}function $t(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function Kt(e){return function(t){return null==t?a:t[e]}}function Vt(e){return function(t){return null==e?a:e[t]}}function Gt(e,t,n,r,a){return a(e,function(e,a,o){n=r?(r=!1,e):t(n,e,a,o)}),n}function Yt(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==a&&(n=n===a?i:n+i)}return n}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,vn(e)+1).replace(ie,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Qt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var an=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(e){return"\\"+ct[e]}function sn(e){return at.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function cn(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n];i!==t&&i!==u||(e[n]=u,o[a++]=n)}return o}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function hn(e){return sn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):qt(e)}function mn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var yn=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gn=function e(t){var n=(t=null==t?mt:gn.defaults(mt.Object(),t,gn.pick(mt,it))).Array,r=t.Date,ue=t.Error,Ee=t.Function,_e=t.Math,ke=t.Object,Ce=t.RegExp,Ae=t.String,Re=t.TypeError,Pe=n.prototype,Oe=Ee.prototype,Me=ke.prototype,Le=t["__core-js_shared__"],Te=Oe.toString,De=Me.hasOwnProperty,Fe=0,Ne=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ie=Me.toString,Ue=Te.call(ke),qe=mt._,Be=Ce("^"+Te.call(De).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=gt?t.Buffer:a,Qe=t.Symbol,He=t.Uint8Array,We=ze?ze.allocUnsafe:a,$e=cn(ke.getPrototypeOf,ke),Ke=ke.create,Ve=Me.propertyIsEnumerable,Ge=Pe.splice,Ye=Qe?Qe.isConcatSpreadable:a,Je=Qe?Qe.iterator:a,Xe=Qe?Qe.toStringTag:a,Ze=function(){try{var e=fo(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,at=r&&r.now!==mt.Date.now&&r.now,ct=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=_e.ceil,ht=_e.floor,vt=ke.getOwnPropertySymbols,yt=ze?ze.isBuffer:a,bt=t.isFinite,wt=Pe.join,qt=cn(ke.keys,ke),Vt=_e.max,bn=_e.min,wn=r.now,xn=t.parseInt,Sn=_e.random,jn=Pe.reverse,En=fo(t,"DataView"),_n=fo(t,"Map"),kn=fo(t,"Promise"),Cn=fo(t,"Set"),An=fo(t,"WeakMap"),Rn=fo(ke,"create"),Pn=An&&new An,On={},Mn=Io(En),Ln=Io(_n),Tn=Io(kn),Dn=Io(Cn),Fn=Io(An),Nn=Qe?Qe.prototype:a,In=Nn?Nn.valueOf:a,Un=Nn?Nn.toString:a;function qn(e){if(tu(e)&&!Hi(e)&&!(e instanceof Hn)){if(e instanceof Qn)return e;if(De.call(e,"__wrapped__"))return Uo(e)}return new Qn(e)}var Bn=function(){function e(){}return function(t){if(!eu(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function zn(){}function Qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new $n(e);this.size=t.size}function Yn(e,t){var n=Hi(e),r=!n&&Qi(e),a=!n&&!r&&Vi(e),o=!n&&!r&&!a&&lu(e),i=n||r||a||o,u=i?Jt(e.length,Ae):[],s=u.length;for(var l in e)!t&&!De.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bo(l,s))||u.push(l);return u}function Jn(e){var t=e.length;return t?e[Vr(0,t-1)]:a}function Xn(e,t){return Do(Ra(e),ur(t,0,e.length))}function Zn(e){return Do(Ra(e))}function er(e,t,n){(n!==a&&!qi(e[t],n)||n===a&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];De.call(e,t)&&qi(r,n)&&(n!==a||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(qi(e[n][0],t))return n;return-1}function rr(e,t,n,r){return dr(e,function(e,a,o){t(r,e,n(e),o)}),r}function ar(e,t){return e&&Pa(t,Ou(t),e)}function or(e,t,n){"__proto__"==t&&Ze?Ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var r=-1,o=t.length,i=n(o),u=null==e;++r<o;)i[r]=u?a:ku(e,t[r]);return i}function ur(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,i){var u,s=1&t,l=2&t,c=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!eu(e))return e;var f=Hi(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return Ra(e,u)}else{var d=mo(e),p=d==j||d==E;if(Vi(e))return ja(e,s);if(d==C||d==g||p&&!o){if(u=l||p?{}:yo(e),!s)return l?function(e,t){return Pa(e,ho(e),t)}(e,function(e,t){return e&&Pa(t,Mu(t),e)}(u,e)):function(e,t){return Pa(e,po(e),t)}(e,ar(u,e))}else{if(!lt[d])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case T:return Ea(e);case w:case x:return new r(+e);case D:return function(e,t){var n=t?Ea(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case N:case I:case U:case q:case B:case z:case Q:case H:return _a(e,n);case _:return new r;case k:case O:return new r(e);case R:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case M:return a=e,In?ke(In.call(a)):{}}var a}(e,d,s)}}i||(i=new Gn);var h=i.get(e);if(h)return h;i.set(e,u),iu(e)?e.forEach(function(r){u.add(sr(r,t,n,r,e,i))}):nu(e)&&e.forEach(function(r,a){u.set(a,sr(r,t,n,a,e,i))});var m=f?a:(c?l?ao:ro:l?Mu:Ou)(e);return Rt(m||e,function(r,a){m&&(r=e[a=r]),tr(u,a,sr(r,t,n,a,e,i))}),u}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Re(o);return Oo(function(){e.apply(a,n)},t)}function fr(e,t,n,r){var a=-1,o=Lt,i=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=Dt(t,Zt(n))),r?(o=Tt,i=!1):t.length>=200&&(o=tn,i=!1,t=new Vn(t));e:for(;++a<u;){var c=e[a],f=null==n?c:n(c);if(c=r||0!==c?c:0,i&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;s.push(c)}else o(t,f,r)||s.push(c)}return s}qn.templateSettings={escape:X,evaluate:Z,interpolate:ee,variable:"",imports:{_:qn}},qn.prototype=zn.prototype,qn.prototype.constructor=qn,Qn.prototype=Bn(zn.prototype),Qn.prototype.constructor=Qn,Hn.prototype=Bn(zn.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===i?a:n}return De.call(t,e)?t[e]:a},Wn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==a:De.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===a?i:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},$n.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?a:t[n][1]},$n.prototype.has=function(e){return nr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(_n||$n),string:new Wn}},Kn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return lo(this,e).get(e)},Kn.prototype.has=function(e){return lo(this,e).has(e)},Kn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,i),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new $n,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var dr=La(wr),pr=La(xr,!0);function hr(e,t){var n=!0;return dr(e,function(e,r,a){return n=!!t(e,r,a)}),n}function mr(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],u=t(i);if(null!=u&&(s===a?u===u&&!su(u):n(u,s)))var s=u,l=i}return l}function vr(e,t){var n=[];return dr(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}function yr(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=go),a||(a=[]);++o<i;){var u=e[o];t>0&&n(u)?t>1?yr(u,t-1,n,r,a):Ft(a,u):r||(a[a.length]=u)}return a}var gr=Ta(),br=Ta(!0);function wr(e,t){return e&&gr(e,t,Ou)}function xr(e,t){return e&&br(e,t,Ou)}function Sr(e,t){return Mt(t,function(t){return Ji(e[t])})}function jr(e,t){for(var n=0,r=(t=ba(t,e)).length;null!=e&&n<r;)e=e[No(t[n++])];return n&&n==r?e:a}function Er(e,t,n){var r=t(e);return Hi(e)?r:Ft(r,n(e))}function _r(e){return null==e?e===a?"[object Undefined]":"[object Null]":Xe&&Xe in ke(e)?function(e){var t=De.call(e,Xe),n=e[Xe];try{e[Xe]=a;var r=!0}catch(i){}var o=Ie.call(e);r&&(t?e[Xe]=n:delete e[Xe]);return o}(e):function(e){return Ie.call(e)}(e)}function kr(e,t){return e>t}function Cr(e,t){return null!=e&&De.call(e,t)}function Ar(e,t){return null!=e&&t in ke(e)}function Rr(e,t,r){for(var o=r?Tt:Lt,i=e[0].length,u=e.length,s=u,l=n(u),c=1/0,f=[];s--;){var d=e[s];s&&t&&(d=Dt(d,Zt(t))),c=bn(d.length,c),l[s]=!r&&(t||i>=120&&d.length>=120)?new Vn(s&&d):a}d=e[0];var p=-1,h=l[0];e:for(;++p<i&&f.length<c;){var m=d[p],v=t?t(m):m;if(m=r||0!==m?m:0,!(h?tn(h,v):o(f,v,r))){for(s=u;--s;){var y=l[s];if(!(y?tn(y,v):o(e[s],v,r)))continue e}h&&h.push(v),f.push(m)}}return f}function Pr(e,t,n){var r=null==(e=Ao(e,t=ba(t,e)))?e:e[No(Yo(t))];return null==r?a:Ct(r,e,n)}function Or(e){return tu(e)&&_r(e)==g}function Mr(e,t,n,r,o){return e===t||(null==e||null==t||!tu(e)&&!tu(t)?e!==e&&t!==t:function(e,t,n,r,o,i){var u=Hi(e),s=Hi(t),l=u?b:mo(e),c=s?b:mo(t),f=(l=l==g?C:l)==C,d=(c=c==g?C:c)==C,p=l==c;if(p&&Vi(e)){if(!Vi(t))return!1;u=!0,f=!1}if(p&&!f)return i||(i=new Gn),u||lu(e)?to(e,t,n,r,o,i):function(e,t,n,r,a,o,i){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case w:case x:case k:return qi(+e,+t);case S:return e.name==t.name&&e.message==t.message;case R:case O:return e==t+"";case _:var u=ln;case P:var s=1&r;if(u||(u=dn),e.size!=t.size&&!s)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var c=to(u(e),u(t),r,a,o,i);return i.delete(e),c;case M:if(In)return In.call(e)==In.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var h=f&&De.call(e,"__wrapped__"),m=d&&De.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,y=m?t.value():t;return i||(i=new Gn),o(v,y,n,r,i)}}if(!p)return!1;return i||(i=new Gn),function(e,t,n,r,o,i){var u=1&n,s=ro(e),l=s.length,c=ro(t),f=c.length;if(l!=f&&!u)return!1;var d=l;for(;d--;){var p=s[d];if(!(u?p in t:De.call(t,p)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);var y=u;for(;++d<l;){var g=e[p=s[d]],b=t[p];if(r)var w=u?r(b,g,p,t,e,i):r(g,b,p,e,t,i);if(!(w===a?g===b||o(g,b,n,r,i):w)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(v=!1)}return i.delete(e),i.delete(t),v}(e,t,n,r,o,i)}(e,t,n,r,Mr,o))}function Lr(e,t,n,r){var o=n.length,i=o,u=!r;if(null==e)return!i;for(e=ke(e);o--;){var s=n[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],f=s[1];if(u&&s[2]){if(c===a&&!(l in e))return!1}else{var d=new Gn;if(r)var p=r(c,f,l,e,t,d);if(!(p===a?Mr(f,c,3,r,d):p))return!1}}return!0}function Tr(e){return!(!eu(e)||(t=e,Ne&&Ne in t))&&(Ji(e)?Be:ge).test(Io(e));var t}function Dr(e){return"function"==typeof e?e:null==e?rs:"object"==typeof e?Hi(e)?Br(e[0],e[1]):qr(e):ds(e)}function Fr(e){if(!Eo(e))return qt(e);var t=[];for(var n in ke(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!eu(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}function Ir(e,t){return e<t}function Ur(e,t){var r=-1,a=$i(e)?n(e.length):[];return dr(e,function(e,n,o){a[++r]=t(e,n,o)}),a}function qr(e){var t=co(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Br(e,t){return xo(e)&&_o(t)?ko(No(e),t):function(n){var r=ku(n,e);return r===a&&r===t?Cu(n,e):Mr(t,r,3)}}function zr(e,t,n,r,o){e!==t&&gr(t,function(i,u){if(o||(o=new Gn),eu(i))!function(e,t,n,r,o,i,u){var s=Ro(e,n),l=Ro(t,n),c=u.get(l);if(c)return void er(e,n,c);var f=i?i(s,l,n+"",e,t,u):a,d=f===a;if(d){var p=Hi(l),h=!p&&Vi(l),m=!p&&!h&&lu(l);f=l,p||h||m?Hi(s)?f=s:Ki(s)?f=Ra(s):h?(d=!1,f=ja(l,!0)):m?(d=!1,f=_a(l,!0)):f=[]:au(l)||Qi(l)?(f=s,Qi(s)?f=yu(s):eu(s)&&!Ji(s)||(f=yo(l))):d=!1}d&&(u.set(l,f),o(f,l,r,i,u),u.delete(l));er(e,n,f)}(e,t,u,n,zr,r,o);else{var s=r?r(Ro(e,u),i,u+"",e,t,o):a;s===a&&(s=i),er(e,u,s)}},Mu)}function Qr(e,t){var n=e.length;if(n)return bo(t+=t<0?n:0,n)?e[t]:a}function Hr(e,t,n){t=t.length?Dt(t,function(e){return Hi(e)?function(t){return jr(t,1===e.length?e[0]:e)}:e}):[rs];var r=-1;t=Dt(t,Zt(so()));var a=Ur(e,function(e,n,a){var o=Dt(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,function(e,t){return function(e,t,n){var r=-1,a=e.criteria,o=t.criteria,i=a.length,u=n.length;for(;++r<i;){var s=ka(a[r],o[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Wr(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],u=jr(e,i);n(u,i)&&Zr(o,ba(i,e),u)}return o}function $r(e,t,n,r){var a=r?Ht:Qt,o=-1,i=t.length,u=e;for(e===t&&(t=Ra(t)),n&&(u=Dt(e,Zt(n)));++o<i;)for(var s=0,l=t[o],c=n?n(l):l;(s=a(u,c,s,r))>-1;)u!==e&&Ge.call(u,s,1),Ge.call(e,s,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;bo(a)?Ge.call(e,a,1):fa(e,a)}}return e}function Vr(e,t){return e+ht(Sn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Mo(Co(e,t,rs),e+"")}function Jr(e){return Jn(qu(e))}function Xr(e,t){var n=qu(e);return Do(n,ur(t,0,n.length))}function Zr(e,t,n,r){if(!eu(e))return e;for(var o=-1,i=(t=ba(t,e)).length,u=i-1,s=e;null!=s&&++o<i;){var l=No(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=u){var f=s[l];(c=r?r(f,l,s):a)===a&&(c=eu(f)?f:bo(t[o+1])?[]:{})}tr(s,l,c),s=s[l]}return e}var ea=Pn?function(e,t){return Pn.set(e,t),e}:rs,ta=Ze?function(e,t){return Ze(e,"toString",{configurable:!0,enumerable:!1,value:es(t),writable:!0})}:rs;function na(e){return Do(qu(e))}function ra(e,t,r){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=n(o);++a<o;)i[a]=e[a+t];return i}function aa(e,t){var n;return dr(e,function(e,r,a){return!(n=t(e,r,a))}),!!n}function oa(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t===t&&a<=2147483647){for(;r<a;){var o=r+a>>>1,i=e[o];null!==i&&!su(i)&&(n?i<=t:i<t)?r=o+1:a=o}return a}return ia(e,t,rs,n)}function ia(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var u=(t=n(t))!==t,s=null===t,l=su(t),c=t===a;o<i;){var f=ht((o+i)/2),d=n(e[f]),p=d!==a,h=null===d,m=d===d,v=su(d);if(u)var y=r||m;else y=c?m&&(r||p):s?m&&p&&(r||!h):l?m&&p&&!h&&(r||!v):!h&&!v&&(r?d<=t:d<t);y?o=f+1:i=f}return bn(i,4294967294)}function ua(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var i=e[n],u=t?t(i):i;if(!n||!qi(u,s)){var s=u;o[a++]=0===i?0:i}}return o}function sa(e){return"number"==typeof e?e:su(e)?m:+e}function la(e){if("string"==typeof e)return e;if(Hi(e))return Dt(e,la)+"";if(su(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ca(e,t,n){var r=-1,a=Lt,o=e.length,i=!0,u=[],s=u;if(n)i=!1,a=Tt;else if(o>=200){var l=t?null:Ga(e);if(l)return dn(l);i=!1,a=tn,s=new Vn}else s=t?[]:u;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,i&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),u.push(c)}else a(s,f,n)||(s!==u&&s.push(f),u.push(c))}return u}function fa(e,t){return null==(e=Ao(e,t=ba(t,e)))||delete e[No(Yo(t))]}function da(e,t,n,r){return Zr(e,t,n(jr(e,t)),r)}function pa(e,t,n,r){for(var a=e.length,o=r?a:-1;(r?o--:++o<a)&&t(e[o],o,e););return n?ra(e,r?0:o,r?o+1:a):ra(e,r?o+1:0,r?a:o)}function ha(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Nt(t,function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))},n)}function ma(e,t,r){var a=e.length;if(a<2)return a?ca(e[0]):[];for(var o=-1,i=n(a);++o<a;)for(var u=e[o],s=-1;++s<a;)s!=o&&(i[o]=fr(i[o]||u,e[s],t,r));return ca(yr(i,1),t,r)}function va(e,t,n){for(var r=-1,o=e.length,i=t.length,u={};++r<o;){var s=r<i?t[r]:a;n(u,e[r],s)}return u}function ya(e){return Ki(e)?e:[]}function ga(e){return"function"==typeof e?e:rs}function ba(e,t){return Hi(e)?e:xo(e,t)?[e]:Fo(gu(e))}var wa=Yr;function xa(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:ra(e,t,n)}var Sa=nt||function(e){return mt.clearTimeout(e)};function ja(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ea(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function _a(e,t){var n=t?Ea(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ka(e,t){if(e!==t){var n=e!==a,r=null===e,o=e===e,i=su(e),u=t!==a,s=null===t,l=t===t,c=su(t);if(!s&&!c&&!i&&e>t||i&&u&&l&&!s&&!c||r&&u&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!u&&o||!l)return-1}return 0}function Ca(e,t,r,a){for(var o=-1,i=e.length,u=r.length,s=-1,l=t.length,c=Vt(i-u,0),f=n(l+c),d=!a;++s<l;)f[s]=t[s];for(;++o<u;)(d||o<i)&&(f[r[o]]=e[o]);for(;c--;)f[s++]=e[o++];return f}function Aa(e,t,r,a){for(var o=-1,i=e.length,u=-1,s=r.length,l=-1,c=t.length,f=Vt(i-s,0),d=n(f+c),p=!a;++o<f;)d[o]=e[o];for(var h=o;++l<c;)d[h+l]=t[l];for(;++u<s;)(p||o<i)&&(d[h+r[u]]=e[o++]);return d}function Ra(e,t){var r=-1,a=e.length;for(t||(t=n(a));++r<a;)t[r]=e[r];return t}function Pa(e,t,n,r){var o=!n;n||(n={});for(var i=-1,u=t.length;++i<u;){var s=t[i],l=r?r(n[s],e[s],s,n,e):a;l===a&&(l=e[s]),o?or(n,s,l):tr(n,s,l)}return n}function Oa(e,t){return function(n,r){var a=Hi(n)?At:rr,o=t?t():{};return a(n,e,so(r,2),o)}}function Ma(e){return Yr(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&wo(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=ke(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}function La(e,t){return function(n,r){if(null==n)return n;if(!$i(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=ke(n);(t?o--:++o<a)&&!1!==r(i[o],o,i););return n}}function Ta(e){return function(t,n,r){for(var a=-1,o=ke(t),i=r(t),u=i.length;u--;){var s=i[e?u:++a];if(!1===n(o[s],s,o))break}return t}}function Da(e){return function(t){var n=sn(t=gu(t))?mn(t):a,r=n?n[0]:t.charAt(0),o=n?xa(n,1).join(""):t.slice(1);return r[e]()+o}}function Fa(e){return function(t){return Nt(Ju(Qu(t).replace(et,"")),e,"")}}function Na(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return eu(r)?r:n}}function Ia(e){return function(t,n,r){var o=ke(t);if(!$i(t)){var i=so(n,3);t=Ou(t),n=function(e){return i(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[i?t[u]:u]:a}}function Ua(e){return no(function(t){var n=t.length,r=n,i=Qn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Re(o);if(i&&!s&&"wrapper"==io(u))var s=new Qn([],!0)}for(r=s?r:n;++r<n;){var l=io(u=t[r]),c="wrapper"==l?oo(u):a;s=c&&So(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[io(c[0])].apply(s,c[3]):1==u.length&&So(u)?s[l]():s.thru(u)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Hi(r))return s.plant(r).value();for(var a=0,o=n?t[a].apply(this,e):r;++a<n;)o=t[a].call(this,o);return o}})}function qa(e,t,r,o,i,u,s,l,c,d){var p=t&f,h=1&t,m=2&t,v=24&t,y=512&t,g=m?a:Na(e);return function f(){for(var b=arguments.length,w=n(b),x=b;x--;)w[x]=arguments[x];if(v)var S=uo(f),j=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(o&&(w=Ca(w,o,i,v)),u&&(w=Aa(w,u,s,v)),b-=j,v&&b<d){var E=fn(w,S);return Ka(e,t,qa,f.placeholder,r,w,E,l,c,d-b)}var _=h?r:this,k=m?_[e]:e;return b=w.length,l?w=function(e,t){var n=e.length,r=bn(t.length,n),o=Ra(e);for(;r--;){var i=t[r];e[r]=bo(i,n)?o[i]:a}return e}(w,l):y&&b>1&&w.reverse(),p&&c<b&&(w.length=c),this&&this!==mt&&this instanceof f&&(k=g||Na(k)),k.apply(_,w)}}function Ba(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,a,o){t(r,n(e),a,o)}),r}(n,e,t(r),{})}}function za(e,t){return function(n,r){var o;if(n===a&&r===a)return t;if(n!==a&&(o=n),r!==a){if(o===a)return r;"string"==typeof n||"string"==typeof r?(n=la(n),r=la(r)):(n=sa(n),r=sa(r)),o=e(n,r)}return o}}function Qa(e){return no(function(t){return t=Dt(t,Zt(so())),Yr(function(n){var r=this;return e(t,function(e){return Ct(e,r,n)})})})}function Ha(e,t){var n=(t=t===a?" ":la(t)).length;if(n<2)return n?Gr(t,e):t;var r=Gr(t,pt(e/hn(t)));return sn(t)?xa(mn(r),0,e).join(""):r.slice(0,e)}function Wa(e){return function(t,r,o){return o&&"number"!=typeof o&&wo(t,r,o)&&(r=o=a),t=pu(t),r===a?(r=t,t=0):r=pu(r),function(e,t,r,a){for(var o=-1,i=Vt(pt((t-e)/(r||1)),0),u=n(i);i--;)u[a?i:++o]=e,e+=r;return u}(t,r,o=o===a?t<r?1:-1:pu(o),e)}}function $a(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vu(t),n=vu(n)),e(t,n)}}function Ka(e,t,n,r,o,i,u,s,f,d){var p=8&t;t|=p?l:c,4&(t&=~(p?c:l))||(t&=-4);var h=[e,t,o,p?i:a,p?u:a,p?a:i,p?a:u,s,f,d],m=n.apply(a,h);return So(e)&&Po(m,h),m.placeholder=r,Lo(m,e,t)}function Va(e){var t=_e[e];return function(e,n){if(e=vu(e),(n=null==n?0:bn(hu(n),292))&&bt(e)){var r=(gu(e)+"e").split("e");return+((r=(gu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ga=Cn&&1/dn(new Cn([,-0]))[1]==p?function(e){return new Cn(e)}:ss;function Ya(e){return function(t){var n=mo(t);return n==_?ln(t):n==P?pn(t):function(e,t){return Dt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ja(e,t,r,i,p,h,m,v){var y=2&t;if(!y&&"function"!=typeof e)throw new Re(o);var g=i?i.length:0;if(g||(t&=-97,i=p=a),m=m===a?m:Vt(hu(m),0),v=v===a?v:hu(v),g-=p?p.length:0,t&c){var b=i,w=p;i=p=a}var x=y?a:oo(e),S=[e,t,r,i,p,b,w,h,m,v];if(x&&function(e,t){var n=e[1],r=t[1],a=n|r,o=a<131,i=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!i)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?Ca(l,s,t[4]):s,e[4]=l?fn(e[3],u):t[4]}(s=t[5])&&(l=e[5],e[5]=l?Aa(l,s,t[6]):s,e[6]=l?fn(e[5],u):t[6]);(s=t[7])&&(e[7]=s);r&f&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(S,x),e=S[0],t=S[1],r=S[2],i=S[3],p=S[4],!(v=S[9]=S[9]===a?y?0:e.length:Vt(S[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)j=8==t||t==s?function(e,t,r){var o=Na(e);return function i(){for(var u=arguments.length,s=n(u),l=u,c=uo(i);l--;)s[l]=arguments[l];var f=u<3&&s[0]!==c&&s[u-1]!==c?[]:fn(s,c);return(u-=f.length)<r?Ka(e,t,qa,i.placeholder,a,s,f,a,a,r-u):Ct(this&&this!==mt&&this instanceof i?o:e,this,s)}}(e,t,v):t!=l&&33!=t||p.length?qa.apply(a,S):function(e,t,r,a){var o=1&t,i=Na(e);return function t(){for(var u=-1,s=arguments.length,l=-1,c=a.length,f=n(c+s),d=this&&this!==mt&&this instanceof t?i:e;++l<c;)f[l]=a[l];for(;s--;)f[l++]=arguments[++u];return Ct(d,o?r:this,f)}}(e,t,r,i);else var j=function(e,t,n){var r=1&t,a=Na(e);return function t(){return(this&&this!==mt&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,r);return Lo((x?ea:Po)(j,S),e,t)}function Xa(e,t,n,r){return e===a||qi(e,Me[n])&&!De.call(r,n)?t:e}function Za(e,t,n,r,o,i){return eu(e)&&eu(t)&&(i.set(t,e),zr(e,t,a,Za,i),i.delete(t)),e}function eo(e){return au(e)?a:e}function to(e,t,n,r,o,i){var u=1&n,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Vn:a;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],v=t[d];if(r)var y=u?r(v,m,d,t,e,i):r(m,v,d,e,t,i);if(y!==a){if(y)continue;p=!1;break}if(h){if(!Ut(t,function(e,t){if(!tn(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)})){p=!1;break}}else if(m!==v&&!o(m,v,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function no(e){return Mo(Co(e,a,Wo),e+"")}function ro(e){return Er(e,Ou,po)}function ao(e){return Er(e,Mu,ho)}var oo=Pn?function(e){return Pn.get(e)}:ss;function io(e){for(var t=e.name+"",n=On[t],r=De.call(On,t)?n.length:0;r--;){var a=n[r],o=a.func;if(null==o||o==e)return a.name}return t}function uo(e){return(De.call(qn,"placeholder")?qn:e).placeholder}function so(){var e=qn.iteratee||as;return e=e===as?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=Ou(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,_o(a)]}return t}function fo(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Tr(n)?n:a}var po=vt?function(e){return null==e?[]:(e=ke(e),Mt(vt(e),function(t){return Ve.call(e,t)}))}:ms,ho=vt?function(e){for(var t=[];e;)Ft(t,po(e)),e=$e(e);return t}:ms,mo=_r;function vo(e,t,n){for(var r=-1,a=(t=ba(t,e)).length,o=!1;++r<a;){var i=No(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&Zi(a)&&bo(i,a)&&(Hi(e)||Qi(e))}function yo(e){return"function"!=typeof e.constructor||Eo(e)?{}:Bn($e(e))}function go(e){return Hi(e)||Qi(e)||!!(Ye&&e&&e[Ye])}function bo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wo(e,t,n){if(!eu(n))return!1;var r=typeof t;return!!("number"==r?$i(n)&&bo(t,n.length):"string"==r&&t in n)&&qi(n[t],e)}function xo(e,t){if(Hi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!su(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ke(t))}function So(e){var t=io(e),n=qn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(En&&mo(new En(new ArrayBuffer(1)))!=D||_n&&mo(new _n)!=_||kn&&mo(kn.resolve())!=A||Cn&&mo(new Cn)!=P||An&&mo(new An)!=L)&&(mo=function(e){var t=_r(e),n=t==C?e.constructor:a,r=n?Io(n):"";if(r)switch(r){case Mn:return D;case Ln:return _;case Tn:return A;case Dn:return P;case Fn:return L}return t});var jo=Le?Ji:vs;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function _o(e){return e===e&&!eu(e)}function ko(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in ke(n)))}}function Co(e,t,r){return t=Vt(t===a?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=Vt(a.length-t,0),u=n(i);++o<i;)u[o]=a[t+o];o=-1;for(var s=n(t+1);++o<t;)s[o]=a[o];return s[t]=r(u),Ct(e,this,s)}}function Ao(e,t){return t.length<2?e:jr(e,ra(t,0,-1))}function Ro(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Po=To(ea),Oo=ct||function(e,t){return mt.setTimeout(e,t)},Mo=To(ta);function Lo(e,t,n){var r=t+"";return Mo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Rt(y,function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function To(e){var t=0,n=0;return function(){var r=wn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n<t;){var i=Vr(n,o),u=e[i];e[i]=e[n],e[n]=u}return e.length=t,e}var Fo=function(e){var t=Ti(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,a){t.push(r?a.replace(pe,"$1"):n||e)}),t});function No(e){if("string"==typeof e||su(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Io(e){if(null!=e){try{return Te.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Uo(e){if(e instanceof Hn)return e.clone();var t=new Qn(e.__wrapped__,e.__chain__);return t.__actions__=Ra(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Yr(function(e,t){return Ki(e)?fr(e,yr(t,1,Ki,!0)):[]}),Bo=Yr(function(e,t){var n=Yo(t);return Ki(n)&&(n=a),Ki(e)?fr(e,yr(t,1,Ki,!0),so(n,2)):[]}),zo=Yr(function(e,t){var n=Yo(t);return Ki(n)&&(n=a),Ki(e)?fr(e,yr(t,1,Ki,!0),a,n):[]});function Qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:hu(n);return a<0&&(a=Vt(r+a,0)),zt(e,so(t,3),a)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==a&&(o=hu(n),o=n<0?Vt(r+o,0):bn(o,r-1)),zt(e,so(t,3),o,!0)}function Wo(e){return(null==e?0:e.length)?yr(e,1):[]}function $o(e){return e&&e.length?e[0]:a}var Ko=Yr(function(e){var t=Dt(e,ya);return t.length&&t[0]===e[0]?Rr(t):[]}),Vo=Yr(function(e){var t=Yo(e),n=Dt(e,ya);return t===Yo(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Rr(n,so(t,2)):[]}),Go=Yr(function(e){var t=Yo(e),n=Dt(e,ya);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,a,t):[]});function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Jo=Yr(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Zo=no(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Kr(e,Dt(t,function(e){return bo(e,n)?+e:e}).sort(ka)),r});function ei(e){return null==e?e:jn.call(e)}var ti=Yr(function(e){return ca(yr(e,1,Ki,!0))}),ni=Yr(function(e){var t=Yo(e);return Ki(t)&&(t=a),ca(yr(e,1,Ki,!0),so(t,2))}),ri=Yr(function(e){var t=Yo(e);return t="function"==typeof t?t:a,ca(yr(e,1,Ki,!0),a,t)});function ai(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,function(e){if(Ki(e))return t=Vt(e.length,t),!0}),Jt(t,function(t){return Dt(e,Kt(t))})}function oi(e,t){if(!e||!e.length)return[];var n=ai(e);return null==t?n:Dt(n,function(e){return Ct(t,a,e)})}var ii=Yr(function(e,t){return Ki(e)?fr(e,t):[]}),ui=Yr(function(e){return ma(Mt(e,Ki))}),si=Yr(function(e){var t=Yo(e);return Ki(t)&&(t=a),ma(Mt(e,Ki),so(t,2))}),li=Yr(function(e){var t=Yo(e);return t="function"==typeof t?t:a,ma(Mt(e,Ki),a,t)}),ci=Yr(ai);var fi=Yr(function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,oi(e,n)});function di(e){var t=qn(e);return t.__chain__=!0,t}function pi(e,t){return t(e)}var hi=no(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&bo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pi,args:[o],thisArg:a}),new Qn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(a),e})):this.thru(o)});var mi=Oa(function(e,t,n){De.call(e,n)?++e[n]:or(e,n,1)});var vi=Ia(Qo),yi=Ia(Ho);function gi(e,t){return(Hi(e)?Rt:dr)(e,so(t,3))}function bi(e,t){return(Hi(e)?Pt:pr)(e,so(t,3))}var wi=Oa(function(e,t,n){De.call(e,n)?e[n].push(t):or(e,n,[t])});var xi=Yr(function(e,t,r){var a=-1,o="function"==typeof t,i=$i(e)?n(e.length):[];return dr(e,function(e){i[++a]=o?Ct(t,e,r):Pr(e,t,r)}),i}),Si=Oa(function(e,t,n){or(e,n,t)});function ji(e,t){return(Hi(e)?Dt:Ur)(e,so(t,3))}var Ei=Oa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var _i=Yr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wo(e,t[0],t[1])?t=[]:n>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,yr(t,1),[])}),ki=at||function(){return mt.Date.now()};function Ci(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ja(e,f,a,a,a,a,t)}function Ai(e,t){var n;if("function"!=typeof t)throw new Re(o);return e=hu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Ri=Yr(function(e,t,n){var r=1;if(n.length){var a=fn(n,uo(Ri));r|=l}return Ja(e,r,t,n,a)}),Pi=Yr(function(e,t,n){var r=3;if(n.length){var a=fn(n,uo(Pi));r|=l}return Ja(t,r,e,n,a)});function Oi(e,t,n){var r,i,u,s,l,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Re(o);function m(t){var n=r,o=i;return r=i=a,f=t,s=e.apply(o,n)}function v(e){var n=e-c;return c===a||n>=t||n<0||p&&e-f>=u}function y(){var e=ki();if(v(e))return g(e);l=Oo(y,function(e){var n=t-(e-c);return p?bn(n,u-(e-f)):n}(e))}function g(e){return l=a,h&&r?m(e):(r=i=a,s)}function b(){var e=ki(),n=v(e);if(r=arguments,i=this,c=e,n){if(l===a)return function(e){return f=e,l=Oo(y,t),d?m(e):s}(c);if(p)return Sa(l),l=Oo(y,t),m(c)}return l===a&&(l=Oo(y,t)),s}return t=vu(t)||0,eu(n)&&(d=!!n.leading,u=(p="maxWait"in n)?Vt(vu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==a&&Sa(l),f=0,r=c=i=l=a},b.flush=function(){return l===a?s:g(ki())},b}var Mi=Yr(function(e,t){return cr(e,1,t)}),Li=Yr(function(e,t,n){return cr(e,vu(t)||0,n)});function Ti(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(o);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Ti.Cache||Kn),n}function Di(e){if("function"!=typeof e)throw new Re(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ti.Cache=Kn;var Fi=wa(function(e,t){var n=(t=1==t.length&&Hi(t[0])?Dt(t[0],Zt(so())):Dt(yr(t,1),Zt(so()))).length;return Yr(function(r){for(var a=-1,o=bn(r.length,n);++a<o;)r[a]=t[a].call(this,r[a]);return Ct(e,this,r)})}),Ni=Yr(function(e,t){var n=fn(t,uo(Ni));return Ja(e,l,a,t,n)}),Ii=Yr(function(e,t){var n=fn(t,uo(Ii));return Ja(e,c,a,t,n)}),Ui=no(function(e,t){return Ja(e,d,a,a,a,t)});function qi(e,t){return e===t||e!==e&&t!==t}var Bi=$a(kr),zi=$a(function(e,t){return e>=t}),Qi=Or(function(){return arguments}())?Or:function(e){return tu(e)&&De.call(e,"callee")&&!Ve.call(e,"callee")},Hi=n.isArray,Wi=xt?Zt(xt):function(e){return tu(e)&&_r(e)==T};function $i(e){return null!=e&&Zi(e.length)&&!Ji(e)}function Ki(e){return tu(e)&&$i(e)}var Vi=yt||vs,Gi=St?Zt(St):function(e){return tu(e)&&_r(e)==x};function Yi(e){if(!tu(e))return!1;var t=_r(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Ji(e){if(!eu(e))return!1;var t=_r(e);return t==j||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xi(e){return"number"==typeof e&&e==hu(e)}function Zi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function eu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tu(e){return null!=e&&"object"==typeof e}var nu=jt?Zt(jt):function(e){return tu(e)&&mo(e)==_};function ru(e){return"number"==typeof e||tu(e)&&_r(e)==k}function au(e){if(!tu(e)||_r(e)!=C)return!1;var t=$e(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==Ue}var ou=Et?Zt(Et):function(e){return tu(e)&&_r(e)==R};var iu=_t?Zt(_t):function(e){return tu(e)&&mo(e)==P};function uu(e){return"string"==typeof e||!Hi(e)&&tu(e)&&_r(e)==O}function su(e){return"symbol"==typeof e||tu(e)&&_r(e)==M}var lu=kt?Zt(kt):function(e){return tu(e)&&Zi(e.length)&&!!st[_r(e)]};var cu=$a(Ir),fu=$a(function(e,t){return e<=t});function du(e){if(!e)return[];if($i(e))return uu(e)?mn(e):Ra(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=mo(e);return(t==_?ln:t==P?dn:qu)(e)}function pu(e){return e?(e=vu(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hu(e){var t=pu(e),n=t%1;return t===t?n?t-n:t:0}function mu(e){return e?ur(hu(e),0,v):0}function vu(e){if("number"==typeof e)return e;if(su(e))return m;if(eu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ye.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):ve.test(e)?m:+e}function yu(e){return Pa(e,Mu(e))}function gu(e){return null==e?"":la(e)}var bu=Ma(function(e,t){if(Eo(t)||$i(t))Pa(t,Ou(t),e);else for(var n in t)De.call(t,n)&&tr(e,n,t[n])}),wu=Ma(function(e,t){Pa(t,Mu(t),e)}),xu=Ma(function(e,t,n,r){Pa(t,Mu(t),e,r)}),Su=Ma(function(e,t,n,r){Pa(t,Ou(t),e,r)}),ju=no(ir);var Eu=Yr(function(e,t){e=ke(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&wo(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],u=Mu(i),s=-1,l=u.length;++s<l;){var c=u[s],f=e[c];(f===a||qi(f,Me[c])&&!De.call(e,c))&&(e[c]=i[c])}return e}),_u=Yr(function(e){return e.push(a,Za),Ct(Tu,a,e)});function ku(e,t,n){var r=null==e?a:jr(e,t);return r===a?n:r}function Cu(e,t){return null!=e&&vo(e,t,Ar)}var Au=Ba(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),e[t]=n},es(rs)),Ru=Ba(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]},so),Pu=Yr(Pr);function Ou(e){return $i(e)?Yn(e):Fr(e)}function Mu(e){return $i(e)?Yn(e,!0):Nr(e)}var Lu=Ma(function(e,t,n){zr(e,t,n)}),Tu=Ma(function(e,t,n,r){zr(e,t,n,r)}),Du=no(function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,function(t){return t=ba(t,e),r||(r=t.length>1),t}),Pa(e,ao(e),n),r&&(n=sr(n,7,eo));for(var a=t.length;a--;)fa(n,t[a]);return n});var Fu=no(function(e,t){return null==e?{}:function(e,t){return Wr(e,t,function(t,n){return Cu(e,n)})}(e,t)});function Nu(e,t){if(null==e)return{};var n=Dt(ao(e),function(e){return[e]});return t=so(t),Wr(e,n,function(e,n){return t(e,n[0])})}var Iu=Ya(Ou),Uu=Ya(Mu);function qu(e){return null==e?[]:en(e,Ou(e))}var Bu=Fa(function(e,t,n){return t=t.toLowerCase(),e+(n?zu(t):t)});function zu(e){return Yu(gu(e).toLowerCase())}function Qu(e){return(e=gu(e))&&e.replace(xe,an).replace(tt,"")}var Hu=Fa(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Wu=Fa(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),$u=Da("toLowerCase");var Ku=Fa(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Vu=Fa(function(e,t,n){return e+(n?" ":"")+Yu(t)});var Gu=Fa(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Yu=Da("toUpperCase");function Ju(e,t,n){return e=gu(e),(t=n?a:t)===a?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Xu=Yr(function(e,t){try{return Ct(e,a,t)}catch(n){return Yi(n)?n:new ue(n)}}),Zu=no(function(e,t){return Rt(t,function(t){t=No(t),or(e,t,Ri(e[t],e))}),e});function es(e){return function(){return e}}var ts=Ua(),ns=Ua(!0);function rs(e){return e}function as(e){return Dr("function"==typeof e?e:sr(e,1))}var os=Yr(function(e,t){return function(n){return Pr(n,e,t)}}),is=Yr(function(e,t){return function(n){return Pr(e,n,t)}});function us(e,t,n){var r=Ou(t),a=Sr(t,r);null!=n||eu(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Sr(t,Ou(t)));var o=!(eu(n)&&"chain"in n)||!!n.chain,i=Ji(e);return Rt(a,function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ra(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})}),e}function ss(){}var ls=Qa(Dt),cs=Qa(Ot),fs=Qa(Ut);function ds(e){return xo(e)?Kt(No(e)):function(e){return function(t){return jr(t,e)}}(e)}var ps=Wa(),hs=Wa(!0);function ms(){return[]}function vs(){return!1}var ys=za(function(e,t){return e+t},0),gs=Va("ceil"),bs=za(function(e,t){return e/t},1),ws=Va("floor");var xs=za(function(e,t){return e*t},1),Ss=Va("round"),js=za(function(e,t){return e-t},0);return qn.after=function(e,t){if("function"!=typeof t)throw new Re(o);return e=hu(e),function(){if(--e<1)return t.apply(this,arguments)}},qn.ary=Ci,qn.assign=bu,qn.assignIn=wu,qn.assignInWith=xu,qn.assignWith=Su,qn.at=ju,qn.before=Ai,qn.bind=Ri,qn.bindAll=Zu,qn.bindKey=Pi,qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hi(e)?e:[e]},qn.chain=di,qn.chunk=function(e,t,r){t=(r?wo(e,t,r):t===a)?1:Vt(hu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,u=0,s=n(pt(o/t));i<o;)s[u++]=ra(e,i,i+=t);return s},qn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var o=e[t];o&&(a[r++]=o)}return a},qn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Ft(Hi(r)?Ra(r):[r],yr(t,1))},qn.cond=function(e){var t=null==e?0:e.length,n=so();return e=t?Dt(e,function(e){if("function"!=typeof e[1])throw new Re(o);return[n(e[0]),e[1]]}):[],Yr(function(n){for(var r=-1;++r<t;){var a=e[r];if(Ct(a[0],this,n))return Ct(a[1],this,n)}})},qn.conforms=function(e){return function(e){var t=Ou(e);return function(n){return lr(n,e,t)}}(sr(e,1))},qn.constant=es,qn.countBy=mi,qn.create=function(e,t){var n=Bn(e);return null==t?n:ar(n,t)},qn.curry=function e(t,n,r){var o=Ja(t,8,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},qn.curryRight=function e(t,n,r){var o=Ja(t,s,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},qn.debounce=Oi,qn.defaults=Eu,qn.defaultsDeep=_u,qn.defer=Mi,qn.delay=Li,qn.difference=qo,qn.differenceBy=Bo,qn.differenceWith=zo,qn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,(t=n||t===a?1:hu(t))<0?0:t,r):[]},qn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,0,(t=r-(t=n||t===a?1:hu(t)))<0?0:t):[]},qn.dropRightWhile=function(e,t){return e&&e.length?pa(e,so(t,3),!0,!0):[]},qn.dropWhile=function(e,t){return e&&e.length?pa(e,so(t,3),!0):[]},qn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=hu(n))<0&&(n=-n>o?0:o+n),(r=r===a||r>o?o:hu(r))<0&&(r+=o),r=n>r?0:mu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},qn.filter=function(e,t){return(Hi(e)?Mt:vr)(e,so(t,3))},qn.flatMap=function(e,t){return yr(ji(e,t),1)},qn.flatMapDeep=function(e,t){return yr(ji(e,t),p)},qn.flatMapDepth=function(e,t,n){return n=n===a?1:hu(n),yr(ji(e,t),n)},qn.flatten=Wo,qn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},qn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===a?1:hu(t)):[]},qn.flip=function(e){return Ja(e,512)},qn.flow=ts,qn.flowRight=ns,qn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},qn.functions=function(e){return null==e?[]:Sr(e,Ou(e))},qn.functionsIn=function(e){return null==e?[]:Sr(e,Mu(e))},qn.groupBy=wi,qn.initial=function(e){return(null==e?0:e.length)?ra(e,0,-1):[]},qn.intersection=Ko,qn.intersectionBy=Vo,qn.intersectionWith=Go,qn.invert=Au,qn.invertBy=Ru,qn.invokeMap=xi,qn.iteratee=as,qn.keyBy=Si,qn.keys=Ou,qn.keysIn=Mu,qn.map=ji,qn.mapKeys=function(e,t){var n={};return t=so(t,3),wr(e,function(e,r,a){or(n,t(e,r,a),e)}),n},qn.mapValues=function(e,t){var n={};return t=so(t,3),wr(e,function(e,r,a){or(n,r,t(e,r,a))}),n},qn.matches=function(e){return qr(sr(e,1))},qn.matchesProperty=function(e,t){return Br(e,sr(t,1))},qn.memoize=Ti,qn.merge=Lu,qn.mergeWith=Tu,qn.method=os,qn.methodOf=is,qn.mixin=us,qn.negate=Di,qn.nthArg=function(e){return e=hu(e),Yr(function(t){return Qr(t,e)})},qn.omit=Du,qn.omitBy=function(e,t){return Nu(e,Di(so(t)))},qn.once=function(e){return Ai(2,e)},qn.orderBy=function(e,t,n,r){return null==e?[]:(Hi(t)||(t=null==t?[]:[t]),Hi(n=r?a:n)||(n=null==n?[]:[n]),Hr(e,t,n))},qn.over=ls,qn.overArgs=Fi,qn.overEvery=cs,qn.overSome=fs,qn.partial=Ni,qn.partialRight=Ii,qn.partition=Ei,qn.pick=Fu,qn.pickBy=Nu,qn.property=ds,qn.propertyOf=function(e){return function(t){return null==e?a:jr(e,t)}},qn.pull=Jo,qn.pullAll=Xo,qn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,so(n,2)):e},qn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,a,n):e},qn.pullAt=Zo,qn.range=ps,qn.rangeRight=hs,qn.rearg=Ui,qn.reject=function(e,t){return(Hi(e)?Mt:vr)(e,Di(so(t,3)))},qn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],o=e.length;for(t=so(t,3);++r<o;){var i=e[r];t(i,r,e)&&(n.push(i),a.push(r))}return Kr(e,a),n},qn.rest=function(e,t){if("function"!=typeof e)throw new Re(o);return Yr(e,t=t===a?t:hu(t))},qn.reverse=ei,qn.sampleSize=function(e,t,n){return t=(n?wo(e,t,n):t===a)?1:hu(t),(Hi(e)?Xn:Xr)(e,t)},qn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},qn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Zr(e,t,n,r)},qn.shuffle=function(e){return(Hi(e)?Zn:na)(e)},qn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wo(e,t,n)?(t=0,n=r):(t=null==t?0:hu(t),n=n===a?r:hu(n)),ra(e,t,n)):[]},qn.sortBy=_i,qn.sortedUniq=function(e){return e&&e.length?ua(e):[]},qn.sortedUniqBy=function(e,t){return e&&e.length?ua(e,so(t,2)):[]},qn.split=function(e,t,n){return n&&"number"!=typeof n&&wo(e,t,n)&&(t=n=a),(n=n===a?v:n>>>0)?(e=gu(e))&&("string"==typeof t||null!=t&&!ou(t))&&!(t=la(t))&&sn(e)?xa(mn(e),0,n):e.split(t,n):[]},qn.spread=function(e,t){if("function"!=typeof e)throw new Re(o);return t=null==t?0:Vt(hu(t),0),Yr(function(n){var r=n[t],a=xa(n,0,t);return r&&Ft(a,r),Ct(e,this,a)})},qn.tail=function(e){var t=null==e?0:e.length;return t?ra(e,1,t):[]},qn.take=function(e,t,n){return e&&e.length?ra(e,0,(t=n||t===a?1:hu(t))<0?0:t):[]},qn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,(t=r-(t=n||t===a?1:hu(t)))<0?0:t,r):[]},qn.takeRightWhile=function(e,t){return e&&e.length?pa(e,so(t,3),!1,!0):[]},qn.takeWhile=function(e,t){return e&&e.length?pa(e,so(t,3)):[]},qn.tap=function(e,t){return t(e),e},qn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Re(o);return eu(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Oi(e,t,{leading:r,maxWait:t,trailing:a})},qn.thru=pi,qn.toArray=du,qn.toPairs=Iu,qn.toPairsIn=Uu,qn.toPath=function(e){return Hi(e)?Dt(e,No):su(e)?[e]:Ra(Fo(gu(e)))},qn.toPlainObject=yu,qn.transform=function(e,t,n){var r=Hi(e),a=r||Vi(e)||lu(e);if(t=so(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:eu(e)&&Ji(o)?Bn($e(e)):{}}return(a?Rt:wr)(e,function(e,r,a){return t(n,e,r,a)}),n},qn.unary=function(e){return Ci(e,1)},qn.union=ti,qn.unionBy=ni,qn.unionWith=ri,qn.uniq=function(e){return e&&e.length?ca(e):[]},qn.uniqBy=function(e,t){return e&&e.length?ca(e,so(t,2)):[]},qn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?ca(e,a,t):[]},qn.unset=function(e,t){return null==e||fa(e,t)},qn.unzip=ai,qn.unzipWith=oi,qn.update=function(e,t,n){return null==e?e:da(e,t,ga(n))},qn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:da(e,t,ga(n),r)},qn.values=qu,qn.valuesIn=function(e){return null==e?[]:en(e,Mu(e))},qn.without=ii,qn.words=Ju,qn.wrap=function(e,t){return Ni(ga(t),e)},qn.xor=ui,qn.xorBy=si,qn.xorWith=li,qn.zip=ci,qn.zipObject=function(e,t){return va(e||[],t||[],tr)},qn.zipObjectDeep=function(e,t){return va(e||[],t||[],Zr)},qn.zipWith=fi,qn.entries=Iu,qn.entriesIn=Uu,qn.extend=wu,qn.extendWith=xu,us(qn,qn),qn.add=ys,qn.attempt=Xu,qn.camelCase=Bu,qn.capitalize=zu,qn.ceil=gs,qn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=vu(n))===n?n:0),t!==a&&(t=(t=vu(t))===t?t:0),ur(vu(e),t,n)},qn.clone=function(e){return sr(e,4)},qn.cloneDeep=function(e){return sr(e,5)},qn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:a)},qn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:a)},qn.conformsTo=function(e,t){return null==t||lr(e,t,Ou(t))},qn.deburr=Qu,qn.defaultTo=function(e,t){return null==e||e!==e?t:e},qn.divide=bs,qn.endsWith=function(e,t,n){e=gu(e),t=la(t);var r=e.length,o=n=n===a?r:ur(hu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},qn.eq=qi,qn.escape=function(e){return(e=gu(e))&&J.test(e)?e.replace(G,on):e},qn.escapeRegExp=function(e){return(e=gu(e))&&oe.test(e)?e.replace(ae,"\\$&"):e},qn.every=function(e,t,n){var r=Hi(e)?Ot:hr;return n&&wo(e,t,n)&&(t=a),r(e,so(t,3))},qn.find=vi,qn.findIndex=Qo,qn.findKey=function(e,t){return Bt(e,so(t,3),wr)},qn.findLast=yi,qn.findLastIndex=Ho,qn.findLastKey=function(e,t){return Bt(e,so(t,3),xr)},qn.floor=ws,qn.forEach=gi,qn.forEachRight=bi,qn.forIn=function(e,t){return null==e?e:gr(e,so(t,3),Mu)},qn.forInRight=function(e,t){return null==e?e:br(e,so(t,3),Mu)},qn.forOwn=function(e,t){return e&&wr(e,so(t,3))},qn.forOwnRight=function(e,t){return e&&xr(e,so(t,3))},qn.get=ku,qn.gt=Bi,qn.gte=zi,qn.has=function(e,t){return null!=e&&vo(e,t,Cr)},qn.hasIn=Cu,qn.head=$o,qn.identity=rs,qn.includes=function(e,t,n,r){e=$i(e)?e:qu(e),n=n&&!r?hu(n):0;var a=e.length;return n<0&&(n=Vt(a+n,0)),uu(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Qt(e,t,n)>-1},qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:hu(n);return a<0&&(a=Vt(r+a,0)),Qt(e,t,a)},qn.inRange=function(e,t,n){return t=pu(t),n===a?(n=t,t=0):n=pu(n),function(e,t,n){return e>=bn(t,n)&&e<Vt(t,n)}(e=vu(e),t,n)},qn.invoke=Pu,qn.isArguments=Qi,qn.isArray=Hi,qn.isArrayBuffer=Wi,qn.isArrayLike=$i,qn.isArrayLikeObject=Ki,qn.isBoolean=function(e){return!0===e||!1===e||tu(e)&&_r(e)==w},qn.isBuffer=Vi,qn.isDate=Gi,qn.isElement=function(e){return tu(e)&&1===e.nodeType&&!au(e)},qn.isEmpty=function(e){if(null==e)return!0;if($i(e)&&(Hi(e)||"string"==typeof e||"function"==typeof e.splice||Vi(e)||lu(e)||Qi(e)))return!e.length;var t=mo(e);if(t==_||t==P)return!e.size;if(Eo(e))return!Fr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},qn.isEqual=function(e,t){return Mr(e,t)},qn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Mr(e,t,a,n):!!r},qn.isError=Yi,qn.isFinite=function(e){return"number"==typeof e&&bt(e)},qn.isFunction=Ji,qn.isInteger=Xi,qn.isLength=Zi,qn.isMap=nu,qn.isMatch=function(e,t){return e===t||Lr(e,t,co(t))},qn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Lr(e,t,co(t),n)},qn.isNaN=function(e){return ru(e)&&e!=+e},qn.isNative=function(e){if(jo(e))throw new ue("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},qn.isNil=function(e){return null==e},qn.isNull=function(e){return null===e},qn.isNumber=ru,qn.isObject=eu,qn.isObjectLike=tu,qn.isPlainObject=au,qn.isRegExp=ou,qn.isSafeInteger=function(e){return Xi(e)&&e>=-9007199254740991&&e<=h},qn.isSet=iu,qn.isString=uu,qn.isSymbol=su,qn.isTypedArray=lu,qn.isUndefined=function(e){return e===a},qn.isWeakMap=function(e){return tu(e)&&mo(e)==L},qn.isWeakSet=function(e){return tu(e)&&"[object WeakSet]"==_r(e)},qn.join=function(e,t){return null==e?"":wt.call(e,t)},qn.kebabCase=Hu,qn.last=Yo,qn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=hu(n))<0?Vt(r+o,0):bn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):zt(e,Wt,o,!0)},qn.lowerCase=Wu,qn.lowerFirst=$u,qn.lt=cu,qn.lte=fu,qn.max=function(e){return e&&e.length?mr(e,rs,kr):a},qn.maxBy=function(e,t){return e&&e.length?mr(e,so(t,2),kr):a},qn.mean=function(e){return $t(e,rs)},qn.meanBy=function(e,t){return $t(e,so(t,2))},qn.min=function(e){return e&&e.length?mr(e,rs,Ir):a},qn.minBy=function(e,t){return e&&e.length?mr(e,so(t,2),Ir):a},qn.stubArray=ms,qn.stubFalse=vs,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=xs,qn.nth=function(e,t){return e&&e.length?Qr(e,hu(t)):a},qn.noConflict=function(){return mt._===this&&(mt._=qe),this},qn.noop=ss,qn.now=ki,qn.pad=function(e,t,n){e=gu(e);var r=(t=hu(t))?hn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Ha(ht(a),n)+e+Ha(pt(a),n)},qn.padEnd=function(e,t,n){e=gu(e);var r=(t=hu(t))?hn(e):0;return t&&r<t?e+Ha(t-r,n):e},qn.padStart=function(e,t,n){e=gu(e);var r=(t=hu(t))?hn(e):0;return t&&r<t?Ha(t-r,n)+e:e},qn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(gu(e).replace(ie,""),t||0)},qn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wo(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=pu(e),t===a?(t=e,e=0):t=pu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sn();return bn(e+o*(t-e+ft("1e-"+((o+"").length-1))),t)}return Vr(e,t)},qn.reduce=function(e,t,n){var r=Hi(e)?Nt:Gt,a=arguments.length<3;return r(e,so(t,4),n,a,dr)},qn.reduceRight=function(e,t,n){var r=Hi(e)?It:Gt,a=arguments.length<3;return r(e,so(t,4),n,a,pr)},qn.repeat=function(e,t,n){return t=(n?wo(e,t,n):t===a)?1:hu(t),Gr(gu(e),t)},qn.replace=function(){var e=arguments,t=gu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qn.result=function(e,t,n){var r=-1,o=(t=ba(t,e)).length;for(o||(o=1,e=a);++r<o;){var i=null==e?a:e[No(t[r])];i===a&&(r=o,i=n),e=Ji(i)?i.call(e):i}return e},qn.round=Ss,qn.runInContext=e,qn.sample=function(e){return(Hi(e)?Jn:Jr)(e)},qn.size=function(e){if(null==e)return 0;if($i(e))return uu(e)?hn(e):e.length;var t=mo(e);return t==_||t==P?e.size:Fr(e).length},qn.snakeCase=Ku,qn.some=function(e,t,n){var r=Hi(e)?Ut:aa;return n&&wo(e,t,n)&&(t=a),r(e,so(t,3))},qn.sortedIndex=function(e,t){return oa(e,t)},qn.sortedIndexBy=function(e,t,n){return ia(e,t,so(n,2))},qn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oa(e,t);if(r<n&&qi(e[r],t))return r}return-1},qn.sortedLastIndex=function(e,t){return oa(e,t,!0)},qn.sortedLastIndexBy=function(e,t,n){return ia(e,t,so(n,2),!0)},qn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oa(e,t,!0)-1;if(qi(e[n],t))return n}return-1},qn.startCase=Vu,qn.startsWith=function(e,t,n){return e=gu(e),n=null==n?0:ur(hu(n),0,e.length),t=la(t),e.slice(n,n+t.length)==t},qn.subtract=js,qn.sum=function(e){return e&&e.length?Yt(e,rs):0},qn.sumBy=function(e,t){return e&&e.length?Yt(e,so(t,2)):0},qn.template=function(e,t,n){var r=qn.templateSettings;n&&wo(e,t,n)&&(t=a),e=gu(e),t=xu({},t,r,Xa);var o,i,u=xu({},t.imports,r.imports,Xa),s=Ou(u),l=en(u,s),c=0,f=t.interpolate||Se,d="__p += '",p=Ce((t.escape||Se).source+"|"+f.source+"|"+(f===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ut+"]")+"\n";e.replace(p,function(t,n,r,a,u,s){return r||(r=a),d+=e.slice(c,s).replace(je,un),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),u&&(i=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t}),d+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new ue("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(W,""):d).replace($,"$1").replace(K,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Xu(function(){return Ee(s,h+"return "+d).apply(a,l)});if(v.source=d,Yi(v))throw v;return v},qn.times=function(e,t){if((e=hu(e))<1||e>h)return[];var n=v,r=bn(e,v);t=so(t),e-=v;for(var a=Jt(r,t);++n<e;)t(n);return a},qn.toFinite=pu,qn.toInteger=hu,qn.toLength=mu,qn.toLower=function(e){return gu(e).toLowerCase()},qn.toNumber=vu,qn.toSafeInteger=function(e){return e?ur(hu(e),-9007199254740991,h):0===e?e:0},qn.toString=gu,qn.toUpper=function(e){return gu(e).toUpperCase()},qn.trim=function(e,t,n){if((e=gu(e))&&(n||t===a))return Xt(e);if(!e||!(t=la(t)))return e;var r=mn(e),o=mn(t);return xa(r,nn(r,o),rn(r,o)+1).join("")},qn.trimEnd=function(e,t,n){if((e=gu(e))&&(n||t===a))return e.slice(0,vn(e)+1);if(!e||!(t=la(t)))return e;var r=mn(e);return xa(r,0,rn(r,mn(t))+1).join("")},qn.trimStart=function(e,t,n){if((e=gu(e))&&(n||t===a))return e.replace(ie,"");if(!e||!(t=la(t)))return e;var r=mn(e);return xa(r,nn(r,mn(t))).join("")},qn.truncate=function(e,t){var n=30,r="...";if(eu(t)){var o="separator"in t?t.separator:o;n="length"in t?hu(t.length):n,r="omission"in t?la(t.omission):r}var i=(e=gu(e)).length;if(sn(e)){var u=mn(e);i=u.length}if(n>=i)return e;var s=n-hn(r);if(s<1)return r;var l=u?xa(u,0,s).join(""):e.slice(0,s);if(o===a)return l+r;if(u&&(s+=l.length-s),ou(o)){if(e.slice(s).search(o)){var c,f=l;for(o.global||(o=Ce(o.source,gu(me.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;l=l.slice(0,d===a?s:d)}}else if(e.indexOf(la(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},qn.unescape=function(e){return(e=gu(e))&&Y.test(e)?e.replace(V,yn):e},qn.uniqueId=function(e){var t=++Fe;return gu(e)+t},qn.upperCase=Gu,qn.upperFirst=Yu,qn.each=gi,qn.eachRight=bi,qn.first=$o,us(qn,function(){var e={};return wr(qn,function(t,n){De.call(qn.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),qn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){qn[e].placeholder=qn}),Rt(["drop","take"],function(e,t){Hn.prototype[e]=function(n){n=n===a?1:Vt(hu(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Rt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),Rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(rs)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Yr(function(e,t){return"function"==typeof e?new Hn(this):this.map(function(n){return Pr(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(Di(so(e)))},Hn.prototype.slice=function(e,t){e=hu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=hu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(v)},wr(Hn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=qn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(qn.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,s=t instanceof Hn,l=u[0],c=s||Hi(t),f=function(e){var t=o.apply(qn,Ft([e],u));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=i&&!d,m=s&&!p;if(!i&&c){t=m?t:new Hn(this);var v=e.apply(t,u);return v.__actions__.push({func:pi,args:[f],thisArg:a}),new Qn(v,d)}return h&&m?e.apply(this,u):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Hi(a)?a:[],e)}return this[n](function(n){return t.apply(Hi(n)?n:[],e)})}}),wr(Hn.prototype,function(e,t){var n=qn[t];if(n){var r=n.name+"";De.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}}),On[qa(a,2).name]=[{name:"wrapper",func:a}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ra(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ra(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ra(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Hi(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var o=n[r],i=o.size;switch(o.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=bn(t,e+i);break;case"takeRight":e=Vt(e,t-i)}}return{start:e,end:t}}(0,a,this.__views__),i=o.start,u=o.end,s=u-i,l=r?u:i-1,c=this.__iteratees__,f=c.length,d=0,p=bn(s,this.__takeCount__);if(!n||!r&&a==s&&p==s)return ha(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var m=-1,v=e[l+=t];++m<f;){var y=c[m],g=y.iteratee,b=y.type,w=g(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[d++]=v}return h},qn.prototype.at=hi,qn.prototype.chain=function(){return di(this)},qn.prototype.commit=function(){return new Qn(this.value(),this.__chain__)},qn.prototype.next=function(){this.__values__===a&&(this.__values__=du(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},qn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Uo(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:pi,args:[ei],thisArg:a}),new Qn(t,this.__chain__)}return this.thru(ei)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return ha(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,Je&&(qn.prototype[Je]=function(){return this}),qn}();mt._=gn,(r=function(){return gn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},"nano-css@5.3.5/addon/cssom.js":(e,t)=>{"use strict";t.addon=function(e){e.client&&(document.head.appendChild(e.msh=document.createElement("style")),e.createRule=function(t,n){var r=t+"{}";n&&(r=n+"{"+r+"}");var a=n?e.msh.sheet:e.sh.sheet,o=a.insertRule(r,a.cssRules.length),i=(a.cssRules||a.rules)[o];if(i.index=o,n){var u=(i.cssRules||i.rules)[0];i.style=u.style,i.styleMap=u.styleMap}return i})}},"nano-css@5.3.5/addon/vcssom.js":(e,t,n)=>{"use strict";var r=n("nano-css@5.3.5/addon/vcssom/removeRule.js").removeRule;t.addon=function(e){if(e.client){0;var t=e.kebab;n.prototype.diff=function(e){var n,r=this.decl,a=this.rule.style;for(n in r)void 0===e[n]&&a.removeProperty(n);for(n in e)e[n]!==r[n]&&a.setProperty(t(n),e[n]);this.decl=e},n.prototype.del=function(){r(this.rule)},a.prototype.diff=function(e){var t=this.tree;for(var r in t)if(void 0===e[r]){var a=t[r];for(var o in a)a[o].del()}for(var r in e)if(void 0===t[r])for(var o in e[r]){(s=new n(o,r)).diff(e[r][o]),e[r][o]=s}else{var i=t[r],u=e[r];for(var o in i)u[o]||i[o].del();for(var o in u){var s;(s=i[o])?(s.diff(u[o]),u[o]=s):((s=new n(o,r)).diff(u[o]),u[o]=s)}}this.tree=e},e.VRule=n,e.VSheet=a}function n(t,n){this.rule=e.createRule(t,n),this.decl={}}function a(){this.tree={}}}},"nano-css@5.3.5/addon/vcssom/cssToTree.js":(e,t)=>{t.cssToTree=function e(t,n,r,a){var o,i,u={},s=!1;for(o in n)"object"!==typeof(i=n[o])&&(s=!0,u[o]=i);for(o in s&&(t[a]||(t[a]={}),t[a][r]=u),n)if("object"===typeof(i=n[o]))if("@"===o[0])e(t,i,r,o);else{var l=o.indexOf("&")>-1,c=r.split(",");if(l)for(var f=0;f<c.length;f++)c[f]=o.replace(/&/g,c[f]);else for(f=0;f<c.length;f++)c[f]=c[f]+" "+o;e(t,i,c.join(","),a)}}},"nano-css@5.3.5/addon/vcssom/removeRule.js":(e,t)=>{t.removeRule=function(e){var t=e.index,n=e.parentStyleSheet,r=n.cssRules||n.rules;for(t=Math.max(t,r.length-1);t>=0;){if(r[t]===e){n.deleteRule(t);break}t--}}},"nano-css@5.3.5/index.js":(e,t)=>{"use strict";var n=/[A-Z]/g;t.create=function(e){var t=(e=e||{}).assign||Object.assign;var r=t({raw:"",pfx:"_",client:"object"===typeof window,assign:t,stringify:JSON.stringify,kebab:function(e){return e.replace(n,"-$&").toLowerCase()},decl:function(e,t){return(e=r.kebab(e))+":"+t+";"},hash:function(e){return function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return"_"+(t>>>0).toString(36)}(r.stringify(e))},selector:function(e,t){return e+(":"===t[0]?"":" ")+t},putRaw:function(e){r.raw+=e}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(e){var t=r.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch(n){}}),r.put=function(e,t,n){var a,o,i="",u=[];for(a in t)(o=t[a])instanceof Object&&!(o instanceof Array)?u.push(a):i+=r.decl(a,o,e,n);i&&(i=e+"{"+i+"}",r.putRaw(n?n+"{"+i+"}":i));for(var s=0;s<u.length;s++)"@"===(a=u[s])[0]&&"@font-face"!==a?r.putAt(e,t[a],a):r.put(r.selector(e,a),t[a],n)},r.putAt=r.put,r}},"path-to-regexp@6.2.1/dist.es2015/index.js":(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var a=1,o="";if("?"===e[u=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(u));for(;u<e.length;)if("\\"!==e[u]){if(")"===e[u]){if(0===--a){u++;break}}else if("("===e[u]&&(a++,"?"!==e[u+1]))throw new TypeError("Capturing groups are not allowed at ".concat(u));o+=e[u++]}else o+=e[u++]+e[u++];if(a)throw new TypeError("Unbalanced pattern at ".concat(n));if(!o)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:o}),n=u}else{for(var i="",u=n+1;u<e.length;){var s=e.charCodeAt(u);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;i+=e[u++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=u}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,a=void 0===r?"./":r,o="[^".concat(s(t.delimiter||"/#?"),"]+?"),i=[],u=0,l=0,c="",f=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[l],a=r.type,o=r.index;throw new TypeError("Unexpected ".concat(a," at ").concat(o,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var h=f("CHAR"),m=f("NAME"),v=f("PATTERN");if(m||v){var y=h||"";-1===a.indexOf(y)&&(c+=y,y=""),c&&(i.push(c),c=""),i.push({name:m||u++,prefix:y,suffix:"",pattern:v||o,modifier:f("MODIFIER")||""})}else{var g=h||f("ESCAPED_CHAR");if(g)c+=g;else if(c&&(i.push(c),c=""),f("OPEN")){y=p();var b=f("NAME")||"",w=f("PATTERN")||"",x=p();d("CLOSE"),i.push({name:b||(w?u++:""),pattern:b&&!w?o:w,prefix:y,suffix:x,modifier:f("MODIFIER")||""})}else d("END")}}return i}function a(e,t){return o(r(e,t),t)}function o(e,t){void 0===t&&(t={});var n=l(t),r=t.encode,a=void 0===r?function(e){return e}:r,o=t.validate,i=void 0===o||o,u=e.map(function(e){if("object"===typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),n)});return function(t){for(var n="",r=0;r<e.length;r++){var o=e[r];if("string"!==typeof o){var s=t?t[o.name]:void 0,l="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(s)){if(!c)throw new TypeError('Expected "'.concat(o.name,'" to not repeat, but got an array'));if(0===s.length){if(l)continue;throw new TypeError('Expected "'.concat(o.name,'" to not be empty'))}for(var f=0;f<s.length;f++){var d=a(s[f],o);if(i&&!u[r].test(d))throw new TypeError('Expected all "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(d,'"'));n+=o.prefix+d+o.suffix}}else if("string"!==typeof s&&"number"!==typeof s){if(!l){var p=c?"an array":"a string";throw new TypeError('Expected "'.concat(o.name,'" to be ').concat(p))}}else{d=a(String(s),o);if(i&&!u[r].test(d))throw new TypeError('Expected "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(d,'"'));n+=o.prefix+d+o.suffix}}else n+=o}return n}}function i(e,t){var n=[];return u(f(e,n,t),n,t)}function u(e,t,n){void 0===n&&(n={});var r=n.decode,a=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var o=r[0],i=r.index,u=Object.create(null),s=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?u[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return a(e,n)}):u[n.name]=a(r[e],n)},l=1;l<r.length;l++)s(l);return{path:o,index:i,params:u}}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e&&e.sensitive?"":"i"}function c(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,o=n.start,i=void 0===o||o,u=n.end,c=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,h=void 0===p?"/#?":p,m=n.endsWith,v="[".concat(s(void 0===m?"":m),"]|$"),y="[".concat(s(h),"]"),g=i?"^":"",b=0,w=e;b<w.length;b++){var x=w[b];if("string"===typeof x)g+=s(d(x));else{var S=s(d(x.prefix)),j=s(d(x.suffix));if(x.pattern)if(t&&t.push(x),S||j)if("+"===x.modifier||"*"===x.modifier){var E="*"===x.modifier?"?":"";g+="(?:".concat(S,"((?:").concat(x.pattern,")(?:").concat(j).concat(S,"(?:").concat(x.pattern,"))*)").concat(j,")").concat(E)}else g+="(?:".concat(S,"(").concat(x.pattern,")").concat(j,")").concat(x.modifier);else"+"===x.modifier||"*"===x.modifier?g+="((?:".concat(x.pattern,")").concat(x.modifier,")"):g+="(".concat(x.pattern,")").concat(x.modifier);else g+="(?:".concat(S).concat(j,")").concat(x.modifier)}}if(c)a||(g+="".concat(y,"?")),g+=n.endsWith?"(?=".concat(v,")"):"$";else{var _=e[e.length-1],k="string"===typeof _?y.indexOf(_[_.length-1])>-1:void 0===_;a||(g+="(?:".concat(y,"(?=").concat(v,"))?")),k||(g+="(?=".concat(y,"|").concat(v,")"))}return new RegExp(g,l(n))}function f(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,a=n.exec(e.source);a;)t.push({name:a[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),a=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return f(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),l(n))}(e,t,n):function(e,t,n){return c(r(e,n),t,n)}(e,t,n)}n.r(t),n.d(t,{compile:()=>a,match:()=>i,parse:()=>r,pathToRegexp:()=>f,regexpToFunction:()=>u,tokensToFunction:()=>o,tokensToRegexp:()=>c})},"prop-types@15.8.1/factoryWithThrowingShims.js":(e,t,n)=>{"use strict";var r=n("prop-types@15.8.1/lib/ReactPropTypesSecret.js");function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},"prop-types@15.8.1/index.js":(e,t,n)=>{e.exports=n("prop-types@15.8.1/factoryWithThrowingShims.js")()},"prop-types@15.8.1/lib/ReactPropTypesSecret.js":e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"react-dom@18.2.0/cjs/react-dom.production.min.js":(e,t,n)=>{"use strict";var r=n("react@18.2.0/index.js"),a=n("scheduler@0.23.0/index.js");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,u={};function s(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,g);v[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,g);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,g);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var T=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=T&&e[T]||e["@@iterator"])?e:null}var F,N=Object.assign;function I(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var U=!1;function q(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var a=l.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,u=o.length-1;1<=i&&0<=u&&a[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(a[i]!==o[u]){if(1!==i||1!==u)do{if(i--,0>--u||a[i]!==o[u]){var s="\n"+a[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=u);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function B(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 1:return e=q(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case S:return"Portal";case _:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function Q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){J(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ye=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,je=null,Ee=null;function _e(e){if(e=ba(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=xa(t),Se(e.stateNode,e.type,t))}}function ke(e){je?Ee?Ee.push(e):Ee=[e]:je=e}function Ce(){if(je){var e=je,t=Ee;if(Ee=je=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Ae(e,t){return e(t)}function Re(){}var Pe=!1;function Oe(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Ae(e,t,n)}finally{Pe=!1,(null!==je||null!==Ee)&&(Re(),Ce())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=xa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Le=!1;if(c)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(ce){Le=!1}function De(e,t,n,r,a,o,i,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Fe=!1,Ne=null,Ie=!1,Ue=null,qe={onError:function(e){Fe=!0,Ne=e}};function Be(e,t,n,r,a,o,i,u,s){Fe=!1,Ne=null,De.apply(qe,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return He(a),e;if(i===r)return He(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var u=!1,s=a.child;s;){if(s===n){u=!0,n=a,r=i;break}if(s===r){u=!0,r=a,n=i;break}s=s.sibling}if(!u){for(s=i.child;s;){if(s===n){u=!0,n=i,r=a;break}if(s===r){u=!0,r=i,n=a;break}s=s.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ke=a.unstable_scheduleCallback,Ve=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Je=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Ze=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2;var lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var u=i&~a;0!==u?r=ft(u):0!==(o&=i)&&(r=ft(o))}else 0!==(i=n&~a)?r=ft(i):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,St,jt,Et,_t,kt=!1,Ct=[],At=null,Rt=null,Pt=null,Ot=new Map,Mt=new Map,Lt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Ft(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Nt(e){var t=ga(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void _t(e.priority,function(){jt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ba(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){It(e)&&n.delete(t)}function qt(){kt=!1,null!==At&&It(At)&&(At=null),null!==Rt&&It(Rt)&&(Rt=null),null!==Pt&&It(Pt)&&(Pt=null),Ot.forEach(Ut),Mt.forEach(Ut)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,qt)))}function zt(e){function t(t){return Bt(t,e)}if(0<Ct.length){Bt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Bt(At,e),null!==Rt&&Bt(Rt,e),null!==Pt&&Bt(Pt,e),Ot.forEach(t),Mt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Lt.shift()}var Qt=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var a=bt,o=Qt.transition;Qt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=a,Qt.transition=o}}function $t(e,t,n,r){var a=bt,o=Qt.transition;Qt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=a,Qt.transition=o}}function Kt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Vt,n),Dt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return At=Ft(At,e,t,n,r,a),!0;case"dragenter":return Rt=Ft(Rt,e,t,n,r,a),!0;case"mouseover":return Pt=Ft(Pt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Ot.set(o,Ft(Ot.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Mt.set(o,Ft(Mt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==a;){var o=ba(a);if(null!==o&&xt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Vt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Vt=null;function Gt(e,t,n,r){if(Vt=null,null!==(e=ga(e=xe(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,a="value"in Jt?Jt.value:Jt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Zt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,un,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(ln),fn=N({},ln,{view:0,detail:0}),dn=an(fn),pn=N({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=an(pn),mn=an(N({},pn,{dataTransfer:0})),vn=an(N({},fn,{relatedTarget:0})),yn=an(N({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=N({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(gn),wn=an(N({},ln,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jn[e])&&!!t[e]}function _n(){return En}var kn=N({},fn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(kn),An=an(N({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=an(N({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Pn=an(N({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=N({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=an(On),Ln=[9,13,27,32],Tn=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Fn=c&&"TextEvent"in window&&!Dn,Nn=c&&(!Tn||Dn&&8<Dn&&11>=Dn),In=String.fromCharCode(32),Un=!1;function qn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qn[e.type]:"textarea"===t}function Wn(e,t,n,r){ke(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Kn=null;function Vn(e){Ir(e,0)}function Gn(e){if(K(wa(e)))return e}function Yn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Xn=Zn}else Xn=!1;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Kn=$n=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];Wn(t,Kn,e,xe(e)),Oe(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function or(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!f.call(t,a)||!ur(e[a],t[a]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=cr(n,o);var i=cr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==V(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=$r(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},jr={},Er={};function _r(e){if(jr[e])return jr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return jr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=_r("animationend"),Cr=_r("animationiteration"),Ar=_r("animationstart"),Rr=_r("transitionend"),Pr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Pr.set(e,t),s(t,[e])}for(var Lr=0;Lr<Or.length;Lr++){var Tr=Or[Lr];Mr(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Mr(kr,"onAnimationEnd"),Mr(Cr,"onAnimationIteration"),Mr(Ar,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Rr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,u,s,l){if(Be.apply(this,arguments),Fe){if(!Fe)throw Error(o(198));var c=Ne;Fe=!1,Ne=null,Ie||(Ie=!0,Ue=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==o&&a.isPropagationStopped())break e;Nr(a,u,l),o=s}else for(i=0;i<r.length;i++){if(s=(u=r[i]).instance,l=u.currentTarget,u=u.listener,s!==o&&a.isPropagationStopped())break e;Nr(a,u,l),o=s}}}if(Ie)throw e=Ue,Ie=!1,Ue=null,e}function Ur(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Qr(t,e,2,!1),n.add(r))}function qr(e,t,n){var r=0;t&&(r|=4),Qr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Br]){e[Br]=!0,i.forEach(function(t){"selectionchange"!==t&&(Fr.has(t)||qr(t,!1,e),qr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,qr("selectionchange",!1,t))}}function Qr(e,t,n,r){switch(Yt(t)){case 1:var a=Wt;break;case 4:a=$t;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var u=r.stateNode.containerInfo;if(u===a||8===u.nodeType&&u.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;i=i.return}for(;null!==u;){if(null===(i=ga(u)))return;if(5===(s=i.tag)||6===s){r=o=i;continue e}u=u.parentNode}}r=r.return}Oe(function(){var r=o,a=xe(n),i=[];e:{var u=Pr.get(e);if(void 0!==u){var s=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":l="focus",s=vn;break;case"focusout":l="blur",s=vn;break;case"beforeblur":case"afterblur":s=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Rn;break;case kr:case Cr:case Ar:s=yn;break;case Rr:s=Pn;break;case"scroll":s=dn;break;case"wheel":s=Mn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=An}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Me(h,d))&&c.push(Wr(h,m,p)))),f)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,a),i.push({event:u,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!ga(l)&&!l[ha])&&(s||u)&&(u=a.window===a?a:(u=a.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?ga(l):null)&&(l!==(f=ze(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?u:wa(s),p=null==l?u:wa(l),(u=new c(m,h+"leave",s,n,a)).target=f,u.relatedTarget=p,m=null,ga(a)===r&&((c=new c(d,h+"enter",l,n,a)).target=p,c.relatedTarget=f,m=c),f=m,s&&l)e:{for(d=l,h=0,p=c=s;p;p=Kr(p))h++;for(p=0,m=d;m;m=Kr(m))p++;for(;0<h-p;)c=Kr(c),h--;for(;0<p-h;)d=Kr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Kr(c),d=Kr(d)}c=null}else c=null;null!==s&&Vr(i,u,s,c,!1),null!==l&&null!==f&&Vr(i,f,l,c,!0)}if("select"===(s=(u=r?wa(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var v=Yn;else if(Hn(u))if(Jn)v=ir;else{v=ar;var y=rr}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=or);switch(v&&(v=v(e,r))?Wn(i,v,n,a):(y&&y(e,u,r),"focusout"===e&&(y=u._wrapperState)&&y.controlled&&"number"===u.type&&ee(u,"number",u.value)),y=r?wa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(i,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(i,n,a)}var g;if(Tn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?qn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(g=en()):(Xt="value"in(Jt=a)?Jt.value:Jt.textContent,zn=!0)),0<(y=$r(r,b)).length&&(b=new wn(b,e,null,n,a),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=Bn(n))&&(b.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Un=!0,In);case"textInput":return(e=t.data)===In&&Un?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Tn&&qn(e,t)?(e=en(),Zt=Xt=Jt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=g))}Ir(i,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Me(e,n))&&r.unshift(Wr(e,o,a)),null!=(o=Me(e,t))&&r.push(Wr(e,o,a))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,a?null!=(s=Me(n,o))&&i.unshift(Wr(n,s,u)):a||null!=(s=Me(n,o))&&i.push(Wr(n,s,u))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Jr(e){return("string"===typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,oa="function"===typeof Promise?Promise:void 0,ia="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oa?function(e){return oa.resolve(null).then(e).catch(ua)}:ra;function ua(e){setTimeout(function(){throw e})}function sa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);zt(t)}function la(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fa=Math.random().toString(36).slice(2),da="__reactFiber$"+fa,pa="__reactProps$"+fa,ha="__reactContainer$"+fa,ma="__reactEvents$"+fa,va="__reactListeners$"+fa,ya="__reactHandles$"+fa;function ga(e){var t=e[da];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[da]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[da])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[da]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xa(e){return e[pa]||null}var Sa=[],ja=-1;function Ea(e){return{current:e}}function _a(e){0>ja||(e.current=Sa[ja],Sa[ja]=null,ja--)}function ka(e,t){ja++,Sa[ja]=e.current,e.current=t}var Ca={},Aa=Ea(Ca),Ra=Ea(!1),Pa=Ca;function Oa(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ma(e){return null!==(e=e.childContextTypes)&&void 0!==e}function La(){_a(Ra),_a(Aa)}function Ta(e,t,n){if(Aa.current!==Ca)throw Error(o(168));ka(Aa,t),ka(Ra,n)}function Da(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,Q(e)||"Unknown",a));return N({},n,r)}function Fa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Pa=Aa.current,ka(Aa,e),ka(Ra,Ra.current),!0}function Na(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Da(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,_a(Ra),_a(Aa),ka(Aa,e)):_a(Ra),ka(Ra,n)}var Ia=null,Ua=!1,qa=!1;function Ba(e){null===Ia?Ia=[e]:Ia.push(e)}function za(){if(!qa&&null!==Ia){qa=!0;var e=0,t=bt;try{var n=Ia;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ia=null,Ua=!1}catch(a){throw null!==Ia&&(Ia=Ia.slice(e+1)),Ke(Ze,za),a}finally{bt=t,qa=!1}}return null}var Qa=[],Ha=0,Wa=null,$a=0,Ka=[],Va=0,Ga=null,Ya=1,Ja="";function Xa(e,t){Qa[Ha++]=$a,Qa[Ha++]=Wa,Wa=e,$a=t}function Za(e,t,n){Ka[Va++]=Ya,Ka[Va++]=Ja,Ka[Va++]=Ga,Ga=e;var r=Ya;e=Ja;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ya=1<<32-it(t)+a|n<<a|r,Ja=o+e}else Ya=1<<o|n<<a|r,Ja=e}function eo(e){null!==e.return&&(Xa(e,1),Za(e,1,0))}function to(e){for(;e===Wa;)Wa=Qa[--Ha],Qa[Ha]=null,$a=Qa[--Ha],Qa[Ha]=null;for(;e===Ga;)Ga=Ka[--Va],Ka[Va]=null,Ja=Ka[--Va],Ka[Va]=null,Ya=Ka[--Va],Ka[Va]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Ml(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function uo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=la(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ja}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ml(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function so(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function lo(e){if(ao){var t=ro;if(t){var n=t;if(!uo(e,t)){if(so(e))throw Error(o(418));t=la(n.nextSibling);var r=no;t&&uo(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(so(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!ao)return co(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(so(e))throw po(),Error(o(418));for(;t;)io(e,t),t=la(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=la(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?la(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=la(e.nextSibling)}function ho(){ro=no=null,ao=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=w.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var go=Ea(null),bo=null,wo=null,xo=null;function So(){xo=wo=bo=null}function jo(e){var t=go.current;_a(go),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wu=!0),e.firstContext=null)}function ko(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Co=null;function Ao(e){null===Co?Co=[e]:Co.push(e)}function Ro(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ao(t)):(n.next=a.next,a.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Oo=!1;function Mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Do(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Rs)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Po(e,n)}return null===(a=r.interleaved)?(t.next=t,Ao(r)):(t.next=a.next,a.next=t),r.interleaved=t,Po(e,n)}function Fo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function No(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Io(e,t,n,r){var a=e.updateQueue;Oo=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,u=a.shared.pending;if(null!==u){a.shared.pending=null;var s=u,l=s.next;s.next=null,null===i?o=l:i.next=l,i=s;var c=e.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s))}if(null!==o){var f=a.baseState;for(i=0,c=l=s=null,u=o;;){var d=u.lane,p=u.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(d=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(d="function"===typeof(h=m.payload)?h.call(p,f,d):h)||void 0===d)break e;f=N({},f,d);break e;case 2:Oo=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[u]:d.push(u))}else p={eventTime:p,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=p,s=f):c=c.next=p,i|=d;if(null===(u=u.next)){if(null===(u=a.shared.pending))break;u=(d=u).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(s=f),a.baseState=s,a.firstBaseUpdate=l,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Ns|=i,e.lanes=i,e.memoizedState=f}}function Uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(o(191,a));a.call(r)}}}var qo=(new r.Component).refs;function Bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),a=nl(e),o=To(r,a);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Do(e,o,a))&&(rl(t,e,a,r),Fo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),a=nl(e),o=To(r,a);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Do(e,o,a))&&(rl(t,e,a,r),Fo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),a=To(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Do(e,a,r))&&(rl(t,e,r,n),Fo(t,e,r))}};function Qo(e,t,n,r,a,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(a,o))}function Ho(e,t,n){var r=!1,a=Ca,o=t.contextType;return"object"===typeof o&&null!==o?o=ko(o):(a=Ma(t)?Pa:Aa.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Oa(e,a):Ca),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function $o(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=qo,Mo(e);var o=t.contextType;"object"===typeof o&&null!==o?a.context=ko(o):(o=Ma(t)?Pa:Aa.current,a.context=Oa(e,o)),a.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&zo.enqueueReplaceState(a,a.state,null),Io(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function Ko(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===qo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Tl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Il(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===j?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===M&&Go(o)===t.type)?((r=a(t,n.props)).ref=Ko(e,t,n),r.return=e,r):((r=Dl(n.type,n.key,n.props,null,e.mode,r)).ref=Ko(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ul(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Fl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Il(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Dl(t.type,t.key,t.props,null,e.mode,n)).ref=Ko(e,null,t),n.return=e,n;case S:return(t=Ul(t,e.mode,n)).return=e,t;case M:return d(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Fl(t,e.mode,n,null)).return=e,t;Vo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===a?l(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null;case M:return p(e,t,(a=n._init)(n._payload),r)}if(te(n)||D(n))return null!==a?null:f(e,t,n,r,null);Vo(e,n)}return null}function h(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case M:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||D(r))return f(t,e=e.get(n)||null,r,a,null);Vo(t,r)}return null}function m(a,o,u,s){for(var l=null,c=null,f=o,m=o=0,v=null;null!==f&&m<u.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(a,f,u[m],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(a,f),o=i(y,o,m),null===c?l=y:c.sibling=y,c=y,f=v}if(m===u.length)return n(a,f),ao&&Xa(a,m),l;if(null===f){for(;m<u.length;m++)null!==(f=d(a,u[m],s))&&(o=i(f,o,m),null===c?l=f:c.sibling=f,c=f);return ao&&Xa(a,m),l}for(f=r(a,f);m<u.length;m++)null!==(v=h(f,a,m,u[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=i(v,o,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(a,e)}),ao&&Xa(a,m),l}function v(a,u,s,l){var c=D(s);if("function"!==typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var f=c=null,m=u,v=u=0,y=null,g=s.next();null!==m&&!g.done;v++,g=s.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(a,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(a,m),u=i(b,u,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(a,m),ao&&Xa(a,v),c;if(null===m){for(;!g.done;v++,g=s.next())null!==(g=d(a,g.value,l))&&(u=i(g,u,v),null===f?c=g:f.sibling=g,f=g);return ao&&Xa(a,v),c}for(m=r(a,m);!g.done;v++,g=s.next())null!==(g=h(m,a,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),u=i(g,u,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach(function(e){return t(a,e)}),ao&&Xa(a,v),c}return function e(r,o,i,s){if("object"===typeof i&&null!==i&&i.type===j&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case x:e:{for(var l=i.key,c=o;null!==c;){if(c.key===l){if((l=i.type)===j){if(7===c.tag){n(r,c.sibling),(o=a(c,i.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===M&&Go(l)===c.type){n(r,c.sibling),(o=a(c,i.props)).ref=Ko(r,c,i),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===j?((o=Fl(i.props.children,r.mode,s,i.key)).return=r,r=o):((s=Dl(i.type,i.key,i.props,null,r.mode,s)).ref=Ko(r,o,i),s.return=r,r=s)}return u(r);case S:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ul(i,r.mode,s)).return=r,r=o}return u(r);case M:return e(r,o,(c=i._init)(i._payload),s)}if(te(i))return m(r,o,i,s);if(D(i))return v(r,o,i,s);Vo(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Il(i,r.mode,s)).return=r,r=o),u(r)):n(r,o)}}var Jo=Yo(!0),Xo=Yo(!1),Zo={},ei=Ea(Zo),ti=Ea(Zo),ni=Ea(Zo);function ri(e){if(e===Zo)throw Error(o(174));return e}function ai(e,t){switch(ka(ni,t),ka(ti,e),ka(ei,Zo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(ei),ka(ei,t)}function oi(){_a(ei),_a(ti),_a(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=se(t,e.type);t!==n&&(ka(ti,e),ka(ei,n))}function ui(e){ti.current===e&&(_a(ei),_a(ti))}var si=Ea(0);function li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function fi(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var di=w.ReactCurrentDispatcher,pi=w.ReactCurrentBatchConfig,hi=0,mi=null,vi=null,yi=null,gi=!1,bi=!1,wi=0,xi=0;function Si(){throw Error(o(321))}function ji(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,a,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=null===e||null===e.memoizedState?uu:su,e=n(r,a),bi){i=0;do{if(bi=!1,wi=0,25<=i)throw Error(o(301));i+=1,yi=vi=null,t.updateQueue=null,di.current=lu,e=n(r,a)}while(bi)}if(di.current=iu,t=null!==vi&&null!==vi.next,hi=0,yi=vi=mi=null,gi=!1,t)throw Error(o(300));return e}function _i(){var e=0!==wi;return wi=0,e}function ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?mi.memoizedState=yi=e:yi=yi.next=e,yi}function Ci(){if(null===vi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===yi?mi.memoizedState:yi.next;if(null!==t)yi=t,vi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===yi?mi.memoizedState=yi=e:yi=yi.next=e}return yi}function Ai(e,t){return"function"===typeof t?t(e):t}function Ri(e){var t=Ci(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=vi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var u=a.next;a.next=i.next,i.next=u}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var s=u=null,l=null,c=i;do{var f=c.lane;if((hi&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,u=r):l=l.next=d,mi.lanes|=f,Ns|=f}c=c.next}while(null!==c&&c!==i);null===l?u=r:l.next=s,ur(r,t.memoizedState)||(wu=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,mi.lanes|=i,Ns|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pi(e){var t=Ci(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var u=a=a.next;do{i=e(i,u.action),u=u.next}while(u!==a);ur(i,t.memoizedState)||(wu=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Oi(){}function Mi(e,t){var n=mi,r=Ci(),a=t(),i=!ur(r.memoizedState,a);if(i&&(r.memoizedState=a,wu=!0),r=r.queue,Hi(Di.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(n.flags|=2048,Ui(9,Ti.bind(null,n,r,a,t),void 0,null),null===Ps)throw Error(o(349));0!==(30&hi)||Li(n,t,a)}return a}function Li(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ti(e,t,n,r){t.value=n,t.getSnapshot=r,Fi(t)&&Ni(e)}function Di(e,t,n){return n(function(){Fi(t)&&Ni(e)})}function Fi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(r){return!0}}function Ni(e){var t=Po(e,1);null!==t&&rl(t,e,1,-1)}function Ii(e){var t=ki();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=nu.bind(null,mi,e),[t.memoizedState,e]}function Ui(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function qi(){return Ci().memoizedState}function Bi(e,t,n,r){var a=ki();mi.flags|=e,a.memoizedState=Ui(1|t,n,void 0,void 0===r?null:r)}function zi(e,t,n,r){var a=Ci();r=void 0===r?null:r;var o=void 0;if(null!==vi){var i=vi.memoizedState;if(o=i.destroy,null!==r&&ji(r,i.deps))return void(a.memoizedState=Ui(t,n,o,r))}mi.flags|=e,a.memoizedState=Ui(1|t,n,o,r)}function Qi(e,t){return Bi(8390656,8,e,t)}function Hi(e,t){return zi(2048,8,e,t)}function Wi(e,t){return zi(4,2,e,t)}function $i(e,t){return zi(4,4,e,t)}function Ki(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Vi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zi(4,4,Ki.bind(null,t,e),n)}function Gi(){}function Yi(e,t){var n=Ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ji(e,t){var n=Ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ji(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 0===(21&hi)?(e.baseState&&(e.baseState=!1,wu=!0),e.memoizedState=n):(ur(n,t)||(n=mt(),mi.lanes|=n,Ns|=n,e.baseState=!0),t)}function Zi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{bt=n,pi.transition=r}}function eu(){return Ci().memoizedState}function tu(e,t,n){var r=nl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ru(e))au(t,n);else if(null!==(n=Ro(e,t,n,r))){rl(n,e,r,tl()),ou(n,t,r)}}function nu(e,t,n){var r=nl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ru(e))au(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,u=o(i,n);if(a.hasEagerState=!0,a.eagerState=u,ur(u,i)){var s=t.interleaved;return null===s?(a.next=a,Ao(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(l){}null!==(n=Ro(e,t,a,r))&&(rl(n,e,r,a=tl()),ou(n,t,r))}}function ru(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function au(e,t){bi=gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ou(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var iu={readContext:ko,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},uu={readContext:ko,useCallback:function(e,t){return ki().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:Qi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Bi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bi(4,2,e,t)},useMemo:function(e,t){var n=ki();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ki();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tu.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ki().memoizedState=e},useState:Ii,useDebugValue:Gi,useDeferredValue:function(e){return ki().memoizedState=e},useTransition:function(){var e=Ii(!1),t=e[0];return e=Zi.bind(null,e[1]),ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,a=ki();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ps)throw Error(o(349));0!==(30&hi)||Li(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Qi(Di.bind(null,r,i,e),[e]),r.flags|=2048,Ui(9,Ti.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ki(),t=Ps.identifierPrefix;if(ao){var n=Ja;t=":"+t+"R"+(n=(Ya&~(1<<32-it(Ya)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},su={readContext:ko,useCallback:Yi,useContext:ko,useEffect:Hi,useImperativeHandle:Vi,useInsertionEffect:Wi,useLayoutEffect:$i,useMemo:Ji,useReducer:Ri,useRef:qi,useState:function(){return Ri(Ai)},useDebugValue:Gi,useDeferredValue:function(e){return Xi(Ci(),vi.memoizedState,e)},useTransition:function(){return[Ri(Ai)[0],Ci().memoizedState]},useMutableSource:Oi,useSyncExternalStore:Mi,useId:eu,unstable_isNewReconciler:!1},lu={readContext:ko,useCallback:Yi,useContext:ko,useEffect:Hi,useImperativeHandle:Vi,useInsertionEffect:Wi,useLayoutEffect:$i,useMemo:Ji,useReducer:Pi,useRef:qi,useState:function(){return Pi(Ai)},useDebugValue:Gi,useDeferredValue:function(e){var t=Ci();return null===vi?t.memoizedState=e:Xi(t,vi.memoizedState,e)},useTransition:function(){return[Pi(Ai)[0],Ci().memoizedState]},useMutableSource:Oi,useSyncExternalStore:Mi,useId:eu,unstable_isNewReconciler:!1};function cu(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function fu(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function du(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pu="function"===typeof WeakMap?WeakMap:Map;function hu(e,t,n){(n=To(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,$s=r),du(0,t)},n}function mu(e,t,n){(n=To(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){du(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){du(0,t),"function"!==typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=kl.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gu(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=To(-1,1)).tag=2,Do(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var bu=w.ReactCurrentOwner,wu=!1;function xu(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Jo(t,e.child,n,r)}function Su(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=Ei(e,t,n,r,o,a),n=_i(),null===e||wu?(ao&&n&&eo(t),t.flags|=1,xu(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wu(e,t,a))}function ju(e,t,n,r,a){if(null===e){var o=n.type;return"function"!==typeof o||Ll(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Eu(e,t,o,r,a))}if(o=e.child,0===(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Wu(e,t,a)}return t.flags|=1,(e=Tl(o,r)).ref=t.ref,e.return=t,t.child=e}function Eu(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref){if(wu=!1,t.pendingProps=r=o,0===(e.lanes&a))return t.lanes=e.lanes,Wu(e,t,a);0!==(131072&e.flags)&&(wu=!0)}}return Cu(e,t,n,r,a)}function _u(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ka(Ts,Ls),Ls|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ka(Ts,Ls),Ls|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ka(Ts,Ls),Ls|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ka(Ts,Ls),Ls|=r;return xu(e,t,a,n),t.child}function ku(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cu(e,t,n,r,a){var o=Ma(n)?Pa:Aa.current;return o=Oa(t,o),_o(t,a),n=Ei(e,t,n,r,o,a),r=_i(),null===e||wu?(ao&&r&&eo(t),t.flags|=1,xu(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wu(e,t,a))}function Au(e,t,n,r,a){if(Ma(n)){var o=!0;Fa(t)}else o=!1;if(_o(t,a),null===t.stateNode)Hu(e,t),Ho(t,n,r),$o(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,l=n.contextType;"object"===typeof l&&null!==l?l=ko(l):l=Oa(t,l=Ma(n)?Pa:Aa.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==r||s!==l)&&Wo(t,i,r,l),Oo=!1;var d=t.memoizedState;i.state=d,Io(t,r,i,a),s=t.memoizedState,u!==r||d!==s||Ra.current||Oo?("function"===typeof c&&(Bo(t,n,c,r),s=t.memoizedState),(u=Oo||Qo(t,n,u,r,d,s,l))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=l,r=u):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Lo(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:yo(t.type,u),i.props=l,f=t.pendingProps,d=i.context,"object"===typeof(s=n.contextType)&&null!==s?s=ko(s):s=Oa(t,s=Ma(n)?Pa:Aa.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==f||d!==s)&&Wo(t,i,r,s),Oo=!1,d=t.memoizedState,i.state=d,Io(t,r,i,a);var h=t.memoizedState;u!==f||d!==h||Ra.current||Oo?("function"===typeof p&&(Bo(t,n,p,r),h=t.memoizedState),(l=Oo||Qo(t,n,l,r,d,h,s)||!1)?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=l):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ru(e,t,n,r,o,a)}function Ru(e,t,n,r,a,o){ku(e,t);var i=0!==(128&t.flags);if(!r&&!i)return a&&Na(t,n,!1),Wu(e,t,o);r=t.stateNode,bu.current=t;var u=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,u,o)):xu(e,t,u,o),t.memoizedState=r.state,a&&Na(t,n,!0),t.child}function Pu(e){var t=e.stateNode;t.pendingContext?Ta(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ta(0,t.context,!1),ai(e,t.containerInfo)}function Ou(e,t,n,r,a){return ho(),mo(a),t.flags|=256,xu(e,t,n,r),t.child}var Mu,Lu,Tu,Du,Fu={dehydrated:null,treeContext:null,retryLane:0};function Nu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Iu(e,t,n){var r,a=t.pendingProps,i=si.current,u=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),ka(si,1&i),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=a.children,e=a.fallback,u?(a=t.mode,u=t.child,s={mode:"hidden",children:s},0===(1&a)&&null!==u?(u.childLanes=0,u.pendingProps=s):u=Nl(s,a,0,null),e=Fl(e,a,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Nu(n),t.memoizedState=Fu,e):Uu(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,u){if(n)return 256&t.flags?(t.flags&=-257,qu(e,t,u,r=fu(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Nl({mode:"visible",children:r.children},a,0,null),(i=Fl(i,a,u,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&Jo(t,e.child,null,u),t.child.memoizedState=Nu(u),t.memoizedState=Fu,i);if(0===(1&t.mode))return qu(e,t,u,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var s=r.dgst;return r=s,qu(e,t,u,r=fu(i=Error(o(419)),r,void 0))}if(s=0!==(u&e.childLanes),wu||s){if(null!==(r=Ps)){switch(u&-u){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|u))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Po(e,a),rl(r,e,a,-1))}return vl(),qu(e,t,u,r=fu(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Al.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=la(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Ka[Va++]=Ya,Ka[Va++]=Ja,Ka[Va++]=Ga,Ya=e.id,Ja=e.overflow,Ga=t),t=Uu(t,r.children),t.flags|=4096,t)}(e,t,s,a,r,i,n);if(u){u=a.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:a.children};return 0===(1&s)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null):(a=Tl(i,l)).subtreeFlags=14680064&i.subtreeFlags,null!==r?u=Tl(r,u):(u=Fl(u,s,n,null)).flags|=2,u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,s=null===(s=e.child.memoizedState)?Nu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Fu,a}return e=(u=e.child).sibling,a=Tl(u,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Uu(e,t){return(t=Nl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function qu(e,t,n,r){return null!==r&&mo(r),Jo(t,e.child,null,n),(e=Uu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function zu(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Qu(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(xu(e,t,r.children,n),0!==(2&(r=si.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bu(e,n,t);else if(19===e.tag)Bu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ka(si,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===li(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zu(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===li(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zu(t,!0,n,null,o);break;case"together":zu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hu(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ns|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Tl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $u(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ku(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vu(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ku(t),null;case 1:case 17:return Ma(t.type)&&La(),Ku(t),null;case 3:return r=t.stateNode,oi(),_a(Ra),_a(Aa),fi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ul(oo),oo=null))),Lu(e,t),Ku(t),null;case 5:ui(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Tu(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ku(t),null}if(e=ri(ei.current),fo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[da]=t,r[pa]=i,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(a=0;a<Dr.length;a++)Ur(Dr[a],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":Y(r,i),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ur("invalid",r);break;case"textarea":ae(r,i),Ur("invalid",r)}for(var s in ge(n,i),a=null,i)if(i.hasOwnProperty(s)){var l=i[s];"children"===s?"string"===typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,l,e),a=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,l,e),a=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Ur("scroll",r)}switch(n){case"input":$(r),Z(r,i,!0);break;case"textarea":$(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=Zr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[da]=t,e[pa]=r,Mu(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),a=r;break;case"iframe":case"object":case"embed":Ur("load",e),a=r;break;case"video":case"audio":for(a=0;a<Dr.length;a++)Ur(Dr[a],e);a=r;break;case"source":Ur("error",e),a=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),a=r;break;case"details":Ur("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),Ur("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=N({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Ur("invalid",e)}for(i in ge(n,a),l=a)if(l.hasOwnProperty(i)){var c=l[i];"style"===i?ve(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===i?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(u.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Ur("scroll",e):null!=c&&b(e,i,c,s))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ku(t),null;case 6:if(e&&null!=t.stateNode)Du(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[da]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[da]=t,t.stateNode=r}return Ku(t),null;case 13:if(_a(si),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,i=!1;else if(i=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[da]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ku(t),i=!1}else null!==oo&&(ul(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&si.current)?0===Ds&&(Ds=3):vl())),null!==t.updateQueue&&(t.flags|=4),Ku(t),null);case 4:return oi(),Lu(e,t),null===e&&zr(t.stateNode.containerInfo),Ku(t),null;case 10:return jo(t.type._context),Ku(t),null;case 19:if(_a(si),null===(i=t.memoizedState))return Ku(t),null;if(r=0!==(128&t.flags),null===(s=i.rendering))if(r)$u(i,!1);else{if(0!==Ds||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=li(e))){for(t.flags|=128,$u(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ka(si,1&si.current|2),t.child}e=e.sibling}null!==i.tail&&Je()>Qs&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=li(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$u(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!ao)return Ku(t),null}else 2*Je()-i.renderingStartTime>Qs&&1073741824!==n&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Je(),t.sibling=null,n=si.current,ka(si,r?1&n|2:1&n),t):(Ku(t),null);case 22:case 23:return dl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ls)&&(Ku(t),6&t.subtreeFlags&&(t.flags|=8192)):Ku(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gu(e,t){switch(to(t),t.tag){case 1:return Ma(t.type)&&La(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),_a(Ra),_a(Aa),fi(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ui(t),null;case 13:if(_a(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(si),null;case 4:return oi(),null;case 10:return jo(t.type._context),null;case 22:case 23:return dl(),null;default:return null}}Mu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Lu=function(){},Tu=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=G(e,a),r=G(e,r),i=[];break;case"select":a=N({},a,{value:void 0}),r=N({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var s=a[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Ur("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Du=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yu=!1,Ju=!1,Xu="function"===typeof WeakSet?WeakSet:Set,Zu=null;function es(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_l(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){_l(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&ts(t,n,o)}a=a.next}while(a!==r)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[da],delete t[pa],delete t[ma],delete t[va],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||us(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ls(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ls(e,t,n),e=e.sibling;null!==e;)ls(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var fs=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(u){}switch(n.tag){case 5:Ju||es(n,t);case 6:var r=fs,a=ds;fs=null,ps(e,t,n),ds=a,null!==(fs=r)&&(ds?(e=fs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fs.removeChild(n.stateNode));break;case 18:null!==fs&&(ds?(e=fs,n=n.stateNode,8===e.nodeType?sa(e.parentNode,n):1===e.nodeType&&sa(e,n),zt(e)):sa(fs,n.stateNode));break;case 4:r=fs,a=ds,fs=n.stateNode.containerInfo,ds=!0,ps(e,t,n),fs=r,ds=a;break;case 0:case 11:case 14:case 15:if(!Ju&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!==(2&o)||0!==(4&o))&&ts(n,t,i),a=a.next}while(a!==r)}ps(e,t,n);break;case 1:if(!Ju&&(es(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){_l(n,t,u)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Ju=(r=Ju)||null!==n.memoizedState,ps(e,t,n),Ju=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xu),t.forEach(function(t){var r=Rl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function vs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:fs=s.stateNode,ds=!1;break e;case 3:case 4:fs=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===fs)throw Error(o(160));hs(i,u,a),fs=null,ds=!1;var l=a.alternate;null!==l&&(l.return=null),a.return=null}catch(c){_l(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vs(t,e),gs(e),4&r){try{rs(3,e,e.return),as(3,e)}catch(v){_l(e,e.return,v)}try{rs(5,e,e.return)}catch(v){_l(e,e.return,v)}}break;case 1:vs(t,e),gs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(vs(t,e),gs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var a=e.stateNode;try{de(a,"")}catch(v){_l(e,e.return,v)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,u=null!==n?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&J(a,i),be(s,u);var c=be(s,i);for(u=0;u<l.length;u+=2){var f=l[u],d=l[u+1];"style"===f?ve(a,d):"dangerouslySetInnerHTML"===f?fe(a,d):"children"===f?de(a,d):b(a,f,d,c)}switch(s){case"input":X(a,i);break;case"textarea":oe(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(a,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[pa]=i}catch(v){_l(e,e.return,v)}}break;case 6:if(vs(t,e),gs(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){_l(e,e.return,v)}}break;case 3:if(vs(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(v){_l(e,e.return,v)}break;case 4:default:vs(t,e),gs(e);break;case 13:vs(t,e),gs(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(zs=Je())),4&r&&ms(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ju=(c=Ju)||f,vs(t,e),Ju=c):vs(t,e),gs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Zu=e,f=e.child;null!==f;){for(d=Zu=f;null!==Zu;){switch(h=(p=Zu).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){_l(r,n,v)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){Ss(d);continue}}null!==h?(h.return=p,Zu=h):Ss(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{a=d.stateNode,c?"function"===typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,u=void 0!==(l=d.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,s.style.display=me("display",u))}catch(v){_l(e,e.return,v)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){_l(e,e.return,v)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vs(t,e),gs(e),4&r&&ms(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(us(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(de(a,""),r.flags&=-33),cs(e,ss(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;ls(e,ss(e),i);break;default:throw Error(o(161))}}catch(u){_l(e,e.return,u)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zu=e,ws(e,t,n)}function ws(e,t,n){for(var r=0!==(1&e.mode);null!==Zu;){var a=Zu,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Yu;if(!i){var u=a.alternate,s=null!==u&&null!==u.memoizedState||Ju;u=Yu;var l=Ju;if(Yu=i,(Ju=s)&&!l)for(Zu=a;null!==Zu;)s=(i=Zu).child,22===i.tag&&null!==i.memoizedState?js(a):null!==s?(s.return=i,Zu=s):js(a);for(;null!==o;)Zu=o,ws(o,t,n),o=o.sibling;Zu=a,Yu=u,Ju=l}xs(e)}else 0!==(8772&a.subtreeFlags)&&null!==o?(o.return=a,Zu=o):xs(e)}}function xs(e){for(;null!==Zu;){var t=Zu;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ju||as(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ju)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Uo(t,i,r);break;case 3:var u=t.updateQueue;if(null!==u){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Uo(t,u,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(o(163))}Ju||512&t.flags&&os(t)}catch(p){_l(t,t.return,p)}}if(t===e){Zu=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zu=n;break}Zu=t.return}}function Ss(e){for(;null!==Zu;){var t=Zu;if(t===e){Zu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zu=n;break}Zu=t.return}}function js(e){for(;null!==Zu;){var t=Zu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(s){_l(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(s){_l(t,a,s)}}var o=t.return;try{os(t)}catch(s){_l(t,o,s)}break;case 5:var i=t.return;try{os(t)}catch(s){_l(t,i,s)}}}catch(s){_l(t,t.return,s)}if(t===e){Zu=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Zu=u;break}Zu=t.return}}var Es,_s=Math.ceil,ks=w.ReactCurrentDispatcher,Cs=w.ReactCurrentOwner,As=w.ReactCurrentBatchConfig,Rs=0,Ps=null,Os=null,Ms=0,Ls=0,Ts=Ea(0),Ds=0,Fs=null,Ns=0,Is=0,Us=0,qs=null,Bs=null,zs=0,Qs=1/0,Hs=null,Ws=!1,$s=null,Ks=null,Vs=!1,Gs=null,Ys=0,Js=0,Xs=null,Zs=-1,el=0;function tl(){return 0!==(6&Rs)?Je():-1!==Zs?Zs:Zs=Je()}function nl(e){return 0===(1&e.mode)?1:0!==(2&Rs)&&0!==Ms?Ms&-Ms:null!==vo.transition?(0===el&&(el=mt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rl(e,t,n,r){if(50<Js)throw Js=0,Xs=null,Error(o(185));yt(e,n,r),0!==(2&Rs)&&e===Ps||(e===Ps&&(0===(2&Rs)&&(Is|=n),4===Ds&&sl(e,Ms)),al(e,r),1===n&&0===Rs&&0===(1&t.mode)&&(Qs=Je()+500,Ua&&za()))}function al(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),u=1<<i,s=a[i];-1===s?0!==(u&n)&&0===(u&r)||(a[i]=pt(u,t)):s<=t&&(e.expiredLanes|=u),o&=~u}}(e,t);var r=dt(e,e===Ps?Ms:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Ua=!0,Ba(e)}(ll.bind(null,e)):Ba(ll.bind(null,e)),ia(function(){0===(6&Rs)&&za()}),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Zs=-1,el=0,0!==(6&Rs))throw Error(o(327));var n=e.callbackNode;if(jl()&&e.callbackNode!==n)return null;var r=dt(e,e===Ps?Ms:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=yl(e,r);else{t=r;var a=Rs;Rs|=2;var i=ml();for(Ps===e&&Ms===t||(Hs=null,Qs=Je()+500,pl(e,t));;)try{bl();break}catch(s){hl(e,s)}So(),ks.current=i,Rs=a,null!==Os?t=0:(Ps=null,Ms=0,t=Ds)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=il(e,a))),1===t)throw n=Fs,pl(e,0),sl(e,r),al(e,Je()),n;if(6===t)sl(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ur(o(),a))return!1}catch(u){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yl(e,r))&&(0!==(i=ht(e))&&(r=i,t=il(e,i))),1===t))throw n=Fs,pl(e,0),sl(e,r),al(e,Je()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Sl(e,Bs,Hs);break;case 3:if(sl(e,r),(130023424&r)===r&&10<(t=zs+500-Je())){if(0!==dt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(Sl.bind(null,e,Bs,Hs),t);break}Sl(e,Bs,Hs);break;case 4:if(sl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var u=31-it(r);i=1<<u,(u=t[u])>a&&(a=u),r&=~i}if(r=a,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_s(r/1960))-r)){e.timeoutHandle=ra(Sl.bind(null,e,Bs,Hs),r);break}Sl(e,Bs,Hs);break;default:throw Error(o(329))}}}return al(e,Je()),e.callbackNode===n?ol.bind(null,e):null}function il(e,t){var n=qs;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=yl(e,t))&&(t=Bs,Bs=n,null!==t&&ul(t)),e}function ul(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function sl(e,t){for(t&=~Us,t&=~Is,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(0!==(6&Rs))throw Error(o(327));jl();var t=dt(e,0);if(0===(1&t))return al(e,Je()),null;var n=yl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Fs,pl(e,0),sl(e,t),al(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sl(e,Bs,Hs),al(e,Je()),null}function cl(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(Qs=Je()+500,Ua&&za())}}function fl(e){null!==Gs&&0===Gs.tag&&0===(6&Rs)&&jl();var t=Rs;Rs|=1;var n=As.transition,r=bt;try{if(As.transition=null,bt=1,e)return e()}finally{bt=r,As.transition=n,0===(6&(Rs=t))&&za()}}function dl(){Ls=Ts.current,_a(Ts)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&La();break;case 3:oi(),_a(Ra),_a(Aa),fi();break;case 5:ui(r);break;case 4:oi();break;case 13:case 19:_a(si);break;case 10:jo(r.type._context);break;case 22:case 23:dl()}n=n.return}if(Ps=e,Os=e=Tl(e.current,null),Ms=Ls=t,Ds=0,Fs=null,Us=Is=Ns=0,Bs=qs=null,null!==Co){for(t=0;t<Co.length;t++)if(null!==(r=(n=Co[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}Co=null}return e}function hl(e,t){for(;;){var n=Os;try{if(So(),di.current=iu,gi){for(var r=mi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}gi=!1}if(hi=0,yi=vi=mi=null,bi=!1,wi=0,Cs.current=null,null===n||null===n.return){Ds=1,Fs=t,Os=null;break}e:{var i=e,u=n.return,s=n,l=t;if(t=Ms,s.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,f=s,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=yu(u);if(null!==h){h.flags&=-257,gu(h,u,s,0,t),1&h.mode&&vu(i,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}if(0===(1&t)){vu(i,c,t),vl();break e}l=Error(o(426))}else if(ao&&1&s.mode){var y=yu(u);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),gu(y,u,s,0,t),mo(cu(l,s));break e}}i=l=cu(l,s),4!==Ds&&(Ds=2),null===qs?qs=[i]:qs.push(i),i=u;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,No(i,hu(0,l,t));break e;case 1:s=l;var g=i.type,b=i.stateNode;if(0===(128&i.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ks||!Ks.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,No(i,mu(i,s,t));break e}}i=i.return}while(null!==i)}xl(n)}catch(w){t=w,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function ml(){var e=ks.current;return ks.current=iu,null===e?iu:e}function vl(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Ps||0===(268435455&Ns)&&0===(268435455&Is)||sl(Ps,Ms)}function yl(e,t){var n=Rs;Rs|=2;var r=ml();for(Ps===e&&Ms===t||(Hs=null,pl(e,t));;)try{gl();break}catch(a){hl(e,a)}if(So(),Rs=n,ks.current=r,null!==Os)throw Error(o(261));return Ps=null,Ms=0,Ds}function gl(){for(;null!==Os;)wl(Os)}function bl(){for(;null!==Os&&!Ge();)wl(Os)}function wl(e){var t=Es(e.alternate,e,Ls);e.memoizedProps=e.pendingProps,null===t?xl(e):Os=t,Cs.current=null}function xl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Vu(n,t,Ls)))return void(Os=n)}else{if(null!==(n=Gu(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return Ds=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===Ds&&(Ds=5)}function Sl(e,t,n){var r=bt,a=As.transition;try{As.transition=null,bt=1,function(e,t,n,r){do{jl()}while(null!==Gs);if(0!==(6&Rs))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Ps&&(Os=Ps=null,Ms=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Vs||(Vs=!0,Pl(tt,function(){return jl(),null})),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=As.transition,As.transition=null;var u=bt;bt=1;var s=Rs;Rs|=4,Cs.current=null,function(e,t){if(ea=Ht,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var u=0,s=-1,l=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==a&&3!==d.nodeType||(s=u+a),d!==i||0!==r&&3!==d.nodeType||(l=u+r),3===d.nodeType&&(u+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===a&&(s=u),p===i&&++f===r&&(l=u),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Zu=t;null!==Zu;)if(e=(t=Zu).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zu=e;else for(;null!==Zu;){t=Zu;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,y=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:yo(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){_l(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zu=e;break}Zu=t.return}m=ns,ns=!1}(e,n),ys(n,e),hr(ta),Ht=!!ea,ta=ea=null,e.current=n,bs(n,e,a),Ye(),Rs=s,bt=u,As.transition=i}else e.current=n;if(Vs&&(Vs=!1,Gs=e,Ys=a),i=e.pendingLanes,0===i&&(Ks=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),al(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ws)throw Ws=!1,e=$s,$s=null,e;0!==(1&Ys)&&0!==e.tag&&jl(),i=e.pendingLanes,0!==(1&i)?e===Xs?Js++:(Js=0,Xs=e):Js=0,za()}(e,t,n,r)}finally{As.transition=a,bt=r}return null}function jl(){if(null!==Gs){var e=wt(Ys),t=As.transition,n=bt;try{if(As.transition=null,bt=16>e?16:e,null===Gs)var r=!1;else{if(e=Gs,Gs=null,Ys=0,0!==(6&Rs))throw Error(o(331));var a=Rs;for(Rs|=4,Zu=e.current;null!==Zu;){var i=Zu,u=i.child;if(0!==(16&Zu.flags)){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Zu=c;null!==Zu;){var f=Zu;switch(f.tag){case 0:case 11:case 15:rs(8,f,i)}var d=f.child;if(null!==d)d.return=f,Zu=d;else for(;null!==Zu;){var p=(f=Zu).sibling,h=f.return;if(is(f),f===c){Zu=null;break}if(null!==p){p.return=h,Zu=p;break}Zu=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(null!==v)}}Zu=i}}if(0!==(2064&i.subtreeFlags)&&null!==u)u.return=i,Zu=u;else e:for(;null!==Zu;){if(0!==(2048&(i=Zu).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var g=i.sibling;if(null!==g){g.return=i.return,Zu=g;break e}Zu=i.return}}var b=e.current;for(Zu=b;null!==Zu;){var w=(u=Zu).child;if(0!==(2064&u.subtreeFlags)&&null!==w)w.return=u,Zu=w;else e:for(u=b;null!==Zu;){if(0!==(2048&(s=Zu).flags))try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(S){_l(s,s.return,S)}if(s===u){Zu=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Zu=x;break e}Zu=s.return}}if(Rs=a,za(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(S){}r=!0}return r}finally{bt=n,As.transition=t}}return!1}function El(e,t,n){e=Do(e,t=hu(0,t=cu(n,t),1),1),t=tl(),null!==e&&(yt(e,1,t),al(e,t))}function _l(e,t,n){if(3===e.tag)El(e,e,n);else for(;null!==t;){if(3===t.tag){El(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=Do(t,e=mu(t,e=cu(n,e),1),1),e=tl(),null!==t&&(yt(t,1,e),al(t,e));break}}t=t.return}}function kl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ms&n)===n&&(4===Ds||3===Ds&&(130023424&Ms)===Ms&&500>Je()-zs?pl(e,0):Us|=n),al(e,t)}function Cl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tl();null!==(e=Po(e,t))&&(yt(e,t,n),al(e,n))}function Al(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cl(e,n)}function Rl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cl(e,n)}function Pl(e,t){return Ke(e,t)}function Ol(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ml(e,t,n,r){return new Ol(e,t,n,r)}function Ll(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tl(e,t){var n=e.alternate;return null===n?((n=Ml(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,a,i){var u=2;if(r=e,"function"===typeof e)Ll(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case j:return Fl(n.children,a,i,t);case E:u=8,a|=8;break;case _:return(e=Ml(12,n,t,2|a)).elementType=_,e.lanes=i,e;case R:return(e=Ml(13,n,t,a)).elementType=R,e.lanes=i,e;case P:return(e=Ml(19,n,t,a)).elementType=P,e.lanes=i,e;case L:return Nl(n,a,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:u=10;break e;case C:u=9;break e;case A:u=11;break e;case O:u=14;break e;case M:u=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ml(u,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Fl(e,t,n,r){return(e=Ml(7,e,r,t)).lanes=n,e}function Nl(e,t,n,r){return(e=Ml(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Il(e,t,n){return(e=Ml(6,e,null,t)).lanes=n,e}function Ul(e,t,n){return(t=Ml(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ql(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,r,a,o,i,u,s){return e=new ql(e,t,n,u,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ml(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(o),e}function zl(e){if(!e)return Ca;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ma(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ma(n))return Da(e,n,t)}return t}function Ql(e,t,n,r,a,o,i,u,s){return(e=Bl(n,r,!0,e,0,o,0,u,s)).context=zl(null),n=e.current,(o=To(r=tl(),a=nl(n))).callback=void 0!==t&&null!==t?t:null,Do(n,o,a),e.current.lanes=a,yt(e,a,r),al(e,r),e}function Hl(e,t,n,r){var a=t.current,o=tl(),i=nl(a);return n=zl(n),null===t.context?t.context=n:t.pendingContext=n,(t=To(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Do(a,t,i))&&(rl(e,a,i,o),Fo(e,a,i)),i}function Wl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}Es=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ra.current)wu=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wu=!1,function(e,t,n){switch(t.tag){case 3:Pu(t),ho();break;case 5:ii(t);break;case 1:Ma(t.type)&&Fa(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;ka(go,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ka(si,1&si.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Iu(e,t,n):(ka(si,1&si.current),null!==(e=Wu(e,t,n))?e.sibling:null);ka(si,1&si.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Qu(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ka(si,si.current),r)break;return null;case 22:case 23:return t.lanes=0,_u(e,t,n)}return Wu(e,t,n)}(e,t,n);wu=0!==(131072&e.flags)}else wu=!1,ao&&0!==(1048576&t.flags)&&Za(t,$a,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hu(e,t),e=t.pendingProps;var a=Oa(t,Aa.current);_o(t,n),a=Ei(null,t,r,e,a,n);var i=_i();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ma(r)?(i=!0,Fa(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Mo(t),a.updater=zo,t.stateNode=a,a._reactInternals=t,$o(t,r,e,n),t=Ru(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),xu(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hu(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Ll(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===O)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=Au(null,t,r,e,n);break e;case 11:t=Su(null,t,r,e,n);break e;case 14:t=ju(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Cu(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Au(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Pu(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Lo(e,t),Io(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ou(e,t,r,n,a=cu(Error(o(423)),t));break e}if(r!==a){t=Ou(e,t,r,n,a=cu(Error(o(424)),t));break e}for(ro=la(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===a){t=Wu(e,t,n);break e}xu(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&lo(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,u=a.children,na(r,a)?u=null:null!==i&&na(r,i)&&(t.flags|=32),ku(e,t),xu(e,t,u,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Iu(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Jo(t,null,r,n):xu(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Su(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return xu(e,t,t.pendingProps,n),t.child;case 8:case 12:return xu(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,u=a.value,ka(go,r._currentValue),r._currentValue=u,null!==i)if(ur(i.value,u)){if(i.children===a.children&&!Ra.current){t=Wu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){u=i.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=To(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Eo(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===i.tag)u=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(u=i.return))throw Error(o(341));u.lanes|=n,null!==(s=u.alternate)&&(s.lanes|=n),Eo(u,n,t),u=i.sibling}else u=i.child;if(null!==u)u.return=i;else for(u=i;null!==u;){if(u===t){u=null;break}if(null!==(i=u.sibling)){i.return=u.return,u=i;break}u=u.return}i=u}xu(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,_o(t,n),r=r(a=ko(a)),t.flags|=1,xu(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),ju(e,t,r,a=yo(r.type,a),n);case 15:return Eu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hu(e,t),t.tag=1,Ma(r)?(e=!0,Fa(t)):e=!1,_o(t,n),Ho(t,r,a),$o(t,r,a,n),Ru(null,t,r,!0,e,n);case 19:return Qu(e,t,n);case 22:return _u(e,t,n)}throw Error(o(156,t.tag))};var Vl="function"===typeof reportError?reportError:function(e){console.error(e)};function Gl(e){this._internalRoot=e}function Yl(e){this._internalRoot=e}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function ec(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"===typeof a){var u=a;a=function(){var e=Wl(i);u.call(e)}}Hl(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"===typeof r){var o=r;r=function(){var e=Wl(i);o.call(e)}}var i=Ql(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=i,e[ha]=i.current,zr(8===e.nodeType?e.parentNode:e),fl(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var u=r;r=function(){var e=Wl(s);u.call(e)}}var s=Bl(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=s,e[ha]=s.current,zr(8===e.nodeType?e.parentNode:e),fl(function(){Hl(t,s,n,r)}),s}(n,t,e,a,r);return Wl(i)}Yl.prototype.render=Gl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hl(e,t,null,null)},Yl.prototype.unmount=Gl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fl(function(){Hl(null,e,null,null)}),t[ha]=null}},Yl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Nt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),al(t,Je()),0===(6&Rs)&&(Qs=Je()+500,za()))}break;case 13:fl(function(){var t=Po(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}}),Kl(e,1)}},St=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rl(t,e,134217728,tl());Kl(e,134217728)}},jt=function(e){if(13===e.tag){var t=nl(e),n=Po(e,t);if(null!==n)rl(n,e,t,tl());Kl(e,t)}},Et=function(){return bt},_t=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=xa(r);if(!a)throw Error(o(90));K(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=cl,Re=fl;var tc={usingClientEntryPoint:!1,Events:[ba,wa,xa,ke,Ce,cl]},nc={findFiberByHostInstance:ga,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),ot=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Jl(e))throw Error(o(299));var n=!1,r="",a=Vl;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Bl(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,zr(8===e.nodeType?e.parentNode:e),new Gl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return fl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Jl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",u=Vl;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),t=Ql(t,null,e,1,null!=n?n:null,a,0,i,u),e[ha]=t.current,zr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yl(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(o(40));return!!e._reactRootContainer&&(fl(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[ha]=null})}),!0)},t.unstable_batchedUpdates=cl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},"react-dom@18.2.0/client.js":(e,t,n)=>{"use strict";var r=n("react-dom@18.2.0/index.js");t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},"react-dom@18.2.0/index.js":(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n("react-dom@18.2.0/cjs/react-dom.production.min.js")},"react-is@18.2.0/cjs/react-is.production.min.js":(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case u:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case f:case m:case h:case s:return e;default:return t}}case a:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=a,t.Profiler=u,t.StrictMode=i,t.Suspense=d,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===u},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===d},t.isSuspenseList=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===u||e===i||e===d||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},"react-is@18.2.0/index.js":(e,t,n)=>{"use strict";e.exports=n("react-is@18.2.0/cjs/react-is.production.min.js")},"react-loadable@5.5.0/lib/index.js":(e,t,n)=>{"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=n("react@18.2.0/index.js"),s=n("prop-types@15.8.1/index.js"),l=[],c=[];function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function d(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach(function(r){var a=f(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(r){t.error=r}return t.promise=Promise.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function p(e,t){return u.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var f,d;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),m=null;function v(){return m||(m=e(h.loader)),m.promise}return l.push(v),"function"===typeof h.webpack&&c.push(function(){if(e=h.webpack,"object"===r(n.m)&&e().every(function(e){return"undefined"!==typeof e&&"undefined"!==typeof n.m[e]}))return v();var e}),d=f=function(t){function n(r){a(this,n);var i=o(this,t.call(this,r));return i.retry=function(){i.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),i._loadModule()},v(),i.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},i}return i(n,t),n.preload=function(){return v()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach(function(t){e.context.loadable.report(t)}),m.loading){"number"===typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},h.delay)),"number"===typeof h.timeout&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},h.timeout));var t=function(){e._mounted&&(e.setState({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts())};m.promise.then(function(){t()}).catch(function(e){t()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?u.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(u.Component),f.contextTypes={loadable:s.shape({report:s.func.isRequired})},d}function m(e){return h(f,e)}m.Map=function(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(d,e)};var v=function(e){function t(){return a(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return u.Children.only(this.props.children)},t}(u.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then(function(){if(e.length)return y(e)})}v.propTypes={report:s.func.isRequired},v.childContextTypes={loadable:s.shape({report:s.func.isRequired}).isRequired},m.Capture=v,m.preloadAll=function(){return new Promise(function(e,t){y(l).then(e,t)})},m.preloadReady=function(){return new Promise(function(e,t){y(c).then(e,e)})},e.exports=m},"react-redux@8.1.2/es/components/Context.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactReduxContext:()=>u,default:()=>s});var r=n("react@18.2.0/index.js");const a=Symbol.for("react-redux-context"),o="undefined"!==typeof globalThis?globalThis:{};function i(){var e;if(!r.createContext)return{};const t=null!=(e=o[a])?e:o[a]=new Map;let n=t.get(r.createContext);return n||(n=r.createContext(null),t.set(r.createContext,n)),n}const u=i(),s=u},"react-redux@8.1.2/es/components/Provider.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("react@18.2.0/index.js"),a=n("react-redux@8.1.2/es/components/Context.js"),o=n("react-redux@8.1.2/es/utils/Subscription.js"),i=n("react-redux@8.1.2/es/utils/useIsomorphicLayoutEffect.js");const u=function(e){let{store:t,context:n,children:u,serverState:s,stabilityCheck:l="once",noopCheck:c="once"}=e;const f=r.useMemo(()=>{const e=(0,o.createSubscription)(t);return{store:t,subscription:e,getServerState:s?()=>s:void 0,stabilityCheck:l,noopCheck:c}},[t,s,l,c]),d=r.useMemo(()=>t.getState(),[t]);(0,i.useIsomorphicLayoutEffect)(()=>{const{subscription:e}=f;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),d!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[f,d]);const p=n||a.ReactReduxContext;return r.createElement(p.Provider,{value:f},u)}},"react-redux@8.1.2/es/components/connect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E,initializeConnect:()=>w});var r=n("@babel/runtime@7.20.13/helpers/esm/extends.js"),a=n("@babel/runtime@7.20.13/helpers/esm/objectWithoutPropertiesLoose.js"),o=n("hoist-non-react-statics@3.3.2/dist/hoist-non-react-statics.cjs.js"),i=n.n(o),u=n("react@18.2.0/index.js"),s=n("react-is@18.2.0/index.js"),l=n("react-redux@8.1.2/es/connect/selectorFactory.js"),c=n("react-redux@8.1.2/es/connect/mapDispatchToProps.js"),f=n("react-redux@8.1.2/es/connect/mapStateToProps.js"),d=n("react-redux@8.1.2/es/connect/mergeProps.js"),p=n("react-redux@8.1.2/es/utils/Subscription.js"),h=n("react-redux@8.1.2/es/utils/useIsomorphicLayoutEffect.js"),m=n("react-redux@8.1.2/es/utils/shallowEqual.js"),v=(n("react-redux@8.1.2/es/utils/warning.js"),n("react-redux@8.1.2/es/components/Context.js")),y=n("react-redux@8.1.2/es/utils/useSyncExternalStore.js");const g=["reactReduxForwardedRef"];let b=y.notInitialized;const w=e=>{b=e},x=[null,null];function S(e,t,n,r,a,o){e.current=r,n.current=!1,a.current&&(a.current=null,o())}function j(e,t){return e===t}const E=function(e,t,n){let{pure:o,areStatesEqual:y=j,areOwnPropsEqual:w=m.default,areStatePropsEqual:E=m.default,areMergedPropsEqual:_=m.default,forwardRef:k=!1,context:C=v.ReactReduxContext}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const A=C,R=(0,f.mapStateToPropsFactory)(e),P=(0,c.mapDispatchToPropsFactory)(t),O=(0,d.mergePropsFactory)(n),M=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),o={shouldHandleStateChanges:M,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:R,initMapDispatchToProps:P,initMergeProps:O,areStatesEqual:y,areStatePropsEqual:E,areOwnPropsEqual:w,areMergedPropsEqual:_};function c(t){const[n,i,c]=u.useMemo(()=>{const{reactReduxForwardedRef:e}=t,n=(0,a.default)(t,g);return[t.context,e,n]},[t]),f=u.useMemo(()=>n&&n.Consumer&&(0,s.isContextConsumer)(u.createElement(n.Consumer,null))?n:A,[n,A]),d=u.useContext(f),m=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),v=Boolean(d)&&Boolean(d.store);const y=m?t.store:d.store,w=v?d.getServerState:y.getState,j=u.useMemo(()=>(0,l.default)(y.dispatch,o),[y]),[E,_]=u.useMemo(()=>{if(!M)return x;const e=(0,p.createSubscription)(y,m?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[y,m,d]),k=u.useMemo(()=>m?d:(0,r.default)({},d,{subscription:E}),[m,d,E]),C=u.useRef(),R=u.useRef(c),P=u.useRef(),O=u.useRef(!1),L=(u.useRef(!1),u.useRef(!1)),T=u.useRef();(0,h.useIsomorphicLayoutEffect)(()=>(L.current=!0,()=>{L.current=!1}),[]);const D=u.useMemo(()=>()=>P.current&&c===R.current?P.current:j(y.getState(),c),[y,c]),F=u.useMemo(()=>e=>E?function(e,t,n,r,a,o,i,u,s,l,c){if(!e)return()=>{};let f=!1,d=null;const p=()=>{if(f||!u.current)return;const e=t.getState();let n,p;try{n=r(e,a.current)}catch(h){p=h,d=h}p||(d=null),n===o.current?i.current||l():(o.current=n,s.current=n,i.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}(M,y,E,j,R,C,O,L,P,_,e):()=>{},[E]);var N,I,U;let q;N=S,I=[R,C,O,c,P,_],(0,h.useIsomorphicLayoutEffect)(()=>N(...I),U);try{q=b(F,D,w?()=>j(w(),c):D)}catch(z){throw T.current&&(z.message+="\nThe error may be correlated with this previous error:\n".concat(T.current.stack,"\n\n")),z}(0,h.useIsomorphicLayoutEffect)(()=>{T.current=void 0,P.current=void 0,C.current=q});const B=u.useMemo(()=>u.createElement(e,(0,r.default)({},q,{ref:i})),[i,e,q]);return u.useMemo(()=>M?u.createElement(f.Provider,{value:k},B):B,[f,B,k])}const f=u.memo(c);if(f.WrappedComponent=e,f.displayName=c.displayName=n,k){const t=u.forwardRef(function(e,t){return u.createElement(f,(0,r.default)({},e,{reactReduxForwardedRef:t}))});return t.displayName=n,t.WrappedComponent=e,i()(t,e)}return i()(f,e)}}},"react-redux@8.1.2/es/connect/invalidArgFactory.js":(e,t,n)=>{"use strict";function r(e,t){return(n,r)=>{throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}n.r(t),n.d(t,{createInvalidArgFactory:()=>r})},"react-redux@8.1.2/es/connect/mapDispatchToProps.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{mapDispatchToPropsFactory:()=>i});var r=n("react-redux@8.1.2/es/utils/bindActionCreators.js"),a=n("react-redux@8.1.2/es/connect/wrapMapToProps.js"),o=n("react-redux@8.1.2/es/connect/invalidArgFactory.js");function i(e){return e&&"object"===typeof e?(0,a.wrapMapToPropsConstant)(t=>(0,r.default)(e,t)):e?"function"===typeof e?(0,a.wrapMapToPropsFunc)(e,"mapDispatchToProps"):(0,o.createInvalidArgFactory)(e,"mapDispatchToProps"):(0,a.wrapMapToPropsConstant)(e=>({dispatch:e}))}},"react-redux@8.1.2/es/connect/mapStateToProps.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{mapStateToPropsFactory:()=>o});var r=n("react-redux@8.1.2/es/connect/wrapMapToProps.js"),a=n("react-redux@8.1.2/es/connect/invalidArgFactory.js");function o(e){return e?"function"===typeof e?(0,r.wrapMapToPropsFunc)(e,"mapStateToProps"):(0,a.createInvalidArgFactory)(e,"mapStateToProps"):(0,r.wrapMapToPropsConstant)(()=>({}))}},"react-redux@8.1.2/es/connect/mergeProps.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultMergeProps:()=>o,mergePropsFactory:()=>u,wrapMergePropsFunc:()=>i});var r=n("@babel/runtime@7.20.13/helpers/esm/extends.js"),a=(n("react-redux@8.1.2/es/utils/verifyPlainObject.js"),n("react-redux@8.1.2/es/connect/invalidArgFactory.js"));function o(e,t,n){return(0,r.default)({},n,e,t)}function i(e){return function(t,n){let r,{displayName:a,areMergedPropsEqual:o}=n,i=!1;return function(t,n,a){const u=e(t,n,a);return i?o(u,r)||(r=u):(i=!0,r=u),r}}}function u(e){return e?"function"===typeof e?i(e):(0,a.createInvalidArgFactory)(e,"mergeProps"):()=>o}},"react-redux@8.1.2/es/connect/selectorFactory.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,pureFinalPropsSelectorFactory:()=>o});var r=n("@babel/runtime@7.20.13/helpers/esm/objectWithoutPropertiesLoose.js");n("react-redux@8.1.2/es/connect/verifySubselectors.js");const a=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function o(e,t,n,r,a){let o,i,u,s,l,{areStatesEqual:c,areOwnPropsEqual:f,areStatePropsEqual:d}=a,p=!1;function h(a,p){const h=!f(p,i),m=!c(a,o,p,i);return o=a,i=p,h&&m?(u=e(o,i),t.dependsOnOwnProps&&(s=t(r,i)),l=n(u,s,i),l):h?(e.dependsOnOwnProps&&(u=e(o,i)),t.dependsOnOwnProps&&(s=t(r,i)),l=n(u,s,i),l):m?function(){const t=e(o,i),r=!d(t,u);return u=t,r&&(l=n(u,s,i)),l}():l}return function(a,c){return p?h(a,c):(o=a,i=c,u=e(o,i),s=t(r,i),l=n(u,s,i),p=!0,l)}}function i(e,t){let{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:u}=t,s=(0,r.default)(t,a);return o(n(e,s),i(e,s),u(e,s),e,s)}},"react-redux@8.1.2/es/connect/verifySubselectors.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react-redux@8.1.2/es/utils/warning.js");function a(e,t){if(!e)throw new Error("Unexpected value for ".concat(t," in connect."));"mapStateToProps"!==t&&"mapDispatchToProps"!==t||Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||(0,r.default)("The selector for ".concat(t," of connect did not specify a value for dependsOnOwnProps."))}function o(e,t,n){a(e,"mapStateToProps"),a(t,"mapDispatchToProps"),a(n,"mergeProps")}},"react-redux@8.1.2/es/connect/wrapMapToProps.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDependsOnOwnProps:()=>a,wrapMapToPropsConstant:()=>r,wrapMapToPropsFunc:()=>o});n("react-redux@8.1.2/es/utils/verifyPlainObject.js");function r(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function a(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,n){let{displayName:r}=n;const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=a(e);let r=o(t,n);return"function"===typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=a(r),r=o(t,n)),r},o}}},"react-redux@8.1.2/es/exports.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>r.default,ReactReduxContext:()=>o.ReactReduxContext,connect:()=>a.default,createDispatchHook:()=>i.createDispatchHook,createSelectorHook:()=>u.createSelectorHook,createStoreHook:()=>s.createStoreHook,shallowEqual:()=>l.default,useDispatch:()=>i.useDispatch,useSelector:()=>u.useSelector,useStore:()=>s.useStore});var r=n("react-redux@8.1.2/es/components/Provider.js"),a=n("react-redux@8.1.2/es/components/connect.js"),o=n("react-redux@8.1.2/es/components/Context.js"),i=n("react-redux@8.1.2/es/hooks/useDispatch.js"),u=n("react-redux@8.1.2/es/hooks/useSelector.js"),s=n("react-redux@8.1.2/es/hooks/useStore.js"),l=n("react-redux@8.1.2/es/utils/shallowEqual.js");n("react-redux@8.1.2/es/types.js")},"react-redux@8.1.2/es/hooks/useDispatch.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createDispatchHook:()=>o,useDispatch:()=>i});var r=n("react-redux@8.1.2/es/components/Context.js"),a=n("react-redux@8.1.2/es/hooks/useStore.js");function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.ReactReduxContext;const t=e===r.ReactReduxContext?a.useStore:(0,a.createStoreHook)(e);return function(){return t().dispatch}}const i=o()},"react-redux@8.1.2/es/hooks/useReduxContext.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createReduxContextHook:()=>o,useReduxContext:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-redux@8.1.2/es/components/Context.js");function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.ReactReduxContext;return function(){return(0,r.useContext)(e)}}const i=o()},"react-redux@8.1.2/es/hooks/useSelector.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSelectorHook:()=>l,initializeUseSelector:()=>u,useSelector:()=>c});var r=n("react@18.2.0/index.js"),a=n("react-redux@8.1.2/es/hooks/useReduxContext.js"),o=n("react-redux@8.1.2/es/components/Context.js");let i=n("react-redux@8.1.2/es/utils/useSyncExternalStore.js").notInitialized;const u=e=>{i=e},s=(e,t)=>e===t;function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.ReactReduxContext;const t=e===o.ReactReduxContext?a.useReduxContext:(0,a.createReduxContextHook)(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:a=s,stabilityCheck:o,noopCheck:u}="function"===typeof n?{equalityFn:n}:n;const{store:l,subscription:c,getServerState:f,stabilityCheck:d,noopCheck:p}=t(),h=((0,r.useRef)(!0),(0,r.useCallback)({[e.name]:t=>e(t)}[e.name],[e,d,o])),m=i(c.addNestedSub,l.getState,f||l.getState,h,a);return(0,r.useDebugValue)(m),m}}const c=l()},"react-redux@8.1.2/es/hooks/useStore.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createStoreHook:()=>o,useStore:()=>i});var r=n("react-redux@8.1.2/es/components/Context.js"),a=n("react-redux@8.1.2/es/hooks/useReduxContext.js");function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.ReactReduxContext;const t=e===r.ReactReduxContext?a.useReduxContext:(0,a.createReduxContextHook)(e);return function(){const{store:e}=t();return e}}const i=o()},"react-redux@8.1.2/es/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>l.Provider,ReactReduxContext:()=>l.ReactReduxContext,batch:()=>o.unstable_batchedUpdates,connect:()=>l.connect,createDispatchHook:()=>l.createDispatchHook,createSelectorHook:()=>l.createSelectorHook,createStoreHook:()=>l.createStoreHook,shallowEqual:()=>l.shallowEqual,useDispatch:()=>l.useDispatch,useSelector:()=>l.useSelector,useStore:()=>l.useStore});var r=n("use-sync-external-store@1.2.0/shim/index.js"),a=n("use-sync-external-store@1.2.0/shim/with-selector.js"),o=n("react-redux@8.1.2/es/utils/reactBatchedUpdates.js"),i=n("react-redux@8.1.2/es/utils/batch.js"),u=n("react-redux@8.1.2/es/hooks/useSelector.js"),s=n("react-redux@8.1.2/es/components/connect.js"),l=n("react-redux@8.1.2/es/exports.js");(0,u.initializeUseSelector)(a.useSyncExternalStoreWithSelector),(0,s.initializeConnect)(r.useSyncExternalStore),(0,i.setBatch)(o.unstable_batchedUpdates)},"react-redux@8.1.2/es/types.js":(e,t,n)=>{"use strict";n.r(t)},"react-redux@8.1.2/es/utils/Subscription.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSubscription:()=>o});var r=n("react-redux@8.1.2/es/utils/batch.js");const a={notify(){},get:()=>[]};function o(e,t){let n,o=a;function i(){s.onStateChange&&s.onStateChange()}function u(){n||(n=t?t.addNestedSub(i):e.subscribe(i),o=function(){const e=(0,r.getBatch)();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}const s={addNestedSub:function(e){return u(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:u,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=a)},getListeners:()=>o};return s}},"react-redux@8.1.2/es/utils/batch.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{getBatch:()=>o,setBatch:()=>a});let r=function(e){e()};const a=e=>r=e,o=()=>r},"react-redux@8.1.2/es/utils/bindActionCreators.js":(e,t,n)=>{"use strict";function r(e,t){const n={};for(const r in e){const a=e[r];"function"===typeof a&&(n[r]=function(){return t(a(...arguments))})}return n}n.r(t),n.d(t,{default:()=>r})},"react-redux@8.1.2/es/utils/isPlainObject.js":(e,t,n)=>{"use strict";function r(e){if("object"!==typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}n.r(t),n.d(t,{default:()=>r})},"react-redux@8.1.2/es/utils/reactBatchedUpdates.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{unstable_batchedUpdates:()=>r.unstable_batchedUpdates});var r=n("react-dom@18.2.0/index.js")},"react-redux@8.1.2/es/utils/shallowEqual.js":(e,t,n)=>{"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function a(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!r(e[n[o]],t[n[o]]))return!1;return!0}n.r(t),n.d(t,{default:()=>a})},"react-redux@8.1.2/es/utils/useIsomorphicLayoutEffect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{canUseDOM:()=>a,useIsomorphicLayoutEffect:()=>o});var r=n("react@18.2.0/index.js");const a=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),o=a?r.useLayoutEffect:r.useEffect},"react-redux@8.1.2/es/utils/useSyncExternalStore.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{notInitialized:()=>r});const r=()=>{throw new Error("uSES not initialized!")}},"react-redux@8.1.2/es/utils/verifyPlainObject.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react-redux@8.1.2/es/utils/isPlainObject.js"),a=n("react-redux@8.1.2/es/utils/warning.js");function o(e,t,n){(0,r.default)(e)||(0,a.default)("".concat(n,"() in ").concat(t," must return a plain object. Instead received ").concat(e,"."))}},"react-redux@8.1.2/es/utils/warning.js":(e,t,n)=>{"use strict";function r(e){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}n.r(t),n.d(t,{default:()=>r})},"react-router-dom@6.15.0/dist/index.js":(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AbortedDeferredError:()=>o.AbortedDeferredError,Await:()=>o.Await,BrowserRouter:()=>_,Form:()=>M,HashRouter:()=>k,Link:()=>P,MemoryRouter:()=>o.MemoryRouter,NavLink:()=>O,Navigate:()=>o.Navigate,NavigationType:()=>o.NavigationType,Outlet:()=>o.Outlet,Route:()=>o.Route,Router:()=>o.Router,RouterProvider:()=>o.RouterProvider,Routes:()=>o.Routes,ScrollRestoration:()=>T,UNSAFE_DataRouterContext:()=>o.UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext:()=>o.UNSAFE_DataRouterStateContext,UNSAFE_LocationContext:()=>o.UNSAFE_LocationContext,UNSAFE_NavigationContext:()=>o.UNSAFE_NavigationContext,UNSAFE_RouteContext:()=>o.UNSAFE_RouteContext,UNSAFE_useRouteId:()=>o.UNSAFE_useRouteId,UNSAFE_useScrollRestoration:()=>Y,createBrowserRouter:()=>w,createHashRouter:()=>x,createMemoryRouter:()=>o.createMemoryRouter,createPath:()=>o.createPath,createRoutesFromChildren:()=>o.createRoutesFromChildren,createRoutesFromElements:()=>o.createRoutesFromElements,createSearchParams:()=>d,defer:()=>o.defer,generatePath:()=>o.generatePath,isRouteErrorResponse:()=>o.isRouteErrorResponse,json:()=>o.json,matchPath:()=>o.matchPath,matchRoutes:()=>o.matchRoutes,parsePath:()=>o.parsePath,redirect:()=>o.redirect,redirectDocument:()=>o.redirectDocument,renderMatches:()=>o.renderMatches,resolvePath:()=>o.resolvePath,unstable_HistoryRouter:()=>C,unstable_useBlocker:()=>o.unstable_useBlocker,unstable_usePrompt:()=>X,useActionData:()=>o.useActionData,useAsyncError:()=>o.useAsyncError,useAsyncValue:()=>o.useAsyncValue,useBeforeUnload:()=>J,useFetcher:()=>$,useFetchers:()=>K,useFormAction:()=>H,useHref:()=>o.useHref,useInRouterContext:()=>o.useInRouterContext,useLinkClickHandler:()=>U,useLoaderData:()=>o.useLoaderData,useLocation:()=>o.useLocation,useMatch:()=>o.useMatch,useMatches:()=>o.useMatches,useNavigate:()=>o.useNavigate,useNavigation:()=>o.useNavigation,useNavigationType:()=>o.useNavigationType,useOutlet:()=>o.useOutlet,useOutletContext:()=>o.useOutletContext,useParams:()=>o.useParams,useResolvedPath:()=>o.useResolvedPath,useRevalidator:()=>o.useRevalidator,useRouteError:()=>o.useRouteError,useRouteLoaderData:()=>o.useRouteLoaderData,useRoutes:()=>o.useRoutes,useSearchParams:()=>q,useSubmit:()=>z});var a=n("react@18.2.0/index.js"),o=n("react-router@6.15.0/dist/index.js"),i=n("@remix-run/router@1.8.0/dist/router.js");function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}const l="get",c="application/x-www-form-urlencoded";function f(e){return null!=e&&"string"===typeof e.tagName}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}let p=null;const h=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function m(e){return null==e||h.has(e)?e:null}function v(e,t){let n,r,a,o,u;if(f(s=e)&&"form"===s.tagName.toLowerCase()){let u=e.getAttribute("action");r=u?(0,i.stripBasename)(u,t):null,n=e.getAttribute("method")||l,a=m(e.getAttribute("enctype"))||c,o=new FormData(e)}else if(function(e){return f(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return f(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let u=e.form;if(null==u)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||u.getAttribute("action");if(r=s?(0,i.stripBasename)(s,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||l,a=m(e.getAttribute("formenctype"))||m(u.getAttribute("enctype"))||c,o=new FormData(u,e),!function(){if(null===p)try{new FormData(document.createElement("form"),0),p=!1}catch(e){p=!0}return p}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,r)}}else{if(f(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=l,r=null,a=c,u=e}var s;return o&&"text/plain"===a&&(u=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:u}}const y=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],g=["aria-current","caseSensitive","className","end","style","to","children"],b=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"];function w(e,t){return(0,i.createRouter)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,i.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||S(),routes:e,mapRouteProperties:o.UNSAFE_mapRouteProperties}).initialize()}function x(e,t){return(0,i.createRouter)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,i.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||S(),routes:e,mapRouteProperties:o.UNSAFE_mapRouteProperties}).initialize()}function S(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=u({},t,{errors:j(t.errors)})),t}function j(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,o]of t)if(o&&"RouteErrorResponse"===o.__type)n[a]=new i.ErrorResponse(o.status,o.statusText,o.data,!0===o.internal);else if(o&&"Error"===o.__type){if(o.__subType){let e=window[o.__subType];if("function"===typeof e)try{let t=new e(o.message);t.stack="",n[a]=t}catch(r){}}if(null==n[a]){let e=new Error(o.message);e.stack="",n[a]=e}}else n[a]=o;return n}const E=(r||(r=n.t(a,2))).startTransition;function _(e){let{basename:t,children:n,future:r,window:u}=e,s=a.useRef();null==s.current&&(s.current=(0,i.createBrowserHistory)({window:u,v5Compat:!0}));let l=s.current,[c,f]=a.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},p=a.useCallback(e=>{d&&E?E(()=>f(e)):f(e)},[f,d]);return a.useLayoutEffect(()=>l.listen(p),[l,p]),a.createElement(o.Router,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l})}function k(e){let{basename:t,children:n,future:r,window:u}=e,s=a.useRef();null==s.current&&(s.current=(0,i.createHashHistory)({window:u,v5Compat:!0}));let l=s.current,[c,f]=a.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},p=a.useCallback(e=>{d&&E?E(()=>f(e)):f(e)},[f,d]);return a.useLayoutEffect(()=>l.listen(p),[l,p]),a.createElement(o.Router,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l})}function C(e){let{basename:t,children:n,future:r,history:i}=e,[u,s]=a.useState({action:i.action,location:i.location}),{v7_startTransition:l}=r||{},c=a.useCallback(e=>{l&&E?E(()=>s(e)):s(e)},[s,l]);return a.useLayoutEffect(()=>i.listen(c),[i,c]),a.createElement(o.Router,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i})}const A="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,R=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P=a.forwardRef(function(e,t){let n,{onClick:r,relative:l,reloadDocument:c,replace:f,state:d,target:p,to:h,preventScrollReset:m}=e,v=s(e,y),{basename:g}=a.useContext(o.UNSAFE_NavigationContext),b=!1;if("string"===typeof h&&R.test(h)&&(n=h,A))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),n=(0,i.stripBasename)(t.pathname,g);t.origin===e.origin&&null!=n?h=n+t.search+t.hash:b=!0}catch(S){}let w=(0,o.useHref)(h,{relative:l}),x=U(h,{replace:f,state:d,target:p,preventScrollReset:m,relative:l});return a.createElement("a",u({},v,{href:n||w,onClick:b||c?r:function(e){r&&r(e),e.defaultPrevented||x(e)},ref:t,target:p}))});const O=a.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:l=!1,style:c,to:f,children:d}=e,p=s(e,g),h=(0,o.useResolvedPath)(f,{relative:p.relative}),m=(0,o.useLocation)(),v=a.useContext(o.UNSAFE_DataRouterStateContext),{navigator:y}=a.useContext(o.UNSAFE_NavigationContext),b=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,w=m.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(w=w.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase());let S,j=w===b||!l&&w.startsWith(b)&&"/"===w.charAt(b.length),E=null!=x&&(x===b||!l&&x.startsWith(b)&&"/"===x.charAt(b.length)),_=j?n:void 0;S="function"===typeof i?i({isActive:j,isPending:E}):[i,j?"active":null,E?"pending":null].filter(Boolean).join(" ");let k="function"===typeof c?c({isActive:j,isPending:E}):c;return a.createElement(P,u({},p,{"aria-current":_,className:S,ref:t,style:k,to:f}),"function"===typeof d?d({isActive:j,isPending:E}):d)});const M=a.forwardRef((e,t)=>{let n=z();return a.createElement(L,u({},e,{submit:n,ref:t}))});const L=a.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,state:o,method:i=l,action:c,onSubmit:f,submit:d,relative:p,preventScrollReset:h}=e,m=s(e,b),v="get"===i.toLowerCase()?"get":"post",y=H(c,{relative:p});return a.createElement("form",u({ref:t,method:v,action:y,onSubmit:n?f:e=>{if(f&&f(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null==t?void 0:t.getAttribute("formmethod"))||i;d(t||e.currentTarget,{method:n,replace:r,state:o,relative:p,preventScrollReset:h})}},m))});function T(e){let{getKey:t,storageKey:n}=e;return Y({getKey:t,storageKey:n}),null}var D,F;function N(e){let t=a.useContext(o.UNSAFE_DataRouterContext);return t||(0,i.UNSAFE_invariant)(!1),t}function I(e){let t=a.useContext(o.UNSAFE_DataRouterStateContext);return t||(0,i.UNSAFE_invariant)(!1),t}function U(e,t){let{target:n,replace:r,state:i,preventScrollReset:u,relative:s}=void 0===t?{}:t,l=(0,o.useNavigate)(),c=(0,o.useLocation)(),f=(0,o.useResolvedPath)(e,{relative:s});return a.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,o.createPath)(c)===(0,o.createPath)(f);l(e,{replace:n,state:i,preventScrollReset:u,relative:s})}},[c,l,f,r,i,n,e,u,s])}function q(e){let t=a.useRef(d(e)),n=a.useRef(!1),r=(0,o.useLocation)(),i=a.useMemo(()=>function(e,t){let n=d(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),u=(0,o.useNavigate)(),s=a.useCallback((e,t)=>{const r=d("function"===typeof e?e(i):e);n.current=!0,u("?"+r,t)},[u,i]);return[i,s]}function B(){if("undefined"===typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function z(){let{router:e}=N(D.UseSubmit),{basename:t}=a.useContext(o.UNSAFE_NavigationContext),n=(0,o.UNSAFE_useRouteId)();return a.useCallback(function(r,a){void 0===a&&(a={}),B();let{action:o,method:i,encType:u,formData:s,body:l}=v(r,t);e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:l,formMethod:a.method||i,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n})},[e,t,n])}function Q(e,t){let{router:n}=N(D.UseSubmitFetcher),{basename:r}=a.useContext(o.UNSAFE_NavigationContext);return a.useCallback(function(a,o){void 0===o&&(o={}),B();let{action:u,method:s,encType:l,formData:c,body:f}=v(a,r);null==t&&(0,i.UNSAFE_invariant)(!1),n.fetch(e,t,o.action||u,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||s,formEncType:o.encType||l})},[n,r,e,t])}function H(e,t){let{relative:n}=void 0===t?{}:t,{basename:r}=a.useContext(o.UNSAFE_NavigationContext),s=a.useContext(o.UNSAFE_RouteContext);s||(0,i.UNSAFE_invariant)(!1);let[l]=s.matches.slice(-1),c=u({},(0,o.useResolvedPath)(e||".",{relative:n})),f=(0,o.useLocation)();if(null==e&&(c.search=f.search,l.route.index)){let e=new URLSearchParams(c.search);e.delete("index"),c.search=e.toString()?"?"+e.toString():""}return e&&"."!==e||!l.route.index||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(c.pathname="/"===c.pathname?r:(0,i.joinPaths)([r,c.pathname])),(0,o.createPath)(c)}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(D||(D={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(F||(F={}));let W=0;function $(){var e;let{router:t}=N(D.UseFetcher),n=a.useContext(o.UNSAFE_RouteContext);n||(0,i.UNSAFE_invariant)(!1);let r=null==(e=n.matches[n.matches.length-1])?void 0:e.route.id;null==r&&(0,i.UNSAFE_invariant)(!1);let[s]=a.useState(()=>String(++W)),[l]=a.useState(()=>(r||(0,i.UNSAFE_invariant)(!1),function(e,t){return a.forwardRef((n,r)=>{let o=Q(e,t);return a.createElement(L,u({},n,{ref:r,submit:o}))})}(s,r))),[c]=a.useState(()=>e=>{t||(0,i.UNSAFE_invariant)(!1),r||(0,i.UNSAFE_invariant)(!1),t.fetch(s,r,e)}),f=Q(s,r),d=t.getFetcher(s),p=a.useMemo(()=>u({Form:l,submit:f,load:c},d),[d,l,f,c]);return a.useEffect(()=>()=>{t?t.deleteFetcher(s):console.warn("No router available to clean up from useFetcher()")},[t,s]),p}function K(){return[...I(F.UseFetchers).fetchers.values()]}const V="react-router-scroll-positions";let G={};function Y(e){let{getKey:t,storageKey:n}=void 0===e?{}:e,{router:r}=N(D.UseScrollRestoration),{restoreScrollPosition:s,preventScrollReset:l}=I(F.UseScrollRestoration),{basename:c}=a.useContext(o.UNSAFE_NavigationContext),f=(0,o.useLocation)(),d=(0,o.useMatches)(),p=(0,o.useNavigation)();a.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:n}=t||{};a.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,n])}(a.useCallback(()=>{if("idle"===p.state){let e=(t?t(f,d):null)||f.key;G[e]=window.scrollY}sessionStorage.setItem(n||V,JSON.stringify(G)),window.history.scrollRestoration="auto"},[n,t,p.state,f,d])),"undefined"!==typeof document&&(a.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(n||V);e&&(G=JSON.parse(e))}catch(e){}},[n]),a.useLayoutEffect(()=>{let e=t&&"/"!==c?(e,n)=>t(u({},e,{pathname:(0,i.stripBasename)(e.pathname,c)||e.pathname}),n):t,n=null==r?void 0:r.enableScrollRestoration(G,()=>window.scrollY,e);return()=>n&&n()},[r,c,t]),a.useLayoutEffect(()=>{if(!1!==s)if("number"!==typeof s){if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==l&&window.scrollTo(0,0)}else window.scrollTo(0,s)},[f,s,l]))}function J(e,t){let{capture:n}=t||{};a.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}function X(e){let{when:t,message:n}=e,r=(0,o.unstable_useBlocker)(t);a.useEffect(()=>{if("blocked"===r.state){window.confirm(n)?setTimeout(r.proceed,0):r.reset()}},[r,n]),a.useEffect(()=>{"blocked"!==r.state||t||r.reset()},[r,t])}},"react-router@6.15.0/dist/index.js":(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AbortedDeferredError:()=>o.AbortedDeferredError,Await:()=>oe,MemoryRouter:()=>Z,Navigate:()=>ee,NavigationType:()=>o.Action,Outlet:()=>te,Route:()=>ne,Router:()=>re,RouterProvider:()=>J,Routes:()=>ae,UNSAFE_DataRouterContext:()=>u,UNSAFE_DataRouterStateContext:()=>s,UNSAFE_LocationContext:()=>f,UNSAFE_NavigationContext:()=>c,UNSAFE_RouteContext:()=>d,UNSAFE_mapRouteProperties:()=>de,UNSAFE_useRouteId:()=>I,UNSAFE_useRoutesImpl:()=>C,createMemoryRouter:()=>pe,createPath:()=>o.createPath,createRoutesFromChildren:()=>ce,createRoutesFromElements:()=>ce,defer:()=>o.defer,generatePath:()=>o.generatePath,isRouteErrorResponse:()=>o.isRouteErrorResponse,json:()=>o.json,matchPath:()=>o.matchPath,matchRoutes:()=>o.matchRoutes,parsePath:()=>o.parsePath,redirect:()=>o.redirect,redirectDocument:()=>o.redirectDocument,renderMatches:()=>fe,resolvePath:()=>o.resolvePath,unstable_useBlocker:()=>G,useActionData:()=>H,useAsyncError:()=>K,useAsyncValue:()=>$,useHref:()=>h,useInRouterContext:()=>m,useLoaderData:()=>z,useLocation:()=>v,useMatch:()=>g,useMatches:()=>B,useNavigate:()=>w,useNavigation:()=>U,useNavigationType:()=>y,useOutlet:()=>j,useOutletContext:()=>S,useParams:()=>E,useResolvedPath:()=>_,useRevalidator:()=>q,useRouteError:()=>W,useRouteLoaderData:()=>Q,useRoutes:()=>k});var a=n("react@18.2.0/index.js"),o=n("@remix-run/router@1.8.0/dist/router.js");function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const u=a.createContext(null);const s=a.createContext(null);const l=a.createContext(null);const c=a.createContext(null);const f=a.createContext(null);const d=a.createContext({outlet:null,matches:[],isDataRoute:!1});const p=a.createContext(null);function h(e,t){let{relative:n}=void 0===t?{}:t;m()||(0,o.UNSAFE_invariant)(!1);let{basename:r,navigator:i}=a.useContext(c),{hash:u,pathname:s,search:l}=_(e,{relative:n}),f=s;return"/"!==r&&(f="/"===s?r:(0,o.joinPaths)([r,s])),i.createHref({pathname:f,search:l,hash:u})}function m(){return null!=a.useContext(f)}function v(){return m()||(0,o.UNSAFE_invariant)(!1),a.useContext(f).location}function y(){return a.useContext(f).navigationType}function g(e){m()||(0,o.UNSAFE_invariant)(!1);let{pathname:t}=v();return a.useMemo(()=>(0,o.matchPath)(e,t),[t,e])}function b(e){a.useContext(c).static||a.useLayoutEffect(e)}function w(){let{isDataRoute:e}=a.useContext(d);return e?function(){let{router:e}=D(L.UseNavigateStable),t=N(T.UseNavigateStable),n=a.useRef(!1);return b(()=>{n.current=!0}),a.useCallback(function(r,a){void 0===a&&(a={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},a)))},[e,t])}():function(){m()||(0,o.UNSAFE_invariant)(!1);let e=a.useContext(u),{basename:t,navigator:n}=a.useContext(c),{matches:r}=a.useContext(d),{pathname:i}=v(),s=JSON.stringify((0,o.UNSAFE_getPathContributingMatches)(r).map(e=>e.pathnameBase)),l=a.useRef(!1);return b(()=>{l.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"===typeof r)return void n.go(r);let u=(0,o.resolveTo)(r,JSON.parse(s),i,"path"===a.relative);null==e&&"/"!==t&&(u.pathname="/"===u.pathname?t:(0,o.joinPaths)([t,u.pathname])),(a.replace?n.replace:n.push)(u,a.state,a)},[t,n,s,i,e])}()}const x=a.createContext(null);function S(){return a.useContext(x)}function j(e){let t=a.useContext(d).outlet;return t?a.createElement(x.Provider,{value:e},t):t}function E(){let{matches:e}=a.useContext(d),t=e[e.length-1];return t?t.params:{}}function _(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=a.useContext(d),{pathname:i}=v(),u=JSON.stringify((0,o.UNSAFE_getPathContributingMatches)(r).map(e=>e.pathnameBase));return a.useMemo(()=>(0,o.resolveTo)(e,JSON.parse(u),i,"path"===n),[e,u,i,n])}function k(e,t){return C(e,t)}function C(e,t,n){m()||(0,o.UNSAFE_invariant)(!1);let{navigator:r}=a.useContext(c),{matches:u}=a.useContext(d),s=u[u.length-1],l=s?s.params:{},p=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let h,y=v();if(t){var g;let e="string"===typeof t?(0,o.parsePath)(t):t;"/"===p||(null==(g=e.pathname)?void 0:g.startsWith(p))||(0,o.UNSAFE_invariant)(!1),h=e}else h=y;let b=h.pathname||"/",w="/"===p?b:b.slice(p.length)||"/",x=(0,o.matchRoutes)(e,{pathname:w});let S=M(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:(0,o.joinPaths)([p,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:(0,o.joinPaths)([p,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,n);return t&&S?a.createElement(f.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:o.Action.Pop}},S):S}function A(){let e=W(),t=(0,o.isRouteErrorResponse)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:i},n):null,null)}const R=a.createElement(A,null);class P extends a.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: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 this.state.error?a.createElement(d.Provider,{value:this.props.routeContext},a.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:r}=e,o=a.useContext(u);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(d.Provider,{value:t},r)}function M(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let u=e,s=null==(r=n)?void 0:r.errors;if(null!=s){let e=u.findIndex(e=>e.route.id&&(null==s?void 0:s[e.route.id]));e>=0||(0,o.UNSAFE_invariant)(!1),u=u.slice(0,Math.min(u.length,e+1))}return u.reduceRight((e,r,o)=>{let i=r.route.id?null==s?void 0:s[r.route.id]:null,l=null;n&&(l=r.route.errorElement||R);let c=t.concat(u.slice(0,o+1)),f=()=>{let t;return t=i?l:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(O,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement(P,{location:n.location,revalidation:n.revalidation,component:l,error:i,children:f(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):f()},null)}var L=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L||{}),T=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(T||{});function D(e){let t=a.useContext(u);return t||(0,o.UNSAFE_invariant)(!1),t}function F(e){let t=a.useContext(s);return t||(0,o.UNSAFE_invariant)(!1),t}function N(e){let t=function(){let e=a.useContext(d);return e||(0,o.UNSAFE_invariant)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.UNSAFE_invariant)(!1),n.route.id}function I(){return N(T.UseRouteId)}function U(){return F(T.UseNavigation).navigation}function q(){let e=D(L.UseRevalidator),t=F(T.UseRevalidator);return a.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function B(){let{matches:e,loaderData:t}=F(T.UseMatches);return a.useMemo(()=>e.map(e=>{let{pathname:n,params:r}=e;return{id:e.route.id,pathname:n,params:r,data:t[e.route.id],handle:e.route.handle}}),[e,t])}function z(){let e=F(T.UseLoaderData),t=N(T.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function Q(e){return F(T.UseRouteLoaderData).loaderData[e]}function H(){let e=F(T.UseActionData);return a.useContext(d)||(0,o.UNSAFE_invariant)(!1),Object.values((null==e?void 0:e.actionData)||{})[0]}function W(){var e;let t=a.useContext(p),n=F(T.UseRouteError),r=N(T.UseRouteError);return t||(null==(e=n.errors)?void 0:e[r])}function $(){let e=a.useContext(l);return null==e?void 0:e._data}function K(){let e=a.useContext(l);return null==e?void 0:e._error}let V=0;function G(e){let{router:t,basename:n}=D(L.UseBlocker),r=F(T.UseBlocker),[u,s]=a.useState(""),l=a.useCallback(t=>{if("function"!==typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:a,historyAction:u}=t;return e({currentLocation:i({},r,{pathname:(0,o.stripBasename)(r.pathname,n)||r.pathname}),nextLocation:i({},a,{pathname:(0,o.stripBasename)(a.pathname,n)||a.pathname}),historyAction:u})},[n,e]);return a.useEffect(()=>{let e=String(++V);return s(e),()=>t.deleteBlocker(e)},[t]),a.useEffect(()=>{""!==u&&t.getBlocker(u,l)},[t,u,l]),u&&r.blockers.has(u)?r.blockers.get(u):o.IDLE_BLOCKER}const Y=(r||(r=n.t(a,2))).startTransition;function J(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=a.useState(n.state),{v7_startTransition:l}=r||{},c=a.useCallback(e=>{l&&Y?Y(()=>i(e)):i(e)},[i,l]);a.useLayoutEffect(()=>n.subscribe(c),[n,c]);let f=a.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),d=n.basename||"/",p=a.useMemo(()=>({router:n,navigator:f,static:!1,basename:d}),[n,f,d]);return a.createElement(a.Fragment,null,a.createElement(u.Provider,{value:p},a.createElement(s.Provider,{value:o},a.createElement(re,{basename:d,location:o.location,navigationType:o.historyAction,navigator:f},o.initialized?a.createElement(X,{routes:n.routes,state:o}):t))),null)}function X(e){let{routes:t,state:n}=e;return C(t,void 0,n)}function Z(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:u}=e,s=a.useRef();null==s.current&&(s.current=(0,o.createMemoryHistory)({initialEntries:r,initialIndex:i,v5Compat:!0}));let l=s.current,[c,f]=a.useState({action:l.action,location:l.location}),{v7_startTransition:d}=u||{},p=a.useCallback(e=>{d&&Y?Y(()=>f(e)):f(e)},[f,d]);return a.useLayoutEffect(()=>l.listen(p),[l,p]),a.createElement(re,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l})}function ee(e){let{to:t,replace:n,state:r,relative:i}=e;m()||(0,o.UNSAFE_invariant)(!1);let{matches:u}=a.useContext(d),{pathname:s}=v(),l=w(),c=(0,o.resolveTo)(t,(0,o.UNSAFE_getPathContributingMatches)(u).map(e=>e.pathnameBase),s,"path"===i),f=JSON.stringify(c);return a.useEffect(()=>l(JSON.parse(f),{replace:n,state:r,relative:i}),[l,f,i,n,r]),null}function te(e){return j(e.context)}function ne(e){(0,o.UNSAFE_invariant)(!1)}function re(e){let{basename:t="/",children:n=null,location:r,navigationType:i=o.Action.Pop,navigator:u,static:s=!1}=e;m()&&(0,o.UNSAFE_invariant)(!1);let l=t.replace(/^\/*/,"/"),d=a.useMemo(()=>({basename:l,navigator:u,static:s}),[l,u,s]);"string"===typeof r&&(r=(0,o.parsePath)(r));let{pathname:p="/",search:h="",hash:v="",state:y=null,key:g="default"}=r,b=a.useMemo(()=>{let e=(0,o.stripBasename)(p,l);return null==e?null:{location:{pathname:e,search:h,hash:v,state:y,key:g},navigationType:i}},[l,p,h,v,y,g,i]);return null==b?null:a.createElement(c.Provider,{value:d},a.createElement(f.Provider,{children:n,value:b}))}function ae(e){let{children:t,location:n}=e;return k(ce(t),n)}function oe(e){let{children:t,errorElement:n,resolve:r}=e;return a.createElement(se,{resolve:r,errorElement:n},a.createElement(le,null,t))}var ie=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(ie||{});const ue=new Promise(()=>{});class se extends a.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:n}=this.props,r=null,i=ie.pending;if(n instanceof Promise)if(this.state.error){i=ie.error;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(r=n,i=void 0!==r._error?ie.error:void 0!==r._data?ie.success:ie.pending):(i=ie.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e})));else i=ie.success,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(i===ie.error&&r._error instanceof o.AbortedDeferredError)throw ue;if(i===ie.error&&!t)throw r._error;if(i===ie.error)return a.createElement(l.Provider,{value:r,children:t});if(i===ie.success)return a.createElement(l.Provider,{value:r,children:e});throw r}}function le(e){let{children:t}=e,n=$(),r="function"===typeof t?t(n):t;return a.createElement(a.Fragment,null,r)}function ce(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let i=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,ce(e.props.children,i));e.type!==ne&&(0,o.UNSAFE_invariant)(!1),e.props.index&&e.props.children&&(0,o.UNSAFE_invariant)(!1);let u={id:e.props.id||i.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&&(u.children=ce(e.props.children,i)),n.push(u)}),n}function fe(e){return M(e)}function de(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function pe(e,t){return(0,o.createRouter)({basename:null==t?void 0:t.basename,future:i({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.createMemoryHistory)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:de}).initialize()}},"react-universal-interface@0.6.2/lib/addClassDecoratorSupport.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("tslib@2.5.0/tslib.es6.js").__importDefault(n("react-universal-interface@0.6.2/lib/wrapInStatefulComponent.js"));t.default=function(e){return!e.prototype?r.default(e):e}},"react-universal-interface@0.6.2/lib/createEnhancer.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.divWrapper=void 0;var r=n("tslib@2.5.0/tslib.es6.js"),a=r.__importStar(n("react@18.2.0/index.js")),o=r.__importDefault(n("react-universal-interface@0.6.2/lib/addClassDecoratorSupport.js")),i=a.createElement,u=function(e,t,n,a){var o;return i(e,t?r.__assign(((o={})[t]=a,o),n):r.__assign(r.__assign({},a),n))};t.divWrapper=function(e,t,n,r){return i("div",null,u(e,t,n,r))};t.default=function(e,t,n){void 0===n&&(n=u);var r=function(a,u,s){void 0===u&&(u=t),void 0===s&&(s=null);var l="string"===typeof a;if(l)return function(e){return r(e,a||t,u)};var c=function(t){return i(e,s,function(e){return n(a,u,t,e)})};return l?o.default(c):c};return r}},"react-universal-interface@0.6.2/lib/hookToRenderProp.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("tslib@2.5.0/tslib.es6.js").__importDefault(n("react-universal-interface@0.6.2/lib/render.js")),a=function(e){return[e]};t.default=function(e,t){return void 0===t&&(t=a),function(n){return r.default(n,e.apply(void 0,t(n)))}}},"react-universal-interface@0.6.2/lib/index.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hookToRenderProp=t.createEnhancer=t.render=void 0;var r=n("tslib@2.5.0/tslib.es6.js"),a=r.__importDefault(n("react-universal-interface@0.6.2/lib/render.js"));t.render=a.default;var o=r.__importDefault(n("react-universal-interface@0.6.2/lib/createEnhancer.js"));t.createEnhancer=o.default;var i=r.__importDefault(n("react-universal-interface@0.6.2/lib/hookToRenderProp.js"));t.hookToRenderProp=i.default},"react-universal-interface@0.6.2/lib/render.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=parseInt(a.version.substr(0,a.version.indexOf(".")))>15;t.default=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var u=e.render,s=e.children,l=void 0===s?u:s,c=e.component,f=e.comp,d=void 0===f?c:f;return"function"===typeof l?l.apply(void 0,r.__spreadArrays([t],n)):d?a.createElement(d,t):l instanceof Array?o?l:a.createElement.apply(void 0,r.__spreadArrays(["div",null],l)):l&&l instanceof Object?"string"===typeof l.type?l:a.cloneElement(l,Object.assign({},l.props,t)):l||null}},"react-universal-interface@0.6.2/lib/wrapInStatefulComponent.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("tslib@2.5.0/tslib.es6.js"),a=r.__importStar(n("react@18.2.0/index.js"));t.default=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(n,t),n.prototype.render=function(){return e(this.props,this.context)},n}(a.Component);return t}},"react-use@17.4.0/esm/factory/createBreakpoint.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e){return void 0===e&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var t=(0,r.useState)(a.isBrowser?window.innerWidth:0),n=t[0],o=t[1];(0,r.useEffect)(function(){var e=function(){o(window.innerWidth)};return e(),(0,a.on)(window,"resize",e),function(){(0,a.off)(window,"resize",e)}});var i=(0,r.useMemo)(function(){return Object.entries(e).sort(function(e,t){return e[1]>=t[1]?1:-1})},[e]),u=i.reduce(function(e,t){var r=t[0],a=t[1];return n>=a?r:e},i[0][0]);return u}}},"react-use@17.4.0/esm/factory/createGlobalState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createGlobalState:()=>u,default:()=>s});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/hookState.js"),o=n("react-use@17.4.0/esm/useEffectOnce.js"),i=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js");function u(e){var t={state:e instanceof Function?e():e,setState:function(e){t.state=(0,a.resolveHookState)(e,t.state),t.setters.forEach(function(e){return e(t.state)})},setters:[]};return function(){var e=(0,r.useState)(t.state),n=e[0],a=e[1];return(0,o.default)(function(){return function(){t.setters=t.setters.filter(function(e){return e!==a})}}),(0,i.default)(function(){t.setters.includes(a)||t.setters.push(a)}),[n,t.setState]}}const s=u},"react-use@17.4.0/esm/factory/createHTMLMediaHook.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-use@17.4.0/esm/useSetState.js"),i=n("react-use@17.4.0/esm/misc/parseTimeRanges.js");function u(e){return function(t){var n,u;u=a.isValidElement(t)?(n=t).props:t;var s=(0,o.default)({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),l=s[0],c=s[1],f=(0,a.useRef)(null),d=function(e,t){return function(n){try{t&&t(n)}finally{e&&e(n)}}},p=function(){return c({paused:!1})},h=function(){return c({playing:!0})},m=function(){return c({playing:!1})},v=function(){return c({paused:!0,playing:!1})},y=function(){var e=f.current;e&&c({muted:e.muted,volume:e.volume})},g=function(){var e=f.current;if(e){var t=e.duration,n=e.buffered;c({duration:t,buffered:(0,i.default)(n)})}},b=function(){var e=f.current;e&&c({time:e.currentTime})},w=function(){var e=f.current;e&&c({buffered:(0,i.default)(e.buffered)})};n=n?a.cloneElement(n,(0,r.__assign)((0,r.__assign)({controls:!1},u),{ref:f,onPlay:d(u.onPlay,p),onPlaying:d(u.onPlaying,h),onWaiting:d(u.onWaiting,m),onPause:d(u.onPause,v),onVolumeChange:d(u.onVolumeChange,y),onDurationChange:d(u.onDurationChange,g),onTimeUpdate:d(u.onTimeUpdate,b),onProgress:d(u.onProgress,w)})):a.createElement(e,(0,r.__assign)((0,r.__assign)({controls:!1},u),{ref:f,onPlay:d(u.onPlay,p),onPlaying:d(u.onPlaying,h),onWaiting:d(u.onWaiting,m),onPause:d(u.onPause,v),onVolumeChange:d(u.onVolumeChange,y),onDurationChange:d(u.onDurationChange,g),onTimeUpdate:d(u.onTimeUpdate,b),onProgress:d(u.onProgress,w)}));var x=!1,S={play:function(){var e=f.current;if(e&&!x){var t=e.play();if("object"===typeof t){x=!0;var n=function(){x=!1};t.then(n,n)}return t}},pause:function(){var e=f.current;if(e&&!x)return e.pause()},seek:function(e){var t=f.current;t&&void 0!==l.duration&&(e=Math.min(l.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=f.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,c({volume:e}))},mute:function(){var e=f.current;e&&(e.muted=!0)},unmute:function(){var e=f.current;e&&(e.muted=!1)}};return(0,a.useEffect)(function(){var e=f.current;e&&(c({volume:e.volume,muted:e.muted,paused:e.paused}),u.autoPlay&&e.paused&&S.play())},[u.src]),[n,l,S,f]}}},"react-use@17.4.0/esm/factory/createMemo.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,r.useMemo)(function(){return e.apply(void 0,t)},t)}}},"react-use@17.4.0/esm/factory/createReducer.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useUpdateEffect.js");const o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,o=(n=e,function(e,t){return n.reduceRight(function(t,n){return n(e)(t)},t)});return function(e,t,n){void 0===n&&(n=function(e){return e});var i=(0,r.useRef)(n(t)),u=(0,r.useState)(i.current)[1],s=(0,r.useCallback)(function(t){return i.current=e(i.current,t),u(i.current),t},[e]),l=(0,r.useRef)(o({getState:function(){return i.current},dispatch:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.current.apply(l,e)}},s));return(0,a.default)(function(){l.current=o({getState:function(){return i.current},dispatch:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.current.apply(l,e)}},s)},[s]),[i.current,l.current]}}},"react-use@17.4.0/esm/factory/createReducerContext.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t){var n=(0,r.createContext)(void 0);return[function(){var e=(0,r.useContext)(n);if(null==e)throw new Error("useReducerContext must be used inside a ReducerProvider.");return e},function(a){var o=a.children,i=a.initialState;return function(e,t){return(0,r.createElement)(n.Provider,e,t)}({value:(0,r.useReducer)(e,void 0!==i?i:t)},o)},n]}},"react-use@17.4.0/esm/factory/createStateContext.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e){var t=(0,r.createContext)(void 0);return[function(){var e=(0,r.useContext)(t);if(null==e)throw new Error("useStateContext must be used inside a StateProvider.");return e},function(n){var a=n.children,o=n.initialValue;return function(e,n){return(0,r.createElement)(t.Provider,e,n)}({value:(0,r.useState)(void 0!==o?o:e)},a)},t]}},"react-use@17.4.0/esm/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{createBreakpoint:()=>z.default,createGlobalState:()=>it.createGlobalState,createMemo:()=>r.default,createReducer:()=>o.default,createReducerContext:()=>a.default,createStateContext:()=>i.default,ensuredForwardRef:()=>k.ensuredForwardRef,useAsync:()=>u.default,useAsyncFn:()=>s.default,useAsyncRetry:()=>l.default,useAudio:()=>c.default,useBattery:()=>f.default,useBeforeUnload:()=>d.default,useBoolean:()=>p.default,useClickAway:()=>h.default,useCookie:()=>m.default,useCopyToClipboard:()=>v.default,useCounter:()=>y.default,useCss:()=>g.default,useCustomCompareEffect:()=>b.default,useDebounce:()=>w.default,useDeepCompareEffect:()=>x.default,useDefault:()=>S.default,useDrop:()=>j.default,useDropArea:()=>E.default,useEffectOnce:()=>_.default,useEnsuredForwardedRef:()=>k.default,useError:()=>A.default,useEvent:()=>C.default,useFavicon:()=>R.default,useFirstMountState:()=>at.useFirstMountState,useFullscreen:()=>P.default,useGeolocation:()=>O.default,useGetSet:()=>M.default,useGetSetState:()=>L.default,useHarmonicIntervalFn:()=>T.default,useHash:()=>ut.useHash,useHover:()=>D.default,useHoverDirty:()=>F.default,useIdle:()=>N.default,useIntersection:()=>I.default,useInterval:()=>U.default,useIsomorphicLayoutEffect:()=>q.default,useKey:()=>B.default,useKeyPress:()=>Q.default,useKeyPressEvent:()=>H.default,useLatest:()=>W.default,useLifecycles:()=>$.default,useList:()=>K.default,useLocalStorage:()=>V.default,useLocation:()=>G.default,useLockBodyScroll:()=>Y.default,useLogger:()=>J.default,useLongPress:()=>X.default,useMap:()=>Z.default,useMeasure:()=>tt.default,useMedia:()=>ee.default,useMediaDevices:()=>te.default,useMediatedState:()=>ne.useMediatedState,useMethods:()=>re.default,useMotion:()=>ae.default,useMount:()=>oe.default,useMountedState:()=>ie.default,useMouse:()=>ue.default,useMouseHovered:()=>se.default,useMouseWheel:()=>le.default,useMultiStateValidator:()=>Xe.useMultiStateValidator,useNetworkState:()=>ce.default,useNumber:()=>fe.default,useObservable:()=>de.default,useOrientation:()=>pe.default,usePageLeave:()=>he.default,usePermission:()=>me.default,usePinchZoom:()=>nt.default,usePrevious:()=>ve.default,usePreviousDistinct:()=>ye.default,usePromise:()=>ge.default,useQueue:()=>be.default,useRaf:()=>we.default,useRafLoop:()=>xe.default,useRafState:()=>Se.default,useRendersCount:()=>rt.useRendersCount,useScratch:()=>Ee.default,useScroll:()=>_e.default,useScrollbarWidth:()=>Je.useScrollbarWidth,useScrolling:()=>ke.default,useSearchParam:()=>je.default,useSessionStorage:()=>Ce.default,useSet:()=>ot.default,useSetState:()=>Ae.default,useShallowCompareEffect:()=>Re.default,useSize:()=>Pe.default,useSlider:()=>Oe.default,useSpeech:()=>Me.default,useStartTyping:()=>Le.default,useStateList:()=>De.default,useStateValidator:()=>Ye.default,useStateWithHistory:()=>Te.useStateWithHistory,useThrottle:()=>Fe.default,useThrottleFn:()=>Ne.default,useTimeout:()=>Ie.default,useTimeoutFn:()=>Ue.default,useTitle:()=>qe.default,useToggle:()=>Be.default,useTween:()=>ze.default,useUnmount:()=>Qe.default,useUnmountPromise:()=>He.default,useUpdate:()=>We.default,useUpdateEffect:()=>$e.default,useUpsert:()=>Ke.default,useVibrate:()=>Ve.default,useVideo:()=>Ge.default,useWindowScroll:()=>Ze.default,useWindowSize:()=>et.default});var r=n("react-use@17.4.0/esm/factory/createMemo.js"),a=n("react-use@17.4.0/esm/factory/createReducerContext.js"),o=n("react-use@17.4.0/esm/factory/createReducer.js"),i=n("react-use@17.4.0/esm/factory/createStateContext.js"),u=n("react-use@17.4.0/esm/useAsync.js"),s=n("react-use@17.4.0/esm/useAsyncFn.js"),l=n("react-use@17.4.0/esm/useAsyncRetry.js"),c=n("react-use@17.4.0/esm/useAudio.js"),f=n("react-use@17.4.0/esm/useBattery.js"),d=n("react-use@17.4.0/esm/useBeforeUnload.js"),p=n("react-use@17.4.0/esm/useBoolean.js"),h=n("react-use@17.4.0/esm/useClickAway.js"),m=n("react-use@17.4.0/esm/useCookie.js"),v=n("react-use@17.4.0/esm/useCopyToClipboard.js"),y=n("react-use@17.4.0/esm/useCounter.js"),g=n("react-use@17.4.0/esm/useCss.js"),b=n("react-use@17.4.0/esm/useCustomCompareEffect.js"),w=n("react-use@17.4.0/esm/useDebounce.js"),x=n("react-use@17.4.0/esm/useDeepCompareEffect.js"),S=n("react-use@17.4.0/esm/useDefault.js"),j=n("react-use@17.4.0/esm/useDrop.js"),E=n("react-use@17.4.0/esm/useDropArea.js"),_=n("react-use@17.4.0/esm/useEffectOnce.js"),k=n("react-use@17.4.0/esm/useEnsuredForwardedRef.js"),C=n("react-use@17.4.0/esm/useEvent.js"),A=n("react-use@17.4.0/esm/useError.js"),R=n("react-use@17.4.0/esm/useFavicon.js"),P=n("react-use@17.4.0/esm/useFullscreen.js"),O=n("react-use@17.4.0/esm/useGeolocation.js"),M=n("react-use@17.4.0/esm/useGetSet.js"),L=n("react-use@17.4.0/esm/useGetSetState.js"),T=n("react-use@17.4.0/esm/useHarmonicIntervalFn.js"),D=n("react-use@17.4.0/esm/useHover.js"),F=n("react-use@17.4.0/esm/useHoverDirty.js"),N=n("react-use@17.4.0/esm/useIdle.js"),I=n("react-use@17.4.0/esm/useIntersection.js"),U=n("react-use@17.4.0/esm/useInterval.js"),q=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js"),B=n("react-use@17.4.0/esm/useKey.js"),z=n("react-use@17.4.0/esm/factory/createBreakpoint.js"),Q=n("react-use@17.4.0/esm/useKeyPress.js"),H=n("react-use@17.4.0/esm/useKeyPressEvent.js"),W=n("react-use@17.4.0/esm/useLatest.js"),$=n("react-use@17.4.0/esm/useLifecycles.js"),K=n("react-use@17.4.0/esm/useList.js"),V=n("react-use@17.4.0/esm/useLocalStorage.js"),G=n("react-use@17.4.0/esm/useLocation.js"),Y=n("react-use@17.4.0/esm/useLockBodyScroll.js"),J=n("react-use@17.4.0/esm/useLogger.js"),X=n("react-use@17.4.0/esm/useLongPress.js"),Z=n("react-use@17.4.0/esm/useMap.js"),ee=n("react-use@17.4.0/esm/useMedia.js"),te=n("react-use@17.4.0/esm/useMediaDevices.js"),ne=n("react-use@17.4.0/esm/useMediatedState.js"),re=n("react-use@17.4.0/esm/useMethods.js"),ae=n("react-use@17.4.0/esm/useMotion.js"),oe=n("react-use@17.4.0/esm/useMount.js"),ie=n("react-use@17.4.0/esm/useMountedState.js"),ue=n("react-use@17.4.0/esm/useMouse.js"),se=n("react-use@17.4.0/esm/useMouseHovered.js"),le=n("react-use@17.4.0/esm/useMouseWheel.js"),ce=n("react-use@17.4.0/esm/useNetworkState.js"),fe=n("react-use@17.4.0/esm/useNumber.js"),de=n("react-use@17.4.0/esm/useObservable.js"),pe=n("react-use@17.4.0/esm/useOrientation.js"),he=n("react-use@17.4.0/esm/usePageLeave.js"),me=n("react-use@17.4.0/esm/usePermission.js"),ve=n("react-use@17.4.0/esm/usePrevious.js"),ye=n("react-use@17.4.0/esm/usePreviousDistinct.js"),ge=n("react-use@17.4.0/esm/usePromise.js"),be=n("react-use@17.4.0/esm/useQueue.js"),we=n("react-use@17.4.0/esm/useRaf.js"),xe=n("react-use@17.4.0/esm/useRafLoop.js"),Se=n("react-use@17.4.0/esm/useRafState.js"),je=n("react-use@17.4.0/esm/useSearchParam.js"),Ee=n("react-use@17.4.0/esm/useScratch.js"),_e=n("react-use@17.4.0/esm/useScroll.js"),ke=n("react-use@17.4.0/esm/useScrolling.js"),Ce=n("react-use@17.4.0/esm/useSessionStorage.js"),Ae=n("react-use@17.4.0/esm/useSetState.js"),Re=n("react-use@17.4.0/esm/useShallowCompareEffect.js"),Pe=n("react-use@17.4.0/esm/useSize.js"),Oe=n("react-use@17.4.0/esm/useSlider.js"),Me=n("react-use@17.4.0/esm/useSpeech.js"),Le=n("react-use@17.4.0/esm/useStartTyping.js"),Te=n("react-use@17.4.0/esm/useStateWithHistory.js"),De=n("react-use@17.4.0/esm/useStateList.js"),Fe=n("react-use@17.4.0/esm/useThrottle.js"),Ne=n("react-use@17.4.0/esm/useThrottleFn.js"),Ie=n("react-use@17.4.0/esm/useTimeout.js"),Ue=n("react-use@17.4.0/esm/useTimeoutFn.js"),qe=n("react-use@17.4.0/esm/useTitle.js"),Be=n("react-use@17.4.0/esm/useToggle.js"),ze=n("react-use@17.4.0/esm/useTween.js"),Qe=n("react-use@17.4.0/esm/useUnmount.js"),He=n("react-use@17.4.0/esm/useUnmountPromise.js"),We=n("react-use@17.4.0/esm/useUpdate.js"),$e=n("react-use@17.4.0/esm/useUpdateEffect.js"),Ke=n("react-use@17.4.0/esm/useUpsert.js"),Ve=n("react-use@17.4.0/esm/useVibrate.js"),Ge=n("react-use@17.4.0/esm/useVideo.js"),Ye=n("react-use@17.4.0/esm/useStateValidator.js"),Je=n("react-use@17.4.0/esm/useScrollbarWidth.js"),Xe=n("react-use@17.4.0/esm/useMultiStateValidator.js"),Ze=n("react-use@17.4.0/esm/useWindowScroll.js"),et=n("react-use@17.4.0/esm/useWindowSize.js"),tt=n("react-use@17.4.0/esm/useMeasure.js"),nt=n("react-use@17.4.0/esm/usePinchZoom.js"),rt=n("react-use@17.4.0/esm/useRendersCount.js"),at=n("react-use@17.4.0/esm/useFirstMountState.js"),ot=n("react-use@17.4.0/esm/useSet.js"),it=n("react-use@17.4.0/esm/factory/createGlobalState.js"),ut=n("react-use@17.4.0/esm/useHash.js")},"react-use@17.4.0/esm/misc/hookState.js":(e,t,n)=>{"use strict";function r(e,t){return"function"===typeof e?e.length?e(t):e():e}n.r(t),n.d(t,{resolveHookState:()=>r})},"react-use@17.4.0/esm/misc/isDeepEqual.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("fast-deep-equal@3.1.3/react.js");const a=n.n(r)()},"react-use@17.4.0/esm/misc/parseTimeRanges.js":(e,t,n)=>{"use strict";function r(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}n.r(t),n.d(t,{default:()=>r})},"react-use@17.4.0/esm/misc/util.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{isBrowser:()=>i,isNavigator:()=>u,noop:()=>r,off:()=>o,on:()=>a});var r=function(){};function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var i="undefined"!==typeof window,u="undefined"!==typeof navigator},"react-use@17.4.0/esm/useAsync.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useAsyncFn.js");function o(e,t){void 0===t&&(t=[]);var n=(0,a.default)(e,t,{loading:!0}),o=n[0],i=n[1];return(0,r.useEffect)(function(){i()},[i]),o}},"react-use@17.4.0/esm/useAsyncFn.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-use@17.4.0/esm/useMountedState.js");function i(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={loading:!1});var i=(0,a.useRef)(0),u=(0,o.default)(),s=(0,a.useState)(n),l=s[0],c=s[1],f=(0,a.useCallback)(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=++i.current;return l.loading||c(function(e){return(0,r.__assign)((0,r.__assign)({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return u()&&a===i.current&&c({value:e,loading:!1}),e},function(e){return u()&&a===i.current&&c({error:e,loading:!1}),e})},t);return[l,f]}},"react-use@17.4.0/esm/useAsyncRetry.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-use@17.4.0/esm/useAsync.js");const i=function(e,t){void 0===t&&(t=[]);var n=(0,a.useState)(0),i=n[0],u=n[1],s=(0,o.default)(e,(0,r.__spreadArrays)(t,[i])),l=s.loading,c=(0,a.useCallback)(function(){l||u(function(e){return e+1})},(0,r.__spreadArrays)(t,[l]));return(0,r.__assign)((0,r.__assign)({},s),{retry:c})}},"react-use@17.4.0/esm/useAudio.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n("react-use@17.4.0/esm/factory/createHTMLMediaHook.js").default)("audio")},"react-use@17.4.0/esm/useBattery.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=n("react-use@17.4.0/esm/misc/isDeepEqual.js"),i=a.isNavigator?navigator:void 0;const u=i&&"function"===typeof i.getBattery?function(){var e=(0,r.useState)({isSupported:!0,fetched:!1}),t=e[0],n=e[1];return(0,r.useEffect)(function(){var e=!0,r=null,u=function(){if(e&&r){var a={isSupported:!0,fetched:!0,level:r.level,charging:r.charging,dischargingTime:r.dischargingTime,chargingTime:r.chargingTime};!(0,o.default)(t,a)&&n(a)}};return i.getBattery().then(function(t){e&&(r=t,(0,a.on)(r,"chargingchange",u),(0,a.on)(r,"chargingtimechange",u),(0,a.on)(r,"dischargingtimechange",u),(0,a.on)(r,"levelchange",u),u())}),function(){e=!1,r&&((0,a.off)(r,"chargingchange",u),(0,a.off)(r,"chargingtimechange",u),(0,a.off)(r,"dischargingtimechange",u),(0,a.off)(r,"levelchange",u))}},[]),t}:function(){return{isSupported:!1}}},"react-use@17.4.0/esm/useBeforeUnload.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e,t){void 0===e&&(e=!0);var n=(0,r.useCallback)(function(n){if("function"!==typeof e||e())return n.preventDefault(),t&&(n.returnValue=t),t},[e,t]);(0,r.useEffect)(function(){if(e)return(0,a.on)(window,"beforeunload",n),function(){return(0,a.off)(window,"beforeunload",n)}},[e,n])}},"react-use@17.4.0/esm/useBoolean.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n("react-use@17.4.0/esm/useToggle.js").default},"react-use@17.4.0/esm/useClickAway.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=["mousedown","touchstart"];const i=function(e,t,n){void 0===n&&(n=o);var i=(0,r.useRef)(t);(0,r.useEffect)(function(){i.current=t},[t]),(0,r.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&i.current(t)},r=0,o=n;r<o.length;r++){var u=o[r];(0,a.on)(document,u,t)}return function(){for(var e=0,r=n;e<r.length;e++){var o=r[e];(0,a.off)(document,o,t)}}},[n,e])}},"react-use@17.4.0/esm/useCookie.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("js-cookie@2.2.1/src/js.cookie.js"),o=n.n(a);const i=function(e){var t=(0,r.useState)(function(){return o().get(e)||null}),n=t[0],a=t[1];return[n,(0,r.useCallback)(function(t,n){o().set(e,t,n),a(t)},[e]),(0,r.useCallback)(function(){o().remove(e),a(null)},[e])]}},"react-use@17.4.0/esm/useCopyToClipboard.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("copy-to-clipboard@3.3.3/index.js"),a=n.n(r),o=n("react@18.2.0/index.js"),i=n("react-use@17.4.0/esm/useMountedState.js"),u=n("react-use@17.4.0/esm/useSetState.js");const s=function(){var e=(0,i.default)(),t=(0,u.default)({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1];return[n,(0,o.useCallback)(function(t){var n,o;if(e())try{if("string"!==typeof t&&"number"!==typeof t){var i=new Error("Cannot copy typeof "+typeof t+" to clipboard, must be a string");return void r({value:t,error:i,noUserInteraction:!0})}if(""===t){i=new Error("Cannot copy empty string to clipboard.");return void r({value:t,error:i,noUserInteraction:!0})}o=t.toString(),n=a()(o),r({value:o,error:void 0,noUserInteraction:n})}catch(i){r({value:o,error:i,noUserInteraction:n})}},[])]}},"react-use@17.4.0/esm/useCounter.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useGetSet.js"),o=n("react-use@17.4.0/esm/misc/hookState.js");function i(e,t,n){void 0===e&&(e=0),void 0===t&&(t=null),void 0===n&&(n=null);var i=(0,o.resolveHookState)(e);"number"!==typeof i&&console.error("initialValue has to be a number, got "+typeof e),"number"===typeof n?i=Math.max(i,n):null!==n&&console.error("min has to be a number, got "+typeof n),"number"===typeof t?i=Math.min(i,t):null!==t&&console.error("max has to be a number, got "+typeof t);var u=(0,a.default)(i),s=u[0],l=u[1];return[s(),(0,r.useMemo)(function(){var e=function(e){var r=s(),a=(0,o.resolveHookState)(e,r);r!==a&&("number"===typeof n&&(a=Math.max(a,n)),"number"===typeof t&&(a=Math.min(a,t)),r!==a&&l(a))};return{get:s,set:e,inc:function(t){void 0===t&&(t=1);var n=(0,o.resolveHookState)(t,s());"number"!==typeof n&&console.error("delta has to be a number or function returning a number, got "+typeof n),e(function(e){return e+n})},dec:function(t){void 0===t&&(t=1);var n=(0,o.resolveHookState)(t,s());"number"!==typeof n&&console.error("delta has to be a number or function returning a number, got "+typeof n),e(function(e){return e-n})},reset:function(t){void 0===t&&(t=i);var n=(0,o.resolveHookState)(t,s());"number"!==typeof n&&console.error("value has to be a number or function returning a number, got "+typeof n),i=n,e(n)}}},[i,n,t])]}},"react-use@17.4.0/esm/useCss.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n("nano-css@5.3.5/index.js"),a=n("nano-css@5.3.5/addon/cssom.js"),o=n("nano-css@5.3.5/addon/vcssom.js"),i=n("nano-css@5.3.5/addon/vcssom/cssToTree.js"),u=n("react@18.2.0/index.js"),s=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js"),l=(0,r.create)();(0,a.addon)(l),(0,o.addon)(l);var c=0;const f=function(e){var t=(0,u.useMemo)(function(){return"react-use-css-"+(c++).toString(36)},[]),n=(0,u.useMemo)(function(){return new l.VSheet},[]);return(0,s.default)(function(){var r={};return(0,i.cssToTree)(r,e,"."+t,""),n.diff(r),function(){n.diff({})}}),t}},"react-use@17.4.0/esm/useCustomCompareEffect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t,n){var a=(0,r.useRef)(void 0);a.current&&n(t,a.current)||(a.current=t),(0,r.useEffect)(e,a.current)}},"react-use@17.4.0/esm/useDebounce.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useTimeoutFn.js");function o(e,t,n){void 0===t&&(t=0),void 0===n&&(n=[]);var o=(0,a.default)(e,t),i=o[0],u=o[1],s=o[2];return(0,r.useEffect)(s,n),[i,u]}},"react-use@17.4.0/esm/useDeepCompareEffect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react-use@17.4.0/esm/useCustomCompareEffect.js"),a=n("react-use@17.4.0/esm/misc/isDeepEqual.js");const o=function(e,t){(0,r.default)(e,t,a.default)}},"react-use@17.4.0/esm/useDefault.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t){var n=(0,r.useState)(t),a=n[0],o=n[1];return void 0===a||null===a?[e,o]:[a,o]}},"react-use@17.4.0/esm/useDrop.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-use@17.4.0/esm/misc/util.js");const i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=[]);var n=e.onFiles,i=e.onText,u=e.onUri,s=(0,a.useState)(!1),l=s[0],c=s[1],f=(0,a.useCallback)(c,[]),d=(0,a.useMemo)(function(){return function(e){return function(t,n){var r=t.getData("text/uri-list");if(r)(e.onUri||o.noop)(r,n);else if(t.files&&t.files.length)(e.onFiles||o.noop)(Array.from(t.files),n);else if(n.clipboardData){var a=n.clipboardData.getData("text");(e.onText||o.noop)(a,n)}}}(e)},[n,i,u]);return(0,a.useEffect)(function(){var e=function(e){e.preventDefault(),f(!0)},t=function(e){e.preventDefault(),f(!0)},n=function(){f(!1)},r=function(){f(!1)},a=function(e){e.preventDefault(),f(!1),d(e.dataTransfer,e)},u=function(e){d(e.clipboardData,e)};return(0,o.on)(document,"dragover",e),(0,o.on)(document,"dragenter",t),(0,o.on)(document,"dragleave",n),(0,o.on)(document,"dragexit",r),(0,o.on)(document,"drop",a),i&&(0,o.on)(document,"paste",u),function(){(0,o.off)(document,"dragover",e),(0,o.off)(document,"dragenter",t),(0,o.off)(document,"dragleave",n),(0,o.off)(document,"dragexit",r),(0,o.off)(document,"drop",a),(0,o.off)(document,"paste",u)}},(0,r.__spreadArrays)([d],t)),{over:l}}},"react-use@17.4.0/esm/useDropArea.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useMountedState.js"),o=n("react-use@17.4.0/esm/misc/util.js");const i=function(e){void 0===e&&(e={});var t=e.onFiles,n=e.onText,i=e.onUri,u=(0,a.default)(),s=(0,r.useState)(!1),l=s[0],c=s[1],f=(0,r.useMemo)(function(){return function(e,t){return function(n,r){var a=n.getData("text/uri-list");a?(e.onUri||o.noop)(a,r):n.files&&n.files.length?(e.onFiles||o.noop)(Array.from(n.files),r):n.items&&n.items.length&&n.items[0].getAsString(function(n){t&&(e.onText||o.noop)(n,r)})}}(e,u())},[t,n,i]),d=(0,r.useMemo)(function(){return function(e,t){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),t(!0)},onDragLeave:function(){t(!1)},onDrop:function(n){n.preventDefault(),n.persist(),t(!1),e(n.dataTransfer,n)},onPaste:function(t){t.persist(),e(t.clipboardData,t)}}}(f,c)},[f,c]);return[d,{over:l}]}},"react-use@17.4.0/esm/useEffectOnce.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e){(0,r.useEffect)(e,[])}},"react-use@17.4.0/esm/useEnsuredForwardedRef.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,ensuredForwardRef:()=>o});var r=n("react@18.2.0/index.js");function a(e){var t=(0,r.useRef)(e&&e.current);return(0,r.useEffect)(function(){e&&(e.current=t.current)},[e]),t}function o(e){return(0,r.forwardRef)(function(t,n){var r=a(n);return e(t,r)})}},"react-use@17.4.0/esm/useError.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(){var e=(0,r.useState)(null),t=e[0],n=e[1];return(0,r.useEffect)(function(){if(t)throw t},[t]),(0,r.useCallback)(function(e){n(e)},[])}},"react-use@17.4.0/esm/useEvent.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=a.isBrowser?window:null,i=function(e){return!!e.addEventListener},u=function(e){return!!e.on};const s=function(e,t,n,s){void 0===n&&(n=o),(0,r.useEffect)(function(){if(t&&n)return i(n)?(0,a.on)(n,e,t,s):u(n)&&n.on(e,t,s),function(){i(n)?(0,a.off)(n,e,t,s):u(n)&&n.off(e,t,s)}},[e,t,n,JSON.stringify(s)])}},"react-use@17.4.0/esm/useFavicon.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e){(0,r.useEffect)(function(){var t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)},[e])}},"react-use@17.4.0/esm/useFirstMountState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useFirstMountState:()=>a});var r=n("react@18.2.0/index.js");function a(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},"react-use@17.4.0/esm/useFullscreen.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("react@18.2.0/index.js"),a=n("screenfull@5.2.0/dist/screenfull.js"),o=n.n(a),i=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js"),u=n("react-use@17.4.0/esm/misc/util.js");const s=function(e,t,n){void 0===n&&(n={});var a=n.video,s=n.onClose,l=void 0===s?u.noop:s,c=(0,r.useState)(t),f=c[0],d=c[1];return(0,i.default)(function(){if(t&&e.current){var n=function(){(null===a||void 0===a?void 0:a.current)&&(0,u.off)(a.current,"webkitendfullscreen",n),l()},r=function(){if(o().isEnabled){var e=o().isFullscreen;d(e),e||l()}};if(o().isEnabled){try{o().request(e.current),d(!0)}catch(i){l(i),d(!1)}o().on("change",r)}else a&&a.current&&a.current.webkitEnterFullscreen?(a.current.webkitEnterFullscreen(),(0,u.on)(a.current,"webkitendfullscreen",n),d(!0)):(l(),d(!1));return function(){if(d(!1),o().isEnabled)try{o().off("change",r),o().exit()}catch(s){}else a&&a.current&&a.current.webkitExitFullscreen&&((0,u.off)(a.current,"webkitendfullscreen",n),a.current.webkitExitFullscreen())}}},[t,a,e]),f}},"react-use@17.4.0/esm/useGeolocation.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js");const o=function(e){var t,n=(0,a.useState)({loading:!0,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,latitude:null,longitude:null,speed:null,timestamp:Date.now()}),o=n[0],i=n[1],u=!0,s=function(e){u&&i({loading:!1,accuracy:e.coords.accuracy,altitude:e.coords.altitude,altitudeAccuracy:e.coords.altitudeAccuracy,heading:e.coords.heading,latitude:e.coords.latitude,longitude:e.coords.longitude,speed:e.coords.speed,timestamp:e.timestamp})},l=function(e){return u&&i(function(t){return(0,r.__assign)((0,r.__assign)({},t),{loading:!1,error:e})})};return(0,a.useEffect)(function(){return navigator.geolocation.getCurrentPosition(s,l,e),t=navigator.geolocation.watchPosition(s,l,e),function(){u=!1,navigator.geolocation.clearWatch(t)}},[]),o}},"react-use@17.4.0/esm/useGetSet.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useUpdate.js"),o=n("react-use@17.4.0/esm/misc/hookState.js");function i(e){var t=(0,r.useRef)((0,o.resolveHookState)(e)),n=(0,a.default)();return(0,r.useMemo)(function(){return[function(){return t.current},function(e){t.current=(0,o.resolveHookState)(e,t.current),n()}]},[])}},"react-use@17.4.0/esm/useGetSetState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-use@17.4.0/esm/useUpdate.js");const i=function(e){void 0===e&&(e={});var t=(0,o.default)(),n=(0,a.useRef)((0,r.__assign)({},e));return[(0,a.useCallback)(function(){return n.current},[]),(0,a.useCallback)(function(e){e&&(Object.assign(n.current,e),t())},[])]}},"react-use@17.4.0/esm/useHarmonicIntervalFn.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("set-harmonic-interval@1.0.1/lib/index.esm.js");const o=function(e,t){void 0===t&&(t=0);var n=(0,r.useRef)(function(){});(0,r.useEffect)(function(){n.current=e}),(0,r.useEffect)(function(){if(null!==t){var e=(0,a.setHarmonicInterval)(function(){return n.current()},t);return function(){return(0,a.clearHarmonicInterval)(e)}}},[t])}},"react-use@17.4.0/esm/useHash.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useHash:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useLifecycles.js"),o=n("react-use@17.4.0/esm/misc/util.js"),i=function(){var e=(0,r.useState)(function(){return window.location.hash}),t=e[0],n=e[1],i=(0,r.useCallback)(function(){n(window.location.hash)},[]);(0,a.default)(function(){(0,o.on)(window,"hashchange",i)},function(){(0,o.off)(window,"hashchange",i)});var u=(0,r.useCallback)(function(e){e!==t&&(window.location.hash=e)},[t]);return[t,u]}},"react-use@17.4.0/esm/useHover.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=r.useState;const i=function(e){var t,n,i=o(!1),u=i[0],s=i[1];return"function"===typeof e&&(e=e(u)),[r.cloneElement(e,{onMouseEnter:(n=e.props.onMouseEnter,function(e){(n||a.noop)(e),s(!0)}),onMouseLeave:(t=e.props.onMouseLeave,function(e){(t||a.noop)(e),s(!1)})}),u]}},"react-use@17.4.0/esm/useHoverDirty.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e,t){void 0===t&&(t=!0);var n=(0,r.useState)(!1),o=n[0],i=n[1];return(0,r.useEffect)(function(){var n=function(){return i(!0)},r=function(){return i(!1)};t&&e&&e.current&&((0,a.on)(e.current,"mouseover",n),(0,a.on)(e.current,"mouseout",r));var o=e.current;return function(){t&&o&&((0,a.off)(o,"mouseover",n),(0,a.off)(o,"mouseout",r))}},[t,e]),o}},"react-use@17.4.0/esm/useIdle.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("react@18.2.0/index.js"),a=n(810),o=n("react-use@17.4.0/esm/misc/util.js"),i=["mousemove","mousedown","resize","keydown","touchstart","wheel"];const u=function(e,t,n){void 0===e&&(e=6e4),void 0===t&&(t=!1),void 0===n&&(n=i);var u=(0,r.useState)(t),s=u[0],l=u[1];return(0,r.useEffect)(function(){for(var t,r=!0,i=s,u=function(e){r&&(i=e,l(e))},c=(0,a.throttle)(50,function(){i&&u(!1),clearTimeout(t),t=setTimeout(function(){return u(!0)},e)}),f=function(){document.hidden||c()},d=0;d<n.length;d++)(0,o.on)(window,n[d],c);return(0,o.on)(document,"visibilitychange",f),t=setTimeout(function(){return u(!0)},e),function(){r=!1;for(var e=0;e<n.length;e++)(0,o.off)(window,n[e],c);(0,o.off)(document,"visibilitychange",f)}},[e,n]),s}},"react-use@17.4.0/esm/useIntersection.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t){var n=(0,r.useState)(null),a=n[0],o=n[1];return(0,r.useEffect)(function(){if(e.current&&"function"===typeof IntersectionObserver){var n=new IntersectionObserver(function(e){o(e[0])},t);return n.observe(e.current),function(){o(null),n.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),a}},"react-use@17.4.0/esm/useInterval.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t){var n=(0,r.useRef)(function(){});(0,r.useEffect)(function(){n.current=e}),(0,r.useEffect)(function(){if(null!==t){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])}},"react-use@17.4.0/esm/useIsomorphicLayoutEffect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=n("react-use@17.4.0/esm/misc/util.js").isBrowser?r.useLayoutEffect:r.useEffect},"react-use@17.4.0/esm/useKey.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useEvent.js"),o=n("react-use@17.4.0/esm/misc/util.js");const i=function(e,t,n,i){void 0===t&&(t=o.noop),void 0===n&&(n={}),void 0===i&&(i=[e]);var u=n.event,s=void 0===u?"keydown":u,l=n.target,c=n.options,f=(0,r.useMemo)(function(){var n,r="function"===typeof(n=e)?n:"string"===typeof n?function(e){return e.key===n}:n?function(){return!0}:function(){return!1};return function(e){if(r(e))return t(e)}},i);(0,a.default)(s,f,l,c)}},"react-use@17.4.0/esm/useKeyPress.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useKey.js");const o=function(e){var t=(0,r.useState)([!1,null]),n=t[0],o=t[1];return(0,a.default)(e,function(e){return o([!0,e])},{event:"keydown"},[n]),(0,a.default)(e,function(e){return o([!1,e])},{event:"keyup"},[n]),n}},"react-use@17.4.0/esm/useKeyPressEvent.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react-use@17.4.0/esm/useKeyPress.js"),a=n("react-use@17.4.0/esm/useUpdateEffect.js");const o=function(e,t,n,o){void 0===o&&(o=r.default);var i=o(e),u=i[0],s=i[1];(0,a.default)(function(){!u&&n?n(s):u&&t&&t(s)},[u])}},"react-use@17.4.0/esm/useLatest.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e){var t=(0,r.useRef)(e);return t.current=e,t}},"react-use@17.4.0/esm/useLifecycles.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t){(0,r.useEffect)(function(){return e&&e(),function(){t&&t()}},[])}},"react-use@17.4.0/esm/useList.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useUpdate.js"),o=n("react-use@17.4.0/esm/misc/hookState.js");const i=function(e){void 0===e&&(e=[]);var t=(0,r.useRef)((0,o.resolveHookState)(e)),n=(0,a.default)(),i=(0,r.useMemo)(function(){var r={set:function(e){t.current=(0,o.resolveHookState)(e,t.current),n()},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.length&&i.set(function(t){return t.concat(e)})},updateAt:function(e,t){i.set(function(n){var r=n.slice();return r[e]=t,r})},insertAt:function(e,t){i.set(function(n){var r=n.slice();return e>r.length?r[e]=t:r.splice(e,0,t),r})},update:function(e,t){i.set(function(n){return n.map(function(n){return e(n,t)?t:n})})},updateFirst:function(e,n){var r=t.current.findIndex(function(t){return e(t,n)});r>=0&&i.updateAt(r,n)},upsert:function(e,n){var r=t.current.findIndex(function(t){return e(t,n)});r>=0?i.updateAt(r,n):i.push(n)},sort:function(e){i.set(function(t){return t.slice().sort(e)})},filter:function(e,t){i.set(function(n){return n.slice().filter(e,t)})},removeAt:function(e){i.set(function(t){var n=t.slice();return n.splice(e,1),n})},clear:function(){i.set([])},reset:function(){i.set((0,o.resolveHookState)(e).slice())}};return r.remove=r.removeAt,r},[]);return[t.current,i]}},"react-use@17.4.0/esm/useLocalStorage.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e,t,n){if(!a.isBrowser)return[t,a.noop,a.noop];if(!e)throw new Error("useLocalStorage key may not be falsy");var o=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,i=(0,r.useRef)(function(e){try{var r=n?n.raw?String:n.serializer:JSON.stringify,a=localStorage.getItem(e);return null!==a?o(a):(t&&localStorage.setItem(e,r(t)),t)}catch(u){return t}}),u=(0,r.useState)(function(){return i.current(e)}),s=u[0],l=u[1];(0,r.useLayoutEffect)(function(){return l(i.current(e))},[e]);var c=(0,r.useCallback)(function(t){try{var r="function"===typeof t?t(s):t;if("undefined"===typeof r)return;var a=void 0;a=n?n.raw?"string"===typeof r?r:JSON.stringify(r):n.serializer?n.serializer(r):JSON.stringify(r):JSON.stringify(r),localStorage.setItem(e,a),l(o(a))}catch(u){}},[e,l]),f=(0,r.useCallback)(function(){try{localStorage.removeItem(e),l(void 0)}catch(u){}},[e,l]);return[s,c,f]}},"react-use@17.4.0/esm/useLocation.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=function(e){var t=window.history,n=t[e];t[e]=function(t){var r=n.apply(this,arguments),a=new Event(e.toLowerCase());return a.state=t,window.dispatchEvent(a),r}};a.isBrowser&&(o("pushState"),o("replaceState"));var i=function(e){var t=window.history,n=t.state,r=t.length,a=window.location;return{trigger:e,state:n,length:r,hash:a.hash,host:a.host,hostname:a.hostname,href:a.href,origin:a.origin,pathname:a.pathname,port:a.port,protocol:a.protocol,search:a.search}},u="function"===typeof Event;const s=a.isBrowser&&u?function(){var e=(0,r.useState)(i("load")),t=e[0],n=e[1];return(0,r.useEffect)(function(){var e=function(){return n(i("popstate"))},t=function(){return n(i("pushstate"))},r=function(){return n(i("replacestate"))};return(0,a.on)(window,"popstate",e),(0,a.on)(window,"pushstate",t),(0,a.on)(window,"replacestate",r),function(){(0,a.off)(window,"popstate",e),(0,a.off)(window,"pushstate",t),(0,a.off)(window,"replacestate",r)}},[]),t}:function(){return{trigger:"load",length:1}}},"react-use@17.4.0/esm/useLockBodyScroll.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f,getClosestBody:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");function o(e){if(!e)return null;if("BODY"===e.tagName)return e;if("IFRAME"===e.tagName){var t=e.contentDocument;return t?t.body:null}return e.offsetParent?o(e.offsetParent):null}function i(e){var t=e||window.event;return t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)}var u=a.isBrowser&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),s=new Map,l="object"===typeof document?document:void 0,c=!1;const f=l?function(e,t){void 0===e&&(e=!0);var n=(0,r.useRef)(l.body);t=t||n;var f=function(e){var t=s.get(e);t&&(1===t.counter?(s.delete(e),u?(e.ontouchmove=null,c&&((0,a.off)(document,"touchmove",i),c=!1)):e.style.overflow=t.initialOverflow):s.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,r.useEffect)(function(){var n=o(t.current);n&&(e?function(e){var t=s.get(e);t?s.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(s.set(e,{counter:1,initialOverflow:e.style.overflow}),u?c||((0,a.on)(document,"touchmove",i,{passive:!1}),c=!0):e.style.overflow="hidden")}(n):f(n))},[e,t.current]),(0,r.useEffect)(function(){var e=o(t.current);if(e)return function(){f(e)}},[])}:function(e,t){void 0===e&&(e=!0)}},"react-use@17.4.0/esm/useLogger.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react-use@17.4.0/esm/useEffectOnce.js"),o=n("react-use@17.4.0/esm/useUpdateEffect.js");const i=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];(0,a.default)(function(){return console.log.apply(console,(0,r.__spreadArrays)([e+" mounted"],t)),function(){return console.log(e+" unmounted")}}),(0,o.default)(function(){console.log.apply(console,(0,r.__spreadArrays)([e+" updated"],t))})}},"react-use@17.4.0/esm/useLongPress.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=function(e){(function(e){return"touches"in e})(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()};const i=function(e,t){var n=void 0===t?{}:t,i=n.isPreventDefault,u=void 0===i||i,s=n.delay,l=void 0===s?300:s,c=(0,r.useRef)(),f=(0,r.useRef)(),d=(0,r.useCallback)(function(t){u&&t.target&&((0,a.on)(t.target,"touchend",o,{passive:!1}),f.current=t.target),c.current=setTimeout(function(){return e(t)},l)},[e,l,u]),p=(0,r.useCallback)(function(){c.current&&clearTimeout(c.current),u&&f.current&&(0,a.off)(f.current,"touchend",o)},[u]);return{onMouseDown:function(e){return d(e)},onTouchStart:function(e){return d(e)},onMouseUp:p,onMouseLeave:p,onTouchEnd:p}}},"react-use@17.4.0/esm/useMap.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js");const o=function(e){void 0===e&&(e={});var t=(0,a.useState)(e),n=t[0],o=t[1],i=(0,a.useMemo)(function(){return{set:function(e,t){o(function(n){var a;return(0,r.__assign)((0,r.__assign)({},n),((a={})[e]=t,a))})},setAll:function(e){o(e)},remove:function(e){o(function(t){var n=t,a=e;n[a];return(0,r.__rest)(n,["symbol"===typeof a?a:a+""])})},reset:function(){return o(e)}}},[o]),u=(0,r.__assign)({get:(0,a.useCallback)(function(e){return n[e]},[n])},i);return[n,u]}},"react-use@17.4.0/esm/useMeasure.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js"),o=n("react-use@17.4.0/esm/misc/util.js"),i={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const u=o.isBrowser&&"undefined"!==typeof window.ResizeObserver?function(){var e=(0,r.useState)(null),t=e[0],n=e[1],o=(0,r.useState)(i),u=o[0],s=o[1],l=(0,r.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,a=t.width,o=t.height,i=t.top,u=t.left,l=t.bottom,c=t.right;s({x:n,y:r,width:a,height:o,top:i,left:u,bottom:l,right:c})}})},[]);return(0,a.default)(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,u]}:function(){return[o.noop,i]}},"react-use@17.4.0/esm/useMedia.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e,t){var n=(0,r.useState)(function(e,t){return void 0!==t?t:!!a.isBrowser&&window.matchMedia(e).matches}(e,t)),o=n[0],i=n[1];return(0,r.useEffect)(function(){var t=!0,n=window.matchMedia(e),r=function(){t&&i(!!n.matches)};return n.addListener(r),i(n.matches),function(){t=!1,n.removeListener(r)}},[e]),o}},"react-use@17.4.0/esm/useMediaDevices.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=a.isNavigator&&navigator.mediaDevices?function(){var e=(0,r.useState)({}),t=e[0],n=e[1];return(0,r.useEffect)(function(){var e=!0,t=function(){navigator.mediaDevices.enumerateDevices().then(function(t){e&&n({devices:t.map(function(e){return{deviceId:e.deviceId,groupId:e.groupId,kind:e.kind,label:e.label}})})}).catch(a.noop)};return(0,a.on)(navigator.mediaDevices,"devicechange",t),t(),function(){e=!1,(0,a.off)(navigator.mediaDevices,"devicechange",t)}},[]),t}:function(){return{}}},"react-use@17.4.0/esm/useMediatedState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useMediatedState:()=>a});var r=n("react@18.2.0/index.js");function a(e,t){var n=(0,r.useRef)(e),a=(0,r.useState)(t),o=a[0],i=a[1];return[o,(0,r.useCallback)(function(e){2===n.current.length?n.current(e,i):i(n.current(e))},[o])]}},"react-use@17.4.0/esm/useMethods.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e,t){var n=(0,r.useMemo)(function(){return function(t,n){var r;return(r=e(t))[n.type].apply(r,n.payload)}},[e]),a=(0,r.useReducer)(n,t),o=a[0],i=a[1],u=(0,r.useMemo)(function(){return Object.keys(e(t)).reduce(function(e,t){return e[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i({type:t,payload:e})},e},{})},[e,t]);return[o,u]}},"react-use@17.4.0/esm/useMotion.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o={acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:16};const i=function(e){void 0===e&&(e=o);var t=(0,r.useState)(e),n=t[0],i=t[1];return(0,r.useEffect)(function(){var e=function(e){var t=e.acceleration,n=e.accelerationIncludingGravity,r=e.rotationRate,a=e.interval;i({acceleration:{x:t.x,y:t.y,z:t.z},accelerationIncludingGravity:{x:n.x,y:n.y,z:n.z},rotationRate:{alpha:r.alpha,beta:r.beta,gamma:r.gamma},interval:a})};return(0,a.on)(window,"devicemotion",e),function(){(0,a.off)(window,"devicemotion",e)}},[]),n}},"react-use@17.4.0/esm/useMount.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react-use@17.4.0/esm/useEffectOnce.js");const a=function(e){(0,r.default)(function(){e()})}},"react-use@17.4.0/esm/useMountedState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");function a(){var e=(0,r.useRef)(!1),t=(0,r.useCallback)(function(){return e.current},[]);return(0,r.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}},"react-use@17.4.0/esm/useMouse.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useRafState.js"),o=n("react-use@17.4.0/esm/misc/util.js");const i=function(e){var t=(0,a.default)({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),n=t[0],i=t[1];return(0,r.useEffect)(function(){var t=function(t){if(e&&e.current){var n=e.current.getBoundingClientRect(),r=n.left,a=n.top,o=n.width,u=n.height,s=r+window.pageXOffset,l=a+window.pageYOffset,c=t.pageX-s,f=t.pageY-l;i({docX:t.pageX,docY:t.pageY,posX:s,posY:l,elX:c,elY:f,elH:u,elW:o})}};return(0,o.on)(document,"mousemove",t),function(){(0,o.off)(document,"mousemove",t)}},[e]),n}},"react-use@17.4.0/esm/useMouseHovered.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react-use@17.4.0/esm/useHoverDirty.js"),a=n("react-use@17.4.0/esm/useMouse.js"),o={current:null};const i=function(e,t){void 0===t&&(t={});var n=!!t.whenHovered,i=!!t.bound,u=(0,r.default)(e,n),s=(0,a.default)(n&&!u?o:e);return i&&(s.elX=Math.max(0,Math.min(s.elX,s.elW)),s.elY=Math.max(0,Math.min(s.elY,s.elH))),s}},"react-use@17.4.0/esm/useMouseWheel.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(){var e=(0,r.useState)(0),t=e[0],n=e[1];return(0,r.useEffect)(function(){var e=function(e){n(e.deltaY+t)};return(0,a.on)(window,"wheel",e,!1),function(){return(0,a.off)(window,"wheel",e)}}),t}},"react-use@17.4.0/esm/useMultiStateValidator.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useMultiStateValidator:()=>a});var r=n("react@18.2.0/index.js");function a(e,t,n){if(void 0===n&&(n=[void 0]),"object"!==typeof e)throw new Error("states expected to be an object or array, got "+typeof e);var a=(0,r.useRef)(t),o=(0,r.useRef)(e);a.current=t,o.current=e;var i=(0,r.useState)(n),u=i[0],s=i[1],l=(0,r.useCallback)(function(){a.current.length>=2?a.current(o.current,s):s(a.current(o.current))},[s]);return(0,r.useEffect)(function(){l()},Object.values(e)),[u,l]}},"react-use@17.4.0/esm/useNetworkState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=a.isNavigator?navigator:void 0,i=o&&(o.connection||o.mozConnection||o.webkitConnection);function u(e){var t=null===o||void 0===o?void 0:o.onLine,n=null===e||void 0===e?void 0:e.online;return{online:t,previous:n,since:t!==n?new Date:null===e||void 0===e?void 0:e.since,downlink:null===i||void 0===i?void 0:i.downlink,downlinkMax:null===i||void 0===i?void 0:i.downlinkMax,effectiveType:null===i||void 0===i?void 0:i.effectiveType,rtt:null===i||void 0===i?void 0:i.rtt,saveData:null===i||void 0===i?void 0:i.saveData,type:null===i||void 0===i?void 0:i.type}}function s(e){var t=(0,r.useState)(null!==e&&void 0!==e?e:u),n=t[0],o=t[1];return(0,r.useEffect)(function(){var e=function(){o(u)};return(0,a.on)(window,"online",e,{passive:!0}),(0,a.on)(window,"offline",e,{passive:!0}),i&&(0,a.on)(i,"change",e,{passive:!0}),function(){(0,a.off)(window,"online",e),(0,a.off)(window,"offline",e),i&&(0,a.off)(i,"change",e)}},[]),n}},"react-use@17.4.0/esm/useNumber.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n("react-use@17.4.0/esm/useCounter.js").default},"react-use@17.4.0/esm/useObservable.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js");const o=function(e,t){var n=(0,r.useState)(t),o=n[0],i=n[1];return(0,a.default)(function(){var t=e.subscribe(i);return function(){return t.unsubscribe()}},[e]),o}},"react-use@17.4.0/esm/useOrientation.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o={angle:0,type:"landscape-primary"};const i=function(e){void 0===e&&(e=o);var t=(0,r.useState)(e),n=t[0],i=t[1];return(0,r.useEffect)(function(){var t=window.screen,n=!0,r=function(){if(n){var r=t.orientation;if(r){var a=r.angle,o=r.type;i({angle:a,type:o})}else void 0!==window.orientation?i({angle:"number"===typeof window.orientation?window.orientation:0,type:""}):i(e)}};return(0,a.on)(window,"orientationchange",r),r(),function(){n=!1,(0,a.off)(window,"orientationchange",r)}},[]),n}},"react-use@17.4.0/esm/usePageLeave.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e,t){void 0===t&&(t=[]),(0,r.useEffect)(function(){if(e){var t=function(t){var n=(t=t||window.event).relatedTarget||t.toElement;n&&"HTML"!==n.nodeName||e()};return(0,a.on)(document,"mouseout",t),function(){(0,a.off)(document,"mouseout",t)}}},t)}},"react-use@17.4.0/esm/usePermission.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e){var t=(0,r.useState)(""),n=t[0],o=t[1];return(0,r.useEffect)(function(){var t=!0,n=null,r=function(){t&&o(function(){var e;return null!==(e=null===n||void 0===n?void 0:n.state)&&void 0!==e?e:""})};return navigator.permissions.query(e).then(function(e){n=e,(0,a.on)(n,"change",r),r()}).catch(a.noop),function(){n&&(0,a.off)(n,"change",r),t=!1,n=null}},[e]),n}},"react-use@17.4.0/esm/usePinchZoom.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ZoomState:()=>r,default:()=>o});var r,a=n("react@18.2.0/index.js");!function(e){e.ZOOMING_IN="ZOOMING_IN",e.ZOOMING_OUT="ZOOMING_OUT"}(r||(r={}));const o=function(e){var t=(0,a.useMemo)(function(){return{evCache:[],prevDiff:-1}},[e.current]),n=(0,a.useState)(),o=n[0],i=n[1],u=function(e){for(var n=0;n<t.evCache.length;n++)if(e.pointerId==t.evCache[n].pointerId){t.evCache[n]=e;break}if(2==t.evCache.length){var a=Math.abs(t.evCache[0].clientX-t.evCache[1].clientX);t.prevDiff>0&&(a>t.prevDiff&&i([r.ZOOMING_IN,a]),a<t.prevDiff&&i([r.ZOOMING_OUT,a])),t.prevDiff=a}},s=function(e){t.evCache.push(e)},l=function(e){c(e),t.evCache.length<2&&(t.prevDiff=-1)},c=function(e){for(var n=0;n<t.evCache.length;n++)if(t.evCache[n].pointerId==e.pointerId){t.evCache.splice(n,1);break}};return(0,a.useEffect)(function(){(null===e||void 0===e?void 0:e.current)&&(e.current.onpointerdown=s,e.current.onpointermove=u,e.current.onpointerup=l,e.current.onpointercancel=l,e.current.onpointerout=l,e.current.onpointerleave=l)},[null===e||void 0===e?void 0:e.current]),o?{zoomingState:o[0],pinchState:o[1]}:{zoomingState:null,pinchState:0}}},"react-use@17.4.0/esm/usePrevious.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");function a(e){var t=(0,r.useRef)();return(0,r.useEffect)(function(){t.current=e}),t.current}},"react-use@17.4.0/esm/usePreviousDistinct.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useFirstMountState.js"),o=function(e,t){return e===t};function i(e,t){void 0===t&&(t=o);var n=(0,r.useRef)(),i=(0,r.useRef)(e);return(0,a.useFirstMountState)()||t(i.current,e)||(n.current=i.current,i.current=e),n.current}},"react-use@17.4.0/esm/usePromise.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useMountedState.js");const o=function(){var e=(0,a.default)();return(0,r.useCallback)(function(t){return new Promise(function(n,r){t.then(function(t){e()&&n(t)},function(t){e()&&r(t)})})},[])}},"react-use@17.4.0/esm/useQueue.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js");const o=function(e){void 0===e&&(e=[]);var t=(0,a.useState)(e),n=t[0],o=t[1];return{add:function(e){o(function(t){return(0,r.__spreadArrays)(t,[e])})},remove:function(){var e;return o(function(t){var n=t[0],r=t.slice(1);return e=n,r}),e},get first(){return n[0]},get last(){return n[n.length-1]},get size(){return n.length}}}},"react-use@17.4.0/esm/useRaf.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js");const o=function(e,t){void 0===e&&(e=1e12),void 0===t&&(t=0);var n=(0,r.useState)(0),o=n[0],i=n[1];return(0,a.default)(function(){var n,r,a,o=function(){var t=Math.min(1,(Date.now()-a)/e);i(t),u()},u=function(){n=requestAnimationFrame(o)},s=setTimeout(function(){r=setTimeout(function(){cancelAnimationFrame(n),i(1)},e),a=Date.now(),u()},t);return function(){clearTimeout(r),clearTimeout(s),cancelAnimationFrame(n)}},[e,t]),o}},"react-use@17.4.0/esm/useRafLoop.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");function a(e,t){void 0===t&&(t=!0);var n=(0,r.useRef)(null),a=(0,r.useRef)(!1),o=(0,r.useRef)(e);o.current=e;var i=(0,r.useCallback)(function(e){a.current&&(o.current(e),n.current=requestAnimationFrame(i))},[]),u=(0,r.useMemo)(function(){return[function(){a.current&&(a.current=!1,n.current&&cancelAnimationFrame(n.current))},function(){a.current||(a.current=!0,n.current=requestAnimationFrame(i))},function(){return a.current}]},[]);return(0,r.useEffect)(function(){return t&&u[1](),u[0]},[]),u}},"react-use@17.4.0/esm/useRafState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useUnmount.js");const o=function(e){var t=(0,r.useRef)(0),n=(0,r.useState)(e),o=n[0],i=n[1],u=(0,r.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(e)})},[]);return(0,a.default)(function(){cancelAnimationFrame(t.current)}),[o,u]}},"react-use@17.4.0/esm/useRendersCount.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useRendersCount:()=>a});var r=n("react@18.2.0/index.js");function a(){return++(0,r.useRef)(0).current}},"react-use@17.4.0/esm/useScratch.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{ScratchSensor:()=>l,default:()=>c});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-universal-interface@0.6.2/lib/index.js"),i=n("react-use@17.4.0/esm/useLatest.js"),u=n("react-use@17.4.0/esm/misc/util.js"),s=function(e){void 0===e&&(e={});var t=e.disabled,n=(0,i.default)(e),o=(0,a.useState)({isScratching:!1}),s=o[0],l=o[1],c=(0,a.useRef)(s),f=(0,a.useRef)(!1),d=(0,a.useRef)(null),p=(0,a.useState)(null),h=p[0],m=p[1];return(0,a.useEffect)(function(){if(!t&&h){var e,a,o=function(e,t){cancelAnimationFrame(d.current),d.current=requestAnimationFrame(function(){var a=h.getBoundingClientRect(),o=a.left,i=a.top,s=o+window.scrollX,f=i+window.scrollY,d=e-s,p=t-f;l(function(e){var t=(0,r.__assign)((0,r.__assign)({},e),{dx:d-(e.x||0),dy:p-(e.y||0),end:Date.now(),isScratching:!0});return c.current=t,(n.current.onScratch||u.noop)(t),t})})},i=function(e){o(e.pageX,e.pageY)},s=function(e){o(e.changedTouches[0].pageX,e.changedTouches[0].pageY)},p=function(){f.current&&(f.current=!1,c.current=(0,r.__assign)((0,r.__assign)({},c.current),{isScratching:!1}),(n.current.onScratchEnd||u.noop)(c.current),l({isScratching:!1}),(0,u.off)(window,"mousemove",i),(0,u.off)(window,"touchmove",s),(0,u.off)(window,"mouseup",e),(0,u.off)(window,"touchend",a))};e=p,a=p;var m=function(t,r){if(f.current){var o=h.getBoundingClientRect(),d=o.left,p=o.top,m=d+window.scrollX,v=p+window.scrollY,y=t-m,g=r-v,b=Date.now(),w={isScratching:!0,start:b,end:b,docX:t,docY:r,x:y,y:g,dx:0,dy:0,elH:h.offsetHeight,elW:h.offsetWidth,elX:m,elY:v};c.current=w,(n.current.onScratchStart||u.noop)(w),l(w),(0,u.on)(window,"mousemove",i),(0,u.on)(window,"touchmove",s),(0,u.on)(window,"mouseup",e),(0,u.on)(window,"touchend",a)}},v=function(e){f.current=!0,m(e.pageX,e.pageY)},y=function(e){f.current=!0,m(e.changedTouches[0].pageX,e.changedTouches[0].pageY)};return(0,u.on)(h,"mousedown",v),(0,u.on)(h,"touchstart",y),function(){(0,u.off)(h,"mousedown",v),(0,u.off)(h,"touchstart",y),(0,u.off)(window,"mousemove",i),(0,u.off)(window,"touchmove",s),(0,u.off)(window,"mouseup",e),(0,u.off)(window,"touchend",a),d.current&&cancelAnimationFrame(d.current),d.current=null,f.current=!1,c.current={isScratching:!1},l(c.current)}}},[h,t,n]),[m,s]},l=function(e){e.children;var t=(0,r.__rest)(e,["children"]),n=s(t),i=n[0],u=n[1],l=(0,o.render)(e,u);return(0,a.cloneElement)(l,(0,r.__assign)((0,r.__assign)({},l.props),{ref:function(e){l.props.ref&&("object"===typeof l.props.ref&&(l.props.ref.current=e),"function"===typeof l.props.ref&&l.props.ref(e)),i(e)}}))};const c=s},"react-use@17.4.0/esm/useScroll.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useRafState.js"),o=n("react-use@17.4.0/esm/misc/util.js");const i=function(e){var t=(0,a.default)({x:0,y:0}),n=t[0],i=t[1];return(0,r.useEffect)(function(){var t=function(){e.current&&i({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&(0,o.on)(e.current,"scroll",t,{capture:!1,passive:!0}),function(){e.current&&(0,o.off)(e.current,"scroll",t)}},[e]),n}},"react-use@17.4.0/esm/useScrollbarWidth.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useScrollbarWidth:()=>o});var r=n("@xobotyi/scrollbar-width@1.9.5/dist/index.esm.js"),a=n("react@18.2.0/index.js");function o(){var e=(0,a.useState)((0,r.scrollbarWidth)()),t=e[0],n=e[1];return(0,a.useEffect)(function(){if("undefined"===typeof t){var e=requestAnimationFrame(function(){n((0,r.scrollbarWidth)())});return function(){return cancelAnimationFrame(e)}}},[]),t}},"react-use@17.4.0/esm/useScrolling.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e){var t=(0,r.useState)(!1),n=t[0],o=t[1];return(0,r.useEffect)(function(){if(e.current){var t,n=function(){o(!0),clearTimeout(t),t=setTimeout(function(){o(!1)},150)};return(0,a.on)(e.current,"scroll",n,!1),function(){e.current&&(0,a.off)(e.current,"scroll",n,!1)}}return function(){}},[e]),n}},"react-use@17.4.0/esm/useSearchParam.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=function(e,t){return new URLSearchParams(e).get(t)};const i=a.isBrowser?function(e){var t=window.location,n=(0,r.useState)(function(){return o(t.search,e)}),i=n[0],u=n[1];return(0,r.useEffect)(function(){var n=function(){u(o(t.search,e))};return(0,a.on)(window,"popstate",n),(0,a.on)(window,"pushstate",n),(0,a.on)(window,"replacestate",n),function(){(0,a.off)(window,"popstate",n),(0,a.off)(window,"pushstate",n),(0,a.off)(window,"replacestate",n)}},[]),i}:function(){return null}},"react-use@17.4.0/esm/useSessionStorage.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e,t,n){if(!a.isBrowser)return[t,function(){}];var o=(0,r.useState)(function(){try{var r=sessionStorage.getItem(e);return"string"!==typeof r?(sessionStorage.setItem(e,n?String(t):JSON.stringify(t)),t):n?r:JSON.parse(r||"null")}catch(o){return t}}),i=o[0],u=o[1];return(0,r.useEffect)(function(){try{var t=n?String(i):JSON.stringify(i);sessionStorage.setItem(e,t)}catch(o){}}),[i,u]}},"react-use@17.4.0/esm/useSet.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js");const o=function(e){void 0===e&&(e=new Set);var t=(0,a.useState)(e),n=t[0],o=t[1],i=(0,a.useMemo)(function(){return{add:function(e){return o(function(t){return new Set((0,r.__spreadArrays)(Array.from(t),[e]))})},remove:function(e){return o(function(t){return new Set(Array.from(t).filter(function(t){return t!==e}))})},toggle:function(e){return o(function(t){return t.has(e)?new Set(Array.from(t).filter(function(t){return t!==e})):new Set((0,r.__spreadArrays)(Array.from(t),[e]))})},reset:function(){return o(e)}}},[o]),u=(0,r.__assign)({has:(0,a.useCallback)(function(e){return n.has(e)},[n])},i);return[n,u]}},"react-use@17.4.0/esm/useSetState.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");const a=function(e){void 0===e&&(e={});var t=(0,r.useState)(e),n=t[0],a=t[1];return[n,(0,r.useCallback)(function(e){a(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]}},"react-use@17.4.0/esm/useShallowCompareEffect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("fast-shallow-equal@1.0.0/index.js"),a=n("react-use@17.4.0/esm/useCustomCompareEffect.js"),o=function(e,t){return e.every(function(e,n){return(0,r.equal)(e,t[n])})};const i=function(e,t){(0,a.default)(e,t,o)}},"react-use@17.4.0/esm/useSize.js":(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{default:()=>c});var a=n("tslib@2.5.0/tslib.es6.js"),o=n("react@18.2.0/index.js"),i=n("react-use@17.4.0/esm/misc/util.js"),u=o.useState,s=o.useEffect,l=o.useRef;const c=function(e,t){var c=void 0===t?{}:t,f=c.width,d=void 0===f?1/0:f,p=c.height,h=void 0===p?1/0:p;if(!i.isBrowser)return["function"===typeof e?e({width:d,height:h}):e,{width:d,height:h}];var m=u({width:d,height:h}),v=m[0],y=m[1];"function"===typeof e&&(e=e(v));var g=e.props.style||{},b=l(null),w=null,x=function(){var e=b.current,t=e?{width:e.offsetWidth,height:e.offsetHeight}:{width:d,height:h};y(t)},S=function(e){(0,i.on)(e,"resize",x),setTimeout(x,35)};return s(function(){var e=b.current;if(e){if(e.contentWindow)w=e.contentWindow,S(w);else{var t=function(){(0,i.on)(e,"load",t),w=e.contentWindow,S(w)};(0,i.off)(e,"load",t)}return function(){w&&w.removeEventListener&&(0,i.off)(w,"resize",x)}}},[]),g.position="relative",[o.cloneElement.apply(r||(r=n.t(o,2)),(0,a.__spreadArrays)([e,{style:g}],(0,a.__spreadArrays)([o.createElement("iframe",{ref:b,style:{background:"transparent",border:"none",height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:-1}})],o.Children.toArray(e.props.children)))),v]}},"react-use@17.4.0/esm/useSlider.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=n("react-use@17.4.0/esm/useMountedState.js"),i=n("react-use@17.4.0/esm/useSetState.js");const u=function(e,t){void 0===t&&(t={});var n=(0,o.default)(),u=(0,r.useRef)(!1),s=(0,r.useRef)(0),l=(0,r.useRef)(0),c=(0,i.default)({isSliding:!1,value:0}),f=c[0],d=c[1];return s.current=f.value,(0,r.useEffect)(function(){if(a.isBrowser){var r=void 0===t.styles||t.styles,o=void 0!==t.reverse&&t.reverse;e.current&&r&&(e.current.style.userSelect="none");var i=function(){!u.current&&n()&&((t.onScrubStart||a.noop)(),u.current=!0,d({isSliding:!0}),v())},c=function(){u.current&&n()&&((t.onScrubStop||a.noop)(s.current),u.current=!1,d({isSliding:!1}),y())},f=function(e){i(),p(e)},p=t.vertical?function(e){return g(e.clientY)}:function(e){return g(e.clientX)},h=function(e){i(),m(e)},m=t.vertical?function(e){return g(e.changedTouches[0].clientY)}:function(e){return g(e.changedTouches[0].clientX)},v=function(){(0,a.on)(document,"mousemove",p),(0,a.on)(document,"mouseup",c),(0,a.on)(document,"touchmove",m),(0,a.on)(document,"touchend",c)},y=function(){(0,a.off)(document,"mousemove",p),(0,a.off)(document,"mouseup",c),(0,a.off)(document,"touchmove",m),(0,a.off)(document,"touchend",c)},g=function(r){cancelAnimationFrame(l.current),l.current=requestAnimationFrame(function(){if(n()&&e.current){var i=e.current.getBoundingClientRect(),u=t.vertical?i.top:i.left,s=t.vertical?i.height:i.width;if(!s)return;var l=(r-u)/s;l>1?l=1:l<0&&(l=0),o&&(l=1-l),d({value:l}),(t.onScrub||a.noop)(l)}})};return(0,a.on)(e.current,"mousedown",f),(0,a.on)(e.current,"touchstart",h),function(){(0,a.off)(e.current,"mousedown",f),(0,a.off)(e.current,"touchstart",h)}}},[e,t.vertical]),f}},"react-use@17.4.0/esm/useSpeech.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r,a=n("tslib@2.5.0/tslib.es6.js"),o=n("react@18.2.0/index.js");!function(e){e[e.init=0]="init",e[e.play=1]="play",e[e.pause=2]="pause",e[e.end=3]="end"}(r||(r={}));const i=function(e,t){var n=(0,o.useRef)(!1),i=(0,o.useState)(function(){var e=t.voice||{},n=e.lang,a=void 0===n?"default":n,o=e.name,i=void 0===o?"":o;return{isPlaying:!1,status:r[r.init],lang:t.lang||"default",voiceInfo:{lang:a,name:i},rate:t.rate||1,pitch:t.pitch||1,volume:t.volume||1}}),u=i[0],s=i[1],l=(0,o.useCallback)(function(){n.current&&s(function(e){return(0,a.__assign)((0,a.__assign)({},e),{isPlaying:!0,status:r[r.play]})})},[]),c=(0,o.useCallback)(function(){n.current&&s(function(e){return(0,a.__assign)((0,a.__assign)({},e),{isPlaying:!1,status:r[r.pause]})})},[]),f=(0,o.useCallback)(function(){n.current&&s(function(e){return(0,a.__assign)((0,a.__assign)({},e),{isPlaying:!1,status:r[r.end]})})},[]);return(0,o.useEffect)(function(){n.current=!0;var r=new SpeechSynthesisUtterance(e);return t.lang&&(r.lang=t.lang),t.voice&&(r.voice=t.voice),r.rate=t.rate||1,r.pitch=t.pitch||1,r.volume=t.volume||1,r.onstart=l,r.onpause=c,r.onresume=l,r.onend=f,window.speechSynthesis.speak(r),function(){n.current=!1}},[]),u}},"react-use@17.4.0/esm/useStartTyping.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react-use@17.4.0/esm/useIsomorphicLayoutEffect.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=function(e){(0,r.default)(function(){var t=function(t){!function(){var e=document.activeElement,t=document.body;if(!e)return!1;if(e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}()&&function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,a=e.altKey;return!(n||r||a)&&(t>=48&&t<=57||t>=65&&t<=90)}(t)&&e(t)};return(0,a.on)(document,"keydown",t),function(){(0,a.off)(document,"keydown",t)}},[])}},"react-use@17.4.0/esm/useStateList.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react@18.2.0/index.js"),o=n("react-use@17.4.0/esm/useMountedState.js"),i=n("react-use@17.4.0/esm/useUpdate.js"),u=n("react-use@17.4.0/esm/useUpdateEffect.js");function s(e){void 0===e&&(e=[]);var t=(0,o.default)(),n=(0,i.default)(),s=(0,a.useRef)(0);(0,u.default)(function(){e.length<=s.current&&(s.current=e.length-1,n())},[e.length]);var l=(0,a.useMemo)(function(){return{next:function(){return l.setStateAt(s.current+1)},prev:function(){return l.setStateAt(s.current-1)},setStateAt:function(r){t()&&e.length&&r!==s.current&&(s.current=r>=0?r%e.length:e.length+r%e.length,n())},setState:function(r){if(t()){var a=e.length?e.indexOf(r):-1;if(-1===a)throw new Error("State '"+r+"' is not a valid state (does not exist in state list)");s.current=a,n()}}}},[e]);return(0,r.__assign)({state:e[s.current],currentIndex:s.current},l)}},"react-use@17.4.0/esm/useStateValidator.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");function a(e,t,n){void 0===n&&(n=[void 0]);var a=(0,r.useRef)(t),o=(0,r.useRef)(e);a.current=t,o.current=e;var i=(0,r.useState)(n),u=i[0],s=i[1],l=(0,r.useCallback)(function(){a.current.length>=2?a.current(o.current,s):s(a.current(o.current))},[s]);return(0,r.useEffect)(function(){l()},[e]),[u,l]}},"react-use@17.4.0/esm/useStateWithHistory.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{useStateWithHistory:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useFirstMountState.js"),o=n("react-use@17.4.0/esm/misc/hookState.js");function i(e,t,n){if(void 0===t&&(t=10),t<1)throw new Error("Capacity has to be greater than 1, got '"+t+"'");var i=(0,a.useFirstMountState)(),u=(0,r.useState)(e),s=u[0],l=u[1],c=(0,r.useRef)(null!==n&&void 0!==n?n:[]),f=(0,r.useRef)(0);return i&&(c.current.length?(c.current[c.current.length-1]!==e&&c.current.push(e),c.current.length>t&&(c.current=c.current.slice(c.current.length-t))):c.current.push(e),f.current=c.current.length&&c.current.length-1),[s,(0,r.useCallback)(function(e){l(function(n){return(e=(0,o.resolveHookState)(e,n))!==n&&(f.current<c.current.length-1&&(c.current=c.current.slice(0,f.current+1)),f.current=c.current.push(e)-1,c.current.length>t&&(c.current=c.current.slice(c.current.length-t))),e})},[s,t]),(0,r.useMemo)(function(){return{history:c.current,position:f.current,capacity:t,back:function(e){void 0===e&&(e=1),f.current&&l(function(){return f.current-=Math.min(e,f.current),c.current[f.current]})},forward:function(e){void 0===e&&(e=1),f.current!==c.current.length-1&&l(function(){return f.current=Math.min(f.current+e,c.current.length-1),c.current[f.current]})},go:function(e){e!==f.current&&l(function(){return f.current=e<0?Math.max(c.current.length+e,0):Math.min(c.current.length-1,e),c.current[f.current]})}}},[s])]}},"react-use@17.4.0/esm/useThrottle.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useUnmount.js");const o=function(e,t){void 0===t&&(t=200);var n=(0,r.useState)(e),o=n[0],i=n[1],u=(0,r.useRef)(),s=(0,r.useRef)(null),l=(0,r.useRef)(0);return(0,r.useEffect)(function(){if(u.current)s.current=e,l.current=!0;else{i(e);var n=function(){l.current?(l.current=!1,i(s.current),u.current=setTimeout(n,t)):u.current=void 0};u.current=setTimeout(n,t)}},[e]),(0,a.default)(function(){u.current&&clearTimeout(u.current)}),o}},"react-use@17.4.0/esm/useThrottleFn.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useUnmount.js");const o=function(e,t,n){void 0===t&&(t=200);var o=(0,r.useState)(null),i=o[0],u=o[1],s=(0,r.useRef)(),l=(0,r.useRef)();return(0,r.useEffect)(function(){if(s.current)l.current=n;else{u(e.apply(void 0,n));var r=function(){l.current?(u(e.apply(void 0,l.current)),l.current=void 0,s.current=setTimeout(r,t)):s.current=void 0};s.current=setTimeout(r,t)}},n),(0,a.default)(function(){s.current&&clearTimeout(s.current)}),i}},"react-use@17.4.0/esm/useTimeout.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react-use@17.4.0/esm/useTimeoutFn.js"),a=n("react-use@17.4.0/esm/useUpdate.js");function o(e){void 0===e&&(e=0);var t=(0,a.default)();return(0,r.default)(t,e)}},"react-use@17.4.0/esm/useTimeoutFn.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n("react@18.2.0/index.js");function a(e,t){void 0===t&&(t=0);var n=(0,r.useRef)(!1),a=(0,r.useRef)(),o=(0,r.useRef)(e),i=(0,r.useCallback)(function(){return n.current},[]),u=(0,r.useCallback)(function(){n.current=!1,a.current&&clearTimeout(a.current),a.current=setTimeout(function(){n.current=!0,o.current()},t)},[t]),s=(0,r.useCallback)(function(){n.current=null,a.current&&clearTimeout(a.current)},[]);return(0,r.useEffect)(function(){o.current=e},[e]),(0,r.useEffect)(function(){return u(),s},[t]),[i,s,u]}},"react-use@17.4.0/esm/useTitle.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a={restoreOnUnmount:!1};const o="undefined"!==typeof document?function(e,t){void 0===t&&(t=a);var n=(0,r.useRef)(document.title);document.title!==e&&(document.title=e),(0,r.useEffect)(function(){return t&&t.restoreOnUnmount?function(){document.title=n.current}:void 0},[])}:function(e){}},"react-use@17.4.0/esm/useToggle.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=function(e,t){return"boolean"===typeof t?t:!e};const o=function(e){return(0,r.useReducer)(a,e)}},"react-use@17.4.0/esm/useTween.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("ts-easing@0.2.0/lib/index.js"),a=n("react-use@17.4.0/esm/useRaf.js");const o=function(e,t,n){return void 0===e&&(e="inCirc"),void 0===t&&(t=200),void 0===n&&(n=0),(0,r.easing[e])((0,a.default)(t,n))}},"react-use@17.4.0/esm/useUnmount.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useEffectOnce.js");const o=function(e){var t=(0,r.useRef)(e);t.current=e,(0,a.default)(function(){return function(){return t.current()}})}},"react-use@17.4.0/esm/useUnmountPromise.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useEffectOnce.js");const o=function(){var e=(0,r.useRef)(!1);return(0,a.default)(function(){return function(){e.current=!0}}),(0,r.useMemo)(function(){return function(t,n){return new Promise(function(r,a){t.then(function(t){e.current||r(t)},function(t){e.current?n?n(t):console.error("useUnmountPromise",t):a(t)})})}},[])}},"react-use@17.4.0/esm/useUpdate.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=function(e){return(e+1)%1e6};function o(){return(0,r.useReducer)(a,0)[1]}},"react-use@17.4.0/esm/useUpdateEffect.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useFirstMountState.js");const o=function(e,t){var n=(0,a.useFirstMountState)();(0,r.useEffect)(function(){if(!n)return e()},t)}},"react-use@17.4.0/esm/useUpsert.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("tslib@2.5.0/tslib.es6.js"),a=n("react-use@17.4.0/esm/useList.js");function o(e,t){void 0===t&&(t=[]);var n=(0,a.default)(t),o=n[0],i=n[1];return[o,(0,r.__assign)((0,r.__assign)({},i),{upsert:function(t){i.upsert(e,t)}})]}},"react-use@17.4.0/esm/useVibrate.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js");const o=a.isNavigator&&"vibrate"in navigator?function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=[1e3,1e3]),void 0===n&&(n=!0),(0,r.useEffect)(function(){var r;if(e&&(navigator.vibrate(t),n)){var a=t instanceof Array?t.reduce(function(e,t){return e+t}):t;r=setInterval(function(){navigator.vibrate(t)},a)}return function(){e&&(navigator.vibrate(0),n&&clearInterval(r))}},[e])}:a.noop},"react-use@17.4.0/esm/useVideo.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n("react-use@17.4.0/esm/factory/createHTMLMediaHook.js").default)("video")},"react-use@17.4.0/esm/useWindowScroll.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/misc/util.js"),o=n("react-use@17.4.0/esm/useRafState.js");const i=function(){var e=(0,o.default)(function(){return{x:a.isBrowser?window.pageXOffset:0,y:a.isBrowser?window.pageYOffset:0}}),t=e[0],n=e[1];return(0,r.useEffect)(function(){var e=function(){n(function(e){var t=window.pageXOffset,n=window.pageYOffset;return e.x!==t||e.y!==n?{x:t,y:n}:e})};return e(),(0,a.on)(window,"scroll",e,{capture:!1,passive:!0}),function(){(0,a.off)(window,"scroll",e)}},[]),t}},"react-use@17.4.0/esm/useWindowSize.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n("react@18.2.0/index.js"),a=n("react-use@17.4.0/esm/useRafState.js"),o=n("react-use@17.4.0/esm/misc/util.js");const i=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=1/0);var n=(0,a.default)({width:o.isBrowser?window.innerWidth:e,height:o.isBrowser?window.innerHeight:t}),i=n[0],u=n[1];return(0,r.useEffect)(function(){if(o.isBrowser){var e=function(){u({width:window.innerWidth,height:window.innerHeight})};return(0,o.on)(window,"resize",e),function(){(0,o.off)(window,"resize",e)}}},[]),i}},"react@18.2.0/cjs/react-jsx-runtime.production.min.js":(e,t,n)=>{"use strict";var r=n("react@18.2.0/index.js"),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:l,ref:c,props:o,_owner:u.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},"react@18.2.0/cjs/react.production.min.js":(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var w=b.prototype=new g;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,j={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,o={},i=null,u=null;if(null!=t)for(a in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:n,type:e,key:i,ref:u,props:o,_owner:j.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function A(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(e,t,a,o,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===o?"."+A(s,0):o,x(i)?(a="",null!=e&&(a=e.replace(C,"$&/")+"/"),R(i,t,a,"",function(e){return e})):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(s=0,o=""===o?".":o+":",x(e))for(var l=0;l<e.length;l++){var c=o+A(u=e[l],l);s+=R(u,t,a,c,i)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=R(u=u.value,t,a,c=o+A(u,l++),i);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function P(e,t,n){if(null==e)return e;var r=[],a=0;return R(e,r,"","",function(e){return t.call(n,e,a++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},L={transition:null},T={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:L,ReactCurrentOwner:j};t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),o=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=j.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)S.call(t,l)&&!E.hasOwnProperty(l)&&(a[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:u}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.2.0"},"react@18.2.0/index.js":(e,t,n)=>{"use strict";e.exports=n("react@18.2.0/cjs/react.production.min.js")},"react@18.2.0/jsx-runtime.js":(e,t,n)=>{"use strict";e.exports=n("react@18.2.0/cjs/react-jsx-runtime.production.min.js")},"redux-thunk@2.4.2/es/index.js":(e,t,n)=>{"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"===typeof a?a(n,r,e):t(a)}}}}n.r(t),n.d(t,{default:()=>o});var a=r();a.withExtraArgument=r;const o=a},"redux@4.2.1/es/redux.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:()=>u,applyMiddleware:()=>m,bindActionCreators:()=>p,combineReducers:()=>f,compose:()=>h,createStore:()=>l,legacy_createStore:()=>c});var r=n("@babel/runtime@7.20.13/helpers/esm/objectSpread2.js");function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"===typeof Symbol&&Symbol.observable||"@@observable",i=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function s(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(l)(e,t)}if("function"!==typeof e)throw new Error(a(2));var i=e,c=t,f=[],d=f,p=!1;function h(){d===f&&(d=f.slice())}function m(){if(p)throw new Error(a(3));return c}function v(e){if("function"!==typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),f=null}}}function y(e){if(!s(e))throw new Error(a(7));if("undefined"===typeof e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,c=i(c,e)}finally{p=!1}for(var t=f=d,n=0;n<t.length;n++){(0,t[n])()}return e}return y({type:u.INIT}),(r={dispatch:y,subscribe:v,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(a(10));i=e,y({type:u.REPLACE})}})[o]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[o]=function(){return this},e},r}var c=l;function f(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:u.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))})}(n)}catch(l){i=l}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},u=0;u<s.length;u++){var l=s[u],c=n[l],f=e[l],d=c(f,t);if("undefined"===typeof d){t&&t.type;throw new Error(a(14))}o[l]=d,r=r||d!==f}return(r=r||s.length!==Object.keys(e).length)?o:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"===typeof e)return d(e,t);if("object"!==typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"===typeof o&&(n[r]=d(o,t))}return n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},u=t.map(function(e){return e(i)});return o=h.apply(void 0,u)(n.dispatch),(0,r.default)((0,r.default)({},n),{},{dispatch:o})}}}},"scheduler@0.23.0/cjs/scheduler.production.min.js":(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>o(s,n))l<a&&0>o(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<a&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var l=[],c=[],f=1,d=null,p=3,h=!1,m=!1,v=!1,y="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function x(e){if(v=!1,w(e),!m)if(null!==r(l))m=!0,L(S);else{var t=r(c);null!==t&&T(x,t.startTime-e)}}function S(e,n){m=!1,v&&(v=!1,g(k),k=-1),h=!0;var o=p;try{for(w(n),d=r(l);null!==d&&(!(d.expirationTime>n)||e&&!R());){var i=d.callback;if("function"===typeof i){d.callback=null,p=d.priorityLevel;var u=i(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?d.callback=u:d===r(l)&&a(l),w(n)}else a(l);d=r(l)}if(null!==d)var s=!0;else{var f=r(c);null!==f&&T(x,f.startTime-n),s=!1}return s}finally{d=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,E=!1,_=null,k=-1,C=5,A=-1;function R(){return!(t.unstable_now()-A<C)}function P(){if(null!==_){var e=t.unstable_now();A=e;var n=!0;try{n=_(!0,e)}finally{n?j():(E=!1,_=null)}}else E=!1}if("function"===typeof b)j=function(){b(P)};else if("undefined"!==typeof MessageChannel){var O=new MessageChannel,M=O.port2;O.port1.onmessage=P,j=function(){M.postMessage(null)}}else j=function(){y(P,0)};function L(e){_=e,E||(E=!0,j())}function T(e,n){k=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:f++,callback:a,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>i?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(v?(g(k),k=-1):v=!0,T(x,o-i))):(e.sortIndex=u,n(l,e),m||h||(m=!0,L(S))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},"scheduler@0.23.0/index.js":(e,t,n)=>{"use strict";e.exports=n("scheduler@0.23.0/cjs/scheduler.production.min.js")},"screenfull@5.2.0/dist/screenfull.js":e=>{!function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,a=n.length,o={};r<a;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)o[n[0][r]]=e[r];return o}return!1}(),a={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(e,n){return new Promise(function(a,o){var i=function(){this.off("change",i),a()}.bind(this);this.on("change",i);var u=(e=e||t.documentElement)[r.requestFullscreen](n);u instanceof Promise&&u.then(i).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var a=function(){this.off("change",a),e()}.bind(this);this.on("change",a);var o=t[r.exitFullscreen]();o instanceof Promise&&o.then(a).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=a[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=a[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=o:window.screenfull=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},"set-harmonic-interval@1.0.1/lib/index.esm.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearHarmonicInterval:()=>i,setHarmonicInterval:()=>o});var r=0,a={},o=function(e,t){var n,o=r++;if(a[t])a[t].listeners[o]=e;else{var i=setInterval(function(){for(var e,n=a[t].listeners,r=!1,o=0,i=Object.values(n);o<i.length;o++){var u=i[o];try{u()}catch(s){r=!0,e=s}}if(r)throw e},t);a[t]={ms:t,timer:i,listeners:(n={},n[o]=e,n)}}return{bucket:a[t],id:o}},i=function(e){var t=e.bucket,n=e.id;delete t.listeners[n];var r=!1;for(var o in t.listeners){r=!0;break}r||(clearInterval(t.timer),delete a[t.ms])}},"style-loader@3.3.1/dist/runtime/injectStylesIntoStyleTag.js":e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],u=0;u<e.length;u++){var s=e[u],l=r.base?s[0]+r.base:s[0],c=o[l]||0,f="".concat(l," ").concat(c);o[l]=c+1;var d=n(f),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=a(p,r);r.byIndex=u,t.splice(u,0,{identifier:f,updater:h,references:1})}i.push(f)}return i}function a(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var u=n(o[i]);t[u].references--}for(var s=r(e,a),l=0;l<o.length;l++){var c=n(o[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=s}}},"style-loader@3.3.1/dist/runtime/insertBySelector.js":e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if("undefined"===typeof t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},"style-loader@3.3.1/dist/runtime/insertStyleElement.js":e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},"style-loader@3.3.1/dist/runtime/setAttributesWithoutAttributes.js":(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},"style-loader@3.3.1/dist/runtime/styleDomAPI.js":e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a="undefined"!==typeof n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!==typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},"style-loader@3.3.1/dist/runtime/styleTagTransform.js":e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},"toggle-selection@1.0.6/index.js":e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},"ts-easing@0.2.0/lib/index.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.easing={linear:function(e){return e},quadratic:function(e){return e*(-e*e*e+4*e*e-6*e+4)},cubic:function(e){return e*(4*e*e-9*e+6)},elastic:function(e){return e*(33*e*e*e*e-106*e*e*e+126*e*e-67*e+15)},inQuad:function(e){return e*e},outQuad:function(e){return e*(2-e)},inOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},inCubic:function(e){return e*e*e},outCubic:function(e){return--e*e*e+1},inOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},inQuart:function(e){return e*e*e*e},outQuart:function(e){return 1- --e*e*e*e},inOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},inQuint:function(e){return e*e*e*e*e},outQuint:function(e){return 1+--e*e*e*e*e},inOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},inSine:function(e){return 1-Math.cos(e*(Math.PI/2))},outSine:function(e){return Math.sin(e*(Math.PI/2))},inOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},inExpo:function(e){return Math.pow(2,10*(e-1))},outExpo:function(e){return 1-Math.pow(2,-10*e)},inOutExpo:function(e){return(e/=.5)<1?Math.pow(2,10*(e-1))/2:(e--,(2-Math.pow(2,-10*e))/2)},inCirc:function(e){return 1-Math.sqrt(1-e*e)},outCirc:function(e){return Math.sqrt(1-(e-=1)*e)},inOutCirc:function(e){return(e/=.5)<1?-(Math.sqrt(1-e*e)-1)/2:(e-=2,(Math.sqrt(1-e*e)+1)/2)}}},"tslib@2.5.0/tslib.es6.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>_,__asyncGenerator:()=>E,__asyncValues:()=>k,__await:()=>j,__awaiter:()=>h,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>L,__classPrivateFieldSet:()=>M,__createBinding:()=>v,__decorate:()=>u,__esDecorate:()=>l,__exportStar:()=>y,__extends:()=>a,__generator:()=>m,__importDefault:()=>P,__importStar:()=>R,__makeTemplateObject:()=>C,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>b,__rest:()=>i,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>x,__values:()=>g});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function u(e,t,n,r){var a,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,a,o){function i(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var u,s=r.kind,l="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[l],h);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!==typeof v)throw new TypeError("Object expected");(u=i(v.get))&&(f.get=u),(u=i(v.set))&&(f.set=u),(u=i(v.init))&&a.push(u)}else(u=i(v))&&("field"===s?a.push(u):f[l]=u)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0}function f(e){return"symbol"===typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"===typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,u)}s((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(s){u=[6,s],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function g(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(u){a={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)r[a]=o[i];return r}function S(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function j(e){return this instanceof j?(this.v=e,this):new j(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),o=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){a[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=a[e](t)).value instanceof j?Promise.resolve(n.value.v).then(s,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:j(e[r](t)),done:!1}:a?a(t):t}:a}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,a,(t=e[n](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return A(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}function L(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},"use-sync-external-store@1.2.0/cjs/use-sync-external-store-shim.production.min.js":(e,t,n)=>{"use strict";var r=n("react@18.2.0/index.js");var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,i=r.useEffect,u=r.useLayoutEffect,s=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,c=r[1];return u(function(){a.value=n,a.getSnapshot=t,l(a)&&c({inst:a})},[e,n,t]),i(function(){return l(a)&&c({inst:a}),e(function(){l(a)&&c({inst:a})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},"use-sync-external-store@1.2.0/cjs/use-sync-external-store-shim/with-selector.production.min.js":(e,t,n)=>{"use strict";var r=n("react@18.2.0/index.js"),a=n("use-sync-external-store@1.2.0/shim/index.js");var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=a.useSyncExternalStore,u=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var f=u(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=l(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==a&&d.hasValue){var t=d.value;if(a(t,e))return u=t}return u=e}if(t=u,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(i=e,u=n)}var i,u,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,a]);var p=i(e,f[0],f[1]);return s(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},"use-sync-external-store@1.2.0/shim/index.js":(e,t,n)=>{"use strict";e.exports=n("use-sync-external-store@1.2.0/cjs/use-sync-external-store-shim.production.min.js")},"use-sync-external-store@1.2.0/shim/with-selector.js":(e,t,n)=>{"use strict";e.exports=n("use-sync-external-store@1.2.0/cjs/use-sync-external-store-shim/with-selector.production.min.js")}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&a&&r;("object"==typeof u||"function"==typeof u)&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,n.d(o,i),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.nc=void 0;n(948);"undefined"!==typeof window&&MUSE_GLOBAL.__shared__.register(e,n),"undefined"!==typeof window&&MUSE_GLOBAL.pluginEntries.push({id:"@ebay/muse-lib-react@1.3.5/src/index.js",func:()=>n("@ebay/muse-lib-react@1.3.5/src/index.js")})})();
|
|
3
|
-
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ie(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),ie(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=ie(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=ie(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ie(re(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var A=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},j={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=j,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,A)}catch(e){A(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),p=s(((e,t)=>{})),m=s(((e,t)=>{t.exports=f()})),h=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,te=O.port2;O.port1.onmessage=ee,D=function(){te.postMessage(null)}}else D=function(){_(ee,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),g=s((e=>{})),_=s(((e,t)=>{t.exports=h()})),v=s((e=>{var t=m();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),y=s((e=>{})),b=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),x=s((e=>{var t=_(),n=m(),r=b();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function k(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case x:return`Profiler`;case y:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?k(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return k(e(t))}catch{}}return null}var ae=Array.isArray,A=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function M(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function N(e,t){ce++,se[ce]=e.current,e.current=t}var ue=le(null),de=le(null),fe=le(null),pe=le(null);function me(e,t){switch(N(fe,t),N(de,e),N(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(ue),N(ue,e)}function he(){M(ue),M(de),M(fe)}function ge(e){e.memoizedState!==null&&N(pe,e);var t=ue.current,n=Kd(t,e.type);t!==n&&(N(de,e),N(ue,n))}function _e(e){de.current===e&&(M(ue),M(de)),pe.current===e&&(M(pe),np._currentValue=oe)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-He(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function st(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ct(){var e=j.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function lt(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var ut=Math.random().toString(36).slice(2),dt=`__reactFiber$`+ut,ft=`__reactProps$`+ut,pt=`__reactContainer$`+ut,mt=`__reactEvents$`+ut,ht=`__reactListeners$`+ut,gt=`__reactHandles$`+ut,_t=`__reactResources$`+ut,vt=`__reactMarker$`+ut;function yt(e){delete e[dt],delete e[ft],delete e[mt],delete e[ht],delete e[gt]}function bt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[dt])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function xt(e){if(e=e[dt]||e[pt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function St(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function P(e){var t=e[_t];return t||=e[_t]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ct(e){e[vt]=!0}var wt=new Set,Tt={};function Et(e,t){Dt(e,t),Dt(e+`Capture`,t)}function Dt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Ot=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),kt={},At={};function F(e){return Te.call(At,e)?!0:Te.call(kt,e)?!1:Ot.test(e)?At[e]=!0:(kt[e]=!0,!1)}function jt(e,t,n){if(F(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Mt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Nt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Pt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ft(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function It(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lt(e){if(!e._valueTracker){var t=Ft(e)?`checked`:`value`;e._valueTracker=It(e,t,``+e[t])}}function Rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ft(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function zt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Bt=/[\n"\\]/g;function Vt(e){return e.replace(Bt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ht(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Pt(t)):e.value!==``+Pt(t)&&(e.value=``+Pt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Wt(e,o,Pt(n)):Wt(e,o,Pt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Pt(s):e.removeAttribute(`name`)}function Ut(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Lt(e);return}n=n==null?``:``+Pt(n),t=t==null?n:``+Pt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Lt(e)}function Wt(e,t,n){t===`number`&&zt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Gt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Pt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Kt(e,t,n){if(t!=null&&(t=``+Pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Pt(n)}function qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Pt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Lt(e)}function Jt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Xt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Yt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Zt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Xt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Xt(e,o,t[o])}function Qt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var $t=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),en=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tn(e){return en.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function nn(){}var rn=null;function an(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var on=null,sn=null;function cn(e){var t=xt(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ht(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Vt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ft]||null;if(!a)throw Error(i(90));Ht(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Rt(r)}break a;case`textarea`:Kt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var ln=!1;function un(e,t,n){if(ln)return e(t,n);ln=!0;try{return e(t)}finally{if(ln=!1,(on!==null||sn!==null)&&(wu(),on&&(t=on,e=sn,sn=on=null,cn(t),e)))for(t=0;t<e.length;t++)cn(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ft]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var fn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),pn=!1;if(fn)try{var mn={};Object.defineProperty(mn,`passive`,{get:function(){pn=!0}}),window.addEventListener(`test`,mn,mn),window.removeEventListener(`test`,mn,mn)}catch{pn=!1}var hn=null,gn=null,_n=null;function vn(){if(_n)return _n;var e,t=gn,n=t.length,r,i=`value`in hn?hn.value:hn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return _n=i.slice(e,1<r?1-r:void 0)}function yn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bn(){return!0}function xn(){return!1}function Sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?bn:xn,this.isPropagationStopped=xn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=bn)},persist:function(){},isPersistent:bn}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wn=Sn(Cn),Tn=f({},Cn,{view:0,detail:0}),En=Sn(Tn),Dn,On,kn,An=f({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==kn&&(kn&&e.type===`mousemove`?(Dn=e.screenX-kn.screenX,On=e.screenY-kn.screenY):On=Dn=0,kn=e),Dn)},movementY:function(e){return`movementY`in e?e.movementY:On}}),jn=Sn(An),Mn=Sn(f({},An,{dataTransfer:0})),Nn=Sn(f({},Tn,{relatedTarget:0})),Pn=Sn(f({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Sn(f({},Cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),In=Sn(f({},Cn,{data:0})),Ln={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Rn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zn[e])?!!t[e]:!1}function Vn(){return Bn}var Hn=Sn(f({},Tn,{key:function(e){if(e.key){var t=Ln[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=yn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Rn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return e.type===`keypress`?yn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?yn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Un=Sn(f({},An,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=Sn(f({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Gn=Sn(f({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Sn(f({},An,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),qn=Sn(f({},Cn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=fn&&`CompositionEvent`in window,Xn=null;fn&&`documentMode`in document&&(Xn=document.documentMode);var Zn=fn&&`TextEvent`in window&&!Xn,Qn=fn&&(!Yn||Xn&&8<Xn&&11>=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=vn(),_n=gn=hn=null,rr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Qn&&t.locale!==`ko`?null:t.data;default:return null}}var or={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){on?sn?sn.push(r):sn=[r]:on=r,t=kd(t,`onChange`),0<t.length&&(n=new wn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){Sd(e,0)}function fr(e){if(Rt(St(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(fn){var hr;if(fn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,an(e)),un(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Te.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=zt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=fn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==zt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=kd(Pr,`onSelect`),0<r.length&&(t=new wn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};fn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function I(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Hr=I(`animationend`),Ur=I(`animationiteration`),Wr=I(`animationstart`),L=I(`transitionrun`),Gr=I(`transitionstart`),Kr=I(`transitioncancel`),qr=I(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Et(t,[e])}var Zr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ai(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),oi(e)}function ii(e,t){return ni(e,null,null,t),oi(e)}function ai(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function oi(e){if(50<_u)throw _u=0,G=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function ci(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function li(e,t,n,r){return new ci(e,t,n,r)}function ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=li(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function fi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ui(e)&&(s=1);else if(typeof e==`string`)s=qf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=li(31,n,t,a),e.elementType=O,e.lanes=o,e;case v:return mi(n.children,a,o,t);case y:s=8,a|=24;break;case x:return e=li(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=li(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=li(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ee:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=li(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function mi(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function hi(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function gi(e){var t=li(18,null,null,0);return t.stateNode=e,t}function _i(e,t,n){return t=li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vi=new WeakMap;function yi(e,t){if(typeof e==`object`&&e){var n=vi.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},vi.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var bi=[],xi=0,Si=null,Ci=0,wi=[],Ti=0,Ei=null,Di=1,Oi=``;function ki(e,t){bi[xi++]=Ci,bi[xi++]=Si,Si=e,Ci=t}function Ai(e,t,n){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Ei=e;var r=Di;e=Oi;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Di=1<<32-He(t)+i|n<<i|r,Oi=a+e}else Di=1<<a|n<<i|r,Oi=e}function ji(e){e.return!==null&&(ki(e,1),Ai(e,1,0))}function Mi(e){for(;e===Si;)Si=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null;for(;e===Ei;)Ei=wi[--Ti],wi[Ti]=null,Oi=wi[--Ti],wi[Ti]=null,Di=wi[--Ti],wi[Ti]=null}function Ni(e,t){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Di=t.id,Oi=t.overflow,Ei=e}var R=null,Pi=null,z=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(yi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[ft]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)Y(bd[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),Ut(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(R=e.return;R;)switch(R.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:R=R.return}}function Vi(e){if(e!==R)return!1;if(!z)return Bi(e),z=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=mf(e)}else t===27?(t=Pi,tf(e.type)?(e=pf,pf=null,Pi=e):Pi=t):Pi=R?ff(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=R=null,z=!1}function Ui(){var e=Fi;return e!==null&&(ru===null?ru=e:ru.push.apply(ru,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=le(null),Ki=null,qi=null;function Ji(e,t,n){N(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,M(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Tr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[np]:e.push(np))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=md(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=A.S;A.S=function(e,t){ou=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=le(null);function ya(){var e=va.current;return e===null?Ul.pooledCache:e}function ba(e,t){t===null?N(va,va.current):N(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(nn,nn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(nn,nn);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function B(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Oa(i)===t.type)?(t=a(t,n.props),B(t,n),t.return=e,t):(t=pi(n.type,n.key,n.props,null,e.mode,r),B(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_i(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=mi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=pi(t.type,t.key,t.props,null,e.mode,n),B(n,t),n.return=e,n;case g:return t=_i(t,e.mode,n),t.return=e,t;case D:return t=Oa(t),f(e,t,n)}if(ae(t)||re(t))return t=mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===C)return f(e,na(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case D:return n=Oa(n),p(e,t,n,r)}if(ae(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===C)return p(e,t,na(e,n),r);Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Oa(r),m(e,t,n,r,i)}if(ae(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===C)return m(e,t,n,na(t,r),i);Fa(t,r)}return null}function _(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return z&&ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),z&&ki(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),z&&ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return z&&ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),z&&ki(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),B(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=mi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=pi(o.type,o.key,o.props,null,e.mode,c),B(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=_i(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Oa(o),b(e,r,o,c)}if(ae(o))return _(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===C)return b(e,r,na(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=pa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(W&p)===p:(r&p)===p){p!==0&&p===fa&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Zl|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=le(null),Qa=le(0);function $a(e,t){e=Yl,N(Qa,e),N(Za,t),Yl=e|t.baseLanes}function eo(){N(Qa,Yl),N(Za,Za.current)}function to(){Yl=Qa.current,M(Za),M(Qa)}var no=le(null),ro=null;function io(e){var t=e.alternate;N(lo,lo.current&1),N(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){N(lo,lo.current),N(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(N(lo,lo.current),N(no,e),ro===null&&(ro=e)):so(e)}function so(){N(lo,lo.current),N(no,no.current)}function co(e){M(no),ro===e&&(ro=null),M(lo)}var lo=le(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,V=null,po=null,mo=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return fo=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Bs:Vs,_o=!1,a=n(r,i),_o=!1,go&&(a=Eo(t,n,r,i)),To(e),a}function To(e){A.H=zs;var t=po!==null&&po.next!==null;if(fo=0,mo=po=V=null,ho=!1,yo=0,bo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&$i(e)&&(ic=!0))}function Eo(e,t,n,r){V=e;var a=0;do{if(go&&(bo=null),yo=0,go=!1,25<=a)throw Error(i(301));if(a+=1,mo=po=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}A.H=Hs,o=t(n,r)}while(go);return o}function Do(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?Po(t):t,e=e.useState()[0],(po===null?null:po.memoizedState)!==e&&(V.flags|=1024),t}function Oo(){var e=vo!==0;return vo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}fo=0,mo=po=V=null,go=!1,yo=vo=0,bo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?V.memoizedState=mo=e:mo=mo.next=e,mo}function Mo(){if(po===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=po.next;var t=mo===null?V.memoizedState:mo.next;if(t!==null)mo=t,po=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));po=e,e={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},mo===null?V.memoizedState=mo=e:mo=mo.next=e}return mo}function No(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Po(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Da(bo,e,t),t=V,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Bs:Vs),e}function Fo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Po(e);if(e.$$typeof===C)return ta(e)}throw Error(i(438,String(e)))}function Io(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=No(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){return zo(Mo(),po,e)}function zo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(W&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((fo&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,V.lanes|=p,Zl|=p;f=u.action,_o&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,V.lanes|=f,Zl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(ic=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Bo(e){var t=Mo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Tr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vo(e,t,n){var r=V,a=Mo(),o=z;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((po||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Wo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||fo&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=No(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function Ko(e){var t=ii(e,2);t!==null&&K(t,e,2)}function qo(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),_o){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t}function Jo(e,t,n,r){return e.baseState=n,zo(e,po,typeof r==`function`?r:Lo)}function Yo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};A.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Xo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),Zo(e,t,s)}catch(n){$o(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),Zo(e,t,a)}catch(n){$o(e,t,n)}}function Zo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Qo(e,t,n)},function(n){return $o(e,t,n)}):Qo(e,t,n)}function Qo(e,t,n){t.status=`fulfilled`,t.value=n,es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xo(e,n)))}function $o(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,es(t),t=t.next;while(t!==r)}e.action=null}function es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ts(e,t){return t}function ns(e,t){if(z){var n=Ul.formState;if(n!==null){a:{var r=V;if(z){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=ff(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:t},n.queue=r,n=Ns.bind(null,V,r),r.dispatch=n,r=qo(!1),a=Fs.bind(null,V,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Yo.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function H(e){return rs(Mo(),po,e)}function rs(e,t,n){if(t=zo(e,t,ts)[0],e=Ro(Lo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Po(t)}catch(e){throw e===Sa?wa:e}else r=t;t=Mo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=Mo(),n=po;if(n!==null)return rs(t,n,e);Mo(),t=t.memoizedState,n=Mo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=No(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return Mo().memoizedState}function cs(e,t,n,r){var i=jo();V.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=Mo();r=r===void 0?null:r;var a=i.memoizedState.inst;po!==null&&r!==null&&Co(r,po.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(V.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=No(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=Mo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(Hl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),_o){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||fo&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),V.lanes|=e,Zl|=e,n)}function Ss(e,t,n,r){return Tr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(W&261930)?(ic=!0,e.memoizedState=n):(e=yu(),V.lanes|=e,Zl|=e,t):(e=xs(e,n,r),Tr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};A.T=s,Fs(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ga(c,r),vu(e)):Ps(e,t,r,vu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,oe,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},vu())}function Os(){return ta(np)}function ks(){return Mo().memoizedState}function As(){return Mo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(K(r,t,n),Wa(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ri(e,t,n,r),n!==null&&(K(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,vu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ni(e,t,i,0),Ul===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return K(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&K(t,e,2)}function Is(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ls(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var zs={readContext:ta,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};zs.useEffectEvent=So;var Bs={readContext:ta,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ns.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=Cs.bind(null,V,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=jo();if(z){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));W&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Wo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=Ul.identifierPrefix;if(z){var n=Oi,r=Di;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return jo().memoizedState=js.bind(null,V)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(Hl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ta,use:Fo,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Ro,useRef:ss,useState:function(){return Ro(Lo)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(Mo(),po.memoizedState,e,t)},useTransition:function(){var e=Ro(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:ks,useHostTransitionStatus:Os,useFormState:H,useActionState:H,useOptimistic:function(e,t){return Jo(Mo(),po,e,t)},useMemoCache:Io,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ta,use:Fo,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Bo,useRef:ss,useState:function(){return Bo(Lo)},useDebugValue:vs,useDeferredValue:function(e,t){var n=Mo();return po===null?xs(n,e,t):Ss(n,po.memoizedState,e,t)},useTransition:function(){var e=Bo(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=Mo();return po===null?(n.baseState=e,[e,n.queue.dispatch]):Jo(n,po,e,t)},useMemoCache:Io,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(K(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(K(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(K(t,e,n),Wa(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Zr(e)}function Ys(e){console.error(e)}function Xs(e){Zr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ha(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(lu===null?lu=new Set([this]):lu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?ju():n.alternate===null&&Xl===0&&(Xl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Xu(e,r,a)),!1}throw Error(i(435,n.tag))}return Xu(e,r,a),ju(),!1}if(z)return t=no.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(yi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=yi(r,n),a=$s(e.stateNode,r,a),Ga(e,a),Xl!==4&&(Xl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(yi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=yi(o,n),nu===null?nu=[o]:nu.push(o),Xl!==4&&(Xl=2),t===null)return!0;r=yi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(lu===null||!lu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(z&&s&&ji(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ui(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),eo(),so(t)):(ba(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),eo(),oo(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return La(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(z){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(ao(t),(e=Pi)?(e=cf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,R=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Ul,r!==null&&(s=at(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ii(e,s),K(r,e,s),rc;ju(),t=pc(e,t,n)}else e=o.treeContext,Pi=ff(s.nextSibling),R=t,z=!0,Fi=null,Ii=!1,e!==null&&Ni(t,e),t=fc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return ea(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(z&&r&&ji(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ic?(ko(e,t,a),Ac(e,t,a)):(z&&r&&ji(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=si,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=si,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=za||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=si,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=za||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Hi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:xa()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=eu),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(lo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(z){if(a?io(t):so(t),(e=Pi)?(e=cf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,R=t,Pi=null)):e=null,e===null)throw Ri(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=mi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(io(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=mi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Ul,s!==null&&(r=at(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),K(s,e,r),rc;lf(c)||ju(),t=Ec(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=ff(c.nextSibling),R=t,z=!0,Fi=null,Ii=!1,e!==null&&Ni(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=mi(c,a,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=li(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return La(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(lo,o),ac(e,t,r,n),r=z?Ci:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(lo,lo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,z&&t.flags&1048576&&Ai(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)ui(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=k(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=yi(Error(i(424)),t),Wi(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=ff(e.firstChild),R=t,z=!0,Fi=null,Ii=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:z||(n=t.type,e=t.pendingProps,r=Wd(fe.current).createElement(n),r[dt]=t,r[ft]=e,Rd(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&z&&(r=t.stateNode=gf(t.type,t.pendingProps,fe.current),R=t,Ii=!0,a=Pi,tf(t.type)?(pf=a,Pi=ff(r.firstChild)):Pi=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&z&&((a=r=Pi)&&(r=of(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,R=t,Pi=ff(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,Do,null,null,n),np._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&z&&((e=n=Pi)&&(n=sf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,R=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return Cc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=Ul,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ou())e.flags|=8192;else throw ka=Ta,Ca}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t))if(Ou())e.flags|=8192;else throw ka=Ta,Ca}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,tu|=t)}function Rc(e,t){if(!z)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bc(e,t,n){var r=t.pendingProps;switch(Mi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=ue.current,Vi(t)?zi(t,e):(e=gf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=ue.current,Vi(t))zi(t,o);else{var s=Wd(fe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[dt]=t,o[ft]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=R,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Ri(t,!0)}else e=Wd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[dt]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[dt]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return he(),e===null&&Td(t.stateNode.containerInfo),zc(t),null;case 10:return Yi(t.type),zc(t),null;case 19:if(M(lo),r=t.memoizedState,r===null)return zc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(Xl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return N(lo,lo.current&1|2),z&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>su&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!z)return zc(t),null}else 2*Ae()-r.renderingStartTime>su&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=lo.current,N(lo,a?n&1|2:n&1),z&&ki(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(lo),null;case 4:return he(),null;case 10:return Yi(t.type),null;case 22:case 23:return co(t),to(),e!==null&&M(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Mi(t),t.tag){case 3:Yi(sa),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:M(lo);break;case 10:Yi(t.type);break;case 22:case 23:co(t),to(),e!==null&&M(va);break;case 24:Yi(sa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){Yu(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[ft]=t}catch(t){Yu(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nn));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[dt]=e,t[ft]=n}catch(t){Yu(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Hd=dp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},dp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Yu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Yu(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yu(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){Yu(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$u.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,(n.subtreeFlags&8772)!=0):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;tf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),_f(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null)if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Yu(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Yu(n,t,e)}break;case 18:ul!==null&&(dl?(e=ul,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):nf(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lp(e)}catch(e){Yu(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Lp(e)}catch(e){Yu(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ed.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[vt]||o[dt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[dt]=e,Ct(o),r=o;break a;case`link`:var s=Gf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Gf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[dt]=e,Ct(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode);else e.stateNode=Bf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Kf(a,e.type,e.stateNode):Bf(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{Jt(a,``)}catch(t){Yu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Yu(e,e.return,t)}}break;case 3:if(Wf=null,a=yl,yl=bf(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){Yu(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=bf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(au=Ae()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Yu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Yu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){Yu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Jt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){Yu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:_f(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Yu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){Yu(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Yu(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Yf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=bf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,Hl=0,Ul=null,U=null,W=0,Wl=0,Gl=null,Kl=!1,ql=!1,Jl=!1,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=null,ru=null,iu=!1,au=0,ou=0,su=1/0,cu=null,lu=null,uu=0,du=null,fu=null,pu=0,mu=0,hu=null,gu=null,_u=0,G=null;function vu(){return Hl&2&&W!==0?W&-W:A.T===null?ct():md()}function yu(){if(eu===0)if(!(W&536870912)||z){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),eu=e}else eu=536870912;return e=no.current,e!==null&&(e.flags|=32),eu}function K(e,t,n){(e===Ul&&(Wl===2||Wl===9)||e.cancelPendingCommit!==null)&&(Eu(e,0),Cu(e,W,eu,!1)),tt(e,n),(!(Hl&2)||e!==Ul)&&(e===Ul&&(!(Hl&2)&&(Ql|=n),Xl===4&&Cu(e,W,eu,!1)),od(e))}function bu(e,t,n){if(Hl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ze(e,t),a=r?Pu(e,t):Mu(e,t,!0),o=r;do{if(a===0){ql&&!r&&Cu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Su(n)){a=Mu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=nu;var l=c.current.memoizedState.isDehydrated;if(l&&(Eu(c,s).flags|=256),s=Mu(c,s,!1),s!==2){if(Jl&&!l){c.errorRecoveryDisabledLanes|=o,Ql|=o,a=4;break a}o=ru,ru=a,o!==null&&(ru===null?ru=o:ru.push.apply(ru,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Eu(e,0),Cu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cu(r,t,eu,!Kl);break a;case 2:ru=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=au+300-Ae(),10<a)){if(Cu(r,t,eu,!Kl),Xe(r,0,!0)!==0)break a;pu=t,r.timeoutHandle=Xd(xu.bind(null,r,n,ru,cu,iu,t,eu,Ql,tu,Kl,o,`Throttled`,-0,0),a);break a}xu(r,n,ru,cu,iu,t,eu,Ql,tu,Kl,o,null,-0,0)}}break}while(1);od(e)}function xu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},Pl(t,a,d);var m=(a&62914560)===a?au-Ae():(a&4194048)===a?ou-Ae():0;if(m=Zf(d,m),m!==null){pu=a,e.cancelPendingCommit=m(Vu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Cu(e,a,o,!l);return}}Vu(e,t,a,n,r,i,o,s,c)}function Su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Tr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cu(e,t,n,r){t&=~$l,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function wu(){return Hl&6?!0:(sd(0,!1),!1)}function Tu(){if(U!==null){if(Wl===0)var e=U.return;else e=U,qi=Ki=null,Ao(e),Ma=null,Na=0,e=U;for(;e!==null;)Hc(e.alternate,e),e=e.return;U=null}}function Eu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),pu=0,Tu(),Ul=e,U=n=di(e.current,null),W=t,Wl=0,Gl=null,Kl=!1,ql=Ze(e,t),Jl=!1,tu=eu=$l=Ql=Zl=Xl=0,ru=nu=null,iu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-He(r),a=1<<i;t|=e[i],r&=~a}return Yl=t,ti(),n}function Du(e,t){V=null,A.H=zs,t===Sa||t===wa?(t=Aa(),Wl=3):t===Ca?(t=Aa(),Wl=4):Wl=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Gl=t,U===null&&(Xl=1,Zs(e,yi(t,e.current)))}function Ou(){var e=no.current;return e===null?!0:(W&4194048)===W?ro===null:(W&62914560)===W||W&536870912?e===ro:!1}function ku(){var e=A.H;return A.H=zs,e===null?zs:e}function Au(){var e=A.A;return A.A=Bl,e}function ju(){Xl=4,Kl||(W&4194048)!==W&&no.current!==null||(ql=!0),!(Zl&134217727)&&!(Ql&134217727)||Ul===null||Cu(Ul,W,eu,!1)}function Mu(e,t,n){var r=Hl;Hl|=2;var i=ku(),a=Au();(Ul!==e||W!==t)&&(cu=null,Eu(e,t)),t=!1;var o=Xl;a:do try{if(Wl!==0&&U!==null){var s=U,c=Gl;switch(Wl){case 8:Tu(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Wl;if(Wl=0,Gl=null,Ru(e,s,c,l),n&&ql){o=0;break a}break;default:l=Wl,Wl=0,Gl=null,Ru(e,s,c,l)}}Nu(),o=Xl;break}catch(t){Du(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Hl=r,A.H=i,A.A=a,U===null&&(Ul=null,W=0,ti()),o}function Nu(){for(;U!==null;)Iu(U)}function Pu(e,t){var n=Hl;Hl|=2;var r=ku(),a=Au();Ul!==e||W!==t?(cu=null,su=Ae()+500,Eu(e,t)):ql=Ze(e,t);a:do try{if(Wl!==0&&U!==null){t=U;var o=Gl;b:switch(Wl){case 1:Wl=0,Gl=null,Ru(e,t,o,1);break;case 2:case 9:if(Ea(o)){Wl=0,Gl=null,Lu(t);break}t=function(){Wl!==2&&Wl!==9||Ul!==e||(Wl=7),od(e)},o.then(t,t);break a;case 3:Wl=7;break a;case 4:Wl=5;break a;case 7:Ea(o)?(Wl=0,Gl=null,Lu(t)):(Wl=0,Gl=null,Ru(e,t,o,7));break;case 5:var s=null;switch(U.tag){case 26:s=U.memoizedState;case 5:case 27:var c=U;if(s?Jf(s):c.stateNode.complete){Wl=0,Gl=null;var l=c.sibling;if(l!==null)U=l;else{var u=c.return;u===null?U=null:(U=u,zu(u))}break b}}Wl=0,Gl=null,Ru(e,t,o,5);break;case 6:Wl=0,Gl=null,Ru(e,t,o,6);break;case 8:Tu(),Xl=6;break a;default:throw Error(i(462))}}Fu();break}catch(t){Du(e,t)}while(1);return qi=Ki=null,A.H=r,A.A=a,Hl=n,U===null?(Ul=null,W=0,ti(),Xl):0}function Fu(){for(;U!==null&&!Oe();)Iu(U)}function Iu(e){var t=Nc(e.alternate,e,Yl);e.memoizedProps=e.pendingProps,t===null?zu(e):U=t}function Lu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:Ao(t);default:Hc(n,t),t=U=fi(t,Yl),t=Nc(n,t,Yl)}e.memoizedProps=e.pendingProps,t===null?zu(e):U=t}function Ru(e,t,n,r){qi=Ki=null,Ao(t),Ma=null,Na=0;var i=t.return;try{if(nc(e,i,t,n,W)){Xl=1,Zs(e,yi(n,e.current)),U=null;return}}catch(t){if(i!==null)throw U=i,t;Xl=1,Zs(e,yi(n,e.current)),U=null;return}t.flags&32768?(z||r===1?e=!0:ql||W&536870912?e=!1:(Kl=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bu(t,e)):zu(t)}function zu(e){var t=e;do{if(t.flags&32768){Bu(t,Kl);return}e=t.return;var n=Bc(t.alternate,t,Yl);if(n!==null){U=n;return}if(t=t.sibling,t!==null){U=t;return}U=t=e}while(t!==null);Xl===0&&(Xl=5)}function Bu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,U=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){U=e;return}U=e=n}while(e!==null);Xl=6,U=null}function Vu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ku();while(uu!==0);if(Hl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ei,nt(e,n,o,s,c,l),e===Ul&&(U=Ul=null,W=0),fu=t,du=e,pu=n,mu=o,hu=a,gu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,td(Pe,function(){return qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=A.T,A.T=null,a=j.p,j.p=2,s=Hl,Hl|=4;try{sl(e,t,n)}finally{Hl=s,j.p=a,A.T=r}}uu=1,Hu(),Uu(),Wu()}}function Hu(){if(uu===1){uu=0;var e=du,t=fu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Hl;Hl|=4;try{bl(t,e);var a=Ud,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Hd,Ud=Hd=null}finally{Hl=i,j.p=r,A.T=n}}e.current=t,uu=2}}function Uu(){if(uu===2){uu=0;var e=du,t=fu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Hl;Hl|=4;try{cl(e,t.alternate,t)}finally{Hl=i,j.p=r,A.T=n}}uu=3}}function Wu(){if(uu===4||uu===3){uu=0,ke();var e=du,t=fu,n=pu,r=gu;t.subtreeFlags&10256||t.flags&10256?uu=5:(uu=0,fu=du=null,Gu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(lu=null),st(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=A.T,i=j.p,j.p=2,A.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{A.T=t,j.p=i}}pu&3&&Ku(),od(e),i=e.pendingLanes,n&261930&&i&42?e===G?_u++:(_u=0,G=e):_u=0,sd(0,!1)}}function Gu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Ku(){return Hu(),Uu(),Wu(),qu()}function qu(){if(uu!==5)return!1;var e=du,t=mu;mu=0;var n=st(pu),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,Hl&6)throw Error(i(331));var c=Hl;if(Hl|=4,Ll(o.current),kl(o,o.current,s,n),Hl=c,sd(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{j.p=a,A.T=r,Gu(e,t)}}function Ju(e,t,n){t=yi(n,t),t=$s(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(tt(e,2),od(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(lu===null||!lu.has(r))){e=yi(n,e),n=ec(2),r=Ua(t,n,2),r!==null&&(tc(n,r,t,e),tt(r,2),od(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Jl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(W&n)===n&&(Xl===4||Xl===3&&(W&62914560)===W&&300>Ae()-au?!(Hl&2)&&Eu(e,0):$l|=n,tu===W&&(tu=0)),od(e)}function Qu(e,t){t===0&&(t=$e()),e=ii(e,t),e!==null&&(tt(e,t),od(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return Ee(e,t)}var q=null,nd=null,rd=!1,id=!1,ad=!1,J=0;function od(e){e!==nd&&e.next===null&&(nd===null?q=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,pd())}function sd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=q;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=W,a=Xe(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,fd(r,a));r=r.next}while(n);ad=!1}}function cd(){ld()}function ld(){id=rd=!1;var e=0;J!==0&&Yd()&&(e=J);for(var t=Ae(),n=null,r=q;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?q=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}uu!==0&&uu!==5||sd(e,!1),J!==0&&(J=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=W,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Wl===2||Wl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),st(n)){case 2:case 8:n=Ne;break;case 32:n=Pe;break;case 268435456:n=Ie;break;default:n=Pe}return r=dd.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(uu!==0&&uu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ku()&&e.callbackNode!==n)return null;var r=W;return r=Xe(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(bu(e,r,t),ud(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Ku())return null;bu(e,t,!0)}function pd(){$d(function(){Hl&6?Ee(Me,cd):ld()})}function md(){if(J===0){var e=fa;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),J=e}return J}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:tn(``+e)}function gd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[ft]||null).action),o=r.submitter;o&&(t=(t=o[ft]||null)?hd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new wn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(J!==0){var e=o?gd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?gd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<Yr.length;vd++){var yd=Yr[vd];Xr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.slice(1)))}Xr(Hr,`onAnimationEnd`),Xr(Ur,`onAnimationIteration`),Xr(Wr,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(L,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),Dt(`onMouseEnter`,[`mouseout`,`mouseover`]),Dt(`onMouseLeave`,[`mouseout`,`mouseover`]),Dt(`onPointerEnter`,[`pointerout`,`pointerover`]),Dt(`onPointerLeave`,[`pointerout`,`pointerover`]),Et(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Et(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Et(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Et(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[mt];n===void 0&&(n=t[mt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,wt.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!pn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=bt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}un(function(){var r=a,i=an(n),s=[];a:{var c=Jr.get(e);if(c!==void 0){var l=wn,u=e;switch(e){case`keypress`:if(yn(n)===0)break a;case`keydown`:case`keyup`:l=Hn;break;case`focusin`:u=`focus`,l=Nn;break;case`focusout`:u=`blur`,l=Nn;break;case`beforeblur`:case`afterblur`:l=Nn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Mn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Wn;break;case Hr:case Ur:case Wr:l=Pn;break;case qr:l=Gn;break;case`scroll`:case`scrollend`:l=En;break;case`wheel`:l=Kn;break;case`copy`:case`cut`:case`paste`:l=Fn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Un;break;case`toggle`:case`beforetoggle`:l=qn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=dn(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==rn&&(u=n.relatedTarget||n.fromElement)&&(bt(u)||u[pt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?bt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=jn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Un,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:St(l),h=u==null?c:St(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,bt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?St(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=pr;else if(sr(c))if(mr)v=Cr;else{v=xr;var y=br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Qt(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Wt(c,`number`,c.value)}switch(y=r?St(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(s,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(s,n,i)}var b;if(Yn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Qn&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=vn()):(hn=i,gn=`value`in hn?hn.value:hn.textContent,rr=!0)),y=kd(r,x),0<y.length&&(x=new In(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Zn?ir(e,n):ar(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new In(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),_d(s,e,r,n,i)}Sd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(Od(e,i,a)),i=dn(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
9
|
+
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Jt(e,``+r);break;case`className`:Mt(e,`class`,r);break;case`tabIndex`:Mt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Mt(e,n,r);break;case`style`:Zt(e,r,o);break;case`data`:if(t!==`object`){Mt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=tn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),jt(e,`popover`,r);break;case`xlinkActuate`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:jt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=$t.get(n)||n,jt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Zt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Jt(e,``+r);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ft]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):jt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Y(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Ut(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Gt(e,!!r,n,!0):Gt(e,!!r,t,!1);return;case`textarea`:for(s in Y(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Y(bd[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Ht(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Gt(e,!!n,n?[]:``,!1):Gt(e,!!n,t,!0)):Gt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}Kt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[vt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Lp(t)}function rf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:af(n),yt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[vt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=j.d;j.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=wu();return e||t}function Cf(e){var t=xt(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Vt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Vt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Vt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Vt(n.imageSizes)+`"]`)):i+=`[href="`+Vt(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Vt(r)+`"][href="`+Vt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=P(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);Ct(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=P(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Ct(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=P(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Ct(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=fe.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=P(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=P(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||Lf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Rf(n),n=P(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pf(e){return`href="`+Vt(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),Ct(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Vt(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Vt(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Rd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,Ct(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[vt]||a[dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ct(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Qf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var np={$$typeof:C,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function rp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=li(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function ap(e){return e?(e=si,e):si}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(K(n,e,t),Wa(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&K(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=vu();t=ot(t);var n=ii(e,t);n!==null&&K(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,mp(e,t,n,r)}finally{j.p=a,A.T=i}}function pp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,mp(e,t,n,r)}finally{j.p=a,A.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Dd(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=xt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ye(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}od(a),!(Hl&6)&&(su=Ae()+500,sd(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&K(s,a,2),wu(),cp(a,2)}if(a=hp(r),a===null&&Dd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function hp(e){return e=an(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=bt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gp=e,null}function vp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=xt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=bt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,lt(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,lt(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rn=r,n.target.dispatchEvent(r),rn=null}else return t=xt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(_p(r||n)===null)continue;break}var a=xt(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ft]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ft]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,vu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),wu(),t[pt]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.5`)throw Error(i(527,Vp,`19.2.5`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{ze=Up.inject(Hp),Be=Up}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ip(e,1,!1,null,null,n,r,null,o,s,c,Rp),e[pt]=t.current,Td(e),new zp(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Js,c=Ys,l=Xs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ip(e,1,!0,t,n??null,r,o,u,s,c,l,Rp),t.context=ap(null),n=t.current,r=vu(),r=ot(r),o=Ha(r),o.callback=null,Ua(n,o,r),n=r,t.current.lanes=n,tt(t,n),od(t),e[pt]=t.current,Td(e),new Bp(t)},e.version=`19.2.5`})),S=s((e=>{})),C=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=x()})),w=s((e=>{var t=m();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),T=s((e=>{})),E=s(((e,t)=>{t.exports=w()})),ee=u(C(),1),D=c({Provider:()=>at,ReactReduxContext:()=>Xe,batch:()=>ht,connect:()=>rt,createDispatchHook:()=>ut,createSelectorHook:()=>pt,createStoreHook:()=>ct,shallowEqual:()=>Ne,useDispatch:()=>dt,useSelector:()=>mt,useStore:()=>lt}),O=u(m(),1),te=u(E(),1),ne=Symbol.for(`react.transitional.element`),re=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),ae=Symbol.for(`react.profiler`),A=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),oe=Symbol.for(`react.forward_ref`),se=Symbol.for(`react.suspense`),ce=Symbol.for(`react.suspense_list`),le=Symbol.for(`react.memo`),M=Symbol.for(`react.lazy`),N=oe,ue=le;function de(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case ne:switch(e=e.type,e){case ie:case ae:case k:case se:case ce:return e;default:switch(e&&=e.$$typeof,e){case j:case oe:case M:case le:return e;case A:return e;default:return t}}case re:return t}}}function fe(e){return de(e)===le}function pe(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function me(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return pe(t(e,i),n(e,i),r(e,i),e,i)}function he(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function ge(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function _e(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function ve(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_e(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=_e(i),i=r(t,n)),i},r}}function ye(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function be(e){return e&&typeof e==`object`?ge(t=>he(e,t)):e?typeof e==`function`?ve(e,`mapDispatchToProps`):ye(e,`mapDispatchToProps`):ge(e=>({dispatch:e}))}function xe(e){return e?typeof e==`function`?ve(e,`mapStateToProps`):ye(e,`mapStateToProps`):ge(()=>({}))}function Se(e,t,n){return{...n,...e,...t}}function Ce(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function we(e){return e?typeof e==`function`?Ce(e):ye(e,`mergeProps`):()=>Se}function Te(e){e()}function Ee(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Te(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var De={notify(){},get:()=>[]};function Oe(e,t){let n,r=De,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Ee())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=De)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var ke=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ae=typeof navigator<`u`&&navigator.product===`ReactNative`,je=ke||Ae?O.useLayoutEffect:O.useEffect;function Me(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function Ne(e,t){if(Me(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Me(e[n[r]],t[n[r]]))return!1;return!0}var Pe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Le={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Re={[N]:Ie,[ue]:Le};function ze(e){return fe(e)?Le:Re[e.$$typeof]||Pe}var Be=Object.defineProperty,Ve=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Ue=Object.getOwnPropertyDescriptor,We=Object.getPrototypeOf,Ge=Object.prototype;function Ke(e,t){if(typeof t!=`string`){if(Ge){let n=We(t);n&&n!==Ge&&Ke(e,n)}let n=Ve(t);He&&(n=n.concat(He(t)));let r=ze(e),i=ze(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Fe[o]&&!(i&&i[o])&&!(r&&r[o])){let n=Ue(t,o);try{Be(e,o,n)}catch{}}}}return e}var qe=Symbol.for(`react-redux-context`),Je=typeof globalThis<`u`?globalThis:{};function Ye(){if(!O.createContext)return{};let e=Je[qe]??=new Map,t=e.get(O.createContext);return t||(t=O.createContext(null),e.set(O.createContext,t)),t}var Xe=Ye(),Ze=[null,null];function Qe(e,t,n){je(()=>e(...t),n)}function $e(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function et(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function tt(e,t){return e===t}function nt(e,t,n,{pure:r,areStatesEqual:i=tt,areOwnPropsEqual:a=Ne,areStatePropsEqual:o=Ne,areMergedPropsEqual:s=Ne,forwardRef:c=!1,context:l=Xe}={}){let u=l,d=xe(e),f=be(t),p=we(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=O.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=O.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=O.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=O.useMemo(()=>me(d.dispatch,r),[d]),[h,g]=O.useMemo(()=>{if(!m)return Ze;let e=Oe(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=O.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=O.useRef(void 0),y=O.useRef(a),b=O.useRef(void 0),x=O.useRef(!1),S=O.useRef(!1),C=O.useRef(void 0);je(()=>(S.current=!0,()=>{S.current=!1}),[]);let w=O.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),T=O.useMemo(()=>e=>h?et(m,d,h,p,y,v,x,S,b,g,e):()=>{},[h]);Qe($e,[y,v,x,a,b,g]);let E;try{E=O.useSyncExternalStore(T,w,f?()=>p(f(),a):w)}catch(e){throw C.current&&(e.message+=`
|
|
10
|
+
The error may be correlated with this previous error:
|
|
11
|
+
${C.current.stack}
|
|
12
|
+
|
|
13
|
+
`),e}je(()=>{C.current=void 0,b.current=void 0,v.current=E});let ee=O.useMemo(()=>O.createElement(e,{...E,ref:i}),[i,e,E]);return O.useMemo(()=>m?O.createElement(o.Provider,{value:_},ee):ee,[o,ee,_])}let h=O.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=O.forwardRef(function(e,t){return O.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Ke(t,e)}return Ke(h,e)}}var rt=nt;function it(e){let{children:t,context:n,serverState:r,store:i}=e,a=O.useMemo(()=>({store:i,subscription:Oe(i),getServerState:r?()=>r:void 0}),[i,r]),o=O.useMemo(()=>i.getState(),[i]);je(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Xe;return O.createElement(s.Provider,{value:a},t)}var at=it;function ot(e=Xe){return function(){return O.useContext(e)}}var st=ot();function ct(e=Xe){let t=e===Xe?st:ot(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var lt=ct();function ut(e=Xe){let t=e===Xe?lt:ct(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var dt=ut(),ft=(e,t)=>e===t;function pt(e=Xe){let t=e===Xe?st:ot(e),n=(e,n={})=>{let{equalityFn:r=ft}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();O.useRef(!0);let s=O.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,te.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return O.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var mt=pt(),ht=Te,gt=`modulepreload`,_t=function(e,t){return new URL(e,t).href},vt={},yt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=_t(t,n),t in vt)return;vt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:gt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},bt=c({Action:()=>Tt,Await:()=>so,AwaitContextProvider:()=>Ui,BrowserRouter:()=>tl,CRITICAL_CSS_DATA_ATTRIBUTE:()=>Pc,DataRouterContext:()=>Ii,DataRouterStateContext:()=>Li,ENABLE_DEV_WARNINGS:()=>!0,ErrorResponseImpl:()=>Rn,FetchersContext:()=>Vi,Form:()=>sl,FrameworkContext:()=>kc,HashRouter:()=>nl,HistoryRouter:()=>rl,IDLE_BLOCKER:()=>lr,IDLE_FETCHER:()=>cr,IDLE_NAVIGATION:()=>sr,Link:()=>al,Links:()=>Fc,LocationContext:()=>Gi,MemoryRouter:()=>to,Meta:()=>Bc,NO_BODY_STATUS_CODES:()=>ws,NavLink:()=>ol,Navigate:()=>no,NavigationContext:()=>Wi,Outlet:()=>ro,PrefetchPageLinks:()=>Ic,RSCRouterContext:()=>Ri,RemixErrorBoundary:()=>qc,Route:()=>io,RouteContext:()=>Ki,Router:()=>ao,RouterContextProvider:()=>Vt,RouterProvider:()=>Za,Routes:()=>oo,SINGLE_FETCH_REDIRECT_STATUS:()=>202,Scripts:()=>Wc,ScrollRestoration:()=>cl,SingleFetchRedirectSymbol:()=>Ss,StaticRouter:()=>Ol,StaticRouterProvider:()=>kl,StreamTransfer:()=>Ts,URL_LIMIT:()=>_c,ViewTransitionContext:()=>Bi,WithComponentProps:()=>mo,WithErrorBoundaryProps:()=>bo,WithHydrateFallbackProps:()=>_o,convertRoutesToDataRoutes:()=>qt,createBrowserHistory:()=>kt,createBrowserRouter:()=>Zc,createClientRoutes:()=>cc,createClientRoutesWithHMRRevalidationOptOut:()=>ac,createContext:()=>zt,createHashHistory:()=>At,createHashRouter:()=>Qc,createMemoryHistory:()=>Ot,createMemoryRouter:()=>Ya,createPath:()=>Ft,createRequestInit:()=>_s,createRouter:()=>vr,createRoutesFromChildren:()=>uo,createRoutesFromElements:()=>fo,createSearchParams:()=>Ao,createServerRoutes:()=>ic,createStaticHandler:()=>yr,createStaticHandler2:()=>Ml,createStaticRouter:()=>Nl,data:()=>Pn,decodeRedirectErrorDigest:()=>Zi,decodeRouteErrorResponseDigest:()=>Qi,decodeViaTurboStream:()=>Is,encode:()=>gs,escapeHtml:()=>bs,generatePath:()=>pn,getManifestPath:()=>Sc,getPatchRoutesOnNavigationFunction:()=>bc,getSingleFetchDataStrategyImpl:()=>Ds,getStaticContextFromError:()=>br,getTurboStreamSingleFetchDataStrategy:()=>Es,hydrationRouteProperties:()=>Ja,instrumentHandler:()=>Kn,invalidProtocols:()=>Qr,invariant:()=>F,isDataWithResponseInit:()=>xi,isMutationMethod:()=>Ei,isRedirectResponse:()=>wi,isRedirectStatusCode:()=>Ci,isResponse:()=>Si,isRouteErrorResponse:()=>zn,mapRouteProperties:()=>qa,matchPath:()=>mn,matchRoutes:()=>Yt,matchRoutesImpl:()=>Xt,noActionDefinedError:()=>sc,parsePath:()=>It,redirect:()=>Fn,redirectDocument:()=>In,renderMatches:()=>V,replace:()=>Ln,resolvePath:()=>xn,setIsHydrated:()=>Uc,shouldHydrateRouteLoader:()=>pc,singleFetchUrl:()=>Ps,stripBasename:()=>_n,stripIndexParam:()=>Ns,useActionData:()=>Na,useAsyncError:()=>Fa,useAsyncValue:()=>B,useBeforeUnload:()=>wl,useBlocker:()=>La,useFetcher:()=>vl,useFetchers:()=>yl,useFogOFWarDiscovery:()=>xc,useFormAction:()=>_l,useHref:()=>$i,useInRouterContext:()=>ea,useLinkClickHandler:()=>fl,useLoaderData:()=>ja,useLocation:()=>ta,useMatch:()=>ra,useMatches:()=>Aa,useNavigate:()=>oa,useNavigation:()=>Oa,useNavigationType:()=>na,useOutlet:()=>ua,useOutletContext:()=>la,useParams:()=>da,usePrompt:()=>El,useResolvedPath:()=>fa,useRevalidator:()=>ka,useRoute:()=>Va,useRouteError:()=>Pa,useRouteLoaderData:()=>Ma,useRoutes:()=>pa,useScrollRestoration:()=>Cl,useSearchParams:()=>pl,useSubmit:()=>gl,useViewTransitionState:()=>Dl,warnOnce:()=>Ua,withComponentProps:()=>ho,withErrorBoundaryProps:()=>xo,withHydrateFallbackProps:()=>vo}),xt=e=>{throw TypeError(e)},St=(e,t,n)=>t.has(e)||xt(`Cannot `+n),P=(e,t,n)=>(St(e,t,`read from private field`),n?n.call(e):t.get(e)),Ct=(e,t,n)=>t.has(e)?xt(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),wt=(e,t,n,r)=>(St(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Tt=(e=>(e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`,e))(Tt||{}),Et=`popstate`;function Dt(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Ot(e={}){let{initialEntries:t=[`/`],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>u(e,typeof e==`string`?null:e.state,t===0?`default`:void 0,typeof e==`string`?void 0:e.mask));let a=c(n??i.length-1),o=`POP`,s=null;function c(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function u(e,t=null,n,r){let a=Pt(i?l().pathname:`/`,e,t,n,r);return jt(a.pathname.charAt(0)===`/`,`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return typeof e==`string`?e:Ft(e)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(e){return new URL(d(e),`http://localhost`)},encodeLocation(e){let t=typeof e==`string`?It(e):e;return{pathname:t.pathname||``,search:t.search||``,hash:t.hash||``}},push(e,t){o=`PUSH`;let n=Dt(e)?e:u(e,t);a+=1,i.splice(a,i.length,n),r&&s&&s({action:o,location:n,delta:1})},replace(e,t){o=`REPLACE`;let n=Dt(e)?e:u(e,t);i[a]=n,r&&s&&s({action:o,location:n,delta:0})},go(e){o=`POP`;let t=c(a+e),n=i[t];a=t,s&&s({action:o,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function kt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Pt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Ft(t)}return Lt(t,n,null,e)}function At(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=It(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),Pt(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:Ft(t))}function r(e,t){jt(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return Lt(t,n,r,e)}function F(e,t){if(e===!1||e==null)throw Error(t)}function jt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Mt(){return Math.random().toString(36).substring(2,10)}function Nt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Pt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?It(t):t,state:n,key:t&&t.key||r||Mt(),mask:i}}function Ft({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function It(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Lt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Dt(e)?e:Pt(h.location,e,t);n&&n(r,e),l=u()+1;let d=Nt(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Dt(e)?e:Pt(h.location,e,t);n&&n(r,e),l=u();let i=Nt(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Rt(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Et,d),c=e,()=>{i.removeEventListener(Et,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Rt(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),F(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:Ft(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function zt(e){return{defaultValue:e}}var Bt,Vt=class{constructor(e){if(Ct(this,Bt,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(P(this,Bt).has(e))return P(this,Bt).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){P(this,Bt).set(e,t)}};Bt=new WeakMap;var Ht=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Ut(e){return Ht.has(e)}var Wt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Gt(e){return Wt.has(e)}function Kt(e){return e.index===!0}function qt(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(F(e.index!==!0||!e.children,`Cannot specify children on an index route`),F(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Kt(e)){let n={...e,id:s};return r[s]=Jt(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=Jt(n,t(n)),e.children&&(n.children=qt(e.children,t,o,r,i)),n}})}function Jt(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Yt(e,t,n=`/`){return Xt(e,t,n,!1)}function Xt(e,t,n,r,i){let a=_n((typeof t==`string`?It(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Qt(e),s=null,c=gn(a);for(let e=0;s==null&&e<o.length;++e)s=fn(o[e],c,r);return s}function Zt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Qt(e){let t=$t(e);return tn(t),t}function $t(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;F(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=On([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(F(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),$t(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:un(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of en(e.path))a(e,t,!0,n)}),t}function en(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=en(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function tn(e){e.sort((e,t)=>e.score===t.score?dn(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var nn=/^:[\w-]+$/,rn=3,an=2,on=1,sn=10,cn=-2,ln=e=>e===`*`;function un(e,t){let n=e.split(`/`),r=n.length;return n.some(ln)&&(r+=cn),t&&(r+=an),n.filter(e=>!ln(e)).reduce((e,t)=>e+(nn.test(t)?rn:t===``?on:sn),r)}function dn(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function fn(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=mn({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=mn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:On([a,u.pathname]),pathnameBase:An(On([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=On([a,u.pathnameBase]))}return o}function pn(e,t={}){let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(jt(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,`/*`)}".`),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)(.*)/);if(a){let[,e,n,r]=a,o=t[e];return F(n===`?`||o!=null,`Missing ":${e}" param`),encodeURIComponent(i(o))+r}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function mn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hn(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function hn(e,t=!1,n=!0){jt(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function gn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return jt(!1,`The URL path "${e}" could not be decoded because it 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 n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function vn({basename:e,pathname:t}){return t===`/`?e:On([e,t])}var yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=e=>yn.test(e);function xn(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?It(e):e,a;return n?(n=Dn(n),a=n.startsWith(`/`)?Sn(n.substring(1),`/`):Sn(n,t)):a=t,{pathname:a,search:jn(r),hash:Mn(i)}}function Sn(e,t){let n=kn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Cn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wn(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Tn(e){let t=wn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function En(e,t,n,r=!1){let i;typeof e==`string`?i=It(e):(i={...e},F(!i.pathname||!i.pathname.includes(`?`),Cn(`?`,`pathname`,`search`,i)),F(!i.pathname||!i.pathname.includes(`#`),Cn(`#`,`pathname`,`hash`,i)),F(!i.search||!i.search.includes(`#`),Cn(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=xn(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Dn=e=>e.replace(/\/\/+/g,`/`),On=e=>Dn(e.join(`/`)),kn=e=>e.replace(/\/+$/,``),An=e=>kn(e).replace(/^\/*/,`/`),jn=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Mn=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Nn=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}};function Pn(e,t){return new Nn(e,typeof t==`number`?{status:t}:t)}var Fn=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},In=(e,t)=>{let n=Fn(e,t);return n.headers.set(`X-Remix-Reload-Document`,`true`),n},Ln=(e,t)=>{let n=Fn(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},Rn=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function zn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Bn(e){return On(e.map(e=>e.route.path).filter(Boolean))||`/`}var Vn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Hn(e,t){let n=e;if(typeof n!=`string`||!yn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Vn)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=_n(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{jt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Un=Symbol(`Uninstrumented`);function Wn(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=qn(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=qn(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Un]??i,a=qn(n[e],t,(...e)=>Yn(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Un]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Un]??e,r=qn(n.middleware,t,(...e)=>Yn(e[0]));return r?(r[Un]=t,r):e})),r}function Gn(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Un]??e.navigate,r=qn(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Ft(n):`.`,...Xn(e,r??{})}});r&&(r[Un]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Un]??e.fetch,r=qn(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Xn(e,i??{})}});r&&(r[Un]=t,e.fetch=r)}return e}function Kn(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=qn(n.request,e,(...e)=>{let[t,n]=e;return{request:Zn(t),context:n==null?n:Qn(n)}})),r}function qn(e,t,n){return e.length===0?null:async(...r)=>{let i=await Jn(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Jn(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=Jn(e,t,n,r-1),a=await o,F(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Yn(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Zn(t),params:{...r},pattern:i,context:Qn(n)}}function Xn(e,t){return{currentUrl:Ft(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Zn(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Qn(e){if(er(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var $n=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function er(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===$n}var tr=[`POST`,`PUT`,`PATCH`,`DELETE`],nr=new Set(tr),rr=[`GET`,...tr],ir=new Set(rr),ar=new Set([301,302,303,307,308]),or=new Set([307,308]),sr={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cr={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lr={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},ur=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),dr=`remix-router-transitions`,fr=Symbol(`ResetLoaderData`),pr,mr,hr,gr,_r=class{constructor(e){Ct(this,pr),Ct(this,mr),Ct(this,hr),Ct(this,gr),wt(this,pr,e),wt(this,mr,Qt(e))}get stableRoutes(){return P(this,pr)}get activeRoutes(){return P(this,hr)??P(this,pr)}get branches(){return P(this,gr)??P(this,mr)}get hasHMRRoutes(){return P(this,hr)!=null}setRoutes(e){wt(this,pr,e),wt(this,mr,Qt(e))}setHmrRoutes(e){wt(this,hr,e),wt(this,gr,Qt(e))}commitHmrRoutes(){P(this,hr)&&(wt(this,pr,P(this,hr)),wt(this,mr,P(this,gr)),wt(this,hr,void 0),wt(this,gr,void 0))}};pr=new WeakMap,mr=new WeakMap,hr=new WeakMap,gr=new WeakMap;function vr(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;F(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||ur,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Wn(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new _r(qt(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Vr,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=e.hydrationData!=null,_=Xt(s.activeRoutes,e.history.location,c,!1,s.branches),v=!1,y=null,b,x;if(_==null&&!e.patchRoutesOnNavigation){let t=ui(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=li(s.activeRoutes);b=!0,x=!b,_=n,y={[r.id]:t}}else if(_&&!e.hydrationData&&Ye(_,s.activeRoutes,e.history.location.pathname).active&&(_=null),!_){b=!1,x=!b,_=[];let t=Ye(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(v=!0,_=t.matches)}else if(_.some(e=>e.route.lazy))b=!1,x=!b;else if(!_.some(e=>Dr(e.route)))b=!0,x=!b;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=_;if(n){let e=_.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}x=!1,b=!0,r.forEach(e=>{let r=Or(e.route,t,n);x||=r.renderFallback,b&&=!r.shouldLoad})}let S,C={historyAction:e.history.action,location:e.history.location,matches:_,initialized:b,renderFallback:x,navigation:sr,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},w=`POP`,T=null,E=!1,ee,D=!1,O=new Map,te=null,ne=!1,re=!1,ie=new Set,k=new Map,ae=0,A=-1,j=new Map,oe=new Set,se=new Map,ce=new Map,le=new Set,M=new Map,N,ue=null;function de(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(N){N(),N=void 0;return}jt(M.size===0||r!=null,"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 i=Ue({currentLocation:C.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{N=e});e.history.go(r*-1),He(i,{state:`blocked`,location:n,proceed(){He(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(C.blockers);e.set(i,lr),me({blockers:e})}}),T?.resolve(),T=null;return}return ve(t,n)}),n){Pi(t,O);let e=()=>z(t,O);t.addEventListener(`pagehide`,e),te=()=>t.removeEventListener(`pagehide`,e)}return C.initialized||ve(`POP`,C.location,{initialHydration:!0}),S}function fe(){d&&d(),te&&te(),f.clear(),ee&&ee.abort(),C.fetchers.forEach((e,t)=>Pe(t)),C.blockers.forEach((e,t)=>Ve(t))}function pe(e){return f.add(e),()=>f.delete(e)}function me(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),C={...C,...e};let n=[],r=[];C.fetchers.forEach((e,t)=>{e.state===`idle`&&(le.has(t)?n.push(t):r.push(t))}),le.forEach(e=>{!C.fetchers.has(e)&&!k.has(e)&&n.push(e)}),[...f].forEach(r=>r(C,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Pe(e)),r.forEach(e=>C.fetchers.delete(e))}function he(t,n,{flushSync:r}={}){let i=C.actionData!=null&&C.navigation.formMethod!=null&&Ei(C.navigation.formMethod)&&C.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?C.actionData:null;let o=n.loaderData?oi(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,c=C.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,lr)));let l=ne?!1:Je(t,n.matches||C.matches),u=E===!0||C.navigation.formMethod!=null&&Ei(C.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ne||w===`POP`||(w===`PUSH`?e.history.push(t,t.state):w===`REPLACE`&&e.history.replace(t,t.state));let d;if(w===`POP`){let e=O.get(C.location.pathname);e&&e.has(t.pathname)?d={currentLocation:C.location,nextLocation:t}:O.has(t.pathname)&&(d={currentLocation:t,nextLocation:C.location})}else if(D){let e=O.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),O.set(C.location.pathname,e)),d={currentLocation:C.location,nextLocation:t}}me({...n,actionData:a,loaderData:o,historyAction:w,location:t,initialized:!0,renderFallback:!1,navigation:sr,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),w=`POP`,E=!1,D=!1,ne=!1,re=!1,T?.resolve(),T=null,ue?.resolve(),ue=null}async function ge(t,n){if(T?.resolve(),T=null,typeof t==`number`){T||=Fi();let n=T.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Tr(!1,wr(C.location,C.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?It(n.mask):{...C.location.mask,...n.mask}});let s=C.location,l=Pt(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Ei(i.formMethod)&&i.formAction===C.location.pathname+C.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Ue({currentLocation:s,nextLocation:l,historyAction:d});if(m){He(m,{state:`blocked`,location:l,proceed(){He(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),ge(t,n)},reset(){let e=new Map(C.blockers);e.set(m,lr),me({blockers:e})}});return}await ve(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function _e(){ue||=Fi(),ke(),me({revalidation:`loading`});let e=ue.promise;return C.navigation.state===`submitting`?e:C.navigation.state===`idle`?(ve(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),e):(ve(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:D===!0}),e)}async function ve(t,n,r){ee&&ee.abort(),ee=null,w=t,ne=(r&&r.startUninterruptedRevalidation)===!0,qe(C.location,C.matches),E=(r&&r.preventScrollReset)===!0,D=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r&&r.overrideNavigation,o=r?.initialHydration&&C.matches&&C.matches.length>0&&!v?C.matches:Xt(i,n,c,!1,s.branches),l=(r&&r.flushSync)===!0;if(o&&C.initialized&&!re&&pi(C.location,n)&&!(r&&r.submission&&Ei(r.submission.formMethod))){he(n,{matches:o},{flushSync:l});return}let u=Ye(o,i,n.pathname);if(u.active&&u.matches&&(o=u.matches),!o){let{error:e,notFoundMatches:t,route:r}=We(n.pathname);he(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l});return}ee=new AbortController;let d=ei(e.history,n,ee.signal,r&&r.submission),f=e.getContext?await e.getContext():new Vt,p;if(r&&r.pendingError)p=[ci(o).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Ei(r.submission.formMethod)){let t=await ye(d,n,r.submission,o,f,u.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(yi(r)&&zn(r.error)&&r.error.status===404){ee=null,he(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}o=t.matches||o,p=t.pendingActionResult,a=Ai(n,r.submission),l=!1,u.active=!1,d=ei(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_}=await be(d,n,o,f,u.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,l,p,r&&r.callSiteDefaultShouldRevalidate);m||(ee=null,he(n,{matches:h||o,...si(p),loaderData:g,errors:_}))}async function ye(t,n,i,l,u,d,f,p={}){if(ke(),me({navigation:ji(n,i)},{flushSync:p.flushSync===!0}),d){let e=await Xe(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=li(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=ci(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=We(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let m,h=Oi(l,n);if(!h.route.action&&!h.route.lazy)m={type:`error`,error:ui(405,{method:t.method,pathname:n.pathname,routeId:h.route.id})};else{let e=await De(t,n,Kr(a,o,t,n,l,h,f?[]:r,u),u,null);if(m=e[h.route.id],!m){for(let t of l)if(e[t.route.id]){m=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(bi(m)){let n;return n=p&&p.replace!=null?p.replace:$r(m.response.headers.get(`Location`),new URL(t.url),c,e.history)===C.location.pathname+C.location.search,await Ee(t,m,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(yi(m)){let e=ci(l,h.route.id);return(p&&p.replace)!==!0&&(w=`PUSH`),{matches:l,pendingActionResult:[e.route.id,m,h.route.id]}}return{matches:l,pendingActionResult:[h.route.id,m]}}async function be(t,n,i,l,u,d,f,p,m,h,g,_,v){let y=d||Ai(n,f),b=f||p||ki(y),x=!ne&&!h;if(u){if(x){let e=xe(_);me({navigation:y,...e===void 0?{}:{actionData:e}},{flushSync:g})}let e=await Xe(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=li(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ci(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=We(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let S=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Er(t,l,a,o,e.history,C,i,b,n,h?[]:r,h===!0,re,ie,le,se,oe,S,c,e.patchRoutesOnNavigation!=null,s.branches,_,v);if(A=++ae,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=Re();return he(n,{matches:i,loaderData:{},errors:_&&yi(_[1])?{[_[0]]:_[1].error}:null,...si(_),...e?{fetchers:new Map(C.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(x){let e={};if(!u){e.navigation=y;let t=xe(_);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Se(T)),me(e,{flushSync:g})}T.forEach(e=>{Ie(e.key),e.controller&&k.set(e.key,e.controller)});let E=()=>T.forEach(e=>Ie(e.key));ee&&ee.signal.addEventListener(`abort`,E);let{loaderResults:D,fetcherResults:O}=await Oe(w,T,t,n,l);if(t.signal.aborted)return{shortCircuited:!0};ee&&ee.signal.removeEventListener(`abort`,E),T.forEach(e=>k.delete(e.key));let te=di(D);if(te)return await Ee(t,te.result,!0,{replace:m}),{shortCircuited:!0};if(te=di(O),te)return oe.add(te.key),await Ee(t,te.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:j,errors:ce}=ai(C,i,D,_,T,O);h&&C.errors&&(ce={...C.errors,...ce});let M=Re(),N=ze(A),ue=M||N||T.length>0;return{matches:i,loaderData:j,errors:ce,...ue?{fetchers:new Map(C.fetchers)}:{}}}function xe(e){if(e&&!yi(e[1]))return{[e[0]]:e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Se(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Mi(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}async function Ce(t,n,r,i){Ie(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=wr(C.location,C.matches,c,r,n,i?.relative),u=Xt(o,l,c,!1,s.branches),d=Ye(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){je(t,n,ui(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Tr(!0,l,i);if(m){je(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new Vt,g=(i&&i.preventScrollReset)===!0;if(p&&Ei(p.formMethod)){await we(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}se.set(t,{routeId:n,path:f}),await Te(t,n,f,u,h,d.active,a,g,p)}async function we(t,n,i,l,u,d,f,p,m,h){ke(),se.delete(t),Ae(t,Ni(m,C.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=ei(e.history,i,g.signal,m);if(d){let e=await Xe(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){je(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{je(t,n,ui(404,{pathname:i}),{flushSync:f});return}}let v=Oi(l,i);if(!v.route.action&&!v.route.lazy){je(t,n,ui(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}k.set(t,g);let y=ae,b=Kr(a,o,_,i,l,v,r,u),x=await De(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){k.get(t)===g&&k.delete(t);return}if(le.has(t)){if(bi(S)||yi(S)){Ae(t,R(void 0));return}}else{if(bi(S))if(k.delete(t),A>y){Ae(t,R(void 0));return}else return oe.add(t),Ae(t,Mi(m)),Ee(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(yi(S)){je(t,n,S.error);return}}let T=C.navigation.location||C.location,E=ei(e.history,T,g.signal),D=s.activeRoutes,O=C.navigation.state===`idle`?C.matches:Xt(D,C.navigation.location,c,!1,s.branches);F(O,`Didn't find any matches after fetcher action`);let te=++ae;j.set(t,te);let ne=Mi(m,S.data);C.fetchers.set(t,ne);let{dsMatches:ce,revalidatingFetchers:M}=Er(E,u,a,o,e.history,C,O,m,T,r,!1,re,ie,le,se,oe,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h);M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),r=Mi(void 0,n?n.data:void 0);C.fetchers.set(t,r),Ie(t),e.controller&&k.set(t,e.controller)}),me({fetchers:new Map(C.fetchers)});let N=()=>M.forEach(e=>Ie(e.key));g.signal.addEventListener(`abort`,N);let{loaderResults:ue,fetcherResults:de}=await Oe(ce,M,E,T,u);if(g.signal.aborted)return;if(g.signal.removeEventListener(`abort`,N),j.delete(t),k.delete(t),M.forEach(e=>k.delete(e.key)),C.fetchers.has(t)){let e=R(S.data);C.fetchers.set(t,e)}let fe=di(ue);if(fe)return Ee(E,fe.result,!1,{preventScrollReset:p});if(fe=di(de),fe)return oe.add(fe.key),Ee(E,fe.result,!1,{preventScrollReset:p});let{loaderData:pe,errors:ge}=ai(C,O,ue,void 0,M,de);ze(te),C.navigation.state===`loading`&&te>A?(F(w,`Expected pending action`),ee&&ee.abort(),he(C.navigation.location,{matches:O,loaderData:pe,errors:ge,fetchers:new Map(C.fetchers)})):(me({errors:ge,loaderData:oi(C.loaderData,pe,O,ge),fetchers:new Map(C.fetchers)}),re=!1)}async function Te(t,n,i,s,c,l,u,d,f){let p=C.fetchers.get(t);Ae(t,Mi(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=ei(e.history,i,m.signal);if(l){let e=await Xe(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){je(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{je(t,n,ui(404,{pathname:i}),{flushSync:u});return}}let g=Oi(s,i);k.set(t,m);let _=ae,v=await De(h,i,Kr(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(k.get(t)===m&&k.delete(t),!h.signal.aborted){if(le.has(t)){Ae(t,R(void 0));return}if(bi(y))if(A>_){Ae(t,R(void 0));return}else{oe.add(t),await Ee(h,y,!1,{preventScrollReset:d});return}if(yi(y)){je(t,n,y.error);return}Ae(t,R(y.data))}}async function Ee(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(T?.resolve(),T=null),i.response.headers.has(`X-Remix-Revalidate`)&&(re=!0);let d=i.response.headers.get(`Location`);F(d,`Expected a Location header on the redirect Response`),d=$r(d,new URL(r.url),c,e.history);let f=Pt(C.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(bn(d)){let n=Rt(d,!0);e=n.origin!==t.location.origin||_n(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}ee=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=C.navigation;!o&&!s&&m&&h&&g&&(o=ki(C.navigation));let _=o||s;or.has(i.response.status)&&_&&Ei(_.formMethod)?await ve(p,f,{submission:{..._,formAction:d},preventScrollReset:l||E,enableViewTransition:a?D:void 0}):await ve(p,f,{overrideNavigation:Ai(f,o),fetcherSubmission:s,preventScrollReset:l||E,enableViewTransition:a?D:void 0})}async function De(e,t,n,r,i){let a,o={};try{a=await qr(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Ei(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!C.loaderData.hasOwnProperty(e.route.id)&&(!C.errors||!C.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(vi(r)){let i=r.result;o[t]={type:`redirect`,response:Zr(i,e,t,n,c)}}else o[t]=await Xr(r);return o}async function Oe(e,t,n,r,i){let a=De(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await De(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:ui(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function ke(){re=!0,se.forEach((e,t)=>{k.has(t)&&ie.add(t),Ie(t)})}function Ae(e,t,n={}){C.fetchers.set(e,t),me({fetchers:new Map(C.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function je(e,t,n,r={}){let i=ci(C.matches,t);Pe(e),me({errors:{[i.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Me(e){return ce.set(e,(ce.get(e)||0)+1),le.has(e)&&le.delete(e),C.fetchers.get(e)||cr}function Ne(e,t){Ie(e,t?.reason),Ae(e,R(null))}function Pe(e){let t=C.fetchers.get(e);k.has(e)&&!(t&&t.state===`loading`&&j.has(e))&&Ie(e),se.delete(e),j.delete(e),oe.delete(e),le.delete(e),ie.delete(e),C.fetchers.delete(e)}function Fe(e){let t=(ce.get(e)||0)-1;t<=0?(ce.delete(e),le.add(e)):ce.set(e,t),me({fetchers:new Map(C.fetchers)})}function Ie(e,t){let n=k.get(e);n&&(n.abort(t),k.delete(e))}function Le(e){for(let t of e){let e=R(Me(t).data);C.fetchers.set(t,e)}}function Re(){let e=[],t=!1;for(let n of oe){let r=C.fetchers.get(n);F(r,`Expected fetcher: ${n}`),r.state===`loading`&&(oe.delete(n),e.push(n),t=!0)}return Le(e),t}function ze(e){let t=[];for(let[n,r]of j)if(r<e){let e=C.fetchers.get(n);F(e,`Expected fetcher: ${n}`),e.state===`loading`&&(Ie(n),j.delete(n),t.push(n))}return Le(t),t.length>0}function Be(e,t){let n=C.blockers.get(e)||lr;return M.get(e)!==t&&M.set(e,t),n}function Ve(e){C.blockers.delete(e),M.delete(e)}function He(e,t){let n=C.blockers.get(e)||lr;F(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(C.blockers);r.set(e,t),me({blockers:r})}function Ue({currentLocation:e,nextLocation:t,historyAction:n}){if(M.size===0)return;M.size>1&&jt(!1,`A router only supports one blocker at a time`);let r=Array.from(M.entries()),[i,a]=r[r.length-1],o=C.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function We(e){let t=ui(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=li(n);return{notFoundMatches:r,route:i,error:t}}function Ge(e,t,n){if(p=e,h=t,m=n||null,!g&&C.navigation===sr){g=!0;let e=Je(C.location,C.matches);e!=null&&me({restoreScrollPosition:e})}return()=>{p=null,h=null,m=null}}function Ke(e,t){return m&&m(e,t.map(e=>Zt(e,C.loaderData)))||e.key}function qe(e,t){if(p&&h){let n=Ke(e,t);p[n]=h()}}function Je(e,t){if(p){let n=Ke(e,t),r=p[n];if(typeof r==`number`)return r}return null}function Ye(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:Xt(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:Xt(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Xe(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||Mr(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=Xt(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=Xt(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&Ze(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=Xt(s.activeRoutes,n,c,!0,u),!f||Ze(l,f))return{type:`success`,matches:null};l=f}}function Ze(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Qe(e){o={},s.setHmrRoutes(qt(e,a,void 0,o))}function $e(e,t,n=!1){Mr(e,t,s,o,a,n),s.hasHMRRoutes||me({})}return S={get basename(){return c},get future(){return u},get state(){return C},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:de,subscribe:pe,enableScrollRestoration:Ge,navigate:ge,fetch:Ce,revalidate:_e,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Me,resetFetcher:Ne,deleteFetcher:Fe,dispose:fe,getBlocker:Be,deleteBlocker:Ve,patchRoutes:$e,_internalFetchControllers:k,_internalSetRoutes:Qe,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){me(e)}},e.instrumentations&&(S=Gn(S,e.instrumentations.map(e=>e.router).filter(Boolean))),S}function yr(e,t){F(e.length>0,`You must provide a non-empty routes array to createStaticHandler`);let n={},r=(t?t.basename:null)||`/`,i=t?.mapRouteProperties||ur,a=i;if({...t?.future},t?.instrumentations){let e=t.instrumentations;a=t=>({...i(t),...Wn(e.map(e=>e.route).filter(Boolean),t)})}let o=qt(e,a,void 0,n),s=Qt(o);async function c(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:c,skipRevalidation:l,dataStrategy:d,generateMiddlewareResponse:f,normalizePath:p}={}){let m=p||Cr,h=e.method,g=Pt(``,m(e),null,`default`),_=Xt(o,g,r,!1,s);if(t??=new Vt,!Ti(h)&&h!==`HEAD`){let e=ui(405,{method:h}),{matches:t,route:n}=li(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}else if(!_){let e=ui(404,{pathname:g.pathname}),{matches:t,route:n}=li(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}if(f){F(t instanceof Vt,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{await zr(_,n,a);let s,p=await I({request:e,url:ti(e,g),pattern:Bn(_),matches:_,params:_[0].params,context:t},async()=>await f(async(e,n={})=>{let a=await u(e,g,_,t,d||null,c===!0,null,`filterMatchesToLoad`in n?n.filterMatchesToLoad??null:i??null,l===!0);return Si(a)?a:(s={location:g,basename:r,...a},s)}),async(e,t)=>{if(wi(e))return e;if(Si(e))try{e=new Rn(e.status,e.statusText,await Yr(e))}catch(t){e=t}if(xi(e)&&(e=hi(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let n=br(o,s,e,c?t:ci(_,t).route.id);return f(()=>Promise.resolve(n))}else{let n={matches:_,location:g,basename:r,loaderData:{},actionData:null,errors:{[c?t:ci(_,_.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id]:e},statusCode:zn(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return f(()=>Promise.resolve(n))}});return F(Si(p),`Expected a response in query()`),p}catch(e){if(Si(e))return e;throw e}}let v=await u(e,g,_,t,d||null,c===!0,null,i||null,l===!0);return Si(v)?v:{location:g,basename:r,...v}}async function l(e,{routeId:t,requestContext:i,dataStrategy:c,generateMiddlewareResponse:l,normalizePath:d}={}){let f=d||Cr,p=e.method,m=Pt(``,f(e),null,`default`),h=Xt(o,m,r,!1,s);if(i??=new Vt,!Ti(p)&&p!==`HEAD`&&p!==`OPTIONS`)throw ui(405,{method:p});if(!h)throw ui(404,{pathname:m.pathname});let g=t?h.find(e=>e.route.id===t):Oi(h,m);if(t&&!g)throw ui(403,{pathname:m.pathname,routeId:t});if(!g)throw ui(404,{pathname:m.pathname});if(l)return F(i instanceof Vt,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await zr(h,n,a),await I({request:e,url:ti(e,m),pattern:Bn(h),matches:h,params:h[0].params,context:i},async()=>await l(async e=>{let t=_(await u(e,m,h,i,c||null,!1,g,null,!1));return Si(t)?t:typeof t==`string`?new Response(t):Response.json(t)}),e=>{if(xi(e))return Promise.resolve(mi(e));if(Si(e))return Promise.resolve(e);throw e});return _(await u(e,m,h,i,c||null,!1,g,null,!1));function _(e){if(Si(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(t!==void 0)throw t;if(e.actionData)return Object.values(e.actionData)[0];if(e.loaderData)return Object.values(e.loaderData)[0]}}async function u(e,t,n,r,i,a,o,s,c){F(e.signal,`query()/queryRoute() requests must contain an AbortController signal`);try{if(Ei(e.method))return await d(e,t,n,o||Oi(n,t),r,i,a,o!=null,s,c);let l=await f(e,t,n,r,i,a,o,s);return Si(l)?l:{...l,actionData:null,actionHeaders:{}}}catch(e){if(_i(e)&&Si(e.result)){if(e.type===`error`)throw e.result;return e.result}if(wi(e))return e;throw e}}async function d(e,t,r,i,o,s,c,l,u,d){let m;if(!i.route.action&&!i.route.lazy){let t=ui(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(l)throw t;m={type:`error`,error:t}}else m=(await p(e,t,Kr(a,n,e,t,r,i,[],o),l,o,s))[i.route.id],e.signal.aborted&&xr(e,l);if(bi(m))throw new Response(null,{status:m.response.status,headers:{Location:m.response.headers.get(`Location`)}});if(l){if(yi(m))throw m.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:m.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(d)if(yi(m)){let e=c?i:ci(r,i.route.id);return{statusCode:zn(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}},matches:r,loaderData:{},errors:{[e.route.id]:m.error},loaderHeaders:{}}}else return{actionData:{[i.route.id]:m.data},actionHeaders:m.headers?{[i.route.id]:m.headers}:{},matches:r,loaderData:{},errors:null,statusCode:m.statusCode||200,loaderHeaders:{}};let h=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});return yi(m)?{...await f(h,t,r,o,s,c,null,u,[(c?i:ci(r,i.route.id)).route.id,m]),statusCode:zn(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}}}:{...await f(h,t,r,o,s,c,null,u),actionData:{[i.route.id]:m.data},...m.statusCode?{statusCode:m.statusCode}:{},actionHeaders:m.headers?{[i.route.id]:m.headers}:{}}}async function f(e,t,r,i,o,s,c,l,u){let d=c!=null;if(d&&!c?.route.loader&&!c?.route.lazy)throw ui(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:c?.route.id});let f;if(c)f=Kr(a,n,e,t,r,c,[],i);else{let o=u&&yi(u[1])?r.findIndex(e=>e.route.id===u[0])-1:void 0,s=Bn(r);f=r.map((r,c)=>o!=null&&c>o?Gr(a,n,e,t,s,r,[],i,!1):Gr(a,n,e,t,s,r,[],i,(r.route.loader||r.route.lazy)!=null&&(!l||l(r))))}if(!o&&!f.some(e=>e.shouldLoad))return{matches:r,loaderData:{},errors:u&&yi(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{}};let m=await p(e,t,f,d,i,o);return e.signal.aborted&&xr(e,d),{...ii(r,m,u,!0,s),matches:r}}async function p(e,t,n,i,a,o){let s=await qr(o||Br,e,t,n,null,a,!0),c={};return await Promise.all(n.map(async t=>{if(!(t.route.id in s))return;let a=s[t.route.id];if(vi(a)){let i=a.result;throw Zr(i,e,t.route.id,n,r)}if(i){if(Si(a.result))throw a;if(xi(a.result))throw mi(a.result)}c[t.route.id]=await Xr(a)})),c}return{dataRoutes:o,_internalRouteBranches:s,query:c,queryRoute:l}}function br(e,t,n,r){let i=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:zn(n)?n.status:500,errors:{[i]:n}}}function xr(e,t){throw e.signal.reason===void 0?Error(`${t?`queryRoute`:`query`}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`):e.signal.reason}function Sr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Cr(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function wr(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=En(r||`.`,Tn(o),_n(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Di(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.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 n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=vn({basename:n,pathname:c.pathname})),Ft(c)}function Tr(e,t,n){if(!n||!Sr(n))return{path:t};if(n.formMethod&&!Ti(n.formMethod))return{path:t,error:ui(405,{method:n.formMethod})};let r=()=>({path:t,error:ui(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=fi(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Ei(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
|
|
14
|
+
`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Ei(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}F(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ni(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ni(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=ri(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=ri(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Ei(c.formMethod))return{path:t,submission:c};let l=It(t);return e&&l.search&&Di(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:Ft(l),submission:c}}function Er(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?yi(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&yi(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,ee=E&&E>=400,D={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},O=Bn(o),te=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Dr(s))f=!1;else if(u){let{shouldLoad:e}=Or(s,a.loaderData,a.errors);f=e}else kr(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Gr(n,r,e,c,O,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:ee?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?Ar(a.matches[o],i)&&(p=!0):p=!0;let m={...D,defaultShouldRevalidate:p};return Gr(n,r,e,c,O,i,l,t,jr(i,m),m,x)}),ne=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=Xt(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;ne.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Oi(b,e.path),C=new AbortController,w=ei(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Kr(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Kr(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:ee?!1:d;let a={...D,defaultShouldRevalidate:i};jr(S,a)&&(T=Kr(n,r,w,e.path,b,S,l,t,a))}T&&ne.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:te,revalidatingFetchers:ne}}function Dr(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Or(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Dr(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function kr(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Ar(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function jr(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Mr(e,t,n,r,i,a){let o;if(e){let t=r[e];F(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Nr(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=qt(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=qt([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Nr(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Nr(e,t)))??!1:!1}var Pr=new WeakMap,Fr=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(F(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Pr.get(i);o||(o={},Pr.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=Ut(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)jt(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)jt(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Ir=new WeakMap;function Lr(e,t,n,r,i){let a=n[e.id];if(F(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Ir.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{F(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Gt(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?jt(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?jt(!o,`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.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ir.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Fr({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}function Rr(e){return e!==void 0}function zr(e,t,n){let r=e.map(({route:e})=>{if(!(typeof e.lazy!=`object`||!e.lazy.middleware))return Fr({key:`middleware`,route:e,manifest:t,mapRouteProperties:n})}).filter(Rr);return r.length>0?Promise.all(r):void 0}async function Br(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Vr(e){return e.matches.some(e=>e.route.middleware)?Hr(e,()=>Br(e)):Br(e)}function I(e,t,n){return Ur(e,t,r,Si,n);function r(e){return xi(e)?mi(e):e}}function Hr(e,t){return Ur(e,t,e=>{if(wi(e))throw e;return e},gi,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=ci(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Ur(e,t,n,r,i){let{matches:a,...o}=e;return await Wr(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Wr(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Wr(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function L(e,t,n,r,i){let a=Fr({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Lr(r.route,Ei(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Gr(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=L(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?jr(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?jr(a,{...l,defaultShouldRevalidate:e}):jr(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Ei(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Ei(n.method)||!p)?Jr({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Kr(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Gr(e,t,n,r,Bn(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:L(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function qr(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:ti(t,n),pattern:Bn(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Hr(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Jr({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Ei(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ti(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw ui(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw ui(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Yr(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Xr(e){let{result:t,type:n}=e;if(Si(t)){let e;try{e=await Yr(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Rn(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?xi(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:hi(t),statusCode:zn(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:zn(t)?t.status:void 0}:xi(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Zr(e,t,n,r,i){let a=e.headers.get(`Location`);if(F(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!bn(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=wr(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Qr=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function $r(e,t,n,r){if(bn(e)){let r=e,i=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(Qr.includes(i.protocol))throw Error(`Invalid redirect location`);let a=_n(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Dn(i.pathname)+i.search+i.hash}try{let t=r.createURL(e);if(Qr.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function ei(e,t,n,r){let i=e.createURL(fi(t)).toString(),a={signal:n};if(r&&Ei(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=ni(r.formData):a.body=r.formData}return new Request(i,a)}function ti(e,t){let n=new URL(e.url),r=typeof t==`string`?It(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function ni(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function ri(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ii(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&yi(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(F(!bi(f),`Cannot handle redirect results in processLoaderData`),yi(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=ci(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=fr),c||(c=!0,s=zn(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function ai(e,t,n,r,i,a){let{loaderData:o,errors:s}=ii(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let o=a[n];if(F(o,`Did not find corresponding fetcher result`),yi(o)){let t=ci(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:o.error}),e.fetchers.delete(n)}else if(bi(o))F(!1,`Unhandled fetcher revalidation redirect`);else{let t=R(o.data);e.fetchers.set(n,t)}}),{loaderData:o,errors:s}}function oi(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==fr).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function si(e){return e?yi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ci(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function li(e){let t=e.length===1?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 ui(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Rn(e||500,o,Error(s),!0)}function di(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(bi(r))return{key:n,result:r}}}function fi(e){return Ft({...typeof e==`string`?It(e):e,hash:``})}function pi(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function mi(e){return Response.json(e.data,e.init??void 0)}function hi(e){return new Rn(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function gi(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&_i(t))}function _i(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function vi(e){return Si(e.result)&&ar.has(e.result.status)}function yi(e){return e.type===`error`}function bi(e){return(e&&e.type)===`redirect`}function xi(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Si(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Ci(e){return ar.has(e)}function wi(e){return Si(e)&&Ci(e.status)&&e.headers.has(`Location`)}function Ti(e){return ir.has(e.toUpperCase())}function Ei(e){return nr.has(e.toUpperCase())}function Di(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Oi(e,t){let n=typeof t==`string`?It(t).search:t.search;if(e[e.length-1].route.index&&Di(n||``))return e[e.length-1];let r=wn(e);return r[r.length-1]}function ki(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ai(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 ji(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Mi(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 Ni(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function R(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 Pi(e,t){try{let n=e.sessionStorage.getItem(dr);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function z(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(dr,JSON.stringify(n))}catch(e){jt(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Fi(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ii=O.createContext(null);Ii.displayName=`DataRouter`;var Li=O.createContext(null);Li.displayName=`DataRouterState`;var Ri=O.createContext(!1);function zi(){return O.useContext(Ri)}var Bi=O.createContext({isTransitioning:!1});Bi.displayName=`ViewTransition`;var Vi=O.createContext(new Map);Vi.displayName=`Fetchers`;var Hi=O.createContext(null);Hi.displayName=`Await`;var Ui=e=>O.createElement(Hi.Provider,e),Wi=O.createContext(null);Wi.displayName=`Navigation`;var Gi=O.createContext(null);Gi.displayName=`Location`;var Ki=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ki.displayName=`Route`;var qi=O.createContext(null);qi.displayName=`RouteError`;var Ji=`REACT_ROUTER_ERROR`,Yi=`REDIRECT`,Xi=`ROUTE_ERROR_RESPONSE`;function Zi(e){if(e.startsWith(`${Ji}:${Yi}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Qi(e){if(e.startsWith(`${Ji}:${Xi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Rn(t.status,t.statusText,t.data)}catch{}}function $i(e,{relative:t}={}){F(ea(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=O.useContext(Wi),{hash:i,pathname:a,search:o}=fa(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:On([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ea(){return O.useContext(Gi)!=null}function ta(){return F(ea(),`useLocation() may be used only in the context of a <Router> component.`),O.useContext(Gi).location}function na(){return O.useContext(Gi).navigationType}function ra(e){F(ea(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=ta();return O.useMemo(()=>mn(e,gn(t)),[t,e])}var ia=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function aa(e){O.useContext(Wi).static||O.useLayoutEffect(e)}function oa(){let{isDataRoute:e}=O.useContext(Ki);return e?Ra():sa()}function sa(){F(ea(),`useNavigate() may be used only in the context of a <Router> component.`);let e=O.useContext(Ii),{basename:t,navigator:n}=O.useContext(Wi),{matches:r}=O.useContext(Ki),{pathname:i}=ta(),a=JSON.stringify(Tn(r)),o=O.useRef(!1);return aa(()=>{o.current=!0}),O.useCallback((r,s={})=>{if(jt(o.current,ia),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=En(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:On([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var ca=O.createContext(null);function la(){return O.useContext(ca)}function ua(e){let t=O.useContext(Ki).outlet;return O.useMemo(()=>t&&O.createElement(ca.Provider,{value:e},t),[t,e])}function da(){let{matches:e}=O.useContext(Ki);return e[e.length-1]?.params??{}}function fa(e,{relative:t}={}){let{matches:n}=O.useContext(Ki),{pathname:r}=ta(),i=JSON.stringify(Tn(n));return O.useMemo(()=>En(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function pa(e,t){return ma(e,t)}function ma(e,t,n){F(ea(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=O.useContext(Wi),{matches:i}=O.useContext(Ki),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ba(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
15
|
+
|
|
16
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ta(),d;if(t){let e=typeof t==`string`?It(t):t;F(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Yt(e,{pathname:p});jt(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),jt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=xa(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:On([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:On([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?O.createElement(Gi.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function ha(){let e=Pa(),t=zn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=O.createElement(O.Fragment,null,O.createElement(`p`,null,`💿 Hey developer 👋`),O.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,O.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,O.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),O.createElement(O.Fragment,null,O.createElement(`h2`,null,`Unexpected Application Error!`),O.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?O.createElement(`pre`,{style:i},n):null,o)}var ga=O.createElement(ha,null),_a=class extends O.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||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Qi(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:O.createElement(Ki.Provider,{value:this.props.routeContext},O.createElement(qi.Provider,{value:e,children:this.props.component}));return this.context?O.createElement(ya,{error:e},t):t}};_a.contextType=Ri;var va=new WeakMap;function ya({children:e,error:t}){let{basename:n}=O.useContext(Wi);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Zi(t.digest);if(e){let r=va.get(t);if(r)throw r;let i=Hn(e.location,n);if(Vn&&!va.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw va.set(t,n),n}return O.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ba({routeContext:e,match:t,children:n}){let r=O.useContext(Ii);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(Ki.Provider,{value:e},n)}function xa(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);F(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Bn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||ga,o&&(s<0&&c===0?(Ba(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?O.createElement(n.route.Component,null):n.route.element?n.route.element:e,O.createElement(ba,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?O.createElement(_a,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Sa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ca(e){let t=O.useContext(Ii);return F(t,Sa(e)),t}function wa(e){let t=O.useContext(Li);return F(t,Sa(e)),t}function Ta(e){let t=O.useContext(Ki);return F(t,Sa(e)),t}function Ea(e){let t=Ta(e),n=t.matches[t.matches.length-1];return F(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Da(){return Ea(`useRouteId`)}function Oa(){return wa(`useNavigation`).navigation}function ka(){let e=Ca(`useRevalidator`),t=wa(`useRevalidator`),n=O.useCallback(async()=>{await e.router.revalidate()},[e.router]);return O.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function Aa(){let{matches:e,loaderData:t}=wa(`useMatches`);return O.useMemo(()=>e.map(e=>Zt(e,t)),[e,t])}function ja(){let e=wa(`useLoaderData`),t=Ea(`useLoaderData`);return e.loaderData[t]}function Ma(e){return wa(`useRouteLoaderData`).loaderData[e]}function Na(){let e=wa(`useActionData`),t=Ea(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function Pa(){let e=O.useContext(qi),t=wa(`useRouteError`),n=Ea(`useRouteError`);return e===void 0?t.errors?.[n]:e}function B(){return O.useContext(Hi)?._data}function Fa(){return O.useContext(Hi)?._error}var Ia=0;function La(e){let{router:t,basename:n}=Ca(`useBlocker`),r=wa(`useBlocker`),[i,a]=O.useState(``),o=O.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:_n(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:_n(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return O.useEffect(()=>{let e=String(++Ia);return a(e),()=>t.deleteBlocker(e)},[t]),O.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):lr}function Ra(){let{router:e}=Ca(`useNavigate`),t=Ea(`useNavigate`),n=O.useRef(!1);return aa(()=>{n.current=!0}),O.useCallback(async(r,i={})=>{jt(n.current,ia),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var za={};function Ba(e,t,n){!t&&!za[e]&&(za[e]=!0,jt(!1,n))}function Va(...e){let t=Ea(`useRoute`),n=e[0]??t,r=wa(`useRoute`),i=r.matches.find(({route:e})=>e.id===n);if(i!==void 0)return{handle:i.route.handle,loaderData:r.loaderData[n],actionData:r.actionData?.[n]}}var Ha={};function Ua(e,t){!e&&!Ha[t]&&(Ha[t]=!0,console.warn(t))}var Wa=O.useOptimistic,Ga=()=>void 0;function Ka(e){return Wa?Wa(e):[e,Ga]}function qa(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&jt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:O.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&jt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:O.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&jt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Ja=[`HydrateFallback`,`hydrateFallbackElement`];function Ya(e,t){return vr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Ot({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Ja,mapRouteProperties:qa,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var Xa=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Za({router:e,flushSync:t,onError:n,useTransitions:r}){r=zi()||r;let[i,a]=O.useState(e.state),[o,s]=Ka(i),[c,l]=O.useState(),[u,d]=O.useState({isTransitioning:!1}),[f,p]=O.useState(),[m,h]=O.useState(),[g,_]=O.useState(),v=O.useRef(new Map),y=O.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Bn(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Ua(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Ua(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):O.startTransition(()=>{r===!0&&s(e=>Qa(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);O.useLayoutEffect(()=>e.subscribe(y),[e,y]);let b=o.initialized;O.useLayoutEffect(()=>{!b&&e.state.initialized&&y(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[b,y,e.state]),O.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Xa)},[u]),O.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):O.startTransition(()=>{r===!0&&s(e=>Qa(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),O.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),O.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let x=O.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=O.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return O.createElement(O.Fragment,null,O.createElement(Ii.Provider,{value:C},O.createElement(Li.Provider,{value:o},O.createElement(Vi.Provider,{value:v.current},O.createElement(Bi.Provider,{value:u},O.createElement(ao,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},O.createElement($a,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function Qa(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var $a=O.memo(eo);function eo({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return ma(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function to({basename:e,children:t,initialEntries:n,initialIndex:r,useTransitions:i}){let a=O.useRef();a.current??=Ot({initialEntries:n,initialIndex:r,v5Compat:!0});let o=a.current,[s,c]=O.useState({action:o.action,location:o.location}),l=O.useCallback(e=>{i===!1?c(e):O.startTransition(()=>c(e))},[i]);return O.useLayoutEffect(()=>o.listen(l),[o,l]),O.createElement(ao,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:i})}function no({to:e,replace:t,state:n,relative:r}){F(ea(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=O.useContext(Wi);jt(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=O.useContext(Ki),{pathname:o}=ta(),s=oa(),c=En(e,Tn(a),o,r===`path`),l=JSON.stringify(c);return O.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function ro(e){return ua(e.context)}function io(e){F(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function ao({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){F(!ea(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=O.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=It(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=O.useMemo(()=>{let e=_n(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return jt(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:O.createElement(Wi.Provider,{value:c},O.createElement(Gi.Provider,{children:t,value:h}))}function oo({children:e,location:t}){return pa(uo(e),t)}function so({children:e,errorElement:t,resolve:n}){let r=O.useContext(Ii),i=O.useContext(Li),a=O.useCallback((e,t)=>{r&&r.onError&&i&&r.onError(e,{location:i.location,params:i.matches[0]?.params||{},pattern:Bn(i.matches),errorInfo:t})},[r,i]);return O.createElement(co,{resolve:n,errorElement:t,onError:a},O.createElement(lo,null,e))}var co=class extends O.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`<Await> caught the following error during render`,e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=0;if(!(n instanceof Promise))i=1,r=Promise.resolve(),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_data`,{get:()=>n});else if(this.state.error){i=2;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_error`,{get:()=>e})}else n._tracked?(r=n,i=`_error`in r?2:+(`_data`in r)):(i=0,Object.defineProperty(n,`_tracked`,{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,`_data`,{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(n,`_error`,{get:()=>e})}));if(i===2&&!t)throw r._error;if(i===2)return O.createElement(Hi.Provider,{value:r,children:t});if(i===1)return O.createElement(Hi.Provider,{value:r,children:e});throw r}};function lo({children:e}){let t=B(),n=typeof e==`function`?e(t):e;return O.createElement(O.Fragment,null,n)}function uo(e,t=[]){let n=[];return O.Children.forEach(e,(e,r)=>{if(!O.isValidElement(e))return;let i=[...t,r];if(e.type===O.Fragment){n.push.apply(n,uo(e.props.children,i));return}F(e.type===io,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),F(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=uo(e.props.children,i)),n.push(a)}),n}var fo=uo;function V(e){return xa(e)}function po(){return{params:da(),loaderData:ja(),actionData:Na(),matches:Aa()}}function mo({children:e}){let t=po();return O.cloneElement(e,t)}function ho(e){return function(){let t=po();return O.createElement(e,t)}}function go(){return{params:da(),loaderData:ja(),actionData:Na()}}function _o({children:e}){let t=go();return O.cloneElement(e,t)}function vo(e){return function(){let t=go();return O.createElement(e,t)}}function yo(){return{params:da(),loaderData:ja(),actionData:Na(),error:Pa()}}function bo({children:e}){let t=yo();return O.cloneElement(e,t)}function xo(e){return function(){let t=yo();return O.createElement(e,t)}}var So=`get`,Co=`application/x-www-form-urlencoded`;function wo(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function To(e){return wo(e)&&e.tagName.toLowerCase()===`button`}function Eo(e){return wo(e)&&e.tagName.toLowerCase()===`form`}function Do(e){return wo(e)&&e.tagName.toLowerCase()===`input`}function Oo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ko(e,t){return e.button===0&&(!t||t===`_self`)&&!Oo(e)}function Ao(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function jo(e,t){let n=Ao(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Mo=null;function No(){if(Mo===null)try{new FormData(document.createElement(`form`),0),Mo=!1}catch{Mo=!0}return Mo}var Po=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Fo(e){return e!=null&&!Po.has(e)?(jt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):e}function Io(e,t){let n,r,i,a,o;if(Eo(e)){let o=e.getAttribute(`action`);r=o?_n(o,t):null,n=e.getAttribute(`method`)||So,i=Fo(e.getAttribute(`enctype`))||Co,a=new FormData(e)}else if(To(e)||Do(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?_n(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||So,i=Fo(e.getAttribute(`formenctype`))||Fo(o.getAttribute(`enctype`))||Co,a=new FormData(o,e),!No()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(wo(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=So,r=null,i=Co,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Lo=-1,Ro=-2,zo=-3,Bo=-4,Vo=-5,Ho=-6,Uo=-7,Wo=`B`,Go=`D`,Ko=`E`,qo=`M`,Jo=`N`,Yo=`P`,Xo=`R`,Zo=`S`,Qo=`Y`,$o=`U`,es=`Z`,ts=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],ns=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function H(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
|
|
17
|
+
`);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}var rs=1,is=()=>Date.now(),as=()=>new Promise(e=>setTimeout(e,0));async function os(e){let{indices:t}=this,n=t.get(e);if(n)return[n];if(e===void 0)return Uo;if(e===null)return Vo;if(Number.isNaN(e))return Ro;if(e===1/0)return Ho;if(e===-1/0)return zo;if(e===0&&1/e<0)return Bo;let r=this.index++;t.set(e,r);let i=[[e,r]];return await ss.call(this,i),r}async function ss(e){let{deferred:t,indices:n,plugins:r,postPlugins:i}=this,a=this.stringified,o=is(),s=t=>{let r=n.get(t);if(r)return[r];if(t===void 0)return Uo;if(t===null)return Vo;if(Number.isNaN(t))return Ro;if(t===1/0)return Ho;if(t===-1/0)return zo;if(t===0&&1/t<0)return Bo;let i=this.index++;return n.set(t,i),e.push([t,i]),i},c=0;for(;e.length>0;){let n=is();++c%6e3==0&&n-o>=rs&&(await as(),o=is());let[l,u]=e.pop(),d=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(`,`),f=null;switch(typeof l){case`boolean`:case`number`:case`string`:a[u]=JSON.stringify(l);break;case`bigint`:a[u]=`["${Wo}","${l}"]`;break;case`symbol`:{let e=Symbol.keyFor(l);e?a[u]=`["${Qo}",${JSON.stringify(e)}]`:f=Error(`Cannot encode symbol unless created with Symbol.for()`);break}case`object`:{if(!l){a[u]=`${Vo}`;break}let e=Array.isArray(l),n=!1;if(!e&&r)for(let e of r){let t=e(l);if(Array.isArray(t)){n=!0;let[e,...r]=t;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!n){let n=e?`[`:`{`;if(e){for(let e=0;e<l.length;e++)n+=(e?`,`:``)+(e in l?s(l[e]):Lo);a[u]=`${n}]`}else if(l instanceof Date){let e=l.getTime();a[u]=`["${Go}",${Number.isNaN(e)?JSON.stringify(`invalid`):e}]`}else l instanceof URL?a[u]=`["${$o}",${JSON.stringify(l.href)}]`:l instanceof RegExp?a[u]=`["${Xo}",${JSON.stringify(l.source)},${JSON.stringify(l.flags)}]`:l instanceof Set?l.size>0?a[u]=`["${Zo}",${[...l].map(e=>s(e)).join(`,`)}]`:a[u]=`["${Zo}"]`:l instanceof Map?l.size>0?a[u]=`["${qo}",${[...l].flatMap(([e,t])=>[s(e),s(t)]).join(`,`)}]`:a[u]=`["${qo}"]`:l instanceof Promise?(a[u]=`["${Yo}",${u}]`,t[u]=l):l instanceof Error?(a[u]=`["${Ko}",${JSON.stringify(l.message)}`,l.name!==`Error`&&(a[u]+=`,${JSON.stringify(l.name)}`),a[u]+=`]`):Object.getPrototypeOf(l)===null?a[u]=`["${Jo}",{${d(l)}}]`:ls(l)?a[u]=`{${d(l)}}`:f=Error(`Cannot encode object with prototype`)}break}default:{let e=Array.isArray(l),t=!1;if(!e&&r)for(let e of r){let n=e(l);if(Array.isArray(n)){t=!0;let[e,...r]=n;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}t||(f=Error(`Cannot encode function or unexpected type`))}}if(f){let e=!1;if(i)for(let t of i){let n=t(l);if(Array.isArray(n)){e=!0;let[t,...r]=n;a[u]=`[${JSON.stringify(t)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!e)throw f}}}var cs=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function ls(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===cs}var us=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function ds(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return fs.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,fs.call(this,r)}function fs(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case Uo:a(void 0);continue;case Vo:a(null);continue;case Ro:a(NaN);continue;case Ho:a(1/0);continue;case zo:a(-1/0);continue;case Bo:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c))if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case Go:a(t[e]=new Date(l));continue;case $o:a(t[e]=new URL(l));continue;case Wo:a(t[e]=BigInt(l));continue;case Xo:a(t[e]=new RegExp(l,u));continue;case Qo:a(t[e]=Symbol.for(l));continue;case Zo:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case qo:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case Jo:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case Yo:if(t[l])a(t[e]=t[l]);else{let n=new ns;r[l]=n,a(t[e]=n.promise)}continue;case Ko:let[,p,m]=c,h=m&&us&&ts.includes(m)&&m in us&&typeof us[m]==`function`?new us[m](p):Error(p);t[e]=h,a(h);continue;case es:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==Lo&&o.push([t,t=>{n[e]=t}])}a(n);continue}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function ps(e,t){let{plugins:n}=t??{},r=new ns,i=e.pipeThrough(H()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await ms.call(a,i),s=r.promise;return o.done?r.resolve():s=hs.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function ms(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:ds.call(this,n)}}async function hs(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case Yo:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=ds.call(this,a);r.resolve(o);break}case Ko:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=ds.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}function gs(e,t){let{onComplete:n,plugins:r,postPlugins:i,signal:a}=t??{},o={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:i,signal:a},s=new TextEncoder,c=0;return new ReadableStream({async start(t){let r=await os.call(o,e);if(Array.isArray(r))throw Error(`This should never happen`);r<0?t.enqueue(s.encode(`${r}
|
|
18
|
+
`)):(t.enqueue(s.encode(`[${o.stringified.join(`,`)}]
|
|
19
|
+
`)),c=o.stringified.length-1);let i=new WeakSet,l=Promise.resolve();if(Object.keys(o.deferred).length){let e,n=new Promise((t,n)=>{if(e=t,a){let e=()=>n(a.reason||Error(`Signal was aborted.`));a.aborted?e():a.addEventListener(`abort`,t=>{e()})}});for(;Object.keys(o.deferred).length>0;){for(let[e,r]of Object.entries(o.deferred))i.has(r)||i.add(o.deferred[Number(e)]=Promise.race([n,r]).then(n=>(l=l.then(async()=>{let r=await os.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Yo}${e}:[["${es}",${r[0]}]]
|
|
20
|
+
`)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Yo}${e}:${r}
|
|
21
|
+
`));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Yo}${e}:[${n}]
|
|
22
|
+
`)),c=o.stringified.length-1}}),l),n=>(l=l.then(async()=>{(!n||typeof n!=`object`||!(n instanceof Error))&&(n=Error(`An unknown error occurred`));let r=await os.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Ko}${e}:[["${es}",${r[0]}]]
|
|
23
|
+
`)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Ko}${e}:${r}
|
|
24
|
+
`));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Ko}${e}:[${n}]
|
|
25
|
+
`)),c=o.stringified.length-1}}),l)).finally(()=>{delete o.deferred[Number(e)]}));await Promise.race(Object.values(o.deferred))}e()}await Promise.all(Object.values(o.deferred)),await l,t.close(),n?.()}})}async function _s(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var vs={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ys=/[&><\u2028\u2029]/g;function bs(e){return e.replace(ys,e=>vs[e])}function xs(e,t){if(e===!1||e==null)throw Error(t)}var Ss=Symbol(`SingleFetchRedirect`),Cs=class extends Error{},ws=new Set([100,101,204,205]);function Ts({context:e,identifier:t,reader:n,textDecoder:r,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,o=a[t];if(o||=a[t]=n.read().then(e=>{a[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e}),o.error)throw o.error;if(o.result===void 0)throw o;let{done:s,value:c}=o.result,l=c?O.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${bs(JSON.stringify(c))});`}}):null;return s?O.createElement(O.Fragment,null,l,O.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.close();`}})):O.createElement(O.Fragment,null,l,O.createElement(O.Suspense,null,O.createElement(Ts,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:i})))}function Es(e,t,n,r,i,a){let o=Ds(e,e=>{let n=t.routes[e.route.id];return xs(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader}},Fs,r,i,a);return async e=>e.runClientMiddleware(o)}function Ds(e,t,n,r,i,a,o=()=>!0){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if(c.method!==`GET`)return Os(s,n,i,a);let f=l.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!f?ks(s,t,n,i,a):u?Ms(s,n,i,a):As(s,d,t,n,r,i,a,o)}}async function Os(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());xs(i,`No action match found`);let a,o=await i.resolve(async o=>await o(async()=>{let{data:o,status:s}=await t(e,n,r,[i.route.id]);return a=s,Ls(o,i.route.id)}));return Si(o.result)||zn(o.result)||xi(o.result)?{[i.route.id]:o}:{[i.route.id]:{type:o.type,result:Pn(o.result,a)}}}async function ks(e,t,n,r,i){let a=e.matches.filter(e=>e.shouldCallHandler()),o={};return await Promise.all(a.map(a=>a.resolve(async s=>{try{let{hasClientLoader:c}=t(a),l=a.route.id,u=c?await s(async()=>{let{data:t}=await n(e,r,i,[l]);return Ls(t,l)}):await s();o[a.route.id]={type:`data`,result:u}}catch(e){o[a.route.id]={type:`error`,result:e}}}))),o}async function As(e,t,n,r,i,a,o,s=()=>!0){let c=new Set,l=!1,u=e.matches.map(()=>Rs()),d=Rs(),f={},p=Promise.all(e.matches.map(async(t,i)=>t.resolve(async p=>{u[i].resolve();let m=t.route.id,{hasLoader:h,hasClientLoader:g}=n(t),_=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(_)){l||=t.shouldRevalidateArgs!=null&&h;return}if(s(t)&&g){h&&(l=!0);try{f[m]={type:`data`,result:await p(async()=>{let{data:t}=await r(e,a,o,[m]);return Ls(t,m)})}}catch(e){f[m]={type:`error`,result:e}}return}h&&c.add(m);try{f[m]={type:`data`,result:await p(async()=>Ls(await d.promise,m))}}catch(e){f[m]={type:`error`,result:e}}})));if(await Promise.all(u.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||c.size===0)&&!window.__reactRouterHdrActive)d.resolve({routes:{}});else{let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let n=await r(e,a,o,t);d.resolve(n.data)}catch(e){d.reject(e)}}return await p,await js(d.promise,e.matches,c,f),f}async function js(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof Cs&&(r[e].result=i)})}catch{}}async function Ms(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());xs(i,`No fetcher match found`);let a=i.route.id,o=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,n,r,[a]);return Ls(i,a)}));return{[i.route.id]:o}}function Ns(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function Ps(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&_n(i.pathname,t)===`/`?i.pathname=`${kn(t)}/_root.${r}`:i.pathname=`${kn(i.pathname)}.${r}`,i}async function Fs(e,t,n,r){let{request:i}=e,a=Ps(i.url,t,n,`data`);i.method===`GET`&&(a=Ns(a),r&&a.searchParams.set(`_routes`,r.join(`,`)));let o=await fetch(a,await _s(i));if(o.status>=400&&!o.headers.has(`X-Remix-Response`))throw new Rn(o.status,o.statusText,await o.text());if(o.status===204&&o.headers.has(`X-Remix-Redirect`))return{status:202,data:{redirect:{redirect:o.headers.get(`X-Remix-Redirect`),status:Number(o.headers.get(`X-Remix-Status`)||`302`),revalidate:o.headers.get(`X-Remix-Revalidate`)===`true`,reload:o.headers.get(`X-Remix-Reload-Document`)===`true`,replace:o.headers.get(`X-Remix-Replace`)===`true`}}};if(ws.has(o.status)){let e={};return r&&i.method!==`GET`&&(e[r[0]]={data:void 0}),{status:o.status,data:{routes:e}}}xs(o.body,`No response body to decode`);try{let e=await Is(o.body,window),t;if(i.method===`GET`){let n=e.value;t=Ss in n?{redirect:n[Ss]}:{routes:n}}else{let n=e.value,i=r?.[0];xs(i,`No routeId found for single fetch call decoding`),t=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:o.status,data:t}}catch{throw Error(`Unable to decode turbo-stream response`)}}function Is(e,t){return ps(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&ts.includes(e)&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new Rn(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[Ss]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function Ls(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw Fn(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new Cs(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function Rs(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}async function zs(e,t){if(e.id in t)return t[e.id];try{let n=await yt(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Bs(e,t,n){return Qs(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),Ys(e,n))}function Vs(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function Hs(e){if(!e.css)return;let t=Vs(e);await Promise.all(t.map(Ws))}async function Us(e,t){if(!e.css&&!t.links||!ec())return;let n=[];if(e.css&&n.push(...Vs(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!Gs(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(Ws))}async function Ws(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function Gs(e){return e!=null&&typeof e.page==`string`}function Ks(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function qs(e,t,n){return Qs((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await zs(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ks).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Js(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ys(e,t,{includeHydrateFallback:n}={}){return Xs(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Xs(e){return[...new Set(e)]}function Zs(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Qs(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Gs(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Zs(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var $s;function ec(){if($s!==void 0)return $s;let e=document.createElement(`link`);return $s=e.relList.supports(`preload`),e=null,$s}function tc(){return O.createElement(Yc,{title:`Loading...`,renderScripts:!0},O.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
26
|
+
console.log(
|
|
27
|
+
"💿 Hey developer 👋. You can provide a way better UX than this " +
|
|
28
|
+
"when your app is loading JS modules and/or running \`clientLoader\` " +
|
|
29
|
+
"functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
|
|
30
|
+
"for more information."
|
|
31
|
+
);
|
|
32
|
+
`}}))}function nc(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function rc(e,t,n){let r=fc(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?tc:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>O.createElement(Jc,{error:Pa()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:O.createElement(t.Layout,null,O.createElement(r,null))}:{Component:r},...a?{errorElement:O.createElement(t.Layout,null,O.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:O.createElement(t.Layout,null,O.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function ic(e,t,n,r,i=``,a=nc(e),o=Promise.resolve({Component:()=>null})){return(a[i]||[]).map(i=>{let s=t[i.id];xs(s,"No `routeModule` available to create server routes");let c={...rc(i,s,r),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:r?()=>o:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=ic(e,t,n,r,i.id,a,o);return l.length>0&&(c.children=l),c})}function ac(e,t,n,r,i,a){return cc(t,n,r,i,a,``,nc(t),e)}function oc(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new Rn(400,`Bad Request`,Error(n),!0)}}function sc(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new Rn(405,`Method Not Allowed`,Error(r),!0)}function cc(e,t,n,r,i,a=``,o=nc(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return xs(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw sc(`action`,a.id);return l(e)}function f(e){yt(()=>import(e),[],import.meta.url)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?Us(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...rc(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:lc(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,pattern:s,url:d},p)=>{try{return await m(async()=>(xs(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,pattern:s,url:d,async serverLoader(){if(oc(`loader`,a),f){if(e)return t;if(o)throw l}return u(p)}}):u(p)))}finally{f=!1}},h.loader.hydrate=pc(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>m(async()=>{if(xs(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw sc(`clientAction`,a.id);return d(s)}return c.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return oc(`action`,a),d(s)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw sc(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=dc(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await yt(()=>import(a.clientLoaderModule),[],import.meta.url):await n();return xs(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return oc(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?yt(()=>import(a.clientActionModule),[],import.meta.url):n();p(a);let{clientAction:t}=await e;return xs(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return oc(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await yt(()=>import(a.clientMiddlewareModule),[],import.meta.url):await n();return xs(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return lc(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=cc(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function lc(e,t,n,r,i){if(i)return uc(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?hn(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}else return e=>r(e)}return t.shouldRevalidate}function uc(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function dc(e,t){let n=zs(e,t),r=Hs(e),i=await n;return await Promise.all([r,Us(e,i)]),{Component:fc(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function fc(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function pc(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}var mc=new Set,hc=1e3,gc=new Set,_c=7680;function vc(e,t){return e.mode===`lazy`&&t===!0}function yc({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=Xt(n.routes,e,n.basename||`/`,!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function bc(e,t,n,r,i,a,o){if(vc(i,r))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(gc.has(s))return;let{state:d}=e();await wc([s],u?window.location.href:Ft(d.navigation.location||d.location),t,n,r,a,o,i.manifestPath,c,l)}}function xc(e,t,n,r,i,a){O.useEffect(()=>{if(!vc(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;gc.has(n)||mc.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(mc.keys()).filter(e=>gc.has(e)?(mc.delete(e),!1):!0);if(s.length!==0)try{await wc(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=Ec(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Sc(e,t){let n=e||`/__manifest`;return t==null?n:On([t,n])}var Cc=`react-router-manifest-version`;async function wc(e,t,n,r,i,a,o,s,c,l){let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Sc(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>7680){mc.clear();return}let f;try{let e=await fetch(d,{signal:l});if(!e.ok)throw Error(`${e.status} ${e.statusText}`);if(e.status===204&&e.headers.has(`X-Remix-Reload-Document`)){if(!t){console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.`);return}try{if(sessionStorage.getItem(Cc)===n.version){console.error(`Unable to discover routes due to manifest version mismatch.`);return}sessionStorage.setItem(Cc,n.version)}catch{}window.location.href=t,console.warn(`Detected manifest version mismatch, reloading...`),await new Promise(()=>{})}else if(e.status>=400)throw Error(await e.text());try{sessionStorage.removeItem(Cc)}catch{}f=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Tc(e,gc));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,cc(m,r,null,i,a,e)))}function Tc(e,t){if(t.size>=hc){let e=t.values().next().value;t.delete(e)}t.add(e)}function Ec(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Dc(){let e=O.useContext(Ii);return xs(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Oc(){let e=O.useContext(Li);return xs(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var kc=O.createContext(void 0);kc.displayName=`FrameworkContext`;function Ac(){let e=O.useContext(kc);return xs(e,`You must render this element inside a <HydratedRouter> element`),e}function jc(e,t){let n=O.useContext(kc),[r,i]=O.useState(!1),[a,o]=O.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=O.useRef(null);O.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),O.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Mc(s,p),onBlur:Mc(c,m),onMouseEnter:Mc(l,p),onMouseLeave:Mc(u,m),onTouchStart:Mc(d,p)}]:[a,f,{}]:[!1,f,{}]}function Mc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Nc(e,t,n){if(n&&!Hc)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var Pc=`data-react-router-critical-css`;function Fc({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a}=Ac(),{errors:o,matches:s}=Oc(),c=Nc(s,o,n),l=O.useMemo(()=>Bs(c,i,r),[c,i,r]);return O.createElement(O.Fragment,null,typeof a==`string`?O.createElement(`style`,{[Pc]:``,nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?O.createElement(`link`,{[Pc]:``,rel:`stylesheet`,href:a.href,nonce:e,crossOrigin:t}):null,l.map(({key:n,link:r})=>Gs(r)?O.createElement(Ic,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):O.createElement(`link`,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t})))}function Ic({page:e,...t}){let n=zi(),{router:r}=Dc(),i=O.useMemo(()=>Yt(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?O.createElement(Rc,{page:e,matches:i,...t}):O.createElement(zc,{page:e,matches:i,...t}):null}function Lc(e){let{manifest:t,routeModules:n}=Ac(),[r,i]=O.useState([]);return O.useEffect(()=>{let r=!1;return qs(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Rc({page:e,matches:t,...n}){let r=ta(),{future:i}=Ac(),{basename:a}=Dc(),o=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ps(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return O.createElement(O.Fragment,null,o.map(e=>O.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function zc({page:e,matches:t,...n}){let r=ta(),{future:i,manifest:a,routeModules:o}=Ac(),{basename:s}=Dc(),{loaderData:c,matches:l}=Oc(),u=O.useMemo(()=>Js(e,t,l,a,r,`data`),[e,t,l,a,r]),d=O.useMemo(()=>Js(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Ps(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=O.useMemo(()=>Ys(d,a),[d,a]),m=Lc(d);return O.createElement(O.Fragment,null,f.map(e=>O.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>O.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>O.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Bc(){let{isSpaMode:e,routeModules:t}=Ac(),{errors:n,matches:r,loaderData:i}=Oc(),a=ta(),o=Nc(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,data:d,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({data:d,loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
|
|
33
|
+
|
|
34
|
+
To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return O.createElement(O.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!Vc(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return O.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return O.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?O.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return O.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:bs(t)}})}catch{return null}return O.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function Vc(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var Hc=!1;function Uc(){Hc=!0}function Wc(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o}=Ac(),{router:s,static:c,staticContext:l}=Dc(),{matches:u}=Oc(),d=zi(),f=vc(a,o);i&&(i.didRenderScripts=!0);let p=Nc(u,null,r);O.useEffect(()=>{Uc()},[]);let m=O.useMemo(()=>{if(d)return null;let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${f?``:`import ${JSON.stringify(t.url)}`};
|
|
35
|
+
${p.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];xs(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
|
|
36
|
+
`),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
|
|
37
|
+
`)}).join(`
|
|
38
|
+
`)}
|
|
39
|
+
${f?`window.__reactRouterManifest = ${JSON.stringify(yc(t,s),null,2)};`:``}
|
|
40
|
+
window.__reactRouterRouteModules = {${p.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
|
|
41
|
+
|
|
42
|
+
import(${JSON.stringify(t.entry.module)});`:` `;return O.createElement(O.Fragment,null,O.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),O.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),h=Hc||d?[]:Gc(t.entry.imports.concat(Ys(p,t,{includeHydrateFallback:!0}))),g=typeof t.sri==`object`?t.sri:{};return Ua(!d,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),Hc||d?null:O.createElement(O.Fragment,null,typeof t.sri==`object`?O.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,f?null:O.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),O.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),h.map(t=>O.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:g[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function Gc(e){return[...new Set(e)]}function Kc(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var qc=class extends O.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?O.createElement(Jc,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Jc({error:e,isOutsideRemixApp:t}){console.error(e);let n=O.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
43
|
+
console.log(
|
|
44
|
+
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
45
|
+
);
|
|
46
|
+
`}});if(zn(e))return O.createElement(Yc,{title:`Unhandled Thrown Response!`},O.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return O.createElement(Yc,{title:`Application Error!`,isOutsideRemixApp:t},O.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),O.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function Yc({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=Ac();return i.root?.Layout&&!n?r:O.createElement(`html`,{lang:`en`},O.createElement(`head`,null,O.createElement(`meta`,{charSet:`utf-8`}),O.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),O.createElement(`title`,null,e)),O.createElement(`body`,null,O.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?O.createElement(Wc,null):null)))}var Xc=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Xc&&(window.__reactRouterVersion=`7.15.0`)}catch{}function Zc(e,t){return vr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:kt({window:t?.window}),hydrationData:t?.hydrationData||$c(),routes:e,mapRouteProperties:qa,hydrationRouteProperties:Ja,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Qc(e,t){return vr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:At({window:t?.window}),hydrationData:t?.hydrationData||$c(),routes:e,mapRouteProperties:qa,hydrationRouteProperties:Ja,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function $c(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:el(e.errors)}),e}function el(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Rn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function tl({basename:e,children:t,useTransitions:n,window:r}){let i=O.useRef();i.current??=kt({window:r,v5Compat:!0});let a=i.current,[o,s]=O.useState({action:a.action,location:a.location}),c=O.useCallback(e=>{n===!1?s(e):O.startTransition(()=>s(e))},[n]);return O.useLayoutEffect(()=>a.listen(c),[a,c]),O.createElement(ao,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function nl({basename:e,children:t,useTransitions:n,window:r}){let i=O.useRef();i.current??=At({window:r,v5Compat:!0});let a=i.current,[o,s]=O.useState({action:a.action,location:a.location}),c=O.useCallback(e=>{n===!1?s(e):O.startTransition(()=>s(e))},[n]);return O.useLayoutEffect(()=>a.listen(c),[a,c]),O.createElement(ao,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function rl({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=O.useState({action:n.action,location:n.location}),o=O.useCallback(e=>{r===!1?a(e):O.startTransition(()=>a(e))},[r]);return O.useLayoutEffect(()=>n.listen(o),[n,o]),O.createElement(ao,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}rl.displayName=`unstable_HistoryRouter`;var il=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,al=O.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=O.useContext(Wi),v=typeof l==`string`&&il.test(l),y=Hn(l,h);l=y.to;let b=$i(l,{relative:r}),x=ta(),S=null;if(o){let e=En(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:On([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=jc(n,p),E=fl(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function ee(t){e&&e(t),t.defaultPrevented||E(t)}let D=!(y.isExternal||i),te=O.createElement(`a`,{...p,...T,href:(D?S:void 0)||y.absoluteURL||b,onClick:D?ee:e,ref:Kc(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?O.createElement(O.Fragment,null,te,O.createElement(Ic,{page:b})):te});al.displayName=`Link`;var ol=O.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=fa(a,{relative:c.relative}),d=ta(),f=O.useContext(Li),{navigator:p,basename:m}=O.useContext(Wi),h=f!=null&&Dl(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=_n(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return O.createElement(al,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});ol.displayName=`NavLink`;var sl=O.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=So,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=O.useContext(Wi),g=gl(),_=_l(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&il.test(s);return O.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?O.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});sl.displayName=`Form`;function cl({getKey:e,storageKey:t,...n}){let r=O.useContext(kc),{basename:i}=O.useContext(Wi),a=ta(),o=Aa();Cl({getKey:e,storageKey:t});let s=O.useMemo(()=>{if(!r||!e)return null;let t=Sl(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return O.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${bs(JSON.stringify(t||bl))}, ${bs(JSON.stringify(s))})`}})}cl.displayName=`ScrollRestoration`;function ll(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ul(e){let t=O.useContext(Ii);return F(t,ll(e)),t}function dl(e){let t=O.useContext(Li);return F(t,ll(e)),t}function fl(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=oa(),d=ta(),f=fa(e,{relative:o});return O.useCallback(p=>{if(ko(p,t)){p.preventDefault();let t=n===void 0?Ft(d)===Ft(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?O.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function pl(e){jt(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=O.useRef(Ao(e)),n=O.useRef(!1),r=ta(),i=O.useMemo(()=>jo(r.search,n.current?null:t.current),[r.search]),a=oa();return[i,O.useCallback((e,t)=>{let r=Ao(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ml=0,hl=()=>`__${String(++ml)}__`;function gl(){let{router:e}=ul(`useSubmit`),{basename:t}=O.useContext(Wi),n=Da(),r=e.fetch,i=e.navigate;return O.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Io(e,t);a.navigate===!1?await r(a.fetcherKey||hl(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function _l(e,{relative:t}={}){let{basename:n}=O.useContext(Wi),r=O.useContext(Ki);F(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...fa(e||`.`,{relative:t})},o=ta();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:On([n,a.pathname])),Ft(a)}function vl({key:e}={}){let{router:t}=ul(`useFetcher`),n=dl(`useFetcher`),r=O.useContext(Vi),i=O.useContext(Ki),a=i.matches[i.matches.length-1]?.route.id;F(r,`useFetcher must be used inside a FetchersContext`),F(i,`useFetcher must be used inside a RouteContext`),F(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=O.useId(),[s,c]=O.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:u,resetFetcher:d,fetch:f}=t;O.useEffect(()=>(u(s),()=>l(s)),[l,u,s]);let p=O.useCallback(async(e,t)=>{F(a,`No routeId available for fetcher.load()`),await f(s,a,e,t)},[s,a,f]),m=gl(),h=O.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:s})},[s,m]),g=O.useCallback(e=>d(s,e),[d,s]),_=O.useMemo(()=>{let e=O.forwardRef((e,t)=>O.createElement(sl,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),v=n.fetchers.get(s)||cr,y=r.get(s);return O.useMemo(()=>({Form:_,submit:h,load:p,reset:g,...v,data:y}),[_,h,p,g,v,y])}function yl(){let e=dl(`useFetchers`);return Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e}))}var bl=`react-router-scroll-positions`,xl={};function Sl(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:_n(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Cl({getKey:e,storageKey:t}={}){let{router:n}=ul(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=dl(`useScrollRestoration`),{basename:a}=O.useContext(Wi),o=ta(),s=Aa(),c=Oa();O.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Tl(O.useCallback(()=>{if(c.state===`idle`){let t=Sl(o,s,a,e);xl[t]=window.scrollY}try{sessionStorage.setItem(t||bl,JSON.stringify(xl))}catch(e){jt(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(O.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||bl);e&&(xl=JSON.parse(e))}catch{}},[t]),O.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(xl,()=>window.scrollY,e?(t,n)=>Sl(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),O.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{jt(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function wl(e,t){let{capture:n}=t||{};O.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function Tl(e,t){let{capture:n}=t||{};O.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function El({when:e,message:t}){let n=La(e);O.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),O.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function Dl(e,{relative:t}={}){let n=O.useContext(Bi);F(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ul(`useViewTransitionState`),i=fa(e,{relative:t});if(!n.isTransitioning)return!1;let a=_n(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_n(n.nextLocation.pathname,r)||n.nextLocation.pathname;return mn(i.pathname,o)!=null||mn(i.pathname,a)!=null}function Ol({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=It(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`,mask:void 0},i=jl();return O.createElement(ao,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,useTransitions:!1})}function kl({context:e,router:t,hydrate:n=!0,nonce:r}){F(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:jl(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Al(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${bs(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return O.createElement(O.Fragment,null,O.createElement(Ii.Provider,{value:i},O.createElement(Li.Provider,{value:s},O.createElement(Vi.Provider,{value:a},O.createElement(Bi.Provider,{value:{isTransitioning:!1}},O.createElement(ao,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},O.createElement(eo,{manifest:t.manifest,routes:t.routes,future:t.future,state:s,isStatic:!0})))))),o?O.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function Al(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)zn(r)?n[e]={...r,__type:`RouteErrorResponse`}:r instanceof Error?n[e]={message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:n[e]=r;return n}function jl(){return{createHref:Pl,encodeLocation:Fl,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function Ml(e,t){return yr(e,{...t,mapRouteProperties:qa})}function Nl(e,t,n={}){let r={},i=qt(e,qa,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:sr,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return n.branches},get manifest(){return r},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:Pl,encodeLocation:Fl,getFetcher(){return cr},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return lr},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function Pl(e){return typeof e==`string`?e:Ft(e)}function Fl(e){let t=typeof e==`string`?e:Ft(e);t=t.replace(/ $/,`%20`);let n=Il.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var Il=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ll=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseCookie=c,e.parse=c,e.stringifyCookie=l,e.stringifySetCookie=u,e.serialize=u,e.parseSetCookie=d,e.stringifySetCookie=u,e.serialize=u;var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=/^-?\d+$/,o=Object.prototype.toString,s=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function c(e,t){let n=new s,r=e.length;if(r<2)return n;let i=t?.decode||h,a=0;do{let t=p(e,a,r);if(t===-1)break;let o=f(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=m(e,a,t);n[s]===void 0&&(n[s]=i(m(e,t+1,o))),a=o+1}while(a<r);return n}function l(e,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(e)){let o=e[r];if(o===void 0)continue;if(!t.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!n.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`)}return a.join(`; `)}function u(e,a,o){let s=typeof e==`object`?e:{...o,name:e,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!t.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!n.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!r.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!i.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!g(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function d(e,t){let n=t?.decode||h,r=e.length,i=f(e,0,r),o=p(e,0,i),s=o===-1?{name:``,value:n(m(e,0,i))}:{name:m(e,0,o),value:n(m(e,o+1,i))},c=i+1;for(;c<r;){let t=f(e,c,r),n=p(e,c,t),i=n===-1?m(e,c,t):m(e,c,n),o=n===-1?void 0:m(e,n+1,t);switch(i.toLowerCase()){case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`partitioned`:s.partitioned=!0;break;case`domain`:s.domain=o;break;case`path`:s.path=o;break;case`max-age`:o&&a.test(o)&&(s.maxAge=Number(o));break;case`expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case`priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case`samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1}return s}function f(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function p(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function m(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function h(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function g(e){return o.call(e)===`[object Date]`}})),Rl=s(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e!=`string`||e in{}}function i(){return Object.create(null)}function a(e){return typeof e==`string`&&!!e.trim()}function o(e,t){var o=e.split(`;`).filter(a),c=s(o.shift()),l=c.name,u=c.value;if(t=t?Object.assign({},n,t):n,r(l))return null;try{u=t.decodeValues?decodeURIComponent(u):u}catch(e){console.error(`set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.`,e)}var d=i();return d.name=l,d.value=u,o.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join(`=`);if(n===`expires`)d.expires=new Date(i);else if(n===`max-age`){var a=parseInt(i,10);Number.isNaN(a)||(d.maxAge=a)}else n===`secure`?d.secure=!0:n===`httponly`?d.httpOnly=!0:n===`samesite`?d.sameSite=i:n===`partitioned`?d.partitioned=!0:n&&(d[n]=i)}}),d}function s(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function c(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?i():[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var s=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!s&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=s}if(Array.isArray(e)||(e=[e]),t.map){var c=i();return e.filter(a).reduce(function(e,n){var i=o(n,t);return i&&!r(i.name)&&(e[i.name]=i),e},c)}else return e.filter(a).map(function(e){return o(e,t)}).filter(Boolean)}function l(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=c,t.exports.parse=c,t.exports.parseString=o,t.exports.splitCookiesString=l})),zl=c({RSCDefaultRootErrorBoundary:()=>sd,RSCRouterGlobalErrorBoundary:()=>ad,RSCStaticRouter:()=>hd,ServerMode:()=>au,ServerRouter:()=>Hl,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createMemorySessionStorage:()=>Zu,createRequestHandler:()=>Lu,createRoutesStub:()=>Ul,createSession:()=>Ku,createSessionStorage:()=>Ju,deserializeErrors:()=>vd,getHydrationData:()=>yd,href:()=>Qu,isCookie:()=>Yl,isSession:()=>qu,populateRSCRouteModules:()=>ld,routeRSCServerRequest:()=>md,setDevServerHooks:()=>_u}),Bl=u(Ll(),1),Vl=u(Rl(),1);function Hl({context:e,url:t,nonce:n}){typeof t==`string`&&(t=new URL(t));let{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o}=e,s=ic(r.routes,i,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,r=i[n],a=e.manifest.routes[n];r&&a&&pc(n,r.clientLoader,a.hasLoader,e.isSpaMode)&&(r.HydrateFallback||!a.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let c=Nl(s,e.staticHandlerContext,{branches:e.branches});return O.createElement(O.Fragment,null,O.createElement(kc.Provider,{value:{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,serializeError:e.serializeError,renderMeta:e.renderMeta}},O.createElement(qc,{location:c.state.location},O.createElement(kl,{router:c,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?O.createElement(O.Suspense,null,O.createElement(Ts,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function Ul(e,t){return function({initialEntries:n,initialIndex:r,hydrationData:i,future:a}){let o=O.useRef(),s=O.useRef();return o.current??=(s.current={future:{v8_passThroughRequests:a?.v8_passThroughRequests===!0,v8_middleware:a?.v8_middleware===!0,unstable_trailingSlashAwareDataRequests:a?.unstable_trailingSlashAwareDataRequests===!0},manifest:{routes:{},entry:{imports:[],module:``},url:``,version:``},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:`lazy`,manifestPath:`/__manifest`}},Ya(U(qt(e,e=>e),t===void 0?a?.v8_middleware?new Vt:{}:t,s.current.manifest,s.current.routeModules),{initialEntries:n,initialIndex:r,hydrationData:i})),O.createElement(kc.Provider,{value:s.current},O.createElement(Za,{router:o.current}))}}function U(e,t,n,r,i){return e.map(e=>{if(!e.id)throw Error(`Expected a route.id in react-router processRoutes() function`);let a={id:e.id,path:e.path,index:e.index,Component:e.Component?ho(e.Component):void 0,HydrateFallback:e.HydrateFallback?vo(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?xo(e.ErrorBoundary):void 0,action:e.action?n=>e.action({...n,context:t}):void 0,loader:e.loader?n=>e.loader({...n,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...n)=>e({...n[0],context:t},n[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},o={id:e.id,path:e.path,index:e.index,parentId:i,hasAction:e.action!=null,hasLoader:e.loader!=null,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:e.ErrorBoundary!=null,module:`build/stub-path-to-module.js`,clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return n.routes[a.id]=o,r[e.id]={default:a.Component||ro,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=U(e.children,t,n,r,a.id)),a})}var W=new TextEncoder,Wl=async(e,t)=>{let n=W.encode(e),r=await Kl(t,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n),a=btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,``);return e+`.`+a},Gl=async(e,t)=>{let n=e.lastIndexOf(`.`),r=e.slice(0,n),i=e.slice(n+1),a=W.encode(r),o=await Kl(t,[`verify`]);try{let e=ql(atob(i));return await crypto.subtle.verify(`HMAC`,o,e,a)?r:!1}catch{return!1}},Kl=async(e,t)=>crypto.subtle.importKey(`raw`,W.encode(e),{name:`HMAC`,hash:`SHA-256`},!1,t);function ql(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}var Jl=(e,t={})=>{let{secrets:n=[],...r}={path:`/`,sameSite:`lax`,...t};return ru(e,r.expires),{get name(){return e},get isSigned(){return n.length>0},get expires(){return r.maxAge===void 0?r.expires:new Date(Date.now()+r.maxAge*1e3)},async parse(t,i){if(!t)return null;let a=(0,Bl.parse)(t,{...r,...i});if(e in a){let t=a[e];return typeof t==`string`&&t!==``?await Zl(t,n):``}else return null},async serialize(t,i){return(0,Bl.serialize)(e,t===``?``:await Xl(t,n),{...r,...i})}}},Yl=e=>e!=null&&typeof e.name==`string`&&typeof e.isSigned==`boolean`&&typeof e.parse==`function`&&typeof e.serialize==`function`;async function Xl(e,t){let n=Ql(e);return t.length>0&&(n=await Wl(n,t[0])),n}async function Zl(e,t){if(t.length>0){for(let n of t){let t=await Gl(e,n);if(t!==!1)return $l(t)}return null}return $l(e)}function Ql(e){return btoa(nu(encodeURIComponent(JSON.stringify(e))))}function $l(e){try{return JSON.parse(decodeURIComponent(eu(atob(e))))}catch{return{}}}function eu(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;)i=t.charAt(r++),/[\w*+\-./@]/.exec(i)?n+=i:(a=i.charCodeAt(0),a<256?n+=`%`+tu(a,2):n+=`%u`+tu(a,4).toUpperCase());return n}function tu(e,t){let n=e.toString(16);for(;n.length<t;)n=`0`+n;return n}function nu(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;){if(i=t.charAt(r++),i===`%`){if(t.charAt(r)===`u`){if(a=t.slice(r+1,r+5),/^[\da-f]{4}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=5;continue}}else if(a=t.slice(r,r+2),/^[\da-f]{2}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=2;continue}}n+=i}return n}function ru(e,t){Ua(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}function iu(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}var au=(e=>(e.Development=`development`,e.Production=`production`,e.Test=`test`,e))(au||{});function ou(e){return e===`development`||e===`production`||e===`test`}function su(e,t){if(e instanceof Error&&t!==`development`){let e=Error(`Unexpected Server Error`);return e.stack=void 0,e}return e}function cu(e,t){return Object.entries(e).reduce((e,[n,r])=>Object.assign(e,{[n]:su(r,t)}),{})}function lu(e,t){let n=su(e,t);return{message:n.message,stack:n.stack}}function uu(e,t){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(zn(i))r[e]={...i,__type:`RouteErrorResponse`};else if(i instanceof Error){let n=su(i,t);r[e]={message:n.message,stack:n.stack,__type:`Error`,...n.name===`Error`?{}:{__subType:n.name}}}else r[e]=i;return r}function du(e,t){if(e===!1||e==null)throw console.error(`The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose`),Error(t)}function fu(e,t,n,r,i){let a=Xt(t,r,i??`/`,!1,n);return a?a.map(t=>{let n=e[t.route.id];return du(n,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:n}}):null}async function pu(e,t,n){let r=await e({request:n.v8_passThroughRequests?t.request:hu(mu(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if(xi(r)&&r.init&&r.init.status&&Ci(r.init.status))throw new Response(null,r.init);return r}function mu(e){let t=new URL(e.url),n=t.searchParams.getAll(`index`);t.searchParams.delete(`index`);let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append(`index`,e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex=`half`),new Request(t.href,i)}function hu(e){let t=new URL(e.url);t.searchParams.delete(`_routes`);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex=`half`),new Request(t.href,n)}var gu=`__reactRouterDevServerHooks`;function _u(e){globalThis[gu]=e}function G(){return globalThis[gu]}function vu(e,t){if(typeof process<`u`)try{if({}.hasOwnProperty(`IS_RR_BUILD_REQUEST`)&&{}.IS_RR_BUILD_REQUEST===`yes`)return e.headers.get(t)}catch{}return null}function yu(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function K(e,t,n=``,r=yu(e)){return(r[n]||[]).map(n=>{let i={hasErrorBoundary:n.id===`root`||n.module.ErrorBoundary!=null,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let r=vu(e.request,`X-React-Router-Prerender-Data`);if(r!=null){let e=r&&decodeURI(r);du(e,`Missing prerendered data for route`);let t=new TextEncoder().encode(e),i=(await Is(new ReadableStream({start(e){e.enqueue(t),e.close()}}),global)).value;if(i&&Ss in i){let e=i[Ss],t={status:e.status};throw e.reload?In(e.redirect,t):e.replace?Ln(e.redirect,t):Fn(e.redirect,t)}else{du(i&&n.id in i,`Unable to decode prerendered data`);let e=i[n.id];return du(`data`in e,`Unable to process prerendered data`),e.data}}return await pu(n.module.loader,e,t)}:void 0,action:n.module.action?e=>pu(n.module.action,e,t):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:K(e,t,n.id,r),...i}})}function bu(e){return bs(JSON.stringify(e))}function xu(e,t){return Su(e,e=>{let n=t.routes[e.route.id];return du(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function Su(e,t,n){let r=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=r>=0?e.matches.slice(0,r+1):e.matches,a;if(r>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:o}=e;e.matches.slice(r).some(e=>{let r=e.route.id;return t[r]&&(!n||!n.hasOwnProperty(r))?a=t[r]:i[r]&&!o.hasOwnProperty(r)&&(a=i[r]),a!=null})}let o=new Headers(n);return i.reduce((n,r,o)=>{let{id:s}=r.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=a!=null&&o===i.length-1,d=u&&a!==c&&a!==l,f=t(r);if(f==null){let e=new Headers(n);return d&&Cu(a,e),Cu(l,e),Cu(c,e),e}let p=new Headers(typeof f==`function`?f({loaderHeaders:c,parentHeaders:n,actionHeaders:l,errorHeaders:u?a:void 0}):f);return d&&Cu(a,p),Cu(l,p),Cu(c,p),Cu(n,p),p},new Headers(o))}function Cu(e,t){let n=e.get(`Set-Cookie`);if(n){let e=(0,Vl.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append(`Set-Cookie`,e)})}}function wu(e,t){let n=e.get(`origin`),r=null;try{r=typeof n==`string`&&n!==`null`?new URL(n).host:n}catch{throw Error("`origin` header is not a valid URL. Aborting the action.")}let i=Du(e);if(r&&(!i||r!==i.value)&&!Eu(r,t))throw Error(i?`${i.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`:"`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action.")}function Tu(e,t){let n=e.split(`.`),r=t.split(`.`);if(r.length<1||n.length<r.length)return!1;for(;r.length;){let e=r.pop(),t=n.pop();switch(e){case``:return!1;case`*`:if(t)continue;return!1;case`**`:return r.length>0?!1:t!==void 0;case void 0:default:if(t!==e)return!1}}return n.length===0}function Eu(e,t=[]){return t.some(t=>t&&(t===e||Tu(e,t)))}function Du(e){let t=e.get(`x-forwarded-host`)?.split(`,`)[0]?.trim(),n=e.get(`host`);return t?{type:`x-forwarded-host`,value:t}:n?{type:`host`,value:n}:void 0}function Ou(e,t,n){t||=`/`;let r=new URL(e.url),i=r.pathname;n?.unstable_trailingSlashAwareDataRequests?i=i.endsWith(`/_.data`)?i.replace(/_\.data$/,``):i.replace(/\.data$/,``):(_n(i,t)===`/_root.data`?i=t:i.endsWith(`.data`)&&(i=i.replace(/\.data$/,``)),_n(i,t)!==`/`&&i.endsWith(`/`)&&(i=i.slice(0,-1)));let a=new URLSearchParams(r.search);a.delete(`_routes`);let o=a.toString();return o&&=`?${o}`,{pathname:i,search:o,hash:``}}var ku=new Set([...ws,304]);async function Au(e,t,n,r,i,a,o){try{try{wu(r.headers,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch{return c(Error(`Bad Request`),400)}let t=e.future.v8_passThroughRequests?r:new Request(i,{method:r.method,body:r.body,headers:r.headers,signal:r.signal,...r.body?{duplex:`half`}:void 0});return s(await n.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return s(await e(t))}catch(e){return c(e)}}:void 0,normalizePath:t=>Ou(t,e.basename,e.future)}))}catch(e){return c(e)}function s(e){return Si(e)?e:l(e)}function c(n,i=500){return o(n),Mu(r,e,t,{result:{error:n},headers:new Headers,status:i})}function l(n){let i=xu(n,e);if(Ci(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!zn(e)||e.error)&&o(e)}),cu(n.errors,t));let a;return a=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]},Mu(r,e,t,{result:a,headers:i,status:n.statusCode})}}async function ju(e,t,n,r,i,a,o){let s=new URL(r.url).searchParams.get(`_routes`),c=s?new Set(s.split(`,`)):null;try{let t=e.future.v8_passThroughRequests?r:new Request(i,{headers:r.headers,signal:r.signal});return l(await n.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return u(e)}}:void 0,normalizePath:t=>Ou(t,e.basename,e.future)}))}catch(e){return u(e)}function l(e){return Si(e)?e:d(e)}function u(n){return o(n),Mu(r,e,t,{result:{error:n},headers:new Headers,status:500})}function d(n){let i=xu(n,e);if(Ci(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!zn(e)||e.error)&&o(e)}),cu(n.errors,t));let a={},s=new Set(n.matches.filter(e=>c?c.has(e.route.id):e.route.loader!=null).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&s.has(e)&&(a[e]={data:t});return Mu(r,e,t,{result:a,headers:i,status:n.statusCode})}}function Mu(e,t,n,{result:r,headers:i,status:a}){let o=new Headers(i);return o.set(`X-Remix-Response`,`yes`),ku.has(a)?new Response(null,{status:a,headers:o}):(o.set(`Content-Type`,`text/x-script`),o.delete(`Content-Length`),new Response(Fu(r,e.signal,t.entry.module.streamTimeout,n),{status:a||200,headers:o}))}function Nu(e,t,n,r){let i=Pu(e.status,e.headers,n.basename),a=new Headers(e.headers);return a.delete(`Location`),a.set(`Content-Type`,`text/x-script`),Mu(t,n,r,{result:t.method===`GET`?{[Ss]:i}:i,headers:a,status:202})}function Pu(e,t,n){let r=t.get(`Location`);return n&&(r=_n(r,n)||r),{redirect:r,status:e,revalidate:t.has(`X-Remix-Revalidate`)||t.has(`Set-Cookie`),reload:t.has(`X-Remix-Reload-Document`),replace:t.has(`X-Remix-Replace`)}}function Fu(e,t,n,r){let i=new AbortController,a=setTimeout(()=>{i.abort(Error(`Server Timeout`)),s()},typeof n==`number`?n:4950),o=()=>{i.abort(t.reason),s()};t.addEventListener(`abort`,o);let s=()=>{clearTimeout(a),t.removeEventListener(`abort`,o)};return gs(e,{signal:i.signal,onComplete:s,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:i}=r===`production`?su(e,r):e;return[`SanitizedError`,t,n,i]}if(e instanceof Rn){let{data:t,status:n,statusText:r}=e;return[`ErrorResponse`,t,n,r]}if(e&&typeof e==`object`&&Ss in e)return[`SingleFetchRedirect`,e[Ss]]}],postPlugins:[e=>{if(e&&typeof e==`object`)return[`SingleFetchClassInstance`,Object.fromEntries(Object.entries(e))]},()=>[`SingleFetchFallback`]]})}function Iu(e,t){let n=K(e.routes,e.future),r=ou(t)?t:`production`,i=yr(n,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),a=e.entry.module.handleError||((e,{request:t})=>{r!==`test`&&!t.signal.aborted&&console.error(zn(e)&&e.error?e.error:e)}),o=async(n,o)=>{let s={},c,l=e=>{t===`development`&&G()?.processRequestError?.(e),a(e,{context:c,params:s,request:n})};if(e.future.v8_middleware){if(o&&!(o instanceof Vt)){let e=Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return l(e),Uu(e,r)}c=o||new Vt}else c=o||{};let u=new URL(n.url),d=Ou(n,e.basename,e.future).pathname,f=vu(n,`X-React-Router-SPA-Mode`)===`yes`;if(!e.ssr){let t=decodeURI(d);if(e.basename&&e.basename!==`/`){let r=_n(t,e.basename);if(r==null)return a(new Rn(404,`Not Found`,`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${e.basename}\``),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});t=r}if(e.prerender.length===0)f=!0;else if(!e.prerender.includes(t)&&!e.prerender.includes(t+`/`)){if(u.pathname.endsWith(`.data`))return a(new Rn(404,`Not Found`,`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});f=!0}}let p=Sc(e.routeDiscovery.manifestPath,e.basename);if(u.pathname===p)try{return await Ru(e,i.dataRoutes,i._internalRouteBranches,u)}catch(e){return l(e),new Response(`Unknown Server Error`,{status:500})}let m=fu(e.routes,i.dataRoutes,i._internalRouteBranches,d,e.basename);m&&m.length>0&&Object.assign(s,m[0].params);let h;if(u.pathname.endsWith(`.data`))h=await zu(r,e,i,n,d,c,l),wi(h)&&(h=Nu(h,n,e,r)),e.entry.module.handleDataRequest&&(h=await e.entry.module.handleDataRequest(h,{context:c,params:m?m[0].params:{},request:n}),wi(h)&&(h=Nu(h,n,e,r)));else if(!f&&m&&m[m.length-1].route.module.default==null&&m[m.length-1].route.module.ErrorBoundary==null)h=await Vu(r,e,i,m.slice(-1)[0].route.id,n,c,l);else{let{pathname:a}=u,o;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:a}):t===`development`&&G()?.getCriticalCss&&(o=await G()?.getCriticalCss?.(a)),h=await Bu(r,e,i,n,c,l,f,o)}return n.method===`HEAD`?new Response(null,{headers:h.headers,status:h.status,statusText:h.statusText}):h};return e.entry.module.instrumentations&&(o=Kn(o,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:r,staticHandler:i,errorHandler:a,requestHandler:o}}var Lu=(e,t)=>{let n,r,i,a,o;return async function(s,c){if(n=typeof e==`function`?await e():e,typeof e==`function`){let e=Iu(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}else if(!r||!i||!a||!o){let e=Iu(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}return o(s,c)}};async function Ru(e,t,n,r){if(e.assets.version!==r.searchParams.get(`version`))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":`true`}});if(r.toString().length>7680)return new Response(null,{statusText:`Bad Request`,status:400});let i={};if(r.searchParams.has(`paths`)){let a=new Set;(r.searchParams.get(`paths`)||``).split(`,`).filter(Boolean).forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);let t=e.split(`/`).slice(1);t.forEach((e,n)=>{let r=t.slice(0,n+1).join(`/`);a.add(`/${r}`)})});for(let r of a){let a=fu(e.routes,t,n,r,e.basename);if(a)for(let t of a){let n=t.route.id,r=e.assets.routes[n];r&&(i[n]=r)}}return Response.json(i,{headers:{"Cache-Control":`public, max-age=31536000, immutable`}})}return new Response(`Invalid Request`,{status:400})}async function zu(e,t,n,r,i,a,o){let s=new URL(r.url);return s.pathname=i,r.method===`GET`?await ju(t,e,n,r,s,a,o):await Au(t,e,n,r,s,a,o)}async function Bu(e,t,n,r,i,a,o,s){try{if(r.method===`POST`)try{wu(r.headers,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response(`Bad Request`,{status:400})}let e=await n.query(r,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(r);return Si(t)||(t=await c(t,o)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>Ou(e,t.basename,t.future)});return Si(e)||(e=await c(e,o)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(o,c){let l=xu(o,t);if(ku.has(o.statusCode))return new Response(null,{status:o.statusCode,headers:l});o.errors&&(Object.values(o.errors).forEach(e=>{(!zn(e)||e.error)&&a(e)}),o.errors=cu(o.errors,e));let u={loaderData:o.loaderData,actionData:o.actionData,errors:uu(o.errors,e)},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},f={manifest:t.assets,branches:n._internalRouteBranches,routeModules:iu(t.routes),staticHandlerContext:o,criticalCss:s,serverHandoffString:bu({...d,criticalCss:s}),serverHandoffStream:Fu(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>lu(t,e)},p=t.entry.module.default;try{return await p(r,o.statusCode,l,f,i)}catch(s){a(s);let c=s;if(Si(s))try{let e=await Wu(s);c=new Rn(s.status,s.statusText,e)}catch{}o=br(n.dataRoutes,o,c),o.errors&&=cu(o.errors,e);let u={loaderData:o.loaderData,actionData:o.actionData,errors:uu(o.errors,e)};f={...f,staticHandlerContext:o,serverHandoffString:bu(d),serverHandoffStream:Fu(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await p(r,o.statusCode,l,f,i)}catch(t){return a(t),Uu(t,e)}}}}async function Vu(e,t,n,r,i,a,o){try{return s(await n.queryRoute(i,{routeId:r,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return s(await e(i))}catch(e){return c(e)}}:void 0,normalizePath:e=>Ou(e,t.basename,t.future)}))}catch(e){return c(e)}function s(e){return Si(e)?e:typeof e==`string`?new Response(e):Response.json(e)}function c(t){if(Si(t))return t;if(zn(t))return o(t),Hu(t,e);if(t instanceof Error&&t.message===`Expected a response from queryRoute`){let t=Error(`Expected a Response to be returned from resource route handler`);return o(t),Uu(t,e)}return o(t),Uu(t,e)}}function Hu(e,t){return Response.json(lu(e.error||Error(`Unexpected Server Error`),t),{status:e.status,statusText:e.statusText})}function Uu(e,t){let n=`Unexpected Server Error`;return t!==`production`&&(n+=`
|
|
47
|
+
|
|
48
|
+
${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":`text/plain`}})}function Wu(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function Gu(e){return`__flash_${e}__`}var Ku=(e={},t=``)=>{let n=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(n)},has(e){return n.has(e)||n.has(Gu(e))},get(e){if(n.has(e))return n.get(e);let t=Gu(e);if(n.has(t)){let e=n.get(t);return n.delete(t),e}},set(e,t){n.set(e,t)},flash(e,t){n.set(Gu(e),t)},unset(e){n.delete(e)}}},qu=e=>e!=null&&typeof e.id==`string`&&e.data!==void 0&&typeof e.has==`function`&&typeof e.get==`function`&&typeof e.set==`function`&&typeof e.flash==`function`&&typeof e.unset==`function`;function Ju({cookie:e,createData:t,readData:n,updateData:r,deleteData:i}){let a=Yl(e)?e:Jl(e?.name||`__session`,e);return Yu(a),{async getSession(e,t){let r=e&&await a.parse(e,t);return Ku(r&&await n(r)||{},r||``)},async commitSession(e,n){let{id:i,data:o}=e,s=n?.maxAge==null?n?.expires==null?a.expires:n.expires:new Date(Date.now()+n.maxAge*1e3);return i?await r(i,o,s):i=await t(o,s),a.serialize(i,n)},async destroySession(e,t){return await i(e.id),a.serialize(``,{...t,maxAge:void 0,expires:new Date(0)})}}}function Yu(e){Ua(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Xu({cookie:e}={}){let t=Yl(e)?e:Jl(e?.name||`__session`,e);return Yu(t),{async getSession(e,n){return Ku(e&&await t.parse(e,n)||{})},async commitSession(e,n){let r=await t.serialize(e.data,n);if(r.length>4096)throw Error(`Cookie length will exceed browser maximum. Length: `+r.length);return r},async destroySession(e,n){return t.serialize(``,{...n,maxAge:void 0,expires:new Date(0)})}}}function Zu({cookie:e}={}){let t=new Map;return Ju({cookie:e,async createData(e,n){let r=Math.random().toString(36).substring(2,10);return t.set(r,{data:e,expires:n}),r},async readData(e){if(t.has(e)){let{data:n,expires:r}=t.get(e);if(!r||r>new Date)return n;r&&t.delete(e)}return null},async updateData(e,n,r){t.set(e,{data:n,expires:r})},async deleteData(e){t.delete(e)}})}function Qu(e,...t){let n=t[0],r=$u(e).replace(/\/:([\w-]+)(\?)?/g,(t,r,i)=>{let a=i===void 0,o=n?.[r];if(a&&o===void 0)throw Error(`Path '${e}' requires param '${r}' but it was not provided`);return o===void 0?``:`/`+o});if(e.endsWith(`*`)){let e=n?.[`*`];e!==void 0&&(r+=`/`+e)}return r||`/`}function $u(e){let t=e.length-1,n=e[t];if(n!==`*`&&n!==`/`)return e;for(t--;t>=0&&e[t]===`/`;t--);return e.slice(0,t+1)}var ed=new TextEncoder,td=`</body></html>`;function q(e){let t=new TextDecoder,n,r=new Promise(e=>n=e),i=!1,a=[],o=null;function s(e){for(let n of a){let r=t.decode(n,{stream:!0});r.endsWith(td)&&(r=r.slice(0,-td.length)),e.enqueue(ed.encode(r))}a.length=0,o=null}return new TransformStream({transform(t,r){a.push(t),!o&&(o=setTimeout(async()=>{s(r),i||(i=!0,nd(e,r).catch(e=>r.error(e)).then(n))},0))},async flush(e){await r,o&&(clearTimeout(o),s(e)),e.enqueue(ed.encode(`</body></html>`))}})}async function nd(e,t){let n=new TextDecoder(`utf-8`,{fatal:!0}),r=e.getReader();try{let e;for(;(e=await r.read())&&!e.done;){let r=e.value;try{rd(JSON.stringify(n.decode(r,{stream:!0})),t)}catch{rd(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...r)))}), m => m.codePointAt(0))`,t)}}}finally{r.releaseLock()}let i=n.decode();i.length&&rd(JSON.stringify(i),t)}function rd(e,t){t.enqueue(ed.encode(`<script>${id(`(self.__FLIGHT_DATA||=[]).push(${e})`)}<\/script>`))}function id(e){return e.replace(/<!--/g,`<\\!--`).replace(/<\/(script)/gi,`</\\$1`)}var ad=class extends O.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:t.error,location:t.location}:{error:null,location:e.location}}render(){return this.state.error?O.createElement(od,{error:this.state.error,renderAppShell:!0}):this.props.children}};function J({renderAppShell:e,title:t,children:n}){return e?O.createElement(`html`,{lang:`en`},O.createElement(`head`,null,O.createElement(`meta`,{charSet:`utf-8`}),O.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),O.createElement(`title`,null,t)),O.createElement(`body`,null,O.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},n))):n}function od({error:e,renderAppShell:t}){console.error(e);let n=O.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
49
|
+
console.log(
|
|
50
|
+
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
51
|
+
);
|
|
52
|
+
`}});if(zn(e))return O.createElement(J,{renderAppShell:t,title:`Unhandled Thrown Response!`},O.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return O.createElement(J,{renderAppShell:t,title:`Application Error!`},O.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),O.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function sd({hasRootLayout:e}){let t=Pa();if(e===void 0)throw Error(`Missing 'hasRootLayout' prop`);return O.createElement(od,{renderAppShell:!e,error:t})}function cd(e){let t={};for(let n of e.matches)ld(t,n);return t}function ld(e,t){t=Array.isArray(t)?t:[t];for(let n of t)e[n.id]={links:n.links,meta:n.meta,default:ud}}var ud=()=>null,dd=`/__manifest`,fd=O.use;function pd(e){if(fd)return fd(e);throw Error(`React Router v7 requires React 19+ for RSC features.`)}async function md({request:e,serverResponse:t,createFromReadableStream:n,renderHTML:r,hydrate:i=!0}){let a=new URL(e.url);if(gd(a)||_d(a)||e.headers.has(`rsc-action-id`)||t.headers.get(`React-Router-Resource`)===`true`)return t;if(!t.body)throw Error(`Missing body in server response`);let o=t.clone(),s=null;i&&(s=t.clone());let c=t.body,l,u=[],d=()=>l?new ReadableStream({start(e){l.forEach(t=>e.enqueue(t)),u.push(e)}}):(l=[],c.pipeThrough(new TransformStream({transform(e,t){l.push(e),t.enqueue(e),u.forEach(t=>t.enqueue(e))},flush(){u.forEach(e=>e.close()),u=[]}}))),f=null,p=()=>{let e=Promise.resolve(n(d()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return e.then(e=>e.type===`render`?e.formState:void 0)}}})},m,h;try{if(!o.body)throw Error(`Failed to clone server response`);let e=await n(o.body);if(t.status===202&&e.type===`redirect`){let n=new Headers(t.headers);return n.delete(`Content-Encoding`),n.delete(`Content-Length`),n.delete(`Content-Type`),n.delete(`X-Remix-Response`),n.set(`Location`,e.location),new Response(s?.body||``,{headers:n,status:e.status,statusText:t.statusText})}let a=new Headers,c=t.status,l=t.statusText,u=await r(p,{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(m=Zi(e.digest),m)return e.digest;let t=Qi(e.digest);if(t)return h=t,c=t.status,l=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)a.append(t,n)}}),d=new Headers(a);for(let[e,n]of t.headers)d.append(e,n);if(d.set(`Content-Type`,`text/html; charset=utf-8`),m)return d.set(`Location`,m.location),new Response(u,{status:m.status,headers:d});let f=new TransformStream({flush(e){m&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${bs(m.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(f),{status:c,statusText:l,headers:d});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(q(s.body)).pipeThrough(f);return new Response(g,{status:c,statusText:l,headers:d})}catch(e){if(e instanceof Response)return e;if(m)return new Response(`Redirect: ${m.location}`,{status:m.status,headers:{Location:m.location}});try{e=h??e;let[a,o]=zn(e)?[e.status,e.statusText]:[500,``],c,l=new Headers,u=await r(()=>{let t=Promise.resolve(n(d())).then(t=>Object.assign(t,{status:a,errors:f?{[f]:e}:{}}));return Object.defineProperties(t,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return t.then(e=>e.type===`render`?e.formState:void 0)}}})},{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(c=Zi(e.digest),c)return e.digest;let t=Qi(e.digest);if(t)return a=t.status,o=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)l.append(t,n)}}),p=new Headers(l);for(let[e,n]of t.headers)p.append(e,n);if(p.set(`Content-Type`,`text/html; charset=utf-8`),c)return p.set(`Location`,c.location),new Response(u,{status:c.status,headers:p});let m=new TransformStream({flush(e){c&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${bs(c.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(m),{status:a,statusText:o,headers:p});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(q(s.body)).pipeThrough(m);return new Response(g,{status:a,statusText:o,headers:p})}catch{}throw e}}function hd({getPayload:e}){let t=e(),n=pd(t);if(n.type===`redirect`)throw new Response(null,{status:n.status,headers:{Location:n.location}});if(n.type!==`render`)return null;let r={...n.loaderData};for(let e of n.matches)pc(e.id,e.clientLoader,e.hasLoader,!1)&&(e.hydrateFallbackElement||!e.hasLoader)&&delete r[e.id];let i={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:n.actionData,actionHeaders:{},basename:n.basename,errors:n.errors,loaderData:r,loaderHeaders:{},location:n.location,statusCode:200,matches:n.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},a=Nl(n.matches.reduceRight((e,t)=>{let n={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(n.children=e),[n]},[]),i),o={future:{v8_middleware:!1,unstable_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:dd}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||dd},routeModules:cd(n)};return O.createElement(Ri.Provider,{value:!0},O.createElement(ad,{location:n.location},O.createElement(kc.Provider,{value:o},O.createElement(kl,{context:i,router:a,hydrate:!1,nonce:n.nonce}))))}function gd(e){return e.pathname.endsWith(`.rsc`)}function _d(e){return e.pathname.endsWith(`.manifest`)}function vd(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Rn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=r.stack,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=r.stack,n[e]=t}}else n[e]=r;return n}function yd({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},s=Yt(t,r,i);if(s)for(let e of s){let t=e.route.id,r=n(t);pc(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var bd=c({HydratedRouter:()=>Ed,RouterProvider:()=>Sd,unstable_RSCHydratedRouter:()=>Nd,unstable_createCallServer:()=>Od,unstable_getRSCStream:()=>Jd}),xd=u(b(),1);function Sd(e){return O.createElement(Za,{flushSync:xd.flushSync,...e})}var Y=null,Cd=null;function wd(){if(!Y&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}Y={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function Td({getContext:e,instrumentations:t}){if(wd(),!Y)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=Y;if(!Y.stateDecodingPromise){let e=Y.context.stream;F(e,`No stream found for single fetch decoding`),Y.context.stream=void 0,Y.stateDecodingPromise=Is(e,window).then(e=>{Y.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(Y.stateDecodingPromise.error)throw Y.stateDecodingPromise.error;if(!Y.stateDecodingPromise.value)throw Y.stateDecodingPromise;let r=cc(Y.manifest.routes,Y.routeModules,Y.context.state,Y.context.ssr,Y.context.isSpaMode),i;if(Y.context.isSpaMode){let{loaderData:e}=Y.context.state;Y.manifest.routes.root?.hasLoader&&e&&`root`in e&&(i={loaderData:{root:e.root}})}else i=yd({state:Y.context.state,routes:r,getRouteInfo:e=>({clientLoader:Y.routeModules[e]?.clientLoader,hasLoader:Y.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:Y.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:Y.context.isSpaMode}),i&&i.errors&&(i.errors=vd(i.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let a=vr({routes:r,history:kt(),basename:Y.context.basename,getContext:e,hydrationData:i,hydrationRouteProperties:Ja,instrumentations:t,mapRouteProperties:qa,future:{v8_passThroughRequests:Y.context.future.v8_passThroughRequests},dataStrategy:Es(()=>a,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.basename,Y.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:bc(()=>a,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.routeDiscovery,Y.context.isSpaMode,Y.context.basename)});return Y.router=a,a.state.initialized&&(Y.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=ac,window.__reactRouterDataRouter=a,a}function Ed(e){Cd||=Td({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=O.useState(void 0);O.useEffect(()=>{},[]),O.useEffect(()=>{},[t]);let[r,i]=O.useState(Cd.state.location);return O.useLayoutEffect(()=>{Y&&Y.router&&!Y.routerInitialized&&(Y.routerInitialized=!0,Y.router.initialize())},[]),O.useLayoutEffect(()=>{if(Y&&Y.router)return Y.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),F(Y,`ssrInfo unavailable for HydratedRouter`),xc(Cd,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.routeDiscovery,Y.context.isSpaMode),O.createElement(O.Fragment,null,O.createElement(kc.Provider,{value:{manifest:Y.manifest,routeModules:Y.routeModules,future:Y.context.future,criticalCss:t,ssr:Y.context.ssr,isSpaMode:Y.context.isSpaMode,routeDiscovery:Y.context.routeDiscovery}},O.createElement(qc,{location:r},O.createElement(Sd,{router:Cd,useTransitions:e.useTransitions,onError:e.onError}))),O.createElement(O.Fragment,null))}var Dd=`/__manifest`;function Od({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:n,fetch:r=fetch}){let i=window;return async(a,o)=>{let s=i.__routerActionID=(i.__routerActionID??=0)+1,c=t(),l=r(new Request(location.href,{body:await n(o,{temporaryReferences:c}),method:`POST`,headers:{Accept:`text/x-component`,"rsc-action-id":a}})).then(t=>{if(!t.body)throw Error(`No response body`);return e(t.body,{temporaryReferences:c})});return O.startTransition(()=>Promise.resolve(l).then(async e=>{if(e.type===`redirect`){if(e.reload||Wd(e.location)){if(Gd(e.location))throw Error(`Invalid redirect location`);window.location.href=e.location;return}O.startTransition(()=>{i.__reactRouterDataRouter.navigate(e.location,{replace:e.replace})});return}if(e.type!==`action`)throw Error(`Unexpected payload type`);let t=await e.rerender;if(t&&0<s&&i.__routerActionID<=s){if(t.type===`redirect`){if(t.reload||Wd(t.location)){if(Gd(t.location))throw Error(`Invalid redirect location`);window.location.href=t.location;return}O.startTransition(()=>{i.__reactRouterDataRouter.navigate(t.location,{replace:t.replace})});return}O.startTransition(()=>{let e;for(let n of t.matches)i.__reactRouterDataRouter.patchRoutes(e?.id??null,[Pd(n)],!0),e=n;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},i.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},i.__reactRouterDataRouter.state.errors,t.errors):null})})}}).catch(()=>{})),l.then(e=>{if(e.type!==`action`&&e.type!==`redirect`)throw Error(`Unexpected payload type`);return e.actionResult})}}function kd({fetchImplementation:e,createFromReadableStream:t,getContext:n,payload:r}){let i=window;if(i.__reactRouterDataRouter&&i.__reactRouterRouteModules)return{router:i.__reactRouterDataRouter,routeModules:i.__reactRouterRouteModules};if(r.type!==`render`)throw Error(`Invalid payload type`);i.__reactRouterRouteModules=i.__reactRouterRouteModules??{},ld(i.__reactRouterRouteModules,r.matches);let a=r.matches.reduceRight((e,t)=>{let n=Pd(t,r);return e.length>0?n.children=e:n.index||(n.children=[]),[n]},[]),o;return i.__reactRouterDataRouter=vr({routes:a,getContext:n,basename:r.basename,history:kt(),hydrationData:yd({state:{loaderData:r.loaderData,actionData:r.actionData,errors:r.errors},routes:a,getRouteInfo:e=>{let t=r.matches.find(t=>t.id===e);return F(t,`Route not found in payload`),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:t.hydrateFallbackElement!=null}},location:r.location,basename:r.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:n,signal:i}){if(r.routeDiscovery.mode===`initial`){o||=(async()=>{if(!r.patches)return;let e=await r.patches;O.startTransition(()=>{e.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Pd(e)])})})})(),await o;return}zd.has(n)||await Vd([n],t,e,i)},dataStrategy:jd(()=>i.__reactRouterDataRouter,!0,r.basename,t,e)}),i.__reactRouterDataRouter.state.initialized?(i.__routerInitialized=!0,i.__reactRouterDataRouter.initialize()):i.__routerInitialized=!1,i.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{e!==void 0&&(i.__routerActionID=(i.__routerActionID??=0)+1)}),i.__reactRouterDataRouter._updateRoutesForHMR=e=>{let t=window.__reactRouterDataRouter.routes,n=[];function r(t,n){return t.map(t=>{let i=e.get(t.id);if(i){let{routeModule:e,hasAction:a,hasComponent:o,hasErrorBoundary:s,hasLoader:c}=i,l=Pd({clientAction:e.clientAction,clientLoader:e.clientLoader,element:t.element,errorElement:t.errorElement,handle:t.handle,hasAction:a,hasComponent:o,hasErrorBoundary:s,hasLoader:c,hydrateFallbackElement:t.hydrateFallbackElement,id:t.id,index:t.index,links:e.links,meta:e.meta,parentId:n,path:t.path,shouldRevalidate:e.shouldRevalidate});return t.children&&(l.children=r(t.children,t.id)),l}let a={...t};return t.children&&(a.children=r(t.children,t.id)),a})}n.push(...r(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(n)},{router:i.__reactRouterDataRouter,routeModules:i.__reactRouterRouteModules}}var Ad=zt();function jd(e,t,n,r,i){let a=Ds(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction}},Md(r,i),t,n,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(Ad,[]);let n=await a(e),r=new Map;for(let e of t.get(Ad))r.has(e.id)||r.set(e.id,[]),r.get(e.id).push(e);return O.startTransition(()=>{for(let t of e.matches){let e=r.get(t.route.id);if(e)for(let t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[Pd(t)],!0)}}),n})}function Md(e,t){return async(n,r,i,a)=>{let{request:o,context:s}=n,c=Ps(o.url,r,i,`rsc`);o.method===`GET`&&(c=Ns(c),a&&c.searchParams.set(`_routes`,a.join(`,`)));let l=await t(new Request(c,await _s(o)));if(l.status>=400&&!l.headers.has(`X-Remix-Response`))throw new Rn(l.status,l.statusText,await l.text());F(l.body,`No response body to decode`);try{let t=await e(l.body,{temporaryReferences:void 0});if(t.type===`redirect`)return{status:l.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if(t.type!==`render`)throw Error(`Unexpected payload type`);s.get(Ad).push(...t.matches);let n={routes:{}},r=Ei(o.method)?`actionData`:`loaderData`;for(let[e,i]of Object.entries(t[r]||{}))n.routes[e]={data:i};if(t.errors)for(let[e,r]of Object.entries(t.errors))n.routes[e]={error:r};return{status:l.status,data:n}}catch(e){throw Error(`Unable to decode RSC response`,{cause:e})}}}function Nd({createFromReadableStream:e,fetch:t=fetch,payload:n,getContext:r}){if(n.type!==`render`)throw Error(`Invalid payload type`);let{routeDiscovery:i}=n,{router:a,routeModules:o}=O.useMemo(()=>kd({payload:n,fetchImplementation:t,getContext:r,createFromReadableStream:e}),[e,n,t,r]);O.useEffect(()=>{Uc()},[]),O.useLayoutEffect(()=>{let e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:s,state:c},l]=O.useState(()=>({routes:Kd(a.routes),state:a.state}));O.useLayoutEffect(()=>a.subscribe(e=>{qd(a.routes,s)&&O.startTransition(()=>{l({routes:Kd(a.routes),state:e})})}),[a.subscribe,s,a]);let u=O.useMemo(()=>({...a,state:c,routes:s}),[a,s,c]);O.useEffect(()=>{if(i.mode===`initial`||window.navigator?.connection?.saveData===!0)return;function n(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;zd.has(n)||Ld.add(n)}async function r(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(n);let r=Array.from(Ld.keys()).filter(e=>zd.has(e)?(Ld.delete(e),!1):!0);if(r.length!==0)try{await Vd(r,e,t)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let a=Ud(r,100);r(),new MutationObserver(()=>a()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]})},[i,e,t]);let d={future:{v8_middleware:!1,unstable_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:Dd}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||Dd},routeModules:o};return O.createElement(Ri.Provider,{value:!0},O.createElement(ad,{location:c.location},O.createElement(kc.Provider,{value:d},O.createElement(Za,{router:u,flushSync:xd.flushSync}))))}function Pd(e,t){let n=t&&e.id in t.loaderData,r=t?.loaderData[e.id],i=t?.errors&&e.id in t.errors,a=t?.errors?.[e.id],o=e.clientLoader?.hydrate===!0||!e.hasLoader||e.hasComponent&&!e.element;F(window.__reactRouterRouteModules),ld(window.__reactRouterRouteModules,e);let s={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,s)=>{try{return await e.clientLoader({...t,serverLoader:()=>{if(Id(`loader`,e.id,e.hasLoader),o){if(n)return r;if(i)throw a}return Fd(s)}})}finally{o=!1}}:((e,t)=>Fd(t)),action:e.clientAction?(t,n)=>e.clientAction({...t,serverAction:async()=>(Id(`action`,e.id,e.hasLoader),await Fd(n))}):e.hasAction?(e,t)=>Fd(t):()=>{throw sc(`action`,e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:e.clientLoader!=null,hasAction:e.hasAction,hasClientAction:e.clientAction!=null};return typeof s.loader==`function`&&(s.loader.hydrate=pc(e.id,e.clientLoader,e.hasLoader,!1)),s}function Fd(e){return F(typeof e==`function`,`Invalid singleFetch parameter`),e()}function Id(e,t,n){if(!n){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(n),new Rn(400,`Bad Request`,Error(n),!0)}}var Ld=new Set,Rd=1e3,zd=new Set;function Bd(e){if(e.length===0)return null;if(e.length===1)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??``).replace(/^\/|\/$/g,``),n=new URL(`${t}/.manifest`,window.location.origin);return n.searchParams.set(`paths`,e.sort().join(`,`)),n}async function Vd(e,t,n,r){let i=Bd(e);if(i==null)return;if(i.toString().length>7680){Ld.clear();return}let a=await n(new Request(i,{signal:r}));if(!a.body||a.status<200||a.status>=300)throw Error(`Unable to fetch new route matches from the server`);let o=await t(a.body,{temporaryReferences:void 0});if(o.type!==`manifest`)throw Error(`Failed to patch routes`);e.forEach(e=>Hd(e,zd));let s=await o.patches;O.startTransition(()=>{s.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Pd(e)])})})}function Hd(e,t){if(t.size>=Rd){let e=t.values().next().value;typeof e==`string`&&t.delete(e)}t.add(e)}function Ud(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Wd(e){return new URL(e,window.location.href).origin!==window.location.origin}function Gd(e){try{return Qr.includes(new URL(e).protocol)}catch{return!1}}function Kd(e){if(e)return e.map(e=>({...e,children:Kd(e.children)}))}function qd(e,t){return e.length===t.length?e.some((e,n)=>e.element!==t[n].element||e.errorElement!==t[n].errorElement||e.hydrateFallbackElement!==t[n].hydrateFallbackElement||e.hasErrorBoundary!==t[n].hasErrorBoundary||e.hasLoader!==t[n].hasLoader||e.hasClientLoader!==t[n].hasClientLoader||e.hasAction!==t[n].hasAction||e.hasClientAction!==t[n].hasClientAction?!0:qd(e.children||[],t[n].children||[])):!0}function Jd(){let e=new TextEncoder,t=null,n=new ReadableStream({start(n){if(typeof window>`u`)return;let r=t=>{typeof t==`string`?n.enqueue(e.encode(t)):n.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(r),window.__FLIGHT_DATA.push=e=>(r(e),0),t=n}});return typeof document<`u`&&document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>{t?.close()}):t?.close(),n}var Yd=c({Await:()=>so,BrowserRouter:()=>tl,Form:()=>sl,HashRouter:()=>nl,IDLE_BLOCKER:()=>lr,IDLE_FETCHER:()=>cr,IDLE_NAVIGATION:()=>sr,Link:()=>al,Links:()=>Fc,MemoryRouter:()=>to,Meta:()=>Bc,NavLink:()=>ol,Navigate:()=>no,NavigationType:()=>Tt,Outlet:()=>ro,PrefetchPageLinks:()=>Ic,Route:()=>io,Router:()=>ao,RouterContextProvider:()=>Vt,RouterProvider:()=>Za,Routes:()=>oo,Scripts:()=>Wc,ScrollRestoration:()=>cl,ServerRouter:()=>Hl,StaticRouter:()=>Ol,StaticRouterProvider:()=>kl,UNSAFE_AwaitContextProvider:()=>Ui,UNSAFE_DataRouterContext:()=>Ii,UNSAFE_DataRouterStateContext:()=>Li,UNSAFE_ErrorResponseImpl:()=>Rn,UNSAFE_FetchersContext:()=>Vi,UNSAFE_FrameworkContext:()=>kc,UNSAFE_LocationContext:()=>Gi,UNSAFE_NavigationContext:()=>Wi,UNSAFE_RSCDefaultRootErrorBoundary:()=>sd,UNSAFE_RemixErrorBoundary:()=>qc,UNSAFE_RouteContext:()=>Ki,UNSAFE_ServerMode:()=>au,UNSAFE_SingleFetchRedirectSymbol:()=>Ss,UNSAFE_ViewTransitionContext:()=>Bi,UNSAFE_WithComponentProps:()=>mo,UNSAFE_WithErrorBoundaryProps:()=>bo,UNSAFE_WithHydrateFallbackProps:()=>_o,UNSAFE_createBrowserHistory:()=>kt,UNSAFE_createClientRoutes:()=>cc,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>ac,UNSAFE_createHashHistory:()=>At,UNSAFE_createMemoryHistory:()=>Ot,UNSAFE_createRouter:()=>vr,UNSAFE_decodeViaTurboStream:()=>Is,UNSAFE_deserializeErrors:()=>vd,UNSAFE_getHydrationData:()=>yd,UNSAFE_getPatchRoutesOnNavigationFunction:()=>bc,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Es,UNSAFE_hydrationRouteProperties:()=>Ja,UNSAFE_invariant:()=>F,UNSAFE_mapRouteProperties:()=>qa,UNSAFE_shouldHydrateRouteLoader:()=>pc,UNSAFE_useFogOFWarDiscovery:()=>xc,UNSAFE_useScrollRestoration:()=>Cl,UNSAFE_withComponentProps:()=>ho,UNSAFE_withErrorBoundaryProps:()=>xo,UNSAFE_withHydrateFallbackProps:()=>vo,createBrowserRouter:()=>Zc,createContext:()=>zt,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createHashRouter:()=>Qc,createMemoryRouter:()=>Ya,createMemorySessionStorage:()=>Zu,createPath:()=>Ft,createRequestHandler:()=>Lu,createRoutesFromChildren:()=>uo,createRoutesFromElements:()=>fo,createRoutesStub:()=>Ul,createSearchParams:()=>Ao,createSession:()=>Ku,createSessionStorage:()=>Ju,createStaticHandler:()=>Ml,createStaticRouter:()=>Nl,data:()=>Pn,generatePath:()=>pn,href:()=>Qu,isCookie:()=>Yl,isRouteErrorResponse:()=>zn,isSession:()=>qu,matchPath:()=>mn,matchRoutes:()=>Yt,parsePath:()=>It,redirect:()=>Fn,redirectDocument:()=>In,renderMatches:()=>V,replace:()=>Ln,resolvePath:()=>xn,unstable_HistoryRouter:()=>rl,unstable_RSCStaticRouter:()=>hd,unstable_routeRSCServerRequest:()=>md,unstable_setDevServerHooks:()=>_u,unstable_usePrompt:()=>El,unstable_useRoute:()=>Va,useActionData:()=>Na,useAsyncError:()=>Fa,useAsyncValue:()=>B,useBeforeUnload:()=>wl,useBlocker:()=>La,useFetcher:()=>vl,useFetchers:()=>yl,useFormAction:()=>_l,useHref:()=>$i,useInRouterContext:()=>ea,useLinkClickHandler:()=>fl,useLoaderData:()=>ja,useLocation:()=>ta,useMatch:()=>ra,useMatches:()=>Aa,useNavigate:()=>oa,useNavigation:()=>Oa,useNavigationType:()=>na,useOutlet:()=>ua,useOutletContext:()=>la,useParams:()=>da,useResolvedPath:()=>fa,useRevalidator:()=>ka,useRouteError:()=>Pa,useRouteLoaderData:()=>Ma,useRoutes:()=>pa,useSearchParams:()=>pl,useSubmit:()=>gl,useViewTransitionState:()=>Dl}),Xd=c({Await:()=>so,BrowserRouter:()=>tl,Form:()=>sl,HashRouter:()=>nl,HydratedRouter:()=>Ed,IDLE_BLOCKER:()=>lr,IDLE_FETCHER:()=>cr,IDLE_NAVIGATION:()=>sr,Link:()=>al,Links:()=>Fc,MemoryRouter:()=>to,Meta:()=>Bc,NavLink:()=>ol,Navigate:()=>no,NavigationType:()=>Tt,Outlet:()=>ro,PrefetchPageLinks:()=>Ic,Route:()=>io,Router:()=>ao,RouterContextProvider:()=>Vt,RouterProvider:()=>Sd,Routes:()=>oo,Scripts:()=>Wc,ScrollRestoration:()=>cl,ServerRouter:()=>Hl,StaticRouter:()=>Ol,StaticRouterProvider:()=>kl,UNSAFE_AwaitContextProvider:()=>Ui,UNSAFE_DataRouterContext:()=>Ii,UNSAFE_DataRouterStateContext:()=>Li,UNSAFE_ErrorResponseImpl:()=>Rn,UNSAFE_FetchersContext:()=>Vi,UNSAFE_FrameworkContext:()=>kc,UNSAFE_LocationContext:()=>Gi,UNSAFE_NavigationContext:()=>Wi,UNSAFE_RSCDefaultRootErrorBoundary:()=>sd,UNSAFE_RemixErrorBoundary:()=>qc,UNSAFE_RouteContext:()=>Ki,UNSAFE_ServerMode:()=>au,UNSAFE_SingleFetchRedirectSymbol:()=>Ss,UNSAFE_ViewTransitionContext:()=>Bi,UNSAFE_WithComponentProps:()=>mo,UNSAFE_WithErrorBoundaryProps:()=>bo,UNSAFE_WithHydrateFallbackProps:()=>_o,UNSAFE_createBrowserHistory:()=>kt,UNSAFE_createClientRoutes:()=>cc,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>ac,UNSAFE_createHashHistory:()=>At,UNSAFE_createMemoryHistory:()=>Ot,UNSAFE_createRouter:()=>vr,UNSAFE_decodeViaTurboStream:()=>Is,UNSAFE_deserializeErrors:()=>vd,UNSAFE_getHydrationData:()=>yd,UNSAFE_getPatchRoutesOnNavigationFunction:()=>bc,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Es,UNSAFE_hydrationRouteProperties:()=>Ja,UNSAFE_invariant:()=>F,UNSAFE_mapRouteProperties:()=>qa,UNSAFE_shouldHydrateRouteLoader:()=>pc,UNSAFE_useFogOFWarDiscovery:()=>xc,UNSAFE_useScrollRestoration:()=>Cl,UNSAFE_withComponentProps:()=>ho,UNSAFE_withErrorBoundaryProps:()=>xo,UNSAFE_withHydrateFallbackProps:()=>vo,createBrowserRouter:()=>Zc,createContext:()=>zt,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createHashRouter:()=>Qc,createMemoryRouter:()=>Ya,createMemorySessionStorage:()=>Zu,createPath:()=>Ft,createRequestHandler:()=>Lu,createRoutesFromChildren:()=>uo,createRoutesFromElements:()=>fo,createRoutesStub:()=>Ul,createSearchParams:()=>Ao,createSession:()=>Ku,createSessionStorage:()=>Ju,createStaticHandler:()=>Ml,createStaticRouter:()=>Nl,data:()=>Pn,generatePath:()=>pn,href:()=>Qu,isCookie:()=>Yl,isRouteErrorResponse:()=>zn,isSession:()=>qu,matchPath:()=>mn,matchRoutes:()=>Yt,parsePath:()=>It,redirect:()=>Fn,redirectDocument:()=>In,renderMatches:()=>V,replace:()=>Ln,resolvePath:()=>xn,unstable_HistoryRouter:()=>rl,unstable_RSCStaticRouter:()=>hd,unstable_routeRSCServerRequest:()=>md,unstable_setDevServerHooks:()=>_u,unstable_usePrompt:()=>El,unstable_useRoute:()=>Va,useActionData:()=>Na,useAsyncError:()=>Fa,useAsyncValue:()=>B,useBeforeUnload:()=>wl,useBlocker:()=>La,useFetcher:()=>vl,useFetchers:()=>yl,useFormAction:()=>_l,useHref:()=>$i,useInRouterContext:()=>ea,useLinkClickHandler:()=>fl,useLoaderData:()=>ja,useLocation:()=>ta,useMatch:()=>ra,useMatches:()=>Aa,useNavigate:()=>oa,useNavigation:()=>Oa,useNavigationType:()=>na,useOutlet:()=>ua,useOutletContext:()=>la,useParams:()=>da,useResolvedPath:()=>fa,useRevalidator:()=>ka,useRouteError:()=>Pa,useRouteLoaderData:()=>Ma,useRoutes:()=>pa,useSearchParams:()=>pl,useSubmit:()=>gl,useViewTransitionState:()=>Dl}),Zd=u(s(((e,t)=>{(function(){var n,r=`4.18.1`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c="Invalid `imports` option passed into `_.template`",l=`__lodash_hash_undefined__`,u=500,d=`__lodash_placeholder__`,f=1,p=2,m=4,h=1,g=2,_=1,v=2,y=4,b=8,x=16,S=32,C=64,w=128,T=256,E=512,ee=30,D=`...`,O=800,te=16,ne=1,re=2,ie=3,k=1/0,ae=9007199254740991,A=17976931348623157e292,j=NaN,oe=4294967295,se=oe-1,ce=oe>>>1,le=[[`ary`,w],[`bind`,_],[`bindKey`,v],[`curry`,b],[`curryRight`,x],[`flip`,E],[`partial`,S],[`partialRight`,C],[`rearg`,T]],M=`[object Arguments]`,N=`[object Array]`,ue=`[object AsyncFunction]`,de=`[object Boolean]`,fe=`[object Date]`,pe=`[object DOMException]`,me=`[object Error]`,he=`[object Function]`,ge=`[object GeneratorFunction]`,_e=`[object Map]`,ve=`[object Number]`,ye=`[object Null]`,be=`[object Object]`,xe=`[object Promise]`,Se=`[object Proxy]`,Ce=`[object RegExp]`,we=`[object Set]`,Te=`[object String]`,Ee=`[object Symbol]`,De=`[object Undefined]`,Oe=`[object WeakMap]`,ke=`[object WeakSet]`,Ae=`[object ArrayBuffer]`,je=`[object DataView]`,Me=`[object Float32Array]`,Ne=`[object Float64Array]`,Pe=`[object Int8Array]`,Fe=`[object Int16Array]`,Ie=`[object Int32Array]`,Le=`[object Uint8Array]`,Re=`[object Uint8ClampedArray]`,ze=`[object Uint16Array]`,Be=`[object Uint32Array]`,Ve=/\b__p \+= '';/g,He=/\b(__p \+=) '' \+/g,Ue=/(__e\(.*?\)|\b__t\)) \+\n'';/g,We=/&(?:amp|lt|gt|quot|#39);/g,Ge=/[&<>"']/g,Ke=RegExp(We.source),qe=RegExp(Ge.source),Je=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,Xe=/<%=([\s\S]+?)%>/g,Ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qe=/^\w*$/,$e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(et.source),nt=/^\s+/,rt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,yt=/['\n\r\u2028\u2029\\]/g,bt=`\\ud800-\\udfff`,xt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,St=`\\u2700-\\u27bf`,P=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ct=`\\xac\\xb1\\xd7\\xf7`,wt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Tt=`\\u2000-\\u206f`,Et=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Dt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Ot=`\\ufe0e\\ufe0f`,kt=Ct+wt+Tt+Et,At=`['’]`,F=`[`+bt+`]`,jt=`[`+kt+`]`,Mt=`[`+xt+`]`,Nt=`\\d+`,Pt=`[`+St+`]`,Ft=`[`+P+`]`,It=`[^`+bt+kt+Nt+St+P+Dt+`]`,Lt=`\\ud83c[\\udffb-\\udfff]`,Rt=`(?:`+Mt+`|`+Lt+`)`,zt=`[^`+bt+`]`,Bt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Vt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ht=`[`+Dt+`]`,Ut=`\\u200d`,Wt=`(?:`+Ft+`|`+It+`)`,Gt=`(?:`+Ht+`|`+It+`)`,Kt=`(?:`+At+`(?:d|ll|m|re|s|t|ve))?`,qt=`(?:`+At+`(?:D|LL|M|RE|S|T|VE))?`,Jt=Rt+`?`,Yt=`[`+Ot+`]?`,Xt=`(?:`+Ut+`(?:`+[zt,Bt,Vt].join(`|`)+`)`+Yt+Jt+`)*`,Zt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Qt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,$t=Yt+Jt+Xt,en=`(?:`+[Pt,Bt,Vt].join(`|`)+`)`+$t,tn=`(?:`+[zt+Mt+`?`,Mt,Bt,Vt,F].join(`|`)+`)`,nn=RegExp(At,`g`),rn=RegExp(Mt,`g`),an=RegExp(Lt+`(?=`+Lt+`)|`+tn+$t,`g`),on=RegExp([Ht+`?`+Ft+`+`+Kt+`(?=`+[jt,Ht,`$`].join(`|`)+`)`,Gt+`+`+qt+`(?=`+[jt,Ht+Wt,`$`].join(`|`)+`)`,Ht+`?`+Wt+`+`+Kt,Ht+`+`+qt,Qt,Zt,Nt,en].join(`|`),`g`),sn=RegExp(`[`+Ut+bt+xt+Ot+`]`),cn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ln=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),un=-1,dn={};dn[Me]=dn[Ne]=dn[Pe]=dn[Fe]=dn[Ie]=dn[Le]=dn[Re]=dn[ze]=dn[Be]=!0,dn[M]=dn[N]=dn[Ae]=dn[de]=dn[je]=dn[fe]=dn[me]=dn[he]=dn[_e]=dn[ve]=dn[be]=dn[Ce]=dn[we]=dn[Te]=dn[Oe]=!1;var fn={};fn[M]=fn[N]=fn[Ae]=fn[je]=fn[de]=fn[fe]=fn[Me]=fn[Ne]=fn[Pe]=fn[Fe]=fn[Ie]=fn[_e]=fn[ve]=fn[be]=fn[Ce]=fn[we]=fn[Te]=fn[Ee]=fn[Le]=fn[Re]=fn[ze]=fn[Be]=!0,fn[me]=fn[he]=fn[Oe]=!1;var pn={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},mn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},hn={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},gn={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},_n=parseFloat,vn=parseInt,yn=typeof global==`object`&&global&&global.Object===Object&&global,bn=typeof self==`object`&&self&&self.Object===Object&&self,xn=yn||bn||Function(`return this`)(),Sn=typeof e==`object`&&e&&!e.nodeType&&e,Cn=Sn&&typeof t==`object`&&t&&!t.nodeType&&t,wn=Cn&&Cn.exports===Sn,Tn=wn&&yn.process,En=function(){try{return Cn&&Cn.require&&Cn.require(`util`).types||Tn&&Tn.binding&&Tn.binding(`util`)}catch{}}(),Dn=En&&En.isArrayBuffer,On=En&&En.isDate,kn=En&&En.isMap,An=En&&En.isRegExp,jn=En&&En.isSet,Mn=En&&En.isTypedArray;function Nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function In(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function Ln(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function zn(e,t){return!!(e!=null&&e.length)&&Zn(e,t,0)>-1}function Bn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Vn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Un(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Wn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Gn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Kn=tr(`length`);function qn(e){return e.split(``)}function Jn(e){return e.match(st)||[]}function Yn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Xn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Zn(e,t,n){return t===t?Dr(e,t,n):Xn(e,$n,n)}function Qn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function $n(e){return e!==e}function er(e,t){var n=e==null?0:e.length;return n?ar(e,t)/n:j}function tr(e){return function(t){return t==null?n:t[e]}}function nr(e){return function(t){return e==null?n:e[t]}}function rr(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function ir(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ar(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function or(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function sr(e,t){return Vn(t,function(t){return[t,e[t]]})}function cr(e){return e&&e.slice(0,jr(e)+1).replace(nt,``)}function lr(e){return function(t){return e(t)}}function ur(e,t){return Vn(t,function(t){return e[t]})}function dr(e,t){return e.has(t)}function fr(e,t){for(var n=-1,r=e.length;++n<r&&Zn(t,e[n],0)>-1;);return n}function pr(e,t){for(var n=e.length;n--&&Zn(t,e[n],0)>-1;);return n}function mr(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var hr=nr(pn),gr=nr(mn);function _r(e){return`\\`+gn[e]}function vr(e,t){return e==null?n:e[t]}function yr(e){return sn.test(e)}function br(e){return cn.test(e)}function xr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Sr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Cr(e,t){return function(n){return e(t(n))}}function wr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===d)&&(e[n]=d,a[i++]=n)}return a}function Tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Er(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Dr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Or(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function kr(e){return yr(e)?Nr(e):Kn(e)}function Ar(e){return yr(e)?Pr(e):qn(e)}function jr(e){for(var t=e.length;t--&&rt.test(e.charAt(t)););return t}var Mr=nr(hn);function Nr(e){for(var t=an.lastIndex=0;an.test(e);)++t;return t}function Pr(e){return e.match(an)||[]}function Fr(e){return e.match(on)||[]}var Ir=(function e(t){t=t==null?xn:Ir.defaults(xn.Object(),t,Ir.pick(xn,ln));var rt=t.Array,st=t.Date,bt=t.Error,xt=t.Function,St=t.Math,P=t.Object,Ct=t.RegExp,wt=t.String,Tt=t.TypeError,Et=rt.prototype,Dt=xt.prototype,Ot=P.prototype,kt=t[`__core-js_shared__`],At=Dt.toString,F=Ot.hasOwnProperty,jt=0,Mt=function(){var e=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Nt=Ot.toString,Pt=At.call(P),Ft=xn._,It=Ct(`^`+At.call(F).replace(et,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Lt=wn?t.Buffer:n,Rt=t.Symbol,zt=t.Uint8Array,Bt=Lt?Lt.allocUnsafe:n,Vt=Cr(P.getPrototypeOf,P),Ht=P.create,Ut=Ot.propertyIsEnumerable,Wt=Et.splice,Gt=Rt?Rt.isConcatSpreadable:n,Kt=Rt?Rt.iterator:n,qt=Rt?Rt.toStringTag:n,Jt=function(){try{var e=as(P,`defineProperty`);return e({},``,{}),e}catch{}}(),Yt=t.clearTimeout!==xn.clearTimeout&&t.clearTimeout,Xt=st&&st.now!==xn.Date.now&&st.now,Zt=t.setTimeout!==xn.setTimeout&&t.setTimeout,Qt=St.ceil,$t=St.floor,en=P.getOwnPropertySymbols,tn=Lt?Lt.isBuffer:n,an=t.isFinite,on=Et.join,sn=Cr(P.keys,P),cn=St.max,pn=St.min,mn=st.now,hn=t.parseInt,gn=St.random,yn=Et.reverse,bn=as(t,`DataView`),Sn=as(t,`Map`),Cn=as(t,`Promise`),Tn=as(t,`Set`),En=as(t,`WeakMap`),Kn=as(P,`create`),qn=En&&new En,nr={},Dr=Ws(bn),Nr=Ws(Sn),Pr=Ws(Cn),Lr=Ws(Tn),Rr=Ws(En),zr=Rt?Rt.prototype:n,Br=zr?zr.valueOf:n,Vr=zr?zr.toString:n;function I(e){if(Nu(e)&&!G(e)&&!(e instanceof L)){if(e instanceof Wr)return e;if(F.call(e,`__wrapped__`))return Ks(e)}return new Wr(e)}var Hr=function(){function e(){}return function(t){if(!Mu(t))return{};if(Ht)return Ht(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Ur(){}function Wr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}I.templateSettings={escape:Je,evaluate:Ye,interpolate:Xe,variable:``,imports:{_:I}},I.prototype=Ur.prototype,I.prototype.constructor=I,Wr.prototype=Hr(Ur.prototype),Wr.prototype.constructor=Wr;function L(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function Gr(){var e=new L(this.__wrapped__);return e.__actions__=_o(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_o(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_o(this.__views__),e}function Kr(){if(this.__filtered__){var e=new L(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function qr(){var e=this.__wrapped__.value(),t=this.__dir__,n=G(e),r=t<0,i=n?e.length:0,a=us(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=pn(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Qa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==re)g=b;else if(!b){if(y==ne)continue outer;break outer}}m[f++]=g}return m}L.prototype=Hr(Ur.prototype),L.prototype.constructor=L;function Jr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yr(){this.__data__=Kn?Kn(null):{},this.size=0}function Xr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Zr(e){var t=this.__data__;if(Kn){var r=t[e];return r===l?n:r}return F.call(t,e)?t[e]:n}function Qr(e){var t=this.__data__;return Kn?t[e]!==n:F.call(t,e)}function $r(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Kn&&t===n?l:t,this}Jr.prototype.clear=Yr,Jr.prototype.delete=Xr,Jr.prototype.get=Zr,Jr.prototype.has=Qr,Jr.prototype.set=$r;function ei(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ti(){this.__data__=[],this.size=0}function ni(e){var t=this.__data__,n=Di(t,e);return n<0?!1:(n==t.length-1?t.pop():Wt.call(t,n,1),--this.size,!0)}function ri(e){var t=this.__data__,r=Di(t,e);return r<0?n:t[r][1]}function ii(e){return Di(this.__data__,e)>-1}function ai(e,t){var n=this.__data__,r=Di(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}ei.prototype.clear=ti,ei.prototype.delete=ni,ei.prototype.get=ri,ei.prototype.has=ii,ei.prototype.set=ai;function oi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function si(){this.size=0,this.__data__={hash:new Jr,map:new(Sn||ei),string:new Jr}}function ci(e){var t=rs(this,e).delete(e);return this.size-=+!!t,t}function li(e){return rs(this,e).get(e)}function ui(e){return rs(this,e).has(e)}function di(e,t){var n=rs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}oi.prototype.clear=si,oi.prototype.delete=ci,oi.prototype.get=li,oi.prototype.has=ui,oi.prototype.set=di;function fi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oi;++t<n;)this.add(e[t])}function pi(e){return this.__data__.set(e,l),this}function mi(e){return this.__data__.has(e)}fi.prototype.add=fi.prototype.push=pi,fi.prototype.has=mi;function hi(e){var t=this.__data__=new ei(e);this.size=t.size}function gi(){this.__data__=new ei,this.size=0}function _i(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function vi(e){return this.__data__.get(e)}function yi(e){return this.__data__.has(e)}function bi(e,t){var n=this.__data__;if(n instanceof ei){var r=n.__data__;if(!Sn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oi(r)}return n.set(e,t),this.size=n.size,this}hi.prototype.clear=gi,hi.prototype.delete=_i,hi.prototype.get=vi,hi.prototype.has=yi,hi.prototype.set=bi;function xi(e,t){var n=G(e),r=!n&&_u(e),i=!n&&!r&&xu(e),a=!n&&!r&&!i&&Ju(e),o=n||r||i||a,s=o?or(e.length,wt):[],c=s.length;for(var l in e)(t||F.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||vs(l,c)))&&s.push(l);return s}function Si(e){var t=e.length;return t?e[Ma(0,t-1)]:n}function Ci(e,t){return Vs(_o(e),Ni(t,0,e.length))}function wi(e){return Vs(_o(e))}function Ti(e,t,r){(r!==n&&!mu(e[t],r)||r===n&&!(t in e))&&ji(e,t,r)}function Ei(e,t,r){var i=e[t];(!(F.call(e,t)&&mu(i,r))||r===n&&!(t in e))&&ji(e,t,r)}function Di(e,t){for(var n=e.length;n--;)if(mu(e[n][0],t))return n;return-1}function Oi(e,t,n,r){return Li(e,function(e,i,a){t(r,e,n(e),a)}),r}function ki(e,t){return e&&vo(t,Dd(t),e)}function Ai(e,t){return e&&vo(t,Od(t),e)}function ji(e,t,n){t==`__proto__`&&Jt?Jt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mi(e,t){for(var r=-1,i=t.length,a=rt(i),o=e==null;++r<i;)a[r]=o?n:Sd(e,t[r]);return a}function Ni(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function R(e,t,r,i,a,o){var s,c=t&f,l=t&p,u=t&m;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Mu(e))return e;var d=G(e);if(d){if(s=ps(e),!c)return _o(e,s)}else{var h=ls(e),g=h==he||h==ge;if(xu(e))return so(e,c);if(h==be||h==M||g&&!a){if(s=l||g?{}:ms(e),!c)return l?bo(e,Ai(s,e)):yo(e,ki(s,e))}else{if(!fn[h])return a?e:{};s=hs(e,h,c)}}o||=new hi;var _=o.get(e);if(_)return _;o.set(e,s),Gu(e)?e.forEach(function(n){s.add(R(n,t,r,n,e,o))}):Pu(e)&&e.forEach(function(n,i){s.set(i,R(n,t,r,i,e,o))});var v=d?n:(u?l?$o:Qo:l?Od:Dd)(e);return Fn(v||e,function(n,i){v&&(i=n,n=e[i]),Ei(s,i,R(n,t,r,i,e,o))}),s}function Pi(e){var t=Dd(e);return function(n){return z(n,e,t)}}function z(e,t,r){var i=r.length;if(e==null)return!i;for(e=P(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function Fi(e,t,r){if(typeof e!=`function`)throw new Tt(o);return Ls(function(){e.apply(n,r)},t)}function Ii(e,t,n,r){var a=-1,o=zn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Vn(t,lr(n))),r?(o=Bn,s=!1):t.length>=i&&(o=dr,s=!1,t=new fi(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var Li=Co(Ki),Ri=Co(qi,!0);function zi(e,t){var n=!0;return Li(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Bi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!qu(s):r(s,c)))var c=s,l=o}return l}function Vi(e,t,r,i){var a=e.length;for(r=q(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:q(i),i<0&&(i+=a),i=r>i?0:nd(i);r<i;)e[r++]=t;return e}function Hi(e,t){var n=[];return Li(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ui(e,t,n,r,i){var a=-1,o=e.length;for(n||=_s,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Ui(s,t-1,n,r,i):Hn(i,s):r||(i[i.length]=s)}return i}var Wi=wo(),Gi=wo(!0);function Ki(e,t){return e&&Wi(e,t,Dd)}function qi(e,t){return e&&Gi(e,t,Dd)}function Ji(e,t){return Rn(t,function(t){return ku(e[t])})}function Yi(e,t){t=ro(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Us(t[r++])];return r&&r==i?e:n}function Xi(e,t,n){var r=t(e);return G(e)?r:Hn(r,n(e))}function Zi(e){return e==null?e===n?De:ye:qt&&qt in P(e)?os(e):js(e)}function Qi(e,t){return e>t}function $i(e,t){return e!=null&&F.call(e,t)}function ea(e,t){return e!=null&&t in P(e)}function ta(e,t,n){return e>=pn(t,n)&&e<cn(t,n)}function na(e,t,r){for(var i=r?Bn:zn,a=e[0].length,o=e.length,s=o,c=rt(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Vn(d,lr(t))),l=pn(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new fi(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?dr(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?dr(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function ra(e,t,n,r){return Ki(e,function(e,i,a){t(r,n(e),i,a)}),r}function ia(e,t,r){t=ro(t,e),e=Ns(e,t);var i=e==null?e:e[Us(_c(t))];return i==null?n:Nn(i,e,r)}function aa(e){return Nu(e)&&Zi(e)==M}function oa(e){return Nu(e)&&Zi(e)==Ae}function sa(e){return Nu(e)&&Zi(e)==fe}function ca(e,t,n,r,i){return e===t?!0:e==null||t==null||!Nu(e)&&!Nu(t)?e!==e&&t!==t:la(e,t,n,r,ca,i)}function la(e,t,n,r,i,a){var o=G(e),s=G(t),c=o?N:ls(e),l=s?N:ls(t);c=c==M?be:c,l=l==M?be:l;var u=c==be,d=l==be,f=c==l;if(f&&xu(e)){if(!xu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new hi,o||Ju(e)?Jo(e,t,n,r,i,a):Yo(e,t,c,n,r,i,a);if(!(n&h)){var p=u&&F.call(e,`__wrapped__`),m=d&&F.call(t,`__wrapped__`);if(p||m){var g=p?e.value():e,_=m?t.value():t;return a||=new hi,i(g,_,n,r,a)}}return f?(a||=new hi,Xo(e,t,n,r,i,a)):!1}function ua(e){return Nu(e)&&ls(e)==_e}function da(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=P(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new hi;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?ca(d,u,h|g,i,f):p))return!1}}return!0}function fa(e){return!Mu(e)||Cs(e)?!1:(ku(e)?It:mt).test(Ws(e))}function pa(e){return Nu(e)&&Zi(e)==Ce}function ma(e){return Nu(e)&&ls(e)==we}function ha(e){return Nu(e)&&ju(e.length)&&!!dn[Zi(e)]}function ga(e){return typeof e==`function`?e:e==null?If:typeof e==`object`?G(e)?Sa(e[0],e[1]):xa(e):Yf(e)}function _a(e){if(!Ts(e))return sn(e);var t=[];for(var n in P(e))F.call(e,n)&&n!=`constructor`&&t.push(n);return t}function va(e){if(!Mu(e))return As(e);var t=Ts(e),n=[];for(var r in e)r==`constructor`&&(t||!F.call(e,r))||n.push(r);return n}function ya(e,t){return e<t}function ba(e,t){var n=-1,r=yu(e)?rt(e.length):[];return Li(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function xa(e){var t=is(e);return t.length==1&&t[0][2]?Ds(t[0][0],t[0][1]):function(n){return n===e||da(n,e,t)}}function Sa(e,t){return bs(e)&&Es(t)?Ds(Us(e),t):function(r){var i=Sd(r,e);return i===n&&i===t?Cd(r,e):ca(t,i,h|g)}}function Ca(e,t,r,i,a){e!==t&&Wi(t,function(o,s){if(a||=new hi,Mu(o))wa(e,t,s,r,Ca,i,a);else{var c=i?i(Fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Ti(e,s,c)}},Od)}function wa(e,t,r,i,a,o,s){var c=Fs(e,r),l=Fs(t,r),u=s.get(l);if(u){Ti(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=G(l),m=!p&&xu(l),h=!p&&!m&&Ju(l);d=l,p||m||h?G(c)?d=c:K(c)?d=_o(c):m?(f=!1,d=so(l,!0)):h?(f=!1,d=V(l,!0)):d=[]:Hu(l)||_u(l)?(d=c,_u(c)?d=id(c):(!Mu(c)||ku(c))&&(d=ms(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Ti(e,r,d)}function Ta(e,t){var r=e.length;if(r)return t+=t<0?r:0,vs(t,r)?e[t]:n}function Ea(e,t,n){t=t.length?Vn(t,function(e){return G(e)?function(t){return Yi(t,e.length===1?e[0]:e)}:e}):[If];var r=-1;return t=Vn(t,lr(H())),ir(ba(e,function(e,n,i){return{criteria:Vn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return mo(e,t,n)})}function Da(e,t){return Oa(e,t,function(t,n){return Cd(e,n)})}function Oa(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Yi(e,o);n(s,o)&&La(a,ro(o,e),s)}return a}function ka(e){return function(t){return Yi(t,e)}}function Aa(e,t,n,r){var i=r?Qn:Zn,a=-1,o=t.length,s=e;for(e===t&&(t=_o(t)),n&&(s=Vn(e,lr(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Wt.call(s,c,1),Wt.call(e,c,1);return e}function ja(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;vs(i)?Wt.call(e,i,1):Ya(e,i)}}return e}function Ma(e,t){return e+$t(gn()*(t-e+1))}function Na(e,t,n,r){for(var i=-1,a=cn(Qt((t-e)/(n||1)),0),o=rt(a);a--;)o[r?a:++i]=e,e+=n;return o}function Pa(e,t){var n=``;if(!e||t<1||t>ae)return n;do t%2&&(n+=e),t=$t(t/2),t&&(e+=e);while(t);return n}function B(e,t){return Rs(Ms(e,t,If),e+``)}function Fa(e){return Si(Kd(e))}function Ia(e,t){var n=Kd(e);return Vs(n,Ni(t,0,n.length))}function La(e,t,r,i){if(!Mu(e))return e;t=ro(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Us(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Mu(d)?d:vs(t[a+1])?[]:{})}Ei(c,l,u),c=c[l]}return e}var Ra=qn?function(e,t){return qn.set(e,t),e}:If,za=Jt?function(e,t){return Jt(e,`toString`,{configurable:!0,enumerable:!1,value:Mf(t),writable:!0})}:If;function Ba(e){return Vs(Kd(e))}function Va(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=rt(i);++r<i;)a[r]=e[r+t];return a}function Ha(e,t){var n;return Li(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Ua(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=ce){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!qu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Wa(e,t,If,n)}function Wa(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=qu(t),u=t===n;a<o;){var d=$t((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=qu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return pn(o,se)}function Ga(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!mu(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ka(e){return typeof e==`number`?e:qu(e)?j:+e}function qa(e){if(typeof e==`string`)return e;if(G(e))return Vn(e,qa)+``;if(qu(e))return Vr?Vr.call(e):``;var t=e+``;return t==`0`&&1/e==-k?`-0`:t}function Ja(e,t,n){var r=-1,a=zn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=Bn;else if(o>=i){var u=t?null:Ho(e);if(u)return Tr(u);s=!1,a=dr,l=new fi}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Ya(e,t){t=ro(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Us(t[n]);if(i===`__proto__`&&!F.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Ns(e,t);return a==null||delete a[Us(_c(t))]}function Xa(e,t,n,r){return La(e,t,n(Yi(e,t)),r)}function Za(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Va(e,r?0:a,r?a+1:i):Va(e,r?a+1:0,r?i:a)}function Qa(e,t){var n=e;return n instanceof L&&(n=n.value()),Un(t,function(e,t){return t.func.apply(t.thisArg,Hn([e],t.args))},n)}function $a(e,t,n){var r=e.length;if(r<2)return r?Ja(e[0]):[];for(var i=-1,a=rt(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Ii(a[i]||o,e[s],t,n));return Ja(Ui(a,1),t,n)}function eo(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function to(e){return K(e)?e:[]}function no(e){return typeof e==`function`?e:If}function ro(e,t){return G(e)?e:bs(e,t)?[e]:Hs(J(e))}var io=B;function ao(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Va(e,t,r)}var oo=Yt||function(e){return xn.clearTimeout(e)};function so(e,t){if(t)return e.slice();var n=e.length,r=Bt?Bt(n):new e.constructor(n);return e.copy(r),r}function co(e){var t=new e.constructor(e.byteLength);return new zt(t).set(new zt(e)),t}function lo(e,t){var n=t?co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function uo(e){var t=new e.constructor(e.source,dt.exec(e));return t.lastIndex=e.lastIndex,t}function fo(e){return Br?P(Br.call(e)):{}}function V(e,t){var n=t?co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function po(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=qu(e),s=t!==n,c=t===null,l=t===t,u=qu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function mo(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=po(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function ho(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=cn(a-o,0),u=rt(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function go(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=cn(a-s,0),d=rt(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function _o(e,t){var n=-1,r=e.length;for(t||=rt(r);++n<r;)t[n]=e[n];return t}function vo(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ji(r,c,l):Ei(r,c,l)}return r}function yo(e,t){return vo(e,ss(e),t)}function bo(e,t){return vo(e,cs(e),t)}function xo(e,t){return function(n,r){var i=G(n)?Pn:Oi,a=t?t():{};return i(n,e,H(r,2),a)}}function So(e){return B(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&ys(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=P(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Co(e,t){return function(n,r){if(n==null)return n;if(!yu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=P(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function wo(e){return function(t,n,r){for(var i=-1,a=P(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function To(e,t,n){var r=t&_,i=Oo(e);function a(){return(this&&this!==xn&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Eo(e){return function(t){t=J(t);var r=yr(t)?Ar(t):n,i=r?r[0]:t.charAt(0),a=r?ao(r,1).join(``):t.slice(1);return i[e]()+a}}function Do(e){return function(t){return Un(Df($d(t).replace(nn,``)),e,``)}}function Oo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hr(e.prototype),r=e.apply(n,t);return Mu(r)?r:n}}function ko(e,t,r){var i=Oo(e);function a(){for(var o=arguments.length,s=rt(o),c=o,l=ns(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:wr(s,l);return o-=u.length,o<r?Bo(e,t,Mo,a.placeholder,n,s,u,n,n,r-o):Nn(this&&this!==xn&&this instanceof a?i:e,this,s)}return a}function Ao(e){return function(t,r,i){var a=P(t);if(!yu(t)){var o=H(r,3);t=Dd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function jo(e){return Zo(function(t){var r=t.length,i=r,a=Wr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new Tt(o);if(a&&!c&&ts(s)==`wrapper`)var c=new Wr([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=ts(s),u=l==`wrapper`?es(s):n;c=u&&Ss(u[0])&&u[1]==(w|b|S|T)&&!u[4].length&&u[9]==1?c[ts(u[0])].apply(c,u[3]):s.length==1&&Ss(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&G(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function Mo(e,t,r,i,a,o,s,c,l,u){var d=t&w,f=t&_,p=t&v,m=t&(b|x),h=t&E,g=p?n:Oo(e);function y(){for(var n=arguments.length,_=rt(n),v=n;v--;)_[v]=arguments[v];if(m)var b=ns(y),x=mr(_,b);if(i&&(_=ho(_,i,a,m)),o&&(_=go(_,o,s,m)),n-=x,m&&n<u){var S=wr(_,b);return Bo(e,t,Mo,y.placeholder,r,_,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=_.length,c?_=Ps(_,c):h&&n>1&&_.reverse(),d&&l<n&&(_.length=l),this&&this!==xn&&this instanceof y&&(w=g||Oo(w)),w.apply(C,_)}return y}function No(e,t){return function(n,r){return ra(n,e,t(r),{})}}function Po(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=qa(r),i=qa(i)):(r=Ka(r),i=Ka(i)),a=e(r,i)}return a}}function Fo(e){return Zo(function(t){return t=Vn(t,lr(H())),B(function(n){var r=this;return e(t,function(e){return Nn(e,r,n)})})})}function Io(e,t){t=t===n?` `:qa(t);var r=t.length;if(r<2)return r?Pa(t,e):t;var i=Pa(t,Qt(e/kr(t)));return yr(t)?ao(Ar(i),0,e).join(``):i.slice(0,e)}function Lo(e,t,n,r){var i=t&_,a=Oo(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=rt(l+s),d=this&&this!==xn&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return Nn(d,i?n:this,u)}return o}function Ro(e){return function(t,r,i){return i&&typeof i!=`number`&&ys(t,r,i)&&(r=i=n),t=td(t),r===n?(r=t,t=0):r=td(r),i=i===n?t<r?1:-1:td(i),Na(t,r,i,e)}}function zo(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=rd(t),n=rd(n)),e(t,n)}}function Bo(e,t,r,i,a,o,s,c,l,u){var d=t&b,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?S:C,t&=~(d?C:S),t&y||(t&=~(_|v));var g=[e,t,a,m,f,h,p,c,l,u],x=r.apply(n,g);return Ss(e)&&Is(x,g),x.placeholder=i,zs(x,e,t)}function Vo(e){var t=St[e];return function(e,n){if(e=rd(e),n=n==null?0:pn(q(n),292),n&&an(e)){var r=(J(e)+`e`).split(`e`);return r=(J(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Ho=Tn&&1/Tr(new Tn([,-0]))[1]==k?function(e){return new Tn(e)}:Wf;function Uo(e){return function(t){var n=ls(t);return n==_e?Sr(t):n==we?Er(t):sr(t,e(t))}}function Wo(e,t,r,i,a,s,c,l){var u=t&v;if(!u&&typeof e!=`function`)throw new Tt(o);var d=i?i.length:0;if(d||(t&=~(S|C),i=a=n),c=c===n?c:cn(q(c),0),l=l===n?l:q(l),d-=a?a.length:0,t&C){var f=i,p=a;i=a=n}var m=u?n:es(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&ks(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:cn(h[9]-d,0),!l&&t&(b|x)&&(t&=~(b|x)),!t||t==_)var g=To(e,t,r);else g=t==b||t==x?ko(e,t,l):(t==S||t==(_|S))&&!a.length?Lo(e,t,r,i):Mo.apply(n,h);return zs((m?Ra:Is)(g,h),e,t)}function Go(e,t,r,i){return e===n||mu(e,Ot[r])&&!F.call(i,r)?t:e}function Ko(e,t,r,i,a,o){return Mu(e)&&Mu(t)&&(o.set(t,e),Ca(e,t,n,Ko,o),o.delete(t)),e}function qo(e){return Hu(e)?n:e}function Jo(e,t,r,i,a,o){var s=r&h,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&g?new fi:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(m){if(!Gn(t,function(e,t){if(!dr(m,t)&&(_===e||a(_,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Yo(e,t,n,r,i,a,o){switch(n){case je:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ae:return!(e.byteLength!=t.byteLength||!a(new zt(e),new zt(t)));case de:case fe:case ve:return mu(+e,+t);case me:return e.name==t.name&&e.message==t.message;case Ce:case Te:return e==t+``;case _e:var s=Sr;case we:var c=r&h;if(s||=Tr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=g,o.set(e,t);var u=Jo(s(e),s(t),r,i,a,o);return o.delete(e),u;case Ee:if(Br)return Br.call(e)==Br.call(t)}return!1}function Xo(e,t,r,i,a,o){var s=r&h,c=Qo(e),l=c.length;if(l!=Qo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:F.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){m=!1;break}g||=d==`constructor`}if(m&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}function Zo(e){return Rs(Ms(e,n,oc),e+``)}function Qo(e){return Xi(e,Dd,ss)}function $o(e){return Xi(e,Od,cs)}var es=qn?function(e){return qn.get(e)}:Wf;function ts(e){for(var t=e.name+``,n=nr[t],r=F.call(nr,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function ns(e){return(F.call(I,`placeholder`)?I:e).placeholder}function H(){var e=I.iteratee||Lf;return e=e===Lf?ga:e,arguments.length?e(arguments[0],arguments[1]):e}function rs(e,t){var n=e.__data__;return xs(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function is(e){for(var t=Dd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Es(i)]}return t}function as(e,t){var r=vr(e,t);return fa(r)?r:n}function os(e){var t=F.call(e,qt),r=e[qt];try{e[qt]=n;var i=!0}catch{}var a=Nt.call(e);return i&&(t?e[qt]=r:delete e[qt]),a}var ss=en?function(e){return e==null?[]:(e=P(e),Rn(en(e),function(t){return Ut.call(e,t)}))}:$f,cs=en?function(e){for(var t=[];e;)Hn(t,ss(e)),e=Vt(e);return t}:$f,ls=Zi;(bn&&ls(new bn(new ArrayBuffer(1)))!=je||Sn&&ls(new Sn)!=_e||Cn&&ls(Cn.resolve())!=xe||Tn&&ls(new Tn)!=we||En&&ls(new En)!=Oe)&&(ls=function(e){var t=Zi(e),r=t==be?e.constructor:n,i=r?Ws(r):``;if(i)switch(i){case Dr:return je;case Nr:return _e;case Pr:return xe;case Lr:return we;case Rr:return Oe}return t});function us(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=pn(t,e+o);break;case`takeRight`:e=cn(e,t-o);break}}return{start:e,end:t}}function ds(e){var t=e.match(at);return t?t[1].split(ot):[]}function fs(e,t,n){t=ro(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Us(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ju(i)&&vs(o,i)&&(G(e)||_u(e)))}function ps(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&F.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ms(e){return typeof e.constructor==`function`&&!Ts(e)?Hr(Vt(e)):{}}function hs(e,t,n){var r=e.constructor;switch(t){case Ae:return co(e);case de:case fe:return new r(+e);case je:return lo(e,n);case Me:case Ne:case Pe:case Fe:case Ie:case Le:case Re:case ze:case Be:return V(e,n);case _e:return new r;case ve:case Te:return new r(e);case Ce:return uo(e);case we:return new r;case Ee:return fo(e)}}function gs(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(it,`{
|
|
53
|
+
/* [wrapped with `+t+`] */
|
|
54
|
+
`)}function _s(e){return G(e)||_u(e)||!!(Gt&&e&&e[Gt])}function vs(e,t){var n=typeof e;return t??=ae,!!t&&(n==`number`||n!=`symbol`&>.test(e))&&e>-1&&e%1==0&&e<t}function ys(e,t,n){if(!Mu(n))return!1;var r=typeof t;return(r==`number`?yu(n)&&vs(t,n.length):r==`string`&&t in n)?mu(n[t],e):!1}function bs(e,t){if(G(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||qu(e)?!0:Qe.test(e)||!Ze.test(e)||t!=null&&e in P(t)}function xs(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ss(e){var t=ts(e),n=I[t];if(typeof n!=`function`||!(t in L.prototype))return!1;if(e===n)return!0;var r=es(n);return!!r&&e===r[0]}function Cs(e){return!!Mt&&Mt in e}var ws=kt?ku:ep;function Ts(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ot)}function Es(e){return e===e&&!Mu(e)}function Ds(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in P(r))}}function Os(e){var t=Xl(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}function ks(e,t){var n=e[1],r=t[1],i=n|r,a=i<(_|v|w),o=r==w&&n==b||r==w&&n==T&&e[7].length<=t[8]||r==(w|T)&&t[7].length<=t[8]&&n==b;if(!(a||o))return e;r&_&&(e[2]=t[2],i|=n&_?0:y);var s=t[3];if(s){var c=e[3];e[3]=c?ho(c,s,t[4]):s,e[4]=c?wr(e[3],d):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?go(c,s,t[6]):s,e[6]=c?wr(e[5],d):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=e[8]==null?t[8]:pn(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function As(e){var t=[];if(e!=null)for(var n in P(e))t.push(n);return t}function js(e){return Nt.call(e)}function Ms(e,t,r){return t=cn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=cn(n.length-t,0),o=rt(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=rt(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Nn(e,this,s)}}function Ns(e,t){return t.length<2?e:Yi(e,Va(t,0,-1))}function Ps(e,t){for(var r=e.length,i=pn(t.length,r),a=_o(e);i--;){var o=t[i];e[i]=vs(o,r)?a[o]:n}return e}function Fs(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Is=Bs(Ra),Ls=Zt||function(e,t){return xn.setTimeout(e,t)},Rs=Bs(za);function zs(e,t,n){var r=t+``;return Rs(e,gs(r,Gs(ds(r),n)))}function Bs(e){var t=0,r=0;return function(){var i=mn(),a=te-(i-r);if(r=i,a>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Ma(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Hs=Os(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace($e,function(e,n,r,i){t.push(r?i.replace(lt,`$1`):n||e)}),t});function Us(e){if(typeof e==`string`||qu(e))return e;var t=e+``;return t==`0`&&1/e==-k?`-0`:t}function Ws(e){if(e!=null){try{return At.call(e)}catch{}try{return e+``}catch{}}return``}function Gs(e,t){return Fn(le,function(n){var r=`_.`+n[0];t&n[1]&&!zn(e,r)&&e.push(r)}),e.sort()}function Ks(e){if(e instanceof L)return e.clone();var t=new Wr(e.__wrapped__,e.__chain__);return t.__actions__=_o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qs(e,t,r){t=(r?ys(e,t,r):t===n)?1:cn(q(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=rt(Qt(i/t));a<i;)s[o++]=Va(e,a,a+=t);return s}function Js(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ys(){var e=arguments.length;if(!e)return[];for(var t=rt(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Hn(G(n)?_o(n):[n],Ui(t,1))}var Xs=B(function(e,t){return K(e)?Ii(e,Ui(t,1,K,!0)):[]}),Zs=B(function(e,t){var r=_c(t);return K(r)&&(r=n),K(e)?Ii(e,Ui(t,1,K,!0),H(r,2)):[]}),Qs=B(function(e,t){var r=_c(t);return K(r)&&(r=n),K(e)?Ii(e,Ui(t,1,K,!0),n,r):[]});function $s(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),Va(e,t<0?0:t,i)):[]}function ec(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),t=i-t,Va(e,0,t<0?0:t)):[]}function tc(e,t){return e&&e.length?Za(e,H(t,3),!0,!0):[]}function nc(e,t){return e&&e.length?Za(e,H(t,3),!0):[]}function rc(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&ys(e,t,n)&&(n=0,r=i),Vi(e,t,n,r)):[]}function ic(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:q(n);return i<0&&(i=cn(r+i,0)),Xn(e,H(t,3),i)}function ac(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=q(r),a=r<0?cn(i+a,0):pn(a,i-1)),Xn(e,H(t,3),a,!0)}function oc(e){return e!=null&&e.length?Ui(e,1):[]}function sc(e){return e!=null&&e.length?Ui(e,k):[]}function cc(e,t){return e!=null&&e.length?(t=t===n?1:q(t),Ui(e,t)):[]}function lc(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];ji(r,i[0],i[1])}return r}function uc(e){return e&&e.length?e[0]:n}function dc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:q(n);return i<0&&(i=cn(r+i,0)),Zn(e,t,i)}function fc(e){return e!=null&&e.length?Va(e,0,-1):[]}var pc=B(function(e){var t=Vn(e,to);return t.length&&t[0]===e[0]?na(t):[]}),mc=B(function(e){var t=_c(e),r=Vn(e,to);return t===_c(r)?t=n:r.pop(),r.length&&r[0]===e[0]?na(r,H(t,2)):[]}),hc=B(function(e){var t=_c(e),r=Vn(e,to);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?na(r,n,t):[]});function gc(e,t){return e==null?``:on.call(e,t)}function _c(e){var t=e==null?0:e.length;return t?e[t-1]:n}function vc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=q(r),a=a<0?cn(i+a,0):pn(a,i-1)),t===t?Or(e,t,a):Xn(e,$n,a,!0)}function yc(e,t){return e&&e.length?Ta(e,q(t)):n}var bc=B(xc);function xc(e,t){return e&&e.length&&t&&t.length?Aa(e,t):e}function Sc(e,t,n){return e&&e.length&&t&&t.length?Aa(e,t,H(n,2)):e}function Cc(e,t,r){return e&&e.length&&t&&t.length?Aa(e,t,n,r):e}var wc=Zo(function(e,t){var n=e==null?0:e.length,r=Mi(e,t);return ja(e,Vn(t,function(e){return vs(e,n)?+e:e}).sort(po)),r});function Tc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=H(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ja(e,i),n}function Ec(e){return e==null?e:yn.call(e)}function Dc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&ys(e,t,r)?(t=0,r=i):(t=t==null?0:q(t),r=r===n?i:q(r)),Va(e,t,r)):[]}function Oc(e,t){return Ua(e,t)}function kc(e,t,n){return Wa(e,t,H(n,2))}function Ac(e,t){var n=e==null?0:e.length;if(n){var r=Ua(e,t);if(r<n&&mu(e[r],t))return r}return-1}function jc(e,t){return Ua(e,t,!0)}function Mc(e,t,n){return Wa(e,t,H(n,2),!0)}function Nc(e,t){if(e!=null&&e.length){var n=Ua(e,t,!0)-1;if(mu(e[n],t))return n}return-1}function Pc(e){return e&&e.length?Ga(e):[]}function Fc(e,t){return e&&e.length?Ga(e,H(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Va(e,1,t):[]}function Lc(e,t,r){return e&&e.length?(t=r||t===n?1:q(t),Va(e,0,t<0?0:t)):[]}function Rc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),t=i-t,Va(e,t<0?0:t,i)):[]}function zc(e,t){return e&&e.length?Za(e,H(t,3),!1,!0):[]}function Bc(e,t){return e&&e.length?Za(e,H(t,3)):[]}var Vc=B(function(e){return Ja(Ui(e,1,K,!0))}),Hc=B(function(e){var t=_c(e);return K(t)&&(t=n),Ja(Ui(e,1,K,!0),H(t,2))}),Uc=B(function(e){var t=_c(e);return t=typeof t==`function`?t:n,Ja(Ui(e,1,K,!0),n,t)});function Wc(e){return e&&e.length?Ja(e):[]}function Gc(e,t){return e&&e.length?Ja(e,H(t,2)):[]}function Kc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ja(e,n,t):[]}function qc(e){if(!(e&&e.length))return[];var t=0;return e=Rn(e,function(e){if(K(e))return t=cn(e.length,t),!0}),or(t,function(t){return Vn(e,tr(t))})}function Jc(e,t){if(!(e&&e.length))return[];var r=qc(e);return t==null?r:Vn(r,function(e){return Nn(t,n,e)})}var Yc=B(function(e,t){return K(e)?Ii(e,t):[]}),Xc=B(function(e){return $a(Rn(e,K))}),Zc=B(function(e){var t=_c(e);return K(t)&&(t=n),$a(Rn(e,K),H(t,2))}),Qc=B(function(e){var t=_c(e);return t=typeof t==`function`?t:n,$a(Rn(e,K),n,t)}),$c=B(qc);function el(e,t){return eo(e||[],t||[],Ei)}function tl(e,t){return eo(e||[],t||[],La)}var nl=B(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Jc(e,r)});function rl(e){var t=I(e);return t.__chain__=!0,t}function il(e,t){return t(e),e}function al(e,t){return t(e)}var ol=Zo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return Mi(t,e)};return t>1||this.__actions__.length||!(i instanceof L)||!vs(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:al,args:[a],thisArg:n}),new Wr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function sl(){return rl(this)}function cl(){return new Wr(this.value(),this.__chain__)}function ll(){this.__values__===n&&(this.__values__=ed(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function ul(){return this}function dl(e){for(var t,r=this;r instanceof Ur;){var i=Ks(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function fl(){var e=this.__wrapped__;if(e instanceof L){var t=e;return this.__actions__.length&&(t=new L(this)),t=t.reverse(),t.__actions__.push({func:al,args:[Ec],thisArg:n}),new Wr(t,this.__chain__)}return this.thru(Ec)}function pl(){return Qa(this.__wrapped__,this.__actions__)}var ml=xo(function(e,t,n){F.call(e,n)?++e[n]:ji(e,n,1)});function hl(e,t,r){var i=G(e)?Ln:zi;return r&&ys(e,t,r)&&(t=n),i(e,H(t,3))}function gl(e,t){return(G(e)?Rn:Hi)(e,H(t,3))}var _l=Ao(ic),vl=Ao(ac);function yl(e,t){return Ui(Ol(e,t),1)}function bl(e,t){return Ui(Ol(e,t),k)}function xl(e,t,r){return r=r===n?1:q(r),Ui(Ol(e,t),r)}function Sl(e,t){return(G(e)?Fn:Li)(e,H(t,3))}function Cl(e,t){return(G(e)?In:Ri)(e,H(t,3))}var wl=xo(function(e,t,n){F.call(e,n)?e[n].push(t):ji(e,n,[t])});function Tl(e,t,n,r){e=yu(e)?e:Kd(e),n=n&&!r?q(n):0;var i=e.length;return n<0&&(n=cn(i+n,0)),Ku(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Zn(e,t,n)>-1}var El=B(function(e,t,n){var r=-1,i=typeof t==`function`,a=yu(e)?rt(e.length):[];return Li(e,function(e){a[++r]=i?Nn(t,e,n):ia(e,t,n)}),a}),Dl=xo(function(e,t,n){ji(e,n,t)});function Ol(e,t){return(G(e)?Vn:ba)(e,H(t,3))}function kl(e,t,r,i){return e==null?[]:(G(t)||(t=t==null?[]:[t]),r=i?n:r,G(r)||(r=r==null?[]:[r]),Ea(e,t,r))}var Al=xo(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function jl(e,t,n){var r=G(e)?Un:rr,i=arguments.length<3;return r(e,H(t,4),n,i,Li)}function Ml(e,t,n){var r=G(e)?Wn:rr,i=arguments.length<3;return r(e,H(t,4),n,i,Ri)}function Nl(e,t){return(G(e)?Rn:Hi)(e,Zl(H(t,3)))}function Pl(e){return(G(e)?Si:Fa)(e)}function Fl(e,t,r){return t=(r?ys(e,t,r):t===n)?1:q(t),(G(e)?Ci:Ia)(e,t)}function Il(e){return(G(e)?wi:Ba)(e)}function Ll(e){if(e==null)return 0;if(yu(e))return Ku(e)?kr(e):e.length;var t=ls(e);return t==_e||t==we?e.size:_a(e).length}function Rl(e,t,r){var i=G(e)?Gn:Ha;return r&&ys(e,t,r)&&(t=n),i(e,H(t,3))}var zl=B(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ys(e,t[0],t[1])?t=[]:n>2&&ys(t[0],t[1],t[2])&&(t=[t[0]]),Ea(e,Ui(t,1),[])}),Bl=Xt||function(){return xn.Date.now()};function Vl(e,t){if(typeof t!=`function`)throw new Tt(o);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Wo(e,w,n,n,n,n,t)}function Ul(e,t){var r;if(typeof t!=`function`)throw new Tt(o);return e=q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var U=B(function(e,t,n){var r=_;if(n.length){var i=wr(n,ns(U));r|=S}return Wo(e,r,t,n,i)}),W=B(function(e,t,n){var r=_|v;if(n.length){var i=wr(n,ns(W));r|=S}return Wo(t,r,e,n,i)});function Wl(e,t,r){t=r?n:t;var i=Wo(e,b,n,n,n,n,n,t);return i.placeholder=Wl.placeholder,i}function Gl(e,t,r){t=r?n:t;var i=Wo(e,x,n,n,n,n,n,t);return i.placeholder=Gl.placeholder,i}function Kl(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Tt(o);t=rd(t)||0,Mu(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?cn(rd(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Ls(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?pn(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Bl();if(v(e))return b(e);l=Ls(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&oo(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Bl())}function C(){var e=Bl(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return oo(l),l=Ls(y,t),h(u)}return l===n&&(l=Ls(y,t)),c}return C.cancel=x,C.flush=S,C}var ql=B(function(e,t){return Fi(e,1,t)}),Jl=B(function(e,t,n){return Fi(e,rd(t)||0,n)});function Yl(e){return Wo(e,E)}function Xl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Tt(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Xl.Cache||oi),n}Xl.Cache=oi;function Zl(e){if(typeof e!=`function`)throw new Tt(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ql(e){return Ul(2,e)}var $l=io(function(e,t){t=t.length==1&&G(t[0])?Vn(t[0],lr(H())):Vn(Ui(t,1),lr(H()));var n=t.length;return B(function(r){for(var i=-1,a=pn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Nn(e,this,r)})}),eu=B(function(e,t){return Wo(e,S,n,t,wr(t,ns(eu)))}),tu=B(function(e,t){return Wo(e,C,n,t,wr(t,ns(tu)))}),nu=Zo(function(e,t){return Wo(e,T,n,n,n,t)});function ru(e,t){if(typeof e!=`function`)throw new Tt(o);return t=t===n?t:q(t),B(e,t)}function iu(e,t){if(typeof e!=`function`)throw new Tt(o);return t=t==null?0:cn(q(t),0),B(function(n){var r=n[t],i=ao(n,0,t);return r&&Hn(i,r),Nn(e,this,i)})}function au(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new Tt(o);return Mu(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Kl(e,t,{leading:r,maxWait:t,trailing:i})}function ou(e){return Hl(e,1)}function su(e,t){return eu(no(t),e)}function cu(){if(!arguments.length)return[];var e=arguments[0];return G(e)?e:[e]}function lu(e){return R(e,m)}function uu(e,t){return t=typeof t==`function`?t:n,R(e,m,t)}function du(e){return R(e,f|m)}function fu(e,t){return t=typeof t==`function`?t:n,R(e,f|m,t)}function pu(e,t){return t==null||z(e,t,Dd(t))}function mu(e,t){return e===t||e!==e&&t!==t}var hu=zo(Qi),gu=zo(function(e,t){return e>=t}),_u=aa(function(){return arguments}())?aa:function(e){return Nu(e)&&F.call(e,`callee`)&&!Ut.call(e,`callee`)},G=rt.isArray,vu=Dn?lr(Dn):oa;function yu(e){return e!=null&&ju(e.length)&&!ku(e)}function K(e){return Nu(e)&&yu(e)}function bu(e){return e===!0||e===!1||Nu(e)&&Zi(e)==de}var xu=tn||ep,Su=On?lr(On):sa;function Cu(e){return Nu(e)&&e.nodeType===1&&!Hu(e)}function wu(e){if(e==null)return!0;if(yu(e)&&(G(e)||typeof e==`string`||typeof e.splice==`function`||xu(e)||Ju(e)||_u(e)))return!e.length;var t=ls(e);if(t==_e||t==we)return!e.size;if(Ts(e))return!_a(e).length;for(var n in e)if(F.call(e,n))return!1;return!0}function Tu(e,t){return ca(e,t)}function Eu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?ca(e,t,n,r):!!i}function Du(e){if(!Nu(e))return!1;var t=Zi(e);return t==me||t==pe||typeof e.message==`string`&&typeof e.name==`string`&&!Hu(e)}function Ou(e){return typeof e==`number`&&an(e)}function ku(e){if(!Mu(e))return!1;var t=Zi(e);return t==he||t==ge||t==ue||t==Se}function Au(e){return typeof e==`number`&&e==q(e)}function ju(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=ae}function Mu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Nu(e){return typeof e==`object`&&!!e}var Pu=kn?lr(kn):ua;function Fu(e,t){return e===t||da(e,t,is(t))}function Iu(e,t,r){return r=typeof r==`function`?r:n,da(e,t,is(t),r)}function Lu(e){return Vu(e)&&e!=+e}function Ru(e){if(ws(e))throw new bt(a);return fa(e)}function zu(e){return e===null}function Bu(e){return e==null}function Vu(e){return typeof e==`number`||Nu(e)&&Zi(e)==ve}function Hu(e){if(!Nu(e)||Zi(e)!=be)return!1;var t=Vt(e);if(t===null)return!0;var n=F.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&At.call(n)==Pt}var Uu=An?lr(An):pa;function Wu(e){return Au(e)&&e>=-ae&&e<=ae}var Gu=jn?lr(jn):ma;function Ku(e){return typeof e==`string`||!G(e)&&Nu(e)&&Zi(e)==Te}function qu(e){return typeof e==`symbol`||Nu(e)&&Zi(e)==Ee}var Ju=Mn?lr(Mn):ha;function Yu(e){return e===n}function Xu(e){return Nu(e)&&ls(e)==Oe}function Zu(e){return Nu(e)&&Zi(e)==ke}var Qu=zo(ya),$u=zo(function(e,t){return e<=t});function ed(e){if(!e)return[];if(yu(e))return Ku(e)?Ar(e):_o(e);if(Kt&&e[Kt])return xr(e[Kt]());var t=ls(e);return(t==_e?Sr:t==we?Tr:Kd)(e)}function td(e){return e?(e=rd(e),e===k||e===-k?(e<0?-1:1)*A:e===e?e:0):e===0?e:0}function q(e){var t=td(e),n=t%1;return t===t?n?t-n:t:0}function nd(e){return e?Ni(q(e),0,oe):0}function rd(e){if(typeof e==`number`)return e;if(qu(e))return j;if(Mu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Mu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=cr(e);var n=pt.test(e);return n||ht.test(e)?vn(e.slice(2),n?2:8):ft.test(e)?j:+e}function id(e){return vo(e,Od(e))}function ad(e){return e?Ni(q(e),-ae,ae):e===0?e:0}function J(e){return e==null?``:qa(e)}var od=So(function(e,t){if(Ts(t)||yu(t)){vo(t,Dd(t),e);return}for(var n in t)F.call(t,n)&&Ei(e,n,t[n])}),sd=So(function(e,t){vo(t,Od(t),e)}),cd=So(function(e,t,n,r){vo(t,Od(t),e,r)}),ld=So(function(e,t,n,r){vo(t,Dd(t),e,r)}),ud=Zo(Mi);function dd(e,t){var n=Hr(e);return t==null?n:ki(n,t)}var fd=B(function(e,t){e=P(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ys(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Od(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||mu(d,Ot[u])&&!F.call(e,u))&&(e[u]=o[u])}return e}),pd=B(function(e){return e.push(n,Ko),Nn(Md,n,e)});function md(e,t){return Yn(e,H(t,3),Ki)}function hd(e,t){return Yn(e,H(t,3),qi)}function gd(e,t){return e==null?e:Wi(e,H(t,3),Od)}function _d(e,t){return e==null?e:Gi(e,H(t,3),Od)}function vd(e,t){return e&&Ki(e,H(t,3))}function yd(e,t){return e&&qi(e,H(t,3))}function bd(e){return e==null?[]:Ji(e,Dd(e))}function xd(e){return e==null?[]:Ji(e,Od(e))}function Sd(e,t,r){var i=e==null?n:Yi(e,t);return i===n?r:i}function Y(e,t){return e!=null&&fs(e,t,$i)}function Cd(e,t){return e!=null&&fs(e,t,ea)}var wd=No(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=Nt.call(t)),e[t]=n},Mf(If)),Td=No(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=Nt.call(t)),F.call(e,t)?e[t].push(n):e[t]=[n]},H),Ed=B(ia);function Dd(e){return yu(e)?xi(e):_a(e)}function Od(e){return yu(e)?xi(e,!0):va(e)}function kd(e,t){var n={};return t=H(t,3),Ki(e,function(e,r,i){ji(n,t(e,r,i),e)}),n}function Ad(e,t){var n={};return t=H(t,3),Ki(e,function(e,r,i){ji(n,r,t(e,r,i))}),n}var jd=So(function(e,t,n){Ca(e,t,n)}),Md=So(function(e,t,n,r){Ca(e,t,n,r)}),Nd=Zo(function(e,t){var n={};if(e==null)return n;var r=!1;t=Vn(t,function(t){return t=ro(t,e),r||=t.length>1,t}),vo(e,$o(e),n),r&&(n=R(n,f|p|m,qo));for(var i=t.length;i--;)Ya(n,t[i]);return n});function Pd(e,t){return Id(e,Zl(H(t)))}var Fd=Zo(function(e,t){return e==null?{}:Da(e,t)});function Id(e,t){if(e==null)return{};var n=Vn($o(e),function(e){return[e]});return t=H(t),Oa(e,n,function(e,n){return t(e,n[0])})}function Ld(e,t,r){t=ro(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Us(t[i])];o===n&&(i=a,o=r),e=ku(o)?o.call(e):o}return e}function Rd(e,t,n){return e==null?e:La(e,t,n)}function zd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:La(e,t,r,i)}var Bd=Uo(Dd),Vd=Uo(Od);function Hd(e,t,n){var r=G(e),i=r||xu(e)||Ju(e);if(t=H(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Mu(e)&&ku(a)?Hr(Vt(e)):{}}return(i?Fn:Ki)(e,function(e,r,i){return t(n,e,r,i)}),n}function Ud(e,t){return e==null?!0:Ya(e,t)}function Wd(e,t,n){return e==null?e:Xa(e,t,no(n))}function Gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Xa(e,t,no(r),i)}function Kd(e){return e==null?[]:ur(e,Dd(e))}function qd(e){return e==null?[]:ur(e,Od(e))}function Jd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rd(r),r=r===r?r:0),t!==n&&(t=rd(t),t=t===t?t:0),Ni(rd(e),t,r)}function Yd(e,t,r){return t=td(t),r===n?(r=t,t=0):r=td(r),e=rd(e),ta(e,t,r)}function Xd(e,t,r){if(r&&typeof r!=`boolean`&&ys(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=td(e),t===n?(t=e,e=0):t=td(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=gn();return pn(e+a*(t-e+_n(`1e-`+((a+``).length-1))),t)}return Ma(e,t)}var Zd=Do(function(e,t,n){return t=t.toLowerCase(),e+(n?Qd(t):t)});function Qd(e){return Ef(J(e).toLowerCase())}function $d(e){return e=J(e),e&&e.replace(_t,hr).replace(rn,``)}function ef(e,t,r){e=J(e),t=qa(t);var i=e.length;r=r===n?i:Ni(q(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function tf(e){return e=J(e),e&&qe.test(e)?e.replace(Ge,gr):e}function nf(e){return e=J(e),e&&tt.test(e)?e.replace(et,`\\$&`):e}var rf=Do(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),af=Do(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),of=Eo(`toLowerCase`);function sf(e,t,n){e=J(e),t=q(t);var r=t?kr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Io($t(i),n)+e+Io(Qt(i),n)}function cf(e,t,n){e=J(e),t=q(t);var r=t?kr(e):0;return t&&r<t?e+Io(t-r,n):e}function lf(e,t,n){e=J(e),t=q(t);var r=t?kr(e):0;return t&&r<t?Io(t-r,n)+e:e}function uf(e,t,n){return n||t==null?t=0:t&&=+t,hn(J(e).replace(nt,``),t||0)}function df(e,t,r){return t=(r?ys(e,t,r):t===n)?1:q(t),Pa(J(e),t)}function ff(){var e=arguments,t=J(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var pf=Do(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function mf(e,t,r){return r&&typeof r!=`number`&&ys(e,t,r)&&(t=r=n),r=r===n?oe:r>>>0,r?(e=J(e),e&&(typeof t==`string`||t!=null&&!Uu(t))&&(t=qa(t),!t&&yr(e))?ao(Ar(e),0,r):e.split(t,r)):[]}var hf=Do(function(e,t,n){return e+(n?` `:``)+Ef(t)});function gf(e,t,n){return e=J(e),n=n==null?0:Ni(q(n),0,e.length),t=qa(t),e.slice(n,n+t.length)==t}function _f(e,t,r){var i=I.templateSettings;r&&ys(e,t,r)&&(t=n),e=J(e),t=ld({},t,i,Go);var a=ld({},t.imports,i.imports,Go),o=Dd(a),l=ur(a,o);Fn(o,function(e){if(ct.test(e))throw new bt(c)});var u,d,f=0,p=t.interpolate||vt,m=`__p += '`,h=Ct((t.escape||vt).source+`|`+p.source+`|`+(p===Xe?ut:vt).source+`|`+(t.evaluate||vt).source+`|$`,`g`),g=`//# sourceURL=`+(F.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++un+`]`)+`
|
|
55
|
+
`;e.replace(h,function(t,n,r,i,a,o){return r||=i,m+=e.slice(f,o).replace(yt,_r),n&&(u=!0,m+=`' +
|
|
56
|
+
__e(`+n+`) +
|
|
57
|
+
'`),a&&(d=!0,m+=`';
|
|
58
|
+
`+a+`;
|
|
59
|
+
__p += '`),r&&(m+=`' +
|
|
60
|
+
((__t = (`+r+`)) == null ? '' : __t) +
|
|
61
|
+
'`),f=o+t.length,t}),m+=`';
|
|
62
|
+
`;var _=F.call(t,`variable`)&&t.variable;if(!_)m=`with (obj) {
|
|
63
|
+
`+m+`
|
|
64
|
+
}
|
|
65
|
+
`;else if(ct.test(_))throw new bt(s);m=(d?m.replace(Ve,``):m).replace(He,`$1`).replace(Ue,`$1;`),m=`function(`+(_||`obj`)+`) {
|
|
66
|
+
`+(_?``:`obj || (obj = {});
|
|
67
|
+
`)+`var __t, __p = ''`+(u?`, __e = _.escape`:``)+(d?`, __j = Array.prototype.join;
|
|
68
|
+
function print() { __p += __j.call(arguments, '') }
|
|
69
|
+
`:`;
|
|
70
|
+
`)+m+`return __p
|
|
71
|
+
}`;var v=Of(function(){return xt(o,g+`return `+m).apply(n,l)});if(v.source=m,Du(v))throw v;return v}function vf(e){return J(e).toLowerCase()}function yf(e){return J(e).toUpperCase()}function bf(e,t,r){if(e=J(e),e&&(r||t===n))return cr(e);if(!e||!(t=qa(t)))return e;var i=Ar(e),a=Ar(t);return ao(i,fr(i,a),pr(i,a)+1).join(``)}function xf(e,t,r){if(e=J(e),e&&(r||t===n))return e.slice(0,jr(e)+1);if(!e||!(t=qa(t)))return e;var i=Ar(e);return ao(i,0,pr(i,Ar(t))+1).join(``)}function Sf(e,t,r){if(e=J(e),e&&(r||t===n))return e.replace(nt,``);if(!e||!(t=qa(t)))return e;var i=Ar(e);return ao(i,fr(i,Ar(t))).join(``)}function Cf(e,t){var r=ee,i=D;if(Mu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?q(t.length):r,i=`omission`in t?qa(t.omission):i}e=J(e);var o=e.length;if(yr(e)){var s=Ar(e);o=s.length}if(r>=o)return e;var c=r-kr(i);if(c<1)return i;var l=s?ao(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Uu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=Ct(a.source,J(dt.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(qa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function wf(e){return e=J(e),e&&Ke.test(e)?e.replace(We,Mr):e}var Tf=Do(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Ef=Eo(`toUpperCase`);function Df(e,t,r){return e=J(e),t=r?n:t,t===n?br(e)?Fr(e):Jn(e):e.match(t)||[]}var Of=B(function(e,t){try{return Nn(e,n,t)}catch(e){return Du(e)?e:new bt(e)}}),kf=Zo(function(e,t){return Fn(t,function(t){t=Us(t),ji(e,t,U(e[t],e))}),e});function Af(e){var t=e==null?0:e.length,n=H();return e=t?Vn(e,function(e){if(typeof e[1]!=`function`)throw new Tt(o);return[n(e[0]),e[1]]}):[],B(function(n){for(var r=-1;++r<t;){var i=e[r];if(Nn(i[0],this,n))return Nn(i[1],this,n)}})}function jf(e){return Pi(R(e,f))}function Mf(e){return function(){return e}}function Nf(e,t){return e==null||e!==e?t:e}var Pf=jo(),Ff=jo(!0);function If(e){return e}function Lf(e){return ga(typeof e==`function`?e:R(e,f))}function Rf(e){return xa(R(e,f))}function zf(e,t){return Sa(e,R(t,f))}var Bf=B(function(e,t){return function(n){return ia(n,e,t)}}),Vf=B(function(e,t){return function(n){return ia(e,n,t)}});function Hf(e,t,n){var r=Dd(t),i=Ji(t,r);n==null&&!(Mu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Ji(t,Dd(t)));var a=!(Mu(n)&&`chain`in n)||!!n.chain,o=ku(e);return Fn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=_o(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Hn([this.value()],arguments))})}),e}function Uf(){return xn._===this&&(xn._=Ft),this}function Wf(){}function Gf(e){return e=q(e),B(function(t){return Ta(t,e)})}var Kf=Fo(Vn),qf=Fo(Ln),Jf=Fo(Gn);function Yf(e){return bs(e)?tr(Us(e)):ka(e)}function Xf(e){return function(t){return e==null?n:Yi(e,t)}}var Zf=Ro(),Qf=Ro(!0);function $f(){return[]}function ep(){return!1}function tp(){return{}}function np(){return``}function rp(){return!0}function ip(e,t){if(e=q(e),e<1||e>ae)return[];var n=oe,r=pn(e,oe);t=H(t),e-=oe;for(var i=or(r,t);++n<e;)t(n);return i}function ap(e){return G(e)?Vn(e,Us):qu(e)?[e]:_o(Hs(J(e)))}function op(e){var t=++jt;return J(e)+t}var sp=Po(function(e,t){return e+t},0),cp=Vo(`ceil`),lp=Po(function(e,t){return e/t},1),up=Vo(`floor`);function dp(e){return e&&e.length?Bi(e,If,Qi):n}function fp(e,t){return e&&e.length?Bi(e,H(t,2),Qi):n}function pp(e){return er(e,If)}function mp(e,t){return er(e,H(t,2))}function hp(e){return e&&e.length?Bi(e,If,ya):n}function gp(e,t){return e&&e.length?Bi(e,H(t,2),ya):n}var _p=Po(function(e,t){return e*t},1),vp=Vo(`round`),yp=Po(function(e,t){return e-t},0);function bp(e){return e&&e.length?ar(e,If):0}function xp(e,t){return e&&e.length?ar(e,H(t,2)):0}return I.after=Vl,I.ary=Hl,I.assign=od,I.assignIn=sd,I.assignInWith=cd,I.assignWith=ld,I.at=ud,I.before=Ul,I.bind=U,I.bindAll=kf,I.bindKey=W,I.castArray=cu,I.chain=rl,I.chunk=qs,I.compact=Js,I.concat=Ys,I.cond=Af,I.conforms=jf,I.constant=Mf,I.countBy=ml,I.create=dd,I.curry=Wl,I.curryRight=Gl,I.debounce=Kl,I.defaults=fd,I.defaultsDeep=pd,I.defer=ql,I.delay=Jl,I.difference=Xs,I.differenceBy=Zs,I.differenceWith=Qs,I.drop=$s,I.dropRight=ec,I.dropRightWhile=tc,I.dropWhile=nc,I.fill=rc,I.filter=gl,I.flatMap=yl,I.flatMapDeep=bl,I.flatMapDepth=xl,I.flatten=oc,I.flattenDeep=sc,I.flattenDepth=cc,I.flip=Yl,I.flow=Pf,I.flowRight=Ff,I.fromPairs=lc,I.functions=bd,I.functionsIn=xd,I.groupBy=wl,I.initial=fc,I.intersection=pc,I.intersectionBy=mc,I.intersectionWith=hc,I.invert=wd,I.invertBy=Td,I.invokeMap=El,I.iteratee=Lf,I.keyBy=Dl,I.keys=Dd,I.keysIn=Od,I.map=Ol,I.mapKeys=kd,I.mapValues=Ad,I.matches=Rf,I.matchesProperty=zf,I.memoize=Xl,I.merge=jd,I.mergeWith=Md,I.method=Bf,I.methodOf=Vf,I.mixin=Hf,I.negate=Zl,I.nthArg=Gf,I.omit=Nd,I.omitBy=Pd,I.once=Ql,I.orderBy=kl,I.over=Kf,I.overArgs=$l,I.overEvery=qf,I.overSome=Jf,I.partial=eu,I.partialRight=tu,I.partition=Al,I.pick=Fd,I.pickBy=Id,I.property=Yf,I.propertyOf=Xf,I.pull=bc,I.pullAll=xc,I.pullAllBy=Sc,I.pullAllWith=Cc,I.pullAt=wc,I.range=Zf,I.rangeRight=Qf,I.rearg=nu,I.reject=Nl,I.remove=Tc,I.rest=ru,I.reverse=Ec,I.sampleSize=Fl,I.set=Rd,I.setWith=zd,I.shuffle=Il,I.slice=Dc,I.sortBy=zl,I.sortedUniq=Pc,I.sortedUniqBy=Fc,I.split=mf,I.spread=iu,I.tail=Ic,I.take=Lc,I.takeRight=Rc,I.takeRightWhile=zc,I.takeWhile=Bc,I.tap=il,I.throttle=au,I.thru=al,I.toArray=ed,I.toPairs=Bd,I.toPairsIn=Vd,I.toPath=ap,I.toPlainObject=id,I.transform=Hd,I.unary=ou,I.union=Vc,I.unionBy=Hc,I.unionWith=Uc,I.uniq=Wc,I.uniqBy=Gc,I.uniqWith=Kc,I.unset=Ud,I.unzip=qc,I.unzipWith=Jc,I.update=Wd,I.updateWith=Gd,I.values=Kd,I.valuesIn=qd,I.without=Yc,I.words=Df,I.wrap=su,I.xor=Xc,I.xorBy=Zc,I.xorWith=Qc,I.zip=$c,I.zipObject=el,I.zipObjectDeep=tl,I.zipWith=nl,I.entries=Bd,I.entriesIn=Vd,I.extend=sd,I.extendWith=cd,Hf(I,I),I.add=sp,I.attempt=Of,I.camelCase=Zd,I.capitalize=Qd,I.ceil=cp,I.clamp=Jd,I.clone=lu,I.cloneDeep=du,I.cloneDeepWith=fu,I.cloneWith=uu,I.conformsTo=pu,I.deburr=$d,I.defaultTo=Nf,I.divide=lp,I.endsWith=ef,I.eq=mu,I.escape=tf,I.escapeRegExp=nf,I.every=hl,I.find=_l,I.findIndex=ic,I.findKey=md,I.findLast=vl,I.findLastIndex=ac,I.findLastKey=hd,I.floor=up,I.forEach=Sl,I.forEachRight=Cl,I.forIn=gd,I.forInRight=_d,I.forOwn=vd,I.forOwnRight=yd,I.get=Sd,I.gt=hu,I.gte=gu,I.has=Y,I.hasIn=Cd,I.head=uc,I.identity=If,I.includes=Tl,I.indexOf=dc,I.inRange=Yd,I.invoke=Ed,I.isArguments=_u,I.isArray=G,I.isArrayBuffer=vu,I.isArrayLike=yu,I.isArrayLikeObject=K,I.isBoolean=bu,I.isBuffer=xu,I.isDate=Su,I.isElement=Cu,I.isEmpty=wu,I.isEqual=Tu,I.isEqualWith=Eu,I.isError=Du,I.isFinite=Ou,I.isFunction=ku,I.isInteger=Au,I.isLength=ju,I.isMap=Pu,I.isMatch=Fu,I.isMatchWith=Iu,I.isNaN=Lu,I.isNative=Ru,I.isNil=Bu,I.isNull=zu,I.isNumber=Vu,I.isObject=Mu,I.isObjectLike=Nu,I.isPlainObject=Hu,I.isRegExp=Uu,I.isSafeInteger=Wu,I.isSet=Gu,I.isString=Ku,I.isSymbol=qu,I.isTypedArray=Ju,I.isUndefined=Yu,I.isWeakMap=Xu,I.isWeakSet=Zu,I.join=gc,I.kebabCase=rf,I.last=_c,I.lastIndexOf=vc,I.lowerCase=af,I.lowerFirst=of,I.lt=Qu,I.lte=$u,I.max=dp,I.maxBy=fp,I.mean=pp,I.meanBy=mp,I.min=hp,I.minBy=gp,I.stubArray=$f,I.stubFalse=ep,I.stubObject=tp,I.stubString=np,I.stubTrue=rp,I.multiply=_p,I.nth=yc,I.noConflict=Uf,I.noop=Wf,I.now=Bl,I.pad=sf,I.padEnd=cf,I.padStart=lf,I.parseInt=uf,I.random=Xd,I.reduce=jl,I.reduceRight=Ml,I.repeat=df,I.replace=ff,I.result=Ld,I.round=vp,I.runInContext=e,I.sample=Pl,I.size=Ll,I.snakeCase=pf,I.some=Rl,I.sortedIndex=Oc,I.sortedIndexBy=kc,I.sortedIndexOf=Ac,I.sortedLastIndex=jc,I.sortedLastIndexBy=Mc,I.sortedLastIndexOf=Nc,I.startCase=hf,I.startsWith=gf,I.subtract=yp,I.sum=bp,I.sumBy=xp,I.template=_f,I.times=ip,I.toFinite=td,I.toInteger=q,I.toLength=nd,I.toLower=vf,I.toNumber=rd,I.toSafeInteger=ad,I.toString=J,I.toUpper=yf,I.trim=bf,I.trimEnd=xf,I.trimStart=Sf,I.truncate=Cf,I.unescape=wf,I.uniqueId=op,I.upperCase=Tf,I.upperFirst=Ef,I.each=Sl,I.eachRight=Cl,I.first=uc,Hf(I,function(){var e={};return Ki(I,function(t,n){F.call(I.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),I.VERSION=r,Fn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){I[e].placeholder=I}),Fn([`drop`,`take`],function(e,t){L.prototype[e]=function(r){r=r===n?1:cn(q(r),0);var i=this.__filtered__&&!t?new L(this):this.clone();return i.__filtered__?i.__takeCount__=pn(r,i.__takeCount__):i.__views__.push({size:pn(r,oe),type:e+(i.__dir__<0?`Right`:``)}),i},L.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Fn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==ne||n==ie;L.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:H(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Fn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);L.prototype[e]=function(){return this[n](1).value()[0]}}),Fn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);L.prototype[e]=function(){return this.__filtered__?new L(this):this[n](1)}}),L.prototype.compact=function(){return this.filter(If)},L.prototype.find=function(e){return this.filter(e).head()},L.prototype.findLast=function(e){return this.reverse().find(e)},L.prototype.invokeMap=B(function(e,t){return typeof e==`function`?new L(this):this.map(function(n){return ia(n,e,t)})}),L.prototype.reject=function(e){return this.filter(Zl(H(e)))},L.prototype.slice=function(e,t){e=q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new L(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},L.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},L.prototype.toArray=function(){return this.take(oe)},Ki(L.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=I[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(I.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof L,l=s[0],u=c||G(t),d=function(e){var t=a.apply(I,Hn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new L(this);var g=e.apply(t,s);return g.__actions__.push({func:al,args:[d],thisArg:n}),new Wr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Fn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Et[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);I.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(G(i)?i:[],e)}return this[n](function(n){return t.apply(G(n)?n:[],e)})}}),Ki(L.prototype,function(e,t){var n=I[t];if(n){var r=n.name+``;F.call(nr,r)||(nr[r]=[]),nr[r].push({name:t,func:n})}}),nr[Mo(n,v).name]=[{name:`wrapper`,func:n}],L.prototype.clone=Gr,L.prototype.reverse=Kr,L.prototype.value=qr,I.prototype.at=ol,I.prototype.chain=sl,I.prototype.commit=cl,I.prototype.next=ll,I.prototype.plant=dl,I.prototype.reverse=fl,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=pl,I.prototype.first=I.prototype.head,Kt&&(I.prototype[Kt]=ul),I})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(xn._=Ir,define(function(){return Ir})):Cn?((Cn.exports=Ir)._=Ir,Sn._=Ir):xn._=Ir}).call(e)}))(),1),Qd=c({ModalDef:()=>jf,ModalHolder:()=>Mf,NiceModalContext:()=>rf,Provider:()=>Af,antdDrawer:()=>Ff,antdDrawerV5:()=>If,antdModal:()=>Nf,antdModalV5:()=>Pf,bootstrapDialog:()=>zf,create:()=>Tf,default:()=>Bf,hide:()=>xf,muiDialog:()=>Lf,muiDialogV5:()=>Rf,reducer:()=>df,register:()=>Ef,remove:()=>Sf,show:()=>bf,unregister:()=>Df,useModal:()=>wf}),$d=function(){return $d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$d.apply(this,arguments)},ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},tf=Symbol(`NiceModalId`),nf={},rf=O.createContext(nf),af=O.createContext(null),of={},sf={},cf=0,lf=function(){throw Error(`No dispatch method detected, did you embed your app with NiceModal.Provider?`)},uf=function(){return`_nice_modal_`+ cf++},df=function(e,t){var n,r,i;switch(e===void 0&&(e=nf),t.type){case`nice-modal/show`:var a=t.payload,o=a.modalId,s=a.args;return $d($d({},e),(n={},n[o]=$d($d({},e[o]),{id:o,args:s,visible:!!sf[o],delayVisible:!sf[o]}),n));case`nice-modal/hide`:var o=t.payload.modalId;return e[o]?$d($d({},e),(r={},r[o]=$d($d({},e[o]),{visible:!1}),r)):e;case`nice-modal/remove`:var o=t.payload.modalId,c=$d({},e);return delete c[o],c;case`nice-modal/set-flags`:var l=t.payload,o=l.modalId,u=l.flags;return $d($d({},e),(i={},i[o]=$d($d({},e[o]),u),i));default:return e}};function ff(e){return of[e]?.comp}function pf(e,t){return{type:`nice-modal/show`,payload:{modalId:e,args:t}}}function mf(e,t){return{type:`nice-modal/set-flags`,payload:{modalId:e,flags:t}}}function hf(e){return{type:`nice-modal/hide`,payload:{modalId:e}}}function gf(e){return{type:`nice-modal/remove`,payload:{modalId:e}}}var _f={},vf={},yf=function(e){return typeof e==`string`?e:(e[tf]||(e[tf]=uf()),e[tf])};function bf(e,t){var n=yf(e);if(typeof e!=`string`&&!of[n]&&Ef(n,e),lf(pf(n,t)),!_f[n]){var r,i,a=new Promise(function(e,t){r=e,i=t});_f[n]={resolve:r,reject:i,promise:a}}return _f[n].promise}function xf(e){var t=yf(e);if(lf(hf(t)),delete _f[t],!vf[t]){var n,r,i=new Promise(function(e,t){n=e,r=t});vf[t]={resolve:n,reject:r,promise:i}}return vf[t].promise}var Sf=function(e){var t=yf(e);lf(gf(t)),delete _f[t],delete vf[t]},Cf=function(e,t){lf(mf(e,t))};function wf(e,t){var n=(0,O.useContext)(rf),r=(0,O.useContext)(af),i=null,a=e&&typeof e!=`string`;if(i=e?yf(e):r,!i)throw Error(`No modal id found in NiceModal.useModal.`);var o=i;(0,O.useEffect)(function(){a&&!of[o]&&Ef(o,e,t)},[a,o,e,t]);var s=n[o],c=(0,O.useCallback)(function(e){return bf(o,e)},[o]),l=(0,O.useCallback)(function(){return xf(o)},[o]),u=(0,O.useCallback)(function(){return Sf(o)},[o]),d=(0,O.useCallback)(function(e){_f[o]?.resolve(e),delete _f[o]},[o]),f=(0,O.useCallback)(function(e){_f[o]?.reject(e),delete _f[o]},[o]),p=(0,O.useCallback)(function(e){vf[o]?.resolve(e),delete vf[o]},[o]);return(0,O.useMemo)(function(){return{id:o,args:s?.args,visible:!!s?.visible,keepMounted:!!s?.keepMounted,show:c,hide:l,remove:u,resolve:d,reject:f,resolveHide:p}},[o,s?.args,s?.visible,s?.keepMounted,c,l,u,d,f,p])}var Tf=function(e){return function(t){var n=t.defaultVisible,r=t.keepMounted,i=t.id,a=ef(t,[`defaultVisible`,`keepMounted`,`id`]),o=wf(i),s=o.args,c=o.show,l=(0,O.useContext)(rf),u=!!l[i];(0,O.useEffect)(function(){return n&&c(),sf[i]=!0,function(){delete sf[i]}},[i,c,n]),(0,O.useEffect)(function(){r&&Cf(i,{keepMounted:!0})},[i,r]);var d=l[i]?.delayVisible;return(0,O.useEffect)(function(){d&&c(s)},[d,s,c]),u?O.createElement(af.Provider,{value:i},O.createElement(e,$d({},a,s))):null}},Ef=function(e,t,n){of[e]?of[e].props=n:of[e]={comp:t,props:n}},Df=function(e){delete of[e]},Of=function(){var e=(0,O.useContext)(rf),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){if(!of[e]&&!sf[e]){console.warn(`No modal found for id: `+e+`. Please check the id or if it is registered or declared via JSX.`);return}});var n=t.filter(function(e){return of[e]}).map(function(e){return $d({id:e},of[e])});return O.createElement(O.Fragment,null,n.map(function(e){return O.createElement(e.comp,$d({key:e.id,id:e.id},e.props))}))},kf=function(e){var t=e.children,n=(0,O.useReducer)(df,nf),r=n[0];return lf=n[1],O.createElement(rf.Provider,{value:r},t,O.createElement(Of,null))},Af=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?O.createElement(kf,null,t):(lf=n,O.createElement(rf.Provider,{value:r},t,O.createElement(Of,null)))},jf=function(e){var t=e.id,n=e.component;return(0,O.useEffect)(function(){return Ef(t,n),function(){Df(t)}},[t,n]),null},Mf=function(e){var t=e.modal,n=e.handler,r=n===void 0?{}:n,i=ef(e,[`modal`,`handler`]),a=(0,O.useMemo)(function(){return uf()},[]),o=typeof t==`string`?of[t]?.comp:t;if(!r)throw Error(`No handler found in NiceModal.ModalHolder.`);if(!o)throw Error(`No modal found for id: `+t+` in NiceModal.ModalHolder.`);return r.show=(0,O.useCallback)(function(e){return bf(a,e)},[a]),r.hide=(0,O.useCallback)(function(){return xf(a)},[a]),O.createElement(o,$d({id:a},i))},Nf=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},Pf=function(e){var t=Nf(e),n=t.onOk,r=t.onCancel,i=t.afterClose;return{open:e.visible,onOk:n,onCancel:r,afterClose:i}},Ff=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},If=function(e){var t=Ff(e),n=t.onClose,r=t.afterVisibleChange;return{open:e.visible,onClose:n,afterOpenChange:r}},Lf=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},Rf=function(e){return{open:e.visible,onClose:function(){return e.hide()},TransitionProps:{onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}},zf=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},Bf={Provider:Af,ModalDef:jf,ModalHolder:Mf,NiceModalContext:rf,create:Tf,register:Ef,getModal:ff,show:bf,hide:xf,remove:Sf,useModal:wf,reducer:df,antdModal:Nf,antdDrawer:Ff,muiDialog:Lf,bootstrapDialog:zf},Vf=u(s(((e,t)=>{var n=[],r={},i={},a=typeof window<`u`&&window.document!==void 0,o=typeof process<`u`&&process.versions!=null&&process.versions.node!=null,s=a&&document.location.search.includes(`JS_PLUGIN_DEBUG`)||o&&{}.JS_PLUGIN_DEBUG;function c(e){return!!(e.constructor&&e.call&&e.apply)}function l(e,t){for(var n=t.split(`.`),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return e}function u(e,t){for(var n=t.split(`.`),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return!0}t.exports={config:{},register:function(e){if(!e.name)throw console.log(`Every plugin should have a name.`),console.log(e),Error(`Every plugin should have a name.`);if(r[e.name])throw Error(`Plugin "`+e.name+`" already exits.`);i={},n=n.slice();var t=n.length;n.forEach((n,r)=>{n.deps&&n.deps.indexOf(e.name)>=0&&(t=Math.min(t,r))}),n.splice(t,0,e),r[e.name]=e,e.initialize&&e.initialize()},unregister:function(e){var t=r[e];if(!t)throw Error(`Plugin "`+e+`" does't exist.`);var a=n.indexOf(t);if(a===-1)throw Error(`Plugin "`+e+`" does't exist in _plugins but in _byName. This seems to be a bug of js-plugin.`);i={},delete r[e],n=n.slice(),n.splice(a,1)},getPlugin:function(e){return r[e]},getPlugins:function(e){return e||=`.`,i[e]||(i[e]=n.filter(t=>{if(t.deps&&t.deps.some(e=>!r[e])){let e=t.deps.filter(e=>!r[e]);return console.log(`Plugin ${t.name} is not loaded because its deps do not exist: ${e}.`),!1}return e===`.`?!0:u(t,e)})),i[e]},processRawPlugins:function(e){e(n),i={}},invoke:function(e){var t=Array.prototype.slice.call(arguments,1);if(!e)throw Error(`Invoke on plugin should have prop argument`);var n=/^!/.test(e),r=this.config.throws||/!$/.test(e);e=e.replace(/^!|!$/g,``);var i=e.split(`.`);i.pop();var a=i.join(`.`);return this.getPlugins(e).map(function(i){var o=l(i,e);if(!c(o)||n)return o;try{return s&&console.log(`Before`,i.name,e,t),o.apply(l(i,a),t)}catch(t){if(console.log(`Failed to invoke plugin: `+i.name+`!`+e),r)throw t;console.log(t)}finally{s&&console.log(`After `,i.name,e,t)}return null})},sort:function(e,t){t||=`order`,e.sort((e,n)=>(e.hasOwnProperty(t)?e[t]:1e6)-(n.hasOwnProperty(t)?n[t]:1e6))}}}))(),1),Hf=c({__DO_NOT_USE__ActionTypes:()=>Kf,applyMiddleware:()=>tp,bindActionCreators:()=>$f,combineReducers:()=>Zf,compose:()=>ep,createStore:()=>Jf,isAction:()=>np,isPlainObject:()=>qf,legacy_createStore:()=>Yf});function Uf(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Wf=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Gf=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Kf={INIT:`@@redux/INIT${Gf()}`,REPLACE:`@@redux/REPLACE${Gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gf()}`};function qf(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jf(e,t,n){if(typeof e!=`function`)throw Error(Uf(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Uf(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Uf(1));return n(Jf)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Uf(3));return i}function d(e){if(typeof e!=`function`)throw Error(Uf(4));if(c)throw Error(Uf(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Uf(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!qf(e))throw Error(Uf(7));if(e.type===void 0)throw Error(Uf(8));if(typeof e.type!=`string`)throw Error(Uf(17));if(c)throw Error(Uf(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Uf(10));r=e,f({type:Kf.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Uf(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Wf](){return this}}}return f({type:Kf.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Wf]:m}}function Yf(e,t,n){return Jf(e,t,n)}function Xf(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Kf.INIT})===void 0)throw Error(Uf(12));if(n(void 0,{type:Kf.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Uf(13))})}function Zf(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Xf(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Uf(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function Qf(e,t){return function(...n){return t(e.apply(this,n))}}function $f(e,t){if(typeof e==`function`)return Qf(e,t);if(typeof e!=`object`||!e)throw Error(Uf(16));let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=Qf(i,t))}return n}function ep(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function tp(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Uf(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ep(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function np(e){return qf(e)&&`type`in e&&typeof e.type==`string`}var rp=c({thunk:()=>ap,withExtraArgument:()=>op});function ip(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var ap=ip(),op=ip,sp=c({default:()=>cp}),cp={},lp=c({default:()=>dp}),up=[];function dp(e=cp,t){let n;switch(t.type){default:n=e;break}return up.reduce((e,n)=>n(e,t),n)}var fp=c({default:()=>pp}),pp={},mp=c({default:()=>gp}),hp=[];function gp(e=pp,t){let n;switch(t.type){default:n=e;break}return hp.reduce((e,n)=>n(e,t),n)}var _p=c({default:()=>vp}),vp={subAppState:{}},yp=c({SUB_APP_CLEAR_SUB_APP_STATE:()=>xp,SUB_APP_SET_SUB_APP_STATE:()=>bp}),bp=`SUB_APP_SET_SUB_APP_STATE`,xp=`SUB_APP_CLEAR_SUB_APP_STATE`,Sp=c({clearSubAppState:()=>wp,reducer:()=>Ep,setSubAppState:()=>Cp,useSetSubAppState:()=>Tp});function Cp(e){return{type:bp,data:e}}function wp(){return{type:xp}}function Tp(){let e=dt();return{subAppState:mt(e=>e.subApp.subAppState),setSubAppState:(0,O.useCallback)((...t)=>e(Cp(...t)),[e]),clearSubAppState:(0,O.useCallback)((...t)=>e(wp(...t)),[e])}}function Ep(e,t){switch(t.type){case bp:return{...e,subAppState:t.data};case xp:return{...e,subAppState:{}};default:return e}}var Dp=c({default:()=>kp}),Op=[Ep];function kp(e=vp,t){let n;switch(t.type){default:n=e;break}return Op.reduce((e,n)=>n(e,t),n)}var Ap=c({default:()=>Mp}),jp={modals:Bf.reducer,home:dp,common:gp,subApp:kp},Mp=()=>(Vf.default.getPlugins(`reducer`).forEach(e=>{let t=Zd.default.camelCase(`plugin-${e.name}`);jp[t]?console.error(`Duplicated reducer key for plugin: `,e.name):jp[t]=e.reducer}),Vf.default.getPlugins(`reducers`).forEach(e=>{Object.keys(e.reducers).forEach(t=>{jp[t]=e.reducers[t]})}),Zf(jp)),Np=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.reduxLogger=n.reduxLogger||{})})(e,function(e){function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,`kind`,{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,`path`,{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,`E`,e),Object.defineProperty(this,`lhs`,{value:t,enumerable:!0}),Object.defineProperty(this,`rhs`,{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,`N`,e),Object.defineProperty(this,`rhs`,{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,`D`,e),Object.defineProperty(this,`lhs`,{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,`A`,e),Object.defineProperty(this,`index`,{value:t,enumerable:!0}),Object.defineProperty(this,`item`,{value:n,enumerable:!0})}function s(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function c(e){var t=e===void 0?`undefined`:O(e);return t===`object`?e===Math?`math`:e===null?`null`:Array.isArray(e)?`array`:Object.prototype.toString.call(e)===`[object Date]`?`date`:typeof e.toString==`function`&&/^\/.*\//.test(e.toString())?`regexp`:`object`:t}function l(e,t,n,u,d,f,p){d||=[],p||=[];var m=d.slice(0);if(f!==void 0){if(u){if(typeof u==`function`&&u(m,f))return;if((u===void 0?`undefined`:O(u))===`object`){if(u.prefilter&&u.prefilter(m,f))return;if(u.normalize){var h=u.normalize(m,f,e,t);h&&(e=h[0],t=h[1])}}}m.push(f)}c(e)===`regexp`&&c(t)===`regexp`&&(e=e.toString(),t=t.toString());var g=e===void 0?`undefined`:O(e),_=t===void 0?`undefined`:O(t),v=g!==`undefined`||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(f),y=_!==`undefined`||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(f);if(!v&&y)n(new i(m,t));else if(!y&&v)n(new a(m,e));else if(c(e)!==c(t))n(new r(m,e,t));else if(c(e)===`date`&&e-t!==0)n(new r(m,e,t));else if(g===`object`&&e!==null&&t!==null)if(p.filter(function(t){return t.lhs===e}).length)e!==t&&n(new r(m,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var b;for(e.length,b=0;b<e.length;b++)b>=t.length?n(new o(m,b,new a(void 0,e[b]))):l(e[b],t[b],n,u,m,b,p);for(;b<t.length;)n(new o(m,b,new i(void 0,t[b++])))}else{var x=Object.keys(e),S=Object.keys(t);x.forEach(function(r,i){var a=S.indexOf(r);a>=0?(l(e[r],t[r],n,u,m,r,p),S=s(S,a)):l(e[r],void 0,n,u,m,r,p)}),S.forEach(function(e){l(void 0,t[e],n,u,m,e,p)})}--p.length}else e!==t&&(g===`number`&&isNaN(e)&&isNaN(t)||n(new r(m,e,t)))}function u(e,t,n,r){return r||=[],l(e,t,function(e){e&&r.push(e)},n),r.length?r:void 0}function d(e,t,n){if(n.path&&n.path.length){var r,i=e[t],a=n.path.length-1;for(r=0;r<a;r++)i=i[n.path[r]];switch(n.kind){case`A`:d(i[n.path[r]],n.index,n.item);break;case`D`:delete i[n.path[r]];break;case`E`:case`N`:i[n.path[r]]=n.rhs}}else switch(n.kind){case`A`:d(e[t],n.index,n.item);break;case`D`:e=s(e,t);break;case`E`:case`N`:e[t]=n.rhs}return e}function f(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,i=-1,a=n.path?n.path.length-1:0;++i<a;)r[n.path[i]]===void 0&&(r[n.path[i]]=typeof n.path[i]==`number`?[]:{}),r=r[n.path[i]];switch(n.kind){case`A`:d(n.path?r[n.path[i]]:r,n.index,n.item);break;case`D`:delete r[n.path[i]];break;case`E`:case`N`:r[n.path[i]]=n.rhs}}}function p(e,t,n){if(n.path&&n.path.length){var r,i=e[t],a=n.path.length-1;for(r=0;r<a;r++)i=i[n.path[r]];switch(n.kind){case`A`:p(i[n.path[r]],n.index,n.item);break;case`D`:i[n.path[r]]=n.lhs;break;case`E`:i[n.path[r]]=n.lhs;break;case`N`:delete i[n.path[r]]}}else switch(n.kind){case`A`:p(e[t],n.index,n.item);break;case`D`:e[t]=n.lhs;break;case`E`:e[t]=n.lhs;break;case`N`:e=s(e,t)}return e}function m(e,t,n){if(e&&t&&n&&n.kind){var r,i,a=e;for(i=n.path.length-1,r=0;r<i;r++)a[n.path[r]]===void 0&&(a[n.path[r]]={}),a=a[n.path[r]];switch(n.kind){case`A`:p(a[n.path[r]],n.index,n.item);break;case`D`:a[n.path[r]]=n.lhs;break;case`E`:a[n.path[r]]=n.lhs;break;case`N`:delete a[n.path[r]]}}}function h(e,t,n){e&&t&&l(e,t,function(r){n&&!n(e,t,r)||f(e,t,r)})}function g(e){return`color: `+re[e].color+`; font-weight: bold`}function _(e){var t=e.kind,n=e.path,r=e.lhs,i=e.rhs,a=e.index,o=e.item;switch(t){case`E`:return[n.join(`.`),r,`→`,i];case`N`:return[n.join(`.`),i];case`D`:return[n.join(`.`)];case`A`:return[n.join(`.`)+`[`+a+`]`,o];default:return[]}}function v(e,t,n,r){var i=u(e,t);try{r?n.groupCollapsed(`diff`):n.group(`diff`)}catch{n.log(`diff`)}i?i.forEach(function(e){var t=e.kind,r=_(e);n.log.apply(n,[`%c `+re[t].text,g(t)].concat(te(r)))}):n.log(`—— no diff ——`);try{n.groupEnd()}catch{n.log(`—— diff end —— `)}}function y(e,t,n,r){switch(e===void 0?`undefined`:O(e)){case`object`:return typeof e[r]==`function`?e[r].apply(e,te(n)):e[r];case`function`:return e(t);default:return e}}function b(e){var t=e.timestamp,n=e.duration;return function(e,r,i){var a=[`action`];return a.push(`%c`+String(e.type)),t&&a.push(`%c@ `+r),n&&a.push(`%c(in `+i.toFixed(2)+` ms)`),a.join(` `)}}function x(e,t){var n=t.logger,r=t.actionTransformer,i=t.titleFormatter,a=i===void 0?b(t):i,o=t.collapsed,s=t.colors,c=t.level,l=t.diff,u=t.titleFormatter===void 0;e.forEach(function(i,d){var f=i.started,p=i.startedTime,m=i.action,h=i.prevState,g=i.error,_=i.took,b=i.nextState,x=e[d+1];x&&(b=x.prevState,_=x.started-f);var S=r(m),C=typeof o==`function`?o(function(){return b},m,i):o,w=ee(p),T=s.title?`color: `+s.title(S)+`;`:``,E=[`color: gray; font-weight: lighter;`];E.push(T),t.timestamp&&E.push(`color: gray; font-weight: lighter;`),t.duration&&E.push(`color: gray; font-weight: lighter;`);var D=a(S,w,_);try{C?s.title&&u?n.groupCollapsed.apply(n,[`%c `+D].concat(E)):n.groupCollapsed(D):s.title&&u?n.group.apply(n,[`%c `+D].concat(E)):n.group(D)}catch{n.log(D)}var O=y(c,S,[h],`prevState`),te=y(c,S,[S],`action`),ne=y(c,S,[g,h],`error`),re=y(c,S,[b],`nextState`);if(O)if(s.prevState){var ie=`color: `+s.prevState(h)+`; font-weight: bold`;n[O](`%c prev state`,ie,h)}else n[O](`prev state`,h);if(te)if(s.action){var k=`color: `+s.action(S)+`; font-weight: bold`;n[te](`%c action `,k,S)}else n[te](`action `,S);if(g&&ne)if(s.error){var ae=`color: `+s.error(g,h)+`; font-weight: bold;`;n[ne](`%c error `,ae,g)}else n[ne](`error `,g);if(re)if(s.nextState){var A=`color: `+s.nextState(b)+`; font-weight: bold`;n[re](`%c next state`,A,b)}else n[re](`next state`,b);l&&v(h,b,n,C);try{n.groupEnd()}catch{n.log(`—— log end ——`)}})}function S(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Object.assign({},ie,e),n=t.logger,r=t.stateTransformer,i=t.errorTransformer,a=t.predicate,o=t.logErrors,s=t.diffPredicate;if(n===void 0)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error(`[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:
|
|
72
|
+
// Logger with default options
|
|
73
|
+
import { logger } from 'redux-logger'
|
|
74
|
+
const store = createStore(
|
|
75
|
+
reducer,
|
|
76
|
+
applyMiddleware(logger)
|
|
77
|
+
)
|
|
78
|
+
// Or you can create your own logger with custom options http://bit.ly/redux-logger-options
|
|
79
|
+
import createLogger from 'redux-logger'
|
|
80
|
+
const logger = createLogger({
|
|
81
|
+
// ...options
|
|
82
|
+
});
|
|
83
|
+
const store = createStore(
|
|
84
|
+
reducer,
|
|
85
|
+
applyMiddleware(logger)
|
|
86
|
+
)
|
|
87
|
+
`),function(){return function(e){return function(t){return e(t)}}};var c=[];return function(e){var n=e.getState;return function(e){return function(l){if(typeof a==`function`&&!a(n,l))return e(l);var u={};c.push(u),u.started=D.now(),u.startedTime=new Date,u.prevState=r(n()),u.action=l;var d=void 0;if(o)try{d=e(l)}catch(e){u.error=i(e)}else d=e(l);u.took=D.now()-u.started,u.nextState=r(n());var f=t.diff&&typeof s==`function`?s(n,l):t.diff;if(x(c,Object.assign({},t,{diff:f})),c.length=0,u.error)throw u.error;return d}}}}var C,w,T=function(e,t){return Array(t+1).join(e)},E=function(e,t){return T(`0`,t-e.toString().length)+e},ee=function(e){return E(e.getHours(),2)+`:`+E(e.getMinutes(),2)+`:`+E(e.getSeconds(),2)+`.`+E(e.getMilliseconds(),3)},D=typeof performance<`u`&&performance!==null&&typeof performance.now==`function`?performance:Date,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},te=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},ne=[];C=(typeof global>`u`?`undefined`:O(global))===`object`&&global?global:typeof window<`u`?window:{},w=C.DeepDiff,w&&ne.push(function(){w!==void 0&&C.DeepDiff===u&&(C.DeepDiff=w,w=void 0)}),t(r,n),t(i,n),t(a,n),t(o,n),Object.defineProperties(u,{diff:{value:u,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:h,enumerable:!0},applyChange:{value:f,enumerable:!0},revertChange:{value:m,enumerable:!0},isConflict:{value:function(){return w!==void 0},enumerable:!0},noConflict:{value:function(){return ne&&=(ne.forEach(function(e){e()}),null),u},enumerable:!0}});var re={E:{color:`#2196F3`,text:`CHANGED:`},N:{color:`#4CAF50`,text:`ADDED:`},D:{color:`#F44336`,text:`DELETED:`},A:{color:`#2196F3`,text:`ARRAY:`}},ie={level:`log`,logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return`inherit`},prevState:function(){return`#9E9E9E`},action:function(){return`#03A9F4`},nextState:function(){return`#4CAF50`},error:function(){return`#F20404`}},diff:!1,diffPredicate:void 0,transformer:void 0},k=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.dispatch,n=e.getState;return typeof t==`function`||typeof n==`function`?S()({dispatch:t,getState:n}):void console.error(`
|
|
88
|
+
[redux-logger v3] BREAKING CHANGE
|
|
89
|
+
[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.
|
|
90
|
+
[redux-logger v3] Change
|
|
91
|
+
[redux-logger v3] import createLogger from 'redux-logger'
|
|
92
|
+
[redux-logger v3] to
|
|
93
|
+
[redux-logger v3] import { createLogger } from 'redux-logger'
|
|
94
|
+
`)};e.defaults=ie,e.createLogger=S,e.logger=k,e.default=k,Object.defineProperty(e,`__esModule`,{value:!0})})})),Pp=c({default:()=>Lp}),Fp=[ap],Ip=e=>e;function Lp(e){return Jf(Mp(),e,ep(tp(...Fp),Ip))}var Rp=c({default:()=>zp}),zp={store:null,getStore(){return this.store||=Lp(),this.store},getState(){return this.getStore().getState()},dispatch(e){return this.getStore().dispatch(e)},subscribe(e){return this.getStore().subscribe(e)},replaceReducer(e){return this.getStore().replaceReducer(e)}},Bp=c({default:()=>Vp});function Vp(){let e=oa();(0,O.useEffect)(()=>(window.MUSE_GLOBAL?.msgEngine?.addListener(`muse-react_history`,t=>{let n=document.location.href.replace(document.location.origin,``);t.type===`parent-route-change`&&t.path!==n&&(console.log(`parent-route-change: `,t.path),e(t.path))}),()=>{window.MUSE_GLOBAL?.msgEngine?.removeListener(`muse-react_history`)}),[e])}var Hp=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Up=s((e=>{})),Wp=s(((e,t)=>{t.exports=Hp()})),Gp=c({default:()=>Kp}),X=u(Wp(),1);function Kp({children:e}){let t=Vf.default.getPlugins(`rootComponent`),n=Vf.default.invoke(`!home.mainLayout`);if(Vp(),n.length>1){let e=Vf.default.getPlugins(`home.mainLayout`).map(e=>e.name);return(0,X.jsxs)(`div`,{style:{color:`red`,margin:`20px`},children:[`Error: multiple layouts found from plugins: `,e.join(`, `),`. Each application should only have one main layout.`]})}let r=n[0],i=r?(0,X.jsx)(r,{children:e}):e;return(0,X.jsxs)(`div`,{className:`home-app muse-app`,children:[(0,X.jsx)(`div`,{className:`muse-app_main-page-container`,children:i}),(0,X.jsx)(`div`,{className:`muse-app_plugin-root-placeholder`,children:t.map(e=>(0,X.jsx)(e.rootComponent,{},e.name))})]})}var qp=c({default:()=>Jp}),Jp=``+new URL(`assets/logo-V3RbDVED.png`,import.meta.url).href,Yp=c({default:()=>Xp});function Xp(){return(0,X.jsxs)(`div`,{className:`home-homepage`,children:[(0,X.jsxs)(`header`,{className:`app-header`,children:[(0,X.jsx)(`img`,{src:Jp,className:`app-logo`,alt:`logo`}),(0,X.jsx)(`h1`,{className:`app-title`,children:`Welcome to Muse!`})]}),(0,X.jsxs)(`div`,{className:`app-intro`,children:[(0,X.jsx)(`p`,{className:`memo`,children:`This is the default homepage of a Muse application.`}),(0,X.jsx)(`h3`,{children:`To get started:`}),(0,X.jsxs)(`ul`,{children:[(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://go/muse`,children:`Read docs`}),` for Muse.`]}),(0,X.jsxs)(`li`,{children:[`Join the slack channel`,` `,(0,X.jsx)(`a`,{href:`https://ebay-eng.slack.com/archives/C0194Q1V8G1`,children:`#muse`}),`.`]}),(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/first-plugin`,children:`Create a plugin`}),` `,`and`,` `,(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/customize-layout`,children:`define the layout/homepage`}),` `,`for the application.`]}),(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#build-a-plugin`,children:`Build`}),` `,`and`,` `,(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#deploy-a-plugin`,children:`deploy`}),` `,`the Muse plugin to the application.`]})]})]})]})}var Zp=c({App:()=>Kp,Homepage:()=>Xp}),Qp=c({default:()=>$p});function $p(){return(0,X.jsx)(`div`,{className:`common-page-not-found`,children:`Page not found.`})}var em=c({default:()=>tm}),tm=class extends O.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?(0,X.jsx)(`div`,{className:`common-error-boundary`,children:this.props.message||`Something went wrong.`}):this.props.children}},nm=c({extendArray:()=>rm}),rm=(e,t,n,...r)=>{let i=t.charAt(0).toUpperCase()+t.slice(1);Vf.default.invoke(`${n}.preProcess${i}`,...r);let a=Zd.default.flatten(Vf.default.invoke(`${n}.get${i}`,...r));return e.push(...a),Vf.default.invoke(`${n}.process${i}`,...r),Vf.default.invoke(`${n}.postProcess${i}`,...r),Vf.default.sort(e),e},im=c({default:()=>am});function am({items:e=[],extName:t=`items`,extBase:n,extArgs:r}){rm(e,t,n,r);let i=[];return e.filter(Boolean).forEach(e=>{let t;e.render?t=e.render():e.content?t=e.content:e.component&&(t=(0,X.jsx)(e.component,{...e.props},e.key)),i.push(t)}),i}var om=c({default:()=>sm});function sm(e,t){let n=Vf.default.invoke(`!`+e,t),[r,i]=(0,O.useState)([]),a=(0,O.useCallback)(e=>{i(Zd.default.flatten([...r,e]))},[r]);return{extNode:(0,X.jsx)(X.Fragment,{children:n.map((e,n)=>(0,X.jsx)(e,{callback:a,...t},n))}),values:r}}var cm=c({default:()=>lm});function lm(){return(0,X.jsxs)(`div`,{style:{padding:`40px`,textAlign:`center`},children:[(0,X.jsx)(`h1`,{style:{fontSize:`48px`,color:`#1890ff`,marginBottom:`20px`},children:`Test Page 1`}),(0,X.jsx)(`p`,{style:{fontSize:`18px`,color:`#666`},children:`This is a test page to verify the routing and code splitting. You can add your test cases here.`}),(0,X.jsx)(`p`,{style:{fontSize:`14px`,color:`#999`,marginTop:`20px`},children:`Route: /test1`})]})}var um=c({default:()=>dm});function dm(){return(0,X.jsxs)(`div`,{style:{padding:`40px`,textAlign:`center`},children:[(0,X.jsx)(`h1`,{style:{fontSize:`48px`,color:`#1890ff`,marginBottom:`20px`},children:`Hello World!`}),(0,X.jsx)(`p`,{style:{fontSize:`18px`,color:`#666`},children:`Welcome to your MUSE plugin. This is a simple hello world page.`}),(0,X.jsx)(`p`,{style:{fontSize:`14px`,color:`#999`,marginTop:`20px`},children:`Route: /hello`}),(0,X.jsx)(lm,{})]})}var fm=c({ErrorBoundary:()=>tm,HelloWorld:()=>dm,Nodes:()=>am,PageNotFound:()=>$p,useExtPoint:()=>sm}),pm=c({default:()=>mm}),mm={path:`home`,name:`Home`,childRoutes:[]},hm=c({default:()=>gm}),gm={path:`common`,name:`Common`,childRoutes:[{path:`/hello`,name:`Hello World`,component:dm}]},_m=c({default:()=>vm}),vm=function(e){return function(){var t=[...arguments];return(0,O.useMemo)(function(){return e.apply(void 0,t)},t)}},ym=c({default:()=>bm}),bm=function(e,t){var n=(0,O.createContext)(void 0),r=function(e,t){return(0,O.createElement)(n.Provider,e,t)};return[function(){var e=(0,O.useContext)(n);if(e==null)throw Error(`useReducerContext must be used inside a ReducerProvider.`);return e},function(n){var i=n.children,a=n.initialState;return r({value:(0,O.useReducer)(e,a===void 0?t:a)},i)},n]},xm=c({useFirstMountState:()=>Sm});function Sm(){var e=(0,O.useRef)(!0);return e.current?(e.current=!1,!0):e.current}var Cm=c({default:()=>wm}),wm=function(e,t){var n=Sm();(0,O.useEffect)(function(){if(!n)return e()},t)},Tm=c({default:()=>Dm});function Em(e){return function(t,n){return e.reduceRight(function(e,n){return n(t)(e)},n)}}var Dm=function(){var e=Em([...arguments]);return function(t,n,r){r===void 0&&(r=function(e){return e});var i=(0,O.useRef)(r(n)),a=(0,O.useState)(i.current)[1],o=(0,O.useCallback)(function(e){return i.current=t(i.current,e),a(i.current),e},[t]),s=(0,O.useRef)(e({getState:function(){return i.current},dispatch:function(){var e=[...arguments];return s.current.apply(s,e)}},o));return wm(function(){s.current=e({getState:function(){return i.current},dispatch:function(){var e=[...arguments];return s.current.apply(s,e)}},o)},[o]),[i.current,s.current]}},Om=c({default:()=>km}),km=function(e){var t=(0,O.createContext)(void 0),n=function(e,n){return(0,O.createElement)(t.Provider,e,n)};return[function(){var e=(0,O.useContext)(t);if(e==null)throw Error(`useStateContext must be used inside a StateProvider.`);return e},function(t){var r=t.children,i=t.initialValue;return n({value:(0,O.useState)(i===void 0?e:i)},r)},t]},Am=c({__addDisposableResource:()=>ih,__assign:()=>ch,__asyncDelegator:()=>Xm,__asyncGenerator:()=>Ym,__asyncValues:()=>Zm,__await:()=>Jm,__awaiter:()=>Bm,__classPrivateFieldGet:()=>th,__classPrivateFieldIn:()=>rh,__classPrivateFieldSet:()=>nh,__createBinding:()=>lh,__decorate:()=>Nm,__disposeResources:()=>ah,__esDecorate:()=>Fm,__exportStar:()=>Hm,__extends:()=>jm,__generator:()=>Vm,__importDefault:()=>eh,__importStar:()=>$m,__makeTemplateObject:()=>Qm,__metadata:()=>zm,__param:()=>Pm,__propKey:()=>Lm,__read:()=>Wm,__rest:()=>Mm,__rewriteRelativeImportExtension:()=>oh,__runInitializers:()=>Im,__setFunctionName:()=>Rm,__spread:()=>Gm,__spreadArray:()=>qm,__spreadArrays:()=>Km,__values:()=>Um,default:()=>ph});function jm(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);sh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Mm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Nm(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function Pm(e,t){return function(n,r){t(n,r,e)}}function Fm(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Im(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function Lm(e){return typeof e==`symbol`?e:`${e}`}function Rm(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function zm(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function Bm(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Vm(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Hm(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&lh(t,e,n)}function Um(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Wm(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Gm(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Wm(arguments[t]));return e}function Km(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function qm(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Jm(e){return this instanceof Jm?(this.v=e,this):new Jm(e)}function Ym(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Jm?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Xm(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Jm(e[r](t)),done:!1}:i?i(t):t}:i}}function Zm(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Um==`function`?Um(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Qm(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function $m(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=dh(e),r=0;r<n.length;r++)n[r]!==`default`&&lh(t,e,n[r]);return uh(t,e),t}function eh(e){return e&&e.__esModule?e:{default:e}}function th(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function nh(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function rh(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function ih(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function ah(e){function t(t){e.error=e.hasError?new fh(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function oh(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var sh,ch,lh,uh,dh,fh,ph,mh=o((()=>{sh=function(e,t){return sh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},sh(e,t)},ch=function(){return ch=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ch.apply(this,arguments)},lh=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),uh=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},dh=function(e){return dh=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},dh(e)},fh=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},ph={__extends:jm,__assign:ch,__rest:Mm,__decorate:Nm,__param:Pm,__esDecorate:Fm,__runInitializers:Im,__propKey:Lm,__setFunctionName:Rm,__metadata:zm,__awaiter:Bm,__generator:Vm,__createBinding:lh,__exportStar:Hm,__values:Um,__read:Wm,__spread:Gm,__spreadArrays:Km,__spreadArray:qm,__await:Jm,__asyncGenerator:Ym,__asyncDelegator:Xm,__asyncValues:Zm,__makeTemplateObject:Qm,__importStar:$m,__importDefault:eh,__classPrivateFieldGet:th,__classPrivateFieldSet:nh,__classPrivateFieldIn:rh,__addDisposableResource:ih,__disposeResources:ah,__rewriteRelativeImportExtension:oh}}));mh();var hh=c({default:()=>gh});function gh(){var e=(0,O.useRef)(!1),t=(0,O.useCallback)(function(){return e.current},[]);return(0,O.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}var _h=c({default:()=>vh});function vh(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=(0,O.useRef)(0),i=gh(),a=(0,O.useState)(n),o=a[0],s=a[1];return[o,(0,O.useCallback)(function(){var t=[...arguments],n=++r.current;return o.loading||s(function(e){return ch(ch({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return i()&&n===r.current&&s({value:e,loading:!1}),e},function(e){return i()&&n===r.current&&s({error:e,loading:!1}),e})},t)]}var yh=c({default:()=>bh});function bh(e,t){t===void 0&&(t=[]);var n=vh(e,t,{loading:!0}),r=n[0],i=n[1];return(0,O.useEffect)(function(){i()},[i]),r}var xh=c({default:()=>Sh});mh();var Sh=function(e,t){t===void 0&&(t=[]);var n=(0,O.useState)(0),r=n[0],i=n[1],a=bh(e,Km(t,[r])),o=a.loading,s=(0,O.useCallback)(function(){o||i(function(e){return e+1})},Km(t,[o]));return ch(ch({},a),{retry:s})},Ch=c({default:()=>wh}),wh=function(e){e===void 0&&(e={});var t=(0,O.useState)(e),n=t[0],r=t[1];return[n,(0,O.useCallback)(function(e){r(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]},Th=c({default:()=>Eh});function Eh(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}var Dh=c({default:()=>Oh});mh();function Oh(e){return function(t){var n,r;O.isValidElement(t)?(n=t,r=n.props):r=t;var i=wh({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),a=i[0],o=i[1],s=(0,O.useRef)(null),c=function(e,t){return function(n){try{t&&t(n)}finally{e&&e(n)}}},l=function(){return o({paused:!1})},u=function(){return o({playing:!0})},d=function(){return o({playing:!1})},f=function(){return o({paused:!0,playing:!1})},p=function(){var e=s.current;e&&o({muted:e.muted,volume:e.volume})},m=function(){var e=s.current;if(e){var t=e.duration,n=e.buffered;o({duration:t,buffered:Eh(n)})}},h=function(){var e=s.current;e&&o({time:e.currentTime})},g=function(){var e=s.current;e&&o({buffered:Eh(e.buffered)})};n=n?O.cloneElement(n,ch(ch({controls:!1},r),{ref:s,onPlay:c(r.onPlay,l),onPlaying:c(r.onPlaying,u),onWaiting:c(r.onWaiting,d),onPause:c(r.onPause,f),onVolumeChange:c(r.onVolumeChange,p),onDurationChange:c(r.onDurationChange,m),onTimeUpdate:c(r.onTimeUpdate,h),onProgress:c(r.onProgress,g)})):O.createElement(e,ch(ch({controls:!1},r),{ref:s,onPlay:c(r.onPlay,l),onPlaying:c(r.onPlaying,u),onWaiting:c(r.onWaiting,d),onPause:c(r.onPause,f),onVolumeChange:c(r.onVolumeChange,p),onDurationChange:c(r.onDurationChange,m),onTimeUpdate:c(r.onTimeUpdate,h),onProgress:c(r.onProgress,g)}));var _=!1,v={play:function(){var e=s.current;if(e&&!_){var t=e.play();if(typeof t==`object`){_=!0;var n=function(){_=!1};t.then(n,n)}return t}},pause:function(){var e=s.current;if(e&&!_)return e.pause()},seek:function(e){var t=s.current;!t||a.duration===void 0||(e=Math.min(a.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=s.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,o({volume:e}))},mute:function(){var e=s.current;e&&(e.muted=!0)},unmute:function(){var e=s.current;e&&(e.muted=!1)}};return(0,O.useEffect)(function(){var e=s.current;e&&(o({volume:e.volume,muted:e.muted,paused:e.paused}),r.autoPlay&&e.paused&&v.play())},[r.src]),[n,a,v,s]}}var kh=c({default:()=>Ah}),Ah=Oh(`audio`),jh=c({isBrowser:()=>Nh,isNavigator:()=>Ph,noop:()=>Mh,off:()=>Q,on:()=>Z}),Mh=function(){};function Z(e){var t=[...arguments].slice(1);e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Q(e){var t=[...arguments].slice(1);e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Nh=typeof window<`u`,Ph=typeof navigator<`u`,Fh=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Ih=c({default:()=>Rh}),Lh=u(Fh()),Rh=Lh.default,zh=c({default:()=>Wh}),Bh=Ph?navigator:void 0,Vh=Bh&&typeof Bh.getBattery==`function`;function Hh(){return{isSupported:!1}}function Uh(){var e=(0,O.useState)({isSupported:!0,fetched:!1}),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=!0,r=null,i=function(){if(!(!e||!r)){var i={isSupported:!0,fetched:!0,level:r.level,charging:r.charging,dischargingTime:r.dischargingTime,chargingTime:r.chargingTime};!Rh(t,i)&&n(i)}};return Bh.getBattery().then(function(t){e&&(r=t,Z(r,`chargingchange`,i),Z(r,`chargingtimechange`,i),Z(r,`dischargingtimechange`,i),Z(r,`levelchange`,i),i())}),function(){e=!1,r&&(Q(r,`chargingchange`,i),Q(r,`chargingtimechange`,i),Q(r,`dischargingtimechange`,i),Q(r,`levelchange`,i))}},[]),t}var Wh=Vh?Uh:Hh,Gh=c({default:()=>Kh}),Kh=function(e,t){e===void 0&&(e=!0);var n=(0,O.useCallback)(function(n){if(typeof e!=`function`||e())return n.preventDefault(),t&&(n.returnValue=t),t},[e,t]);(0,O.useEffect)(function(){if(e)return Z(window,`beforeunload`,n),function(){return Q(window,`beforeunload`,n)}},[e,n])},qh=c({default:()=>Yh}),Jh=function(e,t){return typeof t==`boolean`?t:!e},Yh=function(e){return(0,O.useReducer)(Jh,e)},Xh=c({default:()=>Zh}),Zh=Yh,Qh=c({default:()=>eg}),$h=[`mousedown`,`touchstart`],eg=function(e,t,n){n===void 0&&(n=$h);var r=(0,O.useRef)(t);(0,O.useEffect)(function(){r.current=t},[t]),(0,O.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&r.current(t)},i=0,a=n;i<a.length;i++){var o=a[i];Z(document,o,t)}return function(){for(var e=0,r=n;e<r.length;e++){var i=r[e];Q(document,i,t)}}},[n,e])},tg=s(((e,t)=>{(function(n){var r;if(typeof define==`function`&&define.amd&&(define(n),r=!0),typeof e==`object`&&(t.exports=n(),r=!0),!r){var i=window.Cookies,a=window.Cookies=n();a.noConflict=function(){return window.Cookies=i,a}}})(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function a(t,n,a){if(!(typeof document>`u`)){a=e({path:`/`},i.defaults,a),typeof a.expires==`number`&&(a.expires=new Date(new Date*1+a.expires*864e5)),a.expires=a.expires?a.expires.toUTCString():``;try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch{}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s=``;for(var c in a)a[c]&&(s+=`; `+c,a[c]!==!0&&(s+=`=`+a[c].split(`;`)[0]));return document.cookie=t+`=`+n+s}}function o(e,n){if(!(typeof document>`u`)){for(var i={},a=document.cookie?document.cookie.split(`; `):[],o=0;o<a.length;o++){var s=a[o].split(`=`),c=s.slice(1).join(`=`);!n&&c.charAt(0)===`"`&&(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(r.read||r)(c,l)||t(c),n)try{c=JSON.parse(c)}catch{}if(i[l]=c,e===l)break}catch{}}return e?i[e]:i}}return i.set=a,i.get=function(e){return o(e,!1)},i.getJSON=function(e){return o(e,!0)},i.remove=function(t,n){a(t,``,e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n(function(){})})})),ng=c({default:()=>ig}),rg=u(tg()),ig=function(e){var t=(0,O.useState)(function(){return rg.default.get(e)||null}),n=t[0],r=t[1];return[n,(0,O.useCallback)(function(t,n){rg.default.set(e,t,n),r(t)},[e]),(0,O.useCallback)(function(){rg.default.remove(e),r(null)},[e])]},ag=s(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),og=s(((e,t)=>{var n=ag(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o})),sg=c({default:()=>lg}),cg=u(og()),lg=function(){var e=gh(),t=wh({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1];return[n,(0,O.useCallback)(function(t){if(e()){var n,i;try{if(typeof t!=`string`&&typeof t!=`number`){var a=Error(`Cannot copy typeof `+typeof t+` to clipboard, must be a string`);r({value:t,error:a,noUserInteraction:!0});return}else if(t===``){var a=Error(`Cannot copy empty string to clipboard.`);r({value:t,error:a,noUserInteraction:!0});return}i=t.toString(),n=(0,cg.default)(i),r({value:i,error:void 0,noUserInteraction:n})}catch(e){r({value:i,error:e,noUserInteraction:n})}}},[])]},ug=c({default:()=>fg}),dg=function(e){return(e+1)%1e6};function fg(){return(0,O.useReducer)(dg,0)[1]}var pg=c({resolveHookState:()=>mg});function mg(e,t){return typeof e==`function`?e.length?e(t):e():e}var hg=c({default:()=>gg});function gg(e){var t=(0,O.useRef)(mg(e)),n=fg();return(0,O.useMemo)(function(){return[function(){return t.current},function(e){t.current=mg(e,t.current),n()}]},[])}var _g=c({default:()=>vg});function vg(e,t,n){e===void 0&&(e=0),t===void 0&&(t=null),n===void 0&&(n=null);var r=mg(e);typeof r!=`number`&&console.error(`initialValue has to be a number, got `+typeof e),typeof n==`number`?r=Math.max(r,n):n!==null&&console.error(`min has to be a number, got `+typeof n),typeof t==`number`?r=Math.min(r,t):t!==null&&console.error(`max has to be a number, got `+typeof t);var i=gg(r),a=i[0],o=i[1];return[a(),(0,O.useMemo)(function(){var e=function(e){var r=a(),i=mg(e,r);r!==i&&(typeof n==`number`&&(i=Math.max(i,n)),typeof t==`number`&&(i=Math.min(i,t)),r!==i&&o(i))};return{get:a,set:e,inc:function(t){t===void 0&&(t=1);var n=mg(t,a());typeof n!=`number`&&console.error(`delta has to be a number or function returning a number, got `+typeof n),e(function(e){return e+n})},dec:function(t){t===void 0&&(t=1);var n=mg(t,a());typeof n!=`number`&&console.error(`delta has to be a number or function returning a number, got `+typeof n),e(function(e){return e-n})},reset:function(t){t===void 0&&(t=r);var n=mg(t,a());typeof n!=`number`&&console.error(`value has to be a number or function returning a number, got `+typeof n),r=n,e(n)}}},[r,n,t])]}var yg=s((e=>{var t=/[A-Z]/g,n=function(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return`_`+(t>>>0).toString(36)};e.create=function(e){e||={};var r=e.assign||Object.assign,i=r({raw:``,pfx:`_`,client:typeof window==`object`,assign:r,stringify:JSON.stringify,kebab:function(e){return e.replace(t,`-$&`).toLowerCase()},decl:function(e,t){return e=i.kebab(e),e+`:`+t+`;`},hash:function(e){return n(i.stringify(e))},selector:function(e,t){return e+(t[0]===`:`?``:` `)+t},putRaw:function(e){i.raw+=e}},e);return i.client&&(i.sh||document.head.appendChild(i.sh=document.createElement(`style`)),i.putRaw=function(e){var t=i.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch{}}),i.put=function(e,t,n){var r=``,a,o,s=[];for(a in t)o=t[a],o instanceof Object&&!(o instanceof Array)?s.push(a):r+=i.decl(a,o,e,n);r&&(r=e+`{`+r+`}`,i.putRaw(n?n+`{`+r+`}`:r));for(var c=0;c<s.length;c++)a=s[c],a[0]===`@`&&a!==`@font-face`?i.putAt(e,t[a],a):i.put(i.selector(e,a),t[a],n)},i.putAt=i.put,i}})),bg=s(((e,t)=>{var n=`nano-css`;t.exports=function(e,t,r){for(var i=[],a=0;a<r.length;a++){var o=r[a];t[o]||i.push(o)}if(i.length){for(var s=`Addon "`+e+`" is missing the following dependencies:`,c=0;c<i.length;c++)s+=`
|
|
95
|
+
require("`+n+`/addon/`+i[c]+`").addon(nano);`;throw Error(s)}}})),xg=s((e=>{e.addon=function(e){e.client&&(document.head.appendChild(e.msh=document.createElement(`style`)),e.createRule=function(t,n){var r=t+`{}`;n&&(r=n+`{`+r+`}`);var i=n?e.msh.sheet:e.sh.sheet,a=i.insertRule(r,i.cssRules.length),o=(i.cssRules||i.rules)[a];if(o.index=a,n){var s=(o.cssRules||o.rules)[0];o.style=s.style,o.styleMap=s.styleMap}return o})}})),Sg=s((e=>{function t(e){var t=e.index,n=e.parentStyleSheet,r=n.cssRules||n.rules;for(t=Math.max(t,r.length-1);t>=0;){if(r[t]===e){n.deleteRule(t);break}t--}}e.removeRule=t})),Cg=s((e=>{var t=Sg().removeRule;e.addon=function(e){if(!e.client)return;var n=e.kebab;function r(t,n){this.rule=e.createRule(t,n),this.decl={}}r.prototype.diff=function(e){var t=this.decl,r=this.rule.style,i;for(i in t)e[i]===void 0&&r.removeProperty(i);for(i in e)e[i]!==t[i]&&r.setProperty(n(i),e[i]);this.decl=e},r.prototype.del=function(){t(this.rule)};function i(){this.tree={}}i.prototype.diff=function(e){var t=this.tree;for(var n in t)if(e[n]===void 0){var i=t[n];for(var a in i)i[a].del()}for(var n in e)if(t[n]===void 0)for(var a in e[n]){var o=new r(a,n);o.diff(e[n][a]),e[n][a]=o}else{var s=t[n],c=e[n];for(var a in s)c[a]||s[a].del();for(var a in c){var o=s[a];o?(o.diff(c[a]),c[a]=o):(o=new r(a,n),o.diff(c[a]),c[a]=o)}}this.tree=e},e.VRule=r,e.VSheet=i}})),wg=s((e=>{function t(e,n,r,i){var a={},o=!1,s,c;for(s in n)c=n[s],typeof c!=`object`&&(o=!0,a[s]=c);for(s in o&&(e[i]||(e[i]={}),e[i][r]=a),n)if(c=n[s],typeof c==`object`)if(s[0]===`@`)t(e,c,r,s);else{var l=s.indexOf(`&`)>-1,u=r.split(`,`);if(l)for(var d=0;d<u.length;d++)u[d]=s.replace(/&/g,u[d]);else for(var d=0;d<u.length;d++)u[d]=u[d]+` `+s;t(e,c,u.join(`,`),i)}}e.cssToTree=t})),Tg=u(yg()),Eg=u(xg()),Dg=u(Cg()),Og=u(wg()),kg=c({default:()=>Ag}),Ag=Nh?O.useLayoutEffect:O.useEffect,jg=c({default:()=>Pg}),Mg=(0,Tg.create)();(0,Eg.addon)(Mg),(0,Dg.addon)(Mg);var Ng=0,Pg=function(e){var t=(0,O.useMemo)(function(){return`react-use-css-`+(Ng++).toString(36)},[]),n=(0,O.useMemo)(function(){return new Mg.VSheet},[]);return Ag(function(){var r={};return(0,Og.cssToTree)(r,e,`.`+t,``),n.diff(r),function(){n.diff({})}}),t},Fg=c({default:()=>Ig}),Ig=function(e,t,n){var r=(0,O.useRef)(void 0);(!r.current||!n(t,r.current))&&(r.current=t),(0,O.useEffect)(e,r.current)},Lg=c({default:()=>Rg});function Rg(e,t){t===void 0&&(t=0);var n=(0,O.useRef)(!1),r=(0,O.useRef)(),i=(0,O.useRef)(e),a=(0,O.useCallback)(function(){return n.current},[]),o=(0,O.useCallback)(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),s=(0,O.useCallback)(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return(0,O.useEffect)(function(){i.current=e},[e]),(0,O.useEffect)(function(){return o(),s},[t]),[a,s,o]}var zg=c({default:()=>Bg});function Bg(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Rg(e,t),i=r[0],a=r[1],o=r[2];return(0,O.useEffect)(o,n),[i,a]}var Vg=c({default:()=>Hg}),Hg=function(e,t){Ig(e,t,Rh)},Ug=c({default:()=>Wg}),Wg=function(e,t){var n=(0,O.useState)(t),r=n[0],i=n[1];return r==null?[e,i]:[r,i]},Gg=c({default:()=>qg});mh();var Kg=function(e){return function(t,n){var r=t.getData(`text/uri-list`);if(r){(e.onUri||Mh)(r,n);return}if(t.files&&t.files.length){(e.onFiles||Mh)(Array.from(t.files),n);return}if(n.clipboardData){var i=n.clipboardData.getData(`text`);(e.onText||Mh)(i,n);return}}},qg=function(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=e.onFiles,r=e.onText,i=e.onUri,a=(0,O.useState)(!1),o=a[0],s=a[1],c=(0,O.useCallback)(s,[]),l=(0,O.useMemo)(function(){return Kg(e)},[n,r,i]);return(0,O.useEffect)(function(){var e=function(e){e.preventDefault(),c(!0)},t=function(e){e.preventDefault(),c(!0)},n=function(){c(!1)},i=function(){c(!1)},a=function(e){e.preventDefault(),c(!1),l(e.dataTransfer,e)},o=function(e){l(e.clipboardData,e)};return Z(document,`dragover`,e),Z(document,`dragenter`,t),Z(document,`dragleave`,n),Z(document,`dragexit`,i),Z(document,`drop`,a),r&&Z(document,`paste`,o),function(){Q(document,`dragover`,e),Q(document,`dragenter`,t),Q(document,`dragleave`,n),Q(document,`dragexit`,i),Q(document,`drop`,a),Q(document,`paste`,o)}},Km([l],t)),{over:o}},Jg=c({default:()=>Zg}),Yg=function(e,t){return function(n,r){var i=n.getData(`text/uri-list`);if(i){(e.onUri||Mh)(i,r);return}if(n.files&&n.files.length){(e.onFiles||Mh)(Array.from(n.files),r);return}n.items&&n.items.length&&n.items[0].getAsString(function(n){t&&(e.onText||Mh)(n,r)})}},Xg=function(e,t){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),t(!0)},onDragLeave:function(){t(!1)},onDrop:function(n){n.preventDefault(),n.persist(),t(!1),e(n.dataTransfer,n)},onPaste:function(t){t.persist(),e(t.clipboardData,t)}}},Zg=function(e){e===void 0&&(e={});var t=e.onFiles,n=e.onText,r=e.onUri,i=gh(),a=(0,O.useState)(!1),o=a[0],s=a[1],c=(0,O.useMemo)(function(){return Yg(e,i())},[t,n,r]);return[(0,O.useMemo)(function(){return Xg(c,s)},[c,s]),{over:o}]},Qg=c({default:()=>$g}),$g=function(e){(0,O.useEffect)(e,[])},e_=c({default:()=>t_,ensuredForwardRef:()=>n_});function t_(e){var t=(0,O.useRef)(e&&e.current);return(0,O.useEffect)(function(){e&&(e.current=t.current)},[e]),t}function n_(e){return(0,O.forwardRef)(function(t,n){return e(t,t_(n))})}var r_=c({default:()=>s_}),i_=Nh?window:null,a_=function(e){return!!e.addEventListener},o_=function(e){return!!e.on},s_=function(e,t,n,r){n===void 0&&(n=i_),(0,O.useEffect)(function(){if(t&&n)return a_(n)?Z(n,e,t,r):o_(n)&&n.on(e,t,r),function(){a_(n)?Q(n,e,t,r):o_(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])},c_=c({default:()=>l_}),l_=function(){var e=(0,O.useState)(null),t=e[0],n=e[1];return(0,O.useEffect)(function(){if(t)throw t},[t]),(0,O.useCallback)(function(e){n(e)},[])},u_=c({default:()=>d_}),d_=function(e){(0,O.useEffect)(function(){var t=document.querySelector(`link[rel*='icon']`)||document.createElement(`link`);t.type=`image/x-icon`,t.rel=`shortcut icon`,t.href=e,document.getElementsByTagName(`head`)[0].appendChild(t)},[e])},f_=s(((e,t)=>{(function(){var e=typeof window<`u`&&window.document!==void 0?window.document:{},n=t!==void 0&&t.exports,r=(function(){for(var t,n=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`webkitRequestFullScreen`,`webkitCancelFullScreen`,`webkitCurrentFullScreenElement`,`webkitCancelFullScreen`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozFullScreenEnabled`,`mozfullscreenchange`,`mozfullscreenerror`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`msFullscreenEnabled`,`MSFullscreenChange`,`MSFullscreenError`]],r=0,i=n.length,a={};r<i;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)a[n[0][r]]=t[r];return a}return!1})(),i={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(t,n){return new Promise(function(i,a){var o=function(){this.off(`change`,o),i()}.bind(this);this.on(`change`,o),t||=e.documentElement;var s=t[r.requestFullscreen](n);s instanceof Promise&&s.then(o).catch(a)}.bind(this))},exit:function(){return new Promise(function(t,n){if(!this.isFullscreen){t();return}var i=function(){this.off(`change`,i),t()}.bind(this);this.on(`change`,i);var a=e[r.exitFullscreen]();a instanceof Promise&&a.then(i).catch(n)}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on(`change`,e)},onerror:function(e){this.on(`error`,e)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:r};if(!r){n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(a,{isFullscreen:{get:function(){return!!e[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!e[r.fullscreenEnabled]}}}),n?t.exports=a:window.screenfull=a})()})),p_=c({default:()=>h_}),m_=u(f_()),h_=function(e,t,n){n===void 0&&(n={});var r=n.video,i=n.onClose,a=i===void 0?Mh:i,o=(0,O.useState)(t),s=o[0],c=o[1];return Ag(function(){if(t&&e.current){var n=function(){r?.current&&Q(r.current,`webkitendfullscreen`,n),a()},i=function(){if(m_.default.isEnabled){var e=m_.default.isFullscreen;c(e),e||a()}};if(m_.default.isEnabled){try{m_.default.request(e.current),c(!0)}catch(e){a(e),c(!1)}m_.default.on(`change`,i)}else r&&r.current&&r.current.webkitEnterFullscreen?(r.current.webkitEnterFullscreen(),Z(r.current,`webkitendfullscreen`,n),c(!0)):(a(),c(!1));return function(){if(c(!1),m_.default.isEnabled)try{m_.default.off(`change`,i),m_.default.exit()}catch{}else r&&r.current&&r.current.webkitExitFullscreen&&(Q(r.current,`webkitendfullscreen`,n),r.current.webkitExitFullscreen())}}},[t,r,e]),s},g_=c({default:()=>__});mh();var __=function(e){var t=(0,O.useState)({loading:!0,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,latitude:null,longitude:null,speed:null,timestamp:Date.now()}),n=t[0],r=t[1],i=!0,a,o=function(e){i&&r({loading:!1,accuracy:e.coords.accuracy,altitude:e.coords.altitude,altitudeAccuracy:e.coords.altitudeAccuracy,heading:e.coords.heading,latitude:e.coords.latitude,longitude:e.coords.longitude,speed:e.coords.speed,timestamp:e.timestamp})},s=function(e){return i&&r(function(t){return ch(ch({},t),{loading:!1,error:e})})};return(0,O.useEffect)(function(){return navigator.geolocation.getCurrentPosition(o,s,e),a=navigator.geolocation.watchPosition(o,s,e),function(){i=!1,navigator.geolocation.clearWatch(a)}},[]),n},v_=c({default:()=>y_});mh();var y_=function(e){e===void 0&&(e={});var t=fg(),n=(0,O.useRef)(ch({},e));return[(0,O.useCallback)(function(){return n.current},[]),(0,O.useCallback)(function(e){e&&(Object.assign(n.current,e),t())},[])]},b_=c({clearHarmonicInterval:()=>w_,setHarmonicInterval:()=>C_}),x_=0,S_={},C_=function(e,t){var n,r=x_++;return S_[t]?S_[t].listeners[r]=e:S_[t]={ms:t,timer:setInterval(function(){for(var e=S_[t].listeners,n=!1,r,i=0,a=Object.values(e);i<a.length;i++){var o=a[i];try{o()}catch(e){n=!0,r=e}}if(n)throw r},t),listeners:(n={},n[r]=e,n)},{bucket:S_[t],id:r}},w_=function(e){var t=e.bucket,n=e.id;delete t.listeners[n];var r=!1;for(var i in t.listeners){r=!0;break}r||(clearInterval(t.timer),delete S_[t.ms])},T_=c({default:()=>E_}),E_=function(e,t){t===void 0&&(t=0);var n=(0,O.useRef)(function(){});(0,O.useEffect)(function(){n.current=e}),(0,O.useEffect)(function(){if(t!==null){var e=C_(function(){return n.current()},t);return function(){return w_(e)}}},[t])},D_=c({default:()=>k_}),O_=O.useState,k_=function(e){var t=O_(!1),n=t[0],r=t[1];return typeof e==`function`&&(e=e(n)),[O.cloneElement(e,{onMouseEnter:function(e){return function(t){(e||Mh)(t),r(!0)}}(e.props.onMouseEnter),onMouseLeave:function(e){return function(t){(e||Mh)(t),r(!1)}}(e.props.onMouseLeave)}),n]},A_=c({default:()=>j_}),j_=function(e,t){t===void 0&&(t=!0);var n=(0,O.useState)(!1),r=n[0],i=n[1];return(0,O.useEffect)(function(){var n=function(){return i(!0)},r=function(){return i(!1)};t&&e&&e.current&&(Z(e.current,`mouseover`,n),Z(e.current,`mouseout`,r));var a=e.current;return function(){t&&a&&(Q(a,`mouseover`,n),Q(a,`mouseout`,r))}},[t,e]),r},M_=c({debounce:()=>P_,throttle:()=>N_});function N_(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function c(){s(),a=!0}typeof t!=`boolean`&&(r=n,n=t,t=void 0);function l(){var c=[...arguments],l=this,u=Date.now()-o;if(a)return;function d(){o=Date.now(),n.apply(l,c)}function f(){i=void 0}r&&!i&&d(),s(),r===void 0&&u>e?d():t!==!0&&(i=setTimeout(r?f:d,r===void 0?e-u:e))}return l.cancel=c,l}function P_(e,t,n){return n===void 0?N_(e,t,!1):N_(e,n,t!==!1)}var F_=c({default:()=>R_}),I_=[`mousemove`,`mousedown`,`resize`,`keydown`,`touchstart`,`wheel`],L_=6e4,R_=function(e,t,n){e===void 0&&(e=L_),t===void 0&&(t=!1),n===void 0&&(n=I_);var r=(0,O.useState)(t),i=r[0],a=r[1];return(0,O.useEffect)(function(){for(var t=!0,r,o=i,s=function(e){t&&(o=e,a(e))},c=N_(50,function(){o&&s(!1),clearTimeout(r),r=setTimeout(function(){return s(!0)},e)}),l=function(){document.hidden||c()},u=0;u<n.length;u++)Z(window,n[u],c);return Z(document,`visibilitychange`,l),r=setTimeout(function(){return s(!0)},e),function(){t=!1;for(var e=0;e<n.length;e++)Q(window,n[e],c);Q(document,`visibilitychange`,l)}},[e,n]),i},z_=c({default:()=>B_}),B_=function(e,t){var n=(0,O.useState)(null),r=n[0],i=n[1];return(0,O.useEffect)(function(){if(e.current&&typeof IntersectionObserver==`function`){var n=new IntersectionObserver(function(e){i(e[0])},t);return n.observe(e.current),function(){i(null),n.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),r},V_=c({default:()=>H_}),H_=function(e,t){var n=(0,O.useRef)(function(){});(0,O.useEffect)(function(){n.current=e}),(0,O.useEffect)(function(){if(t!==null){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])},U_=c({default:()=>G_}),W_=function(e){return typeof e==`function`?e:typeof e==`string`?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},G_=function(e,t,n,r){t===void 0&&(t=Mh),n===void 0&&(n={}),r===void 0&&(r=[e]);var i=n.event,a=i===void 0?`keydown`:i,o=n.target,s=n.options;s_(a,(0,O.useMemo)(function(){var n=W_(e);return function(e){if(n(e))return t(e)}},r),o,s)},K_=c({default:()=>q_}),q_=function(e){return e===void 0&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var t=(0,O.useState)(Nh?window.innerWidth:0),n=t[0],r=t[1];(0,O.useEffect)(function(){var e=function(){r(window.innerWidth)};return e(),Z(window,`resize`,e),function(){Q(window,`resize`,e)}});var i=(0,O.useMemo)(function(){return Object.entries(e).sort(function(e,t){return e[1]>=t[1]?1:-1})},[e]);return i.reduce(function(e,t){var r=t[0];return n>=t[1]?r:e},i[0][0])}},J_=c({default:()=>Y_}),Y_=function(e){var t=(0,O.useState)([!1,null]),n=t[0],r=t[1];return G_(e,function(e){return r([!0,e])},{event:`keydown`},[n]),G_(e,function(e){return r([!1,e])},{event:`keyup`},[n]),n},X_=c({default:()=>Z_}),Z_=function(e,t,n,r){r===void 0&&(r=Y_);var i=r(e),a=i[0],o=i[1];wm(function(){!a&&n?n(o):a&&t&&t(o)},[a])},Q_=c({default:()=>$_}),$_=function(e){var t=(0,O.useRef)(e);return t.current=e,t},ev=c({default:()=>tv}),tv=function(e,t){(0,O.useEffect)(function(){return e&&e(),function(){t&&t()}},[])},nv=c({default:()=>rv});function rv(e){e===void 0&&(e=[]);var t=(0,O.useRef)(mg(e)),n=fg(),r=(0,O.useMemo)(function(){var i={set:function(e){t.current=mg(e,t.current),n()},push:function(){var e=[...arguments];e.length&&r.set(function(t){return t.concat(e)})},updateAt:function(e,t){r.set(function(n){var r=n.slice();return r[e]=t,r})},insertAt:function(e,t){r.set(function(n){var r=n.slice();return e>r.length?r[e]=t:r.splice(e,0,t),r})},update:function(e,t){r.set(function(n){return n.map(function(n){return e(n,t)?t:n})})},updateFirst:function(e,n){var i=t.current.findIndex(function(t){return e(t,n)});i>=0&&r.updateAt(i,n)},upsert:function(e,n){var i=t.current.findIndex(function(t){return e(t,n)});i>=0?r.updateAt(i,n):r.push(n)},sort:function(e){r.set(function(t){return t.slice().sort(e)})},filter:function(e,t){r.set(function(n){return n.slice().filter(e,t)})},removeAt:function(e){r.set(function(t){var n=t.slice();return n.splice(e,1),n})},clear:function(){r.set([])},reset:function(){r.set(mg(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var iv=c({default:()=>av}),av=function(e,t,n){if(!Nh)return[t,Mh,Mh];if(!e)throw Error(`useLocalStorage key may not be falsy`);var r=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,i=(0,O.useRef)(function(e){try{var i=n?n.raw?String:n.serializer:JSON.stringify,a=localStorage.getItem(e);return a===null?(t&&localStorage.setItem(e,i(t)),t):r(a)}catch{return t}}),a=(0,O.useState)(function(){return i.current(e)}),o=a[0],s=a[1];return(0,O.useLayoutEffect)(function(){return s(i.current(e))},[e]),[o,(0,O.useCallback)(function(t){try{var i=typeof t==`function`?t(o):t;if(i===void 0)return;var a=void 0;a=n?n.raw?typeof i==`string`?i:JSON.stringify(i):n.serializer?n.serializer(i):JSON.stringify(i):JSON.stringify(i),localStorage.setItem(e,a),s(r(a))}catch{}},[e,s]),(0,O.useCallback)(function(){try{localStorage.removeItem(e),s(void 0)}catch{}},[e,s])]},ov=c({default:()=>uv}),sv=function(e){var t=window.history,n=t[e];t[e]=function(t){var r=n.apply(this,arguments),i=new Event(e.toLowerCase());return i.state=t,window.dispatchEvent(i),r}};Nh&&(sv(`pushState`),sv(`replaceState`));var cv=function(){return{trigger:`load`,length:1}},lv=function(e){var t=window.history,n=t.state,r=t.length,i=window.location;return{trigger:e,state:n,length:r,hash:i.hash,host:i.host,hostname:i.hostname,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}},uv=Nh&&typeof Event==`function`?function(){var e=(0,O.useState)(lv(`load`)),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=function(){return n(lv(`popstate`))},t=function(){return n(lv(`pushstate`))},r=function(){return n(lv(`replacestate`))};return Z(window,`popstate`,e),Z(window,`pushstate`,t),Z(window,`replacestate`,r),function(){Q(window,`popstate`,e),Q(window,`pushstate`,t),Q(window,`replacestate`,r)}},[]),t}:cv,dv=c({default:()=>vv,getClosestBody:()=>fv});function fv(e){if(!e)return null;if(e.tagName===`BODY`)return e;if(e.tagName===`IFRAME`){var t=e.contentDocument;return t?t.body:null}else if(!e.offsetParent)return null;return fv(e.offsetParent)}function pv(e){var t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var mv=Nh&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),hv=new Map,gv=typeof document==`object`?document:void 0,_v=!1,vv=gv?function(e,t){e===void 0&&(e=!0);var n=(0,O.useRef)(gv.body);t||=n;var r=function(e){var t=hv.get(e);t?hv.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(hv.set(e,{counter:1,initialOverflow:e.style.overflow}),mv?_v||=(Z(document,`touchmove`,pv,{passive:!1}),!0):e.style.overflow=`hidden`)},i=function(e){var t=hv.get(e);t&&(t.counter===1?(hv.delete(e),mv?(e.ontouchmove=null,_v&&=(Q(document,`touchmove`,pv),!1)):e.style.overflow=t.initialOverflow):hv.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,O.useEffect)(function(){var n=fv(t.current);n&&(e?r(n):i(n))},[e,t.current]),(0,O.useEffect)(function(){var e=fv(t.current);if(e)return function(){i(e)}},[])}:function(e,t){e===void 0&&(e=!0)},yv=c({default:()=>bv});mh();var bv=function(e){var t=[...arguments].slice(1);$g(function(){return console.log.apply(console,Km([e+` mounted`],t)),function(){return console.log(e+` unmounted`)}}),wm(function(){console.log.apply(console,Km([e+` updated`],t))})},xv=c({default:()=>wv}),Sv=function(e){return`touches`in e},Cv=function(e){Sv(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()},wv=function(e,t){var n=t===void 0?{}:t,r=n.isPreventDefault,i=r===void 0?!0:r,a=n.delay,o=a===void 0?300:a,s=(0,O.useRef)(),c=(0,O.useRef)(),l=(0,O.useCallback)(function(t){i&&t.target&&(Z(t.target,`touchend`,Cv,{passive:!1}),c.current=t.target),s.current=setTimeout(function(){return e(t)},o)},[e,o,i]),u=(0,O.useCallback)(function(){s.current&&clearTimeout(s.current),i&&c.current&&Q(c.current,`touchend`,Cv)},[i]);return{onMouseDown:function(e){return l(e)},onTouchStart:function(e){return l(e)},onMouseUp:u,onMouseLeave:u,onTouchEnd:u}},Tv=c({default:()=>Ev});mh();var Ev=function(e){e===void 0&&(e={});var t=(0,O.useState)(e),n=t[0],r=t[1],i=(0,O.useMemo)(function(){return{set:function(e,t){r(function(n){var r;return ch(ch({},n),(r={},r[e]=t,r))})},setAll:function(e){r(e)},remove:function(e){r(function(t){var n=t,r=e;return n[r],Mm(n,[typeof r==`symbol`?r:r+``])})},reset:function(){return r(e)}}},[r]);return[n,ch({get:(0,O.useCallback)(function(e){return n[e]},[n])},i)]},Dv=c({default:()=>kv}),Ov=function(e,t){return t===void 0?Nh?window.matchMedia(e).matches:!1:t},kv=function(e,t){var n=(0,O.useState)(Ov(e,t)),r=n[0],i=n[1];return(0,O.useEffect)(function(){var t=!0,n=window.matchMedia(e),r=function(){t&&i(!!n.matches)};return n.addEventListener(`change`,r),i(n.matches),function(){t=!1,n.removeEventListener(`change`,r)}},[e]),r},Av=c({default:()=>jv}),jv=Ph&&navigator.mediaDevices?function(){var e=(0,O.useState)({}),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=!0,t=function(){navigator.mediaDevices.enumerateDevices().then(function(t){e&&n({devices:t.map(function(e){return{deviceId:e.deviceId,groupId:e.groupId,kind:e.kind,label:e.label}})})}).catch(Mh)};return Z(navigator.mediaDevices,`devicechange`,t),t(),function(){e=!1,Q(navigator.mediaDevices,`devicechange`,t)}},[]),t}:function(){return{}},Mv=c({useMediatedState:()=>Nv});function Nv(e,t){var n=(0,O.useRef)(e),r=(0,O.useState)(t),i=r[0],a=r[1];return[i,(0,O.useCallback)(function(e){n.current.length===2?n.current(e,a):a(n.current(e))},[i])]}var Pv=c({default:()=>Fv}),Fv=function(e,t){var n=(0,O.useMemo)(function(){return function(t,n){var r;return(r=e(t))[n.type].apply(r,n.payload)}},[e]),r=(0,O.useReducer)(n,t),i=r[0],a=r[1];return[i,(0,O.useMemo)(function(){return Object.keys(e(t)).reduce(function(e,t){return e[t]=function(){return a({type:t,payload:[...arguments]})},e},{})},[e,t])]},Iv=c({default:()=>Rv}),Lv={acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:16},Rv=function(e){e===void 0&&(e=Lv);var t=(0,O.useState)(e),n=t[0],r=t[1];return(0,O.useEffect)(function(){var e=function(e){var t=e.acceleration,n=e.accelerationIncludingGravity,i=e.rotationRate,a=e.interval;r({acceleration:{x:t.x,y:t.y,z:t.z},accelerationIncludingGravity:{x:n.x,y:n.y,z:n.z},rotationRate:{alpha:i.alpha,beta:i.beta,gamma:i.gamma},interval:a})};return Z(window,`devicemotion`,e),function(){Q(window,`devicemotion`,e)}},[]),n},zv=c({default:()=>Bv}),Bv=function(e){$g(function(){e()})},Vv=c({default:()=>Hv}),Hv=function(e){var t=(0,O.useRef)(e);t.current=e,$g(function(){return function(){return t.current()}})},Uv=c({default:()=>Wv}),Wv=function(e){var t=(0,O.useRef)(0),n=(0,O.useState)(e),r=n[0],i=n[1],a=(0,O.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(e)})},[]);return Hv(function(){cancelAnimationFrame(t.current)}),[r,a]},Gv=c({default:()=>Kv}),Kv=function(e){var t=Wv({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=function(t){if(e&&e.current){var n=e.current.getBoundingClientRect(),i=n.left,a=n.top,o=n.width,s=n.height,c=i+window.pageXOffset,l=a+window.pageYOffset,u=t.pageX-c,d=t.pageY-l;r({docX:t.pageX,docY:t.pageY,posX:c,posY:l,elX:u,elY:d,elH:s,elW:o})}};return Z(document,`mousemove`,t),function(){Q(document,`mousemove`,t)}},[e]),n},qv=c({default:()=>Yv}),Jv={current:null},Yv=function(e,t){t===void 0&&(t={});var n=!!t.whenHovered,r=!!t.bound,i=j_(e,n),a=Kv(n&&!i?Jv:e);return r&&(a.elX=Math.max(0,Math.min(a.elX,a.elW)),a.elY=Math.max(0,Math.min(a.elY,a.elH))),a},Xv=c({default:()=>Zv}),Zv=(function(){var e=(0,O.useState)(0),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=function(e){n(e.deltaY+t)};return Z(window,`wheel`,e,!1),function(){return Q(window,`wheel`,e)}}),t}),Qv=c({default:()=>ny}),$v=Ph?navigator:void 0,ey=$v&&($v.connection||$v.mozConnection||$v.webkitConnection);function ty(e){var t=$v?.onLine,n=e?.online;return{online:t,previous:n,since:t===n?e?.since:new Date,downlink:ey?.downlink,downlinkMax:ey?.downlinkMax,effectiveType:ey?.effectiveType,rtt:ey?.rtt,saveData:ey?.saveData,type:ey?.type}}function ny(e){var t=(0,O.useState)(e??ty),n=t[0],r=t[1];return(0,O.useEffect)(function(){var e=function(){r(ty)};return Z(window,`online`,e,{passive:!0}),Z(window,`offline`,e,{passive:!0}),ey&&Z(ey,`change`,e,{passive:!0}),function(){Q(window,`online`,e),Q(window,`offline`,e),ey&&Q(ey,`change`,e)}},[]),n}var ry=c({default:()=>iy}),iy=vg,ay=c({default:()=>oy});function oy(e,t){var n=(0,O.useState)(t),r=n[0],i=n[1];return Ag(function(){var t=e.subscribe(i);return function(){return t.unsubscribe()}},[e]),r}var sy=c({default:()=>ly}),cy={angle:0,type:`landscape-primary`},ly=function(e){e===void 0&&(e=cy);var t=(0,O.useState)(e),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=window.screen,n=!0,i=function(){if(n){var i=t.orientation;if(i){var a=i.angle,o=i.type;r({angle:a,type:o})}else window.orientation===void 0?r(e):r({angle:typeof window.orientation==`number`?window.orientation:0,type:``})}};return Z(window,`orientationchange`,i),i(),function(){n=!1,Q(window,`orientationchange`,i)}},[]),n},uy=c({default:()=>dy}),dy=function(e,t){t===void 0&&(t=[]),(0,O.useEffect)(function(){if(e){var t=function(t){t||=window.event;var n=t.relatedTarget||t.toElement;(!n||n.nodeName===`HTML`)&&e()};return Z(document,`mouseout`,t),function(){Q(document,`mouseout`,t)}}},t)},fy=c({default:()=>py}),py=function(e){var t=(0,O.useState)(``),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=!0,n=null,i=function(){t&&r(function(){return n?.state??``})};return navigator.permissions.query(e).then(function(e){n=e,Z(n,`change`,i),i()}).catch(Mh),function(){n&&Q(n,`change`,i),t=!1,n=null}},[e]),n},my=c({default:()=>hy});function hy(e){var t=(0,O.useRef)();return(0,O.useEffect)(function(){t.current=e}),t.current}var gy=c({default:()=>vy}),_y=function(e,t){return e===t};function vy(e,t){t===void 0&&(t=_y);var n=(0,O.useRef)(),r=(0,O.useRef)(e);return!Sm()&&!t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var yy=c({default:()=>by}),by=function(){var e=gh();return(0,O.useCallback)(function(t){return new Promise(function(n,r){t.then(function(t){e()&&n(t)},function(t){e()&&r(t)})})},[])},xy=c({default:()=>Sy});mh();var Sy=function(e){e===void 0&&(e=[]);var t=(0,O.useState)(e),n=t[0],r=t[1];return{add:function(e){r(function(t){return Km(t,[e])})},remove:function(){var e;return r(function(t){var n=t[0],r=t.slice(1);return e=n,r}),e},get first(){return n[0]},get last(){return n[n.length-1]},get size(){return n.length}}},Cy=c({default:()=>wy}),wy=function(e,t){e===void 0&&(e=0xe8d4a51000),t===void 0&&(t=0);var n=(0,O.useState)(0),r=n[0],i=n[1];return Ag(function(){var n,r,a,o=function(){i(Math.min(1,(Date.now()-a)/e)),s()},s=function(){n=requestAnimationFrame(o)},c=setTimeout(function(){r=setTimeout(function(){cancelAnimationFrame(n),i(1)},e),a=Date.now(),s()},t);return function(){clearTimeout(r),clearTimeout(c),cancelAnimationFrame(n)}},[e,t]),r},Ty=c({default:()=>Ey});function Ey(e,t){t===void 0&&(t=!0);var n=(0,O.useRef)(null),r=(0,O.useRef)(!1),i=(0,O.useRef)(e);i.current=e;var a=(0,O.useCallback)(function(e){r.current&&(i.current(e),n.current=requestAnimationFrame(a))},[]),o=(0,O.useMemo)(function(){return[function(){r.current&&(r.current=!1,n.current&&cancelAnimationFrame(n.current))},function(){r.current||(r.current=!0,n.current=requestAnimationFrame(a))},function(){return r.current}]},[]);return(0,O.useEffect)(function(){return t&&o[1](),o[0]},[]),o}var Dy=c({default:()=>ky}),Oy=function(e,t){return new URLSearchParams(e).get(t)},ky=Nh?function(e){var t=window.location,n=(0,O.useState)(function(){return Oy(t.search,e)}),r=n[0],i=n[1];return(0,O.useEffect)(function(){var n=function(){i(Oy(t.search,e))};return Z(window,`popstate`,n),Z(window,`pushstate`,n),Z(window,`replacestate`,n),function(){Q(window,`popstate`,n),Q(window,`pushstate`,n),Q(window,`replacestate`,n)}},[]),r}:function(){return null},Ay=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)),n=m(),r=parseInt(n.version.substr(0,n.version.indexOf(`.`)))>15,i=function(e){return typeof e==`function`};e.default=function(e,a){var o=[...arguments].slice(2),s=e.render,c=e.children,l=c===void 0?s:c,u=e.component,d=e.comp,f=d===void 0?u:d;return i(l)?l.apply(void 0,t.__spreadArrays([a],o)):f?n.createElement(f,a):l instanceof Array?r?l:n.createElement.apply(void 0,t.__spreadArrays([`div`,null],l)):l&&l instanceof Object?typeof l.type==`string`?l:n.cloneElement(l,Object.assign({},l.props,a)):l||null}})),jy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)),n=t.__importStar(m());e.default=function(e){return function(n){t.__extends(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.render=function(){return e(this.props,this.context)},r}(n.Component)}})),My=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)).__importDefault(jy());e.default=function(e){return e.prototype?e:t.default(e)}})),Ny=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.divWrapper=void 0;var t=(mh(),d(Am)),n=t.__importStar(m()),r=t.__importDefault(My()),i=n.createElement,a=function(e,n,r,a){var o;return i(e,n?t.__assign((o={},o[n]=a,o),r):t.__assign(t.__assign({},a),r))};e.divWrapper=function(e,t,n,r){return i(`div`,null,a(e,t,n,r))},e.default=function(e,t,n){n===void 0&&(n=a);var o=function(a,s,c){s===void 0&&(s=t),c===void 0&&(c=null);var l=typeof a==`string`;if(l)return function(e){return o(e,a||t,s)};var u=function(t){return i(e,c,function(e){return n(a,s,t,e)})};return l?r.default(u):u};return o}})),Py=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)).__importDefault(Ay()),n=function(e){return[e]};e.default=function(e,r){return r===void 0&&(r=n),function(n){return t.default(n,e.apply(void 0,r(n)))}}})),Fy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hookToRenderProp=e.createEnhancer=e.render=void 0;var t=(mh(),d(Am));e.render=t.__importDefault(Ay()).default,e.createEnhancer=t.__importDefault(Ny()).default,e.hookToRenderProp=t.__importDefault(Py()).default})),Iy=c({ScratchSensor:()=>zy,default:()=>Ry});mh();var Ly=u(Fy()),Ry=function(e){e===void 0&&(e={});var t=e.disabled,n=$_(e),r=(0,O.useState)({isScratching:!1}),i=r[0],a=r[1],o=(0,O.useRef)(i),s=(0,O.useRef)(!1),c=(0,O.useRef)(null),l=(0,O.useState)(null),u=l[0],d=l[1];return(0,O.useEffect)(function(){if(!t&&u){var e=function(e,t){cancelAnimationFrame(c.current),c.current=requestAnimationFrame(function(){var r=u.getBoundingClientRect(),i=r.left,s=r.top,c=i+window.scrollX,l=s+window.scrollY,d=e-c,f=t-l;a(function(e){var t=ch(ch({},e),{dx:d-(e.x||0),dy:f-(e.y||0),end:Date.now(),isScratching:!0});return o.current=t,(n.current.onScratch||Mh)(t),t})})},r=function(t){e(t.pageX,t.pageY)},i=function(t){e(t.changedTouches[0].pageX,t.changedTouches[0].pageY)},l,d,f=function(){s.current&&(s.current=!1,o.current=ch(ch({},o.current),{isScratching:!1}),(n.current.onScratchEnd||Mh)(o.current),a({isScratching:!1}),Q(window,`mousemove`,r),Q(window,`touchmove`,i),Q(window,`mouseup`,l),Q(window,`touchend`,d))};l=f,d=f;var p=function(e,t){if(s.current){var c=u.getBoundingClientRect(),f=c.left,p=c.top,m=f+window.scrollX,h=p+window.scrollY,g=e-m,_=t-h,v=Date.now(),y={isScratching:!0,start:v,end:v,docX:e,docY:t,x:g,y:_,dx:0,dy:0,elH:u.offsetHeight,elW:u.offsetWidth,elX:m,elY:h};o.current=y,(n.current.onScratchStart||Mh)(y),a(y),Z(window,`mousemove`,r),Z(window,`touchmove`,i),Z(window,`mouseup`,l),Z(window,`touchend`,d)}},m=function(e){s.current=!0,p(e.pageX,e.pageY)},h=function(e){s.current=!0,p(e.changedTouches[0].pageX,e.changedTouches[0].pageY)};return Z(u,`mousedown`,m),Z(u,`touchstart`,h),function(){Q(u,`mousedown`,m),Q(u,`touchstart`,h),Q(window,`mousemove`,r),Q(window,`touchmove`,i),Q(window,`mouseup`,l),Q(window,`touchend`,d),c.current&&cancelAnimationFrame(c.current),c.current=null,s.current=!1,o.current={isScratching:!1},a(o.current)}}},[u,t,n]),[d,i]},zy=function(e){e.children;var t=Ry(Mm(e,[`children`])),n=t[0],r=t[1],i=(0,Ly.render)(e,r);return(0,O.cloneElement)(i,ch(ch({},i.props),{ref:function(e){i.props.ref&&(typeof i.props.ref==`object`&&(i.props.ref.current=e),typeof i.props.ref==`function`&&i.props.ref(e)),n(e)}}))},By=c({default:()=>Vy}),Vy=function(e){var t=Wv({x:0,y:0}),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=function(){e.current&&r({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&Z(e.current,`scroll`,t,{capture:!1,passive:!0}),function(){e.current&&Q(e.current,`scroll`,t)}},[e]),n},Hy=c({default:()=>Uy}),Uy=function(e){var t=(0,O.useState)(!1),n=t[0],r=t[1];return(0,O.useEffect)(function(){if(e.current){var t,n=function(){r(!1)},i=function(){r(!0),clearTimeout(t),t=setTimeout(function(){return n()},150)};return Z(e.current,`scroll`,i,!1),function(){e.current&&Q(e.current,`scroll`,i,!1)}}return function(){}},[e]),n},Wy=c({default:()=>Gy}),Gy=function(e,t,n){if(!Nh)return[t,function(){}];var r=(0,O.useState)(function(){try{var r=sessionStorage.getItem(e);return typeof r==`string`?n?r:JSON.parse(r||`null`):(sessionStorage.setItem(e,n?String(t):JSON.stringify(t)),t)}catch{return t}}),i=r[0],a=r[1];return(0,O.useEffect)(function(){try{var t=n?String(i):JSON.stringify(i);sessionStorage.setItem(e,t)}catch{}}),[i,a]},Ky=s((e=>{var t=Object.keys;e.equal=function(e,n){if(e===n)return!0;if(!(e instanceof Object)||!(n instanceof Object))return!1;for(var r=t(e),i=r.length,a=0;a<i;a++)if(!(r[a]in n))return!1;for(var a=0;a<i;a++)if(e[r[a]]!==n[r[a]])return!1;return i===t(n).length}})),qy=c({default:()=>Xy}),Jy=u(Ky()),Yy=function(e,t){return e.every(function(e,n){return(0,Jy.equal)(e,t[n])})},Xy=function(e,t){Ig(e,t,Yy)},Zy=c({default:()=>nb});mh();var Qy=O.useState,$y=O.useEffect,eb=O.useRef,tb=function(e){return setTimeout(e,35)},nb=function(e,t){var n=t===void 0?{}:t,r=n.width,i=r===void 0?1/0:r,a=n.height,o=a===void 0?1/0:a;if(!Nh)return[typeof e==`function`?e({width:i,height:o}):e,{width:i,height:o}];var s=Qy({width:i,height:o}),c=s[0],l=s[1];typeof e==`function`&&(e=e(c));var u=e.props.style||{},d=eb(null),f=null,p=function(){var e=d.current;l(e?{width:e.offsetWidth,height:e.offsetHeight}:{width:i,height:o})},m=function(e){Z(e,`resize`,p),tb(p)};return $y(function(){var e=d.current;if(e){if(e.contentWindow)f=e.contentWindow,m(f);else{var t=function(){Z(e,`load`,t),f=e.contentWindow,m(f)};Q(e,`load`,t)}return function(){f&&f.removeEventListener&&Q(f,`resize`,p)}}},[]),u.position=`relative`,[O.cloneElement.apply(O,Km([e,{style:u}],Km([O.createElement(`iframe`,{ref:d,style:{background:`transparent`,border:`none`,height:`100%`,left:0,position:`absolute`,top:0,width:`100%`,zIndex:-1}})],O.Children.toArray(e.props.children)))),c]},rb=c({default:()=>ib}),ib=function(e,t){t===void 0&&(t={});var n=gh(),r=(0,O.useRef)(!1),i=(0,O.useRef)(0),a=(0,O.useRef)(0),o=wh({isSliding:!1,value:0}),s=o[0],c=o[1];return i.current=s.value,(0,O.useEffect)(function(){if(Nh){var o=t.styles===void 0?!0:t.styles,s=t.reverse===void 0?!1:t.reverse;e.current&&o&&(e.current.style.userSelect=`none`);var l=function(){!r.current&&n()&&((t.onScrubStart||Mh)(),r.current=!0,c({isSliding:!0}),h())},u=function(){r.current&&n()&&((t.onScrubStop||Mh)(i.current),r.current=!1,c({isSliding:!1}),g())},d=function(e){l(),f(e)},f=t.vertical?function(e){return _(e.clientY)}:function(e){return _(e.clientX)},p=function(e){l(),m(e)},m=t.vertical?function(e){return _(e.changedTouches[0].clientY)}:function(e){return _(e.changedTouches[0].clientX)},h=function(){Z(document,`mousemove`,f),Z(document,`mouseup`,u),Z(document,`touchmove`,m),Z(document,`touchend`,u)},g=function(){Q(document,`mousemove`,f),Q(document,`mouseup`,u),Q(document,`touchmove`,m),Q(document,`touchend`,u)},_=function(r){cancelAnimationFrame(a.current),a.current=requestAnimationFrame(function(){if(n()&&e.current){var i=e.current.getBoundingClientRect(),a=t.vertical?i.top:i.left,o=t.vertical?i.height:i.width;if(!o)return;var l=(r-a)/o;l>1?l=1:l<0&&(l=0),s&&(l=1-l),c({value:l}),(t.onScrub||Mh)(l)}})};return Z(e.current,`mousedown`,d),Z(e.current,`touchstart`,p),function(){Q(e.current,`mousedown`,d),Q(e.current,`touchstart`,p)}}else return},[e,t.vertical]),s},ab=c({default:()=>sb});mh();var ob;(function(e){e[e.init=0]=`init`,e[e.play=1]=`play`,e[e.pause=2]=`pause`,e[e.end=3]=`end`})(ob||={});var sb=function(e,t){var n=(0,O.useRef)(!1),r=(0,O.useState)(function(){var e=t.voice||{},n=e.lang,r=n===void 0?`default`:n,i=e.name,a=i===void 0?``:i;return{isPlaying:!1,status:ob[ob.init],lang:t.lang||`default`,voiceInfo:{lang:r,name:a},rate:t.rate||1,pitch:t.pitch||1,volume:t.volume||1}}),i=r[0],a=r[1],o=(0,O.useCallback)(function(){n.current&&a(function(e){return ch(ch({},e),{isPlaying:!0,status:ob[ob.play]})})},[]),s=(0,O.useCallback)(function(){n.current&&a(function(e){return ch(ch({},e),{isPlaying:!1,status:ob[ob.pause]})})},[]),c=(0,O.useCallback)(function(){n.current&&a(function(e){return ch(ch({},e),{isPlaying:!1,status:ob[ob.end]})})},[]);return(0,O.useEffect)(function(){n.current=!0;var r=new SpeechSynthesisUtterance(e);return t.lang&&(r.lang=t.lang),t.voice&&(r.voice=t.voice),r.rate=t.rate||1,r.pitch=t.pitch||1,r.volume=t.volume||1,r.onstart=o,r.onpause=s,r.onresume=o,r.onend=c,window.speechSynthesis.speak(r),function(){n.current=!1}},[]),i},cb=c({default:()=>db}),lb=function(){var e=document.activeElement,t=document.body;if(!e||e===t)return!1;switch(e.tagName){case`INPUT`:case`TEXTAREA`:return!0}return e.hasAttribute(`contenteditable`)},ub=function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,i=e.altKey;return n||r||i?!1:t>=48&&t<=57||t>=65&&t<=90},db=function(e){Ag(function(){var t=function(t){!lb()&&ub(t)&&e(t)};return Z(document,`keydown`,t),function(){Q(document,`keydown`,t)}},[])},fb=c({useStateWithHistory:()=>pb});function pb(e,t,n){if(t===void 0&&(t=10),t<1)throw Error(`Capacity has to be greater than 1, got '`+t+`'`);var r=Sm(),i=(0,O.useState)(e),a=i[0],o=i[1],s=(0,O.useRef)(n??[]),c=(0,O.useRef)(0);return r&&(s.current.length?(s.current[s.current.length-1]!==e&&s.current.push(e),s.current.length>t&&(s.current=s.current.slice(s.current.length-t))):s.current.push(e),c.current=s.current.length&&s.current.length-1),[a,(0,O.useCallback)(function(e){o(function(n){return e=mg(e,n),e!==n&&(c.current<s.current.length-1&&(s.current=s.current.slice(0,c.current+1)),c.current=s.current.push(e)-1,s.current.length>t&&(s.current=s.current.slice(s.current.length-t))),e})},[a,t]),(0,O.useMemo)(function(){return{history:s.current,position:c.current,capacity:t,back:function(e){e===void 0&&(e=1),c.current&&o(function(){return c.current-=Math.min(e,c.current),s.current[c.current]})},forward:function(e){e===void 0&&(e=1),c.current!==s.current.length-1&&o(function(){return c.current=Math.min(c.current+e,s.current.length-1),s.current[c.current]})},go:function(e){e!==c.current&&o(function(){return c.current=e<0?Math.max(s.current.length+e,0):Math.min(s.current.length-1,e),s.current[c.current]})}}},[a])]}var mb=c({default:()=>hb});mh();function hb(e){e===void 0&&(e=[]);var t=gh(),n=fg(),r=(0,O.useRef)(0);wm(function(){e.length<=r.current&&(r.current=e.length-1,n())},[e.length]);var i=(0,O.useMemo)(function(){return{next:function(){return i.setStateAt(r.current+1)},prev:function(){return i.setStateAt(r.current-1)},setStateAt:function(i){t()&&e.length&&i!==r.current&&(r.current=i>=0?i%e.length:e.length+i%e.length,n())},setState:function(i){if(t()){var a=e.length?e.indexOf(i):-1;if(a===-1)throw Error(`State '`+i+`' is not a valid state (does not exist in state list)`);r.current=a,n()}}}},[e]);return ch({state:e[r.current],currentIndex:r.current,isFirst:r.current===0,isLast:r.current===e.length-1},i)}var gb=c({default:()=>_b}),_b=function(e,t){t===void 0&&(t=200);var n=(0,O.useState)(e),r=n[0],i=n[1],a=(0,O.useRef)(),o=(0,O.useRef)(null),s=(0,O.useRef)(0);return(0,O.useEffect)(function(){if(a.current)o.current=e,s.current=!0;else{i(e);var n=function(){s.current?(s.current=!1,i(o.current),a.current=setTimeout(n,t)):a.current=void 0};a.current=setTimeout(n,t)}},[e]),Hv(function(){a.current&&clearTimeout(a.current)}),r},vb=c({default:()=>yb}),yb=function(e,t,n){t===void 0&&(t=200);var r=(0,O.useState)(null),i=r[0],a=r[1],o=(0,O.useRef)(),s=(0,O.useRef)();return(0,O.useEffect)(function(){if(o.current)s.current=n;else{a(e.apply(void 0,n));var r=function(){s.current?(a(e.apply(void 0,s.current)),s.current=void 0,o.current=setTimeout(r,t)):o.current=void 0};o.current=setTimeout(r,t)}},n),Hv(function(){o.current&&clearTimeout(o.current)}),i},bb=c({default:()=>xb});function xb(e){return e===void 0&&(e=0),Rg(fg(),e)}var Sb=c({default:()=>Tb}),Cb={restoreOnUnmount:!1};function wb(e,t){t===void 0&&(t=Cb);var n=(0,O.useRef)(document.title);document.title!==e&&(document.title=e),(0,O.useEffect)(function(){if(t&&t.restoreOnUnmount)return function(){document.title=n.current}},[])}var Tb=typeof document<`u`?wb:function(e){},Eb=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.easing={linear:function(e){return e},quadratic:function(e){return e*(-(e*e)*e+4*e*e-6*e+4)},cubic:function(e){return e*(4*e*e-9*e+6)},elastic:function(e){return e*(33*e*e*e*e-106*e*e*e+126*e*e-67*e+15)},inQuad:function(e){return e*e},outQuad:function(e){return e*(2-e)},inOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},inCubic:function(e){return e*e*e},outCubic:function(e){return--e*e*e+1},inOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},inQuart:function(e){return e*e*e*e},outQuart:function(e){return 1- --e*e*e*e},inOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},inQuint:function(e){return e*e*e*e*e},outQuint:function(e){return 1+--e*e*e*e*e},inOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},inSine:function(e){return-Math.cos(Math.PI/2*e)+1},outSine:function(e){return Math.sin(Math.PI/2*e)},inOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},inExpo:function(e){return 2**(10*(e-1))},outExpo:function(e){return-(2**(-10*e))+1},inOutExpo:function(e){return e/=.5,e<1?2**(10*(e-1))/2:(e--,(-(2**(-10*e))+2)/2)},inCirc:function(e){return-Math.sqrt(1-e*e)+1},outCirc:function(e){return Math.sqrt(1- --e*e)},inOutCirc:function(e){return e/=.5,e<1?-(Math.sqrt(1-e*e)-1)/2:(e-=2,(Math.sqrt(1-e*e)+1)/2)}}})),Db=c({default:()=>kb}),Ob=u(Eb()),kb=function(e,t,n){e===void 0&&(e=`inCirc`),t===void 0&&(t=200),n===void 0&&(n=0);var r=Ob.easing[e];return r(wy(t,n))},Ab=c({default:()=>jb}),jb=function(){var e=(0,O.useRef)(!1);return $g(function(){return function(){e.current=!0}}),(0,O.useMemo)(function(){return function(t,n){return new Promise(function(r,i){t.then(function(t){e.current||r(t)},function(t){e.current?n?n(t):console.error(`useUnmountPromise`,t):i(t)})})}},[])},Mb=c({default:()=>Nb});mh();function Nb(e,t){t===void 0&&(t=[]);var n=rv(t),r=n[0],i=n[1];return[r,ch(ch({},i),{upsert:function(t){i.upsert(e,t)}})]}var Pb=c({default:()=>Lb}),Fb=Ph&&`vibrate`in navigator;function Ib(e,t,n){e===void 0&&(e=!0),t===void 0&&(t=[1e3,1e3]),n===void 0&&(n=!0),(0,O.useEffect)(function(){var r;if(e&&(navigator.vibrate(t),n)){var i=t instanceof Array?t.reduce(function(e,t){return e+t}):t;r=setInterval(function(){navigator.vibrate(t)},i)}return function(){e&&(navigator.vibrate(0),n&&clearInterval(r))}},[e])}var Lb=Fb?Ib:Mh,Rb=c({default:()=>zb}),zb=Oh(`video`),Bb=c({default:()=>Vb});function Vb(e,t,n){n===void 0&&(n=[void 0]);var r=(0,O.useRef)(t),i=(0,O.useRef)(e);r.current=t,i.current=e;var a=(0,O.useState)(n),o=a[0],s=a[1],c=(0,O.useCallback)(function(){r.current.length>=2?r.current(i.current,s):s(r.current(i.current))},[s]);return(0,O.useEffect)(function(){c()},[e]),[o,c]}var Hb=c({scrollbarWidth:()=>Ub}),Ub=function(e){if(typeof document>`u`)return 0;if(document.body&&(!document.readyState||document.readyState!==`loading`)){if(!0!==e&&typeof Ub.__cache==`number`)return Ub.__cache;var t=document.createElement(`div`),n=t.style;n.display=`block`,n.position=`absolute`,n.width=`100px`,n.height=`100px`,n.left=`-999px`,n.top=`-999px`,n.overflow=`scroll`,document.body.insertBefore(t,null);var r=t.clientWidth;if(r!==0)return Ub.__cache=100-r,document.body.removeChild(t),Ub.__cache;document.body.removeChild(t)}},Wb=c({useScrollbarWidth:()=>Gb});function Gb(){var e=(0,O.useState)(Ub()),t=e[0],n=e[1];return(0,O.useEffect)(function(){if(t===void 0){var e=requestAnimationFrame(function(){n(Ub())});return function(){return cancelAnimationFrame(e)}}},[]),t}var Kb=c({useMultiStateValidator:()=>qb});function qb(e,t,n){if(n===void 0&&(n=[void 0]),typeof e!=`object`)throw Error(`states expected to be an object or array, got `+typeof e);var r=(0,O.useRef)(t),i=(0,O.useRef)(e);r.current=t,i.current=e;var a=(0,O.useState)(n),o=a[0],s=a[1],c=(0,O.useCallback)(function(){r.current.length>=2?r.current(i.current,s):s(r.current(i.current))},[s]);return(0,O.useEffect)(function(){c()},Object.values(e)),[o,c]}var Jb=c({default:()=>Yb}),Yb=function(){var e=Wv(function(){return{x:Nh?window.pageXOffset:0,y:Nh?window.pageYOffset:0}}),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=function(){n(function(e){var t=window.pageXOffset,n=window.pageYOffset;return e.x!==t||e.y!==n?{x:t,y:n}:e})};return e(),Z(window,`scroll`,e,{capture:!1,passive:!0}),function(){Q(window,`scroll`,e)}},[]),t},Xb=c({default:()=>Zb}),Zb=function(e){var t=e===void 0?{}:e,n=t.initialWidth,r=n===void 0?1/0:n,i=t.initialHeight,a=i===void 0?1/0:i,o=t.onChange,s=Wv({width:Nh?window.innerWidth:r,height:Nh?window.innerHeight:a}),c=s[0],l=s[1];return(0,O.useEffect)(function(){if(Nh){var e=function(){var e=window.innerWidth,t=window.innerHeight;l({width:e,height:t}),o&&o(e,t)};return Z(window,`resize`,e),function(){Q(window,`resize`,e)}}},[]),c},Qb=c({default:()=>tx}),$b={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function ex(){var e=(0,O.useState)(null),t=e[0],n=e[1],r=(0,O.useState)($b),i=r[0],a=r[1],o=(0,O.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return Ag(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var tx=Nh&&window.ResizeObserver!==void 0?ex:(function(){return[Mh,$b]}),nx=c({ZoomState:()=>rx,default:()=>ix}),rx;(function(e){e.ZOOMING_IN=`ZOOMING_IN`,e.ZOOMING_OUT=`ZOOMING_OUT`})(rx||={});var ix=function(e){var t=(0,O.useMemo)(function(){return{evCache:[],prevDiff:-1}},[e.current]),n=(0,O.useState)(),r=n[0],i=n[1],a=function(e){for(var n=0;n<t.evCache.length;n++)if(e.pointerId==t.evCache[n].pointerId){t.evCache[n]=e;break}if(t.evCache.length==2){var r=Math.abs(t.evCache[0].clientX-t.evCache[1].clientX);t.prevDiff>0&&(r>t.prevDiff&&i([rx.ZOOMING_IN,r]),r<t.prevDiff&&i([rx.ZOOMING_OUT,r])),t.prevDiff=r}},o=function(e){t.evCache.push(e)},s=function(e){c(e),t.evCache.length<2&&(t.prevDiff=-1)},c=function(e){for(var n=0;n<t.evCache.length;n++)if(t.evCache[n].pointerId==e.pointerId){t.evCache.splice(n,1);break}};return(0,O.useEffect)(function(){e?.current&&(e.current.onpointerdown=o,e.current.onpointermove=a,e.current.onpointerup=s,e.current.onpointercancel=s,e.current.onpointerout=s,e.current.onpointerleave=s)},[e?.current]),r?{zoomingState:r[0],pinchState:r[1]}:{zoomingState:null,pinchState:0}},ax=c({useRendersCount:()=>ox});function ox(){return++(0,O.useRef)(0).current}var sx=c({default:()=>cx});mh();var cx=function(e){e===void 0&&(e=new Set);var t=(0,O.useState)(e),n=t[0],r=t[1],i=(0,O.useMemo)(function(){return{add:function(e){return r(function(t){return new Set(Km(Array.from(t),[e]))})},remove:function(e){return r(function(t){return new Set(Array.from(t).filter(function(t){return t!==e}))})},toggle:function(e){return r(function(t){return t.has(e)?new Set(Array.from(t).filter(function(t){return t!==e})):new Set(Km(Array.from(t),[e]))})},reset:function(){return r(e)},clear:function(){return r(new Set)}}},[r]);return[n,ch({has:(0,O.useCallback)(function(e){return n.has(e)},[n])},i)]},lx=c({createGlobalState:()=>ux,default:()=>ux});function ux(e){var t={state:e instanceof Function?e():e,setState:function(e){t.state=mg(e,t.state),t.setters.forEach(function(e){return e(t.state)})},setters:[]};return function(){var e=(0,O.useState)(t.state),n=e[0],r=e[1];return $g(function(){return function(){t.setters=t.setters.filter(function(e){return e!==r})}}),Ag(function(){t.setters.includes(r)||t.setters.push(r)}),[n,t.setState]}}var dx=c({useHash:()=>fx}),fx=function(){var e=(0,O.useState)(function(){return window.location.hash}),t=e[0],n=e[1],r=(0,O.useCallback)(function(){n(window.location.hash)},[]);return tv(function(){Z(window,`hashchange`,r)},function(){Q(window,`hashchange`,r)}),[t,(0,O.useCallback)(function(e){e!==t&&(window.location.hash=e)},[t])]},px=c({createBreakpoint:()=>q_,createGlobalState:()=>ux,createMemo:()=>vm,createReducer:()=>Dm,createReducerContext:()=>bm,createStateContext:()=>km,ensuredForwardRef:()=>n_,useAsync:()=>bh,useAsyncFn:()=>vh,useAsyncRetry:()=>Sh,useAudio:()=>Ah,useBattery:()=>Wh,useBeforeUnload:()=>Kh,useBoolean:()=>Zh,useClickAway:()=>eg,useCookie:()=>ig,useCopyToClipboard:()=>lg,useCounter:()=>vg,useCss:()=>Pg,useCustomCompareEffect:()=>Ig,useDebounce:()=>Bg,useDeepCompareEffect:()=>Hg,useDefault:()=>Wg,useDrop:()=>qg,useDropArea:()=>Zg,useEffectOnce:()=>$g,useEnsuredForwardedRef:()=>t_,useError:()=>l_,useEvent:()=>s_,useFavicon:()=>d_,useFirstMountState:()=>Sm,useFullscreen:()=>h_,useGeolocation:()=>__,useGetSet:()=>gg,useGetSetState:()=>y_,useHarmonicIntervalFn:()=>E_,useHash:()=>fx,useHover:()=>k_,useHoverDirty:()=>j_,useIdle:()=>R_,useIntersection:()=>B_,useInterval:()=>H_,useIsomorphicLayoutEffect:()=>Ag,useKey:()=>G_,useKeyPress:()=>Y_,useKeyPressEvent:()=>Z_,useLatest:()=>$_,useLifecycles:()=>tv,useList:()=>rv,useLocalStorage:()=>av,useLocation:()=>uv,useLockBodyScroll:()=>vv,useLogger:()=>bv,useLongPress:()=>wv,useMap:()=>Ev,useMeasure:()=>tx,useMedia:()=>kv,useMediaDevices:()=>jv,useMediatedState:()=>Nv,useMethods:()=>Fv,useMotion:()=>Rv,useMount:()=>Bv,useMountedState:()=>gh,useMouse:()=>Kv,useMouseHovered:()=>Yv,useMouseWheel:()=>Zv,useMultiStateValidator:()=>qb,useNetworkState:()=>ny,useNumber:()=>iy,useObservable:()=>oy,useOrientation:()=>ly,usePageLeave:()=>dy,usePermission:()=>py,usePinchZoom:()=>ix,usePrevious:()=>hy,usePreviousDistinct:()=>vy,usePromise:()=>by,useQueue:()=>Sy,useRaf:()=>wy,useRafLoop:()=>Ey,useRafState:()=>Wv,useRendersCount:()=>ox,useScratch:()=>Ry,useScroll:()=>Vy,useScrollbarWidth:()=>Gb,useScrolling:()=>Uy,useSearchParam:()=>ky,useSessionStorage:()=>Gy,useSet:()=>cx,useSetState:()=>wh,useShallowCompareEffect:()=>Xy,useSize:()=>nb,useSlider:()=>ib,useSpeech:()=>sb,useStartTyping:()=>db,useStateList:()=>hb,useStateValidator:()=>Vb,useStateWithHistory:()=>pb,useThrottle:()=>_b,useThrottleFn:()=>yb,useTimeout:()=>xb,useTimeoutFn:()=>Rg,useTitle:()=>Tb,useToggle:()=>Yh,useTween:()=>kb,useUnmount:()=>Hv,useUnmountPromise:()=>jb,useUpdate:()=>fg,useUpdateEffect:()=>wm,useUpsert:()=>Nb,useVibrate:()=>Lb,useVideo:()=>zb,useWindowScroll:()=>Yb,useWindowSize:()=>Zb}),mx=c({default:()=>hx});function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hx.apply(null,arguments)}var gx=c({Action:()=>_x,createBrowserHistory:()=>Sx,createHashHistory:()=>Cx,createMemoryHistory:()=>wx,createPath:()=>kx,parsePath:()=>Ax}),_x;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(_x||={});var vx=function(e){return e},yx=`beforeunload`,bx=`hashchange`,xx=`popstate`;function Sx(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,a=e.hash,o=r.state||{};return[o.idx,vx({pathname:t,search:i,hash:a,state:o.usr||null,key:o.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=_x.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){b(o*-1)}},b(o))}}else _(e)}}n.addEventListener(xx,o);var s=_x.Pop,c=i(),l=c[0],u=c[1],d=Dx(),f=Dx();l??(l=0,r.replaceState(hx({},r.state,{idx:l}),``));function p(e){return typeof e==`string`?e:kx(e)}function m(e,t){return t===void 0&&(t=null),vx(hx({pathname:u.pathname,hash:``,search:``},typeof e==`string`?Ax(e):e,{state:t,key:Ox()}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function g(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function _(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function v(e,t){var i=_x.Push,a=m(e,t);function o(){v(e,t)}if(g(i,a,o)){var s=h(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}_(i)}}function y(e,t){var n=_x.Replace,i=m(e,t);function a(){y(e,t)}if(g(n,i,a)){var o=h(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),_(n)}}function b(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:p,push:v,replace:y,go:b,back:function(){b(-1)},forward:function(){b(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(yx,Ex),function(){t(),f.length||n.removeEventListener(yx,Ex)}}}}function Cx(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=Ax(n.location.hash.substr(1)),t=e.pathname,i=t===void 0?`/`:t,a=e.search,o=a===void 0?``:a,s=e.hash,c=s===void 0?``:s,l=r.state||{};return[l.idx,vx({pathname:i,search:o,hash:c,state:l.usr||null,key:l.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=_x.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){x(o*-1)}},x(o))}}else v(e)}}n.addEventListener(xx,o),n.addEventListener(bx,function(){var e=i()[1];kx(e)!==kx(u)&&o()});var s=_x.Pop,c=i(),l=c[0],u=c[1],d=Dx(),f=Dx();l??(l=0,r.replaceState(hx({},r.state,{idx:l}),``));function p(){var e=document.querySelector(`base`),t=``;if(e&&e.getAttribute(`href`)){var r=n.location.href,i=r.indexOf(`#`);t=i===-1?r:r.slice(0,i)}return t}function m(e){return p()+`#`+(typeof e==`string`?e:kx(e))}function h(e,t){return t===void 0&&(t=null),vx(hx({pathname:u.pathname,hash:``,search:``},typeof e==`string`?Ax(e):e,{state:t,key:Ox()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function _(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function y(e,t){var i=_x.Push,a=h(e,t);function o(){y(e,t)}if(_(i,a,o)){var s=g(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}v(i)}}function b(e,t){var n=_x.Replace,i=h(e,t);function a(){b(e,t)}if(_(n,i,a)){var o=g(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),v(n)}}function x(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:m,push:y,replace:b,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(yx,Ex),function(){t(),f.length||n.removeEventListener(yx,Ex)}}}}function wx(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?[`/`]:n,i=t.initialIndex,a=r.map(function(e){return vx(hx({pathname:`/`,search:``,hash:``,state:null,key:Ox()},typeof e==`string`?Ax(e):e))}),o=Tx(i??a.length-1,0,a.length-1),s=_x.Pop,c=a[o],l=Dx(),u=Dx();function d(e){return typeof e==`string`?e:kx(e)}function f(e,t){return t===void 0&&(t=null),vx(hx({pathname:c.pathname,search:``,hash:``},typeof e==`string`?Ax(e):e,{state:t,key:Ox()}))}function p(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function m(e,t){s=e,c=t,l.call({action:s,location:c})}function h(e,t){var n=_x.Push,r=f(e,t);function i(){h(e,t)}p(n,r,i)&&(o+=1,a.splice(o,a.length,r),m(n,r))}function g(e,t){var n=_x.Replace,r=f(e,t);function i(){g(e,t)}p(n,r,i)&&(a[o]=r,m(n,r))}function _(e){var t=Tx(o+e,0,a.length-1),n=_x.Pop,r=a[t];function i(){_(e)}p(n,r,i)&&(o=t,m(n,r))}return{get index(){return o},get action(){return s},get location(){return c},createHref:d,push:h,replace:g,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function Tx(e,t,n){return Math.min(Math.max(e,t),n)}function Ex(e){e.preventDefault(),e.returnValue=``}function Dx(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function Ox(){return Math.random().toString(36).substr(2,8)}function kx(e){var t=e.pathname,n=t===void 0?`/`:t,r=e.search,i=r===void 0?``:r,a=e.hash,o=a===void 0?``:a;return i&&i!==`?`&&(n+=i.charAt(0)===`?`?i:`?`+i),o&&o!==`#`&&(n+=o.charAt(0)===`#`?o:`#`+o),n}function Ax(e){var t={};if(e){var n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var jx=c({default:()=>Px}),Mx=window.MUSE_GLOBAL?.appConfig?.routerType||`browser`,Nx;switch(Mx){case`browser`:Nx=Sx;break;case`memory`:Nx=wx;break;case`hash`:Nx=Cx;break;default:Nx=Sx;break}var Px=Nx(),Fx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=u,e.compile=d,e.match=m,e.pathToRegexp=h,e.stringify=b;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function o(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var c=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=c;var l=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=l;function u(e,t={}){let{encodePath:a=n}=t,o=[...e],s=0;function u(t){let n=[],c=``;function d(){c&&=(n.push({type:`text`,value:a(c)}),``)}for(;s<o.length;){let a=o[s++];if(a===t)return d(),n;if(a===`\\`){if(s===o.length)throw new l(`Unexpected end after \\ at index ${s}`,e);c+=o[s++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,c=``;if(r.test(o[s]))do c+=o[s++];while(i.test(o[s]));else if(o[s]===`"`){let t=s;for(;s<o.length;){if(o[++s]===`"`){s++,t=0;break}o[s]===`\\`&&s++,c+=o[s]}if(t)throw new l(`Unterminated quote at index ${t}`,e)}if(!c)throw new l(`Missing parameter name at index ${s}`,e);d(),n.push({type:t,name:c});continue}if(a===`{`){d(),n.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new l(`Unexpected ${a} at index ${s-1}`,e);c+=a}if(t)throw new l(`Unexpected end at index ${s}, expected ${t}`,e);return d(),n}return new c(u(``),e)}function d(e,n={}){let{encode:r=encodeURIComponent,delimiter:i=t}=n,a=f((typeof e==`object`?e:u(e,n)).tokens,i,r);return function(e={}){let t=[],n=a(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function f(e,t,n){let r=e.map(e=>p(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function p(e,t,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let n=f(e.tokens,t,r);return(e,t)=>{let r=t.length,i=n(e,t);return t.length===r?i:(t.length=r,``)}}let i=r||n;return e.type===`wildcard`&&r!==!1?(n,r)=>{let a=n[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let n=0;n<a.length;n++){if(typeof a[n]!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);n>0&&(o+=t),o+=i(a[n])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function m(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=h(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function h(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:o=!0}=n,c=[],d=``,f=0;function p(e){if(Array.isArray(e)){for(let t of e)p(t);return}let t=typeof e==`object`?e:u(e,n);g(t.tokens,0,[],e=>{if(f>=256)throw new l(`Too many path combinations`,t.originalPath);f>0&&(d+=`|`),d+=_(e,r,c,t.originalPath),f++})}p(e);let m=`^(?:${d})`;return o&&(m+=`(?:`+s(r)+`$)?`),m+=i?`$`:`(?=`+s(r)+`|$)`,{regexp:new RegExp(m,a?``:`i`),keys:c}}function g(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;g(i.tokens,0,n,n=>g(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function _(e,t,n,r){let i=``,a=``,o=``,c=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=s(m.value),a+=m.value,c===2&&(o+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(c&&!a)throw new l(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${v(t,a)}+)`:f(d,`wildcard`)?`(${v(t,p(d))}+)`:u&1?`(${v(t,a)}+|${s(a)})`:`(${v(t,``)}+)`,u|=c=1):(i+=u&2?`(${v(a,``)}+)`:o?`(${v(o,``)}+|${v(t,``)}+)`:`([^]+)`,o=``,u|=c=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function v(e,t){return t.length>e.length?v(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${s(e)}|${s(t)})[^])`:e.length>1?`(?:(?!${s(e)})[^${s(t)}])`:`[^${s(e+t)}]`)}function y(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=o(r.value);continue}if(r.type===`group`){n+=`{`+y(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+x(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+x(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function b(e){return y(e.tokens,0)}function x(e,t){return!a.test(e)||t?.type===`text`&&i.test(t.value[0])?JSON.stringify(e):e}})),Ix=c({default:()=>Rx}),Lx=u(Fx(),1),Rx={getChildUrlPath(e){let t=document.location.href.replace(document.location.origin,``),n=(0,Lx.match)(e.path,{decode:decodeURIComponent,end:!1})(t);if(console.log(e.path,t,n),n){let r=Zd.default.template(e.url)(n.params),i=t.replace((0,Lx.pathToRegexp)(e.path,[],{end:!1}),``),a=r.split(`/`);a.splice(0,3);let o=a.join(`/`).replace(/\/*$/,``)+i;return o.startsWith(`/`)||(o=`/`+o),console.log(`childUrlPath: `,o),o}return null},getParentPath(e,t){let n=document.location.href.replace(document.location.origin,``),r=(0,Lx.match)(t.path,{decode:decodeURIComponent,end:!1})(n);if(!r)return null;let i=Zd.default.template(t.url)(r.params);console.log(`child full path: `,e,t);let a=`/`+i.split(`/`).slice(3).join(`/`);if(console.log(`mountedSubPath: `,a),!(a===`/`||e.startsWith(a)&&[``,`?`,`/`,`#`].includes(e.charAt(a.length))))return;let o=(0,Lx.pathToRegexp)(t.path,[],{end:!1}),s=document.location.pathname;if(!o.test(s))return;let c=s.match(o);console.log(`parent register path: `,c[0]);let l=(c[0]+e.replace(a,``)).replace(/\/+/g,`/`).replace(/\/$/,``);return console.log(`newParentFullPath: `,l),l},getOrigin(e){let t=e.split(`/`);return t.length=3,t.join(`/`)}},zx=c({default:()=>Ux}),Bx=Zd.default.debounce(e=>{Px.push(e)}),Vx=window.MUSE_GLOBAL.msgEngine,Hx={};function Ux({context:e=null,subApp:t}){let n=(0,O.useRef)(),[r,i]=(0,O.useState)(),a=uv(),o=a.href.replace(a.origin,``),s=Rx.getChildUrlPath(t),c=Hx[t.url],l=`${Rx.getOrigin(t.url)}${s}`;(0,O.useEffect)(()=>{n.current&&r===`app-loaded`&&Vx?.sendToChild({type:`sub-app-context-change`,data:e},c)},[e,t,c,r]);let u=(0,O.useCallback)(async e=>{try{await window.MUSE_GLOBAL?.msgEngine.assertMuseApp(e)}catch(e){console.log(`Not a muse app: `,e),i(`not-a-muse-app`)}},[]);(0,O.useEffect)(()=>{if(!s||!n.current)return;let e=Hx[t.url],r=n.current.getBoundingClientRect();e?e.style.left=r.left+`px`:(e=document.createElement(`iframe`),e.src=l,e.onload=()=>u(e),Hx[t.url]=e,Object.assign(e.style,{position:`fixed`,top:r.top+`px`,left:r.left+`px`,width:r.width+`px`,height:r.height+`px`,border:`none`,zIndex:1e3,margin:0}),document.body.appendChild(e))},[l,u,s,t.url]),(0,O.useEffect)(()=>{c&&Vx?.sendToChild({type:`parent-route-change`,path:s},c)},[s,c]),(0,O.useEffect)(()=>()=>{let e=Hx[t.url];e&&(e.style.left=`-100000px`)},[t.url]),s_(`resize`,(0,O.useCallback)(()=>{let e=Hx[t.url];if(e&&n.current){let t=n.current.getBoundingClientRect();Object.assign(e.style,{width:t.width+`px`,height:t.height+`px`})}},[t.url]));let d=(0,O.useCallback)(n=>{if(n.type)if(n.type===`child-route-change`&&n.path){let e=Rx.getParentPath(n.path,t);e!==o&&Bx(e)}else n.type===`app-state-change`&&(i(n.state),n.state===`app-loaded`&&(Vx?.sendToChild({type:`sub-app-context-change`,data:e},c),c.museLoaded=!0))},[t,o,i,e,c]);return(0,O.useEffect)(()=>{let e=Math.random();return Vx?.addListener(e,d),()=>Vx?.removeListener(e)},[d]),s?(0,X.jsxs)(`div`,{className:`muse-react_sub-app-sub-app-container`,children:[!c?.museLoaded&&r!==`app-loaded`&&r!==`app-failed`&&r!==`login-page`&&r!==`check-c2s-proxy-failed`&&(0,X.jsx)(Xx,{state:r}),r===`app-failed`&&(0,X.jsxs)(`div`,{className:`sub-app-sub-app-failed`,children:[`Failed to start sub app `,t.name,`: /`,t.path,` => `,t.url,`.`]}),r===`check-c2s-proxy-failed`&&(0,X.jsx)(eS,{}),(0,X.jsx)(`div`,{ref:n,style:{visibility:[`app-loaded`,`login-page`].includes(r)?`visible`:`hidden`},className:`sub-app-iframe-wrapper`})]}):`Error: can not detect a sub app. Are you using sub app container correctly?`}var Wx=c({default:()=>qx}),Gx=Zd.default.debounce(e=>{Px.push(e)}),Kx=window.MUSE_GLOBAL.msgEngine;function qx({context:e=null,subApp:t}){let n=(0,O.useRef)(),[r,i]=(0,O.useState)(),a=uv(),o=a.href.replace(a.origin,``),s=Rx.getChildUrlPath(t);console.log(`subPath`,s);let c=n.current?.firstChild,l=`${Rx.getOrigin(t.url)}${s}`;(0,O.useEffect)(()=>{n.current&&r===`app-loaded`&&Kx?.sendToChild({type:`sub-app-context-change`,data:e},c)},[e,t,c,r]),(0,O.useEffect)(()=>{if(!s||!n.current)return;let e=n.current?.firstChild;e||(e=document.createElement(`iframe`),e.src=l,n.current.appendChild(e))},[l,s]),(0,O.useEffect)(()=>{!c||!s||Kx?.sendToChild({type:`parent-route-change`,path:s,url:s},c)},[s,c]);let u=(0,O.useCallback)(n=>{if(n.type)if(n.type===`child-route-change`&&n.path){let e=Rx.getParentPath(n.path,t);e!==o&&e&&Gx(e)}else n.type===`app-state-change`&&(i(n.state),n.state===`app-loaded`&&(Kx?.sendToChild({type:`sub-app-context-change`,data:e},c),c.museLoaded=!0))},[t,o,i,e,c]);return(0,O.useEffect)(()=>{let e=Math.random();return Kx?.addListener(e,u),()=>Kx?.removeListener(e)},[u]),(0,X.jsxs)(`div`,{className:`muse-react_sub-app-fixed-sub-app-container`,children:[!c?.museLoaded&&r!==`app-loaded`&&r!==`app-failed`&&r!==`login-page`&&r!==`check-c2s-proxy-failed`&&(0,X.jsx)(Xx,{state:r}),r===`app-failed`&&(0,X.jsxs)(`div`,{className:`sub-app-sub-app-failed`,children:[`Failed to start sub app `,t.name,`: /`,t.path,` => `,t.url,`.`]}),r===`check-c2s-proxy-failed`&&(0,X.jsx)(eS,{}),(0,X.jsx)(`div`,{ref:n,style:{visibility:[`app-loaded`,`login-page`].includes(r)?`visible`:`hidden`},className:`sub-app-iframe-wrapper`})]})}var Jx=c({default:()=>Xx}),Yx={"app-starting":`Loading sub app...`,"app-loading":`Starting sub app...`,"fetch-user-info":`Fetching user info...`,"app-begin-login":`Checking authentication...`,"check-c2s-proxy":`Checking c2s proxy...`};function Xx({state:e}){return(0,X.jsx)(`div`,{className:`sub-app-loading-skeleton`,children:(0,X.jsx)(`div`,{className:`sub-app-loading-center-container`,children:(0,X.jsx)(`label`,{children:Yx[e]||`Loading sub app...`})})})}var Zx=c({default:()=>Qx}),Qx=O.createContext(),$x=c({default:()=>eS});function eS(){return(0,X.jsxs)(`div`,{className:`sub-app-c-2-s-proxy-failed`,children:[(0,X.jsx)(`h3`,{children:`Error: failed to detect c2s proxy.`}),(0,X.jsx)(`p`,{children:`This page needs c2s proxy, please config it and refresh the page.`})]})}var tS=c({C2SProxyFailed:()=>eS,FixedSubAppContainer:()=>qx,LoadingSkeleton:()=>Xx,SubAppContainer:()=>Ux,SubAppContext:()=>Qx}),nS=c({default:()=>aS}),rS=[],iS=window.MUSE_GLOBAL?.plugins?.find(e=>e.name===`@ebay/muse-lib-react`);iS?.subApps?.filter(e=>e.mountPoint===`default`||!e.mountPoint)?.forEach(e=>{rS.push({path:e.path+`/*`,component:()=>(0,X.jsx)(Ux,{subApps:iS?.config?.subApps||[],subApp:e},e.url)})});var aS={path:`sub-app`,childRoutes:[...rS]},oS=c({default:()=>uS}),sS=[mm,gm,aS];function cS(e){if(!e.childRoutes||!e.childRoutes.length)return;let t=Zd.default.find(e.childRoutes,e=>e.isIndex);if(t){let n={...t};n.path=``,n.exact=!0,n.autoIndexRoute=!0,e.childRoutes.unshift(n)}e.childRoutes.forEach(cS)}var lS=e=>{let t={},n=[...e],r=[];for(;n.length>0;){let i=n.shift();i?.id&&(t[i.id]=i),i.childRoutes&&(Zd.default.forEachRight([...i.childRoutes],(e,t)=>{Zd.default.isArray(e?.path)&&i.childRoutes.splice(t,1,...e.path.map(e=>({...i,path:e})))}),n.push(...i.childRoutes),[...i.childRoutes].forEach(t=>{t?.path?.startsWith(`/`)?(Zd.default.pull(i.childRoutes,t),e.unshift(t)):t.parent&&(r.push(t),Zd.default.pull(i.childRoutes,t))}))}r.forEach(e=>{let n=e.parent;t[n]?(t[n].childRoutes||(t[n].childRoutes=[]),t[n].childRoutes.unshift(e)):console.warn(`Warning: no parent route found with id ${n}.`,e)})},uS=()=>{let e=[...sS];Vf.default.invoke(`!route`).forEach(t=>{e.push(...Zd.default.castArray(t))});let t=window.MUSE_GLOBAL||{},n=Xp,r=Vf.default.getPlugins(`home.homepage`);if(r.length===1)n=r[0].home.homepage;else if(r.length>1){let e=Zd.default.find(r,{name:t.homepage});n=e?e.home.homepage:()=>(0,X.jsxs)(`div`,{style:{color:`red`,padding:`20px`},children:[`Failed to show homepage: multiple homepages found from:`,` `,r.map(e=>e.name).join(`, `),`. You should load only one plugin which defines homepage.`]})}e.unshift({path:``,component:n});let i=[{path:`/`,component:Kp,childRoutes:[...Zd.default.cloneDeep(e),{path:`*`,name:`Page not found`,component:$p}].filter(e=>e.component||e.render||e.childRoutes&&e.childRoutes.length>0)}];return i.forEach(cS),lS(i[0].childRoutes),i},dS=c({Subscribable:()=>fS}),fS=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pS=c({FocusManager:()=>mS,focusManager:()=>hS}),mS=class extends fS{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},hS=new mS,gS=c({TimeoutManager:()=>vS,defaultTimeoutProvider:()=>_S,systemSetTimeoutZero:()=>bS,timeoutManager:()=>yS}),_S={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vS=class{#e=_S;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},yS=new vS;function bS(e){setTimeout(e,0)}var xS=c({addConsumeAwareSignal:()=>JS,addToEnd:()=>US,addToStart:()=>WS,ensureQueryFn:()=>KS,functionalUpdate:()=>wS,hashKey:()=>MS,hashQueryKeyByOptions:()=>jS,isPlainArray:()=>LS,isPlainObject:()=>RS,isServer:()=>SS,isValidTimeout:()=>TS,keepPreviousData:()=>HS,matchMutation:()=>AS,matchQuery:()=>kS,noop:()=>CS,partialMatchKey:()=>NS,replaceData:()=>VS,replaceEqualDeep:()=>FS,resolveQueryBoolean:()=>OS,resolveStaleTime:()=>DS,shallowEqualObjects:()=>IS,shouldThrowError:()=>qS,skipToken:()=>GS,sleep:()=>BS,timeUntilStale:()=>ES}),SS=typeof window>`u`||`Deno`in globalThis;function CS(){}function wS(e,t){return typeof e==`function`?e(t):e}function TS(e){return typeof e==`number`&&e>=0&&e!==1/0}function ES(e,t){return Math.max(e+(t||0)-Date.now(),0)}function DS(e,t){return typeof e==`function`?e(t):e}function OS(e,t){return typeof e==`function`?e(t):e}function kS(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==jS(o,t.options))return!1}else if(!NS(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function AS(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(MS(t.options.mutationKey)!==MS(a))return!1}else if(!NS(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jS(e,t){return(t?.queryKeyHashFn||MS)(e)}function MS(e){return JSON.stringify(e,(e,t)=>RS(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function NS(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>NS(e[n],t[n])):!1}var PS=Object.prototype.hasOwnProperty;function FS(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=LS(e)&&LS(t);if(!r&&!(RS(e)&&RS(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:PS.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=FS(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function IS(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function LS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function RS(e){if(!zS(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!zS(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function zS(e){return Object.prototype.toString.call(e)===`[object Object]`}function BS(e){return new Promise(t=>{yS.setTimeout(t,e)})}function VS(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:FS(e,t)}function HS(e){return e}function US(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function WS(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var GS=Symbol();function KS(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===GS?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function qS(e,t){return typeof e==`function`?e(...t):!!e}function JS(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var YS=c({environmentManager:()=>XS}),XS=(()=>{let e=()=>SS;return{isServer(){return e()},setIsServer(t){e=t}}})(),ZS=c({pendingThenable:()=>QS,tryResolveSync:()=>$S});function QS(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function $S(e){let t;if(e.then(e=>(t=e,e),CS)?.catch(CS),t!==void 0)return{data:t}}var eC=c({defaultShouldDehydrateMutation:()=>iC,defaultShouldDehydrateQuery:()=>aC,dehydrate:()=>sC,hydrate:()=>cC});function tC(e){return e}function nC(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function rC(e,t,n){let r=()=>{let r=e.promise?.then(t).catch(e=>n(e)?Promise.reject(Error(`redacted`)):Promise.reject(e));return r?.catch(CS),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status===`pending`&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function iC(e){return e.state.isPaused}function aC(e){return e.state.status===`success`}function oC(e){return!0}function sC(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??iC,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[nC(e)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??aC,a=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??oC,o=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??tC;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>i(e)?[rC(e,o,a)]:[])}}function cC(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??tC,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?$S(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(CS)})}var lC=c({createNotifyManager:()=>dC,defaultScheduler:()=>uC,notifyManager:()=>fC}),uC=bS;function dC(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=uC,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var fC=dC(),pC=c({OnlineManager:()=>mC,onlineManager:()=>hC}),mC=class extends fS{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}},hC=new mC,gC=c({CancelledError:()=>yC,canFetch:()=>vC,createRetryer:()=>xC,isCancelledError:()=>bC});function _C(e){return Math.min(1e3*2**e,3e4)}function vC(e){return(e??`online`)===`online`?hC.isOnline():!0}var yC=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function bC(e){return e instanceof yC}function xC(e){let t=!1,n=0,r,i=QS(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new yC(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>hS.isFocused()&&(e.networkMode===`always`||hC.isOnline())&&e.canRun(),u=()=>vC(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(XS.isServer()?0:3),o=e.retryDelay??_C,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),BS(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var SC=c({Removable:()=>CC}),CC=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),TS(this.gcTime)&&(this.#e=yS.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(XS.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(yS.clearTimeout(this.#e),this.#e=void 0)}},wC=c({hasNextPage:()=>OC,hasPreviousPage:()=>kC,infiniteQueryBehavior:()=>TC});function TC(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{JS(e,()=>t.signal,()=>n=!0)},u=KS(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?WS:US;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?DC:EC,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:EC(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function EC(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DC(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function OC(e,t){return t?EC(e,t)!=null:!1}function kC(e,t){return!t||!e.getPreviousPageParam?!1:DC(e,t)!=null}var AC=c({Query:()=>jC,fetchState:()=>MC}),jC=class extends CC{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=PC(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=PC(this.options);e.data!==void 0&&(this.setState(NC(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=VS(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(CS).catch(CS):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>OS(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===GS||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>DS(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ES(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=KS(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?TC(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=xC({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof yC&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof yC){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...MC(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...NC(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),fC.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function MC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vC(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function NC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function PC(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var FC=c({QueryObserver:()=>IC}),IC=class extends fS{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=QS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),RC(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zC(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zC(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof OS(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!IS(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&BC(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||OS(this.options.enabled,this.#t)!==OS(t.enabled,this.#t)||DS(this.options.staleTime,this.#t)!==DS(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||OS(this.options.enabled,this.#t)!==OS(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return HC(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(CS)),t}#g(){this.#b();let e=DS(this.options.staleTime,this.#t);if(XS.isServer()||this.#r.isStale||!TS(e))return;let t=ES(this.#r.dataUpdatedAt,e)+1;this.#d=yS.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(XS.isServer()||OS(this.options.enabled,this.#t)===!1||!TS(this.#p)||this.#p===0)&&(this.#f=yS.setInterval(()=>{(this.options.refetchIntervalInBackground||hS.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(yS.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(yS.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&RC(e,t),o=i&&BC(e,n,t,r);(a||o)&&(l={...l,...MC(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=VS(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=VS(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:VC(e,t),refetch:this.refetch,promise:this.#o,isEnabled:OS(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=QS())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!IS(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){fC.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function LC(e,t){return OS(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&OS(t.retryOnMount,e)===!1)}function RC(e,t){return LC(e,t)||e.state.data!==void 0&&zC(e,t,t.refetchOnMount)}function zC(e,t,n){if(OS(t.enabled,e)!==!1&&DS(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&VC(e,t)}return!1}function BC(e,t,n,r){return(e!==t||OS(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&VC(e,n)}function VC(e,t){return OS(t.enabled,e)!==!1&&e.isStaleByTime(DS(t.staleTime,e))}function HC(e,t){return!IS(e.getCurrentResult(),t)}var UC=c({InfiniteQueryObserver:()=>WC}),WC=class extends IC{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:OC(t,n.data),hasPreviousPage:kC(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},GC=c({Mutation:()=>KC,getDefaultState:()=>qC}),KC=class extends CC{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=xC({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),fC.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function qC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var JC=c({MutationCache:()=>YC}),YC=class extends fS{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new KC({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=XC(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=XC(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=XC(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=XC(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){fC.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>AS(t,e))}findAll(e={}){return this.getAll().filter(t=>AS(e,t))}notify(e){fC.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return fC.batch(()=>Promise.all(e.map(e=>e.continue().catch(CS))))}};function XC(e){return e.options.scope?.id}var ZC=c({MutationObserver:()=>QC}),QC=class extends fS{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),IS(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&MS(t.mutationKey)!==MS(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??qC();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){fC.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},$C=c({QueriesObserver:()=>nw});function ew(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function tw(e,t,n){let r=e.slice(0);return r[t]=n,r}var nw=class extends fS{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,fC.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!IS(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(ew(e,n).forEach(e=>{e.destroy()}),ew(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=FS(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new IC(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=tw(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&fC.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},rw=c({QueryCache:()=>iw}),iw=class extends fS{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??jS(r,t),a=this.get(i);return a||(a=new jC({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){fC.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>kS(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>kS(e,t)):t}notify(e){fC.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fC.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fC.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},aw=c({QueryClient:()=>ow}),ow=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new iw,this.#t=e.mutationCache||new YC,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=hS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=hC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(DS(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=wS(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return fC.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;fC.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return fC.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=fC.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(CS).catch(CS)}invalidateQueries(e,t={}){return fC.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=fC.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(CS)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(CS)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(DS(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(CS).catch(CS)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(CS).catch(CS)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return hC.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(MS(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{NS(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(MS(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{NS(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=jS(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===GS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},sw=c({streamedQuery:()=>cw});function cw({streamFn:e,refetchMode:t=`reset`,reducer:n=(e,t)=>US(e,t),initialValue:r=[]}){return async i=>{let a=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),o=!!a&&a.isFetched();o&&t===`reset`&&a.setState({...a.resetState,fetchStatus:`fetching`});let s=r,c=!1,l=await e(JS({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>c=!0)),u=o&&t===`replace`;for await(let e of l){if(c)break;u?s=n(s,e):i.client.setQueryData(i.queryKey,t=>n(t===void 0?r:t,e))}return u&&!c&&i.client.setQueryData(i.queryKey,s),i.client.getQueryData(i.queryKey)??r}}var lw=c({dataTagErrorSymbol:()=>dw,dataTagSymbol:()=>uw,unsetMarker:()=>fw}),uw=Symbol(`dataTagSymbol`),dw=Symbol(`dataTagErrorSymbol`),fw=Symbol(`unsetMarker`),pw=c({CancelledError:()=>yC,InfiniteQueryObserver:()=>WC,Mutation:()=>KC,MutationCache:()=>YC,MutationObserver:()=>QC,QueriesObserver:()=>nw,Query:()=>jC,QueryCache:()=>iw,QueryClient:()=>ow,QueryObserver:()=>IC,dataTagErrorSymbol:()=>dw,dataTagSymbol:()=>uw,defaultScheduler:()=>uC,defaultShouldDehydrateMutation:()=>iC,defaultShouldDehydrateQuery:()=>aC,dehydrate:()=>sC,environmentManager:()=>XS,experimental_streamedQuery:()=>cw,focusManager:()=>hS,hashKey:()=>MS,hydrate:()=>cC,isCancelledError:()=>bC,isServer:()=>SS,keepPreviousData:()=>HS,matchMutation:()=>AS,matchQuery:()=>kS,noop:()=>CS,notifyManager:()=>fC,onlineManager:()=>hC,partialMatchKey:()=>NS,replaceEqualDeep:()=>FS,shouldThrowError:()=>qS,skipToken:()=>GS,timeoutManager:()=>yS,unsetMarker:()=>fw}),mw=c({}),hw=c({QueryClientContext:()=>gw,QueryClientProvider:()=>vw,useQueryClient:()=>_w}),gw=O.createContext(void 0),_w=e=>{let t=O.useContext(gw);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},vw=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,X.jsx)(gw.Provider,{value:e,children:t})),yw=c({IsRestoringProvider:()=>Sw,useIsRestoring:()=>xw}),bw=O.createContext(!1),xw=()=>O.useContext(bw),Sw=bw.Provider,Cw=c({QueryErrorResetBoundary:()=>Dw,useQueryErrorResetBoundary:()=>Ew});function ww(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Tw=O.createContext(ww()),Ew=()=>O.useContext(Tw),Dw=({children:e})=>{let[t]=O.useState(()=>ww());return(0,X.jsx)(Tw.Provider,{value:t,children:typeof e==`function`?e(t):e})},Ow=c({ensurePreventErrorBoundaryRetry:()=>kw,getHasError:()=>jw,useClearResetErrorBoundary:()=>Aw}),kw=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?qS(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Aw=e=>{O.useEffect(()=>{e.clearReset()},[e])},jw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||qS(n,[e.error,r])),Mw=c({defaultThrowOnError:()=>Nw,ensureSuspenseTimers:()=>Pw,fetchOptimistic:()=>Lw,shouldSuspend:()=>Iw,willFetch:()=>Fw}),Nw=(e,t)=>t.state.data===void 0,Pw=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Fw=(e,t)=>e.isLoading&&e.isFetching&&!t,Iw=(e,t)=>e?.suspense&&t.isPending,Lw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()}),Rw=c({useQueries:()=>zw});function zw({queries:e,...t},n){let r=_w(n),i=xw(),a=Ew(),o=O.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{Pw(e),kw(e,a,r.getQueryCache().get(e.queryHash))}),Aw(a);let[s]=O.useState(()=>new nw(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;O.useSyncExternalStore(O.useCallback(e=>d?s.subscribe(fC.batchCalls(e)):CS,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),O.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>Iw(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&Iw(n,e)?Lw(n,new IC(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&jw({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(p?.error)throw p.error;return l(u())}var Bw=c({useBaseQuery:()=>Vw});function Vw(e,t,n){let r=xw(),i=Ew(),a=_w(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Pw(o),kw(o,i,s),Aw(i);let c=!a.getQueryCache().get(o.queryHash),[l]=O.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(e=>{let t=d?l.subscribe(fC.batchCalls(e)):CS;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(o)},[o,l]),Iw(o,u))throw Lw(o,l,i);if(jw({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!XS.isServer()&&Fw(u,r)&&(c?Lw(o,l,i):s?.promise)?.catch(CS).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}var Hw=c({useQuery:()=>Uw});function Uw(e,t){return Vw(e,IC,t)}var Ww=c({useSuspenseQuery:()=>Gw});function Gw(e,t){return Vw({...e,enabled:!0,suspense:!0,throwOnError:Nw,placeholderData:void 0},IC,t)}var Kw=c({useSuspenseInfiniteQuery:()=>qw});function qw(e,t){return Vw({...e,enabled:!0,suspense:!0,throwOnError:Nw},WC,t)}var Jw=c({useSuspenseQueries:()=>Yw});function Yw(e,t){return zw({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:Nw,enabled:!0,placeholderData:void 0}))},t)}var Xw=c({usePrefetchQuery:()=>Zw});function Zw(e,t){let n=_w(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}var Qw=c({usePrefetchInfiniteQuery:()=>$w});function $w(e,t){let n=_w(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}var eT=c({queryOptions:()=>tT});function tT(e){return e}var nT=c({infiniteQueryOptions:()=>rT});function rT(e){return e}var iT=c({HydrationBoundary:()=>aT}),aT=({children:e,options:t={},state:n,queryClient:r})=>{let i=_w(r),a=O.useRef(t);O.useEffect(()=>{a.current=t});let o=O.useMemo(()=>{if(n){if(typeof n!=`object`)return;let e=i.getQueryCache(),t=n.queries||[],r=[],o=[];for(let n of t){let t=e.get(n.queryHash);t?(n.state.dataUpdatedAt>t.state.dataUpdatedAt||n.promise&&t.state.status!==`pending`&&t.state.fetchStatus!==`fetching`&&n.dehydratedAt!==void 0&&n.dehydratedAt>t.state.dataUpdatedAt)&&o.push(n):r.push(n)}if(r.length>0&&cC(i,{queries:r},a.current),o.length>0)return o}},[i,n]);return O.useEffect(()=>{o&&cC(i,{queries:o},a.current)},[i,o]),e},oT=c({useIsFetching:()=>sT});function sT(e,t){let n=_w(t),r=n.getQueryCache();return O.useSyncExternalStore(O.useCallback(e=>r.subscribe(fC.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}var cT=c({useIsMutating:()=>lT,useMutationState:()=>dT});function lT(e,t){let n=_w(t);return dT({filters:{...e,status:`pending`}},n).length}function uT(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function dT(e={},t){let n=_w(t).getMutationCache(),r=O.useRef(e),i=O.useRef(null);return i.current===null&&(i.current=uT(n,e)),O.useEffect(()=>{r.current=e}),O.useSyncExternalStore(O.useCallback(e=>n.subscribe(()=>{let t=FS(i.current,uT(n,r.current));i.current!==t&&(i.current=t,fC.schedule(e))}),[n]),()=>i.current,()=>i.current)}var fT=c({useMutation:()=>pT});function pT(e,t){let n=_w(t),[r]=O.useState(()=>new QC(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);let i=O.useSyncExternalStore(O.useCallback(e=>r.subscribe(fC.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=O.useCallback((e,t)=>{r.mutate(e,t).catch(CS)},[r]);if(i.error&&qS(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var mT=c({mutationOptions:()=>hT});function hT(e){return e}var gT=c({useInfiniteQuery:()=>_T});function _T(e,t){return Vw(e,WC,t)}var vT=c({CancelledError:()=>yC,HydrationBoundary:()=>aT,InfiniteQueryObserver:()=>WC,IsRestoringProvider:()=>Sw,Mutation:()=>KC,MutationCache:()=>YC,MutationObserver:()=>QC,QueriesObserver:()=>nw,Query:()=>jC,QueryCache:()=>iw,QueryClient:()=>ow,QueryClientContext:()=>gw,QueryClientProvider:()=>vw,QueryErrorResetBoundary:()=>Dw,QueryObserver:()=>IC,dataTagErrorSymbol:()=>dw,dataTagSymbol:()=>uw,defaultScheduler:()=>uC,defaultShouldDehydrateMutation:()=>iC,defaultShouldDehydrateQuery:()=>aC,dehydrate:()=>sC,environmentManager:()=>XS,experimental_streamedQuery:()=>cw,focusManager:()=>hS,hashKey:()=>MS,hydrate:()=>cC,infiniteQueryOptions:()=>rT,isCancelledError:()=>bC,isServer:()=>SS,keepPreviousData:()=>HS,matchMutation:()=>AS,matchQuery:()=>kS,mutationOptions:()=>hT,noop:()=>CS,notifyManager:()=>fC,onlineManager:()=>hC,partialMatchKey:()=>NS,queryOptions:()=>tT,replaceEqualDeep:()=>FS,shouldThrowError:()=>qS,skipToken:()=>GS,timeoutManager:()=>yS,unsetMarker:()=>fw,useInfiniteQuery:()=>_T,useIsFetching:()=>sT,useIsMutating:()=>lT,useIsRestoring:()=>xw,useMutation:()=>pT,useMutationState:()=>dT,usePrefetchInfiniteQuery:()=>$w,usePrefetchQuery:()=>Zw,useQueries:()=>zw,useQuery:()=>Uw,useQueryClient:()=>_w,useQueryErrorResetBoundary:()=>Ew,useSuspenseInfiniteQuery:()=>qw,useSuspenseQueries:()=>Yw,useSuspenseQuery:()=>Gw}),yT=c({default:()=>ST,extendArray:()=>xT});function bT(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xT=(e,t,n,...r)=>{let i=bT(t);Vf.default.invoke(`${n}.preProcess${i}`,...r);let a=Zd.default.flatten(Vf.default.invoke(`${n}.get${i}`,...r));return e.push(...a),Vf.default.invoke(`${n}.process${i}`,...r),Vf.default.invoke(`${n}.postProcess${i}`,...r),Vf.default.sort(e),e},ST={extendArray:xT},CT=c({default:()=>OT}),wT=new ow({defaultOptions:{queries:{staleTime:1/0,retry:0,refetchOnWindowFocus:!1}}});function TT(e,t){let n=[],r=(e,t)=>{let{path:i,exact:a,render:o,component:s,childRoutes:c,...l}=e,u;if(u=/^\//.test(i)?i:`${t}/${i}`,u=u.replace(/\/+/g,`/`),(o||s)&&c){let e=TT(c,u);n.push((0,X.jsx)(io,{exact:!1,element:o?o():(0,X.jsx)(s,{children:(0,X.jsx)(ro,{})}),path:u,...l,children:e},u.toString()))}else s||o?n.push((0,X.jsx)(io,{element:o?o():(0,X.jsx)(s,{}),path:u,exact:`exact`in e?a:!0,...l},u.toString())):c&&c.forEach(e=>r(e,u))};return e.reduce((e,t)=>(Zd.default.isArray(t.path)?t.path.forEach(n=>{e.push({...t,path:n})}):e.push(t),e),[]).forEach(e=>r(e,t)),n}var ET=e=>(Vf.default.invoke(`!root.renderChildren`).forEach(t=>{if(!Zd.default.isFunction(t))throw Error(`root.renderChildren should be a function.`);e=t(e)}),e),DT={browser:Zc,hash:Qc,memory:Ya},OT=()=>{let[e,t]=(0,O.useState)(null),n=(0,O.useCallback)(e=>{e.type===`sub-app-context-change`&&t(e.data)},[]);(0,O.useEffect)(()=>{let e=`muse-react_handle-context-change`;return window.MUSE_GLOBAL?.msgEngine?.addListener(e,n),()=>window.MUSE_GLOBAL?.msgEngine?.removeListener(e)},[n]);let r=ET(TT(uS(),`/`)),{routerType:i=`browser`,basePath:a}=window.MUSE_GLOBAL.appVariables||{},o=DT[i](fo(r)),s=Vf.default.invoke(`!routerProps`)[0]||{};i===`browser`&&(s.navigator=Px);let c=[{order:10,key:`react-query`,provider:vw,props:{client:wT},renderProvider:null},{order:20,key:`redux-provider`,provider:at,props:{store:zp.getStore()}},{order:30,key:`muse-sub-app`,provider:Qx.Provider,props:{value:e}},{order:40,key:`nice-modal`,provider:Bf.Provider},{order:50,key:`react-router`,provider:Sd,props:{basename:a,router:o,...s}}];return xT(c,`providers`,`root`,{providers:c}),c.filter(Boolean).reduceRight((e,t)=>t.provider?(0,X.jsx)(t.provider,{...t.props,children:e},e?.key):t.renderProvider?t.renderProvider(e):e,(0,X.jsx)(X.Fragment,{}))},kT=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),AT=s((e=>{})),jT=s(((e,t)=>{t.exports=kT()})),MT=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),NT=s(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),PT=s(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),FT=s(((e,t)=>{function n(e,t,n,r,i){}n.resetWarningCache=function(){},t.exports=n})),IT=s(((e,t)=>{var n=jT(),r=MT(),i=NT(),a=PT(),o=FT();function s(){return null}t.exports=function(e,t){var c=typeof Symbol==`function`&&Symbol.iterator,l=`@@iterator`;function u(e){var t=e&&(c&&e[c]||e[l]);if(typeof t==`function`)return t}var d=`<<anonymous>>`,f={array:g(`array`),bigint:g(`bigint`),bool:g(`boolean`),func:g(`function`),number:g(`number`),object:g(`object`),string:g(`string`),symbol:g(`symbol`),any:_(),arrayOf:v,element:y(),elementType:b(),instanceOf:x,node:T(),objectOf:C,oneOf:S,oneOfType:w,shape:ee,exact:D};function p(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function m(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}m.prototype=Error.prototype;function h(e){function n(n,r,a,o,s,c,l){if(o||=d,c||=a,l!==i&&t){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw u.name=`Invariant Violation`,u}return r[a]==null?n?r[a]===null?new m(`The `+s+" `"+c+"` is marked as required "+("in `"+o+"`, but its value is `null`.")):new m(`The `+s+" `"+c+"` is marked as required in "+("`"+o+"`, but its value is `undefined`.")):null:e(r,a,o,s,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function g(e){function t(t,n,r,i,a,o){var s=t[n];if(ne(s)!==e){var c=re(s);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return h(t)}function _(){return h(s)}function v(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new m("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=ne(s);return new m(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return h(t)}function y(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=ne(o);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return h(t)}function b(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=ne(o);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return h(e)}function x(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||d,s=k(t[n]);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return h(t)}function S(e){if(!Array.isArray(e))return s;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(p(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return re(t)===`symbol`?String(t):t});return new m(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return h(t)}function C(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new m("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=ne(c);if(l!==`object`)return new m(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return h(t)}function w(e){if(!Array.isArray(e))return s;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return``+ie(n)+t,s}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new m(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return h(r)}function T(){function e(e,t,n,r,i){return O(e[t])?null:new m(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return h(e)}function E(e,t,n,r,i){return new m((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function ee(e){function t(t,n,r,a,o){var s=t[n],c=ne(s);if(c!==`object`)return new m(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return E(r,a,o,l,re(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return h(t)}function D(e){function t(t,n,o,s,c){var l=t[n],u=ne(l);if(u!==`object`)return new m(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return E(o,s,c,d,re(f));if(!f)return new m(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
|
|
96
|
+
Bad object: `+JSON.stringify(t[n],null,` `)+`
|
|
97
|
+
Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return h(t)}function O(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(O);if(t===null||e(t))return!0;var n=u(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!O(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!O(a[1]))return!1}}else return!1;return!0;default:return!1}}function te(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function ne(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:te(t,e)?`symbol`:t}function re(e){if(e==null)return``+e;var t=ne(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function ie(e){var t=re(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function k(e){return!e.constructor||!e.constructor.name?d:e.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f}})),LT=s(((e,t)=>{var n=NT();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),RT=s(((e,t)=>{t.exports=LT()()})),zT=u(s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function a(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=m(),s=RT(),c=[],l=[];function u(e){return(typeof __webpack_modules__>`u`?`undefined`:n(__webpack_modules__))===`object`?e().every(function(e){return e!==void 0&&__webpack_modules__[e]!==void 0}):!1}function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach(function(r){var i=d(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(e){t.error=e}return t.promise=Promise.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function p(e){return e&&e.__esModule?e.default:e}function h(e,t){return o.createElement(p(e),t)}function g(e,t){var n,d;if(!t.loading)throw Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:h,webpack:null,modules:null},t),p=null;function m(){return p||=e(f.loader),p.promise}return c.push(m),typeof f.webpack==`function`&&l.push(function(){if(u(f.webpack))return m()}),d=n=function(t){a(n,t);function n(a){r(this,n);var o=i(this,t.call(this,a));return o.retry=function(){o.setState({error:null,loading:!0,timedOut:!1}),p=e(f.loader),o._loadModule()},m(),o.state={error:p.error,pastDelay:!1,timedOut:!1,loading:p.loading,loaded:p.loaded},o}return n.preload=function(){return m()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach(function(t){e.context.loadable.report(t)}),p.loading){typeof f.delay==`number`&&(f.delay===0?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},f.delay)),typeof f.timeout==`number`&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},f.timeout));var t=function(){e._mounted&&(e.setState({error:p.error,loaded:p.loaded,loading:p.loading}),e._clearTimeouts())};p.promise.then(function(){t()}).catch(function(e){t()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?o.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(o.Component),n.contextTypes={loadable:s.shape({report:s.func.isRequired})},d}function _(e){return g(d,e)}function v(e){if(typeof e.render!=`function`)throw Error("LoadableMap requires a `render(loaded, props)` function");return g(f,e)}_.Map=v;var y=function(e){a(t,e);function t(){return r(this,t),i(this,e.apply(this,arguments))}return t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return o.Children.only(this.props.children)},t}(o.Component);y.propTypes={report:s.func.isRequired},y.childContextTypes={loadable:s.shape({report:s.func.isRequired}).isRequired},_.Capture=y;function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then(function(){if(e.length)return b(e)})}_.preloadAll=function(){return new Promise(function(e,t){b(c).then(e,t)})},_.preloadReady=function(){return new Promise(function(e,t){b(l).then(e,e)})},t.exports=_}))(),1),BT=c({}),VT=c({default:()=>HT});Vf.default.register({name:`@ebay/muse-lib-react`}),window.MUSE_GLOBAL.appEntries.push({name:`@ebay/muse-lib-react`,func:()=>{let e=document.getElementById(`muse-react-root`);e||(e=document.createElement(`div`),e.id=`muse-react-root`,document.body.appendChild(e)),e.innerHTML=``,Vf.default.invoke(`root.beforeRender`);let t=(0,ee.createRoot)(e);window.__js_plugin=Vf.default,t.render((0,X.jsx)(OT,{})),Vf.default.invoke(`root.afterRender`),Vf.default.invoke(`onReady`)}});var HT={Loadable:zT.default,_:Zd.default,reactUse:px,reactRouterDom:Xd,reactQuery:vT},UT=u(S()),WT=u(Up()),GT=u(p()),KT=u(RT()),qT=u(Hp()),JT=u(x()),YT=u(f()),XT=u(LT()),ZT=u(jT()),QT=u(IT());mh();var $T=u(T()),eE=u(w()),tE=u(_()),nE=u(AT()),rE=u(kT()),iE=u(FT()),aE=u(NT()),oE=u(MT()),sE=u(PT()),cE=u(y()),lE=u(v()),uE=u(Np()),dE=u(ag()),fE=u(bg()),pE=u(g()),mE=u(h()),hE=u(Sg()),gE=u(Py()),_E=u(Ny()),vE=u(Ay()),yE=u(My()),bE=u(jy()),$={};$[`@ebay/muse-lib-react@2.0.1/src/index.jsx`]=VT,$[`js-plugin@1.1.0/plugin.js`]=Vf,$[`@ebay/muse-lib-react@2.0.1/src/Root.jsx`]=CT,$[`react-use@17.6.0/esm/index.js`]=px,$[`react-dom@19.2.5/client.js`]=ee,$[`react-loadable@5.5.0/lib/index.js`]=zT,$[`react@19.2.5/jsx-runtime.js`]=X,$[`react@19.2.5/index.js`]=O,$[`lodash@4.18.1/lodash.js`]=Zd,$[`react-router-dom@7.15.0/dist/index.mjs`]=Xd,$[`@tanstack/react-query@5.100.9/build/modern/index.js`]=vT,$[`@ebay/muse-lib-react@2.0.1/src/styles/index.less`]=BT,$[`@ebay/muse-lib-react@2.0.1/src/utils.js`]=yT,$[`react-dom@19.2.5/cjs/react-dom-client.development.js`]=UT,$[`react@19.2.5/cjs/react-jsx-runtime.development.js`]=WT,$[`react-redux@9.2.0/dist/react-redux.mjs`]=D,$[`@ebay/nice-modal-react@1.2.13/lib/esm/index.js`]=Qd,$[`react@19.2.5/cjs/react.development.js`]=GT,$[`@ebay/muse-lib-react@2.0.1/src/common/store.js`]=Rp,$[`prop-types@15.8.1/index.js`]=KT,$[`@ebay/muse-lib-react@2.0.1/src/common/history.js`]=jx,$[`@ebay/muse-lib-react@2.0.1/src/common/routeConfig.jsx`]=oS,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/SubAppContext.js`]=Zx,$[`react@19.2.5/cjs/react-jsx-runtime.production.js`]=qT,$[`react-dom@19.2.5/cjs/react-dom-client.production.js`]=JT,$[`react@19.2.5/cjs/react.production.js`]=YT,$[`react-router@7.15.0/dist/development/index.mjs`]=Yd,$[`react-router@7.15.0/dist/development/dom-export.mjs`]=bd,$[`@tanstack/react-query@5.100.9/build/modern/IsRestoringProvider.js`]=yw,$[`@tanstack/query-core@5.100.9/build/modern/index.js`]=pw,$[`@tanstack/react-query@5.100.9/build/modern/types.js`]=mw,$[`@tanstack/react-query@5.100.9/build/modern/useQueries.js`]=Rw,$[`@tanstack/react-query@5.100.9/build/modern/useQuery.js`]=Hw,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseQuery.js`]=Ww,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseInfiniteQuery.js`]=Kw,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseQueries.js`]=Jw,$[`@tanstack/react-query@5.100.9/build/modern/usePrefetchQuery.js`]=Xw,$[`@tanstack/react-query@5.100.9/build/modern/usePrefetchInfiniteQuery.js`]=Qw,$[`@tanstack/react-query@5.100.9/build/modern/queryOptions.js`]=eT,$[`@tanstack/react-query@5.100.9/build/modern/infiniteQueryOptions.js`]=nT,$[`@tanstack/react-query@5.100.9/build/modern/QueryClientProvider.js`]=hw,$[`@tanstack/react-query@5.100.9/build/modern/HydrationBoundary.js`]=iT,$[`@tanstack/react-query@5.100.9/build/modern/QueryErrorResetBoundary.js`]=Cw,$[`@tanstack/react-query@5.100.9/build/modern/useIsFetching.js`]=oT,$[`@tanstack/react-query@5.100.9/build/modern/useMutationState.js`]=cT,$[`@tanstack/react-query@5.100.9/build/modern/useMutation.js`]=fT,$[`@tanstack/react-query@5.100.9/build/modern/mutationOptions.js`]=mT,$[`@tanstack/react-query@5.100.9/build/modern/useInfiniteQuery.js`]=gT,$[`react-use@17.6.0/esm/useHash.js`]=dx,$[`react-use@17.6.0/esm/factory/createMemo.js`]=_m,$[`react-use@17.6.0/esm/factory/createReducer.js`]=Tm,$[`react-use@17.6.0/esm/factory/createReducerContext.js`]=ym,$[`react-use@17.6.0/esm/factory/createStateContext.js`]=Om,$[`react-use@17.6.0/esm/useAsyncFn.js`]=_h,$[`react-use@17.6.0/esm/useAsync.js`]=yh,$[`react-use@17.6.0/esm/useBeforeUnload.js`]=Gh,$[`react-use@17.6.0/esm/useBoolean.js`]=Xh,$[`react-use@17.6.0/esm/useAsyncRetry.js`]=xh,$[`react-use@17.6.0/esm/useBattery.js`]=zh,$[`react-use@17.6.0/esm/useClickAway.js`]=Qh,$[`react-use@17.6.0/esm/useCookie.js`]=ng,$[`react-use@17.6.0/esm/useCopyToClipboard.js`]=sg,$[`react-use@17.6.0/esm/useAudio.js`]=kh,$[`react-use@17.6.0/esm/useCounter.js`]=_g,$[`react-use@17.6.0/esm/useCss.js`]=jg,$[`react-use@17.6.0/esm/useCustomCompareEffect.js`]=Fg,$[`react-use@17.6.0/esm/useDebounce.js`]=zg,$[`react-use@17.6.0/esm/useDeepCompareEffect.js`]=Vg,$[`react-use@17.6.0/esm/useDefault.js`]=Ug,$[`react-use@17.6.0/esm/useDrop.js`]=Gg,$[`react-use@17.6.0/esm/useDropArea.js`]=Jg,$[`react-use@17.6.0/esm/useEffectOnce.js`]=Qg,$[`@tanstack/query-core@5.100.9/build/modern/types.js`]=lw,$[`react-use@17.6.0/esm/useEnsuredForwardedRef.js`]=e_,$[`react-use@17.6.0/esm/useEvent.js`]=r_,$[`react-use@17.6.0/esm/useError.js`]=c_,$[`react-use@17.6.0/esm/useFavicon.js`]=u_,$[`react-use@17.6.0/esm/useFullscreen.js`]=p_,$[`react-use@17.6.0/esm/useGeolocation.js`]=g_,$[`use-sync-external-store@1.6.0/with-selector.js`]=te,$[`react-use@17.6.0/esm/useGetSet.js`]=hg,$[`react-use@17.6.0/esm/useGetSetState.js`]=v_,$[`react-use@17.6.0/esm/useHarmonicIntervalFn.js`]=T_,$[`react-use@17.6.0/esm/useHover.js`]=D_,$[`react-use@17.6.0/esm/useHoverDirty.js`]=A_,$[`react-use@17.6.0/esm/useIdle.js`]=F_,$[`react-use@17.6.0/esm/useIntersection.js`]=z_,$[`react-use@17.6.0/esm/useInterval.js`]=V_,$[`react-use@17.6.0/esm/useIsomorphicLayoutEffect.js`]=kg,$[`react-use@17.6.0/esm/useKey.js`]=U_,$[`react-use@17.6.0/esm/factory/createBreakpoint.js`]=K_,$[`react-use@17.6.0/esm/useKeyPress.js`]=J_,$[`react-use@17.6.0/esm/useKeyPressEvent.js`]=X_,$[`react-use@17.6.0/esm/useLatest.js`]=Q_,$[`react-use@17.6.0/esm/useLifecycles.js`]=ev,$[`react-use@17.6.0/esm/useList.js`]=nv,$[`react-use@17.6.0/esm/useLocalStorage.js`]=iv,$[`react-use@17.6.0/esm/useLocation.js`]=ov,$[`react-use@17.6.0/esm/useLockBodyScroll.js`]=dv,$[`react-use@17.6.0/esm/useLogger.js`]=yv,$[`react-use@17.6.0/esm/useLongPress.js`]=xv,$[`react-use@17.6.0/esm/useMap.js`]=Tv,$[`react-use@17.6.0/esm/useMedia.js`]=Dv,$[`react-use@17.6.0/esm/useMediaDevices.js`]=Av,$[`react-use@17.6.0/esm/useMediatedState.js`]=Mv,$[`react-use@17.6.0/esm/useMethods.js`]=Pv,$[`react-use@17.6.0/esm/useMotion.js`]=Iv,$[`react-use@17.6.0/esm/useMount.js`]=zv,$[`react-use@17.6.0/esm/useMouseHovered.js`]=qv,$[`react-use@17.6.0/esm/useMouse.js`]=Gv,$[`react-use@17.6.0/esm/useMountedState.js`]=hh,$[`react-use@17.6.0/esm/useMouseWheel.js`]=Xv,$[`react-use@17.6.0/esm/useNetworkState.js`]=Qv,$[`react-use@17.6.0/esm/useNumber.js`]=ry,$[`react-use@17.6.0/esm/useObservable.js`]=ay,$[`react-use@17.6.0/esm/useOrientation.js`]=sy,$[`react-use@17.6.0/esm/usePageLeave.js`]=uy,$[`react-use@17.6.0/esm/usePermission.js`]=fy,$[`react-use@17.6.0/esm/usePrevious.js`]=my,$[`react-use@17.6.0/esm/usePreviousDistinct.js`]=gy,$[`react-use@17.6.0/esm/usePromise.js`]=yy,$[`react-use@17.6.0/esm/useQueue.js`]=xy,$[`react-use@17.6.0/esm/useRaf.js`]=Cy,$[`react-use@17.6.0/esm/useRafLoop.js`]=Ty,$[`react-use@17.6.0/esm/useRafState.js`]=Uv,$[`react-use@17.6.0/esm/useSearchParam.js`]=Dy,$[`react-use@17.6.0/esm/useScratch.js`]=Iy,$[`react-use@17.6.0/esm/useScroll.js`]=By,$[`react-use@17.6.0/esm/useScrolling.js`]=Hy,$[`react-use@17.6.0/esm/useSessionStorage.js`]=Wy,$[`react-use@17.6.0/esm/useSetState.js`]=Ch,$[`react-use@17.6.0/esm/useShallowCompareEffect.js`]=qy,$[`react-use@17.6.0/esm/useSize.js`]=Zy,$[`react-use@17.6.0/esm/useSlider.js`]=rb,$[`react-use@17.6.0/esm/useSpeech.js`]=ab,$[`react-use@17.6.0/esm/useStartTyping.js`]=cb,$[`react-use@17.6.0/esm/useStateWithHistory.js`]=fb,$[`react-use@17.6.0/esm/useStateList.js`]=mb,$[`react-use@17.6.0/esm/useThrottle.js`]=gb,$[`react-use@17.6.0/esm/useTimeout.js`]=bb,$[`react-use@17.6.0/esm/useThrottleFn.js`]=vb,$[`react-use@17.6.0/esm/useTimeoutFn.js`]=Lg,$[`react-use@17.6.0/esm/useTitle.js`]=Sb,$[`react-use@17.6.0/esm/useToggle.js`]=qh,$[`react-use@17.6.0/esm/useUnmount.js`]=Vv,$[`react-use@17.6.0/esm/useTween.js`]=Db,$[`react-use@17.6.0/esm/useUnmountPromise.js`]=Ab,$[`react-use@17.6.0/esm/useUpdate.js`]=ug,$[`react-use@17.6.0/esm/useUpdateEffect.js`]=Cm,$[`react-use@17.6.0/esm/useUpsert.js`]=Mb,$[`react-use@17.6.0/esm/useVibrate.js`]=Pb,$[`react-use@17.6.0/esm/useVideo.js`]=Rb,$[`react-use@17.6.0/esm/useStateValidator.js`]=Bb,$[`react-use@17.6.0/esm/useScrollbarWidth.js`]=Wb,$[`react-use@17.6.0/esm/useMultiStateValidator.js`]=Kb,$[`react-use@17.6.0/esm/useWindowScroll.js`]=Jb,$[`react-use@17.6.0/esm/useWindowSize.js`]=Xb,$[`react-use@17.6.0/esm/useMeasure.js`]=Qb,$[`react-use@17.6.0/esm/usePinchZoom.js`]=nx,$[`react-use@17.6.0/esm/useRendersCount.js`]=ax,$[`react-use@17.6.0/esm/useFirstMountState.js`]=xm,$[`react-use@17.6.0/esm/useSet.js`]=sx,$[`react-use@17.6.0/esm/factory/createGlobalState.js`]=lx,$[`@tanstack/query-core@5.100.9/build/modern/focusManager.js`]=pS,$[`@tanstack/query-core@5.100.9/build/modern/environmentManager.js`]=YS,$[`@tanstack/query-core@5.100.9/build/modern/hydration.js`]=eC,$[`@tanstack/query-core@5.100.9/build/modern/infiniteQueryObserver.js`]=UC,$[`@tanstack/query-core@5.100.9/build/modern/mutationCache.js`]=JC,$[`@tanstack/query-core@5.100.9/build/modern/mutationObserver.js`]=ZC,$[`@tanstack/query-core@5.100.9/build/modern/notifyManager.js`]=lC,$[`@tanstack/query-core@5.100.9/build/modern/onlineManager.js`]=pC,$[`@tanstack/query-core@5.100.9/build/modern/queriesObserver.js`]=$C,$[`@tanstack/query-core@5.100.9/build/modern/queryCache.js`]=rw,$[`@tanstack/query-core@5.100.9/build/modern/queryClient.js`]=aw,$[`@tanstack/query-core@5.100.9/build/modern/queryObserver.js`]=FC,$[`@tanstack/query-core@5.100.9/build/modern/retryer.js`]=gC,$[`@tanstack/query-core@5.100.9/build/modern/timeoutManager.js`]=gS,$[`@tanstack/query-core@5.100.9/build/modern/utils.js`]=xS,$[`@tanstack/query-core@5.100.9/build/modern/streamedQuery.js`]=sw,$[`@tanstack/query-core@5.100.9/build/modern/mutation.js`]=GC,$[`@tanstack/query-core@5.100.9/build/modern/query.js`]=AC,$[`prop-types@15.8.1/factoryWithThrowingShims.js`]=XT,$[`history@5.3.0/index.js`]=gx,$[`react-is@16.13.1/index.js`]=ZT,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/route.jsx`]=nS,$[`prop-types@15.8.1/factoryWithTypeCheckers.js`]=QT,$[`@ebay/muse-lib-react@2.0.1/src/common/configStore.js`]=Pp,$[`react-router@7.15.0/dist/development/chunk-5KNZJZUH.mjs`]=bt,$[`react-router@7.15.0/dist/development/chunk-RMD3H4O3.mjs`]=zl,$[`@tanstack/react-query@5.100.9/build/modern/suspense.js`]=Mw,$[`react-dom@19.2.5/index.js`]=xd,$[`@tanstack/react-query@5.100.9/build/modern/errorBoundaryUtils.js`]=Ow,$[`@ebay/muse-lib-react@2.0.1/src/features/common/index.js`]=fm,$[`@ebay/muse-lib-react@2.0.1/src/features/home/index.js`]=Zp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/route.js`]=pm,$[`@ebay/muse-lib-react@2.0.1/src/features/common/route.js`]=hm,$[`@tanstack/react-query@5.100.9/build/modern/useBaseQuery.js`]=Bw,$[`react-use@17.6.0/esm/misc/util.js`]=jh,$[`react-use@17.6.0/esm/misc/isDeepEqual.js`]=Ih,$[`tslib@2.8.1/tslib.es6.mjs`]=Am,$[`js-cookie@2.2.1/src/js.cookie.js`]=rg,$[`react-use@17.6.0/esm/factory/createHTMLMediaHook.js`]=Dh,$[`copy-to-clipboard@3.3.3/index.js`]=cg,$[`react-use@17.6.0/esm/misc/hookState.js`]=pg,$[`screenfull@5.2.0/dist/screenfull.js`]=m_,$[`set-harmonic-interval@1.0.1/lib/index.esm.js`]=b_,$[`nano-css@5.6.2/addon/vcssom/cssToTree.js`]=Og,$[`nano-css@5.6.2/index.js`]=Tg,$[`nano-css@5.6.2/addon/cssom.js`]=Eg,$[`nano-css@5.6.2/addon/vcssom.js`]=Dg,$[`use-sync-external-store@1.6.0/cjs/use-sync-external-store-with-selector.development.js`]=$T,$[`use-sync-external-store@1.6.0/cjs/use-sync-external-store-with-selector.production.js`]=eE,$[`throttle-debounce@3.0.1/esm/index.js`]=M_,$[`scheduler@0.27.0/index.js`]=tE,$[`react-universal-interface@0.6.2/lib/index.js`]=Ly,$[`fast-shallow-equal@1.0.0/index.js`]=Jy,$[`ts-easing@0.2.0/lib/index.js`]=Ob,$[`@xobotyi/scrollbar-width@1.9.5/dist/index.esm.js`]=Hb,$[`@tanstack/query-core@5.100.9/build/modern/infiniteQueryBehavior.js`]=wC,$[`@tanstack/query-core@5.100.9/build/modern/subscribable.js`]=dS,$[`@tanstack/query-core@5.100.9/build/modern/thenable.js`]=ZS,$[`@tanstack/query-core@5.100.9/build/modern/removable.js`]=SC,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/index.js`]=tS,$[`react-is@16.13.1/cjs/react-is.development.js`]=nE,$[`react-is@16.13.1/cjs/react-is.production.min.js`]=rE,$[`prop-types@15.8.1/checkPropTypes.js`]=iE,$[`prop-types@15.8.1/lib/ReactPropTypesSecret.js`]=aE,$[`object-assign@4.1.1/index.js`]=oE,$[`prop-types@15.8.1/lib/has.js`]=sE,$[`react-dom@19.2.5/cjs/react-dom.development.js`]=cE,$[`react-dom@19.2.5/cjs/react-dom.production.js`]=lE,$[`@babel/runtime@7.29.2/helpers/esm/extends.js`]=mx,$[`@ebay/muse-lib-react@2.0.1/src/features/common/HelloWorld.jsx`]=um,$[`redux-logger@3.0.6/dist/redux-logger.js`]=uE,$[`@ebay/muse-lib-react@2.0.1/src/common/rootReducer.js`]=Ap,$[`redux-thunk@3.1.0/dist/redux-thunk.mjs`]=rp,$[`redux@5.0.1/dist/redux.mjs`]=Hf,$[`set-cookie-parser@2.7.2/lib/set-cookie.js`]=Vl,$[`cookie@1.1.1/dist/index.js`]=Bl,$[`@ebay/muse-lib-react@2.0.1/src/features/common/useExtPoint.jsx`]=om,$[`@ebay/muse-lib-react@2.0.1/src/features/common/Nodes.jsx`]=im,$[`@ebay/muse-lib-react@2.0.1/src/features/common/ErrorBoundary.jsx`]=em,$[`@ebay/muse-lib-react@2.0.1/src/features/common/PageNotFound.jsx`]=Qp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/Homepage.jsx`]=Yp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/App.jsx`]=Gp,$[`react-use@17.6.0/esm/misc/parseTimeRanges.js`]=Th,$[`fast-deep-equal@3.1.3/react.js`]=Lh,$[`toggle-selection@1.0.6/index.js`]=dE,$[`nano-css@5.6.2/addon/__dev__/warnOnMissingDependencies.js`]=fE,$[`scheduler@0.27.0/cjs/scheduler.development.js`]=pE,$[`scheduler@0.27.0/cjs/scheduler.production.js`]=mE,$[`nano-css@5.6.2/addon/vcssom/removeRule.js`]=hE,$[`react-universal-interface@0.6.2/lib/hookToRenderProp.js`]=gE,$[`react-universal-interface@0.6.2/lib/createEnhancer.js`]=_E,$[`react-universal-interface@0.6.2/lib/render.js`]=vE,$[`@ebay/muse-lib-react@2.0.1/src/features/common/Test1.jsx`]=cm,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/C2SProxyFailed.jsx`]=$x,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/FixedSubAppContainer.jsx`]=Wx,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/LoadingSkeleton.jsx`]=Jx,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/SubAppContainer.jsx`]=zx,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/reducer.js`]=Dp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/redux/reducer.js`]=lp,$[`@ebay/muse-lib-react@2.0.1/src/features/common/redux/reducer.js`]=mp,$[`@ebay/muse-lib-react@2.0.1/src/features/common/utils.js`]=nm,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/hooks/useParentRouteChange.js`]=Bp,$[`react-universal-interface@0.6.2/lib/addClassDecoratorSupport.js`]=yE,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/urlUtils.js`]=Ix,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/setSubAppState.js`]=Sp,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/initialState.js`]=_p,$[`@ebay/muse-lib-react@2.0.1/src/features/home/redux/initialState.js`]=sp,$[`@ebay/muse-lib-react@2.0.1/src/features/common/redux/initialState.js`]=fp,$[`@ebay/muse-lib-react@2.0.1/src/images/logo.png`]=qp,$[`react-universal-interface@0.6.2/lib/wrapInStatefulComponent.js`]=bE,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/constants.js`]=yp,$[`path-to-regexp@8.4.2/dist/index.js`]=Lx,MUSE_GLOBAL.__shared__.register($,e=>$[e]);
|
|
98
|
+
//# sourceMappingURL=main.js.map
|
|
99
|
+
|
|
100
|
+
const cssInject = (fileName) => {
|
|
101
|
+
const link = document.createElement('link');
|
|
102
|
+
link.rel = 'stylesheet';
|
|
103
|
+
link.href = fileName;
|
|
104
|
+
document.head.appendChild(link);
|
|
105
|
+
return new Promise((resolve, reject) => {
|
|
106
|
+
link.onload = resolve;
|
|
107
|
+
link.onerror = reject;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
MUSE_GLOBAL.waitFor(cssInject(new URL("assets/_muse-virtual-entry-jqLrDl9I.css", import.meta.url)));
|
|
111
|
+
|