(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 Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vs={exports:{}},Sl={},Ws={exports:{}},z={};/** * @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 sr=Symbol.for("react.element"),Pf=Symbol.for("react.portal"),Nf=Symbol.for("react.fragment"),Tf=Symbol.for("react.strict_mode"),Of=Symbol.for("react.profiler"),Lf=Symbol.for("react.provider"),zf=Symbol.for("react.context"),Af=Symbol.for("react.forward_ref"),Ff=Symbol.for("react.suspense"),Df=Symbol.for("react.memo"),jf=Symbol.for("react.lazy"),Eu=Symbol.iterator;function If(e){return e===null||typeof e!="object"?null:(e=Eu&&e[Eu]||e["@@iterator"],typeof e=="function"?e:null)}var Qs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ks=Object.assign,Xs={};function mn(e,t,n){this.props=e,this.context=t,this.refs=Xs,this.updater=n||Qs}mn.prototype.isReactComponent={};mn.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")};mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Js(){}Js.prototype=mn.prototype;function Ei(e,t,n){this.props=e,this.context=t,this.refs=Xs,this.updater=n||Qs}var ki=Ei.prototype=new Js;ki.constructor=Ei;Ks(ki,mn.prototype);ki.isPureReactComponent=!0;var ku=Array.isArray,qs=Object.prototype.hasOwnProperty,xi={current:null},Ys={key:!0,ref:!0,__self:!0,__source:!0};function Gs(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)qs.call(t,r)&&!Ys.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,G=R[K];if(0>>1;Kl(Vl,L))_tl(yr,Vl)?(R[K]=yr,R[_t]=L,K=_t):(R[K]=Vl,R[Ct]=L,K=Ct);else if(_tl(yr,L))R[K]=yr,R[_t]=L,K=_t;else break e}}return O}function l(R,O){var L=R.sortIndex-O.sortIndex;return L!==0?L:R.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,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],f=1,h=null,m=3,S=!1,v=!1,g=!1,P=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=R)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function w(R){if(g=!1,p(R),!v)if(n(s)!==null)v=!0,$l(k);else{var O=n(a);O!==null&&Hl(w,O.startTime-R)}}function k(R,O){v=!1,g&&(g=!1,d(N),N=-1),S=!0;var L=m;try{for(p(O),h=n(s);h!==null&&(!(h.expirationTime>O)||R&&!ze());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var G=K(h.expirationTime<=O);O=e.unstable_now(),typeof G=="function"?h.callback=G:h===n(s)&&r(s),p(O)}else r(s);h=n(s)}if(h!==null)var mr=!0;else{var Ct=n(a);Ct!==null&&Hl(w,Ct.startTime-O),mr=!1}return mr}finally{h=null,m=L,S=!1}}var x=!1,_=null,N=-1,Q=5,A=-1;function ze(){return!(e.unstable_now()-AR||125K?(R.sortIndex=L,t(a,R),n(s)===null&&R===n(a)&&(g?(d(N),N=-1):g=!0,Hl(w,L-K))):(R.sortIndex=G,t(s,R),v||S||(v=!0,$l(k))),R},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(R){var O=m;return function(){var L=m;m=O;try{return R.apply(this,arguments)}finally{m=L}}}})(na);ta.exports=na;var qf=ta.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 Yf=Z,Ee=qf;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"),ko=Object.prototype.hasOwnProperty,Gf=/^[: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]*$/,Cu={},_u={};function Zf(e){return ko.call(_u,e)?!0:ko.call(Cu,e)?!1:Gf.test(e)?_u[e]=!0:(Cu[e]=!0,!1)}function bf(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 ed(e,t,n,r){if(t===null||typeof t>"u"||bf(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 fe(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 re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new fe(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){re[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var _i=/[\-:]([a-z])/g;function Ri(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(_i,Ri);re[t]=new fe(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(_i,Ri);re[t]=new fe(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(_i,Ri);re[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pi(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Kl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ln(e):""}function td(e){switch(e.tag){case 5:return Ln(e.type);case 16:return Ln("Lazy");case 13:return Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function Ro(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 Wt:return"Fragment";case Vt:return"Portal";case xo:return"Profiler";case Ni:return"StrictMode";case Co:return"Suspense";case _o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oa:return(e.displayName||"Context")+".Consumer";case la:return(e._context.displayName||"Context")+".Provider";case Ti:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Oi:return t=e.displayName||null,t!==null?t:Ro(e.type)||"Memo";case ot:t=e._payload,e=e._init;try{return Ro(e(t))}catch{}}return null}function nd(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 Ro(t);case 8:return t===Ni?"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 wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ua(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rd(e){var t=ua(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 wr(e){e._valueTracker||(e._valueTracker=rd(e))}function sa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ua(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(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 Po(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(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 aa(e,t){t=t.checked,t!=null&&Pi(e,"checked",t,!1)}function No(e,t){aa(e,t);var n=wt(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")?To(e,t.type,n):t.hasOwnProperty("defaultValue")&&To(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nu(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 To(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zn=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dn={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},ld=["Webkit","ms","Moz","O"];Object.keys(Dn).forEach(function(e){ld.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dn[t]=Dn[e]})});function pa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dn.hasOwnProperty(e)&&Dn[e]?(""+t).trim():t+"px"}function ha(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=pa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var od=H({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 zo(e,t){if(t){if(od[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 Ao(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 Fo=null;function Li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Do=null,nn=null,rn=null;function Lu(e){if(e=fr(e)){if(typeof Do!="function")throw Error(E(280));var t=e.stateNode;t&&(t=_l(t),Do(e.stateNode,e.type,t))}}function ma(e){nn?rn?rn.push(e):rn=[e]:nn=e}function ya(){if(nn){var e=nn,t=rn;if(rn=nn=null,Lu(e),t)for(e=0;e>>=0,e===0?32:31-(yd(e)/vd|0)|0}var Er=64,kr=4194304;function An(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 Zr(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 u=i&~l;u!==0?r=An(u):(o&=i,o!==0&&(r=An(o)))}else i=n&~l,i!==0?r=An(i):o!==0&&(r=An(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 ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ie(t),e[t]=n}function Ed(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=In),Bu=" ",$u=!1;function ja(e,t){switch(e){case"keyup":return qd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ia(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Gd(e,t){switch(e){case"compositionend":return Ia(t);case"keypress":return t.which!==32?null:($u=!0,Bu);case"textInput":return e=t.data,e===Bu&&$u?null:e;default:return null}}function Zd(e,t){if(Qt)return e==="compositionend"||!Ui&&ja(e,t)?(e=Fa(),Ir=ji=at=null,Qt=!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=Qu(n)}}function $a(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$a(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ha(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function Bi(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 up(e){var t=Ha(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$a(n.ownerDocument.documentElement,n)){if(r!==null&&Bi(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=Ku(n,o);var i=Ku(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,Kt=null,$o=null,Un=null,Ho=!1;function Xu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ho||Kt==null||Kt!==Jr(r)||(r=Kt,"selectionStart"in r&&Bi(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}),Un&&Gn(Un,r)||(Un=r,r=tl($o,"onSelect"),0qt||(e.current=Jo[qt],Jo[qt]=null,qt--)}function j(e,t){qt++,Jo[qt]=e.current,e.current=t}var St={},ue=kt(St),he=kt(!1),Ft=St;function an(e,t){var n=e.type.contextTypes;if(!n)return St;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 me(e){return e=e.childContextTypes,e!=null}function rl(){M(he),M(ue)}function es(e,t,n){if(ue.current!==St)throw Error(E(168));j(ue,t),j(he,n)}function Ga(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,nd(e)||"Unknown",l));return H({},n,r)}function ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,Ft=ue.current,j(ue,e),j(he,he.current),!0}function ts(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Ga(e,t,Ft),r.__reactInternalMemoizedMergedChildContext=e,M(he),M(ue),j(ue,e)):M(he),j(he,n)}var Je=null,Rl=!1,uo=!1;function Za(e){Je===null?Je=[e]:Je.push(e)}function wp(e){Rl=!0,Za(e)}function xt(){if(!uo&&Je!==null){uo=!0;var e=0,t=D;try{var n=Je;for(D=1;e>=i,l-=i,qe=1<<32-Ie(t)+l|n<N?(Q=_,_=null):Q=_.sibling;var A=m(d,_,p[N],w);if(A===null){_===null&&(_=Q);break}e&&_&&A.alternate===null&&t(d,_),c=o(A,c,N),x===null?k=A:x.sibling=A,x=A,_=Q}if(N===p.length)return n(d,_),U&&Rt(d,N),k;if(_===null){for(;NN?(Q=_,_=null):Q=_.sibling;var ze=m(d,_,A.value,w);if(ze===null){_===null&&(_=Q);break}e&&_&&ze.alternate===null&&t(d,_),c=o(ze,c,N),x===null?k=ze:x.sibling=ze,x=ze,_=Q}if(A.done)return n(d,_),U&&Rt(d,N),k;if(_===null){for(;!A.done;N++,A=p.next())A=h(d,A.value,w),A!==null&&(c=o(A,c,N),x===null?k=A:x.sibling=A,x=A);return U&&Rt(d,N),k}for(_=r(d,_);!A.done;N++,A=p.next())A=S(_,d,N,A.value,w),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?N:A.key),c=o(A,c,N),x===null?k=A:x.sibling=A,x=A);return e&&_.forEach(function(Sn){return t(d,Sn)}),U&&Rt(d,N),k}function P(d,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Wt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case gr:e:{for(var k=p.key,x=c;x!==null;){if(x.key===k){if(k=p.type,k===Wt){if(x.tag===7){n(d,x.sibling),c=l(x,p.props.children),c.return=d,d=c;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ot&&ls(k)===x.type){n(d,x.sibling),c=l(x,p.props),c.ref=Pn(d,x,p),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}p.type===Wt?(c=zt(p.props.children,d.mode,w,p.key),c.return=d,d=c):(w=Qr(p.type,p.key,p.props,null,d.mode,w),w.ref=Pn(d,c,p),w.return=d,d=w)}return i(d);case Vt:e:{for(x=p.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=l(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=yo(p,d.mode,w),c.return=d,d=c}return i(d);case ot:return x=p._init,P(d,c,x(p._payload),w)}if(zn(p))return v(d,c,p,w);if(kn(p))return g(d,c,p,w);Tr(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,p),c.return=d,d=c):(n(d,c),c=mo(p,d.mode,w),c.return=d,d=c),i(d)):n(d,c)}return P}var fn=nc(!0),rc=nc(!1),ul=kt(null),sl=null,Zt=null,Wi=null;function Qi(){Wi=Zt=sl=null}function Ki(e){var t=ul.current;M(ul),e._currentValue=t}function Go(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function on(e,t){sl=e,Wi=Zt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function Oe(e){var t=e._currentValue;if(Wi!==e)if(e={context:e,memoizedValue:t,next:null},Zt===null){if(sl===null)throw Error(E(308));Zt=e,sl.dependencies={lanes:0,firstContext:e}}else Zt=Zt.next=e;return t}var Tt=null;function Xi(e){Tt===null?Tt=[e]:Tt.push(e)}function lc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Xi(t)):(n.next=l.next,l.next=n),t.interleaved=n,et(e,r)}function et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var it=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ge(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,et(e,n)}return l=r.interleaved,l===null?(t.next=t,Xi(r)):(t.next=l.next,l.next=t),r.interleaved=t,et(e,n)}function Ur(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ai(e,n)}}function os(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function al(e,t,n,r){var l=e.updateQueue;it=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==i&&(u===null?f.firstBaseUpdate=a:u.next=a,f.lastBaseUpdate=s))}if(o!==null){var h=l.baseState;i=0,f=a=s=null,u=o;do{var m=u.lane,S=u.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:S,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,g=u;switch(m=t,S=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){h=v.call(S,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,m=typeof v=="function"?v.call(S,h,m):v,m==null)break e;h=H({},h,m);break e;case 2:it=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else S={eventTime:S,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(a=f=S,s=h):f=f.next=S,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(f===null&&(s=h),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);It|=i,e.lanes=i,e.memoizedState=h}}function is(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),t()}finally{D=n,ao.transition=r}}function kc(){return Le().memoizedState}function xp(e,t,n){var r=vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Cc(t,n);else if(n=lc(e,t,n,r),n!==null){var l=ae();Me(n,e,r,l),_c(n,t,r)}}function Cp(e,t,n){var r=vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Cc(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,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Be(u,i)){var s=t.interleaved;s===null?(l.next=l,Xi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=lc(e,t,l,r),n!==null&&(l=ae(),Me(n,e,r,l),_c(n,t,r))}}function xc(e){var t=e.alternate;return e===$||t!==null&&t===$}function Cc(e,t){Bn=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _c(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ai(e,n)}}var dl={readContext:Oe,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},_p={readContext:Oe,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:ss,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$r(4194308,4,vc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){return $r(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=xp.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:us,useDebugValue:nu,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=us(!1),t=e[0];return e=kp.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$,l=Ve();if(U){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ee===null)throw Error(E(349));jt&30||ac(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ss(fc.bind(null,r,o,e),[e]),r.flags|=2048,or(9,cc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if(U){var n=Ye,r=qe;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rr++,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[We]=t,e[er]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ao(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;lhn&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304)}else{if(!r)if(e=cl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return oe(t),null}else 2*X()-o.renderingStartTime>hn&&n!==1073741824&&(t.flags|=128,r=!0,Nn(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=X(),t.sibling=null,n=B.current,j(B,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Ap(e,t){switch(Hi(t),t.tag){case 1:return me(t.type)&&rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(),M(he),M(ue),Gi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yi(t),null;case 13:if(M(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(B),null;case 4:return dn(),null;case 10:return Ki(t.type._context),null;case 22:case 23:return su(),null;case 24:return null;default:return null}}var Lr=!1,ie=!1,Fp=typeof WeakSet=="function"?WeakSet:Set,C=null;function bt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function ii(e,t,n){try{n()}catch(r){V(e,t,r)}}var ws=!1;function Dp(e,t){if(Vo=br,e=Ha(),Bi(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,u=-1,s=-1,a=0,f=0,h=e,m=null;t:for(;;){for(var S;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(S=h.firstChild)!==null;)m=h,h=S;for(;;){if(h===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++f===r&&(s=i),(S=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=S}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wo={focusedElem:e,selectionRange:n},br=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,P=v.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:Fe(t.type,g),P);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){V(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return v=ws,ws=!1,v}function $n(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&&ii(t,n,o)}l=l.next}while(l!==r)}}function Tl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ui(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 Mc(e){var t=e.alternate;t!==null&&(e.alternate=null,Mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[er],delete t[Xo],delete t[vp],delete t[gp])),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 Uc(e){return e.tag===5||e.tag===3||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(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 si(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=nl));else if(r!==4&&(e=e.child,e!==null))for(si(e,t,n),e=e.sibling;e!==null;)si(e,t,n),e=e.sibling}function ai(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(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}var te=null,De=!1;function rt(e,t,n){for(n=n.child;n!==null;)Bc(e,t,n),n=n.sibling}function Bc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(El,n)}catch{}switch(n.tag){case 5:ie||bt(n,t);case 6:var r=te,l=De;te=null,rt(e,t,n),te=r,De=l,te!==null&&(De?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(De?(e=te,n=n.stateNode,e.nodeType===8?io(e.parentNode,n):e.nodeType===1&&io(e,n),qn(e)):io(te,n.stateNode));break;case 4:r=te,l=De,te=n.stateNode.containerInfo,De=!0,rt(e,t,n),te=r,De=l;break;case 0:case 11:case 14:case 15:if(!ie&&(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)&&ii(n,t,i),l=l.next}while(l!==r)}rt(e,t,n);break;case 1:if(!ie&&(bt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,rt(e,t,n),ie=r):rt(e,t,n);break;default:rt(e,t,n)}}function Es(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fp),t.forEach(function(r){var l=Wp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ae(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ip(r/1960))-r,10e?16:e,ct===null)var r=!1;else{if(e=ct,ct=null,ml=0,F&6)throw Error(E(331));var l=F;for(F|=4,C=e.current;C!==null;){var o=C,i=o.child;if(C.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sX()-iu?Lt(e,0):ou|=n),ye(e,t)}function Jc(e,t){t===0&&(e.mode&1?(t=kr,kr<<=1,!(kr&130023424)&&(kr=4194304)):t=1);var n=ae();e=et(e,t),e!==null&&(ar(e,t,n),ye(e,n))}function Vp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jc(e,n)}function Wp(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),Jc(e,n)}var qc;qc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Lp(e,t,n);pe=!!(e.flags&131072)}else pe=!1,U&&t.flags&1048576&&ba(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hr(e,t),e=t.pendingProps;var l=an(t,ue.current);on(t,n),l=bi(null,t,r,e,l,n);var o=eu();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,me(r)?(o=!0,ll(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ji(t),l.updater=Nl,t.stateNode=l,l._reactInternals=t,bo(t,r,e,n),t=ni(null,t,r,!0,o,n)):(t.tag=0,U&&o&&$i(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Kp(r),e=Fe(r,e),l){case 0:t=ti(null,t,r,e,n);break e;case 1:t=ys(null,t,r,e,n);break e;case 11:t=hs(null,t,r,e,n);break e;case 14:t=ms(null,t,r,Fe(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:Fe(r,l),ti(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),ys(e,t,r,l,n);case 3:e:{if(zc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,oc(e,t),al(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=pn(Error(E(423)),t),t=vs(e,t,r,n,l);break e}else if(r!==l){l=pn(Error(E(424)),t),t=vs(e,t,r,n,l);break e}else for(we=ht(t.stateNode.containerInfo.firstChild),Se=t,U=!0,je=null,n=rc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cn(),r===l){t=tt(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return ic(t),e===null&&Yo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Qo(r,l)?i=null:o!==null&&Qo(r,o)&&(t.flags|=32),Lc(e,t),se(e,t,i,n),t.child;case 6:return e===null&&Yo(t),null;case 13:return Ac(e,t,n);case 4:return qi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),hs(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(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,j(ul,r._currentValue),r._currentValue=i,o!==null)if(Be(o.value,i)){if(o.children===l.children&&!he.current){t=tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ge(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Go(o.return,n,t),u.lanes|=n;break}s=s.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,u=i.alternate,u!==null&&(u.lanes|=n),Go(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}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,on(t,n),l=Oe(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Fe(r,t.pendingProps),l=Fe(r.type,l),ms(e,t,r,l,n);case 15:return Tc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Hr(e,t),t.tag=1,me(r)?(e=!0,ll(t)):e=!1,on(t,n),Rc(t,r,l),bo(t,r,l,n),ni(null,t,r,!0,e,n);case 19:return Fc(e,t,n);case 22:return Oc(e,t,n)}throw Error(E(156,t.tag))};function Yc(e,t){return xa(e,t)}function Qp(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 Pe(e,t,n,r){return new Qp(e,t,n,r)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kp(e){if(typeof e=="function")return cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ti)return 11;if(e===Oi)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=Pe(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")cu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wt:return zt(n.children,l,o,t);case Ni:i=8,l|=8;break;case xo:return e=Pe(12,n,t,l|2),e.elementType=xo,e.lanes=o,e;case Co:return e=Pe(13,n,t,l),e.elementType=Co,e.lanes=o,e;case _o:return e=Pe(19,n,t,l),e.elementType=_o,e.lanes=o,e;case ia:return Ll(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case la:i=10;break e;case oa:i=9;break e;case Ti:i=11;break e;case Oi:i=14;break e;case ot:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Pe(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function zt(e,t,n,r){return e=Pe(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=Pe(22,e,r,t),e.elementType=ia,e.lanes=n,e.stateNode={isHidden:!1},e}function mo(e,t,n){return e=Pe(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=Pe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xp(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=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function fu(e,t,n,r,l,o,i,u,s){return e=new Xp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Pe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ji(o),e}function Jp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ef)}catch(e){console.error(e)}}ef(),ea.exports=ke;var bp=ea.exports,Ts=bp;Eo.createRoot=Ts.createRoot,Eo.hydrateRoot=Ts.hydrateRoot;function tf(e,t){return function(){return e.apply(t,arguments)}}const{toString:eh}=Object.prototype,{getPrototypeOf:mu}=Object,jl=(e=>t=>{const n=eh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$e=e=>(e=e.toLowerCase(),t=>jl(t)===e),Il=e=>t=>typeof t===e,{isArray:gn}=Array,ur=Il("undefined");function th(e){return e!==null&&!ur(e)&&e.constructor!==null&&!ur(e.constructor)&&Te(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nf=$e("ArrayBuffer");function nh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nf(e.buffer),t}const rh=Il("string"),Te=Il("function"),rf=Il("number"),Ml=e=>e!==null&&typeof e=="object",lh=e=>e===!0||e===!1,Kr=e=>{if(jl(e)!=="object")return!1;const t=mu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oh=$e("Date"),ih=$e("File"),uh=$e("Blob"),sh=$e("FileList"),ah=e=>Ml(e)&&Te(e.pipe),ch=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Te(e.append)&&((t=jl(e))==="formdata"||t==="object"&&Te(e.toString)&&e.toString()==="[object FormData]"))},fh=$e("URLSearchParams"),[dh,ph,hh,mh]=["ReadableStream","Request","Response","Headers"].map($e),yh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),gn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const of=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uf=e=>!ur(e)&&e!==of;function hi(){const{caseless:e}=uf(this)&&this||{},t={},n=(r,l)=>{const o=e&&lf(t,l)||l;Kr(t[o])&&Kr(r)?t[o]=hi(t[o],r):Kr(r)?t[o]=hi({},r):gn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(pr(t,(l,o)=>{n&&Te(l)?e[o]=tf(l,n):e[o]=l},{allOwnKeys:r}),e),gh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wh=(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)},Sh=(e,t,n,r)=>{let l,o,i;const u={};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))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&mu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Eh=(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},kh=e=>{if(!e)return null;if(gn(e))return e;let t=e.length;if(!rf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mu(Uint8Array)),Ch=(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])}},_h=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Rh=$e("HTMLFormElement"),Ph=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Os=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nh=$e("RegExp"),sf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pr(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},Th=e=>{sf(e,(t,n)=>{if(Te(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Te(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+"'")})}})},Oh=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return gn(e)?r(e):r(String(e).split(t)),n},Lh=()=>{},zh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,vo="abcdefghijklmnopqrstuvwxyz",Ls="0123456789",af={DIGIT:Ls,ALPHA:vo,ALPHA_DIGIT:vo+vo.toUpperCase()+Ls},Ah=(e=16,t=af.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Fh(e){return!!(e&&Te(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dh=e=>{const t=new Array(10),n=(r,l)=>{if(Ml(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=gn(r)?[]:{};return pr(r,(i,u)=>{const s=n(i,l+1);!ur(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},jh=$e("AsyncFunction"),Ih=e=>e&&(Ml(e)||Te(e))&&Te(e.then)&&Te(e.catch),y={isArray:gn,isArrayBuffer:nf,isBuffer:th,isFormData:ch,isArrayBufferView:nh,isString:rh,isNumber:rf,isBoolean:lh,isObject:Ml,isPlainObject:Kr,isReadableStream:dh,isRequest:ph,isResponse:hh,isHeaders:mh,isUndefined:ur,isDate:oh,isFile:ih,isBlob:uh,isRegExp:Nh,isFunction:Te,isStream:ah,isURLSearchParams:fh,isTypedArray:xh,isFileList:sh,forEach:pr,merge:hi,extend:vh,trim:yh,stripBOM:gh,inherits:wh,toFlatObject:Sh,kindOf:jl,kindOfTest:$e,endsWith:Eh,toArray:kh,forEachEntry:Ch,matchAll:_h,isHTMLForm:Rh,hasOwnProperty:Os,hasOwnProp:Os,reduceDescriptors:sf,freezeMethods:Th,toObjectSet:Oh,toCamelCase:Ph,noop:Lh,toFiniteNumber:zh,findKey:lf,global:of,isContextDefined:uf,ALPHABET:af,generateString:Ah,isSpecCompliantForm:Fh,toJSONObject:Dh,isAsyncFn:jh,isThenable:Ih};function T(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)}y.inherits(T,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const cf=T.prototype,ff={};["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=>{ff[e]={value:e}});Object.defineProperties(T,ff);Object.defineProperty(cf,"isAxiosError",{value:!0});T.from=(e,t,n,r,l,o)=>{const i=Object.create(cf);return y.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),T.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Mh=null;function mi(e){return y.isPlainObject(e)||y.isArray(e)}function df(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function zs(e,t,n){return e?e.concat(t).map(function(l,o){return l=df(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function Uh(e){return y.isArray(e)&&!e.some(mi)}const Bh=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Ul(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,P){return!y.isUndefined(P[g])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(l))throw new TypeError("visitor must be a function");function a(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(!s&&y.isBlob(v))throw new T("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,g,P){let d=v;if(v&&!P&&typeof v=="object"){if(y.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&Uh(v)||(y.isFileList(v)||y.endsWith(g,"[]"))&&(d=y.toArray(v)))return g=df(g),d.forEach(function(p,w){!(y.isUndefined(p)||p===null)&&t.append(i===!0?zs([g],w,o):i===null?g:g+"[]",a(p))}),!1}return mi(v)?!0:(t.append(zs(P,g,o),a(v)),!1)}const h=[],m=Object.assign(Bh,{defaultVisitor:f,convertValue:a,isVisitable:mi});function S(v,g){if(!y.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(v),y.forEach(v,function(d,c){(!(y.isUndefined(d)||d===null)&&l.call(t,d,y.isString(c)?c.trim():c,g,m))===!0&&S(d,g?g.concat(c):[c])}),h.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return S(e),t}function As(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function yu(e,t){this._pairs=[],e&&Ul(e,this,t)}const pf=yu.prototype;pf.append=function(t,n){this._pairs.push([t,n])};pf.toString=function(t){const n=t?function(r){return t.call(this,r,As)}:As;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function $h(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hf(e,t,n){if(!t)return e;const r=n&&n.encode||$h,l=n&&n.serialize;let o;if(l?o=l(t,n):o=y.isURLSearchParams(t)?t.toString():new yu(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Fs{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){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const mf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hh=typeof URLSearchParams<"u"?URLSearchParams:yu,Vh=typeof FormData<"u"?FormData:null,Wh=typeof Blob<"u"?Blob:null,Qh={isBrowser:!0,classes:{URLSearchParams:Hh,FormData:Vh,Blob:Wh},protocols:["http","https","file","blob","url","data"]},vu=typeof window<"u"&&typeof document<"u",Kh=(e=>vu&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Xh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jh=vu&&window.location.href||"http://localhost",qh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vu,hasStandardBrowserEnv:Kh,hasStandardBrowserWebWorkerEnv:Xh,origin:Jh},Symbol.toStringTag,{value:"Module"})),Ue={...qh,...Qh};function Yh(e,t){return Ul(e,new Ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return Ue.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gh(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zh(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&y.isArray(l)?l.length:i,s?(y.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!y.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&y.isArray(l[i])&&(l[i]=Zh(l[i])),!u)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(r,l)=>{t(Gh(r),l,n,0)}),n}return null}function bh(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const hr={transitional:mf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return l?JSON.stringify(yf(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yh(t,this.formSerializer).toString();if((u=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ul(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),bh(t)):t}],transformResponse:[function(t){const n=this.transitional||hr.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?T.from(u,T.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{hr.headers[e]={}});const em=y.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"]),tm=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]&&em[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ds=Symbol("internals");function On(e){return e&&String(e).trim().toLowerCase()}function Xr(e){return e===!1||e==null?e:y.isArray(e)?e.map(Xr):String(e)}function nm(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 rm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function go(e,t,n,r,l){if(y.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!y.isString(t)){if(y.isString(r))return t.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(t)}}function lm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function om(e,t){const n=y.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 ve{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,a){const f=On(s);if(!f)throw new Error("header name must be a non-empty string");const h=y.findKey(l,f);(!h||l[h]===void 0||a===!0||a===void 0&&l[h]!==!1)&&(l[h||s]=Xr(u))}const i=(u,s)=>y.forEach(u,(a,f)=>o(a,f,s));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(y.isString(t)&&(t=t.trim())&&!rm(t))i(tm(t),n);else if(y.isHeaders(t))for(const[u,s]of t.entries())o(s,u,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=On(t),t){const r=y.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return nm(l);if(y.isFunction(n))return n.call(this,l,r);if(y.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=On(t),t){const r=y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||go(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=On(i),i){const u=y.findKey(r,i);u&&(!n||go(r,r[u],u,n))&&(delete r[u],l=!0)}}return y.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||go(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return y.forEach(this,(l,o)=>{const i=y.findKey(r,o);if(i){n[i]=Xr(l),delete n[o];return}const u=t?lm(o):String(o).trim();u!==o&&delete n[o],n[u]=Xr(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&y.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[Ds]=this[Ds]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=On(i);r[u]||(om(l,i),r[u]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ve.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});y.freezeMethods(ve);function wo(e,t){const n=this||hr,r=t||n,l=ve.from(r.headers);let o=r.data;return y.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function vf(e){return!!(e&&e.__CANCEL__)}function wn(e,t,n){T.call(this,e??"canceled",T.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(wn,T,{__CANCEL__:!0});function gf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new T("Request failed with status code "+n.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function im(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function um(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(s){const a=Date.now(),f=r[o];i||(i=a),n[l]=s,r[l]=a;let h=o,m=0;for(;h!==l;)m+=n[h++],h=h%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-ir)return l&&(clearTimeout(l),l=null),n=u,e.apply(null,arguments);l||(l=setTimeout(()=>(l=null,n=Date.now(),e.apply(null,arguments)),r-(u-n)))}}const gl=(e,t,n=3)=>{let r=0;const l=um(50,250);return sm(o=>{const i=o.loaded,u=o.lengthComputable?o.total:void 0,s=i-r,a=l(s),f=i<=u;r=i;const h={loaded:i,total:u,progress:u?i/u:void 0,bytes:s,rate:a||void 0,estimated:a&&u&&f?(u-i)/a:void 0,event:o,lengthComputable:u!=null};h[t?"download":"upload"]=!0,e(h)},n)},am=Ue.hasStandardBrowserEnv?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 u=y.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),cm=Ue.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(r)&&i.push("path="+r),y.isString(l)&&i.push("domain="+l),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wf(e,t){return e&&!fm(t)?dm(e,t):t}const js=e=>e instanceof ve?{...e}:e;function Ut(e,t){t=t||{};const n={};function r(a,f,h){return y.isPlainObject(a)&&y.isPlainObject(f)?y.merge.call({caseless:h},a,f):y.isPlainObject(f)?y.merge({},f):y.isArray(f)?f.slice():f}function l(a,f,h){if(y.isUndefined(f)){if(!y.isUndefined(a))return r(void 0,a,h)}else return r(a,f,h)}function o(a,f){if(!y.isUndefined(f))return r(void 0,f)}function i(a,f){if(y.isUndefined(f)){if(!y.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function u(a,f,h){if(h in t)return r(a,f);if(h in e)return r(void 0,a)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:u,headers:(a,f)=>l(js(a),js(f),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=s[f]||l,m=h(e[f],t[f],f);y.isUndefined(m)&&h!==u||(n[f]=m)}),n}const Sf=e=>{const t=Ut({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:u}=t;t.headers=i=ve.from(i),t.url=hf(wf(t.baseURL,t.url),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let s;if(y.isFormData(n)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[a,...f]=s?s.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...f].join("; "))}}if(Ue.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(t)),r||r!==!1&&am(t.url))){const a=l&&o&&cm.read(o);a&&i.set(l,a)}return t},pm=typeof XMLHttpRequest<"u",hm=pm&&function(e){return new Promise(function(n,r){const l=Sf(e);let o=l.data;const i=ve.from(l.headers).normalize();let{responseType:u}=l,s;function a(){l.cancelToken&&l.cancelToken.unsubscribe(s),l.signal&&l.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;f.open(l.method.toUpperCase(),l.url,!0),f.timeout=l.timeout;function h(){if(!f)return;const S=ve.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),g={data:!u||u==="text"||u==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:e,request:f};gf(function(d){n(d),a()},function(d){r(d),a()},g),f=null}"onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new T("Request aborted",T.ECONNABORTED,l,f)),f=null)},f.onerror=function(){r(new T("Network Error",T.ERR_NETWORK,l,f)),f=null},f.ontimeout=function(){let v=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const g=l.transitional||mf;l.timeoutErrorMessage&&(v=l.timeoutErrorMessage),r(new T(v,g.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,l,f)),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&y.forEach(i.toJSON(),function(v,g){f.setRequestHeader(g,v)}),y.isUndefined(l.withCredentials)||(f.withCredentials=!!l.withCredentials),u&&u!=="json"&&(f.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&f.addEventListener("progress",gl(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",gl(l.onUploadProgress)),(l.cancelToken||l.signal)&&(s=S=>{f&&(r(!S||S.type?new wn(null,e,f):S),f.abort(),f=null)},l.cancelToken&&l.cancelToken.subscribe(s),l.signal&&(l.signal.aborted?s():l.signal.addEventListener("abort",s)));const m=im(l.url);if(m&&Ue.protocols.indexOf(m)===-1){r(new T("Unsupported protocol "+m+":",T.ERR_BAD_REQUEST,e));return}f.send(o||null)})},mm=(e,t)=>{let n=new AbortController,r;const l=function(s){if(!r){r=!0,i();const a=s instanceof Error?s:this.reason;n.abort(a instanceof T?a:new wn(a instanceof Error?a.message:a))}};let o=t&&setTimeout(()=>{l(new T(`timeout ${t} of ms exceeded`,T.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(s=>{s&&(s.removeEventListener?s.removeEventListener("abort",l):s.unsubscribe(l))}),e=null)};e.forEach(s=>s&&s.addEventListener&&s.addEventListener("abort",l));const{signal:u}=n;return u.unsubscribe=i,[u,()=>{o&&clearTimeout(o),o=null}]},ym=function*(e,t){let n=e.byteLength;if(!t||n{const o=vm(e,t,l);let i=0;return new ReadableStream({type:"bytes",async pull(u){const{done:s,value:a}=await o.next();if(s){u.close(),r();return}let f=a.byteLength;n&&n(i+=f),u.enqueue(new Uint8Array(a))},cancel(u){return r(u),o.return()}},{highWaterMark:2})},Ms=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Bl=typeof fetch<"u",Ef=Bl&&typeof ReadableStream<"u",yi=Bl&&(typeof TextEncoder<"u"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gm=Ef&&(()=>{let e=!1;const t=new Request(Ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Us=64*1024,vi=Ef&&!!(()=>{try{return y.isReadableStream(new Response("").body)}catch{}})(),wl={stream:vi&&(e=>e.body)};Bl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wl[t]&&(wl[t]=y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new T(`Response type '${t}' is not supported`,T.ERR_NOT_SUPPORT,r)})})})(new Response);const wm=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(y.isArrayBufferView(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await yi(e)).byteLength},Sm=async(e,t)=>{const n=y.toFiniteNumber(e.getContentLength());return n??wm(t)},Em=Bl&&(async e=>{let{url:t,method:n,data:r,signal:l,cancelToken:o,timeout:i,onDownloadProgress:u,onUploadProgress:s,responseType:a,headers:f,withCredentials:h="same-origin",fetchOptions:m}=Sf(e);a=a?(a+"").toLowerCase():"text";let[S,v]=l||o||i?mm([l,o],i):[],g,P;const d=()=>{!g&&setTimeout(()=>{S&&S.unsubscribe()}),g=!0};let c;try{if(s&&gm&&n!=="get"&&n!=="head"&&(c=await Sm(f,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),_;y.isFormData(r)&&(_=x.headers.get("content-type"))&&f.setContentType(_),x.body&&(r=Is(x.body,Us,Ms(c,gl(s)),null,yi))}y.isString(h)||(h=h?"cors":"omit"),P=new Request(t,{...m,signal:S,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",withCredentials:h});let p=await fetch(P);const w=vi&&(a==="stream"||a==="response");if(vi&&(u||w)){const x={};["status","statusText","headers"].forEach(N=>{x[N]=p[N]});const _=y.toFiniteNumber(p.headers.get("content-length"));p=new Response(Is(p.body,Us,u&&Ms(_,gl(u,!0)),w&&d,yi),x)}a=a||"text";let k=await wl[y.findKey(wl,a)||"text"](p,e);return!w&&d(),v&&v(),await new Promise((x,_)=>{gf(x,_,{data:k,headers:ve.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:P})})}catch(p){throw d(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,e,P),{cause:p.cause||p}):T.from(p,p&&p.code,e,P)}}),gi={http:Mh,xhr:hm,fetch:Em};y.forEach(gi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bs=e=>`- ${e}`,km=e=>y.isFunction(e)||e===null||e===!1,kf={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Bs).join(` `):" "+Bs(o[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:gi};function So(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wn(null,e)}function $s(e){return So(e),e.headers=ve.from(e.headers),e.data=wo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kf.getAdapter(e.adapter||hr.adapter)(e).then(function(r){return So(e),r.data=wo.call(e,e.transformResponse,r),r.headers=ve.from(r.headers),r},function(r){return vf(r)||(So(e),r&&r.response&&(r.response.data=wo.call(e,e.transformResponse,r.response),r.response.headers=ve.from(r.response.headers))),Promise.reject(r)})}const xf="1.7.1",gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Hs={};gu.transitional=function(t,n,r){function l(o,i){return"[Axios v"+xf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new T(l(i," has been removed"+(n?" in "+n:"")),T.ERR_DEPRECATED);return n&&!Hs[i]&&(Hs[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function xm(e,t,n){if(typeof e!="object")throw new T("options must be an object",T.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 u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new T("option "+o+" must be "+s,T.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new T("Unknown option "+o,T.ERR_BAD_OPTION)}}const wi={assertOptions:xm,validators:gu},lt=wi.validators;class At{constructor(t){this.defaults=t,this.interceptors={request:new Fs,response:new Fs}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ut(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&wi.assertOptions(r,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),l!=null&&(y.isFunction(l)?n.paramsSerializer={serialize:l}:wi.assertOptions(l,{encode:lt.function,serialize:lt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&y.merge(o.common,o[n.method]);o&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=ve.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let f,h=0,m;if(!s){const v=[$s.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,a),m=v.length,f=Promise.resolve(n);h{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(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new wn(o,i,u),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 wu(function(l){t=l}),cancel:t}}}function Cm(e){return function(n){return e.apply(null,n)}}function _m(e){return y.isObject(e)&&e.isAxiosError===!0}const Si={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(Si).forEach(([e,t])=>{Si[t]=e});function Cf(e){const t=new At(e),n=tf(At.prototype.request,t);return y.extend(n,At.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Cf(Ut(e,l))},n}const W=Cf(hr);W.Axios=At;W.CanceledError=wn;W.CancelToken=wu;W.isCancel=vf;W.VERSION=xf;W.toFormData=Ul;W.AxiosError=T;W.Cancel=W.CanceledError;W.all=function(t){return Promise.all(t)};W.spread=Cm;W.isAxiosError=_m;W.mergeConfig=Ut;W.AxiosHeaders=ve;W.formToJSON=e=>yf(y.isHTMLForm(e)?new FormData(e):e);W.getAdapter=kf.getAdapter;W.HttpStatusCode=Si;W.default=W;const Rm=({article:e,articleRef:t})=>Ce.jsxs("article",{className:"article",ref:t,children:[Ce.jsxs("div",{className:"article-top",children:[Ce.jsx("h1",{children:e.post_title}),Ce.jsxs("span",{children:["Дата публикации: ",new Date(e.post_date).toLocaleDateString()]}),Ce.jsxs("span",{children:["Автор: ",e.post_author]})]}),Ce.jsx("div",{className:"article-body",dangerouslySetInnerHTML:{__html:e.post_content}})]}),Pm=()=>{const[e,t]=Z.useState([]),[n,r]=Z.useState([]),[l,o]=Z.useState(null),i=Z.useRef([]),u=Z.useRef(!1),s=Z.useRef(0),a=Z.useRef(1),f=Z.useRef(""),h=Z.useRef(!1),m=Z.useCallback(P=>d=>{i.current[P]=d},[]),S=Z.useCallback(async(P,d)=>{if(!P)return;const c=`https://1fe0-193-110-75-164.ngrok-free.app/wp-json/api-posts/v1/endlessPosts?permalink=${P}&paged=${d}`;try{return(await W.get(c)).data}catch(p){console.error(`Error fetching article by permalink: ${p}`)}},[]),v=async(P,d)=>{try{let c=`https://1fe0-193-110-75-164.ngrok-free.app/wp-json/api-posts/v1/endlessPosts?paged=${d||1}`;const w=(await W.get(c)).data.slice(1).map(k=>k.permalink);if(r(w),P){c+=`&permalink=${P}`;const x=(await W.get(c)).data[0]["requested-post"];t([x])}s.current=0,a.current=1,f.current=w[w.length-1],h.current=!1}catch(c){console.error("Error loading initial article:",c)}},g=Z.useCallback(async()=>{if(!(u.current||h.current)){u.current=!0;try{let P;s.currentw.permalink);t(w=>[...w,c]),p.length===0||d.length===1&&!p.length?h.current=!0:s.current{const P=localStorage.getItem("visibleArticle"),d=localStorage.getItem("currentPage");v(P,d)},[]),Z.useEffect(()=>{n.length>0&&(localStorage.getItem("visibleArticle")||g())},[n,g]),Z.useEffect(()=>{const P=()=>{var c;const d=i.current.findIndex(p=>{if(p){const w=p.getBoundingClientRect();return w.top=window.innerHeight/2}return!1});if(((c=i.current[i.current.length-1])==null?void 0:c.getBoundingClientRect().height){window.removeEventListener("scroll",P)}},[l,e,g]),Ce.jsx("div",{className:"test",children:e.map((P,d)=>Ce.jsx(Rm,{article:P,articleRef:m(d)},P.id))})};function Nm(){return Ce.jsx("div",{className:"container",children:Ce.jsx(Pm,{})})}const Tm=Eo.createRoot(document.getElementById("root"));Tm.render(Ce.jsx(Hf.StrictMode,{children:Ce.jsx(Nm,{})}));