diff --git a/assets/index-1eae3a1d.js b/assets/index-1eae3a1d.js new file mode 100644 index 0000000..774fbfa --- /dev/null +++ b/assets/index-1eae3a1d.js @@ -0,0 +1,71 @@ +function cd(e,t){for(var n=0;nr[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ha={exports:{}},Ol={},ma={exports:{}},A={};/** + * @license React + * react.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 hr=Symbol.for("react.element"),dd=Symbol.for("react.portal"),pd=Symbol.for("react.fragment"),hd=Symbol.for("react.strict_mode"),md=Symbol.for("react.profiler"),yd=Symbol.for("react.provider"),vd=Symbol.for("react.context"),gd=Symbol.for("react.forward_ref"),wd=Symbol.for("react.suspense"),Sd=Symbol.for("react.memo"),xd=Symbol.for("react.lazy"),$s=Symbol.iterator;function Ed(e){return e===null||typeof e!="object"?null:(e=$s&&e[$s]||e["@@iterator"],typeof e=="function"?e:null)}var ya={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},va=Object.assign,ga={};function gn(e,t,n){this.props=e,this.context=t,this.refs=ga,this.updater=n||ya}gn.prototype.isReactComponent={};gn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wa(){}wa.prototype=gn.prototype;function Di(e,t,n){this.props=e,this.context=t,this.refs=ga,this.updater=n||ya}var Fi=Di.prototype=new wa;Fi.constructor=Di;va(Fi,gn.prototype);Fi.isPureReactComponent=!0;var Hs=Array.isArray,Sa=Object.prototype.hasOwnProperty,Ii={current:null},xa={key:!0,ref:!0,__self:!0,__source:!0};function Ea(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Sa.call(t,r)&&!xa.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,ee=j[J];if(0>>1;Jl(no,z))Rtl(kr,no)?(j[J]=kr,j[Rt]=z,J=Rt):(j[J]=no,j[_t]=z,J=_t);else if(Rtl(kr,z))j[J]=kr,j[Rt]=z,J=Rt;else break e}}return O}function l(j,O){var z=j.sortIndex-O.sortIndex;return z!==0?z:j.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],c=1,p=null,v=3,g=!1,y=!1,h=!1,N=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=j)r(a),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(a)}}function x(j){if(h=!1,m(j),!y)if(n(u)!==null)y=!0,eo(P);else{var O=n(a);O!==null&&to(x,O.startTime-j)}}function P(j,O){y=!1,h&&(h=!1,d(T),T=-1),g=!0;var z=v;try{for(m(O),p=n(u);p!==null&&(!(p.expirationTime>O)||j&&!we());){var J=p.callback;if(typeof J=="function"){p.callback=null,v=p.priorityLevel;var ee=J(p.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(u)&&r(u),m(O)}else r(u);p=n(u)}if(p!==null)var Er=!0;else{var _t=n(a);_t!==null&&to(x,_t.startTime-O),Er=!1}return Er}finally{p=null,v=z,g=!1}}var C=!1,_=null,T=-1,I=5,L=-1;function we(){return!(e.unstable_now()-Lj||125J?(j.sortIndex=z,t(a,j),n(u)===null&&j===n(a)&&(h?(d(T),T=-1):h=!0,to(x,z-J))):(j.sortIndex=ee,t(u,j),y||g||(y=!0,eo(P))),j},e.unstable_shouldYield=we,e.unstable_wrapCallback=function(j){var O=v;return function(){var z=v;v=O;try{return j.apply(this,arguments)}finally{v=z}}}})(_a);Pa.exports=_a;var Ad=Pa.exports;/** + * @license React + * react-dom.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 Ra=k,ke=Ad;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,Ud=/^[: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]*$/,Ws={},Qs={};function Dd(e){return Do.call(Qs,e)?!0:Do.call(Ws,e)?!1:Ud.test(e)?Qs[e]=!0:(Ws[e]=!0,!1)}function Fd(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 Id(e,t,n,r){if(t===null||typeof t>"u"||Fd(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 pe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new pe(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){oe[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bi=/[\-:]([a-z])/g;function $i(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(Bi,$i);oe[t]=new pe(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(Bi,$i);oe[t]=new pe(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(Bi,$i);oe[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hi(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` +`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{oo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function Md(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=io(e.type,!1),e;case 11:return e=io(e.type.render,!1),e;case 1:return e=io(e.type,!0),e;default:return""}}function Bo(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 Kt:return"Fragment";case Qt:return"Portal";case Fo:return"Profiler";case Vi:return"StrictMode";case Io:return"Suspense";case Mo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oa:return(e.displayName||"Context")+".Consumer";case ja:return(e._context.displayName||"Context")+".Provider";case Wi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qi:return t=e.displayName||null,t!==null?t:Bo(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return Bo(e(t))}catch{}}return null}function Bd(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 Bo(t);case 8:return t===Vi?"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 Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function za(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $d(e){var t=za(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pr(e){e._valueTracker||(e._valueTracker=$d(e))}function Aa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=za(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(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 $o(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Js(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(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 Ua(e,t){t=t.checked,t!=null&&Hi(e,"checked",t,!1)}function Ho(e,t){Ua(e,t);var n=Et(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")?Vo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vo(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gs(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 Vo(e,t,n){(t!=="number"||rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dn=Array.isArray;function rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=_r.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={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},Hd=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){Hd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function Ma(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function Ba(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ma(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Vd=Q({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 Ko(e,t){if(t){if(Vd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Jo(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 Go=null;function Ki(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xo=null,ln=null,on=null;function Zs(e){if(e=vr(e)){if(typeof Xo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Dl(t),Xo(e.stateNode,e.type,t))}}function $a(e){ln?on?on.push(e):on=[e]:ln=e}function Ha(){if(ln){var e=ln,t=on;if(on=ln=null,Zs(e),t)for(e=0;e>>=0,e===0?32:31-(ep(e)/tp|0)|0}var Rr=64,Tr=4194304;function Fn(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 sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=Fn(s):(o&=i,o!==0&&(r=Fn(o)))}else i=n&~l,i!==0?r=Fn(i):o!==0&&(r=Fn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 mr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fe(t),e[t]=n}function op(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=Hn),iu=String.fromCharCode(32),su=!1;function uc(e,t){switch(e){case"keyup":return zp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ac(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jt=!1;function Up(e,t){switch(e){case"compositionend":return ac(t);case"keypress":return t.which!==32?null:(su=!0,iu);case"textInput":return e=t.data,e===iu&&su?null:e;default:return null}}function Dp(e,t){if(Jt)return e==="compositionend"||!es&&uc(e,t)?(e=ic(),Wr=Zi=ct=null,Jt=!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=fu(n)}}function pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hc(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function ts(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 Qp(e){var t=hc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pc(n.ownerDocument.documentElement,n)){if(r!==null&&ts(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=du(n,o);var i=du(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)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,Gt=null,ti=null,Wn=null,ni=!1;function pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ni||Gt==null||Gt!==rl(r)||(r=Gt,"selectionStart"in r&&ts(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}),Wn&&nr(Wn,r)||(Wn=r,r=cl(ti,"onSelect"),0Zt||(e.current=ui[Zt],ui[Zt]=null,Zt--)}function M(e,t){Zt++,ui[Zt]=e.current,e.current=t}var kt={},ae=Nt(kt),ye=Nt(!1),Dt=kt;function fn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ve(e){return e=e.childContextTypes,e!=null}function dl(){$(ye),$(ae)}function Su(e,t,n){if(ae.current!==kt)throw Error(E(168));M(ae,t),M(ye,n)}function kc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,Bd(e)||"Unknown",l));return Q({},n,r)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,Dt=ae.current,M(ae,e),M(ye,ye.current),!0}function xu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=kc(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,$(ye),$(ae),M(ae,e)):$(ye),M(ye,n)}var Ge=null,Fl=!1,xo=!1;function Cc(e){Ge===null?Ge=[e]:Ge.push(e)}function rh(e){Fl=!0,Cc(e)}function Pt(){if(!xo&&Ge!==null){xo=!0;var e=0,t=F;try{var n=Ge;for(F=1;e>=i,l-=i,Xe=1<<32-Fe(t)+l|n<T?(I=_,_=null):I=_.sibling;var L=v(d,_,m[T],x);if(L===null){_===null&&(_=I);break}e&&_&&L.alternate===null&&t(d,_),f=o(L,f,T),C===null?P=L:C.sibling=L,C=L,_=I}if(T===m.length)return n(d,_),H&&Tt(d,T),P;if(_===null){for(;TT?(I=_,_=null):I=_.sibling;var we=v(d,_,L.value,x);if(we===null){_===null&&(_=I);break}e&&_&&we.alternate===null&&t(d,_),f=o(we,f,T),C===null?P=we:C.sibling=we,C=we,_=I}if(L.done)return n(d,_),H&&Tt(d,T),P;if(_===null){for(;!L.done;T++,L=m.next())L=p(d,L.value,x),L!==null&&(f=o(L,f,T),C===null?P=L:C.sibling=L,C=L);return H&&Tt(d,T),P}for(_=r(d,_);!L.done;T++,L=m.next())L=g(_,d,T,L.value,x),L!==null&&(e&&L.alternate!==null&&_.delete(L.key===null?T:L.key),f=o(L,f,T),C===null?P=L:C.sibling=L,C=L);return e&&_.forEach(function(Cn){return t(d,Cn)}),H&&Tt(d,T),P}function N(d,f,m,x){if(typeof m=="object"&&m!==null&&m.type===Kt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Nr:e:{for(var P=m.key,C=f;C!==null;){if(C.key===P){if(P=m.type,P===Kt){if(C.tag===7){n(d,C.sibling),f=l(C,m.props.children),f.return=d,d=f;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===it&&Ru(P)===C.type){n(d,C.sibling),f=l(C,m.props),f.ref=On(d,C,m),f.return=d,d=f;break e}n(d,C);break}else t(d,C);C=C.sibling}m.type===Kt?(f=Ut(m.props.children,d.mode,x,m.key),f.return=d,d=f):(x=qr(m.type,m.key,m.props,null,d.mode,x),x.ref=On(d,f,m),x.return=d,d=x)}return i(d);case Qt:e:{for(C=m.key;f!==null;){if(f.key===C)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(d,f.sibling),f=l(f,m.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=To(m,d.mode,x),f.return=d,d=f}return i(d);case it:return C=m._init,N(d,f,C(m._payload),x)}if(Dn(m))return y(d,f,m,x);if(Pn(m))return h(d,f,m,x);Dr(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,m),f.return=d,d=f):(n(d,f),f=Ro(m,d.mode,x),f.return=d,d=f),i(d)):n(d,f)}return N}var pn=Lc(!0),zc=Lc(!1),gr={},Qe=Nt(gr),ir=Nt(gr),sr=Nt(gr);function zt(e){if(e===gr)throw Error(E(174));return e}function cs(e,t){switch(M(sr,t),M(ir,e),M(Qe,gr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qo(t,e)}$(Qe),M(Qe,t)}function hn(){$(Qe),$(ir),$(sr)}function Ac(e){zt(sr.current);var t=zt(Qe.current),n=Qo(t,e.type);t!==n&&(M(ir,e),M(Qe,n))}function fs(e){ir.current===e&&($(Qe),$(ir))}var V=Nt(0);function wl(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 Eo=[];function ds(){for(var e=0;en?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{F=n,ko.transition=r}}function Yc(){return Le().memoizedState}function sh(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zc(e))qc(t,n);else if(n=Rc(e,t,n,r),n!==null){var l=fe();Ie(n,e,r,l),bc(n,t,r)}}function uh(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zc(e))qc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Me(s,i)){var u=t.interleaved;u===null?(l.next=l,us(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Rc(e,t,l,r),n!==null&&(l=fe(),Ie(n,e,r,l),bc(n,t,r))}}function Zc(e){var t=e.alternate;return e===W||t!==null&&t===W}function qc(e,t){Qn=Sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gi(e,n)}}var xl={readContext:Oe,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},ah={readContext:Oe,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:ju,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gr(4194308,4,Qc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();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=sh.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:Tu,useDebugValue:vs,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=Tu(!1),t=e[0];return e=ih.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=$e();if(H){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ne===null)throw Error(E(349));It&30||Fc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ju(Mc.bind(null,r,o,e),[e]),r.flags|=2048,cr(9,Ic.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$e(),t=ne.identifierPrefix;if(H){var n=Ye,r=Xe;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[He]=t,e[or]=r,af(e,t,!1,!1),t.stateNode=e;e:{switch(i=Jo(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;lyn&&(t.flags|=128,r=!0,Ln(o,!1),t.lanes=4194304)}else{if(!r)if(e=wl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ln(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!H)return se(t),null}else 2*G()-o.renderingStartTime>yn&&n!==1073741824&&(t.flags|=128,r=!0,Ln(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=V.current,M(V,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Se&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function vh(e,t){switch(rs(t),t.tag){case 1:return ve(t.type)&&dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hn(),$(ye),$(ae),ds(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fs(t),null;case 13:if($(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(V),null;case 4:return hn(),null;case 10:return ss(t.type._context),null;case 22:case 23:return ks(),null;case 24:return null;default:return null}}var Ir=!1,ue=!1,gh=typeof WeakSet=="function"?WeakSet:Set,R=null;function tn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function Si(e,t,n){try{n()}catch(r){K(e,t,r)}}var Mu=!1;function wh(e,t){if(ri=ul,e=hc(),ts(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,c=0,p=e,v=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(s=i+l),p!==o||r!==0&&p.nodeType!==3||(u=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(g=p.firstChild)!==null;)v=p,p=g;for(;;){if(p===e)break t;if(v===n&&++a===l&&(s=i),v===o&&++c===r&&(u=i),(g=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(li={focusedElem:e,selectionRange:n},ul=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,N=y.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?h:Ae(t.type,h),N);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(x){K(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return y=Mu,Mu=!1,y}function Kn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Si(t,n,o)}l=l.next}while(l!==r)}}function Bl(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 xi(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 df(e){var t=e.alternate;t!==null&&(e.alternate=null,df(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[or],delete t[si],delete t[th],delete t[nh])),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 pf(e){return e.tag===5||e.tag===3||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pf(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 Ei(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=fl));else if(r!==4&&(e=e.child,e!==null))for(Ei(e,t,n),e=e.sibling;e!==null;)Ei(e,t,n),e=e.sibling}function ki(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(ki(e,t,n),e=e.sibling;e!==null;)ki(e,t,n),e=e.sibling}var re=null,Ue=!1;function lt(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:ue||tn(n,t);case 6:var r=re,l=Ue;re=null,lt(e,t,n),re=r,Ue=l,re!==null&&(Ue?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Ue?(e=re,n=n.stateNode,e.nodeType===8?So(e.parentNode,n):e.nodeType===1&&So(e,n),er(e)):So(re,n.stateNode));break;case 4:r=re,l=Ue,re=n.stateNode.containerInfo,Ue=!0,lt(e,t,n),re=r,Ue=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Si(n,t,i),l=l.next}while(l!==r)}lt(e,t,n);break;case 1:if(!ue&&(tn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){K(n,t,s)}lt(e,t,n);break;case 21:lt(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,lt(e,t,n),ue=r):lt(e,t,n);break;default:lt(e,t,n)}}function $u(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gh),t.forEach(function(r){var l=Rh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xh(r/1960))-r,10e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,Cl=0,D&6)throw Error(E(331));var l=D;for(D|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uG()-xs?At(e,0):Ss|=n),ge(e,t)}function Ef(e,t){t===0&&(e.mode&1?(t=Tr,Tr<<=1,!(Tr&130023424)&&(Tr=4194304)):t=1);var n=fe();e=tt(e,t),e!==null&&(mr(e,t,n),ge(e,n))}function _h(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ef(e,n)}function Rh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Ef(e,n)}var kf;kf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,mh(e,t,n);me=!!(e.flags&131072)}else me=!1,H&&t.flags&1048576&&Nc(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xr(e,t),e=t.pendingProps;var l=fn(t,ae.current);un(t,n),l=hs(null,t,r,e,l,n);var o=ms();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ve(r)?(o=!0,pl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,as(t),l.updater=Il,t.stateNode=l,l._reactInternals=t,pi(t,r,e,n),t=yi(null,t,r,!0,o,n)):(t.tag=0,H&&o&&ns(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=jh(r),e=Ae(r,e),l){case 0:t=mi(null,t,r,e,n);break e;case 1:t=Du(null,t,r,e,n);break e;case 11:t=Au(null,t,r,e,n);break e;case 14:t=Uu(null,t,r,Ae(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),mi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Du(e,t,r,l,n);case 3:e:{if(of(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Tc(e,t),gl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=mn(Error(E(423)),t),t=Fu(e,t,r,n,l);break e}else if(r!==l){l=mn(Error(E(424)),t),t=Fu(e,t,r,n,l);break e}else for(xe=yt(t.stateNode.containerInfo.firstChild),Ee=t,H=!0,De=null,n=zc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dn(),r===l){t=nt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return Ac(t),e===null&&ci(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,oi(r,l)?i=null:o!==null&&oi(r,o)&&(t.flags|=32),lf(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&ci(t),null;case 13:return sf(e,t,n);case 4:return cs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Au(e,t,r,l,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,M(yl,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!ye.current){t=nt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Ze(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),fi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),fi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,un(t,n),l=Oe(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Ae(r,t.pendingProps),l=Ae(r.type,l),Uu(e,t,r,l,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Xr(e,t),t.tag=1,ve(r)?(e=!0,pl(t)):e=!1,un(t,n),Oc(t,r,l),pi(t,r,l,n),yi(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 22:return rf(e,t,n)}throw Error(E(156,t.tag))};function Cf(e,t){return Xa(e,t)}function Th(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 Re(e,t,n,r){return new Th(e,t,n,r)}function Ns(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jh(e){if(typeof e=="function")return Ns(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wi)return 11;if(e===Qi)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Re(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 qr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ns(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Kt:return Ut(n.children,l,o,t);case Vi:i=8,l|=8;break;case Fo:return e=Re(12,n,t,l|2),e.elementType=Fo,e.lanes=o,e;case Io:return e=Re(13,n,t,l),e.elementType=Io,e.lanes=o,e;case Mo:return e=Re(19,n,t,l),e.elementType=Mo,e.lanes=o,e;case La:return Hl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ja:i=10;break e;case Oa:i=9;break e;case Wi:i=11;break e;case Qi:i=14;break e;case it:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Re(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=Re(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Re(22,e,r,t),e.elementType=La,e.lanes=n,e.stateNode={isHidden:!1},e}function Ro(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function To(e,t,n){return t=Re(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Oh(e,t,n,r,l){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=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ps(e,t,n,r,l,o,i,s,u){return e=new Oh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Re(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},as(o),e}function Lh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rf)}catch(e){console.error(e)}}Rf(),Na.exports=Ce;var Fh=Na.exports,Xu=Fh;Uo.createRoot=Xu.createRoot,Uo.hydrateRoot=Xu.hydrateRoot;/** + * @remix-run/router v1.10.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function js(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mh(){return Math.random().toString(36).substr(2,8)}function Zu(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(e,t,n,r){return n===void 0&&(n=null),dr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xn(t):t,{state:n,key:t&&t.key||r||Mh()})}function _l(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 xn(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 Bh(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=dt.Pop,u=null,a=c();a==null&&(a=0,i.replaceState(dr({},i.state,{idx:a}),""));function c(){return(i.state||{idx:null}).idx}function p(){s=dt.Pop;let N=c(),d=N==null?null:N-a;a=N,u&&u({action:s,location:h.location,delta:d})}function v(N,d){s=dt.Push;let f=Ri(h.location,N,d);n&&n(f,N),a=c()+1;let m=Zu(f,a),x=h.createHref(f);try{i.pushState(m,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(x)}o&&u&&u({action:s,location:h.location,delta:1})}function g(N,d){s=dt.Replace;let f=Ri(h.location,N,d);n&&n(f,N),a=c();let m=Zu(f,a),x=h.createHref(f);i.replaceState(m,"",x),o&&u&&u({action:s,location:h.location,delta:0})}function y(N){let d=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof N=="string"?N:_l(N);return Y(d,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,d)}let h={get action(){return s},get location(){return e(l,i)},listen(N){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Yu,p),u=N,()=>{l.removeEventListener(Yu,p),u=null}},createHref(N){return t(l,N)},createURL:y,encodeLocation(N){let d=y(N);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:v,replace:g,go(N){return i.go(N)}};return h}var qu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qu||(qu={}));function $h(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?xn(t):t,l=Os(r.pathname||"/",n);if(l==null)return null;let o=Tf(e);Hh(o);let i=null;for(let s=0;i==null&&s{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Y(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 a=xt([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(Y(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Tf(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Xh(a,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of jf(o.path))l(o,i,u)}),t}function jf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=jf(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Hh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vh=/^:\w+$/,Wh=3,Qh=2,Kh=1,Jh=10,Gh=-2,bu=e=>e==="*";function Xh(e,t){let n=e.split("/"),r=n.length;return n.some(bu)&&(r+=Gh),t&&(r+=Qh),n.filter(l=>!bu(l)).reduce((l,o)=>l+(Vh.test(o)?Wh:o===""?Kh:Jh),r)}function Yh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Zh(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(c==="*"){let v=s[p]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}return a[c]=tm(s[p]||"",c),a},{}),pathname:o,pathnameBase:i,pattern:e}}function bh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),js(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function em(e){try{return decodeURI(e)}catch(t){return js(!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 tm(e,t){try{return decodeURIComponent(e)}catch(n){return js(!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 Os(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 nm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?xn(e):e;return{pathname:n?n.startsWith("/")?n:rm(n,t):t,search:om(r),hash:im(l)}}function rm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function jo(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 Of(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Lf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=xn(e):(l=dr({},e),Y(!l.pathname||!l.pathname.includes("?"),jo("?","pathname","search",l)),Y(!l.pathname||!l.pathname.includes("#"),jo("#","pathname","hash",l)),Y(!l.search||!l.search.includes("#"),jo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(r||i==null)s=n;else{let p=t.length-1;if(i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),p-=1;l.pathname=v.join("/")}s=p>=0?t[p]:"/"}let u=nm(l,s),a=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||c)&&(u.pathname+="/"),u}const xt=e=>e.join("/").replace(/\/\/+/g,"/"),lm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),om=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,im=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zf=["post","put","patch","delete"];new Set(zf);const um=["get",...zf];new Set(um);/** + * React Router v6.17.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),i=k.useRef(!1);return Uf(()=>{i.current=!0}),k.useCallback(function(u,a){if(a===void 0&&(a={}),!i.current)return;if(typeof u=="number"){n.go(u);return}let c=Lf(u,JSON.parse(o),l,a.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:xt([t,c.pathname])),(a.replace?n.replace:n.push)(c,a.state,a)},[t,n,o,l,e])}function Df(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext(Vt),{pathname:l}=Gl(),o=JSON.stringify(Of(r).map(i=>i.pathnameBase));return k.useMemo(()=>Lf(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function dm(e,t){return pm(e,t)}function pm(e,t,n){wr()||Y(!1);let{navigator:r}=k.useContext(En),{matches:l}=k.useContext(Vt),o=l[l.length-1],i=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Gl(),a;if(t){var c;let h=typeof t=="string"?xn(t):t;s==="/"||(c=h.pathname)!=null&&c.startsWith(s)||Y(!1),a=h}else a=u;let p=a.pathname||"/",v=s==="/"?p:p.slice(s.length)||"/",g=$h(e,{pathname:v}),y=gm(g&&g.map(h=>Object.assign({},h,{params:Object.assign({},i,h.params),pathname:xt([s,r.encodeLocation?r.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?s:xt([s,r.encodeLocation?r.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),l,n);return t&&y?k.createElement(Jl.Provider,{value:{location:Rl({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:dt.Pop}},y):y}function hm(){let e=Em(),t=sm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=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:l},n):null,o)}const mm=k.createElement(hm,null);class ym 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(Vt.Provider,{value:this.props.routeContext},k.createElement(Af.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vm(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(Ls);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Vt.Provider,{value:t},r)}function gm(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let s=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));s>=0||Y(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,u,a)=>{let c=u.route.id?i==null?void 0:i[u.route.id]:null,p=null;n&&(p=u.route.errorElement||mm);let v=t.concat(o.slice(0,a+1)),g=()=>{let y;return c?y=p:u.route.Component?y=k.createElement(u.route.Component,null):u.route.element?y=u.route.element:y=s,k.createElement(vm,{match:u,routeContext:{outlet:s,matches:v,isDataRoute:n!=null},children:y})};return n&&(u.route.ErrorBoundary||u.route.errorElement||a===0)?k.createElement(ym,{location:n.location,revalidation:n.revalidation,component:p,error:c,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var Ff=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ff||{}),Tl=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}(Tl||{});function wm(e){let t=k.useContext(Ls);return t||Y(!1),t}function Sm(e){let t=k.useContext(am);return t||Y(!1),t}function xm(e){let t=k.useContext(Vt);return t||Y(!1),t}function If(e){let t=xm(),n=t.matches[t.matches.length-1];return n.route.id||Y(!1),n.route.id}function Em(){var e;let t=k.useContext(Af),n=Sm(Tl.UseRouteError),r=If(Tl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function km(){let{router:e}=wm(Ff.UseNavigateStable),t=If(Tl.UseNavigateStable),n=k.useRef(!1);return Uf(()=>{n.current=!0}),k.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Rl({fromRouteId:t},o)))},[e,t])}function Mn(e){Y(!1)}function Cm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=dt.Pop,navigator:o,static:i=!1}=e;wr()&&Y(!1);let s=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:s,navigator:o,static:i}),[s,o,i]);typeof r=="string"&&(r=xn(r));let{pathname:a="/",search:c="",hash:p="",state:v=null,key:g="default"}=r,y=k.useMemo(()=>{let h=Os(a,s);return h==null?null:{location:{pathname:h,search:c,hash:p,state:v,key:g},navigationType:l}},[s,a,c,p,v,g,l]);return y==null?null:k.createElement(En.Provider,{value:u},k.createElement(Jl.Provider,{children:n,value:y}))}function Nm(e){let{children:t,location:n}=e;return dm(Ti(t),n)}new Promise(()=>{});function Ti(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let o=[...t,l];if(r.type===k.Fragment){n.push.apply(n,Ti(r.props.children,o));return}r.type!==Mn&&Y(!1),!r.props.index||!r.props.children||Y(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ti(r.props.children,o)),n.push(i)}),n}/** + * React Router DOM v6.17.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function _m(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rm(e,t){return e.button===0&&(!t||t==="_self")&&!_m(e)}const Tm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],jm="startTransition",ea=_d[jm];function Om(e){let{basename:t,children:n,future:r,window:l}=e,o=k.useRef();o.current==null&&(o.current=Ih({window:l,v5Compat:!0}));let i=o.current,[s,u]=k.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},c=k.useCallback(p=>{a&&ea?ea(()=>u(p)):u(p)},[u,a]);return k.useLayoutEffect(()=>i.listen(c),[i,c]),k.createElement(Cm,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const Lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,br=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:c,unstable_viewTransition:p}=t,v=Pm(t,Tm),{basename:g}=k.useContext(En),y,h=!1;if(typeof a=="string"&&zm.test(a)&&(y=a,Lm))try{let m=new URL(window.location.href),x=a.startsWith("//")?new URL(m.protocol+a):new URL(a),P=Os(x.pathname,g);x.origin===m.origin&&P!=null?a=P+x.search+x.hash:h=!0}catch{}let N=cm(a,{relative:l}),d=Am(a,{replace:i,state:s,target:u,preventScrollReset:c,relative:l,unstable_viewTransition:p});function f(m){r&&r(m),m.defaultPrevented||d(m)}return k.createElement("a",ji({},v,{href:y||N,onClick:h||o?r:f,ref:n,target:u}))});var ta;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ta||(ta={}));var na;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(na||(na={}));function Am(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=zs(),a=Gl(),c=Df(e,{relative:i});return k.useCallback(p=>{if(Rm(p,n)){p.preventDefault();let v=r!==void 0?r:_l(a)===_l(c);u(e,{replace:v,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[a,u,c,r,l,n,e,o,i,s])}const Um="/artful-royalties-v3/assets/logo-b5e994ef.svg",Dm="/artful-royalties-v3/assets/trynow-69e77853.png",Fm="/artful-royalties-v3/assets/heroimage-f5708da4.png",Im=()=>S.jsxs("section",{className:"max-w-7xl mx-auto",children:[S.jsxs("div",{className:"container mx-auto flex items-center justify-between py-1",children:[S.jsxs("div",{className:"",children:[S.jsx("h1",{className:"text-6xl font-bold text-gray-900 my-4",children:"Generate Art using AI"}),S.jsx(br,{to:"/create-art",className:"px-6 py-2 my-8 rounded",children:S.jsx("img",{src:Dm,alt:"try-now-button",className:"w-28 object-contain ml-30"})}),S.jsxs("p",{className:"text-lg text-gray-900 my-4",children:["Empowering artists, ",S.jsx("br",{})," one creation at a time with Artful Royalties."]})]}),S.jsx("img",{src:Fm,alt:"hero",className:"w-3/5"})]}),S.jsx("div",{children:"© Artful Royalties - Project by Shafin Shaikh, Gandhar Date, Pranay Mohature and Advait Bhore"})]}),Mm=()=>S.jsx("div",{role:"status",children:S.jsxs("svg",{"aria-hidden":"true",className:"inline w-10 h-10 mr-2 text-gray-200 animate-spin fill-[#6469ff]",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),S.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})});function Bm(){const[e,t]=k.useState(""),[n,r]=k.useState(100),[l,o]=k.useState([]),[i,s]=k.useState(!1),[u,a]=k.useState(null),[c,p]=k.useState(""),[v,g]=k.useState([]),[y,h]=k.useState([]);k.useEffect(()=>{(async()=>{try{const T=await(await fetch("http://localhost:5000/api/get-artists",{headers:{Authorization:"Bearer "+localStorage.getItem("authToken")}})).json();T.success?(h(T.artists),g(T.artists.slice(0,2))):console.error("Failed to fetch artists:",T.message)}catch(_){console.error("Error fetching artists:",_)}})()},[]);const N=async()=>{if(s(!0),!u){alert("Please select an artist first!"),s(!1);return}const C=u.styleDescription,_=`${e}. ${C}`;console.log(u);try{const I=await(await fetch("http://localhost:5000/api/generate-art",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+localStorage.getItem("authToken")},body:JSON.stringify({textPrompts:_,artistId:u._id})})).json();I.success?(o(L=>[...I.images.map(we=>({imageUrl:we,cost:10})),...L]),r(L=>L-10),a(null)):console.error("Art generation failed:",I.message)}catch(T){console.error("Art generation error:",T)}s(!1)},d=C=>{a(C)},f=C=>{if(!C)g(y.slice(0,2));else{const _=y.filter(T=>T.name.toLowerCase().includes(C.toLowerCase()));g(_)}},m=C=>({marginBottom:"1rem",cursor:"pointer",backgroundColor:u&&u._id===C._id?"#cedada":"transparent"}),x=()=>u?S.jsxs("div",{style:m(u),onClick:()=>d(u),children:[S.jsx("div",{className:"font-bold",children:u.name}),S.jsx("div",{className:"flex overflow-x-auto",children:u.artworks.slice(0,5).map((C,_)=>S.jsx("img",{src:C.imageUrl,alt:`Preview of ${u.name}`,className:"w-40 h-40 object-cover rounded-md mr-2"},_))})]}):null,P=v.filter(C=>!u||C._id!==u._id);return S.jsxs("div",{className:"flex flex-col h-full",children:[S.jsxs("div",{className:"p-3 bg-[#cedada] text-black rounded-md",children:["User Token Balance: ",n]}),S.jsxs("div",{className:"flex-grow flex",children:[S.jsx("div",{className:"w-1/4 overflow-y-auto",children:S.jsxs("div",{children:[S.jsx("div",{className:"text-black justify-center align-middle my-5 mx-16 font-bold text-xl",children:S.jsx("h2",{children:"Your Creations-"})}),l.map((C,_)=>S.jsxs("div",{className:"p-2 border-b",children:[S.jsx("img",{src:C.imageUrl,alt:"Generated Art",className:"w-full h-32 object-cover"}),S.jsxs("div",{children:["Cost: ",C.cost]})]},_))]})}),S.jsxs("div",{className:"w-1/2 flex flex-col items-center p-4",children:[i?S.jsx("div",{className:"flex-grow bg-gray-300 w-full rounded-md h-72 px-20 py-20",children:S.jsxs("div",{className:"flex-col items-center mx-20 my-20",children:[S.jsx(Mm,{})," ",S.jsx("br",{}),S.jsx("div",{children:"Please wait while your creation is blooming..."})]})}):l.length>0?S.jsx("img",{src:l[0].imageUrl,alt:"Generated Art",className:"flex-grow w-full rounded-md"}):S.jsx("div",{className:"flex-grow bg-white w-full rounded-md h-72 px-20 py-20"}),S.jsxs("div",{className:"flex mt-4 w-full",children:[S.jsx("input",{type:"text",value:e,onChange:C=>t(C.target.value),className:"flex-grow p-2 border rounded-md",placeholder:"Enter your prompt..."}),S.jsx("button",{onClick:N,className:"ml-2 bg-black text-white p-2 rounded-md",children:"Dream"})]})]}),S.jsxs("div",{className:"w-1/4 p-4",children:[S.jsx("div",{className:"mb-4",children:S.jsx("input",{type:"text",value:c,onChange:C=>{p(C.target.value),f(C.target.value)},onFocus:()=>f(""),placeholder:"Search for artists...",className:"w-full p-2 border rounded-md"})}),x(),P.map((C,_)=>S.jsxs("div",{style:m(C),onClick:()=>d(C),children:[S.jsx("div",{className:"font-bold",children:C.name}),S.jsx("div",{className:"flex overflow-x-auto",children:C.artworks.slice(0,5).map((T,I)=>S.jsx("img",{src:T.imageUrl,alt:`Preview of ${C.name}`,className:"w-40 h-40 object-cover rounded-md mr-2"},I))})]},_))]})]})]})}function $m(){const[e,t]=k.useState([]),[n,r]=k.useState(null),[l,o]=k.useState(""),[i,s]=k.useState(0),[u,a]=k.useState("");k.useEffect(()=>{(async()=>{try{const h=await(await fetch("http://localhost:5000/api/get-artworks",{headers:{Authorization:"Bearer "+localStorage.getItem("authToken")}})).json();h.success?t(h.artworks):console.error("Failed to fetch artworks:",h.message)}catch(y){console.error("Error fetching artworks:",y)}})()},[]),k.useEffect(()=>{(async()=>{try{const h=await(await fetch("http://localhost:5000/api/get-artist-data",{headers:{Authorization:"Bearer "+localStorage.getItem("authToken")}})).json();h.success?(t(h.artworks),s(h.tokenBalance),a(h.name)):console.error("Failed to fetch artist data:",h.message)}catch(y){console.error("Error fetching artist data:",y)}})()},[]);const c=g=>{r(g.target.files[0])},p=async()=>{if(!n)return;const g=new FormData;g.append("artwork",n);try{const h=await(await fetch("http://localhost:5000/api/upload-artwork",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem("authToken")},body:g})).json();h.success?t([...e,h.artwork]):console.error("Upload failed:",h.message)}catch(y){console.error("Upload error:",y)}},v=async()=>{try{const y=await(await fetch("http://localhost:5000/api/update-style",{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer "+localStorage.getItem("authToken")},body:JSON.stringify({styleDescription:l})})).json();y.success?alert("Style description updated successfully!"):console.error("Update failed:",y.message)}catch(g){console.error("Update error:",g)}};return S.jsxs("div",{children:[S.jsxs("h1",{className:"text-2xl mb-4",children:["Welcome, ",u]})," ",S.jsx("h1",{className:"text-2xl mb-4",children:"Your Artworks"}),S.jsxs("div",{className:"mb-4",children:[S.jsxs("div",{className:"text-lg",children:["Token Balance: ",i]})," ",S.jsx("input",{type:"file",onChange:c}),S.jsx("button",{onClick:p,className:"ml-2 bg-blue-500 text-white p-2 rounded",children:"Upload Artwork"})]}),S.jsxs("div",{className:"mb-4",children:[S.jsx("textarea",{value:l,onChange:g=>o(g.target.value),placeholder:"Describe your art style...",className:"w-full p-2 border rounded-md"}),S.jsx("button",{onClick:v,className:"mt-2 bg-blue-500 text-white p-2 rounded",children:"Update Style Description"})]}),S.jsx("div",{className:"grid grid-cols-3 gap-4",children:e.map((g,y)=>S.jsx("div",{children:S.jsx("img",{src:g.imageUrl,alt:"Artwork",className:"w-full h-full object-cover rounded-md"})},y))})]})}function Mf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hm}=Object.prototype,{getPrototypeOf:As}=Object,Xl=(e=>t=>{const n=Hm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ke=e=>(e=e.toLowerCase(),t=>Xl(t)===e),Yl=e=>t=>typeof t===e,{isArray:kn}=Array,pr=Yl("undefined");function Vm(e){return e!==null&&!pr(e)&&e.constructor!==null&&!pr(e.constructor)&&je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bf=Ke("ArrayBuffer");function Wm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bf(e.buffer),t}const Qm=Yl("string"),je=Yl("function"),$f=Yl("number"),Zl=e=>e!==null&&typeof e=="object",Km=e=>e===!0||e===!1,el=e=>{if(Xl(e)!=="object")return!1;const t=As(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jm=Ke("Date"),Gm=Ke("File"),Xm=Ke("Blob"),Ym=Ke("FileList"),Zm=e=>Zl(e)&&je(e.pipe),qm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||je(e.append)&&((t=Xl(e))==="formdata"||t==="object"&&je(e.toString)&&e.toString()==="[object FormData]"))},bm=Ke("URLSearchParams"),e0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),kn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Vf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Wf=e=>!pr(e)&&e!==Vf;function Oi(){const{caseless:e}=Wf(this)&&this||{},t={},n=(r,l)=>{const o=e&&Hf(t,l)||l;el(t[o])&&el(r)?t[o]=Oi(t[o],r):el(r)?t[o]=Oi({},r):kn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(Sr(t,(l,o)=>{n&&je(l)?e[o]=Mf(l,n):e[o]=l},{allOwnKeys:r}),e),n0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r0=(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)},l0=(e,t,n,r)=>{let l,o,i;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&As(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},o0=(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},i0=e=>{if(!e)return null;if(kn(e))return e;let t=e.length;if(!$f(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},s0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&As(Uint8Array)),u0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},a0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},c0=Ke("HTMLFormElement"),f0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),ra=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),d0=Ke("RegExp"),Qf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sr(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},p0=e=>{Qf(e,(t,n)=>{if(je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(je(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+"'")})}})},h0=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return kn(e)?r(e):r(String(e).split(t)),n},m0=()=>{},y0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Oo="abcdefghijklmnopqrstuvwxyz",la="0123456789",Kf={DIGIT:la,ALPHA:Oo,ALPHA_DIGIT:Oo+Oo.toUpperCase()+la},v0=(e=16,t=Kf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function g0(e){return!!(e&&je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const w0=e=>{const t=new Array(10),n=(r,l)=>{if(Zl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=kn(r)?[]:{};return Sr(r,(i,s)=>{const u=n(i,l+1);!pr(u)&&(o[s]=u)}),t[l]=void 0,o}}return r};return n(e,0)},S0=Ke("AsyncFunction"),x0=e=>e&&(Zl(e)||je(e))&&je(e.then)&&je(e.catch),w={isArray:kn,isArrayBuffer:Bf,isBuffer:Vm,isFormData:qm,isArrayBufferView:Wm,isString:Qm,isNumber:$f,isBoolean:Km,isObject:Zl,isPlainObject:el,isUndefined:pr,isDate:Jm,isFile:Gm,isBlob:Xm,isRegExp:d0,isFunction:je,isStream:Zm,isURLSearchParams:bm,isTypedArray:s0,isFileList:Ym,forEach:Sr,merge:Oi,extend:t0,trim:e0,stripBOM:n0,inherits:r0,toFlatObject:l0,kindOf:Xl,kindOfTest:Ke,endsWith:o0,toArray:i0,forEachEntry:u0,matchAll:a0,isHTMLForm:c0,hasOwnProperty:ra,hasOwnProp:ra,reduceDescriptors:Qf,freezeMethods:p0,toObjectSet:h0,toCamelCase:f0,noop:m0,toFiniteNumber:y0,findKey:Hf,global:Vf,isContextDefined:Wf,ALPHABET:Kf,generateString:v0,isSpecCompliantForm:g0,toJSONObject:w0,isAsyncFn:S0,isThenable:x0};function U(e,t,n,r,l){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),l&&(this.response=l)}w.inherits(U,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:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jf=U.prototype,Gf={};["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=>{Gf[e]={value:e}});Object.defineProperties(U,Gf);Object.defineProperty(Jf,"isAxiosError",{value:!0});U.from=(e,t,n,r,l,o)=>{const i=Object.create(Jf);return w.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),U.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const E0=null;function Li(e){return w.isPlainObject(e)||w.isArray(e)}function Xf(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function oa(e,t,n){return e?e.concat(t).map(function(l,o){return l=Xf(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function k0(e){return w.isArray(e)&&!e.some(Li)}const C0=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function ql(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,N){return!w.isUndefined(N[h])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(l))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(w.isDate(y))return y.toISOString();if(!u&&w.isBlob(y))throw new U("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(y)||w.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,h,N){let d=y;if(y&&!N&&typeof y=="object"){if(w.endsWith(h,"{}"))h=r?h:h.slice(0,-2),y=JSON.stringify(y);else if(w.isArray(y)&&k0(y)||(w.isFileList(y)||w.endsWith(h,"[]"))&&(d=w.toArray(y)))return h=Xf(h),d.forEach(function(m,x){!(w.isUndefined(m)||m===null)&&t.append(i===!0?oa([h],x,o):i===null?h:h+"[]",a(m))}),!1}return Li(y)?!0:(t.append(oa(N,h,o),a(y)),!1)}const p=[],v=Object.assign(C0,{defaultVisitor:c,convertValue:a,isVisitable:Li});function g(y,h){if(!w.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(y),w.forEach(y,function(d,f){(!(w.isUndefined(d)||d===null)&&l.call(t,d,w.isString(f)?f.trim():f,h,v))===!0&&g(d,h?h.concat(f):[f])}),p.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return g(e),t}function ia(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Us(e,t){this._pairs=[],e&&ql(e,this,t)}const Yf=Us.prototype;Yf.append=function(t,n){this._pairs.push([t,n])};Yf.toString=function(t){const n=t?function(r){return t.call(this,r,ia)}:ia;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function N0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zf(e,t,n){if(!t)return e;const r=n&&n.encode||N0,l=n&&n.serialize;let o;if(l?o=l(t,n):o=w.isURLSearchParams(t)?t.toString():new Us(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class P0{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){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sa=P0,qf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_0=typeof URLSearchParams<"u"?URLSearchParams:Us,R0=typeof FormData<"u"?FormData:null,T0=typeof Blob<"u"?Blob:null,j0=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),O0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ve={isBrowser:!0,classes:{URLSearchParams:_0,FormData:R0,Blob:T0},isStandardBrowserEnv:j0,isStandardBrowserWebWorkerEnv:O0,protocols:["http","https","file","blob","url","data"]};function L0(e,t){return ql(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return Ve.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function z0(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function A0(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&w.isArray(l)?l.length:i,u?(w.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!s):((!l[i]||!w.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&w.isArray(l[i])&&(l[i]=A0(l[i])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,l)=>{t(z0(r),l,n,0)}),n}return null}function U0(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ds={transitional:qf,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=w.isObject(t);if(o&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return l&&l?JSON.stringify(bf(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L0(t,this.formSerializer).toString();if((s=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ql(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),U0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ds.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?U.from(s,U.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Ds.headers[e]={}});const Fs=Ds,D0=w.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"]),F0=e=>{const t={};let n,r,l;return e&&e.split(` +`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&D0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ua=Symbol("internals");function An(e){return e&&String(e).trim().toLowerCase()}function tl(e){return e===!1||e==null?e:w.isArray(e)?e.map(tl):String(e)}function I0(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 M0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Lo(e,t,n,r,l){if(w.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function B0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $0(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class bl{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(s,u,a){const c=An(u);if(!c)throw new Error("header name must be a non-empty string");const p=w.findKey(l,c);(!p||l[p]===void 0||a===!0||a===void 0&&l[p]!==!1)&&(l[p||u]=tl(s))}const i=(s,u)=>w.forEach(s,(a,c)=>o(a,c,u));return w.isPlainObject(t)||t instanceof this.constructor?i(t,n):w.isString(t)&&(t=t.trim())&&!M0(t)?i(F0(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=An(t),t){const r=w.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return I0(l);if(w.isFunction(n))return n.call(this,l,r);if(w.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=An(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Lo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=An(i),i){const s=w.findKey(r,i);s&&(!n||Lo(r,r[s],s,n))&&(delete r[s],l=!0)}}return w.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Lo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return w.forEach(this,(l,o)=>{const i=w.findKey(r,o);if(i){n[i]=tl(l),delete n[o];return}const s=t?B0(o):String(o).trim();s!==o&&delete n[o],n[s]=tl(l),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&w.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(l=>r.set(l)),r}static accessor(t){const r=(this[ua]=this[ua]={accessors:{}}).accessors,l=this.prototype;function o(i){const s=An(i);r[s]||($0(l,i),r[s]=!0)}return w.isArray(t)?t.forEach(o):o(t),this}}bl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(bl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(bl);const qe=bl;function zo(e,t){const n=this||Fs,r=t||n,l=qe.from(r.headers);let o=r.data;return w.forEach(e,function(s){o=s.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function ed(e){return!!(e&&e.__CANCEL__)}function xr(e,t,n){U.call(this,e??"canceled",U.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(xr,U,{__CANCEL__:!0});function H0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const V0=Ve.isStandardBrowserEnv?function(){return{write:function(n,r,l,o,i,s){const u=[];u.push(n+"="+encodeURIComponent(r)),w.isNumber(l)&&u.push("expires="+new Date(l).toGMTString()),w.isString(o)&&u.push("path="+o),w.isString(i)&&u.push("domain="+i),s===!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 W0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Q0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function td(e,t){return e&&!W0(t)?Q0(e,t):t}const K0=Ve.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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=l(window.location.href),function(i){const s=w.isString(i)?l(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function J0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function G0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[o];i||(i=a),n[l]=u,r[l]=a;let p=o,v=0;for(;p!==l;)v+=n[p++],p=p%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{const o=l.loaded,i=l.lengthComputable?l.total:void 0,s=o-n,u=r(s),a=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&a?(i-o)/u:void 0,event:l};c[t?"download":"upload"]=!0,e(c)}}const X0=typeof XMLHttpRequest<"u",Y0=X0&&function(e){return new Promise(function(n,r){let l=e.data;const o=qe.from(e.headers).normalize(),i=e.responseType;let s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let a;w.isFormData(l)&&(Ve.isStandardBrowserEnv||Ve.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?w.isString(a=o.getContentType())&&o.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+h))}const p=td(e.baseURL,e.url);c.open(e.method.toUpperCase(),Zf(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function v(){if(!c)return;const y=qe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),N={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:e,request:c};H0(function(f){n(f),u()},function(f){r(f),u()},N),c=null}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){c&&(r(new U("Request aborted",U.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const N=e.transitional||qf;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new U(h,N.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,c)),c=null},Ve.isStandardBrowserEnv){const y=K0(p)&&e.xsrfCookieName&&V0.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in c&&w.forEach(o.toJSON(),function(h,N){c.setRequestHeader(N,h)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",aa(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",aa(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=y=>{c&&(r(!y||y.type?new xr(null,e,c):y),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const g=J0(p);if(g&&Ve.protocols.indexOf(g)===-1){r(new U("Unsupported protocol "+g+":",U.ERR_BAD_REQUEST,e));return}c.send(l||null)})},zi={http:E0,xhr:Y0};w.forEach(zi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ca=e=>`- ${e}`,Z0=e=>w.isFunction(e)||e===null||e===!1,nd={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(ca).join(` +`):" "+ca(o[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:zi};function Ao(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function fa(e){return Ao(e),e.headers=qe.from(e.headers),e.data=zo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nd.getAdapter(e.adapter||Fs.adapter)(e).then(function(r){return Ao(e),r.data=zo.call(e,e.transformResponse,r),r.headers=qe.from(r.headers),r},function(r){return ed(r)||(Ao(e),r&&r.response&&(r.response.data=zo.call(e,e.transformResponse,r.response),r.response.headers=qe.from(r.response.headers))),Promise.reject(r)})}const da=e=>e instanceof qe?e.toJSON():e;function vn(e,t){t=t||{};const n={};function r(a,c,p){return w.isPlainObject(a)&&w.isPlainObject(c)?w.merge.call({caseless:p},a,c):w.isPlainObject(c)?w.merge({},c):w.isArray(c)?c.slice():c}function l(a,c,p){if(w.isUndefined(c)){if(!w.isUndefined(a))return r(void 0,a,p)}else return r(a,c,p)}function o(a,c){if(!w.isUndefined(c))return r(void 0,c)}function i(a,c){if(w.isUndefined(c)){if(!w.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,p){if(p in t)return r(a,c);if(p in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(a,c)=>l(da(a),da(c),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(c){const p=u[c]||l,v=p(e[c],t[c],c);w.isUndefined(v)&&p!==s||(n[c]=v)}),n}const rd="1.6.0",Is={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Is[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pa={};Is.transitional=function(t,n,r){function l(o,i){return"[Axios v"+rd+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new U(l(i," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!pa[i]&&(pa[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};function q0(e,t,n){if(typeof e!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new U("option "+o+" must be "+u,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+o,U.ERR_BAD_OPTION)}}const Ai={assertOptions:q0,validators:Is},ot=Ai.validators;class jl{constructor(t){this.defaults=t,this.interceptors={request:new sa,response:new sa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Ai.assertOptions(r,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean)},!1),l!=null&&(w.isFunction(l)?n.paramsSerializer={serialize:l}:Ai.assertOptions(l,{encode:ot.function,serialize:ot.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=qe.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(u=u&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});let c,p=0,v;if(!u){const y=[fa.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),v=y.length,c=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new xr(o,i,s),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 Ms(function(l){t=l}),cancel:t}}}const b0=Ms;function ey(e){return function(n){return e.apply(null,n)}}function ty(e){return w.isObject(e)&&e.isAxiosError===!0}const Ui={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(Ui).forEach(([e,t])=>{Ui[t]=e});const ny=Ui;function ld(e){const t=new nl(e),n=Mf(nl.prototype.request,t);return w.extend(n,nl.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return ld(vn(e,l))},n}const Z=ld(Fs);Z.Axios=nl;Z.CanceledError=xr;Z.CancelToken=b0;Z.isCancel=ed;Z.VERSION=rd;Z.toFormData=ql;Z.AxiosError=U;Z.Cancel=Z.CanceledError;Z.all=function(t){return Promise.all(t)};Z.spread=ey;Z.isAxiosError=ty;Z.mergeConfig=vn;Z.AxiosHeaders=qe;Z.formToJSON=e=>bf(w.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=nd.getAdapter;Z.HttpStatusCode=ny;Z.default=Z;const od=Z,id="http://localhost:5000",sd=async e=>(await od.post(`${id}/signup`,e)).data,ud=async e=>(await od.post(`${id}/login`,e)).data;function ry(){const[e,t]=k.useState(""),[n,r]=k.useState(""),l=zs(),[o,i]=k.useState(!1),[s,u]=k.useState(""),[a,c]=k.useState(""),[p,v]=k.useState(""),g=async()=>{var h;try{const{token:N}=await ud({email:e,password:n});localStorage.setItem("authToken",N),l("/create-art")}catch(N){console.error("Login error:",((h=N.response)==null?void 0:h.data)||N.message)}},y=async()=>{var h;try{await sd({name:s,email:a,password:p,userType:"customer"}),l("/create-art")}catch(N){console.error("Signup error:",((h=N.response)==null?void 0:h.data)||N.message)}};return S.jsxs("div",{className:"flex flex-col items-center justify-center h-screen",children:[S.jsx("h1",{className:"text-2xl mb-4",children:"User Portal"}),o?S.jsxs("div",{className:"w-1/3",children:[S.jsx("h2",{className:"text-xl mb-2",children:"Signup"}),S.jsx("input",{type:"text",placeholder:"Full Name",value:s,onChange:h=>u(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("input",{type:"email",placeholder:"Email",value:a,onChange:h=>c(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("input",{type:"password",placeholder:"Password",value:p,onChange:h=>v(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("button",{onClick:y,className:"bg-green-500 text-white p-2 rounded w-full mb-2",children:"Signup"}),S.jsxs("p",{className:"text-sm text-center",children:["Already have an account? ",S.jsx("span",{className:"text-white cursor-pointer",onClick:()=>i(!1),children:"Login here"})]})]}):S.jsxs("div",{className:"w-1/3 mb-4",children:[S.jsx("h2",{className:"text-xl mb-2",children:"Login"}),S.jsx("input",{type:"email",placeholder:"Email",value:e,onChange:h=>t(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("input",{type:"password",placeholder:"Password",value:n,onChange:h=>r(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("button",{onClick:g,className:"bg-black text-white p-2 rounded w-full mb-2",children:"Login"}),S.jsxs("p",{className:"text-sm text-center",children:["New to Artful Royalties? ",S.jsx("span",{className:"text-white cursor-pointer",onClick:()=>i(!0),children:"Signup here"})]})]})]})}function ly(){const[e,t]=k.useState(""),[n,r]=k.useState(""),l=zs(),[o,i]=k.useState(!1),[s,u]=k.useState(""),[a,c]=k.useState(""),[p,v]=k.useState(""),g=async()=>{var h;try{const{token:N}=await ud({email:e,password:n});localStorage.setItem("authToken",N),l("/artists-dashboard")}catch(N){console.error("Login error:",((h=N.response)==null?void 0:h.data)||N.message)}},y=async()=>{var h;try{await sd({name:s,email:a,password:p,userType:"artist"}),l("/artists-dashboard")}catch(N){console.error("Signup error:",((h=N.response)==null?void 0:h.data)||N.message)}};return S.jsxs("div",{className:"flex flex-col items-center justify-center h-screen",children:[S.jsx("h1",{className:"text-2xl mb-4",children:"Artist Portal"}),o?S.jsxs("div",{className:"w-1/3",children:[S.jsx("h2",{className:"text-xl mb-2",children:"Signup"}),S.jsx("input",{type:"text",placeholder:"Full Name",value:s,onChange:h=>u(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("input",{type:"email",placeholder:"Email",value:a,onChange:h=>c(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("input",{type:"password",placeholder:"Password",value:p,onChange:h=>v(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("button",{onClick:y,className:"bg-green-500 text-white p-2 rounded w-full mb-2",children:"Signup"}),S.jsxs("p",{className:"text-sm text-center",children:["Already have an account? ",S.jsx("span",{className:"text-white cursor-pointer",onClick:()=>i(!1),children:"Login here"})]})]}):S.jsxs("div",{className:"w-1/3 mb-4",children:[S.jsx("h2",{className:"text-xl mb-2",children:"Login"}),S.jsx("input",{type:"email",placeholder:"Email",value:e,onChange:h=>t(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("input",{type:"password",placeholder:"Password",value:n,onChange:h=>r(h.target.value),className:"p-2 border rounded mb-2 w-full"}),S.jsx("button",{onClick:g,className:"bg-black text-white p-2 rounded w-full mb-2",children:"Login"}),S.jsxs("p",{className:"text-sm text-center",children:["New to Artful Royalties? ",S.jsx("span",{className:"text-white cursor-pointer",onClick:()=>i(!0),children:"Signup here"})]})]})]})}const oy=()=>S.jsxs(Om,{children:[S.jsxs("header",{className:"w-full flex justify-between /*bg-[#c4f3f3]*/ bg-white sma:px-8 sticky top-0 z-10 px-12 py-4 border-b border-gray-200 backdrop-filter backdrop-blur-lg bg-opacity-30",children:[S.jsx(br,{to:"/",children:S.jsx("img",{src:Um,alt:"logo",className:"w-28 object-contain"})}),S.jsxs("div",{className:"flex space-x-4",children:[S.jsx(br,{to:"/customer-login",className:"ont-inter font-medium border border-gray-800 hover:bg-[#a2f1f1] px-4 py-2 rounded-full",children:"User Login"}),S.jsx(br,{to:"/artist-login",className:"ont-inter font-medium border border-gray-800 hover:bg-[#a2f1f1] px-4 py-2 rounded-full",children:"Artist Login"})]})]}),S.jsxs("main",{className:"sm:p-8 px-4 py-8 w-full bg-gradient-to-r from-[#40baba] via-[#2591B9] to-[#393939] min-h-[calc(100vh-73px)]",children:[S.jsxs(Nm,{children:[S.jsx(Mn,{path:"/create-art",element:S.jsx(Bm,{})}),S.jsx(Mn,{path:"/artist-login",element:S.jsx(ly,{})}),S.jsx(Mn,{path:"/customer-login",element:S.jsx(ry,{})}),S.jsx(Mn,{path:"/artists-dashboard",element:S.jsx($m,{})})]}),S.jsx(Im,{})]})]});Uo.createRoot(document.getElementById("root")).render(S.jsx(ka.StrictMode,{children:S.jsx(oy,{})}));