diff --git a/assets/index-922ac690.js b/assets/index-423c6449.js similarity index 60% rename from assets/index-922ac690.js rename to assets/index-423c6449.js index a01d2a2..9e3b26c 100644 --- a/assets/index-922ac690.js +++ b/assets/index-423c6449.js @@ -1,4 +1,4 @@ -function by(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Hy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tp={exports:{}},gl={},np={exports:{}},W={};/** +function By(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Hy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var np={exports:{}},wl={},rp={exports:{}},W={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function by(e,t){for(var n=0;n>>1,le=L[Y];if(0>>1;Yo(br,U))Ato(de,br)?(L[Y]=de,L[At]=U,Y=At):(L[Y]=br,L[Mt]=U,Y=Mt);else if(Ato(de,U))L[Y]=de,L[At]=U,Y=At;else break e}}return $}function o(L,$){var U=L.sortIndex-$.sortIndex;return U!==0?U:L.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,f=null,m=3,g=!1,p=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(L){for(var $=n(s);$!==null;){if($.callback===null)r(s);else if($.startTime<=L)r(s),$.sortIndex=$.expirationTime,t(u,$);else break;$=n(s)}}function y(L){if(v=!1,w(L),!p)if(n(u)!==null)p=!0,ge(x);else{var $=n(s);$!==null&&Te(y,$.startTime-L)}}function x(L,$){p=!1,v&&(v=!1,d(O),O=-1),g=!0;var U=m;try{for(w($),f=n(u);f!==null&&(!(f.expirationTime>$)||L&&!X());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,m=f.priorityLevel;var le=Y(f.expirationTime<=$);$=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(u)&&r(u),w($)}else r(u);f=n(u)}if(f!==null)var Zt=!0;else{var Mt=n(s);Mt!==null&&Te(y,Mt.startTime-$),Zt=!1}return Zt}finally{f=null,m=U,g=!1}}var R=!1,_=null,O=-1,F=5,A=-1;function X(){return!(e.unstable_now()-AL||125Y?(L.sortIndex=U,t(s,L),n(u)===null&&L===n(s)&&(v?(d(O),O=-1):v=!0,Te(y,U-Y))):(L.sortIndex=le,t(u,L),p||g||(p=!0,ge(x))),L},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(L){var $=m;return function(){var U=m;m=$;try{return L.apply(this,arguments)}finally{m=U}}}})(pp);dp.exports=pp;var dv=dp.exports;/** + */(function(e){function t(L,$){var U=L.length;L.push($);e:for(;0>>1,le=L[Y];if(0>>1;Yo(Br,U))$to(de,Br)?(L[Y]=de,L[$t]=U,Y=$t):(L[Y]=Br,L[At]=U,Y=At);else if($to(de,U))L[Y]=de,L[$t]=U,Y=$t;else break e}}return $}function o(L,$){var U=L.sortIndex-$.sortIndex;return U!==0?U:L.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,f=null,m=3,g=!1,p=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(L){for(var $=n(s);$!==null;){if($.callback===null)r(s);else if($.startTime<=L)r(s),$.sortIndex=$.expirationTime,t(u,$);else break;$=n(s)}}function y(L){if(v=!1,w(L),!p)if(n(u)!==null)p=!0,ge(x);else{var $=n(s);$!==null&&Te(y,$.startTime-L)}}function x(L,$){p=!1,v&&(v=!1,d(O),O=-1),g=!0;var U=m;try{for(w($),f=n(u);f!==null&&(!(f.expirationTime>$)||L&&!X());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,m=f.priorityLevel;var le=Y(f.expirationTime<=$);$=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(u)&&r(u),w($)}else r(u);f=n(u)}if(f!==null)var Zt=!0;else{var At=n(s);At!==null&&Te(y,At.startTime-$),Zt=!1}return Zt}finally{f=null,m=U,g=!1}}var R=!1,_=null,O=-1,F=5,A=-1;function X(){return!(e.unstable_now()-AL||125Y?(L.sortIndex=U,t(s,L),n(u)===null&&L===n(s)&&(v?(d(O),O=-1):v=!0,Te(y,U-Y))):(L.sortIndex=le,t(u,L),p||g||(p=!0,ge(x))),L},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(L){var $=m;return function(){var U=m;m=$;try{return L.apply(this,arguments)}finally{m=U}}}})(hp);pp.exports=hp;var dv=pp.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function by(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),du=Object.prototype.hasOwnProperty,pv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Jc={},Xc={};function hv(e){return du.call(Xc,e)?!0:du.call(Jc,e)?!1:pv.test(e)?Xc[e]=!0:(Jc[e]=!0,!1)}function mv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yv(e,t,n,r){if(t===null||typeof t>"u"||mv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ze[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cs=/[\-:]([a-z])/g;function ks(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cs,ks);ze[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cs,ks);ze[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cs,ks);ze[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ps(e,t,n,r){var o=ze.hasOwnProperty(t)?ze[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),du=Object.prototype.hasOwnProperty,pv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xc={},Gc={};function hv(e){return du.call(Gc,e)?!0:du.call(Xc,e)?!1:pv.test(e)?Gc[e]=!0:(Xc[e]=!0,!1)}function mv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yv(e,t,n,r){if(t===null||typeof t>"u"||mv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ze[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cs=/[\-:]([a-z])/g;function ks(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cs,ks);ze[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cs,ks);ze[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cs,ks);ze[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ps(e,t,n,r){var o=ze.hasOwnProperty(t)?ze[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ca=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lo(e):""}function vv(e){switch(e.tag){case 5:return lo(e.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 2:case 15:return e=ka(e.type,!1),e;case 11:return e=ka(e.type.render,!1),e;case 1:return e=ka(e.type,!0),e;default:return""}}function yu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rr:return"Fragment";case nr:return"Portal";case pu:return"Profiler";case Rs:return"StrictMode";case hu:return"Suspense";case mu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vp:return(e.displayName||"Context")+".Consumer";case yp:return(e._context.displayName||"Context")+".Provider";case _s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ts:return t=e.displayName||null,t!==null?t:yu(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return yu(e(t))}catch{}}return null}function gv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yu(t);case 8:return t===Rs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wv(e){var t=wp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oi(e){e._valueTracker||(e._valueTracker=wv(e))}function Sp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vu(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ep(e,t){t=t.checked,t!=null&&Ps(e,"checked",t,!1)}function gu(e,t){Ep(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wu(e,t.type,n):t.hasOwnProperty("defaultValue")&&wu(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wu(e,t,n){(t!=="number"||Fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ao=Array.isArray;function yr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sv=["Webkit","ms","Moz","O"];Object.keys(fo).forEach(function(e){Sv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fo[t]=fo[e]})});function Pp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fo.hasOwnProperty(e)&&fo[e]?(""+t).trim():t+"px"}function Rp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Pp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ev=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xu(e,t){if(t){if(Ev[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ku=null;function Os(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pu=null,vr=null,gr=null;function nf(e){if(e=qo(e)){if(typeof Pu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Cl(t),Pu(e.stateNode,e.type,t))}}function _p(e){vr?gr?gr.push(e):gr=[e]:vr=e}function Tp(){if(vr){var e=vr,t=gr;if(gr=vr=null,nf(e),t)for(e=0;e>>=0,e===0?32:31-(jv(e)/Dv|0)|0}var li=64,ai=4194304;function uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=uo(a):(i&=l,i!==0&&(r=uo(i)))}else l=n&~o,l!==0?r=uo(l):i!==0&&(r=uo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ko(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function zv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ho),df=String.fromCharCode(32),pf=!1;function qp(e,t){switch(e){case"keyup":return fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var or=!1;function pg(e,t){switch(e){case"compositionend":return Jp(t);case"keypress":return t.which!==32?null:(pf=!0,df);case"textInput":return e=t.data,e===df&&pf?null:e;default:return null}}function hg(e,t){if(or)return e==="compositionend"||!zs&&qp(e,t)?(e=Kp(),Ci=Ms=cn=null,or=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vf(n)}}function Zp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eh(){for(var e=window,t=Fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cg(e){var t=eh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zp(n.ownerDocument.documentElement,n)){if(r!==null&&Is(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=gf(n,i);var l=gf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ir=null,Lu=null,yo=null,ju=!1;function wf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ju||ir==null||ir!==Fi(r)||(r=ir,"selectionStart"in r&&Is(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yo&&Oo(yo,r)||(yo=r,r=Ki(Lu,"onSelect"),0ur||(e.current=Iu[ur],Iu[ur]=null,ur--)}function ae(e,t){ur++,Iu[ur]=e.current,e.current=t}var Pn={},be=On(Pn),Je=On(!1),Vn=Pn;function Rr(e,t){var n=e.type.contextTypes;if(!n)return Pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function qi(){se(Je),se(be)}function Rf(e,t,n){if(be.current!==Pn)throw Error(N(168));ae(be,t),ae(Je,n)}function sh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,gv(e)||"Unknown",o));return ve({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pn,Vn=be.current,ae(be,e),ae(Je,Je.current),!0}function _f(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=sh(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,se(Je),se(be),ae(be,e)):se(Je),ae(Je,n)}var Ft=null,kl=!1,Ia=!1;function ch(e){Ft===null?Ft=[e]:Ft.push(e)}function Ag(e){kl=!0,ch(e)}function Nn(){if(!Ia&&Ft!==null){Ia=!0;var e=0,t=Z;try{var n=Ft;for(Z=1;e>=l,o-=l,Ut=1<<32-Ct(t)+o|n<O?(F=_,_=null):F=_.sibling;var A=m(d,_,w[O],y);if(A===null){_===null&&(_=F);break}e&&_&&A.alternate===null&&t(d,_),h=i(A,h,O),R===null?x=A:R.sibling=A,R=A,_=F}if(O===w.length)return n(d,_),fe&&Mn(d,O),x;if(_===null){for(;OO?(F=_,_=null):F=_.sibling;var X=m(d,_,A.value,y);if(X===null){_===null&&(_=F);break}e&&_&&X.alternate===null&&t(d,_),h=i(X,h,O),R===null?x=X:R.sibling=X,R=X,_=F}if(A.done)return n(d,_),fe&&Mn(d,O),x;if(_===null){for(;!A.done;O++,A=w.next())A=f(d,A.value,y),A!==null&&(h=i(A,h,O),R===null?x=A:R.sibling=A,R=A);return fe&&Mn(d,O),x}for(_=r(d,_);!A.done;O++,A=w.next())A=g(_,d,O,A.value,y),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?O:A.key),h=i(A,h,O),R===null?x=A:R.sibling=A,R=A);return e&&_.forEach(function(ie){return t(d,ie)}),fe&&Mn(d,O),x}function S(d,h,w,y){if(typeof w=="object"&&w!==null&&w.type===rr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ri:e:{for(var x=w.key,R=h;R!==null;){if(R.key===x){if(x=w.type,x===rr){if(R.tag===7){n(d,R.sibling),h=o(R,w.props.children),h.return=d,d=h;break e}}else if(R.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===on&&Mf(x)===R.type){n(d,R.sibling),h=o(R,w.props),h.ref=Yr(d,R,w),h.return=d,d=h;break e}n(d,R);break}else t(d,R);R=R.sibling}w.type===rr?(h=Hn(w.props.children,d.mode,y,w.key),h.return=d,d=h):(y=Li(w.type,w.key,w.props,null,d.mode,y),y.ref=Yr(d,h,w),y.return=d,d=y)}return l(d);case nr:e:{for(R=w.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){n(d,h.sibling),h=o(h,w.children||[]),h.return=d,d=h;break e}else{n(d,h);break}else t(d,h);h=h.sibling}h=Ka(w,d.mode,y),h.return=d,d=h}return l(d);case on:return R=w._init,S(d,h,R(w._payload),y)}if(ao(w))return p(d,h,w,y);if(Qr(w))return v(d,h,w,y);hi(d,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,h!==null&&h.tag===6?(n(d,h.sibling),h=o(h,w),h.return=d,d=h):(n(d,h),h=Wa(w,d.mode,y),h.return=d,d=h),l(d)):n(d,h)}return S}var Tr=gh(!0),wh=gh(!1),Jo={},Lt=On(Jo),Do=On(Jo),Mo=On(Jo);function Fn(e){if(e===Jo)throw Error(N(174));return e}function Qs(e,t){switch(ae(Mo,t),ae(Do,e),ae(Lt,Jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eu(t,e)}se(Lt),ae(Lt,t)}function Or(){se(Lt),se(Do),se(Mo)}function Sh(e){Fn(Mo.current);var t=Fn(Lt.current),n=Eu(t,e.type);t!==n&&(ae(Do,e),ae(Lt,n))}function qs(e){Do.current===e&&(se(Lt),se(Do))}var me=On(0);function tl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=[];function Js(){for(var e=0;en?n:4,e(!0);var r=Ua.transition;Ua.transition={};try{e(!1),t()}finally{Z=n,Ua.transition=r}}function $h(){return ht().memoizedState}function Fg(e,t,n){var r=wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zh(e))Ih(t,n);else if(n=hh(e,t,n,r),n!==null){var o=Ve();kt(n,e,r,o),Fh(n,t,r)}}function Ug(e,t,n){var r=wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zh(e))Ih(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Pt(a,l)){var u=t.interleaved;u===null?(o.next=o,Ws(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=hh(e,t,o,r),n!==null&&(o=Ve(),kt(n,e,r,o),Fh(n,t,r))}}function zh(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Ih(e,t){vo=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}var rl={readContext:pt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},Bg={readContext:pt,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:$f,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_i(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){return _i(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fg.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:Af,useDebugValue:ec,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=Af(!1),t=e[0];return e=Ig.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=_t();if(fe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),De===null)throw Error(N(349));Kn&30||Ch(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,$f(Ph.bind(null,r,i,e),[e]),r.flags|=2048,zo(9,kh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_t(),t=De.identifierPrefix;if(fe){var n=Bt,r=Ut;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ao++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ca=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lo(e):""}function vv(e){switch(e.tag){case 5:return lo(e.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 2:case 15:return e=ka(e.type,!1),e;case 11:return e=ka(e.type.render,!1),e;case 1:return e=ka(e.type,!0),e;default:return""}}function yu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rr:return"Fragment";case nr:return"Portal";case pu:return"Profiler";case Rs:return"StrictMode";case hu:return"Suspense";case mu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gp:return(e.displayName||"Context")+".Consumer";case vp:return(e._context.displayName||"Context")+".Provider";case _s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ts:return t=e.displayName||null,t!==null?t:yu(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return yu(e(t))}catch{}}return null}function gv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yu(t);case 8:return t===Rs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wv(e){var t=Sp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){e._valueTracker||(e._valueTracker=wv(e))}function Ep(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vu(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xp(e,t){t=t.checked,t!=null&&Ps(e,"checked",t,!1)}function gu(e,t){xp(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wu(e,t.type,n):t.hasOwnProperty("defaultValue")&&wu(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ef(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wu(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ao=Array.isArray;function yr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sv=["Webkit","ms","Moz","O"];Object.keys(fo).forEach(function(e){Sv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fo[t]=fo[e]})});function Rp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fo.hasOwnProperty(e)&&fo[e]?(""+t).trim():t+"px"}function _p(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Rp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ev=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xu(e,t){if(t){if(Ev[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ku=null;function Os(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pu=null,vr=null,gr=null;function rf(e){if(e=qo(e)){if(typeof Pu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=kl(t),Pu(e.stateNode,e.type,t))}}function Tp(e){vr?gr?gr.push(e):gr=[e]:vr=e}function Op(){if(vr){var e=vr,t=gr;if(gr=vr=null,rf(e),t)for(e=0;e>>=0,e===0?32:31-(jv(e)/Dv|0)|0}var ai=64,ui=4194304;function uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=uo(a):(i&=l,i!==0&&(r=uo(i)))}else l=n&~o,l!==0?r=uo(l):i!==0&&(r=uo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ko(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function zv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ho),pf=String.fromCharCode(32),hf=!1;function Jp(e,t){switch(e){case"keyup":return fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var or=!1;function pg(e,t){switch(e){case"compositionend":return Xp(t);case"keypress":return t.which!==32?null:(hf=!0,pf);case"textInput":return e=t.data,e===pf&&hf?null:e;default:return null}}function hg(e,t){if(or)return e==="compositionend"||!zs&&Jp(e,t)?(e=Qp(),ki=Ms=cn=null,or=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gf(n)}}function eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function th(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cg(e){var t=th(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eh(n.ownerDocument.documentElement,n)){if(r!==null&&Is(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=wf(n,i);var l=wf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ir=null,Lu=null,yo=null,ju=!1;function Sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ju||ir==null||ir!==Ui(r)||(r=ir,"selectionStart"in r&&Is(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yo&&Oo(yo,r)||(yo=r,r=Qi(Lu,"onSelect"),0ur||(e.current=Iu[ur],Iu[ur]=null,ur--)}function ae(e,t){ur++,Iu[ur]=e.current,e.current=t}var Pn={},Be=Nn(Pn),Je=Nn(!1),Wn=Pn;function Rr(e,t){var n=e.type.contextTypes;if(!n)return Pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function Ji(){se(Je),se(Be)}function _f(e,t,n){if(Be.current!==Pn)throw Error(N(168));ae(Be,t),ae(Je,n)}function ch(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,gv(e)||"Unknown",o));return ve({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pn,Wn=Be.current,ae(Be,e),ae(Je,Je.current),!0}function Tf(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=ch(e,t,Wn),r.__reactInternalMemoizedMergedChildContext=e,se(Je),se(Be),ae(Be,e)):se(Je),ae(Je,n)}var Ut=null,Pl=!1,Ia=!1;function fh(e){Ut===null?Ut=[e]:Ut.push(e)}function Ag(e){Pl=!0,fh(e)}function Ln(){if(!Ia&&Ut!==null){Ia=!0;var e=0,t=Z;try{var n=Ut;for(Z=1;e>=l,o-=l,bt=1<<32-Ct(t)+o|n<O?(F=_,_=null):F=_.sibling;var A=m(d,_,w[O],y);if(A===null){_===null&&(_=F);break}e&&_&&A.alternate===null&&t(d,_),h=i(A,h,O),R===null?x=A:R.sibling=A,R=A,_=F}if(O===w.length)return n(d,_),fe&&An(d,O),x;if(_===null){for(;OO?(F=_,_=null):F=_.sibling;var X=m(d,_,A.value,y);if(X===null){_===null&&(_=F);break}e&&_&&X.alternate===null&&t(d,_),h=i(X,h,O),R===null?x=X:R.sibling=X,R=X,_=F}if(A.done)return n(d,_),fe&&An(d,O),x;if(_===null){for(;!A.done;O++,A=w.next())A=f(d,A.value,y),A!==null&&(h=i(A,h,O),R===null?x=A:R.sibling=A,R=A);return fe&&An(d,O),x}for(_=r(d,_);!A.done;O++,A=w.next())A=g(_,d,O,A.value,y),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?O:A.key),h=i(A,h,O),R===null?x=A:R.sibling=A,R=A);return e&&_.forEach(function(ie){return t(d,ie)}),fe&&An(d,O),x}function S(d,h,w,y){if(typeof w=="object"&&w!==null&&w.type===rr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case oi:e:{for(var x=w.key,R=h;R!==null;){if(R.key===x){if(x=w.type,x===rr){if(R.tag===7){n(d,R.sibling),h=o(R,w.props.children),h.return=d,d=h;break e}}else if(R.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===on&&Af(x)===R.type){n(d,R.sibling),h=o(R,w.props),h.ref=Yr(d,R,w),h.return=d,d=h;break e}n(d,R);break}else t(d,R);R=R.sibling}w.type===rr?(h=Vn(w.props.children,d.mode,y,w.key),h.return=d,d=h):(y=ji(w.type,w.key,w.props,null,d.mode,y),y.ref=Yr(d,h,w),y.return=d,d=y)}return l(d);case nr:e:{for(R=w.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){n(d,h.sibling),h=o(h,w.children||[]),h.return=d,d=h;break e}else{n(d,h);break}else t(d,h);h=h.sibling}h=Ka(w,d.mode,y),h.return=d,d=h}return l(d);case on:return R=w._init,S(d,h,R(w._payload),y)}if(ao(w))return p(d,h,w,y);if(Qr(w))return v(d,h,w,y);mi(d,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,h!==null&&h.tag===6?(n(d,h.sibling),h=o(h,w),h.return=d,d=h):(n(d,h),h=Wa(w,d.mode,y),h.return=d,d=h),l(d)):n(d,h)}return S}var Tr=wh(!0),Sh=wh(!1),Jo={},Lt=Nn(Jo),Do=Nn(Jo),Mo=Nn(Jo);function Un(e){if(e===Jo)throw Error(N(174));return e}function Qs(e,t){switch(ae(Mo,t),ae(Do,e),ae(Lt,Jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eu(t,e)}se(Lt),ae(Lt,t)}function Or(){se(Lt),se(Do),se(Mo)}function Eh(e){Un(Mo.current);var t=Un(Lt.current),n=Eu(t,e.type);t!==n&&(ae(Do,e),ae(Lt,n))}function qs(e){Do.current===e&&(se(Lt),se(Do))}var me=Nn(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=[];function Js(){for(var e=0;en?n:4,e(!0);var r=Ua.transition;Ua.transition={};try{e(!1),t()}finally{Z=n,Ua.transition=r}}function zh(){return ht().memoizedState}function Fg(e,t,n){var r=wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ih(e))Fh(t,n);else if(n=mh(e,t,n,r),n!==null){var o=Ve();kt(n,e,r,o),Uh(n,t,r)}}function Ug(e,t,n){var r=wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))Fh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Pt(a,l)){var u=t.interleaved;u===null?(o.next=o,Ws(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=mh(e,t,o,r),n!==null&&(o=Ve(),kt(n,e,r,o),Uh(n,t,r))}}function Ih(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Fh(e,t){vo=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}var ol={readContext:pt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},bg={readContext:pt,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:zf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4194308,4,jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fg.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:$f,useDebugValue:ec,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=$f(!1),t=e[0];return e=Ig.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=_t();if(fe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),De===null)throw Error(N(349));Qn&30||kh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zf(Rh.bind(null,r,i,e),[e]),r.flags|=2048,zo(9,Ph.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_t(),t=De.identifierPrefix;if(fe){var n=Bt,r=bt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ao++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Tt]=t,e[jo]=r,qh(e,t,!1,!1),t.stateNode=e;e:{switch(l=Cu(n,r),n){case"dialog":ue("cancel",e),ue("close",e),o=r;break;case"iframe":case"object":case"embed":ue("load",e),o=r;break;case"video":case"audio":for(o=0;oLr&&(t.flags|=128,r=!0,Zr(i,!1),t.lanes=4194304)}else{if(!r)if(e=tl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!fe)return Fe(t),null}else 2*ke()-i.renderingStartTime>Lr&&n!==1073741824&&(t.flags|=128,r=!0,Zr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=me.current,ae(me,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return lc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Jg(e,t){switch(Us(t),t.tag){case 1:return Xe(t.type)&&qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),se(Je),se(be),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qs(t),null;case 13:if(se(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(me),null;case 4:return Or(),null;case 10:return Vs(t.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var yi=!1,Be=!1,Xg=typeof WeakSet=="function"?WeakSet:Set,M=null;function dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Xu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Wf=!1;function Gg(e,t){if(Du=Vi,e=eh(),Is(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(a=l+o),f!==i||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++s===o&&(a=l),m===i&&++c===r&&(u=l),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mu={focusedElem:e,selectionRange:n},Vi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,S=p.memoizedState,d=t.stateNode,h=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:gt(t.type,v),S);d.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(y){we(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return p=Wf,Wf=!1,p}function go(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xu(t,n,i)}o=o.next}while(o!==r)}}function _l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gh(e){var t=e.alternate;t!==null&&(e.alternate=null,Gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[jo],delete t[zu],delete t[Dg],delete t[Mg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Yh(e){return e.tag===5||e.tag===3||e.tag===4}function Kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}function Zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zu(e,t,n),e=e.sibling;e!==null;)Zu(e,t,n),e=e.sibling}var Ae=null,wt=!1;function nn(e,t,n){for(n=n.child;n!==null;)Zh(e,t,n),n=n.sibling}function Zh(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:Be||dr(n,t);case 6:var r=Ae,o=wt;Ae=null,nn(e,t,n),Ae=r,wt=o,Ae!==null&&(wt?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(wt?(e=Ae,n=n.stateNode,e.nodeType===8?za(e.parentNode,n):e.nodeType===1&&za(e,n),_o(e)):za(Ae,n.stateNode));break;case 4:r=Ae,o=wt,Ae=n.stateNode.containerInfo,wt=!0,nn(e,t,n),Ae=r,wt=o;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Xu(n,t,l),o=o.next}while(o!==r)}nn(e,t,n);break;case 1:if(!Be&&(dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,nn(e,t,n),Be=r):nn(e,t,n);break;default:nn(e,t,n)}}function Qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xg),t.forEach(function(r){var o=l0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zg(r/1960))-r,10e?16:e,fn===null)var r=!1;else{if(e=fn,fn=null,ll=0,J&6)throw Error(N(331));var o=J;for(J|=4,M=e.current;M!==null;){var i=M,l=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uke()-oc?bn(e,0):rc|=n),Ge(e,t)}function am(e,t){t===0&&(e.mode&1?(t=ai,ai<<=1,!(ai&130023424)&&(ai=4194304)):t=1);var n=Ve();e=Qt(e,t),e!==null&&(Ko(e,t,n),Ge(e,n))}function i0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),am(e,n)}function l0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),am(e,n)}var um;um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Qg(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&fh(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ti(e,t),e=t.pendingProps;var o=Rr(t,be.current);Sr(t,n),o=Gs(null,t,r,e,o,n);var i=Ys();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(i=!0,Ji(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ks(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Hu(t,r,e,n),t=Ku(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Fs(t),He(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ti(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=u0(r),e=gt(r,e),o){case 0:t=Wu(null,t,r,e,n);break e;case 1:t=bf(null,t,r,e,n);break e;case 11:t=Uf(null,t,r,e,n);break e;case 14:t=Bf(null,t,r,gt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Wu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),bf(e,t,r,o,n);case 3:e:{if(Wh(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,mh(e,t),el(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Nr(Error(N(423)),t),t=Hf(e,t,r,n,o);break e}else if(r!==o){o=Nr(Error(N(424)),t),t=Hf(e,t,r,n,o);break e}else for(Ze=yn(t.stateNode.containerInfo.firstChild),tt=t,fe=!0,Et=null,n=wh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_r(),r===o){t=qt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return Sh(t),e===null&&Uu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Au(r,o)?l=null:i!==null&&Au(r,i)&&(t.flags|=32),Vh(e,t),He(e,t,l,n),t.child;case 6:return e===null&&Uu(t),null;case 13:return Kh(e,t,n);case 4:return Qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tr(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Uf(e,t,r,o,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ae(Yi,r._currentValue),r._currentValue=l,i!==null)if(Pt(i.value,l)){if(i.children===o.children&&!Je.current){t=qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=bt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Bu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(N(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Bu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}He(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sr(t,n),o=pt(o),r=r(o),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Bf(e,t,r,o,n);case 15:return bh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Ti(e,t),t.tag=1,Xe(r)?(e=!0,Ji(t)):e=!1,Sr(t,n),vh(t,r,o),Hu(t,r,o,n),Ku(null,t,r,!0,e,n);case 19:return Qh(e,t,n);case 22:return Hh(e,t,n)}throw Error(N(156,t.tag))};function sm(e,t){return Ap(e,t)}function a0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new a0(e,t,n,r)}function uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u0(e){if(typeof e=="function")return uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_s)return 11;if(e===Ts)return 14}return 2}function Sn(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Li(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")uc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case rr:return Hn(n.children,o,i,t);case Rs:l=8,o|=8;break;case pu:return e=ct(12,n,t,o|2),e.elementType=pu,e.lanes=i,e;case hu:return e=ct(13,n,t,o),e.elementType=hu,e.lanes=i,e;case mu:return e=ct(19,n,t,o),e.elementType=mu,e.lanes=i,e;case gp:return Ol(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yp:l=10;break e;case vp:l=9;break e;case _s:l=11;break e;case Ts:l=14;break e;case on:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=ct(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=ct(22,e,r,t),e.elementType=gp,e.lanes=n,e.stateNode={isHidden:!1},e}function Wa(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Ka(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function s0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sc(e,t,n,r,o,i,l,a,u){return e=new s0(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ct(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(i),e}function c0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pm)}catch(e){console.error(e)}}pm(),fp.exports=ot;var hm=fp.exports,td=hm;fu.createRoot=td.createRoot,fu.hydrateRoot=td.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ha(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vg=typeof WeakMap=="function"?WeakMap:Map;function bh(e,t,n){n=Ht(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,es=r),Vu(e,t)},n}function Bh(e,t,n){n=Ht(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Vu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Vu(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function If(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vg;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=o0.bind(null,e,t,n),t.then(e,e))}function Ff(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Uf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ht(-1,1),t.tag=2,vn(n,t,1))),n.lanes|=1),e)}var Wg=Gt.ReactCurrentOwner,qe=!1;function He(e,t,n,r){t.child=e===null?Sh(t,null,n,r):Tr(t,e.child,n,r)}function bf(e,t,n,r,o){n=n.render;var i=t.ref;return Sr(t,o),r=Gs(e,t,n,r,i,o),n=Ys(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jt(e,t,o)):(fe&&n&&Fs(t),t.flags|=1,He(e,t,r,o),t.child)}function Bf(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!uc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Hh(e,t,i,r,o)):(e=ji(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Oo,n(l,r)&&e.ref===t.ref)return Jt(e,t,o)}return t.flags|=1,e=Sn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Hh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Oo(i,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,Jt(e,t,o)}return Wu(e,t,n,r,o)}function Vh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(pr,Ye),Ye|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(pr,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ae(pr,Ye),Ye|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ae(pr,Ye),Ye|=r;return He(e,t,o,n),t.child}function Wh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wu(e,t,n,r,o){var i=Xe(n)?Wn:Be.current;return i=Rr(t,i),Sr(t,o),n=Gs(e,t,n,r,i,o),r=Ys(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jt(e,t,o)):(fe&&r&&Fs(t),t.flags|=1,He(e,t,n,o),t.child)}function Hf(e,t,n,r,o){if(Xe(n)){var i=!0;Xi(t)}else i=!1;if(Sr(t,o),t.stateNode===null)Oi(e,t),gh(t,n,r),Hu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=pt(s):(s=Xe(n)?Wn:Be.current,s=Rr(t,s));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&Mf(t,l,r,s),ln=!1;var m=t.memoizedState;l.state=m,tl(t,r,l,o),u=t.memoizedState,a!==r||m!==u||Je.current||ln?(typeof c=="function"&&(Bu(t,n,c,r),u=t.memoizedState),(a=ln||Df(t,n,a,r,m,u,s))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,yh(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:gt(t.type,a),l.props=s,f=t.pendingProps,m=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=pt(u):(u=Xe(n)?Wn:Be.current,u=Rr(t,u));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==f||m!==u)&&Mf(t,l,r,u),ln=!1,m=t.memoizedState,l.state=m,tl(t,r,l,o);var p=t.memoizedState;a!==f||m!==p||Je.current||ln?(typeof g=="function"&&(Bu(t,n,g,r),p=t.memoizedState),(s=ln||Df(t,n,s,r,m,p,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,p,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,p,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),l.props=r,l.state=p,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Ku(e,t,n,r,i,o)}function Ku(e,t,n,r,o,i){Wh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Tf(t,n,!1),Jt(e,t,i);r=t.stateNode,Wg.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Tr(t,e.child,null,i),t.child=Tr(t,null,a,i)):He(e,t,a,i),t.memoizedState=r.state,o&&Tf(t,n,!0),t.child}function Kh(e){var t=e.stateNode;t.pendingContext?_f(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_f(e,t.context,!1),Qs(e,t.containerInfo)}function Vf(e,t,n,r,o){return _r(),bs(o),t.flags|=256,He(e,t,n,r),t.child}var Qu={dehydrated:null,treeContext:null,retryLane:0};function qu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qh(e,t,n){var r=t.pendingProps,o=me.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ae(me,o&1),e===null)return Uu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Nl(l,r,0,null),e=Vn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=qu(n),t.memoizedState=Qu,e):tc(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Kg(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Sn(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Sn(a,i):(i=Vn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?qu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Qu,r}return i=e.child,e=i.sibling,r=Sn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function tc(e,t){return t=Nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yi(e,t,n,r){return r!==null&&bs(r),Tr(t,e.child,null,n),e=tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kg(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Ha(Error(N(422))),yi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Nl({mode:"visible",children:r.children},o,0,null),i=Vn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Tr(t,e.child,null,l),t.child.memoizedState=qu(l),t.memoizedState=Qu,i);if(!(t.mode&1))return yi(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(N(419)),r=Ha(i,r,void 0),yi(e,t,l,r)}if(a=(l&e.childLanes)!==0,qe||a){if(r=De,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,qt(e,o),kt(r,e,o,-1))}return ac(),r=Ha(Error(N(421))),yi(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=i0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ze=yn(o.nextSibling),tt=t,fe=!0,Et=null,e!==null&&(ut[st++]=bt,ut[st++]=Bt,ut[st++]=Kn,bt=e.id,Bt=e.overflow,Kn=t),t=tc(t,r.children),t.flags|=4096,t)}function Wf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bu(e.return,t,n)}function Va(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(He(e,t,r.children,n),r=me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wf(e,n,t);else if(e.tag===19)Wf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ae(me,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Va(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Va(t,!0,n,null,i);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qg(e,t,n){switch(t.tag){case 3:Kh(t),_r();break;case 5:Eh(t);break;case 1:Xe(t.type)&&Xi(t);break;case 4:Qs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ae(Zi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?Qh(e,t,n):(ae(me,me.current&1),e=Jt(e,t,n),e!==null?e.sibling:null);ae(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ae(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,Vh(e,t,n)}return Jt(e,t,n)}var Jh,Ju,Xh,Gh;Jh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ju=function(){};Xh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Un(Lt.current);var i=null;switch(n){case"input":o=vu(e,o),r=vu(e,r),i=[];break;case"select":o=ve({},o,{value:void 0}),r=ve({},r,{value:void 0}),i=[];break;case"textarea":o=Su(e,o),r=Su(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qi)}xu(n,r);var l;n=null;for(s in o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var a=o[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(xo.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var u=r[s];if(a=o!=null?o[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(xo.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&ue("scroll",e),i||a===u||(i=[])):(i=i||[]).push(s,u))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}};Gh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Zr(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qg(e,t,n){var r=t.pendingProps;switch(Us(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Xe(t.type)&&Ji(),Fe(t),null;case 3:return r=t.stateNode,Or(),se(Je),se(Be),Js(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Et!==null&&(rs(Et),Et=null))),Ju(e,t),Fe(t),null;case 5:qs(t);var o=Un(Mo.current);if(n=t.type,e!==null&&t.stateNode!=null)Xh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Fe(t),null}if(e=Un(Lt.current),hi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Tt]=t,r[jo]=i,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Tt]=t,e[jo]=r,Jh(e,t,!1,!1),t.stateNode=e;e:{switch(l=Cu(n,r),n){case"dialog":ue("cancel",e),ue("close",e),o=r;break;case"iframe":case"object":case"embed":ue("load",e),o=r;break;case"video":case"audio":for(o=0;oLr&&(t.flags|=128,r=!0,Zr(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!fe)return Fe(t),null}else 2*ke()-i.renderingStartTime>Lr&&n!==1073741824&&(t.flags|=128,r=!0,Zr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=me.current,ae(me,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return lc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Jg(e,t){switch(Us(t),t.tag){case 1:return Xe(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),se(Je),se(Be),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qs(t),null;case 13:if(se(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(me),null;case 4:return Or(),null;case 10:return Vs(t.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var vi=!1,be=!1,Xg=typeof WeakSet=="function"?WeakSet:Set,M=null;function dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Xu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Kf=!1;function Gg(e,t){if(Du=Wi,e=th(),Is(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(a=l+o),f!==i||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++s===o&&(a=l),m===i&&++c===r&&(u=l),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mu={focusedElem:e,selectionRange:n},Wi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,S=p.memoizedState,d=t.stateNode,h=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:gt(t.type,v),S);d.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(y){we(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return p=Kf,Kf=!1,p}function go(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xu(t,n,i)}o=o.next}while(o!==r)}}function Tl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yh(e){var t=e.alternate;t!==null&&(e.alternate=null,Yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[jo],delete t[zu],delete t[Dg],delete t[Mg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zh(e){return e.tag===5||e.tag===3||e.tag===4}function Qf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qi));else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}function Zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zu(e,t,n),e=e.sibling;e!==null;)Zu(e,t,n),e=e.sibling}var Ae=null,wt=!1;function nn(e,t,n){for(n=n.child;n!==null;)em(e,t,n),n=n.sibling}function em(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:be||dr(n,t);case 6:var r=Ae,o=wt;Ae=null,nn(e,t,n),Ae=r,wt=o,Ae!==null&&(wt?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(wt?(e=Ae,n=n.stateNode,e.nodeType===8?za(e.parentNode,n):e.nodeType===1&&za(e,n),_o(e)):za(Ae,n.stateNode));break;case 4:r=Ae,o=wt,Ae=n.stateNode.containerInfo,wt=!0,nn(e,t,n),Ae=r,wt=o;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Xu(n,t,l),o=o.next}while(o!==r)}nn(e,t,n);break;case 1:if(!be&&(dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,nn(e,t,n),be=r):nn(e,t,n);break;default:nn(e,t,n)}}function qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xg),t.forEach(function(r){var o=l0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zg(r/1960))-r,10e?16:e,fn===null)var r=!1;else{if(e=fn,fn=null,al=0,J&6)throw Error(N(331));var o=J;for(J|=4,M=e.current;M!==null;){var i=M,l=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uke()-oc?Hn(e,0):rc|=n),Ge(e,t)}function um(e,t){t===0&&(e.mode&1?(t=ui,ui<<=1,!(ui&130023424)&&(ui=4194304)):t=1);var n=Ve();e=qt(e,t),e!==null&&(Ko(e,t,n),Ge(e,n))}function i0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),um(e,n)}function l0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),um(e,n)}var sm;sm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Qg(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&dh(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var o=Rr(t,Be.current);Sr(t,n),o=Gs(null,t,r,e,o,n);var i=Ys();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ks(t),o.updater=Rl,t.stateNode=o,o._reactInternals=t,Hu(t,r,e,n),t=Ku(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Fs(t),He(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=u0(r),e=gt(r,e),o){case 0:t=Wu(null,t,r,e,n);break e;case 1:t=Hf(null,t,r,e,n);break e;case 11:t=bf(null,t,r,e,n);break e;case 14:t=Bf(null,t,r,gt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Wu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Hf(e,t,r,o,n);case 3:e:{if(Kh(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yh(e,t),tl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Nr(Error(N(423)),t),t=Vf(e,t,r,n,o);break e}else if(r!==o){o=Nr(Error(N(424)),t),t=Vf(e,t,r,n,o);break e}else for(Ze=yn(t.stateNode.containerInfo.firstChild),tt=t,fe=!0,Et=null,n=Sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_r(),r===o){t=Jt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return Eh(t),e===null&&Uu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Au(r,o)?l=null:i!==null&&Au(r,i)&&(t.flags|=32),Wh(e,t),He(e,t,l,n),t.child;case 6:return e===null&&Uu(t),null;case 13:return Qh(e,t,n);case 4:return Qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tr(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),bf(e,t,r,o,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ae(Zi,r._currentValue),r._currentValue=l,i!==null)if(Pt(i.value,l)){if(i.children===o.children&&!Je.current){t=Jt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Ht(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(N(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),bu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}He(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sr(t,n),o=pt(o),r=r(o),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Bf(e,t,r,o,n);case 15:return Hh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Oi(e,t),t.tag=1,Xe(r)?(e=!0,Xi(t)):e=!1,Sr(t,n),gh(t,r,o),Hu(t,r,o,n),Ku(null,t,r,!0,e,n);case 19:return qh(e,t,n);case 22:return Vh(e,t,n)}throw Error(N(156,t.tag))};function cm(e,t){return $p(e,t)}function a0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new a0(e,t,n,r)}function uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u0(e){if(typeof e=="function")return uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_s)return 11;if(e===Ts)return 14}return 2}function Sn(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ji(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")uc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case rr:return Vn(n.children,o,i,t);case Rs:l=8,o|=8;break;case pu:return e=ct(12,n,t,o|2),e.elementType=pu,e.lanes=i,e;case hu:return e=ct(13,n,t,o),e.elementType=hu,e.lanes=i,e;case mu:return e=ct(19,n,t,o),e.elementType=mu,e.lanes=i,e;case wp:return Nl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vp:l=10;break e;case gp:l=9;break e;case _s:l=11;break e;case Ts:l=14;break e;case on:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=ct(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Vn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function Nl(e,t,n,r){return e=ct(22,e,r,t),e.elementType=wp,e.lanes=n,e.stateNode={isHidden:!1},e}function Wa(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Ka(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function s0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sc(e,t,n,r,o,i,l,a,u){return e=new s0(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ct(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(i),e}function c0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hm)}catch(e){console.error(e)}}hm(),dp.exports=ot;var mm=dp.exports,nd=mm;fu.createRoot=nd.createRoot,fu.hydrateRoot=nd.hydrateRoot;/** * @remix-run/router v1.10.0 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function y0(){return Math.random().toString(36).substr(2,8)}function rd(e,t){return{usr:e.state,key:e.key,idx:t}}function Fo(e,t,n,r){return n===void 0&&(n=null),he({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gt(t):t,{state:n,key:t&&t.key||r||y0()})}function Xn(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 Gt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function v0(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=xe.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(he({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=xe.Pop;let S=c(),d=S==null?null:S-s;s=S,u&&u({action:a,location:v.location,delta:d})}function m(S,d){a=xe.Push;let h=Fo(v.location,S,d);n&&n(h,S),s=c()+1;let w=rd(h,s),y=v.createHref(h);try{l.pushState(w,"",y)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(y)}i&&u&&u({action:a,location:v.location,delta:1})}function g(S,d){a=xe.Replace;let h=Fo(v.location,S,d);n&&n(h,S),s=c();let w=rd(h,s),y=v.createHref(h);l.replaceState(w,"",y),i&&u&&u({action:a,location:v.location,delta:0})}function p(S){let d=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:Xn(S);return V(d,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,d)}let v={get action(){return a},get location(){return e(o,l)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(nd,f),u=S,()=>{o.removeEventListener(nd,f),u=null}},createHref(S){return t(o,S)},createURL:p,encodeLocation(S){let d=p(S);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:g,go(S){return l.go(S)}};return v}var Ce;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ce||(Ce={}));const g0=new Set(["lazy","caseSensitive","path","id","index","children"]);function w0(e){return e.index===!0}function os(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(V(o.index!==!0||!o.children,"Cannot specify children on an index route"),V(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),w0(o)){let u=he({},o,t(o),{id:a});return r[a]=u,u}else{let u=he({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=os(o.children,t,l,r)),u}})}function hr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Gt(t):t,o=Ir(r.pathname||"/",n);if(o==null)return null;let i=mm(e);E0(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(V(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=Ht([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&(V(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),mm(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:T0(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of ym(i.path))o(i,l,u)}),t}function ym(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=ym(r.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function E0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:O0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const x0=/^:\w+$/,C0=3,k0=2,P0=1,R0=10,_0=-2,od=e=>e==="*";function T0(e,t){let n=e.split("/"),r=n.length;return n.some(od)&&(r+=_0),t&&(r+=k0),n.filter(o=>!od(o)).reduce((o,i)=>o+(x0.test(i)?C0:i===""?P0:R0),r)}function O0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function N0(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let m=a[f]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return s[c]=M0(a[f]||"",c),s},{}),pathname:i,pathnameBase:l,pattern:e}}function j0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function D0(e){try{return decodeURI(e)}catch(t){return Jn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function M0(e,t){try{return decodeURIComponent(e)}catch(n){return Jn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ir(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 A0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Gt(e):e;return{pathname:n?n.startsWith("/")?n:$0(n,t):t,search:I0(r),hash:F0(o)}}function $0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Qa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ml(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Gt(e):(o=he({},e),V(!o.pathname||!o.pathname.includes("?"),Qa("?","pathname","search",o)),V(!o.pathname||!o.pathname.includes("#"),Qa("#","pathname","hash",o)),V(!o.search||!o.search.includes("#"),Qa("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(r||l==null)a=n;else{let f=t.length-1;if(l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}a=f>=0?t[f]:"/"}let u=A0(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Ht=e=>e.join("/").replace(/\/\/+/g,"/"),z0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,F0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class hc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function vm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gm=["post","put","patch","delete"],U0=new Set(gm),B0=["get",...gm],b0=new Set(B0),H0=new Set([301,302,303,307,308]),V0=new Set([307,308]),qa={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},to={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},wm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K0=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Sm="remix-router-transitions";function Q0(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let E=e.detectErrorBoundary;o=C=>({hasErrorBoundary:E(C)})}else o=K0;let i={},l=os(e.routes,o,void 0,i),a,u=e.basename||"/",s=he({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,m=null,g=null,p=null,v=e.hydrationData!=null,S=hr(l,e.history.location,u),d=null;if(S==null){let E=at(404,{pathname:e.history.location.pathname}),{matches:C,route:T}=dd(l);S=C,d={[T.id]:E}}let h=!S.some(E=>E.route.lazy)&&(!S.some(E=>E.route.loader)||e.hydrationData!=null),w,y={historyAction:e.history.action,location:e.history.location,matches:S,initialized:h,navigation:qa,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},x=xe.Pop,R=!1,_,O=!1,F=new Map,A=null,X=!1,ie=!1,Pe=[],Se=[],G=new Map,ge=0,Te=-1,L=new Map,$=new Set,U=new Map,Y=new Map,le=new Map,Zt=!1;function Mt(){if(c=e.history.listen(E=>{let{action:C,location:T,delta:D}=E;if(Zt){Zt=!1;return}Jn(le.size===0||D!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let b=bc({currentLocation:y.location,nextLocation:T,historyAction:C});if(b&&D!=null){Zt=!0,e.history.go(D*-1),ei(b,{state:"blocked",location:T,proceed(){ei(b,{state:"proceeding",proceed:void 0,reset:void 0,location:T}),e.history.go(D)},reset(){let B=new Map(y.blockers);B.set(b,to),de({blockers:B})}});return}return Ln(C,T)}),n){o1(t,F);let E=()=>i1(t,F);t.addEventListener("pagehide",E),A=()=>t.removeEventListener("pagehide",E)}return y.initialized||Ln(xe.Pop,y.location),w}function br(){c&&c(),A&&A(),f.clear(),_&&_.abort(),y.fetchers.forEach((E,C)=>ha(C)),y.blockers.forEach((E,C)=>Bc(C))}function At(E){return f.add(E),()=>f.delete(E)}function de(E,C){y=he({},y,E),f.forEach(T=>T(y,{unstable_viewTransitionOpts:C}))}function Hr(E,C){var T,D;let b=y.actionData!=null&&y.navigation.formMethod!=null&&St(y.navigation.formMethod)&&y.navigation.state==="loading"&&((T=E.state)==null?void 0:T._isRedirect)!==!0,B;C.actionData?Object.keys(C.actionData).length>0?B=C.actionData:B=null:b?B=y.actionData:B=null;let H=C.loaderData?fd(y.loaderData,C.loaderData,C.matches||[],C.errors):y.loaderData,I=y.blockers;I.size>0&&(I=new Map(I),I.forEach((pe,K)=>I.set(K,to)));let z=R===!0||y.navigation.formMethod!=null&&St(y.navigation.formMethod)&&((D=E.state)==null?void 0:D._isRedirect)!==!0;a&&(l=a,a=void 0),X||x===xe.Pop||(x===xe.Push?e.history.push(E,E.state):x===xe.Replace&&e.history.replace(E,E.state));let re;if(x===xe.Pop){let pe=F.get(y.location.pathname);pe&&pe.has(E.pathname)?re={currentLocation:y.location,nextLocation:E}:F.has(E.pathname)&&(re={currentLocation:E,nextLocation:y.location})}else if(O){let pe=F.get(y.location.pathname);pe?pe.add(E.pathname):(pe=new Set([E.pathname]),F.set(y.location.pathname,pe)),re={currentLocation:y.location,nextLocation:E}}de(he({},C,{actionData:B,loaderData:H,historyAction:x,location:E,initialized:!0,navigation:qa,revalidation:"idle",restoreScrollPosition:Vc(E,C.matches||y.matches),preventScrollReset:z,blockers:I}),re),x=xe.Pop,R=!1,O=!1,X=!1,ie=!1,Pe=[],Se=[]}async function Ac(E,C){if(typeof E=="number"){e.history.go(E);return}let T=is(y.location,y.matches,u,s.v7_prependBasename,E,C==null?void 0:C.fromRouteId,C==null?void 0:C.relative),{path:D,submission:b,error:B}=id(s.v7_normalizeFormMethod,!1,T,C),H=y.location,I=Fo(y.location,D,C&&C.state);I=he({},I,e.history.encodeLocation(I));let z=C&&C.replace!=null?C.replace:void 0,re=xe.Push;z===!0?re=xe.Replace:z===!1||b!=null&&St(b.formMethod)&&b.formAction===y.location.pathname+y.location.search&&(re=xe.Replace);let pe=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,K=bc({currentLocation:H,nextLocation:I,historyAction:re});if(K){ei(K,{state:"blocked",location:I,proceed(){ei(K,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),Ac(E,C)},reset(){let oe=new Map(y.blockers);oe.set(K,to),de({blockers:oe})}});return}return await Ln(re,I,{submission:b,pendingError:B,preventScrollReset:pe,replace:C&&C.replace,enableViewTransition:C&&C.unstable_viewTransition})}function Ly(){if(pa(),de({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){Ln(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}Ln(x||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation})}}async function Ln(E,C,T){_&&_.abort(),_=null,x=E,X=(T&&T.startUninterruptedRevalidation)===!0,Fy(y.location,y.matches),R=(T&&T.preventScrollReset)===!0,O=(T&&T.enableViewTransition)===!0;let D=a||l,b=T&&T.overrideNavigation,B=hr(D,C,u);if(!B){let oe=at(404,{pathname:C.pathname}),{matches:Ee,route:jn}=dd(D);ma(),Hr(C,{matches:Ee,loaderData:{},errors:{[jn.id]:oe}});return}if(y.initialized&&!ie&&Y0(y.location,C)&&!(T&&T.submission&&St(T.submission.formMethod))){Hr(C,{matches:B});return}_=new AbortController;let H=ro(e.history,C,_.signal,T&&T.submission),I,z;if(T&&T.pendingError)z={[mr(B).route.id]:T.pendingError};else if(T&&T.submission&&St(T.submission.formMethod)){let oe=await jy(H,C,T.submission,B,{replace:T.replace});if(oe.shortCircuited)return;I=oe.pendingActionData,z=oe.pendingActionError,b=Ja(C,T.submission),H=new Request(H.url,{signal:H.signal})}let{shortCircuited:re,loaderData:pe,errors:K}=await Dy(H,C,B,b,T&&T.submission,T&&T.fetcherSubmission,T&&T.replace,I,z);re||(_=null,Hr(C,he({matches:B},I?{actionData:I}:{},{loaderData:pe,errors:K})))}async function jy(E,C,T,D,b){b===void 0&&(b={}),pa();let B=n1(C,T);de({navigation:B});let H,I=as(D,C);if(!I.route.action&&!I.route.lazy)H={type:Ce.error,error:at(405,{method:E.method,pathname:C.pathname,routeId:I.route.id})};else if(H=await no("action",E,I,D,i,o,u),E.signal.aborted)return{shortCircuited:!0};if(xr(H)){let z;return b&&b.replace!=null?z=b.replace:z=H.location===y.location.pathname+y.location.search,await Vr(y,H,{submission:T,replace:z}),{shortCircuited:!0}}if(Eo(H)){let z=mr(D,I.route.id);return(b&&b.replace)!==!0&&(x=xe.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:H.error}}}if(Un(H))throw at(400,{type:"defer-action"});return{pendingActionData:{[I.route.id]:H.data}}}async function Dy(E,C,T,D,b,B,H,I,z){let re=D||Ja(C,b),pe=b||B||md(re),K=a||l,[oe,Ee]=ld(e.history,y,T,pe,C,ie,Pe,Se,U,$,K,u,I,z);if(ma(te=>!(T&&T.some(yt=>yt.route.id===te))||oe&&oe.some(yt=>yt.route.id===te)),Te=++ge,oe.length===0&&Ee.length===0){let te=Fc();return Hr(C,he({matches:T,loaderData:{},errors:z||null},I?{actionData:I}:{},te?{fetchers:new Map(y.fetchers)}:{})),{shortCircuited:!0}}if(!X){Ee.forEach(yt=>{let tn=y.fetchers.get(yt.key),Sa=oo(void 0,tn?tn.data:void 0);y.fetchers.set(yt.key,Sa)});let te=I||y.actionData;de(he({navigation:re},te?Object.keys(te).length===0?{actionData:null}:{actionData:te}:{},Ee.length>0?{fetchers:new Map(y.fetchers)}:{}))}Ee.forEach(te=>{G.has(te.key)&&en(te.key),te.controller&&G.set(te.key,te.controller)});let jn=()=>Ee.forEach(te=>en(te.key));_&&_.signal.addEventListener("abort",jn);let{results:Dn,loaderResults:Wr,fetcherResults:ya}=await zc(y.matches,T,oe,Ee,E);if(E.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",jn),Ee.forEach(te=>G.delete(te.key));let $t=pd(Dn);if($t){if($t.idx>=oe.length){let te=Ee[$t.idx-oe.length].key;$.add(te)}return await Vr(y,$t.result,{replace:H}),{shortCircuited:!0}}let{loaderData:zt,errors:ti}=cd(y,T,oe,Wr,z,Ee,ya,Y);Y.forEach((te,yt)=>{te.subscribe(tn=>{(tn||te.done)&&Y.delete(yt)})});let va=Fc(),ga=Uc(Te),wa=va||ga||Ee.length>0;return he({loaderData:zt,errors:ti},wa?{fetchers:new Map(y.fetchers)}:{})}function $c(E){return y.fetchers.get(E)||W0}function My(E,C,T,D){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(E)&&en(E);let b=a||l,B=is(y.location,y.matches,u,s.v7_prependBasename,T,C,D==null?void 0:D.relative),H=hr(b,B,u);if(!H){Zo(E,C,at(404,{pathname:B}));return}let{path:I,submission:z,error:re}=id(s.v7_normalizeFormMethod,!0,B,D);if(re){Zo(E,C,re);return}let pe=as(H,I);if(R=(D&&D.preventScrollReset)===!0,z&&St(z.formMethod)){Ay(E,C,I,pe,H,z);return}U.set(E,{routeId:C,path:I}),$y(E,C,I,pe,H,z)}async function Ay(E,C,T,D,b,B){if(pa(),U.delete(E),!D.route.action&&!D.route.lazy){let Oe=at(405,{method:B.formMethod,pathname:T,routeId:C});Zo(E,C,Oe);return}let H=y.fetchers.get(E),I=r1(B,H);y.fetchers.set(E,I),de({fetchers:new Map(y.fetchers)});let z=new AbortController,re=ro(e.history,T,z.signal,B);G.set(E,z);let pe=ge,K=await no("action",re,D,b,i,o,u);if(re.signal.aborted){G.get(E)===z&&G.delete(E);return}if(xr(K))if(G.delete(E),Te>pe){let Oe=tr(void 0);y.fetchers.set(E,Oe),de({fetchers:new Map(y.fetchers)});return}else{$.add(E);let Oe=oo(B);return y.fetchers.set(E,Oe),de({fetchers:new Map(y.fetchers)}),Vr(y,K,{fetcherSubmission:B})}if(Eo(K)){Zo(E,C,K.error);return}if(Un(K))throw at(400,{type:"defer-action"});let oe=y.navigation.location||y.location,Ee=ro(e.history,oe,z.signal),jn=a||l,Dn=y.navigation.state!=="idle"?hr(jn,y.navigation.location,u):y.matches;V(Dn,"Didn't find any matches after fetcher action");let Wr=++ge;L.set(E,Wr);let ya=oo(B,K.data);y.fetchers.set(E,ya);let[$t,zt]=ld(e.history,y,Dn,B,oe,ie,Pe,Se,U,$,jn,u,{[D.route.id]:K.data},void 0);zt.filter(Oe=>Oe.key!==E).forEach(Oe=>{let Kr=Oe.key,Wc=y.fetchers.get(Kr),By=oo(void 0,Wc?Wc.data:void 0);y.fetchers.set(Kr,By),G.has(Kr)&&en(Kr),Oe.controller&&G.set(Kr,Oe.controller)}),de({fetchers:new Map(y.fetchers)});let ti=()=>zt.forEach(Oe=>en(Oe.key));z.signal.addEventListener("abort",ti);let{results:va,loaderResults:ga,fetcherResults:wa}=await zc(y.matches,Dn,$t,zt,Ee);if(z.signal.aborted)return;z.signal.removeEventListener("abort",ti),L.delete(E),G.delete(E),zt.forEach(Oe=>G.delete(Oe.key));let te=pd(va);if(te){if(te.idx>=$t.length){let Oe=zt[te.idx-$t.length].key;$.add(Oe)}return Vr(y,te.result)}let{loaderData:yt,errors:tn}=cd(y,y.matches,$t,ga,void 0,zt,wa,Y);if(y.fetchers.has(E)){let Oe=tr(K.data);y.fetchers.set(E,Oe)}let Sa=Uc(Wr);y.navigation.state==="loading"&&Wr>Te?(V(x,"Expected pending action"),_&&_.abort(),Hr(y.navigation.location,{matches:Dn,loaderData:yt,errors:tn,fetchers:new Map(y.fetchers)})):(de(he({errors:tn,loaderData:fd(y.loaderData,yt,Dn,tn)},Sa||zt.length>0?{fetchers:new Map(y.fetchers)}:{})),ie=!1)}async function $y(E,C,T,D,b,B){let H=y.fetchers.get(E),I=oo(B,H?H.data:void 0);y.fetchers.set(E,I),de({fetchers:new Map(y.fetchers)});let z=new AbortController,re=ro(e.history,T,z.signal);G.set(E,z);let pe=ge,K=await no("loader",re,D,b,i,o,u);if(Un(K)&&(K=await Cm(K,re.signal,!0)||K),G.get(E)===z&&G.delete(E),re.signal.aborted)return;if(xr(K))if(Te>pe){let Ee=tr(void 0);y.fetchers.set(E,Ee),de({fetchers:new Map(y.fetchers)});return}else{$.add(E),await Vr(y,K);return}if(Eo(K)){let Ee=mr(y.matches,C);y.fetchers.delete(E),de({fetchers:new Map(y.fetchers),errors:{[Ee.route.id]:K.error}});return}V(!Un(K),"Unhandled fetcher deferred data");let oe=tr(K.data);y.fetchers.set(E,oe),de({fetchers:new Map(y.fetchers)})}async function Vr(E,C,T){let{submission:D,fetcherSubmission:b,replace:B}=T===void 0?{}:T;C.revalidate&&(ie=!0);let H=Fo(E.location,C.location,{_isRedirect:!0});if(V(H,"Expected a location on the redirect navigation"),n){let oe=!1;if(C.reloadDocument)oe=!0;else if(wm.test(C.location)){const Ee=e.history.createURL(C.location);oe=Ee.origin!==t.location.origin||Ir(Ee.pathname,u)==null}if(oe){B?t.location.replace(C.location):t.location.assign(C.location);return}}_=null;let I=B===!0?xe.Replace:xe.Push,{formMethod:z,formAction:re,formEncType:pe}=E.navigation;!D&&!b&&z&&re&&pe&&(D=md(E.navigation));let K=D||b;if(V0.has(C.status)&&K&&St(K.formMethod))await Ln(I,H,{submission:he({},K,{formAction:C.location}),preventScrollReset:R});else{let oe=Ja(H,D);await Ln(I,H,{overrideNavigation:oe,fetcherSubmission:b,preventScrollReset:R})}}async function zc(E,C,T,D,b){let B=await Promise.all([...T.map(z=>no("loader",b,z,C,i,o,u)),...D.map(z=>z.matches&&z.match&&z.controller?no("loader",ro(e.history,z.path,z.controller.signal),z.match,z.matches,i,o,u):{type:Ce.error,error:at(404,{pathname:z.path})})]),H=B.slice(0,T.length),I=B.slice(T.length);return await Promise.all([hd(E,T,H,H.map(()=>b.signal),!1,y.loaderData),hd(E,D.map(z=>z.match),I,D.map(z=>z.controller?z.controller.signal:null),!0)]),{results:B,loaderResults:H,fetcherResults:I}}function pa(){ie=!0,Pe.push(...ma()),U.forEach((E,C)=>{G.has(C)&&(Se.push(C),en(C))})}function Zo(E,C,T){let D=mr(y.matches,C);ha(E),de({errors:{[D.route.id]:T},fetchers:new Map(y.fetchers)})}function ha(E){let C=y.fetchers.get(E);G.has(E)&&!(C&&C.state==="loading"&&L.has(E))&&en(E),U.delete(E),L.delete(E),$.delete(E),y.fetchers.delete(E)}function en(E){let C=G.get(E);V(C,"Expected fetch controller: "+E),C.abort(),G.delete(E)}function Ic(E){for(let C of E){let T=$c(C),D=tr(T.data);y.fetchers.set(C,D)}}function Fc(){let E=[],C=!1;for(let T of $){let D=y.fetchers.get(T);V(D,"Expected fetcher: "+T),D.state==="loading"&&($.delete(T),E.push(T),C=!0)}return Ic(E),C}function Uc(E){let C=[];for(let[T,D]of L)if(D0}function zy(E,C){let T=y.blockers.get(E)||to;return le.get(E)!==C&&le.set(E,C),T}function Bc(E){y.blockers.delete(E),le.delete(E)}function ei(E,C){let T=y.blockers.get(E)||to;V(T.state==="unblocked"&&C.state==="blocked"||T.state==="blocked"&&C.state==="blocked"||T.state==="blocked"&&C.state==="proceeding"||T.state==="blocked"&&C.state==="unblocked"||T.state==="proceeding"&&C.state==="unblocked","Invalid blocker state transition: "+T.state+" -> "+C.state);let D=new Map(y.blockers);D.set(E,C),de({blockers:D})}function bc(E){let{currentLocation:C,nextLocation:T,historyAction:D}=E;if(le.size===0)return;le.size>1&&Jn(!1,"A router only supports one blocker at a time");let b=Array.from(le.entries()),[B,H]=b[b.length-1],I=y.blockers.get(B);if(!(I&&I.state==="proceeding")&&H({currentLocation:C,nextLocation:T,historyAction:D}))return B}function ma(E){let C=[];return Y.forEach((T,D)=>{(!E||E(D))&&(T.cancel(),C.push(D),Y.delete(D))}),C}function Iy(E,C,T){if(m=E,p=C,g=T||null,!v&&y.navigation===qa){v=!0;let D=Vc(y.location,y.matches);D!=null&&de({restoreScrollPosition:D})}return()=>{m=null,p=null,g=null}}function Hc(E,C){return g&&g(E,C.map(D=>S0(D,y.loaderData)))||E.key}function Fy(E,C){if(m&&p){let T=Hc(E,C);m[T]=p()}}function Vc(E,C){if(m){let T=Hc(E,C),D=m[T];if(typeof D=="number")return D}return null}function Uy(E){i={},a=os(E,o,void 0,i)}return w={get basename(){return u},get state(){return y},get routes(){return l},get window(){return t},initialize:Mt,subscribe:At,enableScrollRestoration:Iy,navigate:Ac,fetch:My,revalidate:Ly,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:$c,deleteFetcher:ha,dispose:br,getBlocker:zy,deleteBlocker:Bc,_internalFetchControllers:G,_internalActiveDeferreds:Y,_internalSetRoutes:Uy},w}function q0(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function is(e,t,n,r,o,i,l){let a,u;if(i!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===i){u=c;break}}else a=t,u=t[t.length-1];let s=pc(o||".",Ml(a).map(c=>c.pathnameBase),Ir(e.pathname,n)||e.pathname,l==="path");return o==null&&(s.search=e.search,s.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!mc(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:Ht([n,s.pathname])),Xn(s)}function id(e,t,n,r){if(!r||!q0(r))return{path:n};if(r.formMethod&&!t1(r.formMethod))return{path:n,error:at(405,{method:r.formMethod})};let o=()=>({path:n,error:at(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=xm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!St(l))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,p)=>{let[v,S]=p;return""+g+v+"="+S+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!St(l))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}V(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=ls(r.formData),s=r.formData;else if(r.body instanceof FormData)u=ls(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=sd(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=sd(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(St(c.formMethod))return{path:n,submission:c};let f=Gt(n);return t&&f.search&&mc(f.search)&&u.append("index",""),f.search="?"+u,{path:Xn(f),submission:c}}function J0(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function ld(e,t,n,r,o,i,l,a,u,s,c,f,m,g){let p=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),S=e.createURL(o),d=g?Object.keys(g)[0]:void 0,w=J0(n,d).filter((x,R)=>{if(x.route.lazy)return!0;if(x.route.loader==null)return!1;if(X0(t.loaderData,t.matches[R],x)||l.some(F=>F===x.route.id))return!0;let _=t.matches[R],O=x;return ad(x,he({currentUrl:v,currentParams:_.params,nextUrl:S,nextParams:O.params},r,{actionResult:p,defaultShouldRevalidate:i||v.pathname+v.search===S.pathname+S.search||v.search!==S.search||Em(_,O)}))}),y=[];return u.forEach((x,R)=>{if(!n.some(X=>X.route.id===x.routeId))return;let _=hr(c,x.path,f);if(!_){y.push({key:R,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(R),F=as(_,x.path),A=!1;s.has(R)?A=!1:a.includes(R)?A=!0:O&&O.state!=="idle"&&O.data===void 0?A=i:A=ad(F,he({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:i})),A&&y.push({key:R,routeId:x.routeId,path:x.path,matches:_,match:F,controller:new AbortController})}),[w,y]}function X0(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Em(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ad(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function ud(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];V(o,"No route found in manifest");let i={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Jn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!g0.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,he({},t(o),{lazy:void 0}))}async function no(e,t,n,r,o,i,l,a){a===void 0&&(a={});let u,s,c,f=p=>{let v,S=new Promise((d,h)=>v=h);return c=()=>v(),t.signal.addEventListener("abort",c),Promise.race([p({request:t,params:n.params,context:a.requestContext}),S])};try{let p=n.route[e];if(n.route.lazy)if(p){let v,S=await Promise.all([f(p).catch(d=>{v=d}),ud(n.route,i,o)]);if(v)throw v;s=S[0]}else if(await ud(n.route,i,o),p=n.route[e],p)s=await f(p);else if(e==="action"){let v=new URL(t.url),S=v.pathname+v.search;throw at(405,{method:t.method,pathname:S,routeId:n.route.id})}else return{type:Ce.data,data:void 0};else if(p)s=await f(p);else{let v=new URL(t.url),S=v.pathname+v.search;throw at(404,{pathname:S})}V(s!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){u=Ce.error,s=p}finally{c&&t.signal.removeEventListener("abort",c)}if(e1(s)){let p=s.status;if(H0.has(p)){let d=s.headers.get("Location");if(V(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!wm.test(d))d=is(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,d);else if(!a.isStaticRequest){let h=new URL(t.url),w=d.startsWith("//")?new URL(h.protocol+d):new URL(d),y=Ir(w.pathname,l)!=null;w.origin===h.origin&&y&&(d=w.pathname+w.search+w.hash)}if(a.isStaticRequest)throw s.headers.set("Location",d),s;return{type:Ce.redirect,status:p,location:d,revalidate:s.headers.get("X-Remix-Revalidate")!==null,reloadDocument:s.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:u===Ce.error?Ce.error:Ce.data,response:s};let v,S=s.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?v=await s.json():v=await s.text(),u===Ce.error?{type:u,error:new hc(p,s.statusText,v),headers:s.headers}:{type:Ce.data,data:v,statusCode:s.status,headers:s.headers}}if(u===Ce.error)return{type:u,error:s};if(Z0(s)){var m,g;return{type:Ce.deferred,deferredData:s,statusCode:(m=s.init)==null?void 0:m.status,headers:((g=s.init)==null?void 0:g.headers)&&new Headers(s.init.headers)}}return{type:Ce.data,data:s}}function ro(e,t,n,r){let o=e.createURL(xm(t)).toString(),i={signal:n};if(r&&St(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=ls(r.formData):i.body=r.formData}return new Request(o,i)}function ls(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function sd(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function G0(e,t,n,r,o){let i={},l=null,a,u=!1,s={};return n.forEach((c,f)=>{let m=t[f].route.id;if(V(!xr(c),"Cannot handle redirect results in processLoaderData"),Eo(c)){let g=mr(e,m),p=c.error;r&&(p=Object.values(r)[0],r=void 0),l=l||{},l[g.route.id]==null&&(l[g.route.id]=p),i[m]=void 0,u||(u=!0,a=vm(c.error)?c.error.status:500),c.headers&&(s[m]=c.headers)}else Un(c)?(o.set(m,c.deferredData),i[m]=c.deferredData.data):i[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[m]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:s}}function cd(e,t,n,r,o,i,l,a){let{loaderData:u,errors:s}=G0(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function dd(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function at(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new hc(e||500,l,new Error(a),!0)}function pd(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xr(n))return{result:n,idx:t}}}function xm(e){let t=typeof e=="string"?Gt(e):e;return Xn(he({},t,{hash:""}))}function Y0(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Un(e){return e.type===Ce.deferred}function Eo(e){return e.type===Ce.error}function xr(e){return(e&&e.type)===Ce.redirect}function Z0(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function e1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function t1(e){return b0.has(e.toLowerCase())}function St(e){return U0.has(e.toLowerCase())}async function hd(e,t,n,r,o,i){for(let l=0;lf.route.id===u.route.id),c=s!=null&&!Em(s,u)&&(i&&i[u.route.id])!==void 0;if(Un(a)&&(o||c)){let f=r[l];V(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Cm(a,f,o).then(m=>{m&&(n[l]=m||n[l])})}}}async function Cm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ce.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ce.error,error:o}}return{type:Ce.data,data:e.deferredData.data}}}function mc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function as(e,t){let n=typeof t=="string"?Gt(t).search:t.search;if(e[e.length-1].route.index&&mc(n||""))return e[e.length-1];let r=Ml(e);return r[r.length-1]}function md(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ja(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function n1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function oo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function r1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function tr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function o1(e,t){try{let n=e.sessionStorage.getItem(Sm);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function i1(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Sm,JSON.stringify(n))}catch(r){Jn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Rn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function y0(){return Math.random().toString(36).substr(2,8)}function od(e,t){return{usr:e.state,key:e.key,idx:t}}function Fo(e,t,n,r){return n===void 0&&(n=null),he({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dt(t):t,{state:n,key:t&&t.key||r||y0()})}function Xn(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 Dt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function v0(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=xe.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(he({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=xe.Pop;let S=c(),d=S==null?null:S-s;s=S,u&&u({action:a,location:v.location,delta:d})}function m(S,d){a=xe.Push;let h=Fo(v.location,S,d);n&&n(h,S),s=c()+1;let w=od(h,s),y=v.createHref(h);try{l.pushState(w,"",y)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(y)}i&&u&&u({action:a,location:v.location,delta:1})}function g(S,d){a=xe.Replace;let h=Fo(v.location,S,d);n&&n(h,S),s=c();let w=od(h,s),y=v.createHref(h);l.replaceState(w,"",y),i&&u&&u({action:a,location:v.location,delta:0})}function p(S){let d=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:Xn(S);return V(d,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,d)}let v={get action(){return a},get location(){return e(o,l)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(rd,f),u=S,()=>{o.removeEventListener(rd,f),u=null}},createHref(S){return t(o,S)},createURL:p,encodeLocation(S){let d=p(S);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:g,go(S){return l.go(S)}};return v}var Ce;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ce||(Ce={}));const g0=new Set(["lazy","caseSensitive","path","id","index","children"]);function w0(e){return e.index===!0}function os(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(V(o.index!==!0||!o.children,"Cannot specify children on an index route"),V(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),w0(o)){let u=he({},o,t(o),{id:a});return r[a]=u,u}else{let u=he({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=os(o.children,t,l,r)),u}})}function hr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dt(t):t,o=Ir(r.pathname||"/",n);if(o==null)return null;let i=ym(e);E0(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(V(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=Vt([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&(V(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),ym(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:T0(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of vm(i.path))o(i,l,u)}),t}function vm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=vm(r.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function E0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:O0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const x0=/^:\w+$/,C0=3,k0=2,P0=1,R0=10,_0=-2,id=e=>e==="*";function T0(e,t){let n=e.split("/"),r=n.length;return n.some(id)&&(r+=_0),t&&(r+=k0),n.filter(o=>!id(o)).reduce((o,i)=>o+(x0.test(i)?C0:i===""?P0:R0),r)}function O0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function N0(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let m=a[f]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return s[c]=M0(a[f]||"",c),s},{}),pathname:i,pathnameBase:l,pattern:e}}function j0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function D0(e){try{return decodeURI(e)}catch(t){return Rn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function M0(e,t){try{return decodeURIComponent(e)}catch(n){return Rn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ir(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 A0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Dt(e):e;return{pathname:n?n.startsWith("/")?n:$0(n,t):t,search:I0(r),hash:F0(o)}}function $0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Qa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Al(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Dt(e):(o=he({},e),V(!o.pathname||!o.pathname.includes("?"),Qa("?","pathname","search",o)),V(!o.pathname||!o.pathname.includes("#"),Qa("#","pathname","hash",o)),V(!o.search||!o.search.includes("#"),Qa("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(r||l==null)a=n;else{let f=t.length-1;if(l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}a=f>=0?t[f]:"/"}let u=A0(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Vt=e=>e.join("/").replace(/\/\/+/g,"/"),z0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,F0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class hc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function gm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wm=["post","put","patch","delete"],U0=new Set(wm),b0=["get",...wm],B0=new Set(b0),H0=new Set([301,302,303,307,308]),V0=new Set([307,308]),qa={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},to={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K0=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Em="remix-router-transitions";function Q0(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let E=e.detectErrorBoundary;o=C=>({hasErrorBoundary:E(C)})}else o=K0;let i={},l=os(e.routes,o,void 0,i),a,u=e.basename||"/",s=he({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,m=null,g=null,p=null,v=e.hydrationData!=null,S=hr(l,e.history.location,u),d=null;if(S==null){let E=at(404,{pathname:e.history.location.pathname}),{matches:C,route:T}=pd(l);S=C,d={[T.id]:E}}let h=!S.some(E=>E.route.lazy)&&(!S.some(E=>E.route.loader)||e.hydrationData!=null),w,y={historyAction:e.history.action,location:e.history.location,matches:S,initialized:h,navigation:qa,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},x=xe.Pop,R=!1,_,O=!1,F=new Map,A=null,X=!1,ie=!1,Pe=[],Se=[],G=new Map,ge=0,Te=-1,L=new Map,$=new Set,U=new Map,Y=new Map,le=new Map,Zt=!1;function At(){if(c=e.history.listen(E=>{let{action:C,location:T,delta:D}=E;if(Zt){Zt=!1;return}Rn(le.size===0||D!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=Hc({currentLocation:y.location,nextLocation:T,historyAction:C});if(B&&D!=null){Zt=!0,e.history.go(D*-1),ti(B,{state:"blocked",location:T,proceed(){ti(B,{state:"proceeding",proceed:void 0,reset:void 0,location:T}),e.history.go(D)},reset(){let b=new Map(y.blockers);b.set(B,to),de({blockers:b})}});return}return jn(C,T)}),n){o1(t,F);let E=()=>i1(t,F);t.addEventListener("pagehide",E),A=()=>t.removeEventListener("pagehide",E)}return y.initialized||jn(xe.Pop,y.location),w}function Br(){c&&c(),A&&A(),f.clear(),_&&_.abort(),y.fetchers.forEach((E,C)=>ha(C)),y.blockers.forEach((E,C)=>Bc(C))}function $t(E){return f.add(E),()=>f.delete(E)}function de(E,C){y=he({},y,E),f.forEach(T=>T(y,{unstable_viewTransitionOpts:C}))}function Hr(E,C){var T,D;let B=y.actionData!=null&&y.navigation.formMethod!=null&&St(y.navigation.formMethod)&&y.navigation.state==="loading"&&((T=E.state)==null?void 0:T._isRedirect)!==!0,b;C.actionData?Object.keys(C.actionData).length>0?b=C.actionData:b=null:B?b=y.actionData:b=null;let H=C.loaderData?dd(y.loaderData,C.loaderData,C.matches||[],C.errors):y.loaderData,I=y.blockers;I.size>0&&(I=new Map(I),I.forEach((pe,K)=>I.set(K,to)));let z=R===!0||y.navigation.formMethod!=null&&St(y.navigation.formMethod)&&((D=E.state)==null?void 0:D._isRedirect)!==!0;a&&(l=a,a=void 0),X||x===xe.Pop||(x===xe.Push?e.history.push(E,E.state):x===xe.Replace&&e.history.replace(E,E.state));let re;if(x===xe.Pop){let pe=F.get(y.location.pathname);pe&&pe.has(E.pathname)?re={currentLocation:y.location,nextLocation:E}:F.has(E.pathname)&&(re={currentLocation:E,nextLocation:y.location})}else if(O){let pe=F.get(y.location.pathname);pe?pe.add(E.pathname):(pe=new Set([E.pathname]),F.set(y.location.pathname,pe)),re={currentLocation:y.location,nextLocation:E}}de(he({},C,{actionData:b,loaderData:H,historyAction:x,location:E,initialized:!0,navigation:qa,revalidation:"idle",restoreScrollPosition:Wc(E,C.matches||y.matches),preventScrollReset:z,blockers:I}),re),x=xe.Pop,R=!1,O=!1,X=!1,ie=!1,Pe=[],Se=[]}async function $c(E,C){if(typeof E=="number"){e.history.go(E);return}let T=is(y.location,y.matches,u,s.v7_prependBasename,E,C==null?void 0:C.fromRouteId,C==null?void 0:C.relative),{path:D,submission:B,error:b}=ld(s.v7_normalizeFormMethod,!1,T,C),H=y.location,I=Fo(y.location,D,C&&C.state);I=he({},I,e.history.encodeLocation(I));let z=C&&C.replace!=null?C.replace:void 0,re=xe.Push;z===!0?re=xe.Replace:z===!1||B!=null&&St(B.formMethod)&&B.formAction===y.location.pathname+y.location.search&&(re=xe.Replace);let pe=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,K=Hc({currentLocation:H,nextLocation:I,historyAction:re});if(K){ti(K,{state:"blocked",location:I,proceed(){ti(K,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),$c(E,C)},reset(){let oe=new Map(y.blockers);oe.set(K,to),de({blockers:oe})}});return}return await jn(re,I,{submission:B,pendingError:b,preventScrollReset:pe,replace:C&&C.replace,enableViewTransition:C&&C.unstable_viewTransition})}function Ly(){if(pa(),de({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){jn(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}jn(x||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation})}}async function jn(E,C,T){_&&_.abort(),_=null,x=E,X=(T&&T.startUninterruptedRevalidation)===!0,Fy(y.location,y.matches),R=(T&&T.preventScrollReset)===!0,O=(T&&T.enableViewTransition)===!0;let D=a||l,B=T&&T.overrideNavigation,b=hr(D,C,u);if(!b){let oe=at(404,{pathname:C.pathname}),{matches:Ee,route:Dn}=pd(D);ma(),Hr(C,{matches:Ee,loaderData:{},errors:{[Dn.id]:oe}});return}if(y.initialized&&!ie&&Y0(y.location,C)&&!(T&&T.submission&&St(T.submission.formMethod))){Hr(C,{matches:b});return}_=new AbortController;let H=ro(e.history,C,_.signal,T&&T.submission),I,z;if(T&&T.pendingError)z={[mr(b).route.id]:T.pendingError};else if(T&&T.submission&&St(T.submission.formMethod)){let oe=await jy(H,C,T.submission,b,{replace:T.replace});if(oe.shortCircuited)return;I=oe.pendingActionData,z=oe.pendingActionError,B=Ja(C,T.submission),H=new Request(H.url,{signal:H.signal})}let{shortCircuited:re,loaderData:pe,errors:K}=await Dy(H,C,b,B,T&&T.submission,T&&T.fetcherSubmission,T&&T.replace,I,z);re||(_=null,Hr(C,he({matches:b},I?{actionData:I}:{},{loaderData:pe,errors:K})))}async function jy(E,C,T,D,B){B===void 0&&(B={}),pa();let b=n1(C,T);de({navigation:b});let H,I=as(D,C);if(!I.route.action&&!I.route.lazy)H={type:Ce.error,error:at(405,{method:E.method,pathname:C.pathname,routeId:I.route.id})};else if(H=await no("action",E,I,D,i,o,u),E.signal.aborted)return{shortCircuited:!0};if(xr(H)){let z;return B&&B.replace!=null?z=B.replace:z=H.location===y.location.pathname+y.location.search,await Vr(y,H,{submission:T,replace:z}),{shortCircuited:!0}}if(Eo(H)){let z=mr(D,I.route.id);return(B&&B.replace)!==!0&&(x=xe.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:H.error}}}if(bn(H))throw at(400,{type:"defer-action"});return{pendingActionData:{[I.route.id]:H.data}}}async function Dy(E,C,T,D,B,b,H,I,z){let re=D||Ja(C,B),pe=B||b||yd(re),K=a||l,[oe,Ee]=ad(e.history,y,T,pe,C,ie,Pe,Se,U,$,K,u,I,z);if(ma(te=>!(T&&T.some(yt=>yt.route.id===te))||oe&&oe.some(yt=>yt.route.id===te)),Te=++ge,oe.length===0&&Ee.length===0){let te=Uc();return Hr(C,he({matches:T,loaderData:{},errors:z||null},I?{actionData:I}:{},te?{fetchers:new Map(y.fetchers)}:{})),{shortCircuited:!0}}if(!X){Ee.forEach(yt=>{let tn=y.fetchers.get(yt.key),Sa=oo(void 0,tn?tn.data:void 0);y.fetchers.set(yt.key,Sa)});let te=I||y.actionData;de(he({navigation:re},te?Object.keys(te).length===0?{actionData:null}:{actionData:te}:{},Ee.length>0?{fetchers:new Map(y.fetchers)}:{}))}Ee.forEach(te=>{G.has(te.key)&&en(te.key),te.controller&&G.set(te.key,te.controller)});let Dn=()=>Ee.forEach(te=>en(te.key));_&&_.signal.addEventListener("abort",Dn);let{results:Mn,loaderResults:Wr,fetcherResults:ya}=await Ic(y.matches,T,oe,Ee,E);if(E.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",Dn),Ee.forEach(te=>G.delete(te.key));let zt=hd(Mn);if(zt){if(zt.idx>=oe.length){let te=Ee[zt.idx-oe.length].key;$.add(te)}return await Vr(y,zt.result,{replace:H}),{shortCircuited:!0}}let{loaderData:It,errors:ni}=fd(y,T,oe,Wr,z,Ee,ya,Y);Y.forEach((te,yt)=>{te.subscribe(tn=>{(tn||te.done)&&Y.delete(yt)})});let va=Uc(),ga=bc(Te),wa=va||ga||Ee.length>0;return he({loaderData:It,errors:ni},wa?{fetchers:new Map(y.fetchers)}:{})}function zc(E){return y.fetchers.get(E)||W0}function My(E,C,T,D){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(E)&&en(E);let B=a||l,b=is(y.location,y.matches,u,s.v7_prependBasename,T,C,D==null?void 0:D.relative),H=hr(B,b,u);if(!H){ei(E,C,at(404,{pathname:b}));return}let{path:I,submission:z,error:re}=ld(s.v7_normalizeFormMethod,!0,b,D);if(re){ei(E,C,re);return}let pe=as(H,I);if(R=(D&&D.preventScrollReset)===!0,z&&St(z.formMethod)){Ay(E,C,I,pe,H,z);return}U.set(E,{routeId:C,path:I}),$y(E,C,I,pe,H,z)}async function Ay(E,C,T,D,B,b){if(pa(),U.delete(E),!D.route.action&&!D.route.lazy){let Oe=at(405,{method:b.formMethod,pathname:T,routeId:C});ei(E,C,Oe);return}let H=y.fetchers.get(E),I=r1(b,H);y.fetchers.set(E,I),de({fetchers:new Map(y.fetchers)});let z=new AbortController,re=ro(e.history,T,z.signal,b);G.set(E,z);let pe=ge,K=await no("action",re,D,B,i,o,u);if(re.signal.aborted){G.get(E)===z&&G.delete(E);return}if(xr(K))if(G.delete(E),Te>pe){let Oe=tr(void 0);y.fetchers.set(E,Oe),de({fetchers:new Map(y.fetchers)});return}else{$.add(E);let Oe=oo(b);return y.fetchers.set(E,Oe),de({fetchers:new Map(y.fetchers)}),Vr(y,K,{fetcherSubmission:b})}if(Eo(K)){ei(E,C,K.error);return}if(bn(K))throw at(400,{type:"defer-action"});let oe=y.navigation.location||y.location,Ee=ro(e.history,oe,z.signal),Dn=a||l,Mn=y.navigation.state!=="idle"?hr(Dn,y.navigation.location,u):y.matches;V(Mn,"Didn't find any matches after fetcher action");let Wr=++ge;L.set(E,Wr);let ya=oo(b,K.data);y.fetchers.set(E,ya);let[zt,It]=ad(e.history,y,Mn,b,oe,ie,Pe,Se,U,$,Dn,u,{[D.route.id]:K.data},void 0);It.filter(Oe=>Oe.key!==E).forEach(Oe=>{let Kr=Oe.key,Kc=y.fetchers.get(Kr),by=oo(void 0,Kc?Kc.data:void 0);y.fetchers.set(Kr,by),G.has(Kr)&&en(Kr),Oe.controller&&G.set(Kr,Oe.controller)}),de({fetchers:new Map(y.fetchers)});let ni=()=>It.forEach(Oe=>en(Oe.key));z.signal.addEventListener("abort",ni);let{results:va,loaderResults:ga,fetcherResults:wa}=await Ic(y.matches,Mn,zt,It,Ee);if(z.signal.aborted)return;z.signal.removeEventListener("abort",ni),L.delete(E),G.delete(E),It.forEach(Oe=>G.delete(Oe.key));let te=hd(va);if(te){if(te.idx>=zt.length){let Oe=It[te.idx-zt.length].key;$.add(Oe)}return Vr(y,te.result)}let{loaderData:yt,errors:tn}=fd(y,y.matches,zt,ga,void 0,It,wa,Y);if(y.fetchers.has(E)){let Oe=tr(K.data);y.fetchers.set(E,Oe)}let Sa=bc(Wr);y.navigation.state==="loading"&&Wr>Te?(V(x,"Expected pending action"),_&&_.abort(),Hr(y.navigation.location,{matches:Mn,loaderData:yt,errors:tn,fetchers:new Map(y.fetchers)})):(de(he({errors:tn,loaderData:dd(y.loaderData,yt,Mn,tn)},Sa||It.length>0?{fetchers:new Map(y.fetchers)}:{})),ie=!1)}async function $y(E,C,T,D,B,b){let H=y.fetchers.get(E),I=oo(b,H?H.data:void 0);y.fetchers.set(E,I),de({fetchers:new Map(y.fetchers)});let z=new AbortController,re=ro(e.history,T,z.signal);G.set(E,z);let pe=ge,K=await no("loader",re,D,B,i,o,u);if(bn(K)&&(K=await km(K,re.signal,!0)||K),G.get(E)===z&&G.delete(E),re.signal.aborted)return;if(xr(K))if(Te>pe){let Ee=tr(void 0);y.fetchers.set(E,Ee),de({fetchers:new Map(y.fetchers)});return}else{$.add(E),await Vr(y,K);return}if(Eo(K)){let Ee=mr(y.matches,C);y.fetchers.delete(E),de({fetchers:new Map(y.fetchers),errors:{[Ee.route.id]:K.error}});return}V(!bn(K),"Unhandled fetcher deferred data");let oe=tr(K.data);y.fetchers.set(E,oe),de({fetchers:new Map(y.fetchers)})}async function Vr(E,C,T){let{submission:D,fetcherSubmission:B,replace:b}=T===void 0?{}:T;C.revalidate&&(ie=!0);let H=Fo(E.location,C.location,{_isRedirect:!0});if(V(H,"Expected a location on the redirect navigation"),n){let oe=!1;if(C.reloadDocument)oe=!0;else if(Sm.test(C.location)){const Ee=e.history.createURL(C.location);oe=Ee.origin!==t.location.origin||Ir(Ee.pathname,u)==null}if(oe){b?t.location.replace(C.location):t.location.assign(C.location);return}}_=null;let I=b===!0?xe.Replace:xe.Push,{formMethod:z,formAction:re,formEncType:pe}=E.navigation;!D&&!B&&z&&re&&pe&&(D=yd(E.navigation));let K=D||B;if(V0.has(C.status)&&K&&St(K.formMethod))await jn(I,H,{submission:he({},K,{formAction:C.location}),preventScrollReset:R});else{let oe=Ja(H,D);await jn(I,H,{overrideNavigation:oe,fetcherSubmission:B,preventScrollReset:R})}}async function Ic(E,C,T,D,B){let b=await Promise.all([...T.map(z=>no("loader",B,z,C,i,o,u)),...D.map(z=>z.matches&&z.match&&z.controller?no("loader",ro(e.history,z.path,z.controller.signal),z.match,z.matches,i,o,u):{type:Ce.error,error:at(404,{pathname:z.path})})]),H=b.slice(0,T.length),I=b.slice(T.length);return await Promise.all([md(E,T,H,H.map(()=>B.signal),!1,y.loaderData),md(E,D.map(z=>z.match),I,D.map(z=>z.controller?z.controller.signal:null),!0)]),{results:b,loaderResults:H,fetcherResults:I}}function pa(){ie=!0,Pe.push(...ma()),U.forEach((E,C)=>{G.has(C)&&(Se.push(C),en(C))})}function ei(E,C,T){let D=mr(y.matches,C);ha(E),de({errors:{[D.route.id]:T},fetchers:new Map(y.fetchers)})}function ha(E){let C=y.fetchers.get(E);G.has(E)&&!(C&&C.state==="loading"&&L.has(E))&&en(E),U.delete(E),L.delete(E),$.delete(E),y.fetchers.delete(E)}function en(E){let C=G.get(E);V(C,"Expected fetch controller: "+E),C.abort(),G.delete(E)}function Fc(E){for(let C of E){let T=zc(C),D=tr(T.data);y.fetchers.set(C,D)}}function Uc(){let E=[],C=!1;for(let T of $){let D=y.fetchers.get(T);V(D,"Expected fetcher: "+T),D.state==="loading"&&($.delete(T),E.push(T),C=!0)}return Fc(E),C}function bc(E){let C=[];for(let[T,D]of L)if(D0}function zy(E,C){let T=y.blockers.get(E)||to;return le.get(E)!==C&&le.set(E,C),T}function Bc(E){y.blockers.delete(E),le.delete(E)}function ti(E,C){let T=y.blockers.get(E)||to;V(T.state==="unblocked"&&C.state==="blocked"||T.state==="blocked"&&C.state==="blocked"||T.state==="blocked"&&C.state==="proceeding"||T.state==="blocked"&&C.state==="unblocked"||T.state==="proceeding"&&C.state==="unblocked","Invalid blocker state transition: "+T.state+" -> "+C.state);let D=new Map(y.blockers);D.set(E,C),de({blockers:D})}function Hc(E){let{currentLocation:C,nextLocation:T,historyAction:D}=E;if(le.size===0)return;le.size>1&&Rn(!1,"A router only supports one blocker at a time");let B=Array.from(le.entries()),[b,H]=B[B.length-1],I=y.blockers.get(b);if(!(I&&I.state==="proceeding")&&H({currentLocation:C,nextLocation:T,historyAction:D}))return b}function ma(E){let C=[];return Y.forEach((T,D)=>{(!E||E(D))&&(T.cancel(),C.push(D),Y.delete(D))}),C}function Iy(E,C,T){if(m=E,p=C,g=T||null,!v&&y.navigation===qa){v=!0;let D=Wc(y.location,y.matches);D!=null&&de({restoreScrollPosition:D})}return()=>{m=null,p=null,g=null}}function Vc(E,C){return g&&g(E,C.map(D=>S0(D,y.loaderData)))||E.key}function Fy(E,C){if(m&&p){let T=Vc(E,C);m[T]=p()}}function Wc(E,C){if(m){let T=Vc(E,C),D=m[T];if(typeof D=="number")return D}return null}function Uy(E){i={},a=os(E,o,void 0,i)}return w={get basename(){return u},get state(){return y},get routes(){return l},get window(){return t},initialize:At,subscribe:$t,enableScrollRestoration:Iy,navigate:$c,fetch:My,revalidate:Ly,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:zc,deleteFetcher:ha,dispose:Br,getBlocker:zy,deleteBlocker:Bc,_internalFetchControllers:G,_internalActiveDeferreds:Y,_internalSetRoutes:Uy},w}function q0(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function is(e,t,n,r,o,i,l){let a,u;if(i!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===i){u=c;break}}else a=t,u=t[t.length-1];let s=pc(o||".",Al(a).map(c=>c.pathnameBase),Ir(e.pathname,n)||e.pathname,l==="path");return o==null&&(s.search=e.search,s.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!mc(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:Vt([n,s.pathname])),Xn(s)}function ld(e,t,n,r){if(!r||!q0(r))return{path:n};if(r.formMethod&&!t1(r.formMethod))return{path:n,error:at(405,{method:r.formMethod})};let o=()=>({path:n,error:at(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=Cm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!St(l))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,p)=>{let[v,S]=p;return""+g+v+"="+S+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!St(l))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}V(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=ls(r.formData),s=r.formData;else if(r.body instanceof FormData)u=ls(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=cd(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=cd(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(St(c.formMethod))return{path:n,submission:c};let f=Dt(n);return t&&f.search&&mc(f.search)&&u.append("index",""),f.search="?"+u,{path:Xn(f),submission:c}}function J0(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function ad(e,t,n,r,o,i,l,a,u,s,c,f,m,g){let p=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),S=e.createURL(o),d=g?Object.keys(g)[0]:void 0,w=J0(n,d).filter((x,R)=>{if(x.route.lazy)return!0;if(x.route.loader==null)return!1;if(X0(t.loaderData,t.matches[R],x)||l.some(F=>F===x.route.id))return!0;let _=t.matches[R],O=x;return ud(x,he({currentUrl:v,currentParams:_.params,nextUrl:S,nextParams:O.params},r,{actionResult:p,defaultShouldRevalidate:i||v.pathname+v.search===S.pathname+S.search||v.search!==S.search||xm(_,O)}))}),y=[];return u.forEach((x,R)=>{if(!n.some(X=>X.route.id===x.routeId))return;let _=hr(c,x.path,f);if(!_){y.push({key:R,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(R),F=as(_,x.path),A=!1;s.has(R)?A=!1:a.includes(R)?A=!0:O&&O.state!=="idle"&&O.data===void 0?A=i:A=ud(F,he({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:i})),A&&y.push({key:R,routeId:x.routeId,path:x.path,matches:_,match:F,controller:new AbortController})}),[w,y]}function X0(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function xm(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ud(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function sd(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];V(o,"No route found in manifest");let i={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Rn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!g0.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,he({},t(o),{lazy:void 0}))}async function no(e,t,n,r,o,i,l,a){a===void 0&&(a={});let u,s,c,f=p=>{let v,S=new Promise((d,h)=>v=h);return c=()=>v(),t.signal.addEventListener("abort",c),Promise.race([p({request:t,params:n.params,context:a.requestContext}),S])};try{let p=n.route[e];if(n.route.lazy)if(p){let v,S=await Promise.all([f(p).catch(d=>{v=d}),sd(n.route,i,o)]);if(v)throw v;s=S[0]}else if(await sd(n.route,i,o),p=n.route[e],p)s=await f(p);else if(e==="action"){let v=new URL(t.url),S=v.pathname+v.search;throw at(405,{method:t.method,pathname:S,routeId:n.route.id})}else return{type:Ce.data,data:void 0};else if(p)s=await f(p);else{let v=new URL(t.url),S=v.pathname+v.search;throw at(404,{pathname:S})}V(s!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){u=Ce.error,s=p}finally{c&&t.signal.removeEventListener("abort",c)}if(e1(s)){let p=s.status;if(H0.has(p)){let d=s.headers.get("Location");if(V(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!Sm.test(d))d=is(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,d);else if(!a.isStaticRequest){let h=new URL(t.url),w=d.startsWith("//")?new URL(h.protocol+d):new URL(d),y=Ir(w.pathname,l)!=null;w.origin===h.origin&&y&&(d=w.pathname+w.search+w.hash)}if(a.isStaticRequest)throw s.headers.set("Location",d),s;return{type:Ce.redirect,status:p,location:d,revalidate:s.headers.get("X-Remix-Revalidate")!==null,reloadDocument:s.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:u===Ce.error?Ce.error:Ce.data,response:s};let v,S=s.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?v=await s.json():v=await s.text(),u===Ce.error?{type:u,error:new hc(p,s.statusText,v),headers:s.headers}:{type:Ce.data,data:v,statusCode:s.status,headers:s.headers}}if(u===Ce.error)return{type:u,error:s};if(Z0(s)){var m,g;return{type:Ce.deferred,deferredData:s,statusCode:(m=s.init)==null?void 0:m.status,headers:((g=s.init)==null?void 0:g.headers)&&new Headers(s.init.headers)}}return{type:Ce.data,data:s}}function ro(e,t,n,r){let o=e.createURL(Cm(t)).toString(),i={signal:n};if(r&&St(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=ls(r.formData):i.body=r.formData}return new Request(o,i)}function ls(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function cd(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function G0(e,t,n,r,o){let i={},l=null,a,u=!1,s={};return n.forEach((c,f)=>{let m=t[f].route.id;if(V(!xr(c),"Cannot handle redirect results in processLoaderData"),Eo(c)){let g=mr(e,m),p=c.error;r&&(p=Object.values(r)[0],r=void 0),l=l||{},l[g.route.id]==null&&(l[g.route.id]=p),i[m]=void 0,u||(u=!0,a=gm(c.error)?c.error.status:500),c.headers&&(s[m]=c.headers)}else bn(c)?(o.set(m,c.deferredData),i[m]=c.deferredData.data):i[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[m]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:s}}function fd(e,t,n,r,o,i,l,a){let{loaderData:u,errors:s}=G0(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function pd(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function at(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new hc(e||500,l,new Error(a),!0)}function hd(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xr(n))return{result:n,idx:t}}}function Cm(e){let t=typeof e=="string"?Dt(e):e;return Xn(he({},t,{hash:""}))}function Y0(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function bn(e){return e.type===Ce.deferred}function Eo(e){return e.type===Ce.error}function xr(e){return(e&&e.type)===Ce.redirect}function Z0(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function e1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function t1(e){return B0.has(e.toLowerCase())}function St(e){return U0.has(e.toLowerCase())}async function md(e,t,n,r,o,i){for(let l=0;lf.route.id===u.route.id),c=s!=null&&!xm(s,u)&&(i&&i[u.route.id])!==void 0;if(bn(a)&&(o||c)){let f=r[l];V(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await km(a,f,o).then(m=>{m&&(n[l]=m||n[l])})}}}async function km(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ce.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ce.error,error:o}}return{type:Ce.data,data:e.deferredData.data}}}function mc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function as(e,t){let n=typeof t=="string"?Dt(t).search:t.search;if(e[e.length-1].route.index&&mc(n||""))return e[e.length-1];let r=Al(e);return r[r.length-1]}function yd(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ja(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function n1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function oo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function r1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function tr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function o1(e,t){try{let n=e.sessionStorage.getItem(Em);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function i1(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Em,JSON.stringify(n))}catch(r){Rn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.17.0 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),l=k.useRef(!1);return Rm(()=>{l.current=!0}),k.useCallback(function(u,s){if(s===void 0&&(s={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let c=pc(u,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Ht([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,i,o,e])}const s1=k.createContext(null);function c1(e){let t=k.useContext(Yt).outlet;return t&&k.createElement(s1.Provider,{value:e},t)}function f1(){let{matches:e}=k.useContext(Yt),t=e[e.length-1];return t?t.params:{}}function _m(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext(Yt),{pathname:o}=zl(),i=JSON.stringify(Ml(r).map(l=>l.pathnameBase));return k.useMemo(()=>pc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function d1(e,t,n){Xo()||V(!1);let{navigator:r}=k.useContext(Fr),{matches:o}=k.useContext(Yt),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let u=zl(),s;if(t){var c;let v=typeof t=="string"?Gt(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||V(!1),s=v}else s=u;let f=s.pathname||"/",m=a==="/"?f:f.slice(a.length)||"/",g=hr(e,{pathname:m}),p=v1(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Ht([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:Ht([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&p?k.createElement($l.Provider,{value:{location:sl({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:xe.Pop}},p):p}function p1(){let e=Nm(),t=vm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,i)}const h1=k.createElement(p1,null);class m1 extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement(Yt.Provider,{value:this.props.routeContext},k.createElement(Pm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y1(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Al);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Yt.Provider,{value:t},r)}function v1(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=i.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));a>=0||V(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,u,s)=>{let c=u.route.id?l==null?void 0:l[u.route.id]:null,f=null;n&&(f=u.route.errorElement||h1);let m=t.concat(i.slice(0,s+1)),g=()=>{let p;return c?p=f:u.route.Component?p=k.createElement(u.route.Component,null):u.route.element?p=u.route.element:p=a,k.createElement(y1,{match:u,routeContext:{outlet:a,matches:m,isDataRoute:n!=null},children:p})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?k.createElement(m1,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Tm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Tm||{}),cl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(cl||{});function g1(e){let t=k.useContext(Al);return t||V(!1),t}function w1(e){let t=k.useContext(km);return t||V(!1),t}function S1(e){let t=k.useContext(Yt);return t||V(!1),t}function Om(e){let t=S1(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function Nm(){var e;let t=k.useContext(Pm),n=w1(cl.UseRouteError),r=Om(cl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function E1(){let{router:e}=g1(Tm.UseNavigateStable),t=Om(cl.UseNavigateStable),n=k.useRef(!1);return Rm(()=>{n.current=!0}),k.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,sl({fromRouteId:t},i)))},[e,t])}function x1(e){return c1(e.context)}function C1(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xe.Pop,navigator:i,static:l=!1}=e;Xo()&&V(!1);let a=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof r=="string"&&(r=Gt(r));let{pathname:s="/",search:c="",hash:f="",state:m=null,key:g="default"}=r,p=k.useMemo(()=>{let v=Ir(s,a);return v==null?null:{location:{pathname:v,search:c,hash:f,state:m,key:g},navigationType:o}},[a,s,c,f,m,g,o]);return p==null?null:k.createElement(Fr.Provider,{value:u},k.createElement($l.Provider,{children:n,value:p}))}new Promise(()=>{});function k1(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:k.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),l=k.useRef(!1);return _m(()=>{l.current=!0}),k.useCallback(function(u,s){if(s===void 0&&(s={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let c=pc(u,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Vt([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,i,o,e])}const s1=k.createContext(null);function c1(e){let t=k.useContext(Yt).outlet;return t&&k.createElement(s1.Provider,{value:e},t)}function f1(){let{matches:e}=k.useContext(Yt),t=e[e.length-1];return t?t.params:{}}function Tm(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext(Yt),{pathname:o}=Il(),i=JSON.stringify(Al(r).map(l=>l.pathnameBase));return k.useMemo(()=>pc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function d1(e,t,n){Xo()||V(!1);let{navigator:r}=k.useContext(Fr),{matches:o}=k.useContext(Yt),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let u=Il(),s;if(t){var c;let v=typeof t=="string"?Dt(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||V(!1),s=v}else s=u;let f=s.pathname||"/",m=a==="/"?f:f.slice(a.length)||"/",g=hr(e,{pathname:m}),p=v1(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Vt([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:Vt([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&p?k.createElement(zl.Provider,{value:{location:cl({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:xe.Pop}},p):p}function p1(){let e=yc(),t=gm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,i)}const h1=k.createElement(p1,null);class m1 extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement(Yt.Provider,{value:this.props.routeContext},k.createElement(Rm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y1(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext($l);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Yt.Provider,{value:t},r)}function v1(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=i.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));a>=0||V(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,u,s)=>{let c=u.route.id?l==null?void 0:l[u.route.id]:null,f=null;n&&(f=u.route.errorElement||h1);let m=t.concat(i.slice(0,s+1)),g=()=>{let p;return c?p=f:u.route.Component?p=k.createElement(u.route.Component,null):u.route.element?p=u.route.element:p=a,k.createElement(y1,{match:u,routeContext:{outlet:a,matches:m,isDataRoute:n!=null},children:p})};return n&&(u.route.ErrorBoundary||u.route.errorElement||s===0)?k.createElement(m1,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Om=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Om||{}),fl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fl||{});function g1(e){let t=k.useContext($l);return t||V(!1),t}function w1(e){let t=k.useContext(Pm);return t||V(!1),t}function S1(e){let t=k.useContext(Yt);return t||V(!1),t}function Nm(e){let t=S1(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function yc(){var e;let t=k.useContext(Rm),n=w1(fl.UseRouteError),r=Nm(fl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function E1(){let{router:e}=g1(Om.UseNavigateStable),t=Nm(fl.UseNavigateStable),n=k.useRef(!1);return _m(()=>{n.current=!0}),k.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,cl({fromRouteId:t},i)))},[e,t])}function x1(e){return c1(e.context)}function C1(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xe.Pop,navigator:i,static:l=!1}=e;Xo()&&V(!1);let a=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof r=="string"&&(r=Dt(r));let{pathname:s="/",search:c="",hash:f="",state:m=null,key:g="default"}=r,p=k.useMemo(()=>{let v=Ir(s,a);return v==null?null:{location:{pathname:v,search:c,hash:f,state:m,key:g},navigationType:o}},[a,s,c,f,m,g,o]);return p==null?null:k.createElement(Fr.Provider,{value:u},k.createElement(zl.Provider,{children:n,value:p}))}new Promise(()=>{});function k1(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:k.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.17.0 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function R1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _1(e,t){return e.button===0&&(!t||t==="_self")&&!R1(e)}const T1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function O1(e,t){return Q0({basename:t==null?void 0:t.basename,future:Uo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:m0({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||N1(),routes:e,mapRouteProperties:k1,window:t==null?void 0:t.window}).initialize()}function N1(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Uo({},t,{errors:L1(t.errors)})),t}function L1(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new hc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const j1=k.createContext({isTransitioning:!1}),D1="startTransition",yd=iv[D1];function M1(e){yd?yd(e):e()}class A1{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function $1(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=k.useState(n.state),[l,a]=k.useState(),[u,s]=k.useState({isTransitioning:!1}),[c,f]=k.useState(),[m,g]=k.useState(),[p,v]=k.useState(),{v7_startTransition:S}=r||{},d=k.useCallback(R=>{S?M1(R):R()},[S]),h=k.useCallback((R,_)=>{let{unstable_viewTransitionOpts:O}=_;!O||n.window==null||typeof n.window.document.startViewTransition!="function"?d(()=>i(R)):m&&c?(c.resolve(),m.skipTransition(),v({state:R,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(R),s({isTransitioning:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[d,m,c,n.window]);k.useLayoutEffect(()=>n.subscribe(h),[n,h]),k.useEffect(()=>{u.isTransitioning&&f(new A1)},[u.isTransitioning]),k.useEffect(()=>{if(c&&l&&n.window){let R=l,_=c.promise,O=n.window.document.startViewTransition(async()=>{d(()=>i(R)),await _});O.finished.finally(()=>{f(void 0),g(void 0),a(void 0),s({isTransitioning:!1})}),g(O)}},[d,l,c,n.window]),k.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,m,o.location,l]),k.useEffect(()=>{!u.isTransitioning&&p&&(a(p.state),s({isTransitioning:!0,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),v(void 0))},[u.isTransitioning,p]);let w=k.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,_,O)=>n.navigate(R,{state:_,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(R,_,O)=>n.navigate(R,{replace:!0,state:_,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),y=n.basename||"/",x=k.useMemo(()=>({router:n,navigator:w,static:!1,basename:y}),[n,w,y]);return k.createElement(k.Fragment,null,k.createElement(Al.Provider,{value:x},k.createElement(km.Provider,{value:o},k.createElement(j1.Provider,{value:u},k.createElement(C1,{basename:y,location:o.location,navigationType:o.historyAction,navigator:w},o.initialized?k.createElement(z1,{routes:n.routes,state:o}):t)))),null)}function z1(e){let{routes:t,state:n}=e;return d1(t,void 0,n)}const I1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Il=k.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:f}=t,m=P1(t,T1),{basename:g}=k.useContext(Fr),p,v=!1;if(typeof s=="string"&&F1.test(s)&&(p=s,I1))try{let w=new URL(window.location.href),y=s.startsWith("//")?new URL(w.protocol+s):new URL(s),x=Ir(y.pathname,g);y.origin===w.origin&&x!=null?s=x+y.search+y.hash:v=!0}catch{}let S=l1(s,{relative:o}),d=U1(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:f});function h(w){r&&r(w),w.defaultPrevented||d(w)}return k.createElement("a",Uo({},m,{href:p||S,onClick:v||i?r:h,ref:n,target:u}))});var vd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vd||(vd={}));var gd;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gd||(gd={}));function U1(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=a1(),s=zl(),c=_m(e,{relative:l});return k.useCallback(f=>{if(_1(f,n)){f.preventDefault();let m=r!==void 0?r:Xn(s)===Xn(c);u(e,{replace:m,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a})}},[s,u,c,r,o,n,e,i,l,a])}var Lm={exports:{}},jm={};/** + */function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function R1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _1(e,t){return e.button===0&&(!t||t==="_self")&&!R1(e)}const T1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function O1(e,t){return Q0({basename:t==null?void 0:t.basename,future:Uo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:m0({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||N1(),routes:e,mapRouteProperties:k1,window:t==null?void 0:t.window}).initialize()}function N1(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Uo({},t,{errors:L1(t.errors)})),t}function L1(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new hc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const j1=k.createContext({isTransitioning:!1}),D1="startTransition",vd=iv[D1];function M1(e){vd?vd(e):e()}class A1{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function $1(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=k.useState(n.state),[l,a]=k.useState(),[u,s]=k.useState({isTransitioning:!1}),[c,f]=k.useState(),[m,g]=k.useState(),[p,v]=k.useState(),{v7_startTransition:S}=r||{},d=k.useCallback(R=>{S?M1(R):R()},[S]),h=k.useCallback((R,_)=>{let{unstable_viewTransitionOpts:O}=_;!O||n.window==null||typeof n.window.document.startViewTransition!="function"?d(()=>i(R)):m&&c?(c.resolve(),m.skipTransition(),v({state:R,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(R),s({isTransitioning:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[d,m,c,n.window]);k.useLayoutEffect(()=>n.subscribe(h),[n,h]),k.useEffect(()=>{u.isTransitioning&&f(new A1)},[u.isTransitioning]),k.useEffect(()=>{if(c&&l&&n.window){let R=l,_=c.promise,O=n.window.document.startViewTransition(async()=>{d(()=>i(R)),await _});O.finished.finally(()=>{f(void 0),g(void 0),a(void 0),s({isTransitioning:!1})}),g(O)}},[d,l,c,n.window]),k.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,m,o.location,l]),k.useEffect(()=>{!u.isTransitioning&&p&&(a(p.state),s({isTransitioning:!0,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),v(void 0))},[u.isTransitioning,p]);let w=k.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,_,O)=>n.navigate(R,{state:_,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(R,_,O)=>n.navigate(R,{replace:!0,state:_,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),y=n.basename||"/",x=k.useMemo(()=>({router:n,navigator:w,static:!1,basename:y}),[n,w,y]);return k.createElement(k.Fragment,null,k.createElement($l.Provider,{value:x},k.createElement(Pm.Provider,{value:o},k.createElement(j1.Provider,{value:u},k.createElement(C1,{basename:y,location:o.location,navigationType:o.historyAction,navigator:w},o.initialized?k.createElement(z1,{routes:n.routes,state:o}):t)))),null)}function z1(e){let{routes:t,state:n}=e;return d1(t,void 0,n)}const I1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Go=k.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:f}=t,m=P1(t,T1),{basename:g}=k.useContext(Fr),p,v=!1;if(typeof s=="string"&&F1.test(s)&&(p=s,I1))try{let w=new URL(window.location.href),y=s.startsWith("//")?new URL(w.protocol+s):new URL(s),x=Ir(y.pathname,g);y.origin===w.origin&&x!=null?s=x+y.search+y.hash:v=!0}catch{}let S=l1(s,{relative:o}),d=U1(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:f});function h(w){r&&r(w),w.defaultPrevented||d(w)}return k.createElement("a",Uo({},m,{href:p||S,onClick:v||i?r:h,ref:n,target:u}))});var gd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gd||(gd={}));var wd;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wd||(wd={}));function U1(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=a1(),s=Il(),c=Tm(e,{relative:l});return k.useCallback(f=>{if(_1(f,n)){f.preventDefault();let m=r!==void 0?r:Xn(s)===Xn(c);u(e,{replace:m,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a})}},[s,u,c,r,o,n,e,i,l,a])}var Lm={exports:{}},jm={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -73,7 +73,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jr=k;function B1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var b1=typeof Object.is=="function"?Object.is:B1,H1=jr.useState,V1=jr.useEffect,W1=jr.useLayoutEffect,K1=jr.useDebugValue;function Q1(e,t){var n=t(),r=H1({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return W1(function(){o.value=n,o.getSnapshot=t,Xa(o)&&i({inst:o})},[e,n,t]),V1(function(){return Xa(o)&&i({inst:o}),e(function(){Xa(o)&&i({inst:o})})},[e]),K1(n),n}function Xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!b1(e,n)}catch{return!0}}function q1(e,t){return t()}var J1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?q1:Q1;jm.useSyncExternalStore=jr.useSyncExternalStore!==void 0?jr.useSyncExternalStore:J1;Lm.exports=jm;var X1=Lm.exports,Dm={exports:{}},Mm={};/** + */var jr=k;function b1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var B1=typeof Object.is=="function"?Object.is:b1,H1=jr.useState,V1=jr.useEffect,W1=jr.useLayoutEffect,K1=jr.useDebugValue;function Q1(e,t){var n=t(),r=H1({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return W1(function(){o.value=n,o.getSnapshot=t,Xa(o)&&i({inst:o})},[e,n,t]),V1(function(){return Xa(o)&&i({inst:o}),e(function(){Xa(o)&&i({inst:o})})},[e]),K1(n),n}function Xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!B1(e,n)}catch{return!0}}function q1(e,t){return t()}var J1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?q1:Q1;jm.useSyncExternalStore=jr.useSyncExternalStore!==void 0?jr.useSyncExternalStore:J1;Lm.exports=jm;var X1=Lm.exports,Dm={exports:{}},Mm={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -81,14 +81,14 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Fl=k,G1=X1;function Y1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Z1=typeof Object.is=="function"?Object.is:Y1,ew=G1.useSyncExternalStore,tw=Fl.useRef,nw=Fl.useEffect,rw=Fl.useMemo,ow=Fl.useDebugValue;Mm.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=tw(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=rw(function(){function u(g){if(!s){if(s=!0,c=g,g=r(g),o!==void 0&&l.hasValue){var p=l.value;if(o(p,g))return f=p}return f=g}if(p=f,Z1(c,g))return p;var v=r(g);return o!==void 0&&o(p,v)?p:(c=g,f=v)}var s=!1,c,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,o]);var a=ew(e,i[0],i[1]);return nw(function(){l.hasValue=!0,l.value=a},[a]),ow(a),a};Dm.exports=Mm;var iw=Dm.exports;function lw(e){e()}let Am=lw;const aw=e=>Am=e,uw=()=>Am,wd=Symbol.for("react-redux-context"),Sd=typeof globalThis<"u"?globalThis:{};function sw(){var e;if(!k.createContext)return{};const t=(e=Sd[wd])!=null?e:Sd[wd]=new Map;let n=t.get(k.createContext);return n||(n=k.createContext(null),t.set(k.createContext,n)),n}const Rn=sw();function yc(e=Rn){return function(){return k.useContext(e)}}const $m=yc(),cw=()=>{throw new Error("uSES not initialized!")};let zm=cw;const fw=e=>{zm=e},dw=(e,t)=>e===t;function pw(e=Rn){const t=e===Rn?$m:yc(e);return function(r,o={}){const{equalityFn:i=dw,stabilityCheck:l=void 0,noopCheck:a=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:s,getServerState:c,stabilityCheck:f,noopCheck:m}=t();k.useRef(!0);const g=k.useCallback({[r.name](v){return r(v)}}[r.name],[r,f,l]),p=zm(s.addNestedSub,u.getState,c||u.getState,g,i);return k.useDebugValue(p),p}}const Im=pw();var Fm={exports:{}},ee={};/** @license React v16.13.1 + */var Fl=k,G1=X1;function Y1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Z1=typeof Object.is=="function"?Object.is:Y1,ew=G1.useSyncExternalStore,tw=Fl.useRef,nw=Fl.useEffect,rw=Fl.useMemo,ow=Fl.useDebugValue;Mm.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=tw(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=rw(function(){function u(g){if(!s){if(s=!0,c=g,g=r(g),o!==void 0&&l.hasValue){var p=l.value;if(o(p,g))return f=p}return f=g}if(p=f,Z1(c,g))return p;var v=r(g);return o!==void 0&&o(p,v)?p:(c=g,f=v)}var s=!1,c,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,o]);var a=ew(e,i[0],i[1]);return nw(function(){l.hasValue=!0,l.value=a},[a]),ow(a),a};Dm.exports=Mm;var iw=Dm.exports;function lw(e){e()}let Am=lw;const aw=e=>Am=e,uw=()=>Am,Sd=Symbol.for("react-redux-context"),Ed=typeof globalThis<"u"?globalThis:{};function sw(){var e;if(!k.createContext)return{};const t=(e=Ed[Sd])!=null?e:Ed[Sd]=new Map;let n=t.get(k.createContext);return n||(n=k.createContext(null),t.set(k.createContext,n)),n}const _n=sw();function vc(e=_n){return function(){return k.useContext(e)}}const $m=vc(),cw=()=>{throw new Error("uSES not initialized!")};let zm=cw;const fw=e=>{zm=e},dw=(e,t)=>e===t;function pw(e=_n){const t=e===_n?$m:vc(e);return function(r,o={}){const{equalityFn:i=dw,stabilityCheck:l=void 0,noopCheck:a=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:s,getServerState:c,stabilityCheck:f,noopCheck:m}=t();k.useRef(!0);const g=k.useCallback({[r.name](v){return r(v)}}[r.name],[r,f,l]),p=zm(s.addNestedSub,u.getState,c||u.getState,g,i);return k.useDebugValue(p),p}}const Im=pw();var Fm={exports:{}},ee={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Me=typeof Symbol=="function"&&Symbol.for,vc=Me?Symbol.for("react.element"):60103,gc=Me?Symbol.for("react.portal"):60106,Ul=Me?Symbol.for("react.fragment"):60107,Bl=Me?Symbol.for("react.strict_mode"):60108,bl=Me?Symbol.for("react.profiler"):60114,Hl=Me?Symbol.for("react.provider"):60109,Vl=Me?Symbol.for("react.context"):60110,wc=Me?Symbol.for("react.async_mode"):60111,Wl=Me?Symbol.for("react.concurrent_mode"):60111,Kl=Me?Symbol.for("react.forward_ref"):60112,Ql=Me?Symbol.for("react.suspense"):60113,hw=Me?Symbol.for("react.suspense_list"):60120,ql=Me?Symbol.for("react.memo"):60115,Jl=Me?Symbol.for("react.lazy"):60116,mw=Me?Symbol.for("react.block"):60121,yw=Me?Symbol.for("react.fundamental"):60117,vw=Me?Symbol.for("react.responder"):60118,gw=Me?Symbol.for("react.scope"):60119;function lt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vc:switch(e=e.type,e){case wc:case Wl:case Ul:case bl:case Bl:case Ql:return e;default:switch(e=e&&e.$$typeof,e){case Vl:case Kl:case Jl:case ql:case Hl:return e;default:return t}}case gc:return t}}}function Um(e){return lt(e)===Wl}ee.AsyncMode=wc;ee.ConcurrentMode=Wl;ee.ContextConsumer=Vl;ee.ContextProvider=Hl;ee.Element=vc;ee.ForwardRef=Kl;ee.Fragment=Ul;ee.Lazy=Jl;ee.Memo=ql;ee.Portal=gc;ee.Profiler=bl;ee.StrictMode=Bl;ee.Suspense=Ql;ee.isAsyncMode=function(e){return Um(e)||lt(e)===wc};ee.isConcurrentMode=Um;ee.isContextConsumer=function(e){return lt(e)===Vl};ee.isContextProvider=function(e){return lt(e)===Hl};ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vc};ee.isForwardRef=function(e){return lt(e)===Kl};ee.isFragment=function(e){return lt(e)===Ul};ee.isLazy=function(e){return lt(e)===Jl};ee.isMemo=function(e){return lt(e)===ql};ee.isPortal=function(e){return lt(e)===gc};ee.isProfiler=function(e){return lt(e)===bl};ee.isStrictMode=function(e){return lt(e)===Bl};ee.isSuspense=function(e){return lt(e)===Ql};ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ul||e===Wl||e===bl||e===Bl||e===Ql||e===hw||typeof e=="object"&&e!==null&&(e.$$typeof===Jl||e.$$typeof===ql||e.$$typeof===Hl||e.$$typeof===Vl||e.$$typeof===Kl||e.$$typeof===yw||e.$$typeof===vw||e.$$typeof===gw||e.$$typeof===mw)};ee.typeOf=lt;Fm.exports=ee;var ww=Fm.exports,Bm=ww,Sw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ew={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bm={};bm[Bm.ForwardRef]=Sw;bm[Bm.Memo]=Ew;var ne={};/** + */var Me=typeof Symbol=="function"&&Symbol.for,gc=Me?Symbol.for("react.element"):60103,wc=Me?Symbol.for("react.portal"):60106,Ul=Me?Symbol.for("react.fragment"):60107,bl=Me?Symbol.for("react.strict_mode"):60108,Bl=Me?Symbol.for("react.profiler"):60114,Hl=Me?Symbol.for("react.provider"):60109,Vl=Me?Symbol.for("react.context"):60110,Sc=Me?Symbol.for("react.async_mode"):60111,Wl=Me?Symbol.for("react.concurrent_mode"):60111,Kl=Me?Symbol.for("react.forward_ref"):60112,Ql=Me?Symbol.for("react.suspense"):60113,hw=Me?Symbol.for("react.suspense_list"):60120,ql=Me?Symbol.for("react.memo"):60115,Jl=Me?Symbol.for("react.lazy"):60116,mw=Me?Symbol.for("react.block"):60121,yw=Me?Symbol.for("react.fundamental"):60117,vw=Me?Symbol.for("react.responder"):60118,gw=Me?Symbol.for("react.scope"):60119;function lt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gc:switch(e=e.type,e){case Sc:case Wl:case Ul:case Bl:case bl:case Ql:return e;default:switch(e=e&&e.$$typeof,e){case Vl:case Kl:case Jl:case ql:case Hl:return e;default:return t}}case wc:return t}}}function Um(e){return lt(e)===Wl}ee.AsyncMode=Sc;ee.ConcurrentMode=Wl;ee.ContextConsumer=Vl;ee.ContextProvider=Hl;ee.Element=gc;ee.ForwardRef=Kl;ee.Fragment=Ul;ee.Lazy=Jl;ee.Memo=ql;ee.Portal=wc;ee.Profiler=Bl;ee.StrictMode=bl;ee.Suspense=Ql;ee.isAsyncMode=function(e){return Um(e)||lt(e)===Sc};ee.isConcurrentMode=Um;ee.isContextConsumer=function(e){return lt(e)===Vl};ee.isContextProvider=function(e){return lt(e)===Hl};ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gc};ee.isForwardRef=function(e){return lt(e)===Kl};ee.isFragment=function(e){return lt(e)===Ul};ee.isLazy=function(e){return lt(e)===Jl};ee.isMemo=function(e){return lt(e)===ql};ee.isPortal=function(e){return lt(e)===wc};ee.isProfiler=function(e){return lt(e)===Bl};ee.isStrictMode=function(e){return lt(e)===bl};ee.isSuspense=function(e){return lt(e)===Ql};ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ul||e===Wl||e===Bl||e===bl||e===Ql||e===hw||typeof e=="object"&&e!==null&&(e.$$typeof===Jl||e.$$typeof===ql||e.$$typeof===Hl||e.$$typeof===Vl||e.$$typeof===Kl||e.$$typeof===yw||e.$$typeof===vw||e.$$typeof===gw||e.$$typeof===mw)};ee.typeOf=lt;Fm.exports=ee;var ww=Fm.exports,bm=ww,Sw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ew={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bm={};Bm[bm.ForwardRef]=Sw;Bm[bm.Memo]=Ew;var ne={};/** * @license React * react-is.production.min.js * @@ -96,8 +96,8 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Sc=Symbol.for("react.element"),Ec=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),Gl=Symbol.for("react.strict_mode"),Yl=Symbol.for("react.profiler"),Zl=Symbol.for("react.provider"),ea=Symbol.for("react.context"),xw=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),na=Symbol.for("react.suspense"),ra=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),ia=Symbol.for("react.lazy"),Cw=Symbol.for("react.offscreen"),Hm;Hm=Symbol.for("react.module.reference");function mt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Sc:switch(e=e.type,e){case Xl:case Yl:case Gl:case na:case ra:return e;default:switch(e=e&&e.$$typeof,e){case xw:case ea:case ta:case ia:case oa:case Zl:return e;default:return t}}case Ec:return t}}}ne.ContextConsumer=ea;ne.ContextProvider=Zl;ne.Element=Sc;ne.ForwardRef=ta;ne.Fragment=Xl;ne.Lazy=ia;ne.Memo=oa;ne.Portal=Ec;ne.Profiler=Yl;ne.StrictMode=Gl;ne.Suspense=na;ne.SuspenseList=ra;ne.isAsyncMode=function(){return!1};ne.isConcurrentMode=function(){return!1};ne.isContextConsumer=function(e){return mt(e)===ea};ne.isContextProvider=function(e){return mt(e)===Zl};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sc};ne.isForwardRef=function(e){return mt(e)===ta};ne.isFragment=function(e){return mt(e)===Xl};ne.isLazy=function(e){return mt(e)===ia};ne.isMemo=function(e){return mt(e)===oa};ne.isPortal=function(e){return mt(e)===Ec};ne.isProfiler=function(e){return mt(e)===Yl};ne.isStrictMode=function(e){return mt(e)===Gl};ne.isSuspense=function(e){return mt(e)===na};ne.isSuspenseList=function(e){return mt(e)===ra};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xl||e===Yl||e===Gl||e===na||e===ra||e===Cw||typeof e=="object"&&e!==null&&(e.$$typeof===ia||e.$$typeof===oa||e.$$typeof===Zl||e.$$typeof===ea||e.$$typeof===ta||e.$$typeof===Hm||e.getModuleId!==void 0)};ne.typeOf=mt;function kw(){const e=uw();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const Ed={notify(){},get:()=>[]};function Pw(e,t){let n,r=Ed,o=0,i=!1;function l(v){c();const S=r.subscribe(v);let d=!1;return()=>{d||(d=!0,S(),f())}}function a(){r.notify()}function u(){p.onStateChange&&p.onStateChange()}function s(){return i}function c(){o++,n||(n=t?t.addNestedSub(u):e.subscribe(u),r=kw())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Ed)}function m(){i||(i=!0,c())}function g(){i&&(i=!1,f())}const p={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:s,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return p}const Rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_w=Rw?k.useLayoutEffect:k.useEffect;function Tw({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const l=k.useMemo(()=>{const s=Pw(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}},[e,r,o,i]),a=k.useMemo(()=>e.getState(),[e]);_w(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),a!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,a]);const u=t||Rn;return k.createElement(u.Provider,{value:l},n)}function Vm(e=Rn){const t=e===Rn?$m:yc(e);return function(){const{store:r}=t();return r}}const Ow=Vm();function Nw(e=Rn){const t=e===Rn?Ow:Vm(e);return function(){return t().dispatch}}const Wm=Nw();fw(iw.useSyncExternalStoreWithSelector);aw(hm.unstable_batchedUpdates);var Km={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xd=Q.createContext&&Q.createContext(Km),En=globalThis&&globalThis.__assign||function(){return En=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{id:t,title:n,authors:r,image_url:o,num_pages:i}=e;return j.jsxs(Il,{className:"book-card",to:`/book/${t}`,children:[j.jsx("figure",{children:j.jsx("img",{src:o,alt:n})}),j.jsxs("div",{children:[j.jsx("h4",{children:n}),j.jsx("h5",{children:r}),j.jsxs("p",{children:[j.jsx("span",{children:"Pages:"})," ",i]})]}),j.jsxs("div",{className:"book-card--hover",children:[j.jsx(Dw,{})," Read More"]})]})};const Aw=()=>{const{books:e,isLoading:t}=Im(n=>n.books);return t?j.jsx("div",{className:"loading",children:j.jsxs("div",{className:"lds-ripple",children:[j.jsx("div",{}),j.jsx("div",{})]})}):j.jsx("div",{className:"book-list",children:e==null?void 0:e.map(n=>j.jsx(Mw,{book:n},n.id))})};function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:xc(e)?2:Cc(e)?3:0}function Cr(e,t){return Ur(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $w(e,t){return Ur(e)===2?e.get(t):e[t]}function Jm(e,t,n){var r=Ur(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Xm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function xc(e){return bw&&e instanceof Map}function Cc(e){return Hw&&e instanceof Set}function $n(e){return e.o||e.t}function kc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ym(e);delete t[ce];for(var n=kr(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=zw),Object.freeze(e),t&&Gn(e,function(n,r){return Pc(r,!0)},!0)),e}function zw(){xt(2)}function Rc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jt(e){var t=fs[e];return t||xt(18,e),t}function Iw(e,t){fs[e]||(fs[e]=t)}function us(){return Bo}function Ga(e,t){t&&(jt("Patches"),e.u=[],e.s=[],e.v=t)}function fl(e){ss(e),e.p.forEach(Fw),e.p=null}function ss(e){e===Bo&&(Bo=e.l)}function Cd(e){return Bo={p:[],l:Bo,h:e,m:!0,_:0}}function Fw(e){var t=e[ce];t.i===0||t.i===1?t.j():t.g=!0}function Ya(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||jt("ES5").S(t,e,r),r?(n[ce].P&&(fl(t),xt(4)),Jt(e)&&(e=dl(t,e),t.l||pl(t,e)),t.u&&jt("Patches").M(n[ce].t,e,t.u,t.s)):e=dl(t,n,[]),fl(t),t.u&&t.v(t.u,t.s),e!==Gm?e:void 0}function dl(e,t,n){if(Rc(t))return t;var r=t[ce];if(!r)return Gn(t,function(a,u){return kd(e,r,t,a,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return pl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=kc(r.k):r.o,i=o,l=!1;r.i===3&&(i=new Set(o),o.clear(),l=!0),Gn(i,function(a,u){return kd(e,r,o,a,u,n,l)}),pl(e,o,!1),n&&e.u&&jt("Patches").N(r,n,e.u,e.s)}return r.o}function kd(e,t,n,r,o,i,l){if(_n(o)){var a=dl(e,o,i&&t&&t.i!==3&&!Cr(t.R,r)?i.concat(r):void 0);if(Jm(n,r,a),!_n(a))return;e.m=!1}else l&&n.add(o);if(Jt(o)&&!Rc(o)){if(!e.h.D&&e._<1)return;dl(e,o),t&&t.A.l||pl(e,o)}}function pl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Pc(t,n)}function Za(e,t){var n=e[ce];return(n?$n(n):e)[t]}function Pd(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 sn(e){e.P||(e.P=!0,e.l&&sn(e.l))}function eu(e){e.o||(e.o=kc(e.t))}function cs(e,t,n){var r=xc(t)?jt("MapSet").F(t,n):Cc(t)?jt("MapSet").T(t,n):e.O?function(o,i){var l=Array.isArray(o),a={i:l?1:0,A:i?i.A:us(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=a,s=bo;l&&(u=[a],s=co);var c=Proxy.revocable(u,s),f=c.revoke,m=c.proxy;return a.k=m,a.j=f,m}(t,n):jt("ES5").J(t,n);return(n?n.A:us()).p.push(r),r}function Uw(e){return _n(e)||xt(22,e),function t(n){if(!Jt(n))return n;var r,o=n[ce],i=Ur(n);if(o){if(!o.P&&(o.i<4||!jt("ES5").K(o)))return o.t;o.I=!0,r=Rd(n,i),o.I=!1}else r=Rd(n,i);return Gn(r,function(l,a){o&&$w(o.t,l)===a||Jm(r,l,t(a))}),i===3?new Set(r):r}(e)}function Rd(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return kc(e)}function Bw(){function e(i,l){var a=o[i];return a?a.enumerable=l:o[i]=a={configurable:!0,enumerable:l,get:function(){var u=this[ce];return bo.get(u,i)},set:function(u){var s=this[ce];bo.set(s,i,u)}},a}function t(i){for(var l=i.length-1;l>=0;l--){var a=i[l][ce];if(!a.P)switch(a.i){case 5:r(a)&&sn(a);break;case 4:n(a)&&sn(a)}}}function n(i){for(var l=i.t,a=i.k,u=kr(a),s=u.length-1;s>=0;s--){var c=u[s];if(c!==ce){var f=l[c];if(f===void 0&&!Cr(l,c))return!0;var m=a[c],g=m&&m[ce];if(g?g.t!==f:!Xm(m,f))return!0}}var p=!!l[ce];return u.length!==kr(l).length+(p?0:1)}function r(i){var l=i.k;if(l.length!==i.t.length)return!0;var a=Object.getOwnPropertyDescriptor(l,l.length-1);if(a&&!a.get)return!0;for(var u=0;u1?d-1:0),w=1;w1?c-1:0),m=1;m=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var l=jt("Patches").$;return _n(n)?l(n,r):this.produce(n,function(a){return l(a,r)})},e}(),rt=new Ww,Zm=rt.produce;rt.produceWithPatches.bind(rt);rt.setAutoFreeze.bind(rt);rt.setUseProxies.bind(rt);rt.applyPatches.bind(rt);rt.createDraft.bind(rt);rt.finishDraft.bind(rt);function Ho(e){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function Kw(e,t){if(Ho(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ho(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qw(e){var t=Kw(e,"string");return Ho(t)==="symbol"?t:String(t)}function qw(e,t,n){return t=Qw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ue(1));return n(ey)(e,t)}if(typeof e!="function")throw new Error(Ue(2));var o=e,i=t,l=[],a=l,u=!1;function s(){a===l&&(a=l.slice())}function c(){if(u)throw new Error(Ue(3));return i}function f(v){if(typeof v!="function")throw new Error(Ue(4));if(u)throw new Error(Ue(5));var S=!0;return s(),a.push(v),function(){if(S){if(u)throw new Error(Ue(6));S=!1,s();var h=a.indexOf(v);a.splice(h,1),l=null}}}function m(v){if(!Jw(v))throw new Error(Ue(7));if(typeof v.type>"u")throw new Error(Ue(8));if(u)throw new Error(Ue(9));try{u=!0,i=o(i,v)}finally{u=!1}for(var S=l=a,d=0;d"u")throw new Error(Ue(12));if(typeof n(void 0,{type:hl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ue(13))})}function Gw(e){for(var t=Object.keys(e),n={},r=0;r"u")throw s&&s.type,new Error(Ue(14));f[g]=S,c=c||S!==v}return c=c||i.length!==Object.keys(u).length,c?f:u}}function ml(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]t=>{const n=PS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dt=e=>(e=e.toLowerCase(),t=>la(t)===e),aa=e=>t=>typeof t===e,{isArray:Br}=Array,Vo=aa("undefined");function RS(e){return e!==null&&!Vo(e)&&e.constructor!==null&&!Vo(e.constructor)&&dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ay=Dt("ArrayBuffer");function _S(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ay(e.buffer),t}const TS=aa("string"),dt=aa("function"),uy=aa("number"),ua=e=>e!==null&&typeof e=="object",OS=e=>e===!0||e===!1,ji=e=>{if(la(e)!=="object")return!1;const t=Oc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},NS=Dt("Date"),LS=Dt("File"),jS=Dt("Blob"),DS=Dt("FileList"),MS=e=>ua(e)&&dt(e.pipe),AS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||dt(e.append)&&((t=la(e))==="formdata"||t==="object"&&dt(e.toString)&&e.toString()==="[object FormData]"))},$S=Dt("URLSearchParams"),zS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Go(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Br(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const cy=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fy=e=>!Vo(e)&&e!==cy;function ps(){const{caseless:e}=fy(this)&&this||{},t={},n=(r,o)=>{const i=e&&sy(t,o)||o;ji(t[i])&&ji(r)?t[i]=ps(t[i],r):ji(r)?t[i]=ps({},r):Br(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Go(t,(o,i)=>{n&&dt(o)?e[i]=ly(o,n):e[i]=o},{allOwnKeys:r}),e),FS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),US=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},BS=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Oc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bS=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HS=e=>{if(!e)return null;if(Br(e))return e;let t=e.length;if(!uy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oc(Uint8Array)),WS=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},KS=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},QS=Dt("HTMLFormElement"),qS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Id=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JS=Dt("RegExp"),dy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Go(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},XS=e=>{dy(e,(t,n)=>{if(dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(dt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},GS=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Br(e)?r(e):r(String(e).split(t)),n},YS=()=>{},ZS=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ou="abcdefghijklmnopqrstuvwxyz",Fd="0123456789",py={DIGIT:Fd,ALPHA:ou,ALPHA_DIGIT:ou+ou.toUpperCase()+Fd},eE=(e=16,t=py.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tE(e){return!!(e&&dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nE=e=>{const t=new Array(10),n=(r,o)=>{if(ua(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Br(r)?[]:{};return Go(r,(l,a)=>{const u=n(l,o+1);!Vo(u)&&(i[a]=u)}),t[o]=void 0,i}}return r};return n(e,0)},rE=Dt("AsyncFunction"),oE=e=>e&&(ua(e)||dt(e))&&dt(e.then)&&dt(e.catch),P={isArray:Br,isArrayBuffer:ay,isBuffer:RS,isFormData:AS,isArrayBufferView:_S,isString:TS,isNumber:uy,isBoolean:OS,isObject:ua,isPlainObject:ji,isUndefined:Vo,isDate:NS,isFile:LS,isBlob:jS,isRegExp:JS,isFunction:dt,isStream:MS,isURLSearchParams:$S,isTypedArray:VS,isFileList:DS,forEach:Go,merge:ps,extend:IS,trim:zS,stripBOM:FS,inherits:US,toFlatObject:BS,kindOf:la,kindOfTest:Dt,endsWith:bS,toArray:HS,forEachEntry:WS,matchAll:KS,isHTMLForm:QS,hasOwnProperty:Id,hasOwnProp:Id,reduceDescriptors:dy,freezeMethods:XS,toObjectSet:GS,toCamelCase:qS,noop:YS,toFiniteNumber:ZS,findKey:sy,global:cy,isContextDefined:fy,ALPHABET:py,generateString:eE,isSpecCompliantForm:tE,toJSONObject:nE,isAsyncFn:rE,isThenable:oE};function q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}P.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hy=q.prototype,my={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{my[e]={value:e}});Object.defineProperties(q,my);Object.defineProperty(hy,"isAxiosError",{value:!0});q.from=(e,t,n,r,o,i)=>{const l=Object.create(hy);return P.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),q.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const iE=null;function hs(e){return P.isPlainObject(e)||P.isArray(e)}function yy(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function Ud(e,t,n){return e?e.concat(t).map(function(o,i){return o=yy(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function lE(e){return P.isArray(e)&&!e.some(hs)}const aE=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function sa(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!P.isUndefined(S[v])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function s(p){if(p===null)return"";if(P.isDate(p))return p.toISOString();if(!u&&P.isBlob(p))throw new q("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(p)||P.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,S){let d=p;if(p&&!S&&typeof p=="object"){if(P.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(P.isArray(p)&&lE(p)||(P.isFileList(p)||P.endsWith(v,"[]"))&&(d=P.toArray(p)))return v=yy(v),d.forEach(function(w,y){!(P.isUndefined(w)||w===null)&&t.append(l===!0?Ud([v],y,i):l===null?v:v+"[]",s(w))}),!1}return hs(p)?!0:(t.append(Ud(S,v,i),s(p)),!1)}const f=[],m=Object.assign(aE,{defaultVisitor:c,convertValue:s,isVisitable:hs});function g(p,v){if(!P.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),P.forEach(p,function(d,h){(!(P.isUndefined(d)||d===null)&&o.call(t,d,P.isString(h)?h.trim():h,v,m))===!0&&g(d,v?v.concat(h):[h])}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Bd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Nc(e,t){this._pairs=[],e&&sa(e,this,t)}const vy=Nc.prototype;vy.append=function(t,n){this._pairs.push([t,n])};vy.toString=function(t){const n=t?function(r){return t.call(this,r,Bd)}:Bd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function uE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gy(e,t,n){if(!t)return e;const r=n&&n.encode||uE,o=n&&n.serialize;let i;if(o?i=o(t,n):i=P.isURLSearchParams(t)?t.toString():new Nc(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class sE{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const bd=sE,wy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cE=typeof URLSearchParams<"u"?URLSearchParams:Nc,fE=typeof FormData<"u"?FormData:null,dE=typeof Blob<"u"?Blob:null,pE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ot={isBrowser:!0,classes:{URLSearchParams:cE,FormData:fE,Blob:dE},isStandardBrowserEnv:pE,isStandardBrowserWebWorkerEnv:hE,protocols:["http","https","file","blob","url","data"]};function mE(e,t){return sa(e,new Ot.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ot.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yE(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vE(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&P.isArray(o)?o.length:l,u?(P.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!P.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&P.isArray(o[l])&&(o[l]=vE(o[l])),!a)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,o)=>{t(yE(r),o,n,0)}),n}return null}function gE(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Lc={transitional:wy,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o&&o?JSON.stringify(Sy(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mE(t,this.formSerializer).toString();if((a=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return sa(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),gE(t)):t}],transformResponse:[function(t){const n=this.transitional||Lc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&P.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?q.from(a,q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ot.classes.FormData,Blob:Ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],e=>{Lc.headers[e]={}});const jc=Lc,wE=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SE=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&wE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Hd=Symbol("internals");function io(e){return e&&String(e).trim().toLowerCase()}function Di(e){return e===!1||e==null?e:P.isArray(e)?e.map(Di):String(e)}function EE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iu(e,t,n,r,o){if(P.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function CE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kE(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class ca{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,u,s){const c=io(u);if(!c)throw new Error("header name must be a non-empty string");const f=P.findKey(o,c);(!f||o[f]===void 0||s===!0||s===void 0&&o[f]!==!1)&&(o[f||u]=Di(a))}const l=(a,u)=>P.forEach(a,(s,c)=>i(s,c,u));return P.isPlainObject(t)||t instanceof this.constructor?l(t,n):P.isString(t)&&(t=t.trim())&&!xE(t)?l(SE(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=io(t),t){const r=P.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return EE(o);if(P.isFunction(n))return n.call(this,o,r);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=io(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||iu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=io(l),l){const a=P.findKey(r,l);a&&(!n||iu(r,r[a],a,n))&&(delete r[a],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||iu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return P.forEach(this,(o,i)=>{const l=P.findKey(r,i);if(l){n[l]=Di(o),delete n[i];return}const a=t?CE(i):String(i).trim();a!==i&&delete n[i],n[a]=Di(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Hd]=this[Hd]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=io(l);r[a]||(kE(o,l),r[a]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}}ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(ca.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(ca);const Vt=ca;function lu(e,t){const n=this||jc,r=t||n,o=Vt.from(r.headers);let i=r.data;return P.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ey(e){return!!(e&&e.__CANCEL__)}function Yo(e,t,n){q.call(this,e??"canceled",q.ERR_CANCELED,t,n),this.name="CanceledError"}P.inherits(Yo,q,{__CANCEL__:!0});function PE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const RE=Ot.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,a){const u=[];u.push(n+"="+encodeURIComponent(r)),P.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),P.isString(i)&&u.push("path="+i),P.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _E(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function xy(e,t){return e&&!_E(t)?TE(e,t):t}const OE=Ot.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=P.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function NE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[i];l||(l=s),n[o]=u,r[o]=s;let f=i,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),s-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-n,u=r(a),s=i<=l;n=i;const c={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&s?(l-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const jE=typeof XMLHttpRequest<"u",DE=jE&&function(e){return new Promise(function(n,r){let o=e.data;const i=Vt.from(e.headers).normalize(),l=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let s;P.isFormData(o)&&(Ot.isStandardBrowserEnv||Ot.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?P.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+v))}const f=xy(e.baseURL,e.url);c.open(e.method.toUpperCase(),gy(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(!c)return;const p=Vt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};PE(function(h){n(h),u()},function(h){r(h),u()},S),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(r(new q("Request aborted",q.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new q("Network Error",q.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||wy;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new q(v,S.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,c)),c=null},Ot.isStandardBrowserEnv){const p=(e.withCredentials||OE(f))&&e.xsrfCookieName&&RE.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&P.forEach(i.toJSON(),function(v,S){c.setRequestHeader(S,v)}),P.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Vd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Vd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{c&&(r(!p||p.type?new Yo(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=NE(f);if(g&&Ot.protocols.indexOf(g)===-1){r(new q("Unsupported protocol "+g+":",q.ERR_BAD_REQUEST,e));return}c.send(o||null)})},ms={http:iE,xhr:DE};P.forEach(ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wd=e=>`- ${e}`,ME=e=>P.isFunction(e)||e===null||e===!1,Cy={getAdapter:e=>{e=P.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : -`+i.map(Wd).join(` -`):" "+Wd(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:ms};function au(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yo(null,e)}function Kd(e){return au(e),e.headers=Vt.from(e.headers),e.data=lu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cy.getAdapter(e.adapter||jc.adapter)(e).then(function(r){return au(e),r.data=lu.call(e,e.transformResponse,r),r.headers=Vt.from(r.headers),r},function(r){return Ey(r)||(au(e),r&&r.response&&(r.response.data=lu.call(e,e.transformResponse,r.response),r.response.headers=Vt.from(r.response.headers))),Promise.reject(r)})}const Qd=e=>e instanceof Vt?e.toJSON():e;function Mr(e,t){t=t||{};const n={};function r(s,c,f){return P.isPlainObject(s)&&P.isPlainObject(c)?P.merge.call({caseless:f},s,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function o(s,c,f){if(P.isUndefined(c)){if(!P.isUndefined(s))return r(void 0,s,f)}else return r(s,c,f)}function i(s,c){if(!P.isUndefined(c))return r(void 0,c)}function l(s,c){if(P.isUndefined(c)){if(!P.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function a(s,c,f){if(f in t)return r(s,c);if(f in e)return r(void 0,s)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(s,c)=>o(Qd(s),Qd(c),!0)};return P.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||o,m=f(e[c],t[c],c);P.isUndefined(m)&&f!==a||(n[c]=m)}),n}const ky="1.5.1",Dc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Dc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qd={};Dc.transitional=function(t,n,r){function o(i,l){return"[Axios v"+ky+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new q(o(l," has been removed"+(n?" in "+n:"")),q.ERR_DEPRECATED);return n&&!qd[l]&&(qd[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function AE(e,t,n){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],u=a===void 0||l(a,i,e);if(u!==!0)throw new q("option "+i+" must be "+u,q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const ys={assertOptions:AE,validators:Dc},rn=ys.validators;class yl{constructor(t){this.defaults=t,this.interceptors={request:new bd,response:new bd}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ys.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:ys.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Vt.concat(l,i);const a=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let c,f=0,m;if(!u){const p=[Kd.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,s),m=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new Yo(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Mc(function(o){t=o}),cancel:t}}}const $E=Mc;function zE(e){return function(n){return e.apply(null,n)}}function IE(e){return P.isObject(e)&&e.isAxiosError===!0}const vs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vs).forEach(([e,t])=>{vs[t]=e});const FE=vs;function Py(e){const t=new Mi(e),n=ly(Mi.prototype.request,t);return P.extend(n,Mi.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Py(Mr(e,o))},n}const _e=Py(jc);_e.Axios=Mi;_e.CanceledError=Yo;_e.CancelToken=$E;_e.isCancel=Ey;_e.VERSION=ky;_e.toFormData=sa;_e.AxiosError=q;_e.Cancel=_e.CanceledError;_e.all=function(t){return Promise.all(t)};_e.spread=zE;_e.isAxiosError=IE;_e.mergeConfig=Mr;_e.AxiosHeaders=Vt;_e.formToJSON=e=>Sy(P.isHTMLForm(e)?new FormData(e):e);_e.getAdapter=Cy.getAdapter;_e.HttpStatusCode=FE;_e.default=_e;const Ry=_e,_y="https://example-data.draftbit.com/books",Ai=iy("books/fetchAllBooks",async()=>{try{return await(await Ry.get(_y)).data}catch(e){console.log(e.message)}}),$i=iy("books/fetchSingleBook",async e=>{try{return(await(await Ry.get(_y)).data).find(o=>o.id===e)}catch(t){console.log(t.message)}}),UE={books:[],isLoading:!1,singleBook:{}},Ty=gS({name:"books",initialState:UE,reducers:{removeSelectedBook:e=>{e.singleBook={}}},extraReducers:e=>{e.addCase(Ai.pending,t=>{t.isLoading=!0}).addCase(Ai.fulfilled,(t,{payload:n})=>{t.books=n,t.isLoading=!1}).addCase(Ai.rejected,(t,{payload:n})=>{t.isLoading=!1}).addCase($i.pending,t=>{t.isLoading==!0}).addCase($i.fulfilled,(t,{payload:n})=>{t.singleBook=n,t.isLoading=!1}).addCase($i.rejected,(t,{payload:n})=>{t.isLoading=!1})}}),{removeSelectedBook:BE}=Ty.actions,bE=Ty.reducer,HE=()=>{const e=Wm();return k.useEffect(()=>{e(Ai())},[]),j.jsxs("section",{className:"home",children:[j.jsx("div",{className:"home__title",children:j.jsx("h2",{children:"Books List"})}),j.jsx("div",{className:"container",children:j.jsx(Aw,{})})]})};function VE(e){return qm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.012 18H21V4a2 2 0 0 0-2-2H6c-1.206 0-3 .799-3 3v14c0 2.201 1.794 3 3 3h15v-2H6.012C5.55 19.988 5 19.805 5 19s.55-.988 1.012-1zM8 6h9v2H8V6z"}}]})(e)}const WE=()=>j.jsx("header",{className:"header",children:j.jsx("div",{className:"container",children:j.jsx("div",{className:"header__logo",children:j.jsxs(Il,{to:"/",children:[j.jsx(VE,{}),"BOOK",j.jsx("span",{children:"ERA"})]})})})}),KE=()=>j.jsxs(j.Fragment,{children:[j.jsx(WE,{}),j.jsx("main",{children:j.jsx(x1,{})})]});const QE=()=>{const{bookID:e}=f1(),t=Number(e),n=Wm(),{isLoading:r,singleBook:o}=Im(g=>g.books);if(k.useEffect(()=>(n($i(t)),()=>{n(BE())}),[t]),r)return j.jsx("div",{className:"loading",children:j.jsxs("div",{className:"lds-ripple",children:[j.jsx("div",{}),j.jsx("div",{})]})});const{id:i,title:l,authors:a,image_url:u,genre_list:s,num_pages:c,rating:f,description:m}=o;return j.jsx("section",{className:"book-detail",children:j.jsx("div",{className:"container",children:j.jsxs("div",{className:"single-book",children:[j.jsx("figure",{children:j.jsx("img",{src:u,alt:l})}),j.jsxs("div",{children:[j.jsx("h4",{children:l}),j.jsx("h5",{children:a}),j.jsxs("p",{children:[j.jsx("span",{children:"Rating:"})," ",f]}),j.jsxs("p",{children:[j.jsx("span",{children:"Pages:"})," ",c]}),j.jsxs("p",{children:[j.jsx("span",{children:"Genres:"})," ",s]}),j.jsx("p",{children:m}),j.jsx(Il,{to:"/",className:"single-book--btn",children:"Back to Home"})]})]})})})};const Jd=()=>{const e=Nm();return console.log(e),j.jsxs("div",{className:"error-page error-page--single",children:[j.jsx("p",{children:e.message}),j.jsx(Il,{to:"/",className:"error-page--btn",children:"Back to Home"})]})},qE=O1([{path:"redux-book-store/",element:j.jsx(KE,{}),children:[{index:!0,element:j.jsx(HE,{}),errorElement:j.jsx(Jd,{})},{path:"/book/:bookID",element:j.jsx(QE,{}),errorElement:j.jsx(Jd,{})}]}]);function JE(){return j.jsx(j.Fragment,{children:j.jsx($1,{router:qE})})}function Oy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),vl=e=>typeof e=="string",et=e=>typeof e=="function",Ii=e=>vl(e)||et(e)?e:null,uu=e=>k.isValidElement(e)||vl(e)||et(e)||zi(e);function XE(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function fa(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(l){let{children:a,position:u,preventExitTransition:s,done:c,nodeRef:f,isIn:m}=l;const g=r?`${t}--${u}`:t,p=r?`${n}--${u}`:n,v=k.useRef(0);return k.useLayoutEffect(()=>{const S=f.current,d=g.split(" "),h=w=>{w.target===f.current&&(S.dispatchEvent(new Event("d")),S.removeEventListener("animationend",h),S.removeEventListener("animationcancel",h),v.current===0&&w.type!=="animationcancel"&&S.classList.remove(...d))};S.classList.add(...d),S.addEventListener("animationend",h),S.addEventListener("animationcancel",h)},[]),k.useEffect(()=>{const S=f.current,d=()=>{S.removeEventListener("animationend",d),o?XE(S,c,i):c()};m||(s?d():(v.current=1,S.className+=` ${p}`,S.addEventListener("animationend",d)))},[m]),Q.createElement(Q.Fragment,null,a)}}function Xd(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Bn={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},wi=e=>{let{theme:t,type:n,...r}=e;return Q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},su={info:function(e){return Q.createElement(wi,{...e},Q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Q.createElement(wi,{...e},Q.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Q.createElement(wi,{...e},Q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Q.createElement(wi,{...e},Q.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Q.createElement("div",{className:"Toastify__spinner"})}};function GE(e){const[,t]=k.useReducer(g=>g+1,0),[n,r]=k.useState([]),o=k.useRef(null),i=k.useRef(new Map).current,l=g=>n.indexOf(g)!==-1,a=k.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:g=>i.get(g)}).current;function u(g){let{containerId:p}=g;const{limit:v}=a.props;!v||p&&a.containerId!==p||(a.count-=a.queue.length,a.queue=[])}function s(g){r(p=>g==null?[]:p.filter(v=>v!==g))}function c(){const{toastContent:g,toastProps:p,staleId:v}=a.queue.shift();m(g,p,v)}function f(g,p){let{delay:v,staleId:S,...d}=p;if(!uu(g)||function(ie){return!o.current||a.props.enableMultiContainer&&ie.containerId!==a.props.containerId||i.has(ie.toastId)&&ie.updateId==null}(d))return;const{toastId:h,updateId:w,data:y}=d,{props:x}=a,R=()=>s(h),_=w==null;_&&a.count++;const O={...x,style:x.toastStyle,key:a.toastKey++,...Object.fromEntries(Object.entries(d).filter(ie=>{let[Pe,Se]=ie;return Se!=null})),toastId:h,updateId:w,data:y,closeToast:R,isIn:!1,className:Ii(d.className||x.toastClassName),bodyClassName:Ii(d.bodyClassName||x.bodyClassName),progressClassName:Ii(d.progressClassName||x.progressClassName),autoClose:!d.isLoading&&(F=d.autoClose,A=x.autoClose,F===!1||zi(F)&&F>0?F:A),deleteToast(){const ie=Xd(i.get(h),"removed");i.delete(h),Bn.emit(4,ie);const Pe=a.queue.length;if(a.count=h==null?a.count-a.displayedToast:a.count-1,a.count<0&&(a.count=0),Pe>0){const Se=h==null?a.props.limit:1;if(Pe===1||Se===1)a.displayedToast++,c();else{const G=Se>Pe?Pe:Se;a.displayedToast=G;for(let ge=0;ge$ in su)(Se)&&(Te=su[Se](L))),Te}(O),et(d.onOpen)&&(O.onOpen=d.onOpen),et(d.onClose)&&(O.onClose=d.onClose),O.closeButton=x.closeButton,d.closeButton===!1||uu(d.closeButton)?O.closeButton=d.closeButton:d.closeButton===!0&&(O.closeButton=!uu(x.closeButton)||x.closeButton);let X=g;k.isValidElement(g)&&!vl(g.type)?X=k.cloneElement(g,{closeToast:R,toastProps:O,data:y}):et(g)&&(X=g({closeToast:R,toastProps:O,data:y})),x.limit&&x.limit>0&&a.count>x.limit&&_?a.queue.push({toastContent:X,toastProps:O,staleId:S}):zi(v)?setTimeout(()=>{m(X,O,S)},v):m(X,O,S)}function m(g,p,v){const{toastId:S}=p;v&&i.delete(v);const d={content:g,props:p};i.set(S,d),r(h=>[...h,S].filter(w=>w!==v)),Bn.emit(4,Xd(d,d.props.updateId==null?"added":"updated"))}return k.useEffect(()=>(a.containerId=e.containerId,Bn.cancelEmit(3).on(0,f).on(1,g=>o.current&&s(g)).on(5,u).emit(2,a),()=>{i.clear(),Bn.emit(3,a)}),[]),k.useEffect(()=>{a.props=e,a.isToastActive=l,a.displayedToast=n.length}),{getToastToRender:function(g){const p=new Map,v=Array.from(i.values());return e.newestOnTop&&v.reverse(),v.forEach(S=>{const{position:d}=S.props;p.has(d)||p.set(d,[]),p.get(d).push(S)}),Array.from(p,S=>g(S[0],S[1]))},containerRef:o,isToastActive:l}}function Gd(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Yd(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function YE(e){const[t,n]=k.useState(!1),[r,o]=k.useState(!1),i=k.useRef(null),l=k.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,a=k.useRef(e),{autoClose:u,pauseOnHover:s,closeToast:c,onClick:f,closeOnClick:m}=e;function g(y){if(e.draggable){y.nativeEvent.type==="touchstart"&&y.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",d),document.addEventListener("mouseup",h),document.addEventListener("touchmove",d),document.addEventListener("touchend",h);const x=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=x.getBoundingClientRect(),x.style.transition="",l.x=Gd(y.nativeEvent),l.y=Yd(y.nativeEvent),e.draggableDirection==="x"?(l.start=l.x,l.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function p(y){if(l.boundingRect){const{top:x,bottom:R,left:_,right:O}=l.boundingRect;y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&l.x>=_&&l.x<=O&&l.y>=x&&l.y<=R?S():v()}}function v(){n(!0)}function S(){n(!1)}function d(y){const x=i.current;l.canDrag&&x&&(l.didMove=!0,t&&S(),l.x=Gd(y),l.y=Yd(y),l.delta=e.draggableDirection==="x"?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),x.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,x.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function h(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",d),document.removeEventListener("touchend",h);const y=i.current;if(l.canDrag&&l.didMove&&y){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),void e.closeToast();y.style.transition="transform 0.2s, opacity 0.2s",y.style.transform=`translate${e.draggableDirection}(0)`,y.style.opacity="1"}}k.useEffect(()=>{a.current=e}),k.useEffect(()=>(i.current&&i.current.addEventListener("d",v,{once:!0}),et(e.onOpen)&&e.onOpen(k.isValidElement(e.children)&&e.children.props),()=>{const y=a.current;et(y.onClose)&&y.onClose(k.isValidElement(y.children)&&y.children.props)}),[]),k.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||S(),window.addEventListener("focus",v),window.addEventListener("blur",S)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",S))}),[e.pauseOnFocusLoss]);const w={onMouseDown:g,onTouchStart:g,onMouseUp:p,onTouchEnd:p};return u&&s&&(w.onMouseEnter=S,w.onMouseLeave=v),m&&(w.onClick=y=>{f&&f(y),l.canCloseOnClick&&c()}),{playToast:v,pauseToast:S,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:w}}function Ny(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return Q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":r},Q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Q.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ZE(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:l,style:a,controlledProgress:u,progress:s,rtl:c,isIn:f,theme:m}=e;const g=i||u&&s===0,p={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};u&&(p.transform=`scaleX(${s})`);const v=dn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":c}),S=et(l)?l({rtl:c,type:o,defaultClassName:v}):dn(v,l);return Q.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:S,style:p,[u&&s>=1?"onTransitionEnd":"onAnimationEnd"]:u&&s<1?null:()=>{f&&r()}})}const ex=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o}=YE(e),{closeButton:i,children:l,autoClose:a,onClick:u,type:s,hideProgressBar:c,closeToast:f,transition:m,position:g,className:p,style:v,bodyClassName:S,bodyStyle:d,progressClassName:h,progressStyle:w,updateId:y,role:x,progress:R,rtl:_,toastId:O,deleteToast:F,isIn:A,isLoading:X,iconOut:ie,closeOnClick:Pe,theme:Se}=e,G=dn("Toastify__toast",`Toastify__toast-theme--${Se}`,`Toastify__toast--${s}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Pe}),ge=et(p)?p({rtl:_,position:g,type:s,defaultClassName:G}):dn(G,p),Te=!!R||!a,L={closeToast:f,type:s,theme:Se};let $=null;return i===!1||($=et(i)?i(L):k.isValidElement(i)?k.cloneElement(i,L):Ny(L)),Q.createElement(m,{isIn:A,done:F,position:g,preventExitTransition:n,nodeRef:r},Q.createElement("div",{id:O,onClick:u,className:ge,...o,style:v,ref:r},Q.createElement("div",{...A&&{role:x},className:et(S)?S({type:s}):dn("Toastify__toast-body",S),style:d},ie!=null&&Q.createElement("div",{className:dn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!X})},ie),Q.createElement("div",null,l)),$,Q.createElement(ZE,{...y&&!Te?{key:`pb-${y}`}:{},rtl:_,theme:Se,delay:a,isRunning:t,isIn:A,closeToast:f,hide:c,type:s,style:w,className:h,controlledProgress:Te,progress:R||0})))},da=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},tx=fa(da("bounce",!0));fa(da("slide",!0));fa(da("zoom"));fa(da("flip"));const gs=k.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:o}=GE(e),{className:i,style:l,rtl:a,containerId:u}=e;function s(c){const f=dn("Toastify__toast-container",`Toastify__toast-container--${c}`,{"Toastify__toast-container--rtl":a});return et(i)?i({position:c,rtl:a,defaultClassName:f}):dn(f,Ii(i))}return k.useEffect(()=>{t&&(t.current=r.current)},[]),Q.createElement("div",{ref:r,className:"Toastify",id:u},n((c,f)=>{const m=f.length?{...l}:{...l,pointerEvents:"none"};return Q.createElement("div",{className:s(c),style:m,key:`container-${c}`},f.map((g,p)=>{let{content:v,props:S}=g;return Q.createElement(ex,{...S,isIn:o(S.toastId),style:{...S.style,"--nth":p+1,"--len":f.length},key:`toast-${S.key}`},v)}))}))});gs.displayName="ToastContainer",gs.defaultProps={position:"top-right",transition:tx,autoClose:5e3,closeButton:Ny,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Zd,cu=new Map,ep=[];Bn.on(2,e=>{Zd=e.containerId||e,cu.set(Zd,e),ep.forEach(t=>{Bn.emit(0,t.content,t.options)}),ep=[]}).on(3,e=>{cu.delete(e.containerId||e),cu.size===0&&Bn.off(0).off(1).off(5)});const nx=hS({reducer:{books:bE}});fu.createRoot(document.getElementById("root")).render(j.jsx(Q.StrictMode,{children:j.jsxs(Tw,{store:nx,children:[j.jsx(gs,{position:"top-center",autoClose:2e3}),j.jsx(JE,{})]})})); + */var Ec=Symbol.for("react.element"),xc=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),Gl=Symbol.for("react.strict_mode"),Yl=Symbol.for("react.profiler"),Zl=Symbol.for("react.provider"),ea=Symbol.for("react.context"),xw=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),na=Symbol.for("react.suspense"),ra=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),ia=Symbol.for("react.lazy"),Cw=Symbol.for("react.offscreen"),Hm;Hm=Symbol.for("react.module.reference");function mt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ec:switch(e=e.type,e){case Xl:case Yl:case Gl:case na:case ra:return e;default:switch(e=e&&e.$$typeof,e){case xw:case ea:case ta:case ia:case oa:case Zl:return e;default:return t}}case xc:return t}}}ne.ContextConsumer=ea;ne.ContextProvider=Zl;ne.Element=Ec;ne.ForwardRef=ta;ne.Fragment=Xl;ne.Lazy=ia;ne.Memo=oa;ne.Portal=xc;ne.Profiler=Yl;ne.StrictMode=Gl;ne.Suspense=na;ne.SuspenseList=ra;ne.isAsyncMode=function(){return!1};ne.isConcurrentMode=function(){return!1};ne.isContextConsumer=function(e){return mt(e)===ea};ne.isContextProvider=function(e){return mt(e)===Zl};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ec};ne.isForwardRef=function(e){return mt(e)===ta};ne.isFragment=function(e){return mt(e)===Xl};ne.isLazy=function(e){return mt(e)===ia};ne.isMemo=function(e){return mt(e)===oa};ne.isPortal=function(e){return mt(e)===xc};ne.isProfiler=function(e){return mt(e)===Yl};ne.isStrictMode=function(e){return mt(e)===Gl};ne.isSuspense=function(e){return mt(e)===na};ne.isSuspenseList=function(e){return mt(e)===ra};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xl||e===Yl||e===Gl||e===na||e===ra||e===Cw||typeof e=="object"&&e!==null&&(e.$$typeof===ia||e.$$typeof===oa||e.$$typeof===Zl||e.$$typeof===ea||e.$$typeof===ta||e.$$typeof===Hm||e.getModuleId!==void 0)};ne.typeOf=mt;function kw(){const e=uw();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const xd={notify(){},get:()=>[]};function Pw(e,t){let n,r=xd,o=0,i=!1;function l(v){c();const S=r.subscribe(v);let d=!1;return()=>{d||(d=!0,S(),f())}}function a(){r.notify()}function u(){p.onStateChange&&p.onStateChange()}function s(){return i}function c(){o++,n||(n=t?t.addNestedSub(u):e.subscribe(u),r=kw())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=xd)}function m(){i||(i=!0,c())}function g(){i&&(i=!1,f())}const p={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:s,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return p}const Rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_w=Rw?k.useLayoutEffect:k.useEffect;function Tw({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const l=k.useMemo(()=>{const s=Pw(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}},[e,r,o,i]),a=k.useMemo(()=>e.getState(),[e]);_w(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),a!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,a]);const u=t||_n;return k.createElement(u.Provider,{value:l},n)}function Vm(e=_n){const t=e===_n?$m:vc(e);return function(){const{store:r}=t();return r}}const Ow=Vm();function Nw(e=_n){const t=e===_n?Ow:Vm(e);return function(){return t().dispatch}}const Wm=Nw();fw(iw.useSyncExternalStoreWithSelector);aw(mm.unstable_batchedUpdates);var Km={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cd=Q.createContext&&Q.createContext(Km),En=globalThis&&globalThis.__assign||function(){return En=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{id:t,title:n,authors:r,image_url:o,num_pages:i}=e;return j.jsxs(Go,{className:"book-card",to:`/book/${t}`,children:[j.jsx("figure",{children:j.jsx("img",{src:o,alt:n})}),j.jsxs("div",{children:[j.jsx("h4",{children:n}),j.jsx("h5",{children:r}),j.jsxs("p",{children:[j.jsx("span",{children:"Pages:"})," ",i]})]}),j.jsxs("div",{className:"book-card--hover",children:[j.jsx(Dw,{})," Read More"]})]})};const Aw=()=>{const{books:e,isLoading:t}=Im(n=>n.books);return t?j.jsx("div",{className:"loading",children:j.jsxs("div",{className:"lds-ripple",children:[j.jsx("div",{}),j.jsx("div",{})]})}):j.jsx("div",{className:"book-list",children:e==null?void 0:e.map(n=>j.jsx(Mw,{book:n},n.id))})};function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Cc(e)?2:kc(e)?3:0}function Cr(e,t){return Ur(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $w(e,t){return Ur(e)===2?e.get(t):e[t]}function Jm(e,t,n){var r=Ur(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Xm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Cc(e){return Bw&&e instanceof Map}function kc(e){return Hw&&e instanceof Set}function zn(e){return e.o||e.t}function Pc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ym(e);delete t[ce];for(var n=kr(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=zw),Object.freeze(e),t&&Gn(e,function(n,r){return Rc(r,!0)},!0)),e}function zw(){xt(2)}function _c(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jt(e){var t=fs[e];return t||xt(18,e),t}function Iw(e,t){fs[e]||(fs[e]=t)}function us(){return bo}function Ga(e,t){t&&(jt("Patches"),e.u=[],e.s=[],e.v=t)}function dl(e){ss(e),e.p.forEach(Fw),e.p=null}function ss(e){e===bo&&(bo=e.l)}function kd(e){return bo={p:[],l:bo,h:e,m:!0,_:0}}function Fw(e){var t=e[ce];t.i===0||t.i===1?t.j():t.g=!0}function Ya(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||jt("ES5").S(t,e,r),r?(n[ce].P&&(dl(t),xt(4)),Xt(e)&&(e=pl(t,e),t.l||hl(t,e)),t.u&&jt("Patches").M(n[ce].t,e,t.u,t.s)):e=pl(t,n,[]),dl(t),t.u&&t.v(t.u,t.s),e!==Gm?e:void 0}function pl(e,t,n){if(_c(t))return t;var r=t[ce];if(!r)return Gn(t,function(a,u){return Pd(e,r,t,a,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return hl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Pc(r.k):r.o,i=o,l=!1;r.i===3&&(i=new Set(o),o.clear(),l=!0),Gn(i,function(a,u){return Pd(e,r,o,a,u,n,l)}),hl(e,o,!1),n&&e.u&&jt("Patches").N(r,n,e.u,e.s)}return r.o}function Pd(e,t,n,r,o,i,l){if(Tn(o)){var a=pl(e,o,i&&t&&t.i!==3&&!Cr(t.R,r)?i.concat(r):void 0);if(Jm(n,r,a),!Tn(a))return;e.m=!1}else l&&n.add(o);if(Xt(o)&&!_c(o)){if(!e.h.D&&e._<1)return;pl(e,o),t&&t.A.l||hl(e,o)}}function hl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Rc(t,n)}function Za(e,t){var n=e[ce];return(n?zn(n):e)[t]}function Rd(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 sn(e){e.P||(e.P=!0,e.l&&sn(e.l))}function eu(e){e.o||(e.o=Pc(e.t))}function cs(e,t,n){var r=Cc(t)?jt("MapSet").F(t,n):kc(t)?jt("MapSet").T(t,n):e.O?function(o,i){var l=Array.isArray(o),a={i:l?1:0,A:i?i.A:us(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=a,s=Bo;l&&(u=[a],s=co);var c=Proxy.revocable(u,s),f=c.revoke,m=c.proxy;return a.k=m,a.j=f,m}(t,n):jt("ES5").J(t,n);return(n?n.A:us()).p.push(r),r}function Uw(e){return Tn(e)||xt(22,e),function t(n){if(!Xt(n))return n;var r,o=n[ce],i=Ur(n);if(o){if(!o.P&&(o.i<4||!jt("ES5").K(o)))return o.t;o.I=!0,r=_d(n,i),o.I=!1}else r=_d(n,i);return Gn(r,function(l,a){o&&$w(o.t,l)===a||Jm(r,l,t(a))}),i===3?new Set(r):r}(e)}function _d(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pc(e)}function bw(){function e(i,l){var a=o[i];return a?a.enumerable=l:o[i]=a={configurable:!0,enumerable:l,get:function(){var u=this[ce];return Bo.get(u,i)},set:function(u){var s=this[ce];Bo.set(s,i,u)}},a}function t(i){for(var l=i.length-1;l>=0;l--){var a=i[l][ce];if(!a.P)switch(a.i){case 5:r(a)&&sn(a);break;case 4:n(a)&&sn(a)}}}function n(i){for(var l=i.t,a=i.k,u=kr(a),s=u.length-1;s>=0;s--){var c=u[s];if(c!==ce){var f=l[c];if(f===void 0&&!Cr(l,c))return!0;var m=a[c],g=m&&m[ce];if(g?g.t!==f:!Xm(m,f))return!0}}var p=!!l[ce];return u.length!==kr(l).length+(p?0:1)}function r(i){var l=i.k;if(l.length!==i.t.length)return!0;var a=Object.getOwnPropertyDescriptor(l,l.length-1);if(a&&!a.get)return!0;for(var u=0;u1?d-1:0),w=1;w1?c-1:0),m=1;m=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var l=jt("Patches").$;return Tn(n)?l(n,r):this.produce(n,function(a){return l(a,r)})},e}(),rt=new Ww,Zm=rt.produce;rt.produceWithPatches.bind(rt);rt.setAutoFreeze.bind(rt);rt.setUseProxies.bind(rt);rt.applyPatches.bind(rt);rt.createDraft.bind(rt);rt.finishDraft.bind(rt);function Ho(e){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function Kw(e,t){if(Ho(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ho(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qw(e){var t=Kw(e,"string");return Ho(t)==="symbol"?t:String(t)}function qw(e,t,n){return t=Qw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ue(1));return n(ey)(e,t)}if(typeof e!="function")throw new Error(Ue(2));var o=e,i=t,l=[],a=l,u=!1;function s(){a===l&&(a=l.slice())}function c(){if(u)throw new Error(Ue(3));return i}function f(v){if(typeof v!="function")throw new Error(Ue(4));if(u)throw new Error(Ue(5));var S=!0;return s(),a.push(v),function(){if(S){if(u)throw new Error(Ue(6));S=!1,s();var h=a.indexOf(v);a.splice(h,1),l=null}}}function m(v){if(!Jw(v))throw new Error(Ue(7));if(typeof v.type>"u")throw new Error(Ue(8));if(u)throw new Error(Ue(9));try{u=!0,i=o(i,v)}finally{u=!1}for(var S=l=a,d=0;d"u")throw new Error(Ue(12));if(typeof n(void 0,{type:ml.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ue(13))})}function Gw(e){for(var t=Object.keys(e),n={},r=0;r"u")throw s&&s.type,new Error(Ue(14));f[g]=S,c=c||S!==v}return c=c||i.length!==Object.keys(u).length,c?f:u}}function yl(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]t=>{const n=PS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>la(t)===e),aa=e=>t=>typeof t===e,{isArray:br}=Array,Vo=aa("undefined");function RS(e){return e!==null&&!Vo(e)&&e.constructor!==null&&!Vo(e.constructor)&&dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ay=Mt("ArrayBuffer");function _S(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ay(e.buffer),t}const TS=aa("string"),dt=aa("function"),uy=aa("number"),ua=e=>e!==null&&typeof e=="object",OS=e=>e===!0||e===!1,Di=e=>{if(la(e)!=="object")return!1;const t=Nc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},NS=Mt("Date"),LS=Mt("File"),jS=Mt("Blob"),DS=Mt("FileList"),MS=e=>ua(e)&&dt(e.pipe),AS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||dt(e.append)&&((t=la(e))==="formdata"||t==="object"&&dt(e.toString)&&e.toString()==="[object FormData]"))},$S=Mt("URLSearchParams"),zS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),br(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const cy=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fy=e=>!Vo(e)&&e!==cy;function ps(){const{caseless:e}=fy(this)&&this||{},t={},n=(r,o)=>{const i=e&&sy(t,o)||o;Di(t[i])&&Di(r)?t[i]=ps(t[i],r):Di(r)?t[i]=ps({},r):br(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Yo(t,(o,i)=>{n&&dt(o)?e[i]=ly(o,n):e[i]=o},{allOwnKeys:r}),e),FS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),US=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},bS=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Nc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},BS=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HS=e=>{if(!e)return null;if(br(e))return e;let t=e.length;if(!uy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nc(Uint8Array)),WS=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},KS=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},QS=Mt("HTMLFormElement"),qS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JS=Mt("RegExp"),dy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yo(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},XS=e=>{dy(e,(t,n)=>{if(dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(dt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},GS=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return br(e)?r(e):r(String(e).split(t)),n},YS=()=>{},ZS=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ou="abcdefghijklmnopqrstuvwxyz",Ud="0123456789",py={DIGIT:Ud,ALPHA:ou,ALPHA_DIGIT:ou+ou.toUpperCase()+Ud},eE=(e=16,t=py.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tE(e){return!!(e&&dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nE=e=>{const t=new Array(10),n=(r,o)=>{if(ua(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=br(r)?[]:{};return Yo(r,(l,a)=>{const u=n(l,o+1);!Vo(u)&&(i[a]=u)}),t[o]=void 0,i}}return r};return n(e,0)},rE=Mt("AsyncFunction"),oE=e=>e&&(ua(e)||dt(e))&&dt(e.then)&&dt(e.catch),P={isArray:br,isArrayBuffer:ay,isBuffer:RS,isFormData:AS,isArrayBufferView:_S,isString:TS,isNumber:uy,isBoolean:OS,isObject:ua,isPlainObject:Di,isUndefined:Vo,isDate:NS,isFile:LS,isBlob:jS,isRegExp:JS,isFunction:dt,isStream:MS,isURLSearchParams:$S,isTypedArray:VS,isFileList:DS,forEach:Yo,merge:ps,extend:IS,trim:zS,stripBOM:FS,inherits:US,toFlatObject:bS,kindOf:la,kindOfTest:Mt,endsWith:BS,toArray:HS,forEachEntry:WS,matchAll:KS,isHTMLForm:QS,hasOwnProperty:Fd,hasOwnProp:Fd,reduceDescriptors:dy,freezeMethods:XS,toObjectSet:GS,toCamelCase:qS,noop:YS,toFiniteNumber:ZS,findKey:sy,global:cy,isContextDefined:fy,ALPHABET:py,generateString:eE,isSpecCompliantForm:tE,toJSONObject:nE,isAsyncFn:rE,isThenable:oE};function q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}P.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hy=q.prototype,my={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{my[e]={value:e}});Object.defineProperties(q,my);Object.defineProperty(hy,"isAxiosError",{value:!0});q.from=(e,t,n,r,o,i)=>{const l=Object.create(hy);return P.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),q.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const iE=null;function hs(e){return P.isPlainObject(e)||P.isArray(e)}function yy(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function bd(e,t,n){return e?e.concat(t).map(function(o,i){return o=yy(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function lE(e){return P.isArray(e)&&!e.some(hs)}const aE=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function sa(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!P.isUndefined(S[v])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function s(p){if(p===null)return"";if(P.isDate(p))return p.toISOString();if(!u&&P.isBlob(p))throw new q("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(p)||P.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,S){let d=p;if(p&&!S&&typeof p=="object"){if(P.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(P.isArray(p)&&lE(p)||(P.isFileList(p)||P.endsWith(v,"[]"))&&(d=P.toArray(p)))return v=yy(v),d.forEach(function(w,y){!(P.isUndefined(w)||w===null)&&t.append(l===!0?bd([v],y,i):l===null?v:v+"[]",s(w))}),!1}return hs(p)?!0:(t.append(bd(S,v,i),s(p)),!1)}const f=[],m=Object.assign(aE,{defaultVisitor:c,convertValue:s,isVisitable:hs});function g(p,v){if(!P.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),P.forEach(p,function(d,h){(!(P.isUndefined(d)||d===null)&&o.call(t,d,P.isString(h)?h.trim():h,v,m))===!0&&g(d,v?v.concat(h):[h])}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Bd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lc(e,t){this._pairs=[],e&&sa(e,this,t)}const vy=Lc.prototype;vy.append=function(t,n){this._pairs.push([t,n])};vy.toString=function(t){const n=t?function(r){return t.call(this,r,Bd)}:Bd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function uE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gy(e,t,n){if(!t)return e;const r=n&&n.encode||uE,o=n&&n.serialize;let i;if(o?i=o(t,n):i=P.isURLSearchParams(t)?t.toString():new Lc(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class sE{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hd=sE,wy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cE=typeof URLSearchParams<"u"?URLSearchParams:Lc,fE=typeof FormData<"u"?FormData:null,dE=typeof Blob<"u"?Blob:null,pE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ot={isBrowser:!0,classes:{URLSearchParams:cE,FormData:fE,Blob:dE},isStandardBrowserEnv:pE,isStandardBrowserWebWorkerEnv:hE,protocols:["http","https","file","blob","url","data"]};function mE(e,t){return sa(e,new Ot.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ot.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yE(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vE(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&P.isArray(o)?o.length:l,u?(P.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!P.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&P.isArray(o[l])&&(o[l]=vE(o[l])),!a)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,o)=>{t(yE(r),o,n,0)}),n}return null}function gE(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const jc={transitional:wy,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o&&o?JSON.stringify(Sy(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mE(t,this.formSerializer).toString();if((a=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return sa(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),gE(t)):t}],transformResponse:[function(t){const n=this.transitional||jc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&P.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?q.from(a,q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ot.classes.FormData,Blob:Ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],e=>{jc.headers[e]={}});const Dc=jc,wE=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SE=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&wE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Vd=Symbol("internals");function io(e){return e&&String(e).trim().toLowerCase()}function Mi(e){return e===!1||e==null?e:P.isArray(e)?e.map(Mi):String(e)}function EE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iu(e,t,n,r,o){if(P.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function CE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kE(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class ca{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,u,s){const c=io(u);if(!c)throw new Error("header name must be a non-empty string");const f=P.findKey(o,c);(!f||o[f]===void 0||s===!0||s===void 0&&o[f]!==!1)&&(o[f||u]=Mi(a))}const l=(a,u)=>P.forEach(a,(s,c)=>i(s,c,u));return P.isPlainObject(t)||t instanceof this.constructor?l(t,n):P.isString(t)&&(t=t.trim())&&!xE(t)?l(SE(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=io(t),t){const r=P.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return EE(o);if(P.isFunction(n))return n.call(this,o,r);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=io(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||iu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=io(l),l){const a=P.findKey(r,l);a&&(!n||iu(r,r[a],a,n))&&(delete r[a],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||iu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return P.forEach(this,(o,i)=>{const l=P.findKey(r,i);if(l){n[l]=Mi(o),delete n[i];return}const a=t?CE(i):String(i).trim();a!==i&&delete n[i],n[a]=Mi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Vd]=this[Vd]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=io(l);r[a]||(kE(o,l),r[a]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}}ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(ca.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(ca);const Wt=ca;function lu(e,t){const n=this||Dc,r=t||n,o=Wt.from(r.headers);let i=r.data;return P.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ey(e){return!!(e&&e.__CANCEL__)}function Zo(e,t,n){q.call(this,e??"canceled",q.ERR_CANCELED,t,n),this.name="CanceledError"}P.inherits(Zo,q,{__CANCEL__:!0});function PE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const RE=Ot.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,a){const u=[];u.push(n+"="+encodeURIComponent(r)),P.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),P.isString(i)&&u.push("path="+i),P.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _E(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function xy(e,t){return e&&!_E(t)?TE(e,t):t}const OE=Ot.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=P.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function NE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[i];l||(l=s),n[o]=u,r[o]=s;let f=i,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),s-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-n,u=r(a),s=i<=l;n=i;const c={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&s?(l-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const jE=typeof XMLHttpRequest<"u",DE=jE&&function(e){return new Promise(function(n,r){let o=e.data;const i=Wt.from(e.headers).normalize(),l=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let s;P.isFormData(o)&&(Ot.isStandardBrowserEnv||Ot.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?P.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+v))}const f=xy(e.baseURL,e.url);c.open(e.method.toUpperCase(),gy(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(!c)return;const p=Wt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};PE(function(h){n(h),u()},function(h){r(h),u()},S),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(r(new q("Request aborted",q.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new q("Network Error",q.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||wy;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new q(v,S.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,c)),c=null},Ot.isStandardBrowserEnv){const p=(e.withCredentials||OE(f))&&e.xsrfCookieName&&RE.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&P.forEach(i.toJSON(),function(v,S){c.setRequestHeader(S,v)}),P.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Wd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Wd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{c&&(r(!p||p.type?new Zo(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=NE(f);if(g&&Ot.protocols.indexOf(g)===-1){r(new q("Unsupported protocol "+g+":",q.ERR_BAD_REQUEST,e));return}c.send(o||null)})},ms={http:iE,xhr:DE};P.forEach(ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kd=e=>`- ${e}`,ME=e=>P.isFunction(e)||e===null||e===!1,Cy={getAdapter:e=>{e=P.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : +`+i.map(Kd).join(` +`):" "+Kd(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:ms};function au(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zo(null,e)}function Qd(e){return au(e),e.headers=Wt.from(e.headers),e.data=lu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cy.getAdapter(e.adapter||Dc.adapter)(e).then(function(r){return au(e),r.data=lu.call(e,e.transformResponse,r),r.headers=Wt.from(r.headers),r},function(r){return Ey(r)||(au(e),r&&r.response&&(r.response.data=lu.call(e,e.transformResponse,r.response),r.response.headers=Wt.from(r.response.headers))),Promise.reject(r)})}const qd=e=>e instanceof Wt?e.toJSON():e;function Mr(e,t){t=t||{};const n={};function r(s,c,f){return P.isPlainObject(s)&&P.isPlainObject(c)?P.merge.call({caseless:f},s,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function o(s,c,f){if(P.isUndefined(c)){if(!P.isUndefined(s))return r(void 0,s,f)}else return r(s,c,f)}function i(s,c){if(!P.isUndefined(c))return r(void 0,c)}function l(s,c){if(P.isUndefined(c)){if(!P.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function a(s,c,f){if(f in t)return r(s,c);if(f in e)return r(void 0,s)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(s,c)=>o(qd(s),qd(c),!0)};return P.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||o,m=f(e[c],t[c],c);P.isUndefined(m)&&f!==a||(n[c]=m)}),n}const ky="1.5.1",Mc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Jd={};Mc.transitional=function(t,n,r){function o(i,l){return"[Axios v"+ky+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new q(o(l," has been removed"+(n?" in "+n:"")),q.ERR_DEPRECATED);return n&&!Jd[l]&&(Jd[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function AE(e,t,n){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],u=a===void 0||l(a,i,e);if(u!==!0)throw new q("option "+i+" must be "+u,q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const ys={assertOptions:AE,validators:Mc},rn=ys.validators;class vl{constructor(t){this.defaults=t,this.interceptors={request:new Hd,response:new Hd}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ys.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:ys.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Wt.concat(l,i);const a=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let c,f=0,m;if(!u){const p=[Qd.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,s),m=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new Zo(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ac(function(o){t=o}),cancel:t}}}const $E=Ac;function zE(e){return function(n){return e.apply(null,n)}}function IE(e){return P.isObject(e)&&e.isAxiosError===!0}const vs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vs).forEach(([e,t])=>{vs[t]=e});const FE=vs;function Py(e){const t=new Ai(e),n=ly(Ai.prototype.request,t);return P.extend(n,Ai.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Py(Mr(e,o))},n}const _e=Py(Dc);_e.Axios=Ai;_e.CanceledError=Zo;_e.CancelToken=$E;_e.isCancel=Ey;_e.VERSION=ky;_e.toFormData=sa;_e.AxiosError=q;_e.Cancel=_e.CanceledError;_e.all=function(t){return Promise.all(t)};_e.spread=zE;_e.isAxiosError=IE;_e.mergeConfig=Mr;_e.AxiosHeaders=Wt;_e.formToJSON=e=>Sy(P.isHTMLForm(e)?new FormData(e):e);_e.getAdapter=Cy.getAdapter;_e.HttpStatusCode=FE;_e.default=_e;const Ry=_e,_y="https://example-data.draftbit.com/books",$i=iy("books/fetchAllBooks",async()=>{try{return await(await Ry.get(_y)).data}catch(e){console.log(e.message)}}),zi=iy("books/fetchSingleBook",async e=>{try{return(await(await Ry.get(_y)).data).find(o=>o.id===e)}catch(t){console.log(t.message)}}),UE={books:[],isLoading:!1,singleBook:{}},Ty=gS({name:"books",initialState:UE,reducers:{removeSelectedBook:e=>{e.singleBook={}}},extraReducers:e=>{e.addCase($i.pending,t=>{t.isLoading=!0}).addCase($i.fulfilled,(t,{payload:n})=>{t.books=n,t.isLoading=!1}).addCase($i.rejected,(t,{payload:n})=>{t.isLoading=!1}).addCase(zi.pending,t=>{t.isLoading==!0}).addCase(zi.fulfilled,(t,{payload:n})=>{t.singleBook=n,t.isLoading=!1}).addCase(zi.rejected,(t,{payload:n})=>{t.isLoading=!1})}}),{removeSelectedBook:bE}=Ty.actions,BE=Ty.reducer,HE=()=>{const e=Wm();return k.useEffect(()=>{e($i())},[]),j.jsxs("section",{className:"home",children:[j.jsx("div",{className:"home__title",children:j.jsx("h2",{children:"Books List"})}),j.jsx("div",{className:"container",children:j.jsx(Aw,{})})]})};function VE(e){return qm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.012 18H21V4a2 2 0 0 0-2-2H6c-1.206 0-3 .799-3 3v14c0 2.201 1.794 3 3 3h15v-2H6.012C5.55 19.988 5 19.805 5 19s.55-.988 1.012-1zM8 6h9v2H8V6z"}}]})(e)}const WE=()=>j.jsx("header",{className:"header",children:j.jsx("div",{className:"container",children:j.jsx("div",{className:"header__logo",children:j.jsxs(Go,{to:"/",children:[j.jsx(VE,{}),"BOOK",j.jsx("span",{children:"ERA"})]})})})}),KE=()=>j.jsxs(j.Fragment,{children:[j.jsx(WE,{}),j.jsx("main",{children:j.jsx(x1,{})})]});const QE=()=>{const{bookID:e}=f1(),t=Number(e),n=Wm(),{isLoading:r,singleBook:o}=Im(g=>g.books);if(k.useEffect(()=>(n(zi(t)),()=>{n(bE())}),[t]),r)return j.jsx("div",{className:"loading",children:j.jsxs("div",{className:"lds-ripple",children:[j.jsx("div",{}),j.jsx("div",{})]})});const{id:i,title:l,authors:a,image_url:u,genre_list:s,num_pages:c,rating:f,description:m}=o;return j.jsx("section",{className:"book-detail",children:j.jsx("div",{className:"container",children:j.jsxs("div",{className:"single-book",children:[j.jsx("figure",{children:j.jsx("img",{src:u,alt:l})}),j.jsxs("div",{children:[j.jsx("h4",{children:l}),j.jsx("h5",{children:a}),j.jsxs("p",{children:[j.jsx("span",{children:"Rating:"})," ",f]}),j.jsxs("p",{children:[j.jsx("span",{children:"Pages:"})," ",c]}),j.jsxs("p",{children:[j.jsx("span",{children:"Genres:"})," ",s]}),j.jsx("p",{children:m}),j.jsx(Go,{to:"/",className:"single-book--btn",children:"Back to Home"})]})]})})})};const qE=()=>{const e=yc();return e.status===404?j.jsxs("div",{className:"error-page",children:[j.jsx("h2",{children:e.status}),j.jsxs("p",{children:["Page ",e.statusText]}),j.jsx(Go,{to:"/",className:"error-page--btn",children:"Back to Home"})]}):j.jsx("div",{children:e.message})},Xd=()=>{const e=yc();return console.log(e),j.jsxs("div",{className:"error-page error-page--single",children:[j.jsx("p",{children:e.message}),j.jsx(Go,{to:"/",className:"error-page--btn",children:"Back to Home"})]})},JE=O1([{path:"/",element:j.jsx(KE,{}),errorElement:j.jsx(qE,{}),children:[{index:!0,element:j.jsx(HE,{}),errorElement:j.jsx(Xd,{})},{path:"/book/:bookID",element:j.jsx(QE,{}),errorElement:j.jsx(Xd,{})}]}]);function XE(){return j.jsx(j.Fragment,{children:j.jsx($1,{router:JE})})}function Oy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),gl=e=>typeof e=="string",et=e=>typeof e=="function",Fi=e=>gl(e)||et(e)?e:null,uu=e=>k.isValidElement(e)||gl(e)||et(e)||Ii(e);function GE(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function fa(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(l){let{children:a,position:u,preventExitTransition:s,done:c,nodeRef:f,isIn:m}=l;const g=r?`${t}--${u}`:t,p=r?`${n}--${u}`:n,v=k.useRef(0);return k.useLayoutEffect(()=>{const S=f.current,d=g.split(" "),h=w=>{w.target===f.current&&(S.dispatchEvent(new Event("d")),S.removeEventListener("animationend",h),S.removeEventListener("animationcancel",h),v.current===0&&w.type!=="animationcancel"&&S.classList.remove(...d))};S.classList.add(...d),S.addEventListener("animationend",h),S.addEventListener("animationcancel",h)},[]),k.useEffect(()=>{const S=f.current,d=()=>{S.removeEventListener("animationend",d),o?GE(S,c,i):c()};m||(s?d():(v.current=1,S.className+=` ${p}`,S.addEventListener("animationend",d)))},[m]),Q.createElement(Q.Fragment,null,a)}}function Gd(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Bn={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},Si=e=>{let{theme:t,type:n,...r}=e;return Q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},su={info:function(e){return Q.createElement(Si,{...e},Q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Q.createElement(Si,{...e},Q.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Q.createElement(Si,{...e},Q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Q.createElement(Si,{...e},Q.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Q.createElement("div",{className:"Toastify__spinner"})}};function YE(e){const[,t]=k.useReducer(g=>g+1,0),[n,r]=k.useState([]),o=k.useRef(null),i=k.useRef(new Map).current,l=g=>n.indexOf(g)!==-1,a=k.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:g=>i.get(g)}).current;function u(g){let{containerId:p}=g;const{limit:v}=a.props;!v||p&&a.containerId!==p||(a.count-=a.queue.length,a.queue=[])}function s(g){r(p=>g==null?[]:p.filter(v=>v!==g))}function c(){const{toastContent:g,toastProps:p,staleId:v}=a.queue.shift();m(g,p,v)}function f(g,p){let{delay:v,staleId:S,...d}=p;if(!uu(g)||function(ie){return!o.current||a.props.enableMultiContainer&&ie.containerId!==a.props.containerId||i.has(ie.toastId)&&ie.updateId==null}(d))return;const{toastId:h,updateId:w,data:y}=d,{props:x}=a,R=()=>s(h),_=w==null;_&&a.count++;const O={...x,style:x.toastStyle,key:a.toastKey++,...Object.fromEntries(Object.entries(d).filter(ie=>{let[Pe,Se]=ie;return Se!=null})),toastId:h,updateId:w,data:y,closeToast:R,isIn:!1,className:Fi(d.className||x.toastClassName),bodyClassName:Fi(d.bodyClassName||x.bodyClassName),progressClassName:Fi(d.progressClassName||x.progressClassName),autoClose:!d.isLoading&&(F=d.autoClose,A=x.autoClose,F===!1||Ii(F)&&F>0?F:A),deleteToast(){const ie=Gd(i.get(h),"removed");i.delete(h),Bn.emit(4,ie);const Pe=a.queue.length;if(a.count=h==null?a.count-a.displayedToast:a.count-1,a.count<0&&(a.count=0),Pe>0){const Se=h==null?a.props.limit:1;if(Pe===1||Se===1)a.displayedToast++,c();else{const G=Se>Pe?Pe:Se;a.displayedToast=G;for(let ge=0;ge$ in su)(Se)&&(Te=su[Se](L))),Te}(O),et(d.onOpen)&&(O.onOpen=d.onOpen),et(d.onClose)&&(O.onClose=d.onClose),O.closeButton=x.closeButton,d.closeButton===!1||uu(d.closeButton)?O.closeButton=d.closeButton:d.closeButton===!0&&(O.closeButton=!uu(x.closeButton)||x.closeButton);let X=g;k.isValidElement(g)&&!gl(g.type)?X=k.cloneElement(g,{closeToast:R,toastProps:O,data:y}):et(g)&&(X=g({closeToast:R,toastProps:O,data:y})),x.limit&&x.limit>0&&a.count>x.limit&&_?a.queue.push({toastContent:X,toastProps:O,staleId:S}):Ii(v)?setTimeout(()=>{m(X,O,S)},v):m(X,O,S)}function m(g,p,v){const{toastId:S}=p;v&&i.delete(v);const d={content:g,props:p};i.set(S,d),r(h=>[...h,S].filter(w=>w!==v)),Bn.emit(4,Gd(d,d.props.updateId==null?"added":"updated"))}return k.useEffect(()=>(a.containerId=e.containerId,Bn.cancelEmit(3).on(0,f).on(1,g=>o.current&&s(g)).on(5,u).emit(2,a),()=>{i.clear(),Bn.emit(3,a)}),[]),k.useEffect(()=>{a.props=e,a.isToastActive=l,a.displayedToast=n.length}),{getToastToRender:function(g){const p=new Map,v=Array.from(i.values());return e.newestOnTop&&v.reverse(),v.forEach(S=>{const{position:d}=S.props;p.has(d)||p.set(d,[]),p.get(d).push(S)}),Array.from(p,S=>g(S[0],S[1]))},containerRef:o,isToastActive:l}}function Yd(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Zd(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function ZE(e){const[t,n]=k.useState(!1),[r,o]=k.useState(!1),i=k.useRef(null),l=k.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,a=k.useRef(e),{autoClose:u,pauseOnHover:s,closeToast:c,onClick:f,closeOnClick:m}=e;function g(y){if(e.draggable){y.nativeEvent.type==="touchstart"&&y.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",d),document.addEventListener("mouseup",h),document.addEventListener("touchmove",d),document.addEventListener("touchend",h);const x=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=x.getBoundingClientRect(),x.style.transition="",l.x=Yd(y.nativeEvent),l.y=Zd(y.nativeEvent),e.draggableDirection==="x"?(l.start=l.x,l.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function p(y){if(l.boundingRect){const{top:x,bottom:R,left:_,right:O}=l.boundingRect;y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&l.x>=_&&l.x<=O&&l.y>=x&&l.y<=R?S():v()}}function v(){n(!0)}function S(){n(!1)}function d(y){const x=i.current;l.canDrag&&x&&(l.didMove=!0,t&&S(),l.x=Yd(y),l.y=Zd(y),l.delta=e.draggableDirection==="x"?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),x.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,x.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function h(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",d),document.removeEventListener("touchend",h);const y=i.current;if(l.canDrag&&l.didMove&&y){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),void e.closeToast();y.style.transition="transform 0.2s, opacity 0.2s",y.style.transform=`translate${e.draggableDirection}(0)`,y.style.opacity="1"}}k.useEffect(()=>{a.current=e}),k.useEffect(()=>(i.current&&i.current.addEventListener("d",v,{once:!0}),et(e.onOpen)&&e.onOpen(k.isValidElement(e.children)&&e.children.props),()=>{const y=a.current;et(y.onClose)&&y.onClose(k.isValidElement(y.children)&&y.children.props)}),[]),k.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||S(),window.addEventListener("focus",v),window.addEventListener("blur",S)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",S))}),[e.pauseOnFocusLoss]);const w={onMouseDown:g,onTouchStart:g,onMouseUp:p,onTouchEnd:p};return u&&s&&(w.onMouseEnter=S,w.onMouseLeave=v),m&&(w.onClick=y=>{f&&f(y),l.canCloseOnClick&&c()}),{playToast:v,pauseToast:S,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:w}}function Ny(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return Q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":r},Q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Q.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ex(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:l,style:a,controlledProgress:u,progress:s,rtl:c,isIn:f,theme:m}=e;const g=i||u&&s===0,p={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};u&&(p.transform=`scaleX(${s})`);const v=dn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":c}),S=et(l)?l({rtl:c,type:o,defaultClassName:v}):dn(v,l);return Q.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:S,style:p,[u&&s>=1?"onTransitionEnd":"onAnimationEnd"]:u&&s<1?null:()=>{f&&r()}})}const tx=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o}=ZE(e),{closeButton:i,children:l,autoClose:a,onClick:u,type:s,hideProgressBar:c,closeToast:f,transition:m,position:g,className:p,style:v,bodyClassName:S,bodyStyle:d,progressClassName:h,progressStyle:w,updateId:y,role:x,progress:R,rtl:_,toastId:O,deleteToast:F,isIn:A,isLoading:X,iconOut:ie,closeOnClick:Pe,theme:Se}=e,G=dn("Toastify__toast",`Toastify__toast-theme--${Se}`,`Toastify__toast--${s}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Pe}),ge=et(p)?p({rtl:_,position:g,type:s,defaultClassName:G}):dn(G,p),Te=!!R||!a,L={closeToast:f,type:s,theme:Se};let $=null;return i===!1||($=et(i)?i(L):k.isValidElement(i)?k.cloneElement(i,L):Ny(L)),Q.createElement(m,{isIn:A,done:F,position:g,preventExitTransition:n,nodeRef:r},Q.createElement("div",{id:O,onClick:u,className:ge,...o,style:v,ref:r},Q.createElement("div",{...A&&{role:x},className:et(S)?S({type:s}):dn("Toastify__toast-body",S),style:d},ie!=null&&Q.createElement("div",{className:dn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!X})},ie),Q.createElement("div",null,l)),$,Q.createElement(ex,{...y&&!Te?{key:`pb-${y}`}:{},rtl:_,theme:Se,delay:a,isRunning:t,isIn:A,closeToast:f,hide:c,type:s,style:w,className:h,controlledProgress:Te,progress:R||0})))},da=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},nx=fa(da("bounce",!0));fa(da("slide",!0));fa(da("zoom"));fa(da("flip"));const gs=k.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:o}=YE(e),{className:i,style:l,rtl:a,containerId:u}=e;function s(c){const f=dn("Toastify__toast-container",`Toastify__toast-container--${c}`,{"Toastify__toast-container--rtl":a});return et(i)?i({position:c,rtl:a,defaultClassName:f}):dn(f,Fi(i))}return k.useEffect(()=>{t&&(t.current=r.current)},[]),Q.createElement("div",{ref:r,className:"Toastify",id:u},n((c,f)=>{const m=f.length?{...l}:{...l,pointerEvents:"none"};return Q.createElement("div",{className:s(c),style:m,key:`container-${c}`},f.map((g,p)=>{let{content:v,props:S}=g;return Q.createElement(tx,{...S,isIn:o(S.toastId),style:{...S.style,"--nth":p+1,"--len":f.length},key:`toast-${S.key}`},v)}))}))});gs.displayName="ToastContainer",gs.defaultProps={position:"top-right",transition:nx,autoClose:5e3,closeButton:Ny,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let ep,cu=new Map,tp=[];Bn.on(2,e=>{ep=e.containerId||e,cu.set(ep,e),tp.forEach(t=>{Bn.emit(0,t.content,t.options)}),tp=[]}).on(3,e=>{cu.delete(e.containerId||e),cu.size===0&&Bn.off(0).off(1).off(5)});const rx=hS({reducer:{books:BE}});fu.createRoot(document.getElementById("root")).render(j.jsx(Q.StrictMode,{children:j.jsxs(Tw,{store:rx,children:[j.jsx(gs,{position:"top-center",autoClose:2e3}),j.jsx(XE,{})]})})); diff --git a/assets/index-1c29bef1.css b/assets/index-a55a5d0d.css similarity index 96% rename from assets/index-1c29bef1.css rename to assets/index-a55a5d0d.css index aed5996..bfdf642 100644 --- a/assets/index-1c29bef1.css +++ b/assets/index-a55a5d0d.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,700&display=swap";.home{background-color:#d8cabc;padding:50px 0}.home .home__title>h2{text-align:center;font-size:24px;font-weight:700;color:#020202;margin:0 auto 30px;position:relative;width:fit-content}.home .home__title>h2:before{content:"";width:50px;height:4px;background-color:#020202;position:absolute;right:-92px;top:50%;transform:translate(-50%,-50%);border-radius:30%}.home .home__title>h2:after{content:"";width:50px;height:4px;background-color:#020202;position:absolute;left:-40px;top:50%;transform:translate(-50%,-50%);border-radius:30%}.book-card{display:block;width:250px;color:#020202;background-color:#f7fdfb;border-radius:4px;padding:5px;box-shadow:0 4px 12px -4px #000000c7;transition:all .3s;position:relative}.book-card>figure{width:100%;background-color:#0006;border-radius:4px;overflow:hidden}.book-card>figure img{width:100%;height:300px;display:block}.book-card>div h4{margin-top:10px}.book-card>div h5{margin:5px 0}.book-card>div p{font-size:12px}.book-card>div p span{font-weight:600}.book-card a{color:#5855e7;display:flex;align-items:center}.book-card a svg{width:24px;height:24px;margin-right:5px}.book-card:before{content:"";width:100%;display:block;position:absolute;top:0;right:0;left:0;bottom:0;background-color:#0009;border-radius:4px;visibility:hidden;opacity:0;transition:all .5s ease-in-out}.book-card:hover{box-shadow:0 6px 16px -4px #000000c7;transform:scale(1.04)}.book-card:hover:before{visibility:visible;opacity:1}.book-card--hover{display:flex;width:100%;height:50%;flex-direction:column;align-items:center;justify-content:center;border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:#5855e7;color:#f7fdfb;text-transform:uppercase;font-weight:700;position:absolute;left:0;bottom:0;right:0;top:0;transition:all .5s ease-in-out;z-index:-1;visibility:hidden;overflow:hidden!important;opacity:0;transform:scale(0)}.book-card--hover svg{width:32px;height:32px;margin-bottom:10px}.book-card:hover .book-card--hover{top:50%;z-index:1;visibility:visible;opacity:1;transform:scale(1)}.book-list{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:20px}.header{padding:24px 0;background-color:#5855e7;box-shadow:0 4px 12px -4px #000000c7;position:relative}.header .container .header__logo a{color:#f7fdfb;font-size:24px;font-weight:700;padding:0 6px;border:2px solid #ada3ca;border-radius:8px;display:flex;align-items:center;width:fit-content}.header .container .header__logo a svg{margin-right:5px}.header .container .header__logo a span{color:#020202}.book-detail{padding:50px 0}.book-detail .container .single-book{display:flex}@media (max-width: 768px){.book-detail .container .single-book{flex-direction:column}}.book-detail .container .single-book figure{max-width:260px;width:100%;height:400px;margin-right:20px;background-color:#0006;flex-shrink:0}@media (max-width: 768px){.book-detail .container .single-book figure{margin-right:0;margin-bottom:30px}}.book-detail .container .single-book figure img{height:100%}.book-detail .container .single-book--btn{display:block;width:fit-content;padding:10px 30px;background-color:#5855e7;color:#f7fdfb;border-radius:4px;margin-top:30px}.error-page{background-image:url(/redux-book-store/assets/undraw-pnf-f3c90dbd.svg?v=uikyazb);background-repeat:no-repeat;background-position:left bottom;background-size:contain;position:fixed;top:0;bottom:0;right:0;left:0;background-color:#d8cabc;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px}.error-page>h2,.error-page p{font-size:42px;font-weight:700;color:#020202}.error-page--btn{display:block;width:fit-content;padding:10px 30px;background-color:#5855e7;color:#f7fdfb;border-radius:4px;margin-top:10px;box-shadow:0 4px 12px -4px #000000c7}.error-page--btn:hover{box-shadow:0 6px 16px -4px #000000c7}.error-page--single{background-image:url(/redux-book-store/assets/undraw_location_search-21a63dea.svg?v=uikyazb)}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,ul,ol,dd{margin:0}ul,ol{list-style:none}html:focus-within{scroll-behavior:smooth}body{font-family:Nunito Sans,sans-serif}a{text-decoration:none}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}.container{max-width:1180px;width:100%;padding:0 10px;margin:0 auto}.btn{padding:10px 20px;background-color:#ada3ca;color:#fff;border-radius:4px;display:block}.loading{position:fixed;top:0;left:0;bottom:0;right:0;background-color:#0009;display:flex;align-items:center;justify-content:center}.lds-ripple{display:inline-block;position:relative;width:80px;height:80px}.lds-ripple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}to{top:0;left:0;width:72px;height:72px;opacity:0}} +@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,700&display=swap";.home{background-color:#d8cabc;padding:50px 0}.home .home__title>h2{text-align:center;font-size:24px;font-weight:700;color:#020202;margin:0 auto 30px;position:relative;width:fit-content}.home .home__title>h2:before{content:"";width:50px;height:4px;background-color:#020202;position:absolute;right:-92px;top:50%;transform:translate(-50%,-50%);border-radius:30%}.home .home__title>h2:after{content:"";width:50px;height:4px;background-color:#020202;position:absolute;left:-40px;top:50%;transform:translate(-50%,-50%);border-radius:30%}.book-card{display:block;width:250px;color:#020202;background-color:#f7fdfb;border-radius:4px;padding:5px;box-shadow:0 4px 12px -4px #000000c7;transition:all .3s;position:relative}.book-card>figure{width:100%;background-color:#0006;border-radius:4px;overflow:hidden}.book-card>figure img{width:100%;height:300px;display:block}.book-card>div h4{margin-top:10px}.book-card>div h5{margin:5px 0}.book-card>div p{font-size:12px}.book-card>div p span{font-weight:600}.book-card a{color:#5855e7;display:flex;align-items:center}.book-card a svg{width:24px;height:24px;margin-right:5px}.book-card:before{content:"";width:100%;display:block;position:absolute;top:0;right:0;left:0;bottom:0;background-color:#0009;border-radius:4px;visibility:hidden;opacity:0;transition:all .5s ease-in-out}.book-card:hover{box-shadow:0 6px 16px -4px #000000c7;transform:scale(1.04)}.book-card:hover:before{visibility:visible;opacity:1}.book-card--hover{display:flex;width:100%;height:50%;flex-direction:column;align-items:center;justify-content:center;border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:#5855e7;color:#f7fdfb;text-transform:uppercase;font-weight:700;position:absolute;left:0;bottom:0;right:0;top:0;transition:all .5s ease-in-out;z-index:-1;visibility:hidden;overflow:hidden!important;opacity:0;transform:scale(0)}.book-card--hover svg{width:32px;height:32px;margin-bottom:10px}.book-card:hover .book-card--hover{top:50%;z-index:1;visibility:visible;opacity:1;transform:scale(1)}.book-list{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:20px}.header{padding:24px 0;background-color:#5855e7;box-shadow:0 4px 12px -4px #000000c7;position:relative}.header .container .header__logo a{color:#f7fdfb;font-size:24px;font-weight:700;padding:0 6px;border:2px solid #ada3ca;border-radius:8px;display:flex;align-items:center;width:fit-content}.header .container .header__logo a svg{margin-right:5px}.header .container .header__logo a span{color:#020202}.book-detail{padding:50px 0}.book-detail .container .single-book{display:flex}@media (max-width: 768px){.book-detail .container .single-book{flex-direction:column}}.book-detail .container .single-book figure{max-width:260px;width:100%;height:400px;margin-right:20px;background-color:#0006;flex-shrink:0}@media (max-width: 768px){.book-detail .container .single-book figure{margin-right:0;margin-bottom:30px}}.book-detail .container .single-book figure img{height:100%}.book-detail .container .single-book--btn{display:block;width:fit-content;padding:10px 30px;background-color:#5855e7;color:#f7fdfb;border-radius:4px;margin-top:30px}.error-page{background-image:url(/redux-book-store/assets/undraw-pnf-f3c90dbd.svg?v=ufrdrv7);background-repeat:no-repeat;background-position:left bottom;background-size:contain;position:fixed;top:0;bottom:0;right:0;left:0;background-color:#d8cabc;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px}.error-page>h2,.error-page p{font-size:42px;font-weight:700;color:#020202}.error-page--btn{display:block;width:fit-content;padding:10px 30px;background-color:#5855e7;color:#f7fdfb;border-radius:4px;margin-top:10px;box-shadow:0 4px 12px -4px #000000c7}.error-page--btn:hover{box-shadow:0 6px 16px -4px #000000c7}.error-page--single{background-image:url(/redux-book-store/assets/undraw_location_search-21a63dea.svg?v=ufrdrv7)}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,ul,ol,dd{margin:0}ul,ol{list-style:none}html:focus-within{scroll-behavior:smooth}body{font-family:Nunito Sans,sans-serif}a{text-decoration:none}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}.container{max-width:1180px;width:100%;padding:0 10px;margin:0 auto}.btn{padding:10px 20px;background-color:#ada3ca;color:#fff;border-radius:4px;display:block}.loading{position:fixed;top:0;left:0;bottom:0;right:0;background-color:#0009;display:flex;align-items:center;justify-content:center}.lds-ripple{display:inline-block;position:relative;width:80px;height:80px}.lds-ripple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}to{top:0;left:0;width:72px;height:72px;opacity:0}} diff --git a/index.html b/index.html index e5f69cd..2571ac1 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Redux Book Store - - + +