leumas-private-shared
Version:
Private React JSX Package For Leumas Shared Components, Headers, Footers, Asides, Login Pages, API Key Manager and much more. Styles and everything reusable to avoid DRY code across all of our subdomains
17 lines • 2.72 MB
JavaScript
import*as e from"react";import t,{useRef as n,useState as r,useEffect as o,useLayoutEffect as i,forwardRef as a,useCallback as s,useContext as c,useMemo as l,createContext as u,Children as d,isValidElement as h,cloneElement as p}from"react";import*as f from"react-dom";import m,{unstable_batchedUpdates as g}from"react-dom";import v from"global";import b,{jsx as y,jsxs as A}from"react/jsx-runtime";function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function k(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){x(i,r,o,a,s,"next",e)}function s(e){x(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return E=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},E.apply(null,arguments)}function C(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(){M=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function b(){}function y(){}var A={};l(A,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==n&&r.call(x,a)&&(A=x);var k=y.prototype=v.prototype=Object.create(A);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=S(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var l=d(t,n,r);if("normal"===l.type){if(o=r.done?m:p,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(E.prototype),l(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function R(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e){return I="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},I(e)}function O(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var j,D,L={exports:{}},$=L.exports={};function U(){throw new Error("setTimeout has not been defined")}function z(){throw new Error("clearTimeout has not been defined")}function H(e){if(j===setTimeout)return setTimeout(e,0);if((j===U||!j)&&setTimeout)return j=setTimeout,setTimeout(e,0);try{return j(e,0)}catch(t){try{return j.call(null,e,0)}catch(t){return j.call(this,e,0)}}}!function(){try{j="function"==typeof setTimeout?setTimeout:U}catch(e){j=U}try{D="function"==typeof clearTimeout?clearTimeout:z}catch(e){D=z}}();var Q,G=[],W=!1,V=-1;function q(){W&&Q&&(W=!1,Q.length?G=Q.concat(G):V=-1,G.length&&Y())}function Y(){if(!W){var e=H(q);W=!0;for(var t=G.length;t;){for(Q=G,G=[];++V<t;)Q&&Q[V].run();V=-1,t=G.length}Q=null,W=!1,function(e){if(D===clearTimeout)return clearTimeout(e);if((D===z||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(e);try{return D(e)}catch(t){try{return D.call(null,e)}catch(t){return D.call(this,e)}}}(e)}}function K(e,t){this.fun=e,this.array=t}function J(){}$.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];G.push(new K(e,t)),1!==G.length||W||H(Y)},K.prototype.run=function(){this.fun.apply(null,this.array)},$.title="browser",$.browser=!0,$.env={},$.argv=[],$.version="",$.versions={},$.on=J,$.addListener=J,$.once=J,$.off=J,$.removeListener=J,$.removeAllListeners=J,$.emit=J,$.prependListener=J,$.prependOnceListener=J,$.listeners=function(e){return[]},$.binding=function(e){throw new Error("process.binding is not supported")},$.cwd=function(){return"/"},$.chdir=function(e){throw new Error("process.chdir is not supported")},$.umask=function(){return 0};var Z,X,ee=N(L.exports);
/**
* @remix-run/router v1.19.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
function te(){return te=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},te.apply(this,arguments)}function ne(e,t){if(!1===e||null==e)throw new Error(t)}function re(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function oe(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 ie(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 ae(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);re("*"===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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[n];return e[r]=o&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function se(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 ce(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 le(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function ue(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=ie(e):(o=te({},e),ne(!o.pathname||!o.pathname.includes("?"),ce("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),ce("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),ce("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?ie(e):e,i=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:i,search:he(r),hash:pe(o)}}(o,i),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Z||(Z={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(X||(X={}));const de=e=>e.join("/").replace(/\/\/+/g,"/"),he=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",pe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function fe(){return fe=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},fe.apply(this,arguments)}const me=e.createContext(null);"production"!==ee.env.NODE_ENV&&(me.displayName="DataRouter");const ge=e.createContext(null);"production"!==ee.env.NODE_ENV&&(ge.displayName="DataRouterState");const ve=e.createContext(null);"production"!==ee.env.NODE_ENV&&(ve.displayName="Await");const be=e.createContext(null);"production"!==ee.env.NODE_ENV&&(be.displayName="Navigation");const ye=e.createContext(null);"production"!==ee.env.NODE_ENV&&(ye.displayName="Location");const Ae=e.createContext({outlet:null,matches:[],isDataRoute:!1});"production"!==ee.env.NODE_ENV&&(Ae.displayName="Route");const we=e.createContext(null);function xe(){return null!=e.useContext(ye)}function ke(){return xe()||("production"!==ee.env.NODE_ENV?ne(!1,"useLocation() may be used only in the context of a <Router> component."):ne(!1)),e.useContext(ye).location}"production"!==ee.env.NODE_ENV&&(we.displayName="RouteError");const _e="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ee(t){e.useContext(be).static||e.useLayoutEffect(t)}function Ce(){let{isDataRoute:t}=e.useContext(Ae);return t?function(){let{router:t}=function(t){let n=e.useContext(me);return n||("production"!==ee.env.NODE_ENV?ne(!1,Te(t)):ne(!1)),n}(Me.UseNavigateStable),n=Re(Be.UseNavigateStable),r=e.useRef(!1);Ee((()=>{r.current=!0}));let o=e.useCallback((function(e,o){void 0===o&&(o={}),"production"!==ee.env.NODE_ENV&&re(r.current,_e),r.current&&("number"==typeof e?t.navigate(e):t.navigate(e,fe({fromRouteId:n},o)))}),[t,n]);return o}():function(){xe()||("production"!==ee.env.NODE_ENV?ne(!1,"useNavigate() may be used only in the context of a <Router> component."):ne(!1));let t=e.useContext(me),{basename:n,future:r,navigator:o}=e.useContext(be),{matches:i}=e.useContext(Ae),{pathname:a}=ke(),s=JSON.stringify(le(i,r.v7_relativeSplatPath)),c=e.useRef(!1);Ee((()=>{c.current=!0}));let l=e.useCallback((function(e,r){if(void 0===r&&(r={}),"production"!==ee.env.NODE_ENV&&re(c.current,_e),!c.current)return;if("number"==typeof e)return void o.go(e);let i=ue(e,JSON.parse(s),a,"path"===r.relative);null==t&&"/"!==n&&(i.pathname="/"===i.pathname?n:de([n,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[n,o,s,a,t]);return l}()}function Se(t,n){let{relative:r}=void 0===n?{}:n,{future:o}=e.useContext(be),{matches:i}=e.useContext(Ae),{pathname:a}=ke(),s=JSON.stringify(le(i,o.v7_relativeSplatPath));return e.useMemo((()=>ue(t,JSON.parse(s),a,"path"===r)),[t,s,a,r])}var Me=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Me||{}),Be=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}(Be||{});function Te(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Re(t){let n=function(t){let n=e.useContext(Ae);return n||("production"!==ee.env.NODE_ENV?ne(!1,Te(t)):ne(!1)),n}(t),r=n.matches[n.matches.length-1];return r.route.id||("production"!==ee.env.NODE_ENV?ne(!1,t+' can only be used on routes that contain a unique "id"'):ne(!1)),r.route.id}function Ie(){return Ie=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},Ie.apply(this,arguments)}function Oe(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Promise((()=>{}));const Fe="get",Ne="application/x-www-form-urlencoded";function Pe(e){return null!=e&&"string"==typeof e.tagName}let je=null;const De=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Le(e){return null==e||De.has(e)?e:("production"!==ee.env.NODE_ENV&&re(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "'+Ne+'"'),null)}function $e(e,t){let n,r,o,i,a;if(Pe(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?se(a,t):null,n=e.getAttribute("method")||Fe,o=Le(e.getAttribute("enctype"))||Ne,i=new FormData(e)}else if(function(e){return Pe(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Pe(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?se(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Fe,o=Le(e.getAttribute("formenctype"))||Le(a.getAttribute("enctype"))||Ne,i=new FormData(a,e),!function(){if(null===je)try{new FormData(document.createElement("form"),0),je=!1}catch(e){je=!0}return je}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";i.append(e+"x","0"),i.append(e+"y","0")}else t&&i.append(t,r)}}else{if(Pe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fe,r=null,o=Ne,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const Ue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ze=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],He=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}const Qe=e.createContext({isTransitioning:!1});"production"!==ee.env.NODE_ENV&&(Qe.displayName="ViewTransition");const Ge=e.createContext(new Map);"production"!==ee.env.NODE_ENV&&(Ge.displayName="Fetchers"),ee.env.NODE_ENV;const We="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qe=e.forwardRef((function(t,n){let r,{onClick:o,relative:i,reloadDocument:a,replace:s,state:c,target:l,to:u,preventScrollReset:d,unstable_viewTransition:h}=t,p=Oe(t,Ue),{basename:f}=e.useContext(be),m=!1;if("string"==typeof u&&Ve.test(u)&&(r=u,We))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=se(t.pathname,f);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:m=!0}catch(e){"production"!==ee.env.NODE_ENV&&re(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let g=function(t,n){let{relative:r}=void 0===n?{}:n;xe()||("production"!==ee.env.NODE_ENV?ne(!1,"useHref() may be used only in the context of a <Router> component."):ne(!1));let{basename:o,navigator:i}=e.useContext(be),{hash:a,pathname:s,search:c}=Se(t,{relative:r}),l=s;return"/"!==o&&(l="/"===s?o:de([o,s])),i.createHref({pathname:l,search:c,hash:a})}(u,{relative:i}),v=function(t,n){let{target:r,replace:o,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:c}=void 0===n?{}:n,l=Ce(),u=ke(),d=Se(t,{relative:s});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,r)){e.preventDefault();let n=void 0!==o?o:oe(u)===oe(d);l(t,{replace:n,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:c})}}),[u,l,d,o,i,r,t,a,s,c])}(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:i,unstable_viewTransition:h});return e.createElement("a",Ie({},p,{href:r||g,onClick:m||a?o:function(e){o&&o(e),e.defaultPrevented||v(e)},ref:n,target:l}))}));"production"!==ee.env.NODE_ENV&&(qe.displayName="Link");const Ye=e.forwardRef((function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:c,unstable_viewTransition:l,children:u}=t,d=Oe(t,ze),h=Se(c,{relative:d.relative}),p=ke(),f=e.useContext(ge),{navigator:m,basename:g}=e.useContext(be),v=null!=f&&function(t,n){void 0===n&&(n={});let r=e.useContext(Qe);null==r&&("production"!==ee.env.NODE_ENV?ne(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ne(!1));let{basename:o}=Xe(Je.useViewTransitionState),i=Se(t,{relative:n.relative});if(!r.isTransitioning)return!1;let a=se(r.currentLocation.pathname,o)||r.currentLocation.pathname,s=se(r.nextLocation.pathname,o)||r.nextLocation.pathname;return null!=ae(i.pathname,s)||null!=ae(i.pathname,a)}(h)&&!0===l,b=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,y=p.pathname,A=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;o||(y=y.toLowerCase(),A=A?A.toLowerCase():null,b=b.toLowerCase()),A&&g&&(A=se(A,g)||A);const w="/"!==b&&b.endsWith("/")?b.length-1:b.length;let x,k=y===b||!a&&y.startsWith(b)&&"/"===y.charAt(w),_=null!=A&&(A===b||!a&&A.startsWith(b)&&"/"===A.charAt(b.length)),E={isActive:k,isPending:_,isTransitioning:v},C=k?r:void 0;x="function"==typeof i?i(E):[i,k?"active":null,_?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let S="function"==typeof s?s(E):s;return e.createElement(qe,Ie({},d,{"aria-current":C,className:x,ref:n,style:S,to:c,unstable_viewTransition:l}),"function"==typeof u?u(E):u)}));"production"!==ee.env.NODE_ENV&&(Ye.displayName="NavLink");const Ke=e.forwardRef(((t,n)=>{let{fetcherKey:r,navigate:o,reloadDocument:i,replace:a,state:s,method:c=Fe,action:l,onSubmit:u,relative:d,preventScrollReset:h,unstable_viewTransition:p}=t,f=Oe(t,He),m=function(){let{router:t}=Xe(Je.UseSubmit),{basename:n}=e.useContext(be),r=Re(Be.UseRouteId);return e.useCallback((function(e,o){void 0===o&&(o={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:i,method:a,encType:s,formData:c,body:l}=$e(e,n);if(!1===o.navigate){let e=o.fetcherKey||tt();t.fetch(e,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||a,formEncType:o.encType||s,unstable_flushSync:o.unstable_flushSync})}else t.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:r,unstable_flushSync:o.unstable_flushSync,unstable_viewTransition:o.unstable_viewTransition})}),[t,n,r])}(),g=function(t,n){let{relative:r}=void 0===n?{}:n,{basename:o}=e.useContext(be),i=e.useContext(Ae);i||("production"!==ee.env.NODE_ENV?ne(!1,"useFormAction must be used inside a RouteContext"):ne(!1));let[a]=i.matches.slice(-1),s=Ie({},Se(t||".",{relative:r})),c=ke();if(null==t){s.search=c.search;let e=new URLSearchParams(s.search);e.has("index")&&""===e.get("index")&&(e.delete("index"),s.search=e.toString()?"?"+e.toString():"")}t&&"."!==t||!a.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==o&&(s.pathname="/"===s.pathname?o:de([o,s.pathname]));return oe(s)}(l,{relative:d}),v="get"===c.toLowerCase()?"get":"post";return e.createElement("form",Ie({ref:n,method:v,action:g,onSubmit:i?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null==t?void 0:t.getAttribute("formmethod"))||c;m(t||e.currentTarget,{fetcherKey:r,method:n,navigate:o,replace:a,state:s,relative:d,preventScrollReset:h,unstable_viewTransition:p})}},f))}));var Je,Ze;function Xe(t){let n=e.useContext(me);return n||("production"!==ee.env.NODE_ENV?ne(!1,function(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}(t)):ne(!1)),n}"production"!==ee.env.NODE_ENV&&(Ke.displayName="Form"),ee.env.NODE_ENV,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(Je||(Je={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ze||(Ze={}));let et=0,tt=()=>"__"+String(++et)+"__";var nt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},rt=t.createContext&&t.createContext(nt),ot=["attr","size","title"];function it(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function at(){return at=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},at.apply(this,arguments)}function st(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 ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e){return e&&e.map(((e,n)=>t.createElement(e.tag,ct({key:n},e.attr),ut(e.child))))}function dt(e){return n=>t.createElement(ht,at({attr:ct({},e.attr)},n),ut(e.child))}function ht(e){var n=n=>{var r,{attr:o,size:i,title:a}=e,s=it(e,ot),c=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",at({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:ct(ct({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==rt?t.createElement(rt.Consumer,null,(e=>n(e))):n(nt)}function pt(e){return dt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}var ft,mt={exports:{}},gt={exports:{}},vt={};var bt,yt,At={};function wt(){return yt||(yt=1,"production"===ee.env.NODE_ENV?gt.exports=function(){if(ft)return vt;ft=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case c:case l:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case p:case a:return e;default:return h}}case n:return h}}}function A(e){return y(e)===l}return vt.AsyncMode=c,vt.ConcurrentMode=l,vt.ContextConsumer=s,vt.ContextProvider=a,vt.Element=t,vt.ForwardRef=u,vt.Fragment=r,vt.Lazy=f,vt.Memo=p,vt.Portal=n,vt.Profiler=i,vt.StrictMode=o,vt.Suspense=d,vt.isAsyncMode=function(e){return A(e)||y(e)===c},vt.isConcurrentMode=A,vt.isContextConsumer=function(e){return y(e)===s},vt.isContextProvider=function(e){return y(e)===a},vt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vt.isForwardRef=function(e){return y(e)===u},vt.isFragment=function(e){return y(e)===r},vt.isLazy=function(e){return y(e)===f},vt.isMemo=function(e){return y(e)===p},vt.isPortal=function(e){return y(e)===n},vt.isProfiler=function(e){return y(e)===i},vt.isStrictMode=function(e){return y(e)===o},vt.isSuspense=function(e){return y(e)===d},vt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},vt.typeOf=y,vt}():gt.exports=(bt||(bt=1,"production"!==ee.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case c:case l:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case f:case p:case a:return g;default:return h}}case n:return h}}}var A=c,w=l,x=s,k=a,_=t,E=u,C=r,S=f,M=p,B=n,T=i,R=o,I=d,O=!1;function F(e){return y(e)===l}At.AsyncMode=A,At.ConcurrentMode=w,At.ContextConsumer=x,At.ContextProvider=k,At.Element=_,At.ForwardRef=E,At.Fragment=C,At.Lazy=S,At.Memo=M,At.Portal=B,At.Profiler=T,At.StrictMode=R,At.Suspense=I,At.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||y(e)===c},At.isConcurrentMode=F,At.isContextConsumer=function(e){return y(e)===s},At.isContextProvider=function(e){return y(e)===a},At.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},At.isForwardRef=function(e){return y(e)===u},At.isFragment=function(e){return y(e)===r},At.isLazy=function(e){return y(e)===f},At.isMemo=function(e){return y(e)===p},At.isPortal=function(e){return y(e)===n},At.isProfiler=function(e){return y(e)===i},At.isStrictMode=function(e){return y(e)===o},At.isSuspense=function(e){return y(e)===d},At.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},At.typeOf=y}()),At)),gt.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var xt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var Et,Ct,St,Mt,Bt,Tt,Rt,It,Ot,Ft,Nt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))kt.call(n,a)&&(o[a]=n[a]);if(xt){r=xt(n);for(var s=0;s<r.length;s++)_t.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},Pt=N(Nt);function jt(){if(Ct)return Et;Ct=1;return Et="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Dt(){return Mt?St:(Mt=1,St=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==ee.env.NODE_ENV){var Lt=wt();mt.exports=function(){if(It)return Rt;It=1;var e=wt(),t=Nt,n=jt(),r=Dt(),o=function(){if(Tt)return Bt;Tt=1;var e=function(){};if("production"!==ee.env.NODE_ENV){var t=jt(),n={},r=Dt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==ee.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var d=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=c?c():"";e("Failed "+a+" type: "+u.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==ee.env.NODE_ENV&&(n={})},Bt=o}(),i=function(){};function a(){return null}return"production"!==ee.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Rt=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",h={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:m(a),arrayOf:function(e){return m((function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+y(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+y(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new f("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,r,o){return b(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=y(c);if("object"!==l)return new f("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var d=e(c,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===A(t)?String(t):t}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==ee.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==ee.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),a}return m((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,a){var s=t[r],c=y(s);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return v(o,i,a,l,A(u));var d=u(s,l,o,i,a+"."+l,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,a,s,c){var l=o[i],u=y(l);if("object"!==u)return new f("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var h in d){var p=e[h];if(r(e,h)&&"function"!=typeof p)return v(a,s,c,h,A(p));if(!p)return new f("Invalid "+s+" `"+c+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(l,h,a,s,c+"."+h,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==ee.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,u,h,p){if(l=l||d,h=h||s,p!==n){if(c){var m=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 m.name="Invariant Violation",m}if("production"!==ee.env.NODE_ENV&&"undefined"!=typeof console){var g=l+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+u+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new f("The "+u+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,h)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function g(e){return m((function(t,n,r,o,i,a){var s=t[n];return y(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+A(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function A(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=A(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Rt}()(Lt.isElement,!0)}else mt.exports=function(){if(Ft)return Ot;Ft=1;var e=jt();function t(){}function n(){}return n.resetWarningCache=t,Ot=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var $t=mt.exports,Ut=N($t),zt=null,Ht=0,Qt=[],Gt={};function Wt(e){if(arguments.length){if(!(e instanceof Array)){n=0;for(var t=(e=new Array(+arguments[0])).length;n<t;n++)e[n]=null}}else{for(var n=Ht-1;n>=0&&Qt[n]!==1/0;n--);if(n<0)throw new Error("array-marker-not-found");e=Qt.splice(n+1,Ht-1-n),Ht=n}return e.b=e,e.o=0,e}function Vt(){for(var e=Ht-1;e>=0&&Qt[e]!==1/0;e-=2)if(Qt[e-1]===1/0)throw new Error("dict-malformed-stack");if(e<0)throw new Error("dict-marker-not-found");for(var t=new Map,n=e+1;n<Ht;n+=2){var r=Qt[n],o=typeof r;if("number"==o||"string"==o)t.set(r,Qt[n+1]);else{if(!(r instanceof Uint8Array))throw new Error("dict-not-a-valid-key("+r+")");t.set(Kt(r),Qt[n+1])}}return Ht=e,t}function qt(e){var t=typeof e;if("number"===t)return new Uint8Array(e);"string"!==t&&(e=""+e);for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}function Yt(e,t){if(Ht<e)throw new Error("roll: --stack-underflow--");if(t){if(t<0)var n=Qt.splice(Ht-e,-t);else n=Qt.splice(Ht-e,e-t);Qt.splice.apply(Qt,[Ht-n.length,0].concat(n))}}function Kt(e){return e instanceof Uint8Array?String.fromCharCode.apply(null,e):""+e}function Jt(e,t){if("string"==typeof e&&(e=qt(e)),t instanceof Uint8Array)for(var n=0,r=t.length;n<r;n++)e[n]=t[n];else for(n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return t.length<e.length?e.subarray(0,t.length):e}function Zt(e,t){for(var n=0,r=t.length;n<r;n++)e[n]=t[n];return e.length=t.length,e}function Xt(e){return e instanceof Uint8Array?0|String.fromCharCode.apply(null,e).replace(/\0+$/,""):""+e|0}function en(e,t,n){return Jt(e,(~~t).toString(n).toUpperCase())}function tn(e,t){return e instanceof Uint8Array?e[t]:"string"==typeof e?e.charCodeAt(t):e instanceof Array?e.b[e.o+t]:t instanceof Uint8Array?e.get(Kt(t)):e.get(t)}function nn(e,t,n){if(e instanceof Uint8Array)e[t]=n;else if(e instanceof Array)e.b[e.o+t]=n;else{if("object"!=typeof e)throw new Error("put-not-writable-"+typeof e);t instanceof Uint8Array?e.set(Kt(t),n):e.set(t,n)}}function rn(e,t,n){if(e instanceof Uint8Array)return e.subarray(t,t+n);if(e instanceof Array){var r=new Array(n);return r.b=e.b,r.o=e.o+t,r}return e.substr(t,n)}function on(e,t,n){if(e instanceof Uint8Array)if("string"==typeof n)for(var r=0,o=n.length;r<o;r++)e[t+r]=n.charCodeAt(r);else for(r=n.length-1;r>=0;r--)e[t+r]=n[r];else{if(!(e instanceof Array))throw new Error("putinterval-not-writable-"+typeof e);var i=e.b,a=t+e.o,s=n.b,c=n.o;for(r=0,o=n.length;r<o;r++)i[a+r]=s[c+r]}}function an(e){if(null==e)return"nulltype";var t=typeof e;return"number"==t?e%1?"realtype":"integertype":"boolean"==t?"booleantype":"string"==t||e instanceof Uint8Array?"stringtype":"function"==t?"operatortype":e instanceof Array?"arraytype":"dicttype"}function sn(e,t){e instanceof Uint8Array||(e=qt(e));var n=0,r=e.length,o=t.length;if(1==o){var i=t instanceof Uint8Array?t[0]:t.charCodeAt(0);n=e[0]==i?1:r}else if(t.length<=r)for(t instanceof Uint8Array||(t=qt(t));n<o&&e[n]==t[n];n++);n==o?(Qt[Ht++]=e.subarray(o),Qt[Ht++]=e.subarray(0,o),Qt[Ht++]=!0):(Qt[Ht++]=e,Qt[Ht++]=!1)}function cn(e,t){e instanceof Uint8Array||(e=qt(e));var n=e.length;if(1==t.length)for(var r=1,o=t instanceof Uint8Array?t[0]:t.charCodeAt(0),i=0;i<n&&e[i]!=o;i++);else{t