From 5db3d59240a6e4b5f1896adca2a85016cd1a7ca8 Mon Sep 17 00:00:00 2001 From: lalalune Date: Mon, 14 Oct 2024 18:06:14 +0000 Subject: [PATCH] deploy: b3f746c46a8e8abf1e527e6c0fc71ebac5268c4d --- .../{index-mY7TwAH4.js => index-CowMaySI.js} | 18 +++++++++--------- index.html | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) rename assets/{index-mY7TwAH4.js => index-CowMaySI.js} (83%) diff --git a/assets/index-mY7TwAH4.js b/assets/index-CowMaySI.js similarity index 83% rename from assets/index-mY7TwAH4.js rename to assets/index-CowMaySI.js index a8f1e78..c027bd9 100644 --- a/assets/index-mY7TwAH4.js +++ b/assets/index-CowMaySI.js @@ -14,7 +14,7 @@ var Df=Object.defineProperty;var Af=(e,t,n)=>t in e?Df(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yf=I,Zf=Symbol.for("react.element"),bf=Symbol.for("react.fragment"),ed=Object.prototype.hasOwnProperty,td=Yf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nd={key:!0,ref:!0,__self:!0,__source:!0};function la(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)ed.call(t,r)&&!nd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Zf,type:e,key:l,ref:i,props:o,_owner:td.current}}Po.Fragment=bf;Po.jsx=la;Po.jsxs=la;qu.exports=Po;var q=qu.exports,Rl={},ia={exports:{}},Le={},sa={exports:{}},ua={};/** + */var Yf=I,Zf=Symbol.for("react.element"),bf=Symbol.for("react.fragment"),ed=Object.prototype.hasOwnProperty,td=Yf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nd={key:!0,ref:!0,__self:!0,__source:!0};function la(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)ed.call(t,r)&&!nd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Zf,type:e,key:l,ref:i,props:o,_owner:td.current}}Po.Fragment=bf;Po.jsx=la;Po.jsxs=la;qu.exports=Po;var X=qu.exports,Rl={},ia={exports:{}},Le={},sa={exports:{}},ua={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Df=Object.defineProperty;var Af=(e,t,n)=>t in e?Df(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(R,N){var O=R.length;R.push(N);e:for(;0>>1,te=R[W];if(0>>1;Wo(qo,O))Dto(Cr,qo)?(R[W]=Cr,R[Dt]=O,W=Dt):(R[W]=qo,R[zt]=O,W=zt);else if(Dto(Cr,O))R[W]=Cr,R[Dt]=O,W=Dt;else break e}}return N}function o(R,N){var O=R.sortIndex-N.sortIndex;return O!==0?O:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],f=1,h=null,m=3,S=!1,y=!1,v=!1,w=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 N=n(a);N!==null;){if(N.callback===null)r(a);else if(N.startTime<=R)r(a),N.sortIndex=N.expirationTime,t(u,N);else break;N=n(a)}}function E(R){if(v=!1,p(R),!y)if(n(u)!==null)y=!0,me(C);else{var N=n(a);N!==null&&Ge(E,N.startTime-R)}}function C(R,N){y=!1,v&&(v=!1,d(P),P=-1),S=!0;var O=m;try{for(p(N),h=n(u);h!==null&&(!(h.expirationTime>N)||R&&!Ce());){var W=h.callback;if(typeof W=="function"){h.callback=null,m=h.priorityLevel;var te=W(h.expirationTime<=N);N=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(u)&&r(u),p(N)}else r(u);h=n(u)}if(h!==null)var kr=!0;else{var zt=n(a);zt!==null&&Ge(E,zt.startTime-N),kr=!1}return kr}finally{h=null,m=O,S=!1}}var x=!1,_=null,P=-1,j=5,z=-1;function Ce(){return!(e.unstable_now()-zR||125W?(R.sortIndex=O,t(a,R),n(u)===null&&R===n(a)&&(v?(d(P),P=-1):v=!0,Ge(E,O-W))):(R.sortIndex=te,t(u,R),y||S||(y=!0,me(C))),R},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(R){var N=m;return function(){var O=m;m=N;try{return R.apply(this,arguments)}finally{m=O}}}})(ua);sa.exports=ua;var rd=sa.exports;/** + */(function(e){function t(R,N){var O=R.length;R.push(N);e:for(;0>>1,te=R[W];if(0>>1;Wo(qo,O))Dto(Cr,qo)?(R[W]=Cr,R[Dt]=O,W=Dt):(R[W]=qo,R[zt]=O,W=zt);else if(Dto(Cr,O))R[W]=Cr,R[Dt]=O,W=Dt;else break e}}return N}function o(R,N){var O=R.sortIndex-N.sortIndex;return O!==0?O:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],f=1,h=null,m=3,S=!1,y=!1,g=!1,w=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 N=n(a);N!==null;){if(N.callback===null)r(a);else if(N.startTime<=R)r(a),N.sortIndex=N.expirationTime,t(u,N);else break;N=n(a)}}function E(R){if(g=!1,p(R),!y)if(n(u)!==null)y=!0,me(C);else{var N=n(a);N!==null&&Ge(E,N.startTime-R)}}function C(R,N){y=!1,g&&(g=!1,d(P),P=-1),S=!0;var O=m;try{for(p(N),h=n(u);h!==null&&(!(h.expirationTime>N)||R&&!Ce());){var W=h.callback;if(typeof W=="function"){h.callback=null,m=h.priorityLevel;var te=W(h.expirationTime<=N);N=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(u)&&r(u),p(N)}else r(u);h=n(u)}if(h!==null)var kr=!0;else{var zt=n(a);zt!==null&&Ge(E,zt.startTime-N),kr=!1}return kr}finally{h=null,m=O,S=!1}}var x=!1,_=null,P=-1,j=5,z=-1;function Ce(){return!(e.unstable_now()-zR||125W?(R.sortIndex=O,t(a,R),n(u)===null&&R===n(a)&&(g?(d(P),P=-1):g=!0,Ge(E,O-W))):(R.sortIndex=te,t(u,R),y||S||(y=!0,me(C))),R},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(R){var N=m;return function(){var O=m;m=N;try{return R.apply(this,arguments)}finally{m=O}}}})(ua);sa.exports=ua;var rd=sa.exports;/** * @license React * react-dom.production.min.js * @@ -30,16 +30,16 @@ var Df=Object.defineProperty;var Af=(e,t,n)=>t in e?Df(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var od=I,Oe=rd;function k(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"),Tl=Object.prototype.hasOwnProperty,ld=/^[: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]*$/,Ps={},Ns={};function id(e){return Tl.call(Ns,e)?!0:Tl.call(Ps,e)?!1:ld.test(e)?Ns[e]=!0:(Ps[e]=!0,!1)}function sd(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 ud(e,t,n,r){if(t===null||typeof t>"u"||sd(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 he(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new he(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){ie[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oi=/[\-:]([a-z])/g;function Li(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(Oi,Li);ie[t]=new he(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(Oi,Li);ie[t]=new he(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(Oi,Li);ie[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function zi(e,t,n,r){var o=ie.hasOwnProperty(t)?ie[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tl=Object.prototype.hasOwnProperty,ld=/^[: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]*$/,Ps={},Ns={};function id(e){return Tl.call(Ns,e)?!0:Tl.call(Ps,e)?!1:ld.test(e)?Ns[e]=!0:(Ps[e]=!0,!1)}function sd(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 ud(e,t,n,r){if(t===null||typeof t>"u"||sd(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 he(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new he(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){ie[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oi=/[\-:]([a-z])/g;function Li(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(Oi,Li);ie[t]=new he(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(Oi,Li);ie[t]=new he(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(Oi,Li);ie[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function zi(e,t,n,r){var o=ie.hasOwnProperty(t)?ie[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==l[s]){var u=` -`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function ad(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=bo(e.type,!1),e;case 11:return e=bo(e.type.render,!1),e;case 1:return e=bo(e.type,!0),e;default:return""}}function Ll(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 bt:return"Fragment";case Zt:return"Portal";case Pl:return"Profiler";case Di:return"StrictMode";case Nl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fa:return(e.displayName||"Context")+".Consumer";case ca:return(e._context.displayName||"Context")+".Provider";case Ai:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fi:return t=e.displayName||null,t!==null?t:Ll(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return Ll(e(t))}catch{}}return null}function cd(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 Ll(t);case 8:return t===Di?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fd(e){var t=pa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.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 Rr(e){e._valueTracker||(e._valueTracker=fd(e))}function ha(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function to(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 zl(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ls(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 ma(e,t){t=t.checked,t!=null&&zi(e,"checked",t,!1)}function Dl(e,t){ma(e,t);var n=_t(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")?Al(e,t.type,n):t.hasOwnProperty("defaultValue")&&Al(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zs(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 Al(e,t,n){(t!=="number"||to(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function fn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $n={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},dd=["Webkit","ms","Moz","O"];Object.keys($n).forEach(function(e){dd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$n[t]=$n[e]})});function wa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$n.hasOwnProperty(e)&&$n[e]?(""+t).trim():t+"px"}function Sa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pd=G({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 jl(e,t){if(t){if(pd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ml(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 Ul=null;function Ii(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,dn=null,pn=null;function Fs(e){if(e=vr(e)){if(typeof Bl!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Do(t),Bl(e.stateNode,e.type,t))}}function Ea(e){dn?pn?pn.push(e):pn=[e]:dn=e}function ka(){if(dn){var e=dn,t=pn;if(pn=dn=null,Fs(e),t)for(e=0;e>>=0,e===0?32:31-(xd(e)/_d|0)|0}var Pr=64,Nr=4194304;function Bn(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 lo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Bn(s):(l&=i,l!==0&&(r=Bn(l)))}else i=n&~o,i!==0?r=Bn(i):l!==0&&(r=Bn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ve(t),e[t]=n}function Nd(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=Wn),Ws=" ",Qs=!1;function $a(e,t){switch(e){case"keyup":return rp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Va(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function lp(e,t){switch(e){case"compositionend":return Va(t);case"keypress":return t.which!==32?null:(Qs=!0,Ws);case"textInput":return e=t.data,e===Ws&&Qs?null:e;default:return null}}function ip(e,t){if(en)return e==="compositionend"||!Wi&&$a(e,t)?(e=Ba(),Wr=Hi=mt=null,en=!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=qs(n)}}function Ga(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ga(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ja(){for(var e=window,t=to();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=to(e.document)}return t}function Qi(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 mp(e){var t=Ja(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ga(n.ownerDocument.documentElement,n)){if(r!==null&&Qi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Xs(n,l);var i=Xs(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>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,tn=null,Kl=null,Kn=null,Gl=!1;function Ys(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gl||tn==null||tn!==to(r)||(r=tn,"selectionStart"in r&&Qi(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}),Kn&&or(Kn,r)||(Kn=r,r=uo(Kl,"onSelect"),0on||(e.current=bl[on],bl[on]=null,on--)}function M(e,t){on++,bl[on]=e.current,e.current=t}var Rt={},ce=Pt(Rt),ve=Pt(!1),Vt=Rt;function vn(e,t){var n=e.type.contextTypes;if(!n)return Rt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function we(e){return e=e.childContextTypes,e!=null}function co(){B(ve),B(ce)}function ou(e,t,n){if(ce.current!==Rt)throw Error(k(168));M(ce,t),M(ve,n)}function rc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,cd(e)||"Unknown",o));return G({},n,r)}function fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rt,Vt=ce.current,M(ce,e),M(ve,ve.current),!0}function lu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=rc(e,t,Vt),r.__reactInternalMemoizedMergedChildContext=e,B(ve),B(ce),M(ce,e)):B(ve),M(ve,n)}var et=null,Ao=!1,pl=!1;function oc(e){et===null?et=[e]:et.push(e)}function Tp(e){Ao=!0,oc(e)}function Nt(){if(!pl&&et!==null){pl=!0;var e=0,t=F;try{var n=et;for(F=1;e>=i,o-=i,tt=1<<32-Ve(t)+o|n<P?(j=_,_=null):j=_.sibling;var z=m(d,_,p[P],E);if(z===null){_===null&&(_=j);break}e&&_&&z.alternate===null&&t(d,_),c=l(z,c,P),x===null?C=z:x.sibling=z,x=z,_=j}if(P===p.length)return n(d,_),$&&At(d,P),C;if(_===null){for(;PP?(j=_,_=null):j=_.sibling;var Ce=m(d,_,z.value,E);if(Ce===null){_===null&&(_=j);break}e&&_&&Ce.alternate===null&&t(d,_),c=l(Ce,c,P),x===null?C=Ce:x.sibling=Ce,x=Ce,_=j}if(z.done)return n(d,_),$&&At(d,P),C;if(_===null){for(;!z.done;P++,z=p.next())z=h(d,z.value,E),z!==null&&(c=l(z,c,P),x===null?C=z:x.sibling=z,x=z);return $&&At(d,P),C}for(_=r(d,_);!z.done;P++,z=p.next())z=S(_,d,P,z.value,E),z!==null&&(e&&z.alternate!==null&&_.delete(z.key===null?P:z.key),c=l(z,c,P),x===null?C=z:x.sibling=z,x=z);return e&&_.forEach(function(Ot){return t(d,Ot)}),$&&At(d,P),C}function w(d,c,p,E){if(typeof p=="object"&&p!==null&&p.type===bt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case _r:e:{for(var C=p.key,x=c;x!==null;){if(x.key===C){if(C=p.type,C===bt){if(x.tag===7){n(d,x.sibling),c=o(x,p.props.children),c.return=d,d=c;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ft&&uu(C)===x.type){n(d,x.sibling),c=o(x,p.props),c.ref=An(d,x,p),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}p.type===bt?(c=Ht(p.props.children,d.mode,E,p.key),c.return=d,d=c):(E=Zr(p.type,p.key,p.props,null,d.mode,E),E.ref=An(d,c,p),E.return=d,d=E)}return i(d);case Zt: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=o(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=El(p,d.mode,E),c.return=d,d=c}return i(d);case ft:return x=p._init,w(d,c,x(p._payload),E)}if(Un(p))return y(d,c,p,E);if(Nn(p))return v(d,c,p,E);Ir(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=o(c,p),c.return=d,d=c):(n(d,c),c=Sl(p,d.mode,E),c.return=d,d=c),i(d)):n(d,c)}return w}var Sn=uc(!0),ac=uc(!1),mo=Pt(null),yo=null,un=null,qi=null;function Xi(){qi=un=yo=null}function Yi(e){var t=mo.current;B(mo),e._currentValue=t}function ni(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 mn(e,t){yo=e,qi=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function je(e){var t=e._currentValue;if(qi!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(yo===null)throw Error(k(308));un=e,yo.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var jt=null;function Zi(e){jt===null?jt=[e]:jt.push(e)}function cc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zi(t)):(n.next=o.next,o.next=n),t.interleaved=n,it(e,r)}function it(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 dt=!1;function bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fc(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 rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Et(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,it(e,n)}return o=r.interleaved,o===null?(t.next=t,Zi(r)):(t.next=o.next,o.next=t),r.interleaved=t,it(e,n)}function Kr(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,Mi(e,n)}}function au(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 go(e,t,n,r){var o=e.updateQueue;dt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?l=a:i.next=a,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(l!==null){var h=o.baseState;i=0,f=a=u=null,s=l;do{var m=s.lane,S=s.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(m=t,S=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(S,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(S,h,m):y,m==null)break e;h=G({},h,m);break e;case 2:dt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else S={eventTime:S,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=S,u=h):f=f.next=S,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(f===null&&(u=h),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Kt|=i,e.lanes=i,e.memoizedState=h}}function cu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{F=n,ml.transition=r}}function Pc(){return Me().memoizedState}function Lp(e,t,n){var r=Ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nc(e))Oc(t,n);else if(n=cc(e,t,n,r),n!==null){var o=de();We(n,e,r,o),Lc(n,t,r)}}function zp(e,t,n){var r=Ct(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nc(e))Oc(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,Qe(s,i)){var u=t.interleaved;u===null?(o.next=o,Zi(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=cc(e,t,o,r),n!==null&&(o=de(),We(n,e,r,o),Lc(n,t,r))}}function Nc(e){var t=e.alternate;return e===K||t!==null&&t===K}function Oc(e,t){Gn=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mi(e,n)}}var So={readContext:je,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Dp={readContext:je,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jr(4194308,4,Cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jr(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();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=Lp.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:fu,useDebugValue:ss,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=fu(!1),t=e[0];return e=Op.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=qe();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),re===null)throw Error(k(349));Qt&30||mc(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,du(gc.bind(null,r,l,e),[e]),r.flags|=2048,dr(9,yc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=qe(),t=re.identifierPrefix;if($){var n=nt,r=tt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=cr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function ad(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=bo(e.type,!1),e;case 11:return e=bo(e.type.render,!1),e;case 1:return e=bo(e.type,!0),e;default:return""}}function Ll(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 bt:return"Fragment";case Zt:return"Portal";case Pl:return"Profiler";case Di:return"StrictMode";case Nl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fa:return(e.displayName||"Context")+".Consumer";case ca:return(e._context.displayName||"Context")+".Provider";case Ai:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fi:return t=e.displayName||null,t!==null?t:Ll(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return Ll(e(t))}catch{}}return null}function cd(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 Ll(t);case 8:return t===Di?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fd(e){var t=pa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.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 Rr(e){e._valueTracker||(e._valueTracker=fd(e))}function ha(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function to(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 zl(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ls(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 ma(e,t){t=t.checked,t!=null&&zi(e,"checked",t,!1)}function Dl(e,t){ma(e,t);var n=_t(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")?Al(e,t.type,n):t.hasOwnProperty("defaultValue")&&Al(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zs(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 Al(e,t,n){(t!=="number"||to(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function fn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $n={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},dd=["Webkit","ms","Moz","O"];Object.keys($n).forEach(function(e){dd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$n[t]=$n[e]})});function wa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$n.hasOwnProperty(e)&&$n[e]?(""+t).trim():t+"px"}function Sa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pd=G({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 jl(e,t){if(t){if(pd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ml(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 Ul=null;function Ii(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,dn=null,pn=null;function Fs(e){if(e=gr(e)){if(typeof Bl!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Do(t),Bl(e.stateNode,e.type,t))}}function Ea(e){dn?pn?pn.push(e):pn=[e]:dn=e}function ka(){if(dn){var e=dn,t=pn;if(pn=dn=null,Fs(e),t)for(e=0;e>>=0,e===0?32:31-(xd(e)/_d|0)|0}var Pr=64,Nr=4194304;function Bn(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 lo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Bn(s):(l&=i,l!==0&&(r=Bn(l)))}else i=n&~o,i!==0?r=Bn(i):l!==0&&(r=Bn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ve(t),e[t]=n}function Nd(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=Wn),Ws=" ",Qs=!1;function $a(e,t){switch(e){case"keyup":return rp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Va(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function lp(e,t){switch(e){case"compositionend":return Va(t);case"keypress":return t.which!==32?null:(Qs=!0,Ws);case"textInput":return e=t.data,e===Ws&&Qs?null:e;default:return null}}function ip(e,t){if(en)return e==="compositionend"||!Wi&&$a(e,t)?(e=Ba(),Wr=Hi=mt=null,en=!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=qs(n)}}function Ga(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ga(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ja(){for(var e=window,t=to();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=to(e.document)}return t}function Qi(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 mp(e){var t=Ja(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ga(n.ownerDocument.documentElement,n)){if(r!==null&&Qi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Xs(n,l);var i=Xs(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>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,tn=null,Kl=null,Kn=null,Gl=!1;function Ys(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gl||tn==null||tn!==to(r)||(r=tn,"selectionStart"in r&&Qi(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}),Kn&&or(Kn,r)||(Kn=r,r=uo(Kl,"onSelect"),0on||(e.current=bl[on],bl[on]=null,on--)}function M(e,t){on++,bl[on]=e.current,e.current=t}var Rt={},ce=Pt(Rt),ge=Pt(!1),Vt=Rt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Rt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function we(e){return e=e.childContextTypes,e!=null}function co(){B(ge),B(ce)}function ou(e,t,n){if(ce.current!==Rt)throw Error(k(168));M(ce,t),M(ge,n)}function rc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,cd(e)||"Unknown",o));return G({},n,r)}function fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rt,Vt=ce.current,M(ce,e),M(ge,ge.current),!0}function lu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=rc(e,t,Vt),r.__reactInternalMemoizedMergedChildContext=e,B(ge),B(ce),M(ce,e)):B(ge),M(ge,n)}var et=null,Ao=!1,pl=!1;function oc(e){et===null?et=[e]:et.push(e)}function Tp(e){Ao=!0,oc(e)}function Nt(){if(!pl&&et!==null){pl=!0;var e=0,t=F;try{var n=et;for(F=1;e>=i,o-=i,tt=1<<32-Ve(t)+o|n<P?(j=_,_=null):j=_.sibling;var z=m(d,_,p[P],E);if(z===null){_===null&&(_=j);break}e&&_&&z.alternate===null&&t(d,_),c=l(z,c,P),x===null?C=z:x.sibling=z,x=z,_=j}if(P===p.length)return n(d,_),$&&At(d,P),C;if(_===null){for(;PP?(j=_,_=null):j=_.sibling;var Ce=m(d,_,z.value,E);if(Ce===null){_===null&&(_=j);break}e&&_&&Ce.alternate===null&&t(d,_),c=l(Ce,c,P),x===null?C=Ce:x.sibling=Ce,x=Ce,_=j}if(z.done)return n(d,_),$&&At(d,P),C;if(_===null){for(;!z.done;P++,z=p.next())z=h(d,z.value,E),z!==null&&(c=l(z,c,P),x===null?C=z:x.sibling=z,x=z);return $&&At(d,P),C}for(_=r(d,_);!z.done;P++,z=p.next())z=S(_,d,P,z.value,E),z!==null&&(e&&z.alternate!==null&&_.delete(z.key===null?P:z.key),c=l(z,c,P),x===null?C=z:x.sibling=z,x=z);return e&&_.forEach(function(Ot){return t(d,Ot)}),$&&At(d,P),C}function w(d,c,p,E){if(typeof p=="object"&&p!==null&&p.type===bt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case _r:e:{for(var C=p.key,x=c;x!==null;){if(x.key===C){if(C=p.type,C===bt){if(x.tag===7){n(d,x.sibling),c=o(x,p.props.children),c.return=d,d=c;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ft&&uu(C)===x.type){n(d,x.sibling),c=o(x,p.props),c.ref=An(d,x,p),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}p.type===bt?(c=Ht(p.props.children,d.mode,E,p.key),c.return=d,d=c):(E=Zr(p.type,p.key,p.props,null,d.mode,E),E.ref=An(d,c,p),E.return=d,d=E)}return i(d);case Zt: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=o(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=El(p,d.mode,E),c.return=d,d=c}return i(d);case ft:return x=p._init,w(d,c,x(p._payload),E)}if(Un(p))return y(d,c,p,E);if(Nn(p))return g(d,c,p,E);Ir(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=o(c,p),c.return=d,d=c):(n(d,c),c=Sl(p,d.mode,E),c.return=d,d=c),i(d)):n(d,c)}return w}var Sn=uc(!0),ac=uc(!1),mo=Pt(null),yo=null,un=null,qi=null;function Xi(){qi=un=yo=null}function Yi(e){var t=mo.current;B(mo),e._currentValue=t}function ni(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 mn(e,t){yo=e,qi=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ve=!0),e.firstContext=null)}function je(e){var t=e._currentValue;if(qi!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(yo===null)throw Error(k(308));un=e,yo.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var jt=null;function Zi(e){jt===null?jt=[e]:jt.push(e)}function cc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zi(t)):(n.next=o.next,o.next=n),t.interleaved=n,it(e,r)}function it(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 dt=!1;function bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fc(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 rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Et(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,it(e,n)}return o=r.interleaved,o===null?(t.next=t,Zi(r)):(t.next=o.next,o.next=t),r.interleaved=t,it(e,n)}function Kr(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,Mi(e,n)}}function au(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 vo(e,t,n,r){var o=e.updateQueue;dt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?l=a:i.next=a,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(l!==null){var h=o.baseState;i=0,f=a=u=null,s=l;do{var m=s.lane,S=s.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,g=s;switch(m=t,S=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){h=y.call(S,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(S,h,m):y,m==null)break e;h=G({},h,m);break e;case 2:dt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else S={eventTime:S,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=S,u=h):f=f.next=S,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(f===null&&(u=h),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Kt|=i,e.lanes=i,e.memoizedState=h}}function cu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{F=n,ml.transition=r}}function Pc(){return Me().memoizedState}function Lp(e,t,n){var r=Ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nc(e))Oc(t,n);else if(n=cc(e,t,n,r),n!==null){var o=de();We(n,e,r,o),Lc(n,t,r)}}function zp(e,t,n){var r=Ct(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nc(e))Oc(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,Qe(s,i)){var u=t.interleaved;u===null?(o.next=o,Zi(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=cc(e,t,o,r),n!==null&&(o=de(),We(n,e,r,o),Lc(n,t,r))}}function Nc(e){var t=e.alternate;return e===K||t!==null&&t===K}function Oc(e,t){Gn=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mi(e,n)}}var So={readContext:je,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Dp={readContext:je,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jr(4194308,4,Cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jr(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();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=Lp.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:fu,useDebugValue:ss,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=fu(!1),t=e[0];return e=Op.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=qe();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),re===null)throw Error(k(349));Qt&30||mc(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,du(vc.bind(null,r,l,e),[e]),r.flags|=2048,dr(9,yc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=qe(),t=re.identifierPrefix;if($){var n=nt,r=tt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=cr++,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[Xe]=t,e[sr]=r,Hc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ml(n,r),n){case"dialog":U("cancel",e),U("close",e),o=r;break;case"iframe":case"object":case"embed":U("load",e),o=r;break;case"video":case"audio":for(o=0;oCn&&(t.flags|=128,r=!0,Fn(l,!1),t.lanes=4194304)}else{if(!r)if(e=vo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!$)return ue(t),null}else 2*X()-l.renderingStartTime>Cn&&n!==1073741824&&(t.flags|=128,r=!0,Fn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=X(),t.sibling=null,n=Q.current,M(Q,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Hp(e,t){switch(Gi(t),t.tag){case 1:return we(t.type)&&co(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(),B(ve),B(ce),ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ts(t),null;case 13:if(B(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Q),null;case 4:return En(),null;case 10:return Yi(t.type._context),null;case 22:case 23:return ps(),null;case 24:return null;default:return null}}var Mr=!1,ae=!1,$p=typeof WeakSet=="function"?WeakSet:Set,T=null;function an(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function fi(e,t,n){try{n()}catch(r){J(e,t,r)}}var Cu=!1;function Vp(e,t){if(Jl=io,e=Ja(),Qi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,f=0,h=e,m=null;t:for(;;){for(var S;h!==n||o!==0&&h.nodeType!==3||(s=i+o),h!==l||r!==0&&h.nodeType!==3||(u=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===o&&(s=i),m===l&&++f===r&&(u=i),(S=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=S}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ql={focusedElem:e,selectionRange:n},io=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;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 v=y.memoizedProps,w=y.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:Be(t.type,v),w);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(k(163))}}catch(E){J(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return y=Cu,Cu=!1,y}function Jn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&fi(t,n,l)}o=o.next}while(o!==r)}}function jo(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 di(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 Wc(e){var t=e.alternate;t!==null&&(e.alternate=null,Wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[sr],delete t[Zl],delete t[_p],delete t[Rp])),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 Qc(e){return e.tag===5||e.tag===3||e.tag===4}function xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(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 pi(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=ao));else if(r!==4&&(e=e.child,e!==null))for(pi(e,t,n),e=e.sibling;e!==null;)pi(e,t,n),e=e.sibling}function hi(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(hi(e,t,n),e=e.sibling;e!==null;)hi(e,t,n),e=e.sibling}var oe=null,He=!1;function at(e,t,n){for(n=n.child;n!==null;)Kc(e,t,n),n=n.sibling}function Kc(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(No,n)}catch{}switch(n.tag){case 5:ae||an(n,t);case 6:var r=oe,o=He;oe=null,at(e,t,n),oe=r,He=o,oe!==null&&(He?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(He?(e=oe,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),nr(e)):dl(oe,n.stateNode));break;case 4:r=oe,o=He,oe=n.stateNode.containerInfo,He=!0,at(e,t,n),oe=r,He=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&fi(n,t,i),o=o.next}while(o!==r)}at(e,t,n);break;case 1:if(!ae&&(an(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){J(n,t,s)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,at(e,t,n),ae=r):at(e,t,n);break;default:at(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 $p),t.forEach(function(r){var o=Zp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qp(r/1960))-r,10e?16:e,yt===null)var r=!1;else{if(e=yt,yt=null,Co=0,A&6)throw Error(k(331));var o=A;for(A|=4,T=e.current;T!==null;){var l=T,i=l.child;if(T.flags&16){var s=l.deletions;if(s!==null){for(var u=0;uX()-fs?Bt(e,0):cs|=n),Se(e,t)}function ef(e,t){t===0&&(e.mode&1?(t=Nr,Nr<<=1,!(Nr&130023424)&&(Nr=4194304)):t=1);var n=de();e=it(e,t),e!==null&&(yr(e,t,n),Se(e,n))}function Yp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ef(e,n)}function Zp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),ef(e,n)}var tf;tf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,Up(e,t,n);ge=!!(e.flags&131072)}else ge=!1,$&&t.flags&1048576&&lc(t,ho,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qr(e,t),e=t.pendingProps;var o=vn(t,ce.current);mn(t,n),o=os(null,t,r,e,o,n);var l=ls();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,we(r)?(l=!0,fo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bi(t),o.updater=Io,t.stateNode=o,o._reactInternals=t,oi(t,r,e,n),t=si(null,t,r,!0,l,n)):(t.tag=0,$&&l&&Ki(t),fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qr(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=eh(r),e=Be(r,e),o){case 0:t=ii(null,t,r,e,n);break e;case 1:t=Su(null,t,r,e,n);break e;case 11:t=vu(null,t,r,e,n);break e;case 14:t=wu(null,t,r,Be(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),ii(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),Su(e,t,r,o,n);case 3:e:{if(Mc(t),e===null)throw Error(k(387));r=t.pendingProps,l=t.memoizedState,o=l.element,fc(e,t),go(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=kn(Error(k(423)),t),t=Eu(e,t,r,n,o);break e}else if(r!==o){o=kn(Error(k(424)),t),t=Eu(e,t,r,n,o);break e}else for(Te=St(t.stateNode.containerInfo.firstChild),Pe=t,$=!0,$e=null,n=ac(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===o){t=st(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return dc(t),e===null&&ti(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Xl(r,o)?i=null:l!==null&&Xl(r,l)&&(t.flags|=32),jc(e,t),fe(e,t,i,n),t.child;case 6:return e===null&&ti(t),null;case 13:return Uc(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sn(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),vu(e,t,r,o,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,M(mo,r._currentValue),r._currentValue=i,l!==null)if(Qe(l.value,i)){if(l.children===o.children&&!ve.current){t=st(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=rt(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ni(l.return,n,t),s.lanes|=n;break}u=u.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ni(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mn(t,n),o=je(o),r=r(o),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,o=Be(r,t.pendingProps),o=Be(r.type,o),wu(e,t,r,o,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),qr(e,t),t.tag=1,we(r)?(e=!0,fo(t)):e=!1,mn(t,n),zc(t,r,o),oi(t,r,o,n),si(null,t,r,!0,e,n);case 19:return Bc(e,t,n);case 22:return Ic(e,t,n)}throw Error(k(156,t.tag))};function nf(e,t){return Na(e,t)}function bp(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 Fe(e,t,n,r){return new bp(e,t,n,r)}function ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eh(e){if(typeof e=="function")return ms(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ai)return 11;if(e===Fi)return 14}return 2}function xt(e,t){var n=e.alternate;return n===null?(n=Fe(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 Zr(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")ms(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bt:return Ht(n.children,o,l,t);case Di:i=8,o|=8;break;case Pl:return e=Fe(12,n,t,o|2),e.elementType=Pl,e.lanes=l,e;case Nl:return e=Fe(13,n,t,o),e.elementType=Nl,e.lanes=l,e;case Ol:return e=Fe(19,n,t,o),e.elementType=Ol,e.lanes=l,e;case da:return Uo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ca:i=10;break e;case fa:i=9;break e;case Ai:i=11;break e;case Fi:i=14;break e;case ft:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Fe(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Ht(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Uo(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=da,e.lanes=n,e.stateNode={isHidden:!1},e}function Sl(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function th(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ys(e,t,n,r,o,l,i,s,u){return e=new th(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Fe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bi(l),e}function nh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sf)}catch(e){console.error(e)}}sf(),ia.exports=Le;var sh=ia.exports,Du=sh;Rl.createRoot=Du.createRoot,Rl.hydrateRoot=Du.hydrateRoot;function uf(e,t){return function(){return e.apply(t,arguments)}}const{toString:uh}=Object.prototype,{getPrototypeOf:Ss}=Object,Wo=(e=>t=>{const n=uh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ke=e=>(e=e.toLowerCase(),t=>Wo(t)===e),Qo=e=>t=>typeof t===e,{isArray:Tn}=Array,hr=Qo("undefined");function ah(e){return e!==null&&!hr(e)&&e.constructor!==null&&!hr(e.constructor)&&Ne(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const af=Ke("ArrayBuffer");function ch(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&af(e.buffer),t}const fh=Qo("string"),Ne=Qo("function"),cf=Qo("number"),Ko=e=>e!==null&&typeof e=="object",dh=e=>e===!0||e===!1,br=e=>{if(Wo(e)!=="object")return!1;const t=Ss(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ph=Ke("Date"),hh=Ke("File"),mh=Ke("Blob"),yh=Ke("FileList"),gh=e=>Ko(e)&&Ne(e.pipe),vh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ne(e.append)&&((t=Wo(e))==="formdata"||t==="object"&&Ne(e.toString)&&e.toString()==="[object FormData]"))},wh=Ke("URLSearchParams"),[Sh,Eh,kh,Ch]=["ReadableStream","Request","Response","Headers"].map(Ke),xh=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,o;if(typeof e!="object"&&(e=[e]),Tn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,df=e=>!hr(e)&&e!==Ut;function wi(){const{caseless:e}=df(this)&&this||{},t={},n=(r,o)=>{const l=e&&ff(t,o)||o;br(t[l])&&br(r)?t[l]=wi(t[l],r):br(r)?t[l]=wi({},r):Tn(r)?t[l]=r.slice():t[l]=r};for(let r=0,o=arguments.length;r(Sr(t,(o,l)=>{n&&Ne(o)?e[l]=uf(o,n):e[l]=o},{allOwnKeys:r}),e),Rh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Th=(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)},Ph=(e,t,n,r)=>{let o,l,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&Ss(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nh=(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},Oh=e=>{if(!e)return null;if(Tn(e))return e;let t=e.length;if(!cf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Lh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ss(Uint8Array)),zh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},Dh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ah=Ke("HTMLFormElement"),Fh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Au=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ih=Ke("RegExp"),pf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sr(n,(o,l)=>{let i;(i=t(o,l,e))!==!1&&(r[l]=i||o)}),Object.defineProperties(e,r)},jh=e=>{pf(e,(t,n)=>{if(Ne(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ne(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+"'")})}})},Mh=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return Tn(e)?r(e):r(String(e).split(t)),n},Uh=()=>{},Bh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,kl="abcdefghijklmnopqrstuvwxyz",Fu="0123456789",hf={DIGIT:Fu,ALPHA:kl,ALPHA_DIGIT:kl+kl.toUpperCase()+Fu},Hh=(e=16,t=hf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function $h(e){return!!(e&&Ne(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vh=e=>{const t=new Array(10),n=(r,o)=>{if(Ko(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const l=Tn(r)?[]:{};return Sr(r,(i,s)=>{const u=n(i,o+1);!hr(u)&&(l[s]=u)}),t[o]=void 0,l}}return r};return n(e,0)},Wh=Ke("AsyncFunction"),Qh=e=>e&&(Ko(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),mf=((e,t)=>e?setImmediate:t?((n,r)=>(Ut.addEventListener("message",({source:o,data:l})=>{o===Ut&&l===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ut.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ne(Ut.postMessage)),Kh=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||mf,g={isArray:Tn,isArrayBuffer:af,isBuffer:ah,isFormData:vh,isArrayBufferView:ch,isString:fh,isNumber:cf,isBoolean:dh,isObject:Ko,isPlainObject:br,isReadableStream:Sh,isRequest:Eh,isResponse:kh,isHeaders:Ch,isUndefined:hr,isDate:ph,isFile:hh,isBlob:mh,isRegExp:Ih,isFunction:Ne,isStream:gh,isURLSearchParams:wh,isTypedArray:Lh,isFileList:yh,forEach:Sr,merge:wi,extend:_h,trim:xh,stripBOM:Rh,inherits:Th,toFlatObject:Ph,kindOf:Wo,kindOfTest:Ke,endsWith:Nh,toArray:Oh,forEachEntry:zh,matchAll:Dh,isHTMLForm:Ah,hasOwnProperty:Au,hasOwnProp:Au,reduceDescriptors:pf,freezeMethods:jh,toObjectSet:Mh,toCamelCase:Fh,noop:Uh,toFiniteNumber:Bh,findKey:ff,global:Ut,isContextDefined:df,ALPHABET:hf,generateString:Hh,isSpecCompliantForm:$h,toJSONObject:Vh,isAsyncFn:Wh,isThenable:Qh,setImmediate:mf,asap:Kh};function L(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}g.inherits(L,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:g.toJSONObject(this.config),code:this.code,status:this.status}}});const yf=L.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(L,gf);Object.defineProperty(yf,"isAxiosError",{value:!0});L.from=(e,t,n,r,o,l)=>{const i=Object.create(yf);return g.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),L.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const Gh=null;function Si(e){return g.isPlainObject(e)||g.isArray(e)}function vf(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function Iu(e,t,n){return e?e.concat(t).map(function(o,l){return o=vf(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Jh(e){return g.isArray(e)&&!e.some(Si)}const qh=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function Go(e,t,n){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!g.isUndefined(w[v])});const r=n.metaTokens,o=n.visitor||f,l=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(t);if(!g.isFunction(o))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(g.isDate(y))return y.toISOString();if(!u&&g.isBlob(y))throw new L("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(y)||g.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,v,w){let d=y;if(y&&!w&&typeof y=="object"){if(g.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(g.isArray(y)&&Jh(y)||(g.isFileList(y)||g.endsWith(v,"[]"))&&(d=g.toArray(y)))return v=vf(v),d.forEach(function(p,E){!(g.isUndefined(p)||p===null)&&t.append(i===!0?Iu([v],E,l):i===null?v:v+"[]",a(p))}),!1}return Si(y)?!0:(t.append(Iu(w,v,l),a(y)),!1)}const h=[],m=Object.assign(qh,{defaultVisitor:f,convertValue:a,isVisitable:Si});function S(y,v){if(!g.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(y),g.forEach(y,function(d,c){(!(g.isUndefined(d)||d===null)&&o.call(t,d,g.isString(c)?c.trim():c,v,m))===!0&&S(d,v?v.concat(c):[c])}),h.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return S(e),t}function ju(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Es(e,t){this._pairs=[],e&&Go(e,this,t)}const wf=Es.prototype;wf.append=function(t,n){this._pairs.push([t,n])};wf.toString=function(t){const n=t?function(r){return t.call(this,r,ju)}:ju;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Xh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sf(e,t,n){if(!t)return e;const r=n&&n.encode||Xh,o=n&&n.serialize;let l;if(o?l=o(t,n):l=g.isURLSearchParams(t)?t.toString():new Es(t,n).toString(r),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Mu{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){g.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yh=typeof URLSearchParams<"u"?URLSearchParams:Es,Zh=typeof FormData<"u"?FormData:null,bh=typeof Blob<"u"?Blob:null,em={isBrowser:!0,classes:{URLSearchParams:Yh,FormData:Zh,Blob:bh},protocols:["http","https","file","blob","url","data"]},ks=typeof window<"u"&&typeof document<"u",Ei=typeof navigator=="object"&&navigator||void 0,tm=ks&&(!Ei||["ReactNative","NativeScript","NS"].indexOf(Ei.product)<0),nm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rm=ks&&window.location.href||"http://localhost",om=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ks,hasStandardBrowserEnv:tm,hasStandardBrowserWebWorkerEnv:nm,navigator:Ei,origin:rm},Symbol.toStringTag,{value:"Module"})),Ee={...om,...em};function lm(e,t){return Go(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,l){return Ee.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function im(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sm(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r=n.length;return i=!i&&g.isArray(o)?o.length:i,u?(g.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!s):((!o[i]||!g.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],l)&&g.isArray(o[i])&&(o[i]=sm(o[i])),!s)}if(g.isFormData(e)&&g.isFunction(e.entries)){const n={};return g.forEachEntry(e,(r,o)=>{t(im(r),o,n,0)}),n}return null}function um(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Er={transitional:Ef,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=g.isObject(t);if(l&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return o?JSON.stringify(kf(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t)||g.isReadableStream(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lm(t,this.formSerializer).toString();if((s=g.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Go(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),um(t)):t}],transformResponse:[function(t){const n=this.transitional||Er.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(g.isResponse(t)||g.isReadableStream(t))return t;if(t&&g.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?L.from(s,L.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:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{Er.headers[e]={}});const am=g.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"]),cm=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&am[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uu=Symbol("internals");function jn(e){return e&&String(e).trim().toLowerCase()}function eo(e){return e===!1||e==null?e:g.isArray(e)?e.map(eo):String(e)}function fm(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 dm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cl(e,t,n,r,o){if(g.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!g.isString(t)){if(g.isString(r))return t.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(t)}}function pm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hm(e,t){const n=g.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,l,i){return this[r].call(this,t,o,l,i)},configurable:!0})})}class ke{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(s,u,a){const f=jn(u);if(!f)throw new Error("header name must be a non-empty string");const h=g.findKey(o,f);(!h||o[h]===void 0||a===!0||a===void 0&&o[h]!==!1)&&(o[h||u]=eo(s))}const i=(s,u)=>g.forEach(s,(a,f)=>l(a,f,u));if(g.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(g.isString(t)&&(t=t.trim())&&!dm(t))i(cm(t),n);else if(g.isHeaders(t))for(const[s,u]of t.entries())l(u,s,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=jn(t),t){const r=g.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return fm(o);if(g.isFunction(n))return n.call(this,o,r);if(g.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jn(t),t){const r=g.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Cl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(i){if(i=jn(i),i){const s=g.findKey(r,i);s&&(!n||Cl(r,r[s],s,n))&&(delete r[s],o=!0)}}return g.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||Cl(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};return g.forEach(this,(o,l)=>{const i=g.findKey(r,l);if(i){n[i]=eo(o),delete n[l];return}const s=t?pm(l):String(l).trim();s!==l&&delete n[l],n[s]=eo(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return g.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&g.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Uu]=this[Uu]={accessors:{}}).accessors,o=this.prototype;function l(i){const s=jn(i);r[s]||(hm(o,i),r[s]=!0)}return g.isArray(t)?t.forEach(l):l(t),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});g.freezeMethods(ke);function xl(e,t){const n=this||Er,r=t||n,o=ke.from(r.headers);let l=r.data;return g.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function Cf(e){return!!(e&&e.__CANCEL__)}function Pn(e,t,n){L.call(this,e??"canceled",L.ERR_CANCELED,t,n),this.name="CanceledError"}g.inherits(Pn,L,{__CANCEL__:!0});function xf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ym(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[l];i||(i=a),n[o]=u,r[o]=a;let h=l,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),a-i{n=f,o=null,l&&(clearTimeout(l),l=null),e.apply(null,a)};return[(...a)=>{const f=Date.now(),h=f-n;h>=r?i(a,f):(o=a,l||(l=setTimeout(()=>{l=null,i(o)},r-h)))},()=>o&&i(o)]}const Ro=(e,t,n=3)=>{let r=0;const o=ym(50,250);return gm(l=>{const i=l.loaded,s=l.lengthComputable?l.total:void 0,u=i-r,a=o(u),f=i<=s;r=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},n)},Bu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hu=e=>(...t)=>g.asap(()=>e(...t)),vm=Ee.hasStandardBrowserEnv?function(){const t=Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent),n=document.createElement("a");let r;function o(l){let i=l;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=o(window.location.href),function(i){const s=g.isString(i)?o(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),wm=Ee.hasStandardBrowserEnv?{write(e,t,n,r,o,l){const i=[e+"="+encodeURIComponent(t)];g.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),g.isString(r)&&i.push("path="+r),g.isString(o)&&i.push("domain="+o),l===!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 Sm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _f(e,t){return e&&!Sm(t)?Em(e,t):t}const $u=e=>e instanceof ke?{...e}:e;function Jt(e,t){t=t||{};const n={};function r(a,f,h){return g.isPlainObject(a)&&g.isPlainObject(f)?g.merge.call({caseless:h},a,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function o(a,f,h){if(g.isUndefined(f)){if(!g.isUndefined(a))return r(void 0,a,h)}else return r(a,f,h)}function l(a,f){if(!g.isUndefined(f))return r(void 0,f)}function i(a,f){if(g.isUndefined(f)){if(!g.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,h){if(h in t)return r(a,f);if(h in e)return r(void 0,a)}const u={url:l,method:l,data:l,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:s,headers:(a,f)=>o($u(a),$u(f),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=u[f]||o,m=h(e[f],t[f],f);g.isUndefined(m)&&h!==s||(n[f]=m)}),n}const Rf=e=>{const t=Jt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:s}=t;t.headers=i=ke.from(i),t.url=Sf(_f(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(g.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[a,...f]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...f].join("; "))}}if(Ee.hasStandardBrowserEnv&&(r&&g.isFunction(r)&&(r=r(t)),r||r!==!1&&vm(t.url))){const a=o&&l&&wm.read(l);a&&i.set(o,a)}return t},km=typeof XMLHttpRequest<"u",Cm=km&&function(e){return new Promise(function(n,r){const o=Rf(e);let l=o.data;const i=ke.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=o,f,h,m,S,y;function v(){S&&S(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function d(){if(!w)return;const p=ke.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:p,config:e,request:w};xf(function(_){n(_),v()},function(_){r(_),v()},C),w=null}"onloadend"in w?w.onloadend=d:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(d)},w.onabort=function(){w&&(r(new L("Request aborted",L.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new L("Network Error",L.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||Ef;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new L(E,C.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,w)),w=null},l===void 0&&i.setContentType(null),"setRequestHeader"in w&&g.forEach(i.toJSON(),function(E,C){w.setRequestHeader(C,E)}),g.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),s&&s!=="json"&&(w.responseType=o.responseType),a&&([m,y]=Ro(a,!0),w.addEventListener("progress",m)),u&&w.upload&&([h,S]=Ro(u),w.upload.addEventListener("progress",h),w.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(f=p=>{w&&(r(!p||p.type?new Pn(null,e,w):p),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const c=mm(o.url);if(c&&Ee.protocols.indexOf(c)===-1){r(new L("Unsupported protocol "+c+":",L.ERR_BAD_REQUEST,e));return}w.send(l||null)})},xm=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const l=function(a){if(!o){o=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof L?f:new Pn(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,l(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>g.asap(s),u}},_m=function*(e,t){let n=e.byteLength;if(n{const o=Rm(e,t);let l=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await o.next();if(a){s(),u.close();return}let h=f.byteLength;if(n){let m=l+=h;n(m)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Jo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tf=Jo&&typeof ReadableStream=="function",Pm=Jo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nm=Tf&&Pf(()=>{let e=!1;const t=new Request(Ee.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wu=64*1024,ki=Tf&&Pf(()=>g.isReadableStream(new Response("").body)),To={stream:ki&&(e=>e.body)};Jo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!To[t]&&(To[t]=g.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,r)})})})(new Response);const Om=async e=>{if(e==null)return 0;if(g.isBlob(e))return e.size;if(g.isSpecCompliantForm(e))return(await new Request(Ee.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(g.isArrayBufferView(e)||g.isArrayBuffer(e))return e.byteLength;if(g.isURLSearchParams(e)&&(e=e+""),g.isString(e))return(await Pm(e)).byteLength},Lm=async(e,t)=>{const n=g.toFiniteNumber(e.getContentLength());return n??Om(t)},zm=Jo&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:l,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:f,withCredentials:h="same-origin",fetchOptions:m}=Rf(e);a=a?(a+"").toLowerCase():"text";let S=xm([o,l&&l.toAbortSignal()],i),y;const v=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let w;try{if(u&&Nm&&n!=="get"&&n!=="head"&&(w=await Lm(f,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(g.isFormData(r)&&(x=C.headers.get("content-type"))&&f.setContentType(x),C.body){const[_,P]=Bu(w,Ro(Hu(u)));r=Vu(C.body,Wu,_,P)}}g.isString(h)||(h=h?"include":"omit");const d="credentials"in Request.prototype;y=new Request(t,{...m,signal:S,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:d?h:void 0});let c=await fetch(y);const p=ki&&(a==="stream"||a==="response");if(ki&&(s||p&&v)){const C={};["status","statusText","headers"].forEach(j=>{C[j]=c[j]});const x=g.toFiniteNumber(c.headers.get("content-length")),[_,P]=s&&Bu(x,Ro(Hu(s),!0))||[];c=new Response(Vu(c.body,Wu,_,()=>{P&&P(),v&&v()}),C)}a=a||"text";let E=await To[g.findKey(To,a)||"text"](c,e);return!p&&v&&v(),await new Promise((C,x)=>{xf(C,x,{data:E,headers:ke.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:y})})}catch(d){throw v&&v(),d&&d.name==="TypeError"&&/fetch/i.test(d.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,e,y),{cause:d.cause||d}):L.from(d,d&&d.code,e,y)}}),Ci={http:Gh,xhr:Cm,fetch:zm};g.forEach(Ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qu=e=>`- ${e}`,Dm=e=>g.isFunction(e)||e===null||e===!1,Nf={getAdapter:e=>{e=g.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let l=0;l`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since : +`+l.stack}return{value:e,source:t,stack:o,digest:null}}function gl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function li(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ip=typeof WeakMap=="function"?WeakMap:Map;function Dc(e,t,n){n=rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ko||(ko=!0,mi=r),li(e,t)},n}function Ac(e,t,n){n=rt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){li(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){li(e,t),typeof r!="function"&&(kt===null?kt=new Set([this]):kt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function mu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ip;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Xp.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vu(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rt(-1,1),t.tag=2,Et(n,t,1))),n.lanes|=1),e)}var jp=ut.ReactCurrentOwner,ve=!1;function fe(e,t,n,r){t.child=e===null?ac(t,null,n,r):Sn(t,e.child,n,r)}function gu(e,t,n,r,o){n=n.render;var l=t.ref;return mn(t,o),r=os(e,t,n,r,l,o),n=ls(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,st(e,t,o)):($&&n&&Ki(t),t.flags|=1,fe(e,t,r,o),t.child)}function wu(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!ms(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Fc(e,t,l,r,o)):(e=Zr(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:or,n(i,r)&&e.ref===t.ref)return st(e,t,o)}return t.flags|=1,e=xt(l,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(or(l,r)&&e.ref===t.ref)if(ve=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(ve=!0);else return t.lanes=e.lanes,st(e,t,o)}return ii(e,t,n,r,o)}function Ic(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},M(cn,Re),Re|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,M(cn,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,M(cn,Re),Re|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,M(cn,Re),Re|=r;return fe(e,t,o,n),t.child}function jc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ii(e,t,n,r,o){var l=we(n)?Vt:ce.current;return l=gn(t,l),mn(t,o),n=os(e,t,n,r,l,o),r=ls(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,st(e,t,o)):($&&r&&Ki(t),t.flags|=1,fe(e,t,n,o),t.child)}function Su(e,t,n,r,o){if(we(n)){var l=!0;fo(t)}else l=!1;if(mn(t,o),t.stateNode===null)qr(e,t),zc(t,n,r),oi(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=je(a):(a=we(n)?Vt:ce.current,a=gn(t,a));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==a)&&hu(t,i,r,a),dt=!1;var m=t.memoizedState;i.state=m,vo(t,r,i,o),u=t.memoizedState,s!==r||m!==u||ge.current||dt?(typeof f=="function"&&(ri(t,n,f,r),u=t.memoizedState),(s=dt||pu(t,n,s,r,m,u,a))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,fc(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:Be(t.type,s),i.props=a,h=t.pendingProps,m=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=je(u):(u=we(n)?Vt:ce.current,u=gn(t,u));var S=n.getDerivedStateFromProps;(f=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==h||m!==u)&&hu(t,i,r,u),dt=!1,m=t.memoizedState,i.state=m,vo(t,r,i,o);var y=t.memoizedState;s!==h||m!==y||ge.current||dt?(typeof S=="function"&&(ri(t,n,S,r),y=t.memoizedState),(a=dt||pu(t,n,a,r,m,y,u)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return si(e,t,n,r,l,o)}function si(e,t,n,r,o,l){jc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&lu(t,n,!1),st(e,t,l);r=t.stateNode,jp.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Sn(t,e.child,null,l),t.child=Sn(t,null,s,l)):fe(e,t,s,l),t.memoizedState=r.state,o&&lu(t,n,!0),t.child}function Mc(e){var t=e.stateNode;t.pendingContext?ou(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ou(e,t.context,!1),es(e,t.containerInfo)}function Eu(e,t,n,r,o){return wn(),Ji(o),t.flags|=256,fe(e,t,n,r),t.child}var ui={dehydrated:null,treeContext:null,retryLane:0};function ai(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uc(e,t,n){var r=t.pendingProps,o=Q.current,l=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),M(Q,o&1),e===null)return ti(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=Uo(i,r,0,null),e=Ht(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ai(n),t.memoizedState=ui,e):us(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Mp(e,t,i,r,s,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=xt(o,u),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?l=xt(s,l):(l=Ht(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?ai(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=ui,r}return l=e.child,e=l.sibling,r=xt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function us(e,t){return t=Uo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Ji(r),Sn(t,e.child,null,n),e=us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mp(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=gl(Error(k(422))),jr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Uo({mode:"visible",children:r.children},o,0,null),l=Ht(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Sn(t,e.child,null,i),t.child.memoizedState=ai(i),t.memoizedState=ui,l);if(!(t.mode&1))return jr(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(k(419)),r=gl(l,r,void 0),jr(e,t,i,r)}if(s=(i&e.childLanes)!==0,ve||s){if(r=re,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,it(e,o),We(r,e,o,-1))}return hs(),r=gl(Error(k(421))),jr(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Yp.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Te=St(o.nextSibling),Pe=t,$=!0,$e=null,e!==null&&(De[Ae++]=tt,De[Ae++]=nt,De[Ae++]=Wt,tt=e.id,nt=e.overflow,Wt=t),t=us(t,r.children),t.flags|=4096,t)}function ku(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ni(e.return,t,n)}function wl(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Bc(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(fe(e,t,r.children,n),r=Q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ku(e,n,t);else if(e.tag===19)ku(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(M(Q,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wl(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&go(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wl(t,!0,n,null,l);break;case"together":wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function st(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Up(e,t,n){switch(t.tag){case 3:Mc(t),wn();break;case 5:dc(t);break;case 1:we(t.type)&&fo(t);break;case 4:es(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;M(mo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(M(Q,Q.current&1),t.flags|=128,null):n&t.child.childLanes?Uc(e,t,n):(M(Q,Q.current&1),e=st(e,t,n),e!==null?e.sibling:null);M(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Bc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),M(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,Ic(e,t,n)}return st(e,t,n)}var Hc,ci,$c,Vc;Hc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ci=function(){};$c=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Mt(Ze.current);var l=null;switch(n){case"input":o=zl(e,o),r=zl(e,r),l=[];break;case"select":o=G({},o,{value:void 0}),r=G({},r,{value:void 0}),l=[];break;case"textarea":o=Fl(e,o),r=Fl(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ao)}jl(n,r);var i;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var s=o[a];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Yn.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var u=r[a];if(s=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(l=l||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Yn.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&U("scroll",e),l||s===u||(l=[])):(l=l||[]).push(a,u))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};Vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fn(e,t){if(!$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bp(e,t,n){var r=t.pendingProps;switch(Gi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(t),null;case 1:return we(t.type)&&co(),ue(t),null;case 3:return r=t.stateNode,En(),B(ge),B(ce),ns(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(gi($e),$e=null))),ci(e,t),ue(t),null;case 5:ts(t);var o=Mt(ar.current);if(n=t.type,e!==null&&t.stateNode!=null)$c(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ue(t),null}if(e=Mt(Ze.current),Fr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Xe]=t,r[sr]=l,e=(t.mode&1)!==0,n){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(o=0;o<\/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[Xe]=t,e[sr]=r,Hc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ml(n,r),n){case"dialog":U("cancel",e),U("close",e),o=r;break;case"iframe":case"object":case"embed":U("load",e),o=r;break;case"video":case"audio":for(o=0;oCn&&(t.flags|=128,r=!0,Fn(l,!1),t.lanes=4194304)}else{if(!r)if(e=go(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!$)return ue(t),null}else 2*Y()-l.renderingStartTime>Cn&&n!==1073741824&&(t.flags|=128,r=!0,Fn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,n=Q.current,M(Q,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Hp(e,t){switch(Gi(t),t.tag){case 1:return we(t.type)&&co(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(),B(ge),B(ce),ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ts(t),null;case 13:if(B(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Q),null;case 4:return En(),null;case 10:return Yi(t.type._context),null;case 22:case 23:return ps(),null;case 24:return null;default:return null}}var Mr=!1,ae=!1,$p=typeof WeakSet=="function"?WeakSet:Set,T=null;function an(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function fi(e,t,n){try{n()}catch(r){q(e,t,r)}}var Cu=!1;function Vp(e,t){if(Jl=io,e=Ja(),Qi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,f=0,h=e,m=null;t:for(;;){for(var S;h!==n||o!==0&&h.nodeType!==3||(s=i+o),h!==l||r!==0&&h.nodeType!==3||(u=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===o&&(s=i),m===l&&++f===r&&(u=i),(S=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=S}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ql={focusedElem:e,selectionRange:n},io=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;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 g=y.memoizedProps,w=y.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:Be(t.type,g),w);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(k(163))}}catch(E){q(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return y=Cu,Cu=!1,y}function Jn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&fi(t,n,l)}o=o.next}while(o!==r)}}function jo(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 di(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 Wc(e){var t=e.alternate;t!==null&&(e.alternate=null,Wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[sr],delete t[Zl],delete t[_p],delete t[Rp])),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 Qc(e){return e.tag===5||e.tag===3||e.tag===4}function xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(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 pi(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=ao));else if(r!==4&&(e=e.child,e!==null))for(pi(e,t,n),e=e.sibling;e!==null;)pi(e,t,n),e=e.sibling}function hi(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(hi(e,t,n),e=e.sibling;e!==null;)hi(e,t,n),e=e.sibling}var oe=null,He=!1;function at(e,t,n){for(n=n.child;n!==null;)Kc(e,t,n),n=n.sibling}function Kc(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(No,n)}catch{}switch(n.tag){case 5:ae||an(n,t);case 6:var r=oe,o=He;oe=null,at(e,t,n),oe=r,He=o,oe!==null&&(He?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(He?(e=oe,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),nr(e)):dl(oe,n.stateNode));break;case 4:r=oe,o=He,oe=n.stateNode.containerInfo,He=!0,at(e,t,n),oe=r,He=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&fi(n,t,i),o=o.next}while(o!==r)}at(e,t,n);break;case 1:if(!ae&&(an(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){q(n,t,s)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,at(e,t,n),ae=r):at(e,t,n);break;default:at(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 $p),t.forEach(function(r){var o=Zp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qp(r/1960))-r,10e?16:e,yt===null)var r=!1;else{if(e=yt,yt=null,Co=0,A&6)throw Error(k(331));var o=A;for(A|=4,T=e.current;T!==null;){var l=T,i=l.child;if(T.flags&16){var s=l.deletions;if(s!==null){for(var u=0;uY()-fs?Bt(e,0):cs|=n),Se(e,t)}function ef(e,t){t===0&&(e.mode&1?(t=Nr,Nr<<=1,!(Nr&130023424)&&(Nr=4194304)):t=1);var n=de();e=it(e,t),e!==null&&(yr(e,t,n),Se(e,n))}function Yp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ef(e,n)}function Zp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),ef(e,n)}var tf;tf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ve=!1,Up(e,t,n);ve=!!(e.flags&131072)}else ve=!1,$&&t.flags&1048576&&lc(t,ho,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qr(e,t),e=t.pendingProps;var o=gn(t,ce.current);mn(t,n),o=os(null,t,r,e,o,n);var l=ls();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,we(r)?(l=!0,fo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bi(t),o.updater=Io,t.stateNode=o,o._reactInternals=t,oi(t,r,e,n),t=si(null,t,r,!0,l,n)):(t.tag=0,$&&l&&Ki(t),fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qr(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=eh(r),e=Be(r,e),o){case 0:t=ii(null,t,r,e,n);break e;case 1:t=Su(null,t,r,e,n);break e;case 11:t=gu(null,t,r,e,n);break e;case 14:t=wu(null,t,r,Be(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),ii(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),Su(e,t,r,o,n);case 3:e:{if(Mc(t),e===null)throw Error(k(387));r=t.pendingProps,l=t.memoizedState,o=l.element,fc(e,t),vo(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=kn(Error(k(423)),t),t=Eu(e,t,r,n,o);break e}else if(r!==o){o=kn(Error(k(424)),t),t=Eu(e,t,r,n,o);break e}else for(Te=St(t.stateNode.containerInfo.firstChild),Pe=t,$=!0,$e=null,n=ac(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===o){t=st(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return dc(t),e===null&&ti(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Xl(r,o)?i=null:l!==null&&Xl(r,l)&&(t.flags|=32),jc(e,t),fe(e,t,i,n),t.child;case 6:return e===null&&ti(t),null;case 13:return Uc(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sn(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),gu(e,t,r,o,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,M(mo,r._currentValue),r._currentValue=i,l!==null)if(Qe(l.value,i)){if(l.children===o.children&&!ge.current){t=st(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=rt(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ni(l.return,n,t),s.lanes|=n;break}u=u.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ni(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mn(t,n),o=je(o),r=r(o),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,o=Be(r,t.pendingProps),o=Be(r.type,o),wu(e,t,r,o,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Be(r,o),qr(e,t),t.tag=1,we(r)?(e=!0,fo(t)):e=!1,mn(t,n),zc(t,r,o),oi(t,r,o,n),si(null,t,r,!0,e,n);case 19:return Bc(e,t,n);case 22:return Ic(e,t,n)}throw Error(k(156,t.tag))};function nf(e,t){return Na(e,t)}function bp(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 Fe(e,t,n,r){return new bp(e,t,n,r)}function ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eh(e){if(typeof e=="function")return ms(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ai)return 11;if(e===Fi)return 14}return 2}function xt(e,t){var n=e.alternate;return n===null?(n=Fe(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 Zr(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")ms(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bt:return Ht(n.children,o,l,t);case Di:i=8,o|=8;break;case Pl:return e=Fe(12,n,t,o|2),e.elementType=Pl,e.lanes=l,e;case Nl:return e=Fe(13,n,t,o),e.elementType=Nl,e.lanes=l,e;case Ol:return e=Fe(19,n,t,o),e.elementType=Ol,e.lanes=l,e;case da:return Uo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ca:i=10;break e;case fa:i=9;break e;case Ai:i=11;break e;case Fi:i=14;break e;case ft:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Fe(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Ht(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Uo(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=da,e.lanes=n,e.stateNode={isHidden:!1},e}function Sl(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function th(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ys(e,t,n,r,o,l,i,s,u){return e=new th(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Fe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bi(l),e}function nh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sf)}catch(e){console.error(e)}}sf(),ia.exports=Le;var sh=ia.exports,Du=sh;Rl.createRoot=Du.createRoot,Rl.hydrateRoot=Du.hydrateRoot;function uf(e,t){return function(){return e.apply(t,arguments)}}const{toString:uh}=Object.prototype,{getPrototypeOf:Ss}=Object,Wo=(e=>t=>{const n=uh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ke=e=>(e=e.toLowerCase(),t=>Wo(t)===e),Qo=e=>t=>typeof t===e,{isArray:Tn}=Array,hr=Qo("undefined");function ah(e){return e!==null&&!hr(e)&&e.constructor!==null&&!hr(e.constructor)&&Ne(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const af=Ke("ArrayBuffer");function ch(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&af(e.buffer),t}const fh=Qo("string"),Ne=Qo("function"),cf=Qo("number"),Ko=e=>e!==null&&typeof e=="object",dh=e=>e===!0||e===!1,br=e=>{if(Wo(e)!=="object")return!1;const t=Ss(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ph=Ke("Date"),hh=Ke("File"),mh=Ke("Blob"),yh=Ke("FileList"),vh=e=>Ko(e)&&Ne(e.pipe),gh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ne(e.append)&&((t=Wo(e))==="formdata"||t==="object"&&Ne(e.toString)&&e.toString()==="[object FormData]"))},wh=Ke("URLSearchParams"),[Sh,Eh,kh,Ch]=["ReadableStream","Request","Response","Headers"].map(Ke),xh=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,o;if(typeof e!="object"&&(e=[e]),Tn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,df=e=>!hr(e)&&e!==Ut;function wi(){const{caseless:e}=df(this)&&this||{},t={},n=(r,o)=>{const l=e&&ff(t,o)||o;br(t[l])&&br(r)?t[l]=wi(t[l],r):br(r)?t[l]=wi({},r):Tn(r)?t[l]=r.slice():t[l]=r};for(let r=0,o=arguments.length;r(Sr(t,(o,l)=>{n&&Ne(o)?e[l]=uf(o,n):e[l]=o},{allOwnKeys:r}),e),Rh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Th=(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)},Ph=(e,t,n,r)=>{let o,l,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&Ss(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nh=(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},Oh=e=>{if(!e)return null;if(Tn(e))return e;let t=e.length;if(!cf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Lh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ss(Uint8Array)),zh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},Dh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ah=Ke("HTMLFormElement"),Fh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Au=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ih=Ke("RegExp"),pf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sr(n,(o,l)=>{let i;(i=t(o,l,e))!==!1&&(r[l]=i||o)}),Object.defineProperties(e,r)},jh=e=>{pf(e,(t,n)=>{if(Ne(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ne(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+"'")})}})},Mh=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return Tn(e)?r(e):r(String(e).split(t)),n},Uh=()=>{},Bh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,kl="abcdefghijklmnopqrstuvwxyz",Fu="0123456789",hf={DIGIT:Fu,ALPHA:kl,ALPHA_DIGIT:kl+kl.toUpperCase()+Fu},Hh=(e=16,t=hf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function $h(e){return!!(e&&Ne(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vh=e=>{const t=new Array(10),n=(r,o)=>{if(Ko(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const l=Tn(r)?[]:{};return Sr(r,(i,s)=>{const u=n(i,o+1);!hr(u)&&(l[s]=u)}),t[o]=void 0,l}}return r};return n(e,0)},Wh=Ke("AsyncFunction"),Qh=e=>e&&(Ko(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),mf=((e,t)=>e?setImmediate:t?((n,r)=>(Ut.addEventListener("message",({source:o,data:l})=>{o===Ut&&l===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ut.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ne(Ut.postMessage)),Kh=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||mf,v={isArray:Tn,isArrayBuffer:af,isBuffer:ah,isFormData:gh,isArrayBufferView:ch,isString:fh,isNumber:cf,isBoolean:dh,isObject:Ko,isPlainObject:br,isReadableStream:Sh,isRequest:Eh,isResponse:kh,isHeaders:Ch,isUndefined:hr,isDate:ph,isFile:hh,isBlob:mh,isRegExp:Ih,isFunction:Ne,isStream:vh,isURLSearchParams:wh,isTypedArray:Lh,isFileList:yh,forEach:Sr,merge:wi,extend:_h,trim:xh,stripBOM:Rh,inherits:Th,toFlatObject:Ph,kindOf:Wo,kindOfTest:Ke,endsWith:Nh,toArray:Oh,forEachEntry:zh,matchAll:Dh,isHTMLForm:Ah,hasOwnProperty:Au,hasOwnProp:Au,reduceDescriptors:pf,freezeMethods:jh,toObjectSet:Mh,toCamelCase:Fh,noop:Uh,toFiniteNumber:Bh,findKey:ff,global:Ut,isContextDefined:df,ALPHABET:hf,generateString:Hh,isSpecCompliantForm:$h,toJSONObject:Vh,isAsyncFn:Wh,isThenable:Qh,setImmediate:mf,asap:Kh};function L(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}v.inherits(L,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:v.toJSONObject(this.config),code:this.code,status:this.status}}});const yf=L.prototype,vf={};["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=>{vf[e]={value:e}});Object.defineProperties(L,vf);Object.defineProperty(yf,"isAxiosError",{value:!0});L.from=(e,t,n,r,o,l)=>{const i=Object.create(yf);return v.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),L.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const Gh=null;function Si(e){return v.isPlainObject(e)||v.isArray(e)}function gf(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Iu(e,t,n){return e?e.concat(t).map(function(o,l){return o=gf(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Jh(e){return v.isArray(e)&&!e.some(Si)}const qh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Go(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!v.isUndefined(w[g])});const r=n.metaTokens,o=n.visitor||f,l=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new L("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,g,w){let d=y;if(y&&!w&&typeof y=="object"){if(v.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Jh(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(d=v.toArray(y)))return g=gf(g),d.forEach(function(p,E){!(v.isUndefined(p)||p===null)&&t.append(i===!0?Iu([g],E,l):i===null?g:g+"[]",a(p))}),!1}return Si(y)?!0:(t.append(Iu(w,g,l),a(y)),!1)}const h=[],m=Object.assign(qh,{defaultVisitor:f,convertValue:a,isVisitable:Si});function S(y,g){if(!v.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),v.forEach(y,function(d,c){(!(v.isUndefined(d)||d===null)&&o.call(t,d,v.isString(c)?c.trim():c,g,m))===!0&&S(d,g?g.concat(c):[c])}),h.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return S(e),t}function ju(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Es(e,t){this._pairs=[],e&&Go(e,this,t)}const wf=Es.prototype;wf.append=function(t,n){this._pairs.push([t,n])};wf.toString=function(t){const n=t?function(r){return t.call(this,r,ju)}:ju;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Xh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sf(e,t,n){if(!t)return e;const r=n&&n.encode||Xh,o=n&&n.serialize;let l;if(o?l=o(t,n):l=v.isURLSearchParams(t)?t.toString():new Es(t,n).toString(r),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Mu{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){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yh=typeof URLSearchParams<"u"?URLSearchParams:Es,Zh=typeof FormData<"u"?FormData:null,bh=typeof Blob<"u"?Blob:null,em={isBrowser:!0,classes:{URLSearchParams:Yh,FormData:Zh,Blob:bh},protocols:["http","https","file","blob","url","data"]},ks=typeof window<"u"&&typeof document<"u",Ei=typeof navigator=="object"&&navigator||void 0,tm=ks&&(!Ei||["ReactNative","NativeScript","NS"].indexOf(Ei.product)<0),nm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rm=ks&&window.location.href||"http://localhost",om=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ks,hasStandardBrowserEnv:tm,hasStandardBrowserWebWorkerEnv:nm,navigator:Ei,origin:rm},Symbol.toStringTag,{value:"Module"})),Ee={...om,...em};function lm(e,t){return Go(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,l){return Ee.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function im(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sm(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r=n.length;return i=!i&&v.isArray(o)?o.length:i,u?(v.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!s):((!o[i]||!v.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],l)&&v.isArray(o[i])&&(o[i]=sm(o[i])),!s)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,o)=>{t(im(r),o,n,0)}),n}return null}function um(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Er={transitional:Ef,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=v.isObject(t);if(l&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o?JSON.stringify(kf(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lm(t,this.formSerializer).toString();if((s=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Go(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),um(t)):t}],transformResponse:[function(t){const n=this.transitional||Er.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?L.from(s,L.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:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Er.headers[e]={}});const am=v.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"]),cm=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&am[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uu=Symbol("internals");function jn(e){return e&&String(e).trim().toLowerCase()}function eo(e){return e===!1||e==null?e:v.isArray(e)?e.map(eo):String(e)}function fm(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 dm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cl(e,t,n,r,o){if(v.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function pm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hm(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,l,i){return this[r].call(this,t,o,l,i)},configurable:!0})})}class ke{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(s,u,a){const f=jn(u);if(!f)throw new Error("header name must be a non-empty string");const h=v.findKey(o,f);(!h||o[h]===void 0||a===!0||a===void 0&&o[h]!==!1)&&(o[h||u]=eo(s))}const i=(s,u)=>v.forEach(s,(a,f)=>l(a,f,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(v.isString(t)&&(t=t.trim())&&!dm(t))i(cm(t),n);else if(v.isHeaders(t))for(const[s,u]of t.entries())l(u,s,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=jn(t),t){const r=v.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return fm(o);if(v.isFunction(n))return n.call(this,o,r);if(v.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jn(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Cl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(i){if(i=jn(i),i){const s=v.findKey(r,i);s&&(!n||Cl(r,r[s],s,n))&&(delete r[s],o=!0)}}return v.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||Cl(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};return v.forEach(this,(o,l)=>{const i=v.findKey(r,l);if(i){n[i]=eo(o),delete n[l];return}const s=t?pm(l):String(l).trim();s!==l&&delete n[l],n[s]=eo(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Uu]=this[Uu]={accessors:{}}).accessors,o=this.prototype;function l(i){const s=jn(i);r[s]||(hm(o,i),r[s]=!0)}return v.isArray(t)?t.forEach(l):l(t),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});v.freezeMethods(ke);function xl(e,t){const n=this||Er,r=t||n,o=ke.from(r.headers);let l=r.data;return v.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function Cf(e){return!!(e&&e.__CANCEL__)}function Pn(e,t,n){L.call(this,e??"canceled",L.ERR_CANCELED,t,n),this.name="CanceledError"}v.inherits(Pn,L,{__CANCEL__:!0});function xf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ym(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[l];i||(i=a),n[o]=u,r[o]=a;let h=l,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),a-i{n=f,o=null,l&&(clearTimeout(l),l=null),e.apply(null,a)};return[(...a)=>{const f=Date.now(),h=f-n;h>=r?i(a,f):(o=a,l||(l=setTimeout(()=>{l=null,i(o)},r-h)))},()=>o&&i(o)]}const Ro=(e,t,n=3)=>{let r=0;const o=ym(50,250);return vm(l=>{const i=l.loaded,s=l.lengthComputable?l.total:void 0,u=i-r,a=o(u),f=i<=s;r=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},n)},Bu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hu=e=>(...t)=>v.asap(()=>e(...t)),gm=Ee.hasStandardBrowserEnv?function(){const t=Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent),n=document.createElement("a");let r;function o(l){let i=l;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=o(window.location.href),function(i){const s=v.isString(i)?o(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),wm=Ee.hasStandardBrowserEnv?{write(e,t,n,r,o,l){const i=[e+"="+encodeURIComponent(t)];v.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),v.isString(r)&&i.push("path="+r),v.isString(o)&&i.push("domain="+o),l===!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 Sm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _f(e,t){return e&&!Sm(t)?Em(e,t):t}const $u=e=>e instanceof ke?{...e}:e;function Jt(e,t){t=t||{};const n={};function r(a,f,h){return v.isPlainObject(a)&&v.isPlainObject(f)?v.merge.call({caseless:h},a,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function o(a,f,h){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a,h)}else return r(a,f,h)}function l(a,f){if(!v.isUndefined(f))return r(void 0,f)}function i(a,f){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,h){if(h in t)return r(a,f);if(h in e)return r(void 0,a)}const u={url:l,method:l,data:l,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:s,headers:(a,f)=>o($u(a),$u(f),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=u[f]||o,m=h(e[f],t[f],f);v.isUndefined(m)&&h!==s||(n[f]=m)}),n}const Rf=e=>{const t=Jt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:s}=t;t.headers=i=ke.from(i),t.url=Sf(_f(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(v.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[a,...f]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...f].join("; "))}}if(Ee.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(t)),r||r!==!1&&gm(t.url))){const a=o&&l&&wm.read(l);a&&i.set(o,a)}return t},km=typeof XMLHttpRequest<"u",Cm=km&&function(e){return new Promise(function(n,r){const o=Rf(e);let l=o.data;const i=ke.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=o,f,h,m,S,y;function g(){S&&S(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function d(){if(!w)return;const p=ke.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:p,config:e,request:w};xf(function(_){n(_),g()},function(_){r(_),g()},C),w=null}"onloadend"in w?w.onloadend=d:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(d)},w.onabort=function(){w&&(r(new L("Request aborted",L.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new L("Network Error",L.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||Ef;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new L(E,C.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,w)),w=null},l===void 0&&i.setContentType(null),"setRequestHeader"in w&&v.forEach(i.toJSON(),function(E,C){w.setRequestHeader(C,E)}),v.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),s&&s!=="json"&&(w.responseType=o.responseType),a&&([m,y]=Ro(a,!0),w.addEventListener("progress",m)),u&&w.upload&&([h,S]=Ro(u),w.upload.addEventListener("progress",h),w.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(f=p=>{w&&(r(!p||p.type?new Pn(null,e,w):p),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const c=mm(o.url);if(c&&Ee.protocols.indexOf(c)===-1){r(new L("Unsupported protocol "+c+":",L.ERR_BAD_REQUEST,e));return}w.send(l||null)})},xm=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const l=function(a){if(!o){o=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof L?f:new Pn(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,l(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>v.asap(s),u}},_m=function*(e,t){let n=e.byteLength;if(n{const o=Rm(e,t);let l=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await o.next();if(a){s(),u.close();return}let h=f.byteLength;if(n){let m=l+=h;n(m)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Jo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tf=Jo&&typeof ReadableStream=="function",Pm=Jo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nm=Tf&&Pf(()=>{let e=!1;const t=new Request(Ee.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wu=64*1024,ki=Tf&&Pf(()=>v.isReadableStream(new Response("").body)),To={stream:ki&&(e=>e.body)};Jo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!To[t]&&(To[t]=v.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,r)})})})(new Response);const Om=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(Ee.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await Pm(e)).byteLength},Lm=async(e,t)=>{const n=v.toFiniteNumber(e.getContentLength());return n??Om(t)},zm=Jo&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:l,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:f,withCredentials:h="same-origin",fetchOptions:m}=Rf(e);a=a?(a+"").toLowerCase():"text";let S=xm([o,l&&l.toAbortSignal()],i),y;const g=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let w;try{if(u&&Nm&&n!=="get"&&n!=="head"&&(w=await Lm(f,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(v.isFormData(r)&&(x=C.headers.get("content-type"))&&f.setContentType(x),C.body){const[_,P]=Bu(w,Ro(Hu(u)));r=Vu(C.body,Wu,_,P)}}v.isString(h)||(h=h?"include":"omit");const d="credentials"in Request.prototype;y=new Request(t,{...m,signal:S,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:d?h:void 0});let c=await fetch(y);const p=ki&&(a==="stream"||a==="response");if(ki&&(s||p&&g)){const C={};["status","statusText","headers"].forEach(j=>{C[j]=c[j]});const x=v.toFiniteNumber(c.headers.get("content-length")),[_,P]=s&&Bu(x,Ro(Hu(s),!0))||[];c=new Response(Vu(c.body,Wu,_,()=>{P&&P(),g&&g()}),C)}a=a||"text";let E=await To[v.findKey(To,a)||"text"](c,e);return!p&&g&&g(),await new Promise((C,x)=>{xf(C,x,{data:E,headers:ke.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:y})})}catch(d){throw g&&g(),d&&d.name==="TypeError"&&/fetch/i.test(d.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,e,y),{cause:d.cause||d}):L.from(d,d&&d.code,e,y)}}),Ci={http:Gh,xhr:Cm,fetch:zm};v.forEach(Ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qu=e=>`- ${e}`,Dm=e=>v.isFunction(e)||e===null||e===!1,Nf={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let l=0;l`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since : `+l.map(Qu).join(` `):" "+Qu(l[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ci};function _l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pn(null,e)}function Ku(e){return _l(e),e.headers=ke.from(e.headers),e.data=xl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nf.getAdapter(e.adapter||Er.adapter)(e).then(function(r){return _l(e),r.data=xl.call(e,e.transformResponse,r),r.headers=ke.from(r.headers),r},function(r){return Cf(r)||(_l(e),r&&r.response&&(r.response.data=xl.call(e,e.transformResponse,r.response),r.response.headers=ke.from(r.response.headers))),Promise.reject(r)})}const Of="1.7.7",Cs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gu={};Cs.transitional=function(t,n,r){function o(l,i){return"[Axios v"+Of+"] Transitional option '"+l+"'"+i+(r?". "+r:"")}return(l,i,s)=>{if(t===!1)throw new L(o(i," has been removed"+(n?" in "+n:"")),L.ERR_DEPRECATED);return n&&!Gu[i]&&(Gu[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,s):!0}};function Am(e,t,n){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const l=r[o],i=t[l];if(i){const s=e[l],u=s===void 0||i(s,l,e);if(u!==!0)throw new L("option "+l+" must be "+u,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+l,L.ERR_BAD_OPTION)}}const xi={assertOptions:Am,validators:Cs},ct=xi.validators;class $t{constructor(t){this.defaults=t,this.interceptors={request:new Mu,response:new Mu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:l}=n;r!==void 0&&xi.assertOptions(r,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),o!=null&&(g.isFunction(o)?n.paramsSerializer={serialize:o}:xi.assertOptions(o,{encode:ct.function,serialize:ct.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&g.merge(l.common,l[n.method]);l&&g.forEach(["delete","get","head","post","put","patch","common"],y=>{delete l[y]}),n.headers=ke.concat(i,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let f,h=0,m;if(!u){const y=[Ku.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),m=y.length,f=Promise.resolve(n);h{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(s=>{r.subscribe(s),l=s}).then(o);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,s){r.reason||(r.reason=new Pn(l,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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new xs(function(o){t=o}),cancel:t}}}function Fm(e){return function(n){return e.apply(null,n)}}function Im(e){return g.isObject(e)&&e.isAxiosError===!0}const _i={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(_i).forEach(([e,t])=>{_i[t]=e});function Lf(e){const t=new $t(e),n=uf($t.prototype.request,t);return g.extend(n,$t.prototype,t,{allOwnKeys:!0}),g.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lf(Jt(e,o))},n}const V=Lf(Er);V.Axios=$t;V.CanceledError=Pn;V.CancelToken=xs;V.isCancel=Cf;V.VERSION=Of;V.toFormData=Go;V.AxiosError=L;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=Fm;V.isAxiosError=Im;V.mergeConfig=Jt;V.AxiosHeaders=ke;V.formToJSON=e=>kf(g.isHTMLForm(e)?new FormData(e):e);V.getAdapter=Nf.getAdapter;V.HttpStatusCode=_i;V.default=V;var zf={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(u,a,f){this.fn=u,this.context=a,this.once=f||!1}function l(u,a,f,h,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var S=new o(f,h||u,m),y=n?n+a:a;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],S]:u._events[y].push(S):(u._events[y]=S,u._eventsCount++),u}function i(u,a){--u._eventsCount===0?u._events=new r:delete u._events[a]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var a=[],f,h;if(this._eventsCount===0)return a;for(h in f=this._events)t.call(f,h)&&a.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(f)):a},s.prototype.listeners=function(a){var f=n?n+a:a,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,S=h.length,y=new Array(S);m{this.close(),n.preventDefault(),n.returnValue=""});xe(this,"handlePageHide",n=>{n.persisted?this.close():this.close()});typeof window<"u"&&(window.addEventListener("beforeunload",this.handleBeforeUnload),window.addEventListener("pagehide",this.handlePageHide))}Initialize(n){this.apiKey=n.apiKey,this.faceID=n.faceID,this.handleSilence=n.handleSilence,typeof window<"u"?(this.videoRef=n.videoRef,this.audioRef=n.audioRef):console.warn("Running in Node.js environment. Some features may not be available.")}createPeerConnection(){const n={iceServers:[{urls:["stun:stun.l.google.com:19302"]}]};console.log("Server running: ",n.iceServers),this.pc=new window.RTCPeerConnection(n),this.pc&&this.setupPeerConnectionListeners()}setupPeerConnectionListeners(){this.pc&&(this.pc.addEventListener("icegatheringstatechange",()=>{var n;console.log("ICE gathering state changed: ",(n=this.pc)==null?void 0:n.iceGatheringState)}),this.pc.addEventListener("iceconnectionstatechange",()=>{var n;console.log("ICE connection state changed: ",(n=this.pc)==null?void 0:n.iceConnectionState)}),this.pc.addEventListener("signalingstatechange",()=>{var n;console.log("Signaling state changed: ",(n=this.pc)==null?void 0:n.signalingState)}),this.pc.addEventListener("track",n=>{var r,o;console.log("Track event: ",n.track.kind),n.track.kind==="video"&&((r=this.videoRef)!=null&&r.current)?this.videoRef.current.srcObject=n.streams[0]:n.track.kind==="audio"&&((o=this.audioRef)!=null&&o.current)&&(this.audioRef.current.srcObject=n.streams[0])}),this.pc.onicecandidate=n=>{var r;n.candidate===null?console.log(JSON.stringify((r=this.pc)==null?void 0:r.localDescription)):(console.log(n.candidate),this.candidateCount+=1)})}async start(){var r,o;await this.createPeerConnection();const n={ordered:!0};this.dc=this.pc.createDataChannel("chat",n),this.setupDataChannelListeners(),(r=this.pc)==null||r.addTransceiver("audio",{direction:"recvonly"}),(o=this.pc)==null||o.addTransceiver("video",{direction:"recvonly"}),await this.negotiate()}setupDataChannelListeners(){this.dc&&(this.dc.addEventListener("close",()=>{console.log("Data channel closed"),this.emit("disconnected"),this.stopDataChannelInterval()}),this.dc.addEventListener("open",async()=>{console.log("Data channel opened"),this.emit("connected"),await this.initializeSession(),this.startDataChannelInterval()}),this.dc.addEventListener("message",n=>{console.log("Received message: ",n.data),n.data.includes("START")&&this.emit("started"),n.data==="Session Intialization not done, Ignoring audio"&&this.emit("failed")}))}startDataChannelInterval(){this.stopDataChannelInterval(),this.dcInterval=setInterval(()=>{this.sendPingMessage()},1e3)}stopDataChannelInterval(){this.dcInterval&&(clearInterval(this.dcInterval),this.dcInterval=null)}sendPingMessage(){var n;if(console.log("Sending ping message"),this.dc&&this.dc.readyState==="open"){const r="ping "+Date.now();console.log("Sending: "+r);try{this.dc.send(r)}catch(o){console.error("Failed to send message:",o),this.stopDataChannelInterval()}}else console.warn("Data channel is not open. Current state:",(n=this.dc)==null?void 0:n.readyState),this.stopDataChannelInterval()}async initializeSession(){const n={faceId:this.faceID,isJPG:!1,apiKey:this.apiKey,syncAudio:!0,handleSilence:this.handleSilence};try{const o=await(await fetch("https://api.simli.ai/startAudioToVideoSession",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})).json();this.dc&&this.dc.readyState==="open"?this.dc.send(o.session_token):(this.emit("failed"),console.error("Data channel not open when trying to send session token"))}catch(r){this.emit("failed"),console.error("Failed to initialize session:",r)}}async negotiate(){if(!this.pc)throw new Error("PeerConnection not initialized");try{const n=await this.pc.createOffer();await this.pc.setLocalDescription(n),await this.waitForIceGathering();const r=this.pc.localDescription;if(!r)return;const l=await(await fetch("https://api.simli.ai/StartWebRTCSession",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sdp:r.sdp,type:r.type,video_transform:"none"})})).json();await this.pc.setRemoteDescription(new RTCSessionDescription(l))}catch(n){console.error("Negotiation failed:",n),this.emit("failed")}}async waitForIceGathering(){if(this.pc&&this.pc.iceGatheringState!=="complete")return new Promise(n=>{const r=()=>{var o,l;((o=this.pc)==null?void 0:o.iceGatheringState)==="complete"||this.candidateCount===this.prevCandidateCount?(console.log((l=this.pc)==null?void 0:l.iceGatheringState,this.candidateCount),n()):(this.prevCandidateCount=this.candidateCount,setTimeout(r,250))};r()})}sendAudioData(n){var r;if(this.dc&&this.dc.readyState==="open")try{this.dc.send(n)}catch(o){console.error("Failed to send audio data:",o)}else console.error("Data channel is not open. Current state:",(r=this.dc)==null?void 0:r.readyState)}close(){var n,r,o;this.emit("disconnected"),this.stopDataChannelInterval(),this.dc&&this.dc.close(),(n=this.pc)!=null&&n.getTransceivers&&this.pc.getTransceivers().forEach(l=>{l.stop&&l.stop()}),(r=this.pc)==null||r.getSenders().forEach(l=>{var i;(i=l.track)==null||i.stop()}),(o=this.pc)==null||o.close(),typeof window<"u"&&(window.removeEventListener("beforeunload",this.handleBeforeUnload),window.removeEventListener("pagehide",this.handlePageHide))}}const Bm="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",Hm="dlqhn6n14udwl4z3v66pn",$m="sk_db6b7ebae17ee002ca26b741b55ae505545f5235149999f4",Vm="https://thealliance.meme",Wm="13fbb3e1-4489-4199-ad57-91be4a2dd38b",Qm="21m00Tcm4TlvDq8ikWAM",_e=new Um,Km=()=>{const[e,t]=I.useState(""),[n,r]=I.useState(!1),[o,l]=I.useState(!1),[i,s]=I.useState(""),[u,a]=I.useState(""),[f,h]=I.useState(!1),[m,S]=I.useState(!1),y=I.useRef(null),v=I.useRef(null),w=I.useRef(null),d=I.useRef(null),c=I.useRef([]),p=I.useRef(null),E=I.useRef(null),C=I.useRef(null),x=I.useCallback(()=>{if(v.current&&w.current){const H={apiKey:Hm,faceID:Wm,handleSilence:!0,videoRef:v,audioRef:w};_e.Initialize(H),console.log("Simli Client initialized")}},[]);I.useEffect(()=>{x();const H=()=>{console.log("SimliClient is now connected!")},Y=()=>{console.log("SimliClient has disconnected!")},me=()=>{console.log("SimliClient has failed to connect!"),s("Failed to connect to Simli. Please try again.")},Ge=()=>{console.log("SimliClient has started!"),r(!1),l(!1)};return _e.on("connected",H),_e.on("disconnected",Y),_e.on("failed",me),_e.on("started",Ge),()=>{_e.off("connected",H),_e.off("disconnected",Y),_e.off("failed",me),_e.off("started",Ge),_e.close()}},[x]);const _=I.useCallback(()=>{_e.start(),h(!0),r(!0),l(!0),setTimeout(()=>{const H=new Uint8Array(6e3).fill(0);_e.sendAudioData(H)},4e3)},[]),P=I.useCallback(async H=>{r(!0),s(""),y.current&&y.current.cancel("Operation canceled by the user."),y.current=V.CancelToken.source();try{const Y=await V.post(Vm+"/ruby/message",{text:H},{cancelToken:y.current.token});console.log("chatGPTResponse",Y);const me=Y.data.text;if(!me||me.length===0){s("No response from chatGPT. Please try again.");return}a(me);const Ge=await V.post(`https://api.elevenlabs.io/v1/text-to-speech/${Qm}?output_format=pcm_16000`,{text:me,model_id:"eleven_multilingual_v1"},{headers:{"xi-api-key":$m,"Content-Type":"application/json"},responseType:"arraybuffer",cancelToken:y.current.token}),R=new Uint8Array(Ge.data),N=6e3;for(let O=0;O{m?(console.log("Stopping mic"),Ot()):(console.log("Starting mic"),Ce())},[m]),z=I.useCallback(async H=>{const Y=new FormData;Y.append("file",H,"audio.wav"),Y.append("model","whisper-1");try{const Ge=(await V.post("https://api.openai.com/v1/audio/transcriptions",Y,{headers:{Authorization:`Bearer ${Bm}`,"Content-Type":"multipart/form-data"}})).data.text;await P(Ge)}catch(me){console.error("Error transcribing audio:",me),s("Error transcribing audio. Please try again.")}},[P]),Ce=I.useCallback(()=>{S(!0),navigator.mediaDevices.getUserMedia({audio:!0}).then(H=>{p.current||(p.current=new(window.AudioContext||window.webkitAudioContext)),E.current||(E.current=p.current.createAnalyser(),E.current.fftSize=512),C.current&&C.current.disconnect(),C.current=p.current.createMediaStreamSource(H),C.current.connect(E.current),d.current=new MediaRecorder(H),d.current.ondataavailable=Y=>{console.log("Data available:",Y.data),c.current.push(Y.data)},d.current.onstop=()=>{console.log("Recorder stopped");const Y=new Blob(c.current,{type:"audio/wav"});z(Y),c.current=[]},d.current.start()}).catch(H=>{console.error("Error accessing microphone:",H),S(!1),s("Error accessing microphone. Please check your permissions and try again.")})},[z]),Ot=I.useCallback(()=>{d.current&&d.current.state!=="inactive"&&d.current.stop(),console.log("Stopping listening"),S(!1)},[]);I.useEffect(()=>{if(console.log("isListening",m),console.log("chunksRef.current",c.current),!m&&c.current.length>0){console.log("Sending audio to Whisper");const H=new Blob(c.current,{type:"audio/wav"});z(H),c.current=[]}},[m,z]);const Lt=I.useCallback(async H=>{H.preventDefault(),await P(e),t("")},[e,P]);return q.jsxs(q.Fragment,{children:[q.jsxs("div",{className:"flex h-screen w-full flex-col items-center justify-center font-mono text-white",children:[q.jsxs("div",{className:"relative size-full",children:[q.jsx("video",{ref:v,id:"simli_video",autoPlay:!0,playsInline:!0,className:"size-full object-cover"}),q.jsx("audio",{ref:w,id:"simli_audio",autoPlay:!0})]}),f&&!o?q.jsx(q.Fragment,{children:q.jsx("form",{onSubmit:Lt,className:"fixed bottom-4 mx-4 w-full max-w-md space-y-4 px-4",children:q.jsxs("div",{className:"flex w-full items-center space-x-2",children:[q.jsx("input",{type:"text",value:e,onChange:H=>t(H.target.value),placeholder:"Enter your message",className:"grow rounded border border-white bg-black px-3 py-2 text-white focus:outline-none focus:ring-2 focus:ring-white"}),q.jsx("button",{type:"submit",disabled:n||!e.trim(),className:"rounded bg-white px-3 py-1 text-3xl text-black transition-colors hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-black disabled:opacity-50",children:"➡️"}),q.jsx("button",{type:"button",onClick:j,className:"rounded bg-blue-500 px-3 py-1 text-2xl text-white transition-colors hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-black",children:m?"🔴":"🎤"})]})})}):q.jsxs(q.Fragment,{children:[o&&q.jsx("p",{className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:"Connecting..."}),!o&&q.jsx("button",{disabled:o,onClick:_,className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded bg-white px-4 py-2 text-black transition-colors hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-black",children:"Start"})]}),i&&q.jsx("p",{className:"fixed bottom-20 mt-4 text-center text-red-500",children:i})]}),q.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundImage:"url(./bg.jpg)",backgroundSize:"cover",backgroundPosition:"center",zIndex:-1e3}})]})};Rl.createRoot(document.getElementById("root")).render(q.jsx(Xf.StrictMode,{children:q.jsx(Km,{})})); +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:l}=n;r!==void 0&&xi.assertOptions(r,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),o!=null&&(v.isFunction(o)?n.paramsSerializer={serialize:o}:xi.assertOptions(o,{encode:ct.function,serialize:ct.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&v.merge(l.common,l[n.method]);l&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete l[y]}),n.headers=ke.concat(i,l);const s=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,s.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(!u){const y=[Ku.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),m=y.length,f=Promise.resolve(n);h{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(s=>{r.subscribe(s),l=s}).then(o);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,s){r.reason||(r.reason=new Pn(l,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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new xs(function(o){t=o}),cancel:t}}}function Fm(e){return function(n){return e.apply(null,n)}}function Im(e){return v.isObject(e)&&e.isAxiosError===!0}const _i={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(_i).forEach(([e,t])=>{_i[t]=e});function Lf(e){const t=new $t(e),n=uf($t.prototype.request,t);return v.extend(n,$t.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lf(Jt(e,o))},n}const V=Lf(Er);V.Axios=$t;V.CanceledError=Pn;V.CancelToken=xs;V.isCancel=Cf;V.VERSION=Of;V.toFormData=Go;V.AxiosError=L;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=Fm;V.isAxiosError=Im;V.mergeConfig=Jt;V.AxiosHeaders=ke;V.formToJSON=e=>kf(v.isHTMLForm(e)?new FormData(e):e);V.getAdapter=Nf.getAdapter;V.HttpStatusCode=_i;V.default=V;var zf={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(u,a,f){this.fn=u,this.context=a,this.once=f||!1}function l(u,a,f,h,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var S=new o(f,h||u,m),y=n?n+a:a;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],S]:u._events[y].push(S):(u._events[y]=S,u._eventsCount++),u}function i(u,a){--u._eventsCount===0?u._events=new r:delete u._events[a]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var a=[],f,h;if(this._eventsCount===0)return a;for(h in f=this._events)t.call(f,h)&&a.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(f)):a},s.prototype.listeners=function(a){var f=n?n+a:a,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,S=h.length,y=new Array(S);m{this.close(),n.preventDefault(),n.returnValue=""});xe(this,"handlePageHide",n=>{n.persisted?this.close():this.close()});typeof window<"u"&&(window.addEventListener("beforeunload",this.handleBeforeUnload),window.addEventListener("pagehide",this.handlePageHide))}Initialize(n){this.apiKey=n.apiKey,this.faceID=n.faceID,this.handleSilence=n.handleSilence,typeof window<"u"?(this.videoRef=n.videoRef,this.audioRef=n.audioRef):console.warn("Running in Node.js environment. Some features may not be available.")}createPeerConnection(){const n={iceServers:[{urls:["stun:stun.l.google.com:19302"]}]};this.pc=new window.RTCPeerConnection(n),this.pc&&this.setupPeerConnectionListeners()}setupPeerConnectionListeners(){this.pc&&(this.pc.addEventListener("icegatheringstatechange",()=>{var n;console.log("ICE gathering state changed: ",(n=this.pc)==null?void 0:n.iceGatheringState)}),this.pc.addEventListener("iceconnectionstatechange",()=>{var n;console.log("ICE connection state changed: ",(n=this.pc)==null?void 0:n.iceConnectionState)}),this.pc.addEventListener("signalingstatechange",()=>{var n;console.log("Signaling state changed: ",(n=this.pc)==null?void 0:n.signalingState)}),this.pc.addEventListener("track",n=>{var r,o;n.track.kind==="video"&&((r=this.videoRef)!=null&&r.current)?this.videoRef.current.srcObject=n.streams[0]:n.track.kind==="audio"&&((o=this.audioRef)!=null&&o.current)&&(this.audioRef.current.srcObject=n.streams[0])}),this.pc.onicecandidate=n=>{var r;n.candidate===null?console.log(JSON.stringify((r=this.pc)==null?void 0:r.localDescription)):(console.log(n.candidate),this.candidateCount+=1)})}async start(){var r,o;await this.createPeerConnection();const n={ordered:!0};this.dc=this.pc.createDataChannel("chat",n),this.setupDataChannelListeners(),(r=this.pc)==null||r.addTransceiver("audio",{direction:"recvonly"}),(o=this.pc)==null||o.addTransceiver("video",{direction:"recvonly"}),await this.negotiate()}setupDataChannelListeners(){this.dc&&(this.dc.addEventListener("close",()=>{console.log("Data channel closed"),this.emit("disconnected"),this.stopDataChannelInterval()}),this.dc.addEventListener("open",async()=>{console.log("Data channel opened"),this.emit("connected"),await this.initializeSession(),this.startDataChannelInterval()}),this.dc.addEventListener("message",n=>{n.data.includes("START")&&this.emit("started"),n.data==="Session Intialization not done, Ignoring audio"&&this.emit("failed")}))}startDataChannelInterval(){this.stopDataChannelInterval(),this.dcInterval=setInterval(()=>{this.sendPingMessage()},1e3)}stopDataChannelInterval(){this.dcInterval&&(clearInterval(this.dcInterval),this.dcInterval=null)}sendPingMessage(){var n;if(this.dc&&this.dc.readyState==="open"){const r="ping "+Date.now();try{this.dc.send(r)}catch(o){console.error("Failed to send message:",o),this.stopDataChannelInterval()}}else console.warn("Data channel is not open. Current state:",(n=this.dc)==null?void 0:n.readyState),this.stopDataChannelInterval()}async initializeSession(){const n={faceId:this.faceID,isJPG:!1,apiKey:this.apiKey,syncAudio:!0,handleSilence:this.handleSilence};try{const o=await(await fetch("https://api.simli.ai/startAudioToVideoSession",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})).json();this.dc&&this.dc.readyState==="open"?this.dc.send(o.session_token):(this.emit("failed"),console.error("Data channel not open when trying to send session token"))}catch(r){this.emit("failed"),console.error("Failed to initialize session:",r)}}async negotiate(){if(!this.pc)throw new Error("PeerConnection not initialized");try{const n=await this.pc.createOffer();await this.pc.setLocalDescription(n),await this.waitForIceGathering();const r=this.pc.localDescription;if(!r)return;const l=await(await fetch("https://api.simli.ai/StartWebRTCSession",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sdp:r.sdp,type:r.type,video_transform:"none"})})).json();await this.pc.setRemoteDescription(new RTCSessionDescription(l))}catch(n){console.error("Negotiation failed:",n),this.emit("failed")}}async waitForIceGathering(){if(this.pc&&this.pc.iceGatheringState!=="complete")return new Promise(n=>{const r=()=>{var o;((o=this.pc)==null?void 0:o.iceGatheringState)==="complete"||this.candidateCount===this.prevCandidateCount?n():(this.prevCandidateCount=this.candidateCount,setTimeout(r,250))};r()})}sendAudioData(n){var r;if(this.dc&&this.dc.readyState==="open")try{this.dc.send(n)}catch(o){console.error("Failed to send audio data:",o)}else console.error("Data channel is not open. Current state:",(r=this.dc)==null?void 0:r.readyState)}close(){var n,r,o;this.emit("disconnected"),this.stopDataChannelInterval(),this.dc&&this.dc.close(),(n=this.pc)!=null&&n.getTransceivers&&this.pc.getTransceivers().forEach(l=>{l.stop&&l.stop()}),(r=this.pc)==null||r.getSenders().forEach(l=>{var i;(i=l.track)==null||i.stop()}),(o=this.pc)==null||o.close(),typeof window<"u"&&(window.removeEventListener("beforeunload",this.handleBeforeUnload),window.removeEventListener("pagehide",this.handlePageHide))}}const Bm="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",Hm="dlqhn6n14udwl4z3v66pn",$m="sk_db6b7ebae17ee002ca26b741b55ae505545f5235149999f4",Vm="https://thealliance.meme",Wm="13fbb3e1-4489-4199-ad57-91be4a2dd38b",Qm="21m00Tcm4TlvDq8ikWAM",_e=new Um,Km=()=>{const[e,t]=I.useState(""),[n,r]=I.useState(!1),[o,l]=I.useState(!1),[i,s]=I.useState(""),[u,a]=I.useState(""),[f,h]=I.useState(!1),[m,S]=I.useState(!1),y=I.useRef(null),g=I.useRef(null),w=I.useRef(null),d=I.useRef(null),c=I.useRef([]),p=I.useRef(null),E=I.useRef(null),C=I.useRef(null),x=I.useCallback(()=>{if(g.current&&w.current){const H={apiKey:Hm,faceID:Wm,handleSilence:!0,videoRef:g,audioRef:w};_e.Initialize(H),console.log("Simli Client initialized")}},[]);I.useEffect(()=>{x();const H=()=>{console.log("SimliClient is now connected!")},J=()=>{console.log("SimliClient has disconnected!")},me=()=>{console.log("SimliClient has failed to connect!"),s("Failed to connect to Simli. Please try again.")},Ge=()=>{console.log("SimliClient has started!"),r(!1),l(!1)};return _e.on("connected",H),_e.on("disconnected",J),_e.on("failed",me),_e.on("started",Ge),()=>{_e.off("connected",H),_e.off("disconnected",J),_e.off("failed",me),_e.off("started",Ge),_e.close()}},[x]);const _=I.useCallback(()=>{_e.start(),h(!0),r(!0),l(!0),setTimeout(()=>{const H=new Uint8Array(6e3).fill(0);_e.sendAudioData(H)},4e3)},[]),P=I.useCallback(async H=>{r(!0),s(""),y.current&&y.current.cancel("Operation canceled by the user."),y.current=V.CancelToken.source();try{console.log("sending input to chatgpt");const J=await V.post(Vm+"/ruby/message",{text:H},{cancelToken:y.current.token});console.log("chatGPTResponse",J);const me=J.data.text;if(!me||me.length===0){s("No response from chatGPT. Please try again.");return}a(me);const Ge=await V.post(`https://api.elevenlabs.io/v1/text-to-speech/${Qm}?output_format=pcm_16000`,{text:me,model_id:"eleven_multilingual_v1"},{headers:{"xi-api-key":$m,"Content-Type":"application/json"},responseType:"arraybuffer",cancelToken:y.current.token}),R=new Uint8Array(Ge.data),N=6e3;for(let O=0;O{m?(console.log("Stopping mic"),Ot()):(console.log("Starting mic"),Ce())},[m]),z=I.useCallback(async H=>{const J=new FormData;J.append("file",H,"audio.wav"),J.append("model","whisper-1");try{const Ge=(await V.post("https://api.openai.com/v1/audio/transcriptions",J,{headers:{Authorization:`Bearer ${Bm}`,"Content-Type":"multipart/form-data"}})).data.text;await P(Ge)}catch(me){console.error("Error transcribing audio:",me),s("Error transcribing audio. Please try again.")}},[P]),Ce=I.useCallback(()=>{S(!0),navigator.mediaDevices.getUserMedia({audio:!0}).then(H=>{p.current||(p.current=new(window.AudioContext||window.webkitAudioContext)),E.current||(E.current=p.current.createAnalyser(),E.current.fftSize=512),C.current&&C.current.disconnect(),C.current=p.current.createMediaStreamSource(H),C.current.connect(E.current),d.current=new MediaRecorder(H),d.current.ondataavailable=J=>{console.log("Data available:",J.data),c.current.push(J.data)},d.current.onstop=()=>{console.log("Recorder stopped");const J=new Blob(c.current,{type:"audio/wav"});z(J),c.current=[]},d.current.start()}).catch(H=>{console.error("Error accessing microphone:",H),S(!1),s("Error accessing microphone. Please check your permissions and try again.")})},[z]),Ot=I.useCallback(()=>{d.current&&d.current.state!=="inactive"&&d.current.stop(),console.log("Stopping listening"),S(!1)},[]);I.useEffect(()=>{if(console.log("isListening",m),console.log("chunksRef.current",c.current),!m&&c.current.length>0){console.log("Sending audio to Whisper");const H=new Blob(c.current,{type:"audio/wav"});z(H),c.current=[]}},[m,z]);const Lt=I.useCallback(async H=>{H.preventDefault();const J=e.trim();t(""),await P(J)},[e,P]);return X.jsxs(X.Fragment,{children:[X.jsxs("div",{className:"flex h-screen w-full flex-col items-center justify-center font-mono text-white",children:[X.jsxs("div",{className:"relative size-full",children:[X.jsx("video",{ref:g,id:"simli_video",autoPlay:!0,playsInline:!0,className:"size-full object-cover"}),X.jsx("audio",{ref:w,id:"simli_audio",autoPlay:!0})]}),f&&!o?X.jsx(X.Fragment,{children:X.jsx("form",{onSubmit:Lt,className:"fixed bottom-4 mx-4 w-full max-w-md space-y-4 px-4",children:X.jsxs("div",{className:"flex w-full items-center space-x-2",children:[X.jsx("input",{type:"text",value:e,onChange:H=>t(H.target.value),placeholder:"Enter your message",className:"grow rounded border border-white bg-black px-3 py-2 text-white focus:outline-none focus:ring-2 focus:ring-white"}),X.jsx("button",{type:"submit",disabled:n||!e.trim(),className:"rounded bg-white px-3 py-1 text-3xl text-black transition-colors hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-black disabled:opacity-50",children:"➡️"}),X.jsx("button",{type:"button",onClick:j,className:"rounded bg-blue-500 px-3 py-1 text-2xl text-white transition-colors hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-black",children:m?"🔴":"🎤"})]})})}):X.jsxs(X.Fragment,{children:[o&&X.jsx("p",{className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:"Connecting..."}),!o&&X.jsx("button",{disabled:o,onClick:_,className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded bg-white px-4 py-2 text-black transition-colors hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-black",children:"Start"})]}),i&&X.jsx("p",{className:"fixed bottom-20 mt-4 text-center text-red-500",children:i})]}),X.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundImage:"url(./bg.jpg)",backgroundSize:"cover",backgroundPosition:"center",zIndex:-1e3}})]})};Rl.createRoot(document.getElementById("root")).render(X.jsx(Xf.StrictMode,{children:X.jsx(Km,{})})); diff --git a/index.html b/index.html index a322ca4..5b5155d 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Ruby Live Demo - +