UNPKG

harperdb

Version:

HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.

2 lines 104 kB
/*! For license information please see 240.2c705279.chunk.js.LICENSE.txt */
(self.webpackChunkharperdb_studio=self.webpackChunkharperdb_studio||[]).push([[240],{2146:(e,t)=>{"use strict";const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function u(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function l(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},9946: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,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(t[o]!==n[o])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=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n}},3488:(e,t,n)=>{"use strict";var r=n(3959);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){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 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:a,resetWarningCache:o};return n.PropTypes=n,n}},1942:(e,t,n)=>{e.exports=n(3488)()},3959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6713:(e,t,n)=>{"use strict";n.d(t,{il:()=>pe,O$:()=>ue});var r=n(9946),o=n.n(r),a=n(9950);function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s(e){return!!e&&!!e[Y]}function u(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===X}(e)||Array.isArray(e)||!!e[G]||!!(null===(t=e.constructor)||void 0===t?void 0:t[G])||m(e)||y(e))}function c(e,t,n){void 0===n&&(n=!1),0===l(e)?(n?Object.keys:Q)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function l(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:m(e)?2:y(e)?3:0}function f(e,t){return 2===l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){return 2===l(e)?e.get(t):e[t]}function d(e,t,n){var r=l(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e){return q&&e instanceof Map}function y(e){return K&&e instanceof Set}function v(e){return e.o||e.t}function b(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Z(e);delete t[Y];for(var n=Q(t),r=0;r<n.length;r++){var o=n[r],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),O(e)||s(e)||!u(e)||(l(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&c(e,(function(e,t){return g(t,!0)}),!0)),e}function E(){i(2)}function O(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function w(e){var t=ee[e];return t||i(18,e),t}function S(e,t){ee[e]||(ee[e]=t)}function x(){return z}function R(e,t){t&&(w("Patches"),e.u=[],e.s=[],e.v=t)}function C(e){P(e),e.p.forEach(j),e.p=null}function P(e){e===z&&(z=e.l)}function A(e){return z={p:[],l:z,h:e,m:!0,_:0}}function j(e){var t=e[Y];0===t.i||1===t.i?t.j():t.g=!0}function T(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||w("ES5").S(t,e,r),r?(n[Y].P&&(C(t),i(4)),u(e)&&(e=_(t,e),t.l||N(t,e)),t.u&&w("Patches").M(n[Y].t,e,t.u,t.s)):e=_(t,n,[]),C(t),t.u&&t.v(t.u,t.s),e!==V?e:void 0}function _(e,t,n){if(O(t))return t;var r=t[Y];if(!r)return c(t,(function(o,a){return k(e,r,t,o,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return N(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=b(r.k):r.o,a=o,i=!1;3===r.i&&(a=new Set(o),o.clear(),i=!0),c(a,(function(t,a){return k(e,r,o,t,a,n,i)})),N(e,o,!1),n&&e.u&&w("Patches").N(r,n,e.u,e.s)}return r.o}function k(e,t,n,r,o,a,i){if(s(o)){var c=_(e,o,a&&t&&3!==t.i&&!f(t.R,r)?a.concat(r):void 0);if(d(n,r,c),!s(c))return;e.m=!1}else i&&n.add(o);if(u(o)&&!O(o)){if(!e.h.D&&e._<1)return;_(e,o),t&&t.A.l||N(e,o)}}function N(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&g(t,n)}function L(e,t){var n=e[Y];return(n?v(n):e)[t]}function D(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function M(e){e.o||(e.o=b(e.t))}function U(e,t,n){var r=m(t)?w("MapSet").F(t,n):y(t)?w("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,a=te;n&&(o=[r],a=ne);var i=Proxy.revocable(o,a),s=i.revoke,u=i.proxy;return r.k=u,r.j=s,u}(t,n):w("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function B(e){return s(e)||i(22,e),function e(t){if(!u(t))return t;var n,r=t[Y],o=l(t);if(r){if(!r.P&&(r.i<4||!w("ES5").K(r)))return r.t;r.I=!0,n=F(t,o),r.I=!1}else n=F(t,o);return c(n,(function(t,o){r&&p(r.t,t)===o||d(n,t,e(o))})),3===o?new Set(n):n}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b(e)}function H(){function e(t){if(!u(t))return t;if(Array.isArray(t))return t.map(e);if(m(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(y(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return f(t,G)&&(n[G]=t[G]),n}function t(t){return s(t)?e(t):t}var n="add";S("Patches",{$:function(t,r){return r.forEach((function(r){for(var o=r.path,a=r.op,s=t,u=0;u<o.length-1;u++){var c=l(s),f=o[u];"string"!=typeof f&&"number"!=typeof f&&(f=""+f),0!==c&&1!==c||"__proto__"!==f&&"constructor"!==f||i(24),"function"==typeof s&&"prototype"===f&&i(24),"object"!=typeof(s=p(s,f))&&i(15,o.join("/"))}var d=l(s),h=e(r.value),m=o[o.length-1];switch(a){case"replace":switch(d){case 2:return s.set(m,h);case 3:i(16);default:return s[m]=h}case n:switch(d){case 1:return"-"===m?s.push(h):s.splice(m,0,h);case 2:return s.set(m,h);case 3:return s.add(h);default:return s[m]=h}case"remove":switch(d){case 1:return s.splice(m,1);case 2:return s.delete(m);case 3:return s.delete(r.value);default:return delete s[m]}default:i(17,a)}})),t},N:function(e,r,o,a){switch(e.i){case 0:case 4:case 2:return function(e,r,o,a){var i=e.t,s=e.o;c(e.R,(function(e,u){var c=p(i,e),l=p(s,e),d=u?f(i,e)?"replace":n:"remove";if(c!==l||"replace"!==d){var h=r.concat(e);o.push("remove"===d?{op:d,path:h}:{op:d,path:h,value:l}),a.push(d===n?{op:"remove",path:h}:"remove"===d?{op:n,path:h,value:t(c)}:{op:"replace",path:h,value:t(c)})}}))}(e,r,o,a);case 5:case 1:return function(e,r,o,a){var i=e.t,s=e.R,u=e.o;if(u.length<i.length){var c=[u,i];i=c[0],u=c[1];var l=[a,o];o=l[0],a=l[1]}for(var f=0;f<i.length;f++)if(s[f]&&u[f]!==i[f]){var p=r.concat([f]);o.push({op:"replace",path:p,value:t(u[f])}),a.push({op:"replace",path:p,value:t(i[f])})}for(var d=i.length;d<u.length;d++){var h=r.concat([d]);o.push({op:n,path:h,value:t(u[d])})}i.length<u.length&&a.push({op:"replace",path:r.concat(["length"]),value:i.length})}(e,r,o,a);case 3:return function(e,t,r,o){var a=e.t,i=e.o,s=0;a.forEach((function(e){if(!i.has(e)){var a=t.concat([s]);r.push({op:"remove",path:a,value:e}),o.unshift({op:n,path:a,value:e})}s++})),s=0,i.forEach((function(e){if(!a.has(e)){var i=t.concat([s]);r.push({op:n,path:i,value:e}),o.unshift({op:"remove",path:i,value:e})}s++}))}(e,r,o,a)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===V?void 0:t}),r.push({op:"replace",path:[],value:e})}})}var W,z,$="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),q="undefined"!=typeof Map,K="undefined"!=typeof Set,J="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,V=$?Symbol.for("immer-nothing"):((W={})["immer-nothing"]=!0,W),G=$?Symbol.for("immer-draftable"):"__$immer_draftable",Y=$?Symbol.for("immer-state"):"__$immer_state",X=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Q="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Z=Object.getOwnPropertyDescriptors||function(e){var t={};return Q(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ee={},te={get:function(e,t){if(t===Y)return e;var n=v(e);if(!f(n,t))return function(e,t,n){var r,o=D(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!u(r)?r:r===L(e.t,t)?(M(e),e.o[t]=U(e.A.h,r,e)):r},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,n){var r=D(v(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=L(v(e),t),a=null==o?void 0:o[Y];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(h(n,o)&&(void 0!==n||f(e.t,t)))return!0;M(e),I(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==L(e.t,t)||t in e.t?(e.R[t]=!1,M(e),I(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=v(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){i(12)}},ne={};c(te,(function(e,t){ne[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ne.deleteProperty=function(e,t){return ne.set.call(this,e,t,void 0)},ne.set=function(e,t,n){return te.set.call(this,e[0],t,n,e[0])};var re=function(){function e(e){var t=this;this.O=J,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var a=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var s;if("function"!=typeof n&&i(6),void 0!==r&&"function"!=typeof r&&i(7),u(e)){var c=A(t),l=U(t,e,void 0),f=!0;try{s=n(l),f=!1}finally{f?C(c):P(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return R(c,r),T(e,c)}),(function(e){throw C(c),e})):(R(c,r),T(s,c))}if(!e||"object"!=typeof e){if(void 0===(s=n(e))&&(s=e),s===V&&(s=void 0),t.D&&g(s,!0),r){var p=[],d=[];w("Patches").M(e,s,p,d),r(p,d)}return s}i(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,a=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return[e,r,o]})):[a,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){u(e)||i(8),s(e)&&(e=B(e));var t=A(this),n=U(this,e,void 0);return n[Y].C=!0,P(t),n},t.finishDraft=function(e,t){var n=(e&&e[Y]).A;return R(n,t),T(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!J&&i(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=w("Patches").$;return s(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),oe=new re,ae=oe.produce,ie=oe.produceWithPatches.bind(oe),se=(oe.setAutoFreeze.bind(oe),oe.setUseProxies.bind(oe),oe.applyPatches.bind(oe));oe.createDraft.bind(oe),oe.finishDraft.bind(oe);function ue(e,t,n){const r=(0,a.useRef)({state:void 0,initialized:!1});r.current.initialized||(r.current.state=t?t(e.getRawState()):e.getRawState(),r.current.initialized=!0);const[,i]=(0,a.useState)(0);if((0,a.useEffect)((()=>{const n={shouldUpdate:!0};function a(){if(n.shouldUpdate){const a=t?t(e.getRawState()):e.getRawState();o()(r.current.state,a)||n.shouldUpdate&&(r.current.state=a,i((e=>e+1)))}}return e._addUpdateListener(a),a(),()=>{n.shouldUpdate=!1,e._removeUpdateListener(a)}}),null!==n&&void 0!==n?n:[]),void 0!==n){const i=(0,a.useRef)(n);o()(n,i)||(r.current.state=t(e.getRawState()))}return r.current.state}function ce(e,t){const n=(0,a.useRef)();if(null==n.current&&(n.current=new pe(e)),void 0!==t){const r=(0,a.useRef)(t);o()(t,r)||(n.current=new pe(e))}return n.current}const le={storeOrdinal:0,batching:!1,flushStores:{}};H();const fe="~._.~";class pe{constructor(e){if(this.updateListeners=[],this.ssr=!1,this.reactions=[],this.clientSubscriptions=[],this.reactionCreators=[],this.optimizedUpdateListeners={},this.optimizedUpdateListenerPaths={},this.optimizedListenerPropertyMap={},this._optListenerCount=0,this._patchListeners=[],e instanceof Function){const t=e();this.currentState=t,this.initialState=t,this.createInitialState=e}else this.currentState=e,this.initialState=e,this.createInitialState=()=>e;this.internalOrdId=le.storeOrdinal++}_setInternalOptions(e){let{ssr:t,reactionCreators:n=[]}=e;this.ssr=t,this.reactionCreators=n,this.reactions=n.map((e=>e(this)))}_getReactionCreators(){return this.reactionCreators}_instantiateReactions(){this.reactions=this.reactionCreators.map((e=>e(this)))}_getInitialState(){return this.createInitialState()}_updateStateWithoutReaction(e){this.currentState=e}_updateState(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.currentState=e,this.batchState=void 0;for(const n of this.reactions)t.push(...n());if(!this.ssr){for(const e of this.clientSubscriptions)e();if(t.length>0){const e=new Set;for(const n of t)if(this.optimizedListenerPropertyMap[n])for(const t of this.optimizedListenerPropertyMap[n])e.add(t);for(const t of e.values())this.optimizedUpdateListeners[t]&&this.optimizedUpdateListeners[t]()}this.updateListeners.forEach((e=>e()))}}_addUpdateListener(e){this.updateListeners.push(e)}_removeUpdateListener(e){this.updateListeners=this.updateListeners.filter((t=>t!==e))}_removeUpdateListenerOpt(e){const t=this.optimizedUpdateListenerPaths[e];for(const n of t)this.optimizedListenerPropertyMap[n]=this.optimizedListenerPropertyMap[n].filter((t=>t!==e));delete this.optimizedUpdateListenerPaths[e],delete this.optimizedUpdateListeners[e],this._optListenerCount--}listenToPatches(e){return this._patchListeners.push(e),()=>{this._patchListeners=this._patchListeners.filter((t=>t!==e))}}subscribe(e,t){if(!this.ssr){const n=function(e,t,n){let r=t(e.getRawState());return()=>{const a=e.getRawState(),i=t(a);o()(i,r)||(n(i,a,r),r=i)}}(this,e,t);return this.clientSubscriptions.push(n),()=>{this.clientSubscriptions=this.clientSubscriptions.filter((e=>e!==n))}}return()=>{console.warn("Pullstate: Subscriptions made on the server side are not registered - so therefor this call to unsubscribe does nothing.")}}createReaction(e,t){let{runNow:n=!1,runNowWithSideEffects:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=function(e,t){return n=>{let r=e(n.getRawState());return function(){let a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const i=n.getRawState(),s=e(i);if(a||!o()(s,r))if(n._optListenerCount>0){const[e,o,a]=ie(i,(e=>t(s,e,i,r)));if(n._updateStateWithoutReaction(e),r=s,o.length>0)return n._patchListeners.forEach((e=>e(o,a))),Object.keys(de(o))}else{if(n._patchListeners.length>0){const[e,o,a]=ie(i,(e=>t(s,e,i,r)));o.length>0&&n._patchListeners.forEach((e=>e(o,a))),n._updateStateWithoutReaction(e)}else n._updateStateWithoutReaction(ae(i,(e=>t(s,e,i,r))));r=s}return[]}}}(e,t);this.reactionCreators.push(a);const i=a(this);return this.reactions.push(i),(n||r)&&(i(!0),r&&!this.ssr&&this._updateState(this.currentState)),()=>{this.reactions=this.reactions.filter((e=>e!==i))}}getRawState(){return void 0!==this.batchState?this.batchState:this.currentState}useState(e,t){return ue(this,e,t)}useLocalCopyInitial(e){return ce(this.createInitialState,e)}useLocalCopySnapshot(e){return ce(this.currentState,e)}flushBatch(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];void 0!==this.batchState?this.batchState!==this.currentState&&this._updateState(this.batchState):e||console.error("Pullstate: Trying to flush batch state which was never created or updated on"),this.batchState=void 0}update(e,t){if(le.batching){void 0===this.batchState&&(this.batchState=this.currentState,le.flushStores[this.internalOrdId]=this);const n="function"===typeof e,[r,o,a]=he(this.batchState,e,n);o.length>0&&(this._patchListeners.length>0||t)&&(t&&t(o,a),this._patchListeners.forEach((e=>e(o,a)))),this.batchState=r}else this.batchState=void 0,function(e,t,n){const r=e.getRawState(),o="function"===typeof t;if(e._optListenerCount>0){const[a,i,s]=he(r,t,o);i.length>0&&(n&&n(i,s),e._patchListeners.forEach((e=>e(i,s))),e._updateState(a,Object.keys(de(i))))}else{let a;if(e._patchListeners.length>0||n){const[i,s,u]=he(r,t,o);s.length>0&&(n&&n(s,u),e._patchListeners.forEach((e=>e(s,u)))),a=i}else a=ae(r,(e=>o?t(e,r):t.reduce(((e,t)=>ae(e,(n=>t(n,e)))),r)));a!==r&&e._updateState(a)}}(this,e,t)}replace(e){this._updateState(e)}replaceFromCurrent(e){this._updateState(e(this.currentState))}applyPatches(e){!function(e,t){const n=e.getRawState(),r=se(n,t);r!==n&&e._updateState(r,Object.keys(de(t)))}(this,e)}}function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const n of e){let e;for(const r of n.path)e=e?"".concat(e).concat(fe).concat(r):r,t[e]=1}return t}function he(e,t,n){return n?ie(e,(n=>t(n,e))):t.reduce(((e,t)=>{let[n,r,o]=e;const a=ie(n,(e=>t(e,n)));return r.push(...a[1]),o.push(...a[2]),[a[0],r,o]}),[e,[],[]])}var me,ye;!function(e){e.THREW_ERROR="THREW_ERROR",e.RETURNED_ERROR="RETURNED_ERROR",e.UNFINISHED="UNFINISHED",e.DORMANT="DORMANT"}(me||(me={})),function(e){e.WATCH_HIT_CACHE="WATCH_HIT_CACHE",e.BECKON_HIT_CACHE="BECKON_HIT_CACHE",e.RUN_HIT_CACHE="RUN_HIT_CACHE",e.READ_HIT_CACHE="READ_HIT_CACHE",e.READ_RUN="READ_RUN",e.SHORT_CIRCUIT="SHORT_CIRCUIT",e.DIRECT_RUN="DIRECT_RUN",e.BECKON_RUN="BECKON_RUN",e.CACHE_UPDATE="CACHE_UPDATE"}(ye||(ye={}));let ve;Error;try{ve=new Proxy({},{get:function(e,t){throw new Error("Pullstate: Trying to access store (".concat(String(t),') inside async actions without the correct usage or setup.\nIf this error occurred on the server:\n* If using run(), make use of your created instance for this request: instance.runAsyncAction()\n* If using read(), useWatch(), useBeckon() etc. - make sure you have properly set up your <PullstateProvider/>\n\nIf this error occurred on the client:\n* Make sure you have created your "pullstateCore" object with all your stores, using createPullstateCore(), and are making use of instantiate() before rendering.'))}})}catch(ge){ve={}}me.UNFINISHED;a.createContext(null);var be;!function(e){e.WATCH="watch",e.BECKON="beckon"}(be||(be={}))},7348:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>D,Xq:()=>A,MW:()=>I});var r=n(9950),o=n(1942),a=n.n(o),i=n(2448),s=n(8587),u=n(8168),c=n(9417),l=n(7387),f=n(8555);function p(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function d(e,t,n){return null!=n[t]?n[t]:e.props[t]}function h(e,t,n){var o=p(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,o);return Object.keys(a).forEach((function(i){var s=a[i];if((0,r.isValidElement)(s)){var u=i in t,c=i in o,l=t[i],f=(0,r.isValidElement)(l)&&!l.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,r.isValidElement)(l)&&(a[i]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:l.props.in,exit:d(s,"exit",e),enter:d(s,"enter",e)})):a[i]=(0,r.cloneElement)(s,{in:!1}):a[i]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:d(s,"exit",e),enter:d(s,"enter",e)})}})),a}var m=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},y=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,c.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,l.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,a=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,o=i,p(n.children,(function(e){return(0,r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:d(e,"appear",n),enter:d(e,"enter",n),exit:d(e,"exit",n)})}))):h(e,a,i),firstRender:!1}},n.handleExited=function(e,t){var n=p(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,u.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,s.A)(e,["component","childFactory"]),a=this.state.contextValue,i=m(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(f.A.Provider,{value:a},i):r.createElement(f.A.Provider,{value:a},r.createElement(t,o,i))},t}(r.Component);y.propTypes={},y.defaultProps={component:"div",childFactory:function(e){return e}};const v=y;var b=n(7119);function g(e,t,n){return 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||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},E.apply(this,arguments)}function O(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(u){o=!0,a=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var R,C,P=(0,r.createContext)(),A={TOP_LEFT:"top left",TOP_CENTER:"top center",TOP_RIGHT:"top right",MIDDLE_LEFT:"middle left",MIDDLE:"middle",MIDDLE_RIGHT:"middle right",BOTTOM_LEFT:"bottom left",BOTTOM_CENTER:"bottom center",BOTTOM_RIGHT:"bottom right"},j={INFO:"info",SUCCESS:"success",ERROR:"error"},T={FADE:"fade",SCALE:"scale"},_=function(e){var t=e.children,n=e.options,o=n.position,a=n.containerStyle,i=S(e,["children","options"]),s=(0,r.useMemo)((function(){return function(e){var t={left:0,position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",pointerEvents:"none"};switch(e){case A.TOP_LEFT:return w(w({},t),{},{top:0,alignItems:"flex-start"});case A.TOP_CENTER:return w(w({},t),{},{top:0});case A.TOP_RIGHT:return w(w({},t),{},{top:0,alignItems:"flex-end"});case A.MIDDLE_LEFT:return w(w({},t),{},{top:"50%",alignItems:"flex-start"});case A.MIDDLE:return w(w({},t),{},{top:"50%"});case A.MIDDLE_RIGHT:return w(w({},t),{},{top:"50%",alignItems:"flex-end"});case A.BOTTOM_LEFT:return w(w({},t),{},{bottom:0,alignItems:"flex-start"});case A.BOTTOM_CENTER:return w(w({},t),{},{bottom:0});case A.BOTTOM_RIGHT:return w(w({},t),{},{bottom:0,alignItems:"flex-end"});default:return t}}(o)}),[o]);return t.length>0&&r.createElement("div",E({style:w(w({},s),a)},i),t)},k=(g(R={},T.FADE,{transition:"opacity ".concat(250,"ms ease"),opacity:0}),g(R,T.SCALE,{transform:"scale(1)",transition:"all ".concat(250,"ms ease-in-out")}),R),N=(g(C={},T.FADE,{entering:{opacity:0},entered:{opacity:1}}),g(C,T.SCALE,{entering:{transform:"scale(0)"},entered:{transform:"scale(1)"},exiting:{transform:"scale(0)"},exited:{transform:"scale(1)"}}),C),L=function(e){var t=e.children,n=e.type,o=S(e,["children","type"]),a=(0,r.useRef)(null);return r.createElement(i.Ay,E({nodeRef:a},o,{timeout:250}),(function(e){return r.createElement("div",{ref:a,style:w(w({},k[n]),N[n][e])},t)}))},D=function(e){var t=e.children,n=e.offset,o=e.position,a=e.timeout,i=e.type,s=e.transition,u=e.containerStyle,c=e.template,l=e.context,f=S(e,["children","offset","position","timeout","type","transition","containerStyle","template","context"]),p=(0,r.useRef)(null),d=(0,r.useRef)(null),h=(0,r.useRef)([]),m=x((0,r.useState)([]),2),y=m[0],g=m[1];(0,r.useEffect)((function(){p.current=document.createElement("div"),p.current.id="__react-alert__",document.body.appendChild(p.current);var e=h.current;return function(){e.forEach(clearTimeout),p.current&&document.body.removeChild(p.current)}}),[]);var O=(0,r.useCallback)((function(e){g((function(t){var n=t.length,r=t.filter((function(t){return t.id!==e.id}));return n>r.length&&e.options.onClose&&e.options.onClose(),r}))}),[]),R=(0,r.useCallback)((function(){d.current.alerts.forEach(O)}),[O]),C=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={id:Math.random().toString(36).substr(2,9),message:e,options:w({position:t.position||o,timeout:a,type:i},t),close:function(){return O(n)}};if(n.options.timeout){var r=setTimeout((function(){O(n),h.current.splice(h.current.indexOf(r),1)}),n.options.timeout);h.current.push(r)}return g((function(e){return e.concat(n)})),n.options.onOpen&&n.options.onOpen(),n}),[o,O,a,i]),P=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.type=j.SUCCESS,C(e,t)}),[C]),T=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.type=j.ERROR,C(e,t)}),[C]),k=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.type=j.INFO,C(e,t)}),[C]);d.current={alerts:y,show:C,remove:O,removeAll:R,success:P,error:T,info:k};var N,D=(N=function(e){return e.options.position},y.reduce((function(e,t){var n=N(t);return e[n]||(e[n]=[]),e[n].push(t),e}),{}));return r.createElement(l.Provider,{value:d},t,p.current&&(0,b.createPortal)(r.createElement(r.Fragment,null,Object.keys(A).map((function(e){var t=A[e];return r.createElement(v,E({appear:!0,key:t,options:{position:t,containerStyle:u},component:_},f),D[t]?D[t].map((function(e){return r.createElement(L,{type:s,key:e.id},r.createElement(c,E({style:{margin:n,pointerEvents:"all"}},e)))})):null)}))),p.current))};D.propTypes={offset:a().string,position:a().oneOf(Object.keys(A).map((function(e){return A[e]}))),timeout:a().number,type:a().oneOf(Object.keys(j).map((function(e){return j[e]}))),transition:a().oneOf(Object.keys(T).map((function(e){return T[e]}))),containerStyle:a().object,template:a().oneOfType([a().element,a().func,a().elementType]).isRequired,context:a().shape({Provider:a().object,Consumer:a().object})},D.defaultProps={offset:"10px",position:A.TOP_CENTER,timeout:0,type:j.INFO,transition:T.FADE,containerStyle:{zIndex:100},context:P};var I=function(e){var t=(0,r.useContext)(e||P);return(0,r.useMemo)((function(){return t.current}),[t])}},9435:(e,t,n)=>{"use strict";n.d(t,{tH:()=>i});var r=n(9950);const o=(0,r.createContext)(null),a={didCatch:!1,error:null};class i extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=a}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(a)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(a))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:a}=this.props,{didCatch:i,error:s}=this.state;let u=e;if(i){const e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)u=t(e);else if(n)u=(0,r.createElement)(n,e);else{if(void 0===a)throw s;u=a}}return(0,r.createElement)(o.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}},2448:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y});var r=n(8587),o=n(7387),a=n(9950),i=n(7119);const s=!1;var u=n(8555),c="unmounted",l="exited",f="entering",p="entered",d="exiting",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=l,r.appearStatus=f):o=p:o=t.unmountOnExit||t.mountOnEnter?c:l,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==p&&(t=f):n!==f&&n!==p||(t=d)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.findDOMNode(this),r],a=o[0],u=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:p},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,u),this.safeSetState({status:f},(function(){t.props.onEntering(a,u),t.onTransitionEnd(l,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(a,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:d},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:l},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,o):a.cloneElement(a.Children.only(n),o))},t}(a.Component);function m(){}h.contextType=u.A,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=c,h.EXITED=l,h.ENTERING=f,h.ENTERED=p,h.EXITING=d;const y=h},8555:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(9950).createContext(null)},3452:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(9950),o=n(1942),a=n.n(o),i=n(8738),s=n.n(i),u=n(1497),c=["className","cssModule","variant","innerRef"];function l(){return l=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},l.apply(this,arguments)}function f(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 p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h={active:a().bool,"aria-label":a().string,onClick:a().func,variant:a().oneOf(["white"]),className:a().string,cssModule:a().object,innerRef:a().oneOfType([a().object,a().string,a().func])};function m(e){var t=e.className,n=(e.cssModule,e.variant),o=e.innerRef,a=d(e,c),i=(0,u.qO)(s()(t,"btn-close",n&&"btn-close-".concat(n)));return r.createElement("button",l({ref:o,type:"button",className:i},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"aria-label":"close"},a)))}m.propTypes=h;const y=m;var v=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function b(){return b=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},b.apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E={active:a().bool,"aria-label":a().string,block:a().bool,children:a().node,className:a().string,cssModule:a().object,close:a().bool,color:a().string,disabled:a().bool,innerRef:a().oneOfType([a().object,a().func,a().string]),onClick:a().func,outline:a().bool,size:a().string,tag:u.Wx};function O(e){var t=(0,r.useCallback)((function(t){if(!e.disabled)return e.onClick?e.onClick(t):void 0;t.preventDefault()}),[e.onClick,e.disabled]),n=e.active,o=e["aria-label"],a=e.block,i=e.className,c=e.close,l=e.cssModule,f=e.color,p=void 0===f?"secondary":f,d=e.outline,h=e.size,m=e.tag,E=void 0===m?"button":m,O=e.innerRef,w=g(e,v);if(c)return r.createElement(y,w);var S="btn".concat(d?"-outline":"","-").concat(p),x=(0,u.qO)(s()(i,"btn",S,!!h&&"btn-".concat(h),!!a&&"d-block w-100",{active:n,disabled:e.disabled}),l);return w.href&&"button"===E&&(E="a"),r.createElement(E,b({type:"button"===E&&w.onClick?"button":void 0},w,{className:x,ref:O,onClick:t,"aria-label":o}))}O.propTypes=E;const w=O},4084:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9950),o=n(1942),a=n.n(o),i=n(8738),s=n.n(i),u=n(1497),c=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function l(){return l=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},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p={body:a().bool,className:a().string,color:a().string,cssModule:a().object,innerRef:a().oneOfType([a().object,a().string,a().func]),inverse:a().bool,outline:a().bool,tag:u.Wx};function d(e){var t=e.className,n=e.cssModule,o=e.color,a=e.body,i=e.inverse,p=e.outline,d=e.tag,h=void 0===d?"div":d,m=e.innerRef,y=f(e,c),v=(0,u.qO)(s()(t,"card",!!i&&"text-white",!!a&&"card-body",!!o&&"".concat(p?"border":"bg","-").concat(o)),n);return r.createElement(h,l({},y,{className:v,ref:m}))}d.propTypes=p;const h=d},8156:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9950),o=n(1942),a=n.n(o),i=n(8738),s=n.n(i),u=n(1497),c=["className","cssModule","innerRef","tag"];function l(){return l=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},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p={className:a().string,cssModule:a().object,innerRef:a().oneOfType([a().object,a().string,a().func]),tag:u.Wx};function d(e){var t=e.className,n=e.cssModule,o=e.innerRef,a=e.tag,i=void 0===a?"div":a,p=f(e,c),d=(0,u.qO)(s()(t,"card-body"),n);return r.createElement(i,l({},p,{className:d,ref:o}))}d.propTypes=p;const h=d},6114:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(9950),o=n(1942),a=n.n(o),i=n(8738),s=n.n(i),u=n(1497),c=["className","cssModule","widths","tag"];function l(){return l=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},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=["xs","sm","md","lg","xl","xxl"],h=a().oneOfType([a().number,a().string]),m=a().oneOfType([a().bool,a().number,a().string,a().shape({size:a().oneOfType([a().bool,a().number,a().string]),order:h,offset:h})]),y={tag:u.Wx,xs:m,sm:m,md:m,lg:m,xl:m,xxl:m,className:a().string,cssModule:a().object,widths:a().array},v=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)};function b(e){var t=e.className,n=e.cssModule,o=e.widths,a=void 0===o?d:o,i=e.tag,h=void 0===i?"div":i,m=function(e,t){var n=e,r=[];return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:d).forEach((function(e,o){var a=n[e];if(delete n[e],a||""===a){var i=!o;if((0,u.Gv)(a)){var c,l=i?"-":"-".concat(e,"-"),f=v(i,e,a.size);r.push((0,u.qO)(s()((p(c={},f,a.size||""===a.size),p(c,"order".concat(l).concat(a.order),a.order||0===a.order),p(c,"offset".concat(l).concat(a.offset),a.offset||0===a.offset),c)),t))}else{var d=v(i,e,a);r.push(d)}}})),{colClasses:r,modifiedAttributes:n}}(f(e,c),n,a),y=m.modifiedAttributes,b=m.colClasses;b.length||b.push("col");var g=(0,u.qO)(s()(t,b),n);return r.createElement(h,l({},y,{className:g}))}b.propTypes=y;const g=b},7176:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(9950),o=n(1942),a=n.n(o),i=n(8738),s=n.n(i),u=n(1497),c=["className","cssModule","noGutters","tag","widths"];function l(){return l=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},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["xs","sm","md","lg","xl","xxl"],d=a().oneOfType([a().number,a().string]),h={tag:u.Wx,noGutters:(0,u.io)(a().bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:a().string,cssModule:a().object,xs:d,sm:d,md:d,lg:d,xl:d,xxl:d,widths:a().array};function m(e){var t=e.className,n=e.cssModule,o=e.noGutters,a=e.tag,i=void 0===a?"div":a,d=e.widths,h=void 0===d?p:d,m=f(e,c),y=[];h.forEach((function(t,n){var r=e[t];if(delete m[t],r){var o=!n;y.push(o?"row-cols-".concat(r):"row-cols-".concat(t,"-").concat(r))}}));var v=(0,u.qO)(s()(t,o?"gx-0":null,"row",y),n);return r.createElement(i,l({},m,{className:v}))}m.propTypes=h;const y=m},1497:(e,t,n)=>{"use strict";n.d(t,{EW:()=>j,FS:()=>l,Gv:()=>C,Jc:()=>_,Ll:()=>c,PS:()=>w,Q6:()=>O,Sw:()=>x,Up:()=>h,Wx:()=>E,Xt:()=>f,cJ:()=>d,io:()=>v,mc:()=>y,mr:()=>T,qO:()=>p,uP:()=>S,xQ:()=>g});var r,o=n(1942),a=n.n(o);function i(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return u="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},u(e)}function c(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function l(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function f(){var e=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;document.body.clientWidth<window.innerWidth&&c(n+e)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function d(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function h(e,t){for(var n,r=Array.isArray(t)?t:[t],o=r.length,a={};o>0;)a[n=r[o-=1]]=e[n];return a}var m={};function y(e){m[e]||("undefined"!==typeof console&&console.error(e),m[e]=!0)}function v(e,t){return function(n,r,o){null!==n[r]&&"undefined"!==typeof n[r]&&y('"'.concat(r,'" property of "').concat(o,'" has been deprecated.\n').concat(t));for(var a=arguments.length,i=new Array(a>3?a-3:0),s=3;s<a;s++)i[s-3]=arguments[s];return e.apply(void 0,[n,r,o].concat(i))}}var b="object"===("undefined"===typeof window?"undefined":u(window))&&window.Element||function(){};var g=a().oneOfType([a().string,a().func,function(e,t,n){if(!(e[t]instanceof b))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},a().shape({current:a().any})]),E=a().oneOfType([a().func,a().string,a().shape({$$typeof:a().symbol,render:a().func}),a().arrayOf(a().oneOfType([a().func,a().string,a().shape({$$typeof:a().symbol,render:a().func})]))]),O={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},w=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],S={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},x=!("undefined"===typeof window||!window.document||!window.document.createElement);function R(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function C(e){var t=u(e);return null!=e&&("object"===t||"function"===t)}function P(e){if(function(e){return!(!e||"object"!==u(e))&&"current"in e}(e))return e.current;if(function(e){if(!C(e))return!1;var t=R(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}(e))return e();if("string"===typeof e&&x){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function A(e){return null!==e&&(Array.isArray(e)||x&&"number"===typeof e.length)}function j(e,t){var n=P(e);return t?A(n)?n:null===n?[]:[n]:A(n)?n[0]:n}var T=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function _(e,t){if(!e||!t)return t;var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t);return Object.keys(e).forEach((function(t){void 0===n[t]&&(n[t]=e[t]),Object.keys(e[t]||{}).length>0&&"object"===u(e[t])&&_(e[t],n)})),n}},6997:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950);var o={},a=function(e,t,n){return o[e]||(o[e]={callbacks:[],value:n}),o[e].callbacks.push(t),{deregister:function(){var n=o[e].callbacks,r=n.indexOf(t);r>-1&&n.splice(r,1)},emit:function(n){o[e].value!==n&&(o[e].value=n,o[e].callbacks.forEach((function(e){t!==e&&e(n)})))}}};function i(e,t){if(void 0===t&&(t="undefined"!=typeof n.g&&n.g.localStorage?n.g.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null),t){var o=(i=t,{get:function(e,t){var n=i.getItem(e);return null==n?"function"==typeof t?t():t:JSON.parse(n)},set:function(e,t){i.setItem(e,JSON.stringify(t))}});return function(t){return function(e,t,o){var i=o.get,s=o.set,u=(0,r.useRef)(null),c=(0,r.useState)((function(){return i(t,e)})),l=c[0],f=c[1];(function(e,t,o,a){void 0===o&&(o=n.g),void 0===a&&(a={});var i=(0,r.useRef)(),s=a.capture,u=a.passive,c=a.once;(0,r.useEffect)((function(){i.current=t}),[t]),(0,r.useEffect)((function(){if(o&&o.addEventListener){var t=function(e){return i.current(e)},n={capture:s,passive:u,once:c};return o.addEventListener(e,t,n),function(){o.removeEventListener(e,t,n)}}}),[e,o,s,u,c])})("storage",(function(e){if(e.key===t){var n=JSON.parse(e.newValue);l!==n&&f(n)}})),(0,r.useEffect)((function(){return u.current=a(t,f,e),function(){u.current.deregister()}}),[e,t]);var p=(0,r.useCallback)((function(e){var n="function"==typeof e?e(l):e;s(t,n),f(n),u.current.emit(e)}),[l,s,t]);return[l,p]}(t,e,o)}}var i;return r.useState}},4038:(e,t,n)=>{"use strict";n.d(t,{hd:()=>S});var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=f(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(d);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=p(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=function(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function g(e){var t=new l;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(a){console.warn("Response "+a.message)}}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var O=[301,302,303,307,308];E.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})};var w=r.DOMException;try{new w}catch(x){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function S(e,t){return new Promise((function(n,a){var i=new v(e,t);if(i.signal&&i.signal.aborted)return a(new w("Aborted","AbortError"));var c=new XMLHttpRequest;function f(){c.abort()}if(c.onload=function(){var e={statusText:c.statusText,headers:g(c.getAllResponseHeaders()||"")};0===i.url.indexOf("file://")&&(c.status<200||c.status>599)?e.status=200:e.status=c.status,e.url="responseURL"in c?c.responseURL:e.headers.get("X-Request-URL");var t="response"in c?c.response:c.responseText;setTimeout((function(){n(new E(t,e))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){a(new w("Aborted","AbortError"))}),0)},c.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?c.withCredentials=!0:"omit"===i.credentials&&(c.withCredentials=!1),"responseType"in c&&(o.blob?c.responseType="blob":o.arrayBuffer&&(c.responseType="arraybuffer")),t&&"object"===typeof t.headers&&!(t.headers instanceof l||r.Headers&&t.headers instanceof r.Headers)){var p=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){p.push(s(e)),c.setRequestHeader(e,u(t.headers[e]))})),i.headers.forEach((function(e,t){-1===p.indexOf(t)&&c.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&i.signal.removeEventListener("abort",f)}),c.send("undefined"===typeof i._bodyInit?null:i._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=l,r.Request=v,r.Response=E)},8738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8168:(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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},7387:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},9379:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4467);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},45:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},2284:(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.d(t,{A:()=>r})},5077:(e,t,n)=>{"use strict";n.d(t,{BV:()=>Ae,C5:()=>xe,Kd:()=>ut,Zp:()=>se,g:()=>ce,k2:()=>ft,qh:()=>Ce,sv:()=>Re,zy:()=>oe});var r=n(45),o=n(9379),a=n(9950);n(2146);const i=["page"],s=["page","matches"],u=["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],c=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],l=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];var f="popstate";function p(){return g((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return y("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:v(t)}),null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function d(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function h(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return(0,o.A)((0,o.A)({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?b(t):t),{},{state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)})}function v(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 b(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 g(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,u="POP",c=null,l=p();function p(){return(s.state||{idx:null}).idx}function h(){u="POP";let e=p(),t=null==e?null:e-l;l=e,c&&c({action:u,location:g.location,delta:t})}function b(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:v(e);return n=n.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: ".concat(n)),new URL(n,t)}null==l&&(l=0,s.replaceState((0,o.A)((0,o.A)({},s.state),{},{idx:l}),""));let g={get action(){return u},get location(){return e(a,s)},listen(e){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(f,h),c=e,()=>{a.removeEventListener(f,h),c=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u="PUSH";let r=y(g.location,e,t);n&&n(r,e),l=p()+1;let o=m(r,l),f=g.createHref(r);try{s.pushState(o,"",f)}catch(d){if(d instanceof DOMException&&"DataCloneError"===d.name)throw d;a.location.assign(f)}i&&c&&c({action:u,location:g.location,delta:1})},replace:function(e,t){u="REPLACE";let r=y(g.location,e,t);n&&n(r,e),l=p();let o=m(r,l),a=g.createHref(r);s.replaceState(o,"",a),i&&c&&c({action:u,location:g.location,delta:0})},go:e=>s.go(e)};return g}function E(e,t){return O(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function O(e,t,n,r){let o=D(("string"===typeof t?b(t):t).pathname||"/",n);if(null==o)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 i=null;for(let s=0;null==i&&s<a.length;++s){let e=L(o);i=k(a[s],e,r)}return i}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(d(i.relativePath.startsWith(r),'Absolute route path "'.concat(i.relativePath,'" nested under path "').concat(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 s=F([r,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(s,'".')),w(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:_(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let r of S(e.path))o(e,t,r);else o(e,t)})),t}function S(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=S(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var x=/^:[\w-]+$/,R=3,C=2,P=1,A=10,j=-2,T=e=>"*"===e;function _(e,t){let n=e.split("/"),r=n.length;return n.some(T)&&(r+=j),t&&(r+=C),n.filter((e=>!T(e))).reduce(((e,t)=>e+(x.test(t)?R:""===t?P:A)),r)}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let e=r[s],u=s===r.length-1,c="/"===a?t:t.slice(a.length)||"/",l=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:u},c),f=e.route;if(!l&&u&&n&&!r[r.length-1].route.index&&(l=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!l)return null;Object.assign(o,l.params),i.push({params:o,pathname:F([a,l.pathname]),pathnameBase:H(F([a,l.pathnameBase])),route:f}),"/"!==l.pathnameBase&&(a=F([a,l.pathnameBase]))}return i}function N(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];h("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(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 a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.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]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const u=s[n];return e[r]=o&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return h(!1,'The URL path "'.concat(e,'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function D(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 I(e,t,n,r){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(r),"].  Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function M(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e){let t=M(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function B(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=b(e):(r=(0,o.A)({},e),d(!r.pathname||!r.pathname.includes("?"),I("?","pathname","search",r)),d(!r.pathname||!r.pathname.includes("#"),I("#","pathname","hash",r)),d(!r.search||!r.search.includes("#"),I("#","search","hash",r)));let i,s=""===e||""===r.pathname,u=s?"/":r.pathname;if(null==u)i=n;else{let e=t.length-1;if(!a&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:n,search:r="",hash:o=""}="string"===typeof e?b(e):e,a=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:a,search:W(r),hash:z(o)}}(r,i),l=u&&"/"!==u&&u.endsWith("/"),f=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!f||(c.pathname+="/"),c}var F=e=>e.join("/").replace(/\/\/+/g,"/"),H=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function $(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var q=["POST","PUT","PATCH","DELETE"],K=(new Set(q),["GET",...q]);new Set(K),Symbol("ResetLoaderData");var J=a.createContext(null);J.displayName="DataRouter";var V=a.createContext(null);V.displayName="DataRouterState";var G=a.createContext({isTransitioning:!1});G.displayName="ViewTransition";var Y=a.createContext(new Map);Y.displayName="Fetchers";var X=a.createContext(null);X.displayName="Await";var Q=a.createContext(null);Q.displayName="Navigation";var Z=a.createContext(null);Z.displayName="Location";var ee=a.createContext({outlet:null,matches:[],isDataRoute:!1});ee.displayName="Route";var te=a.createContext(null);te.displayName="RouteError";var ne=!0;function re(){return null!=a.useContext(Z)}function oe(){return d(re(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Z).location}var ae="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ie(e){a.useContext(Q).static||a.useLayoutEffect(e)}function se(){let{isDataRoute:e}=a.useContext(ee);return e?function(){let{router:e}=be("useNavigate"),t=Ee("useNavigate"),n=a.useRef(!1);ie((()=>{n.current=!0}));let r=a.useCallback((async function(r){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(n.current,ae),n.current&&("number"===typeof r?e.navigate(r):await e.navigate(r,(0,o.A)({fromRouteId:t},a)))}),[e,t]);return r}():function(){d(re(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(J),{basename:t,navigator:n}=a.useContext(Q),{matches:r}=a.useContext(ee),{pathname:o}=oe(),i=JSON.stringify(U(r)),s=a.useRef(!1);ie((()=>{s.current=!0}));let u=a.useCallback((function(r){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(s.current,ae),!s.current)return;if("number"===typeof r)return void n.go(r);let u=B(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(u.pathname="/"===u.pathname?t:F([t,u.pathname])),(a.replace?n.replace:n.push)(u,a.state,a)}),[t,n,i,o,e]);return u}()}var ue=a.createContext(null);function ce(){let{matches:e}=a.useContext(ee),t=e[e.length-1];return t?t.params:{}}function le(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:n}=a.useContext(ee),{pathname:r}=oe(),o=JSON.stringify(U(n));return a.useMemo((()=>B(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function fe(e,t,n,r){d(re(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(Q),{matches:s}=a.useContext(ee),u=s[s.length-1],c=u?u.params:{},l=u?u.pathname:"/",f=u?u.pathnameBase:"/",p=u&&u.route;if(ne){let e=p&&p.path||"";Se(l,!p||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(l,'" (under <Route path="').concat(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.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let m,y=oe();if(t){var v;let e="string"===typeof t?b(t):t;d("/"===f||(null===(v=e.pathname)||void 0===v?void 0:v.startsWith(f)),'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 "'.concat(f,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),m=e}else m=y;let g=m.pathname||"/",O=g;if("/"!==f){let e=f.replace(/^\//,"").split("/");O="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=E(e,{pathname:O});ne&&(h(p||null!=w,'No routes matched location "'.concat(m.pathname).concat(m.search).concat(m.hash,'" ')),h(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,'Matched leaf route at location "'.concat(m.pathname).concat(m.search).concat(m.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 S=ye(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:F([f,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:F([f,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&S?a.createElement(Z.Provider,{value:{location:(0,o.A)({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:"POP"}},S):S}function pe(){let e=Oe(),t=$(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return ne&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route."))),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,s)}var de=a.createElement(pe,null),he=class 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:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(ee.Provider,{value:this.props.routeContext},a.createElement(te.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function me(e){let{routeContext:t,match:n,children:r}=e,o=a.useContext(J);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(ee.Provider,{value:t},r)}function ye(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,o=null===n||void 0===n?void 0:n.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&void 0!==(null===o||void 0===o?void 0:o[e.route.id])));d(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(o).join(","))),r=r.slice(0,Math.min(r.length,e+1))}let i=!1,s=-1;if(n)for(let a=0;a<r.length;a++){let e=r[a];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(s=a),e.route.id){let{loaderData:t,errors:o}=n,a=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!o||void 0===o[e.route.id]);if(e.route.lazy||a){i=!0,r=s>=0?r.slice(0,s+1):[r[0]];break}}}return r.reduceRight(((e,u,c)=>{let l,f=!1,p=null,d=null;n&&(l=o&&u.route.id?o[u.route.id]:void 0,p=u.route.errorElement||de,i&&(s<0&&0===c?(Se("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,d=null):s===c&&(f=!0,d=u.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,c+1)),m=()=>{let t;return t=l?p:f?d:u.route.Component?a.createElement(u.route.Component,null):u.route.element?u.route.element:e,a.createElement(me,{match:u,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(u.route.ErrorBoundary||u.route.errorElement||0===c)?a.createElement(he,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function ve(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function be(e){let t=a.useContext(J);return d(t,ve(e)),t}function ge(e){let t=a.useContext(V);return d(t,ve(e)),t}function Ee(e){let t=function(e){let t=a.useContext(ee);return d(t,ve(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function Oe(){var e;let t=a.useContext(te),n=ge("useRouteError"),r=Ee("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var we={};function Se(e,t,n){t||we[e]||(we[e]=!0,h(!1,n))}a.memo((function(e){let{routes:t,future:n,state:r}=e;return fe(t,void 0,r,n)}));function xe(e){let{to:t,replace:n,state:r,relative:o}=e;d(re(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=a.useContext(Q);h(!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:s}=a.useContext(ee),{pathname:u}=oe(),c=se(),l=B(t,U(s),u,"path"===o),f=JSON.stringify(l);return a.useEffect((()=>{c(JSON.parse(f),{replace:n,state:r,relative:o})}),[c,f,o,n,r]),null}function Re(e){return function(e){let t=a.useContext(ee).outlet;return t?a.createElement(ue.Provider,{value:e},t):t}(e.context)}function Ce(e){d(!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 Pe(e){let{basename:t="/",children:n=null,location:r,navigationType:o="POP",navigator:i,static:s=!1}=e;d(!re(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=t.replace(/^\/*/,"/"),c=a.useMemo((()=>({basename:u,navigator:i,static:s,future:{}})),[u,i,s]);"string"===typeof r&&(r=b(r));let{pathname:l="/",search:f="",hash:p="",state:m=null,key:y="default"}=r,v=a.useMemo((()=>{let e=D(l,u);return null==e?null:{location:{pathname:e,search:f,hash:p,state:m,key:y},navigationType:o}}),[u,l,f,p,m,y,o]);return h(null!=v,'<Router basename="'.concat(u,'"> is not able to match the URL "').concat(l).concat(f).concat(p,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==v?null:a.createElement(Q.Provider,{value:c},a.createElement(Z.Provider,{children:n,value:v}))}function Ae(e){let{children:t,location:n}=e;return fe(je(t),n)}a.Component;function je(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,je(e.props.children,o));d(e.type===Ce,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.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,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=je(e.props.children,o)),n.push(i)})),n}var Te="get",_e="application/x-www-form-urlencoded";function ke(e){return null!=e&&"string"===typeof e.tagName}var Ne=null;var Le=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function De(e){return null==e||Le.has(e)?e:(h(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(_e,'"')),null)}function Ie(e,t){let n,r,o,a,i;if(ke(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?D(i,t):null,n=e.getAttribute("method")||Te,o=De(e.getAttribute("enctype"))||_e,a=new FormData(e)}else if(function(e){return ke(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return ke(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?D(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Te,o=De(e.getAttribute("formenctype"))||De(i.getAttribute("enctype"))||_e,a=new FormData(i,e),!function(){if(null===Ne)try{new FormData(document.createElement("form"),0),Ne=!1}catch(e){Ne=!0}return Ne}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?"".concat(t,"."):"";a.append("".concat(e,"x"),"0"),a.append("".concat(e,"y"),"0")}else t&&a.append(t,r)}}else{if(ke(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Te,r=null,o=_e,i=e}var s;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function Me(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}async function Ue(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Be(e){return null!=e&&"string"===typeof e.page}function Fe(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function He(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null===(r=n[t].route.path)||void 0===r?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===a?t.filter(((e,t)=>i(e,t)||s(e,t))):"data"===a?t.filter(((t,a)=>{let u=r.routes[t.route.id];if(!u||!u.hasLoader)return!1;if(i(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){var c;let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0})):[]}function We(e){return[...new Set(e)]}function ze(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Be(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function $e(e){return{__html:e}}Symbol("SingleFetchRedirect");function qe(e){let t="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return"/"===t.pathname?t.pathname="_root.data":t.pathname="".concat(t.pathname.replace(/\/$/,""),".data"),t}a.Component;function Ke(e){let{error:t,isOutsideRemixApp:n}=e;console.error(t);let r,o=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n        );\n      '}});if($(t))return a.createElement(Je,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),o);if(t instanceof Error)r=t;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);r=new Error(e)}return a.createElement(Je,{title:"Application Error!",isOutsideRemixApp:n},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function Je(e){var t;let{title:n,renderScripts:r,isOutsideRemixApp:o,children:i}=e,{routeModules:s}=Qe();return null!==(t=s.root)&&void 0!==t&&t.Layout&&!o?i:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,n)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,r?a.createElement(at,null):null)))}function Ve(e){return!e}function Ge(){let e=a.useContext(J);return Me(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ye(){let e=a.useContext(V);return Me(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Xe=a.createContext(void 0);function Qe(){let e=a.useContext(Xe);return Me(e,"You must render this element inside a <HydratedRouter> element"),e}function Ze(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function et(e,t,n){if(n&&!ot)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function tt(e){let{page:t}=e,n=(0,r.A)(e,i),{router:s}=Ge(),u=a.useMemo((()=>E(s.routes,t,s.basename)),[s.routes,t,s.basename]);return u?a.createElement(rt,(0,o.A)({page:t,matches:u},n)):(console.warn("Tried to prefetch ".concat(t," but no routes matched.")),null)}function nt(e){let{manifest:t,routeModules:n}=Qe(),[r,i]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return ze((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Ue(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Fe).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?(0,o.A)((0,o.A)({},e),{},{rel:"prefetch",as:"style"}):(0,o.A)((0,o.A)({},e),{},{rel:"prefetch"}))))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function rt(e){let{page:t,matches:n}=e,i=(0,r.A)(e,s),u=oe(),{manifest:c,routeModules:l}=Qe(),{loaderData:f,matches:p}=Ye(),d=a.useMemo((()=>He(t,n,p,c,u,"data")),[t,n,p,c,u]),h=a.useMemo((()=>He(t,n,p,c,u,"assets")),[t,n,p,c,u]),m=a.useMemo((()=>{if(t===u.pathname+u.search+u.hash)return[];let e=new Set,r=!1;if(n.forEach((t=>{var n;let o=c.routes[t.route.id];o&&o.hasLoader&&(!d.some((e=>e.route.id===t.route.id))&&t.route.id in f&&null!==(n=l[t.route.id])&&void 0!==n&&n.shouldRevalidate||o.hasClientLoader?r=!0:e.add(t.route.id))})),0===e.size)return[];let o=qe(t);return r&&e.size>0&&o.searchParams.set("_routes",n.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[o.pathname+o.search]}),[f,u,c,d,n,t,l]),y=a.useMemo((()=>function(e,t){return We(e.map((e=>{let n=t.routes[e.route.id];if(!n)return[];let r=[n.module];return n.imports&&(r=r.concat(n.imports)),r})).flat(1))}(h,c)),[h,c]),v=nt(h);return a.createElement(a.Fragment,null,m.map((e=>a.createElement("link",(0,o.A)({key:e,rel:"prefetch",as:"fetch",href:e},i)))),y.map((e=>a.createElement("link",(0,o.A)({key:e,rel:"modulepreload",href:e},i)))),v.map((e=>{let{key:t,link:n}=e;return a.createElement("link",(0,o.A)({key:t},n))})))}Xe.displayName="FrameworkContext";var ot=!1;function at(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i}=Qe(),{router:s,static:u,staticContext:c}=Ge(),{matches:l}=Ye(),f=Ve(r);i&&(i.didRenderScripts=!0);let p=et(l,null,r);a.useEffect((()=>{ot=!0}),[]);let d=a.useMemo((()=>{var r;let i=c?"window.__reactRouterContext = ".concat(n,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",l=u?"".concat(null!==(r=t.hmr)&&void 0!==r&&r.runtime?"import ".concat(JSON.stringify(t.hmr.runtime),";"):"").concat(f?"":"import ".concat(JSON.stringify(t.url)),";\n").concat(p.map(((e,n)=>"import * as route".concat(n," from ").concat(JSON.stringify(t.routes[e.route.id].module),";"))).join("\n"),"\n  ").concat(f?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let n=new Set(t.state.matches.map((e=>e.route.id))),r=t.state.location.pathname.split("/").filter(Boolean),a=["/"];for(r.pop();r.length>0;)a.push("/".concat(r.join("/"))),r.pop();a.forEach((e=>{let r=E(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let i=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return(0,o.A)((0,o.A)({},e),{},{routes:i})}(t,s),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(p.map(((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t))).join(","),"};\n\nimport(").concat(JSON.stringify(t.entry.module),");"):" ";return a.createElement(a.Fragment,null,a.createElement("script",(0,o.A)((0,o.A)({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:$e(i),type:void 0})),a.createElement("script",(0,o.A)((0,o.A)({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:$e(l),type:"module",async:!0})))}),[]),h=p.map((e=>{let n=t.routes[e.route.id];return n?(n.imports||[]).concat([n.module]):[]})).flat(1),m=ot?[]:t.entry.imports.concat(h);return ot?null:a.createElement(a.Fragment,null,f?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),(y=m,[...new Set(y)]).map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),d);var y}function it(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)}))}}var st="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{st&&(window.__reactRouterVersion="7.0.2")}catch(bt){}function ut(e){let{basename:t,children:n,window:r}=e,o=a.useRef();null==o.current&&(o.current=p({window:r,v5Compat:!0}));let i=o.current,[s,u]=a.useState({action:i.action,location:i.location}),c=a.useCallback((e=>{a.startTransition((()=>u(e)))}),[u]);return a.useLayoutEffect((()=>i.listen(c)),[i,c]),a.createElement(Pe,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}var ct=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lt=a.forwardRef((function(e,t){let n,{onClick:i,discover:s="render",prefetch:c="none",relative:l,reloadDocument:f,replace:p,state:m,target:y,to:b,preventScrollReset:g,viewTransition:E}=e,O=(0,r.A)(e,u),{basename:w}=a.useContext(Q),S="string"===typeof b&&ct.test(b),x=!1;if("string"===typeof b&&S&&(n=b,st))try{let e=new URL(window.location.href),t=b.startsWith("//")?new URL(e.protocol+b):new URL(b),n=D(t.pathname,w);t.origin===e.origin&&null!=n?b=n+t.search+t.hash:x=!0}catch(bt){h(!1,'<Link to="'.concat(b,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}let R=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(re(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Q),{hash:o,pathname:i,search:s}=le(e,{relative:t}),u=i;return"/"!==n&&(u="/"===i?n:F([n,i])),r.createHref({pathname:u,search:s,hash:o})}(b,{relative:l}),[C,P,A]=function(e,t){let n=a.useContext(Xe),[r,o]=a.useState(!1),[i,s]=a.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:l,onMouseLeave:f,onTouchStart:p}=t,d=a.useRef(null);a.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return d.current&&e.observe(d.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),s(!1)};return n?"intent"!==e?[i,d,{}]:[i,d,{onFocus:Ze(u,h),onBlur:Ze(c,m),onMouseEnter:Ze(l,h),onMouseLeave:Ze(f,m),onTouchStart:Ze(p,h)}]:[!1,d,{}]}(c,O),j=function(e){let{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=se(),c=oe(),l=le(e,{relative:i});return a.useCallback((a=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(a,t)){a.preventDefault();let t=void 0!==n?n:v(c)===v(l);u(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:s})}}),[c,u,l,n,r,t,e,o,i,s])}(b,{replace:p,state:m,target:y,preventScrollReset:g,relative:l,viewTransition:E});let T=a.createElement("a",(0,o.A)((0,o.A)((0,o.A)({},O),A),{},{href:n||R,onClick:x||f?i:function(e){i&&i(e),e.defaultPrevented||j(e)},ref:it(t,P),target:y,"data-discover":S||"render"!==s?void 0:"true"}));return C&&!S?a.createElement(a.Fragment,null,T,a.createElement(tt,{page:R})):T}));lt.displayName="Link";var ft=a.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:s="",end:u=!1,style:l,to:f,viewTransition:p,children:h}=e,m=(0,r.A)(e,c),y=le(f,{relative:m.relative}),v=oe(),b=a.useContext(V),{navigator:g,basename:E}=a.useContext(Q),O=null!=b&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.useContext(G);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ht("useViewTransitionState"),o=le(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=D(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=D(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(o.pathname,s)||null!=N(o.pathname,i)}(y)&&!0===p,w=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,S=v.pathname,x=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(S=S.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase()),x&&E&&(x=D(x,E)||x);const R="/"!==w&&w.endsWith("/")?w.length-1:w.length;let C,P=S===w||!u&&S.startsWith(w)&&"/"===S.charAt(R),A=null!=x&&(x===w||!u&&x.startsWith(w)&&"/"===x.charAt(w.length)),j={isActive:P,isPending:A,isTransitioning:O},T=P?n:void 0;C="function"===typeof s?s(j):[s,P?"active":null,A?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let _="function"===typeof l?l(j):l;return a.createElement(lt,(0,o.A)((0,o.A)({},m),{},{"aria-current":T,className:C,ref:t,style:_,to:f,viewTransition:p}),"function"===typeof h?h(j):h)}));ft.displayName="NavLink";var pt=a.forwardRef(((e,t)=>{let{discover:n="render",fetcherKey:i,navigate:s,reloadDocument:u,replace:c,state:f,method:p=Te,action:h,onSubmit:m,relative:y,preventScrollReset:b,viewTransition:g}=e,E=(0,r.A)(e,l),O=vt(),w=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basename:n}=a.useContext(Q),r=a.useContext(ee);d(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s=(0,o.A)({},le(e||".",{relative:t})),u=oe();if(null==e){s.search=u.search;let e=new URLSearchParams(s.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();s.search=n?"?".concat(n):""}}e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(s.pathname="/"===s.pathname?n:F([n,s.pathname]));return v(s)}(h,{relative:y}),S="get"===p.toLowerCase()?"get":"post",x="string"===typeof h&&ct.test(h);return a.createElement("form",(0,o.A)((0,o.A)({ref:t,method:S,action:w,onSubmit:u?m:e=>{if(m&&m(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||p;O(t||e.currentTarget,{fetcherKey:i,method:n,navigate:s,replace:c,state:f,relative:y,preventScrollReset:b,viewTransition:g})}},E),{},{"data-discover":x||"render"!==n?void 0:"true"}))}));function dt(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function ht(e){let t=a.useContext(J);return d(t,dt(e)),t}pt.displayName="Form";var mt=0,yt=()=>"__".concat(String(++mt),"__");function vt(){let{router:e}=ht("useSubmit"),{basename:t}=a.useContext(Q),n=Ee("useRouteId");return a.useCallback((async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:a,method:i,encType:s,formData:u,body:c}=Ie(r,t);if(!1===o.navigate){let t=o.fetcherKey||yt();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}new TextEncoder}}]);