diff --git a/common/common.h b/common/common.h index 5b3f9b86d..639771c75 100644 --- a/common/common.h +++ b/common/common.h @@ -253,7 +253,7 @@ struct gpt_params { bool use_jinja = false; // NOLINT std::string system_prompt = ""; bool enable_chat_template = true; - common_reasoning_format reasoning_format = COMMON_REASONING_FORMAT_NONE; + common_reasoning_format reasoning_format = COMMON_REASONING_FORMAT_AUTO; int reasoning_budget = -1; bool prefill_assistant = true; diff --git a/examples/server/public/index.html.gz b/examples/server/public/index.html.gz index 9f88ca2a2..a16575606 100644 Binary files a/examples/server/public/index.html.gz and b/examples/server/public/index.html.gz differ diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 06ba38ee9..95e409119 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -173,6 +173,7 @@ struct server_task_result { std::vector tokens; bool stream; + bool include_usage; std::string prompt; //slot_params generation_params; @@ -500,22 +501,22 @@ struct server_task_result { {"model", oaicompat_model}, {"object", "chat.completion.chunk"}, }); - - // OpenAI API spec for chat.completion.chunks specifies an empty `choices` array for the last chunk when including usage - // https://platform.openai.com/docs/api-reference/chat_streaming/streaming#chat_streaming/streaming-choices - deltas.push_back({ - {"choices", json::array()}, - {"created", t}, - {"id", oaicompat_cmpl_id}, - {"model", oaicompat_model}, - {"object", "chat.completion.chunk"}, - {"usage", json { - {"completion_tokens", n_decoded}, - {"prompt_tokens", n_prompt_tokens}, - {"total_tokens", n_decoded + n_prompt_tokens}, - }}, - }); - + if (include_usage) { + // OpenAI API spec for chat.completion.chunks specifies an empty `choices` array for the last chunk when including usage + // https://platform.openai.com/docs/api-reference/chat_streaming/streaming#chat_streaming/streaming-choices + deltas.push_back({ + {"choices", json::array()}, + {"created", t}, + {"id", oaicompat_cmpl_id}, + {"model", oaicompat_model}, + {"object", "chat.completion.chunk"}, + {"usage", json { + {"completion_tokens", n_decoded}, + {"prompt_tokens", n_prompt_tokens}, + {"total_tokens", n_decoded + n_prompt_tokens}, + }}, + }); + } if (timings.prompt_n >= 0) { deltas.back().push_back({ "timings", timings.to_json() }); } @@ -547,6 +548,7 @@ struct server_task_multi { struct slot_params { bool stream = true; + bool include_usage = false; bool cache_prompt = true; // remember the prompt to avoid reprocessing all prompt int32_t n_keep = 0; // number of tokens to keep from initial prompt @@ -1359,7 +1361,7 @@ struct server_context { // thinking is enabled if: // 1. It's not explicitly disabled (reasoning_budget == 0) // 2. The chat template supports it - const bool enable_thinking = params.reasoning_budget != 0 && common_chat_templates_support_enable_thinking(chat_templates.get()); + const bool enable_thinking = params.use_jinja && params.reasoning_budget != 0 && common_chat_templates_support_enable_thinking(chat_templates.get()); //LLAMA_LOG_INFO("Enable thinking? %d\n", enable_thinking); oai_parser_opt = { @@ -1514,6 +1516,8 @@ struct server_context { } slot.params.timings_per_token = json_value(data, "timings_per_token", false); slot.params.stream = json_value(data, "stream", false); + auto stream_opt = json_value(data, "stream_options", json::object()); + slot.params.include_usage = json_value(stream_opt, "include_usage", false); slot.params.cache_prompt = json_value(data, "cache_prompt", true); slot.params.n_predict = json_value(data, "n_predict", json_value(data, "max_tokens", default_params.n_predict)); slot.sparams.top_k = json_value(data, "top_k", default_sparams.top_k); @@ -2206,6 +2210,7 @@ struct server_context { res.error = false; res.stop = true; // to do: set value res.stream = slot.params.stream; + res.include_usage = slot.params.include_usage; res.content = slot.generated_text; res.oaicompat = slot.params.oaicompat; res.oaicompat_model = slot.params.oaicompat_model; diff --git a/examples/server/webui/dist/index.html b/examples/server/webui/dist/index.html index b65376174..fb2cd5479 100644 --- a/examples/server/webui/dist/index.html +++ b/examples/server/webui/dist/index.html @@ -16,7 +16,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var w1;function L5(){if(w1)return bn;w1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function w(ee){return ee===null||typeof ee!="object"?null:(ee=g&&ee[g]||ee["@@iterator"],typeof ee=="function"?ee:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,T={};function D(ee,Te,H){this.props=ee,this.context=Te,this.refs=T,this.updater=H||b}D.prototype.isReactComponent={},D.prototype.setState=function(ee,Te){if(typeof ee!="object"&&typeof ee!="function"&&ee!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ee,Te,"setState")},D.prototype.forceUpdate=function(ee){this.updater.enqueueForceUpdate(this,ee,"forceUpdate")};function R(){}R.prototype=D.prototype;function F(ee,Te,H){this.props=ee,this.context=Te,this.refs=T,this.updater=H||b}var U=F.prototype=new R;U.constructor=F,_(U,D.prototype),U.isPureReactComponent=!0;var le=Array.isArray,ie=Object.prototype.hasOwnProperty,V={current:null},ve={key:!0,ref:!0,__self:!0,__source:!0};function Ee(ee,Te,H){var Ve,yt={},bt=null,pe=null;if(Te!=null)for(Ve in Te.ref!==void 0&&(pe=Te.ref),Te.key!==void 0&&(bt=""+Te.key),Te)ie.call(Te,Ve)&&!ve.hasOwnProperty(Ve)&&(yt[Ve]=Te[Ve]);var xe=arguments.length-2;if(xe===1)yt.children=H;else if(1>>1,Te=Me[ee];if(0>>1;eea(yt,L))bta(pe,yt)?(Me[ee]=pe,Me[bt]=L,ee=bt):(Me[ee]=yt,Me[Ve]=L,ee=Ve);else if(bta(pe,L))Me[ee]=pe,Me[bt]=L,ee=bt;else break e}}return Ke}function a(Me,Ke){var L=Me.sortIndex-Ke.sortIndex;return L!==0?L:Me.id-Ke.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],d=[],m=1,g=null,w=3,b=!1,_=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(Me){for(var Ke=n(d);Ke!==null;){if(Ke.callback===null)r(d);else if(Ke.startTime<=Me)r(d),Ke.sortIndex=Ke.expirationTime,t(f,Ke);else break;Ke=n(d)}}function le(Me){if(T=!1,U(Me),!_)if(n(f)!==null)_=!0,et(ie);else{var Ke=n(d);Ke!==null&&ft(le,Ke.startTime-Me)}}function ie(Me,Ke){_=!1,T&&(T=!1,R(Ee),Ee=-1),b=!0;var L=w;try{for(U(Ke),g=n(f);g!==null&&(!(g.expirationTime>Ke)||Me&&!ne());){var ee=g.callback;if(typeof ee=="function"){g.callback=null,w=g.priorityLevel;var Te=ee(g.expirationTime<=Ke);Ke=e.unstable_now(),typeof Te=="function"?g.callback=Te:g===n(f)&&r(f),U(Ke)}else r(f);g=n(f)}if(g!==null)var H=!0;else{var Ve=n(d);Ve!==null&&ft(le,Ve.startTime-Ke),H=!1}return H}finally{g=null,w=L,b=!1}}var V=!1,ve=null,Ee=-1,K=5,C=-1;function ne(){return!(e.unstable_now()-CMe||125ee?(Me.sortIndex=L,t(d,Me),n(f)===null&&Me===n(d)&&(T?(R(Ee),Ee=-1):T=!0,ft(le,L-ee))):(Me.sortIndex=Te,t(f,Me),_||b||(_=!0,et(ie))),Me},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(Me){var Ke=w;return function(){var L=w;w=Ke;try{return Me.apply(this,arguments)}finally{w=L}}}}(bd)),bd}var _1;function j5(){return _1||(_1=1,vd.exports=U5()),vd.exports}/** + */var S1;function U5(){return S1||(S1=1,function(e){function t(Re,Ke){var L=Re.length;Re.push(Ke);e:for(;0>>1,Te=Re[ee];if(0>>1;eea(yt,L))wta(we,yt)?(Re[ee]=we,Re[wt]=L,ee=wt):(Re[ee]=yt,Re[Ve]=L,ee=Ve);else if(wta(we,L))Re[ee]=we,Re[wt]=L,ee=wt;else break e}}return Ke}function a(Re,Ke){var L=Re.sortIndex-Ke.sortIndex;return L!==0?L:Re.id-Ke.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],d=[],m=1,g=null,w=3,b=!1,_=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(Re){for(var Ke=n(d);Ke!==null;){if(Ke.callback===null)r(d);else if(Ke.startTime<=Re)r(d),Ke.sortIndex=Ke.expirationTime,t(f,Ke);else break;Ke=n(d)}}function oe(Re){if(T=!1,U(Re),!_)if(n(f)!==null)_=!0,et(ie);else{var Ke=n(d);Ke!==null&&ft(oe,Ke.startTime-Re)}}function ie(Re,Ke){_=!1,T&&(T=!1,R(Ee),Ee=-1),b=!0;var L=w;try{for(U(Ke),g=n(f);g!==null&&(!(g.expirationTime>Ke)||Re&&!ne());){var ee=g.callback;if(typeof ee=="function"){g.callback=null,w=g.priorityLevel;var Te=ee(g.expirationTime<=Ke);Ke=e.unstable_now(),typeof Te=="function"?g.callback=Te:g===n(f)&&r(f),U(Ke)}else r(f);g=n(f)}if(g!==null)var H=!0;else{var Ve=n(d);Ve!==null&&ft(oe,Ve.startTime-Ke),H=!1}return H}finally{g=null,w=L,b=!1}}var V=!1,ye=null,Ee=-1,K=5,C=-1;function ne(){return!(e.unstable_now()-CRe||125ee?(Re.sortIndex=L,t(d,Re),n(f)===null&&Re===n(d)&&(T?(R(Ee),Ee=-1):T=!0,ft(oe,L-ee))):(Re.sortIndex=Te,t(f,Re),_||b||(_=!0,et(ie))),Re},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(Re){var Ke=w;return function(){var L=w;w=Ke;try{return Re.apply(this,arguments)}finally{w=L}}}}(bd)),bd}var _1;function j5(){return _1||(_1=1,vd.exports=U5()),vd.exports}/** * @license React * react-dom.production.min.js * @@ -40,14 +40,14 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var N1;function $5(){if(N1)return hi;N1=1;var e=jh(),t=j5();function n(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,u=1;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},g={};function w(i){return f.call(g,i)?!0:f.call(m,i)?!1:d.test(i)?g[i]=!0:(m[i]=!0,!1)}function b(i,o,u,p){if(u!==null&&u.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return p?!1:u!==null?!u.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function _(i,o,u,p){if(o===null||typeof o>"u"||b(i,o,u,p))return!0;if(p)return!1;if(u!==null)switch(u.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function T(i,o,u,p,v,E,I){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=p,this.attributeNamespace=v,this.mustUseProperty=u,this.propertyName=i,this.type=o,this.sanitizeURL=E,this.removeEmptyString=I}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){D[i]=new T(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];D[o]=new T(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){D[i]=new T(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){D[i]=new T(i,2,!1,i,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(i){D[i]=new T(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){D[i]=new T(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){D[i]=new T(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){D[i]=new T(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){D[i]=new T(i,5,!1,i.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function F(i){return i[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(i){var o=i.replace(R,F);D[o]=new T(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(R,F);D[o]=new T(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(R,F);D[o]=new T(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){D[i]=new T(i,1,!1,i.toLowerCase(),null,!1,!1)}),D.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){D[i]=new T(i,1,!1,i.toLowerCase(),null,!0,!0)});function U(i,o,u,p){var v=D.hasOwnProperty(o)?D[o]:null;(v!==null?v.type!==0:p||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},g={};function w(i){return f.call(g,i)?!0:f.call(m,i)?!1:d.test(i)?g[i]=!0:(m[i]=!0,!1)}function b(i,o,u,p){if(u!==null&&u.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return p?!1:u!==null?!u.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function _(i,o,u,p){if(o===null||typeof o>"u"||b(i,o,u,p))return!0;if(p)return!1;if(u!==null)switch(u.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function T(i,o,u,p,v,E,I){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=p,this.attributeNamespace=v,this.mustUseProperty=u,this.propertyName=i,this.type=o,this.sanitizeURL=E,this.removeEmptyString=I}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){D[i]=new T(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];D[o]=new T(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){D[i]=new T(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){D[i]=new T(i,2,!1,i,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(i){D[i]=new T(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){D[i]=new T(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){D[i]=new T(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){D[i]=new T(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){D[i]=new T(i,5,!1,i.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function F(i){return i[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(i){var o=i.replace(R,F);D[o]=new T(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(R,F);D[o]=new T(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(R,F);D[o]=new T(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){D[i]=new T(i,1,!1,i.toLowerCase(),null,!1,!1)}),D.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){D[i]=new T(i,1,!1,i.toLowerCase(),null,!0,!0)});function U(i,o,u,p){var v=D.hasOwnProperty(o)?D[o]:null;(v!==null?v.type!==0:p||!(2X||v[I]!==E[X]){var ae=` -`+v[I].replace(" at new "," at ");return i.displayName&&ae.includes("")&&(ae=ae.replace("",i.displayName)),ae}while(1<=I&&0<=X);break}}}finally{H=!1,Error.prepareStackTrace=u}return(i=i?i.displayName||i.name:"")?Te(i):""}function yt(i){switch(i.tag){case 5:return Te(i.type);case 16:return Te("Lazy");case 13:return Te("Suspense");case 19:return Te("SuspenseList");case 0:case 2:case 15:return i=Ve(i.type,!1),i;case 11:return i=Ve(i.type.render,!1),i;case 1:return i=Ve(i.type,!0),i;default:return""}}function bt(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ve:return"Fragment";case V:return"Portal";case K:return"Profiler";case Ee:return"StrictMode";case De:return"Suspense";case Se:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case ne:return(i.displayName||"Context")+".Consumer";case C:return(i._context.displayName||"Context")+".Provider";case G:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Ne:return o=i.displayName||null,o!==null?o:bt(i.type)||"Memo";case et:o=i._payload,i=i._init;try{return bt(i(o))}catch{}}return null}function pe(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bt(o);case 8:return o===Ee?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function xe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function oe(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function ze(i){var o=oe(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),p=""+i[o];if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var v=u.get,E=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return v.call(this)},set:function(I){p=""+I,E.call(this,I)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return p},setValue:function(I){p=""+I},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Ge(i){i._valueTracker||(i._valueTracker=ze(i))}function kt(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),p="";return i&&(p=oe(i)?i.checked?"true":"false":i.value),i=p,i!==u?(o.setValue(i),!0):!1}function Ht(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function qt(i,o){var u=o.checked;return L({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??i._wrapperState.initialChecked})}function _t(i,o){var u=o.defaultValue==null?"":o.defaultValue,p=o.checked!=null?o.checked:o.defaultChecked;u=xe(o.value!=null?o.value:u),i._wrapperState={initialChecked:p,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function $t(i,o){o=o.checked,o!=null&&U(i,"checked",o,!1)}function _n(i,o){$t(i,o);var u=xe(o.value),p=o.type;if(u!=null)p==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=""+u):i.value!==""+u&&(i.value=""+u);else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?In(i,o.type,u):o.hasOwnProperty("defaultValue")&&In(i,o.type,xe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function Nn(i,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var p=o.type;if(!(p!=="submit"&&p!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,u||o===i.value||(i.value=o),i.defaultValue=o}u=i.name,u!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,u!==""&&(i.name=u)}function In(i,o,u){(o!=="number"||Ht(i.ownerDocument)!==i)&&(u==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+u&&(i.defaultValue=""+u))}var Bn=Array.isArray;function On(i,o,u,p){if(i=i.options,o){o={};for(var v=0;v"+o.valueOf().toString()+"",o=St.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function z(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var O={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},$=["Webkit","ms","Moz","O"];Object.keys(O).forEach(function(i){$.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),O[o]=O[i]})});function re(i,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||O.hasOwnProperty(i)&&O[i]?(""+o).trim():o+"px"}function me(i,o){i=i.style;for(var u in o)if(o.hasOwnProperty(u)){var p=u.indexOf("--")===0,v=re(u,o[u],p);u==="float"&&(u="cssFloat"),p?i.setProperty(u,v):i[u]=v}}var Je=L({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 Re(i,o){if(o){if(Je[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Nt(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){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 rt=null;function zt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var He=null,Qt=null,dn=null;function nn(i){if(i=Bs(i)){if(typeof He!="function")throw Error(n(280));var o=i.stateNode;o&&(o=Ju(o),He(i.stateNode,i.type,o))}}function W(i){Qt?dn?dn.push(i):dn=[i]:Qt=i}function Pe(){if(Qt){var i=Qt,o=dn;if(dn=Qt=null,nn(i),o)for(i=0;i>>=0,i===0?32:31-(yi(i)/Ma|0)|0}var mn=64,vi=4194304;function ai(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function oi(i,o){var u=i.pendingLanes;if(u===0)return 0;var p=0,v=i.suspendedLanes,E=i.pingedLanes,I=u&268435455;if(I!==0){var X=I&~v;X!==0?p=ai(X):(E&=I,E!==0&&(p=ai(E)))}else I=u&~v,I!==0?p=ai(I):E!==0&&(p=ai(E));if(p===0)return 0;if(o!==0&&o!==p&&!(o&v)&&(v=p&-p,E=o&-o,v>=E||v===16&&(E&4194240)!==0))return o;if(p&4&&(p|=u&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=p;0u;u++)o.push(i);return o}function Yi(i,o,u){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-Ut(o),i[o]=u}function Mr(i,o){var u=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var p=i.eventTimes;for(i=i.expirationTimes;0=po),Vu=" ",Gu=!1;function ol(i,o){switch(i){case"keyup":return qu.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Li(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ln=!1;function ql(i,o){switch(i){case"compositionend":return Li(o);case"keypress":return o.which!==32?null:(Gu=!0,Vu);case"textInput":return i=o.data,i===Vu&&Gu?null:i;default:return null}}function li(i,o){if(Ln)return i==="compositionend"||!al&&ol(i,o)?(i=Pl(),fo=Ns=pa=null,Ln=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:u,offset:o-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ue(u)}}function we(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?we(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function he(){for(var i=window,o=Ht();o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=Ht(i.document)}return o}function Ae(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function Be(i){var o=he(),u=i.focusedElem,p=i.selectionRange;if(o!==u&&u&&u.ownerDocument&&we(u.ownerDocument.documentElement,u)){if(p!==null&&Ae(u)){if(o=p.start,i=p.end,i===void 0&&(i=o),"selectionStart"in u)u.selectionStart=o,u.selectionEnd=Math.min(i,u.value.length);else if(i=(o=u.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var v=u.textContent.length,E=Math.min(p.start,v);p=p.end===void 0?E:Math.min(p.end,v),!i.extend&&E>p&&(v=p,p=E,E=v),v=ge(u,E);var I=ge(u,p);v&&I&&(i.rangeCount!==1||i.anchorNode!==v.node||i.anchorOffset!==v.offset||i.focusNode!==I.node||i.focusOffset!==I.offset)&&(o=o.createRange(),o.setStart(v.node,v.offset),i.removeAllRanges(),E>p?(i.addRange(o),i.extend(I.node,I.offset)):(o.setEnd(I.node,I.offset),i.addRange(o)))}}for(o=[],i=u;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u=document.documentMode,je=null,it=null,gt=null,at=!1;function dt(i,o,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;at||je==null||je!==Ht(p)||(p=je,"selectionStart"in p&&Ae(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),gt&&be(gt,p)||(gt=p,p=Xu(it,"onSelect"),0Wl||(i.current=ff[Wl],ff[Wl]=null,Wl--)}function qn(i,o){Wl++,ff[Wl]=i.current,i.current=o}var vo={},Kr=yo(vo),si=yo(!1),cl=vo;function Yl(i,o){var u=i.type.contextTypes;if(!u)return vo;var p=i.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===o)return p.__reactInternalMemoizedMaskedChildContext;var v={},E;for(E in u)v[E]=o[E];return p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=v),v}function ui(i){return i=i.childContextTypes,i!=null}function ec(){Wn(si),Wn(Kr)}function Up(i,o,u){if(Kr.current!==vo)throw Error(n(168));qn(Kr,o),qn(si,u)}function jp(i,o,u){var p=i.stateNode;if(o=o.childContextTypes,typeof p.getChildContext!="function")return u;p=p.getChildContext();for(var v in p)if(!(v in o))throw Error(n(108,pe(i)||"Unknown",v));return L({},u,p)}function tc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||vo,cl=Kr.current,qn(Kr,i),qn(si,si.current),!0}function $p(i,o,u){var p=i.stateNode;if(!p)throw Error(n(169));u?(i=jp(i,o,cl),p.__reactInternalMemoizedMergedChildContext=i,Wn(si),Wn(Kr),qn(Kr,i)):Wn(si),qn(si,u)}var ja=null,nc=!1,df=!1;function qp(i){ja===null?ja=[i]:ja.push(i)}function Qv(i){nc=!0,qp(i)}function bo(){if(!df&&ja!==null){df=!0;var i=0,o=Sn;try{var u=ja;for(Sn=1;i>=I,v-=I,$a=1<<32-Ut(o)+v|u<tn?(Pr=Gt,Gt=null):Pr=Gt.sibling;var An=Xe(_e,Gt,Oe[tn],pt);if(An===null){Gt===null&&(Gt=Pr);break}i&&Gt&&An.alternate===null&&o(_e,Gt),de=E(An,de,tn),Vt===null?Ft=An:Vt.sibling=An,Vt=An,Gt=Pr}if(tn===Oe.length)return u(_e,Gt),Jn&&dl(_e,tn),Ft;if(Gt===null){for(;tntn?(Pr=Gt,Gt=null):Pr=Gt.sibling;var Co=Xe(_e,Gt,An.value,pt);if(Co===null){Gt===null&&(Gt=Pr);break}i&&Gt&&Co.alternate===null&&o(_e,Gt),de=E(Co,de,tn),Vt===null?Ft=Co:Vt.sibling=Co,Vt=Co,Gt=Pr}if(An.done)return u(_e,Gt),Jn&&dl(_e,tn),Ft;if(Gt===null){for(;!An.done;tn++,An=Oe.next())An=tt(_e,An.value,pt),An!==null&&(de=E(An,de,tn),Vt===null?Ft=An:Vt.sibling=An,Vt=An);return Jn&&dl(_e,tn),Ft}for(Gt=p(_e,Gt);!An.done;tn++,An=Oe.next())An=At(Gt,_e,tn,An.value,pt),An!==null&&(i&&An.alternate!==null&&Gt.delete(An.key===null?tn:An.key),de=E(An,de,tn),Vt===null?Ft=An:Vt.sibling=An,Vt=An);return i&&Gt.forEach(function(R5){return o(_e,R5)}),Jn&&dl(_e,tn),Ft}function yr(_e,de,Oe,pt){if(typeof Oe=="object"&&Oe!==null&&Oe.type===ve&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case ie:e:{for(var Ft=Oe.key,Vt=de;Vt!==null;){if(Vt.key===Ft){if(Ft=Oe.type,Ft===ve){if(Vt.tag===7){u(_e,Vt.sibling),de=v(Vt,Oe.props.children),de.return=_e,_e=de;break e}}else if(Vt.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===et&&Yp(Ft)===Vt.type){u(_e,Vt.sibling),de=v(Vt,Oe.props),de.ref=Fs(_e,Vt,Oe),de.return=_e,_e=de;break e}u(_e,Vt);break}else o(_e,Vt);Vt=Vt.sibling}Oe.type===ve?(de=wl(Oe.props.children,_e.mode,pt,Oe.key),de.return=_e,_e=de):(pt=Oc(Oe.type,Oe.key,Oe.props,null,_e.mode,pt),pt.ref=Fs(_e,de,Oe),pt.return=_e,_e=pt)}return I(_e);case V:e:{for(Vt=Oe.key;de!==null;){if(de.key===Vt)if(de.tag===4&&de.stateNode.containerInfo===Oe.containerInfo&&de.stateNode.implementation===Oe.implementation){u(_e,de.sibling),de=v(de,Oe.children||[]),de.return=_e,_e=de;break e}else{u(_e,de);break}else o(_e,de);de=de.sibling}de=ud(Oe,_e.mode,pt),de.return=_e,_e=de}return I(_e);case et:return Vt=Oe._init,yr(_e,de,Vt(Oe._payload),pt)}if(Bn(Oe))return Lt(_e,de,Oe,pt);if(Ke(Oe))return Bt(_e,de,Oe,pt);oc(_e,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"?(Oe=""+Oe,de!==null&&de.tag===6?(u(_e,de.sibling),de=v(de,Oe),de.return=_e,_e=de):(u(_e,de),de=sd(Oe,_e.mode,pt),de.return=_e,_e=de),I(_e)):u(_e,de)}return yr}var Jl=Xp(!0),Zp=Xp(!1),lc=yo(null),sc=null,es=null,vf=null;function bf(){vf=es=sc=null}function wf(i){var o=lc.current;Wn(lc),i._currentValue=o}function xf(i,o,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,p!==null&&(p.childLanes|=o)):p!==null&&(p.childLanes&o)!==o&&(p.childLanes|=o),i===u)break;i=i.return}}function ts(i,o){sc=i,vf=es=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&o&&(ci=!0),i.firstContext=null)}function Fi(i){var o=i._currentValue;if(vf!==i)if(i={context:i,memoizedValue:o,next:null},es===null){if(sc===null)throw Error(n(308));es=i,sc.dependencies={lanes:0,firstContext:i}}else es=es.next=i;return o}var hl=null;function kf(i){hl===null?hl=[i]:hl.push(i)}function Qp(i,o,u,p){var v=o.interleaved;return v===null?(u.next=u,kf(o)):(u.next=v.next,v.next=u),o.interleaved=u,Ha(i,p)}function Ha(i,o){i.lanes|=o;var u=i.alternate;for(u!==null&&(u.lanes|=o),u=i,i=i.return;i!==null;)i.childLanes|=o,u=i.alternate,u!==null&&(u.childLanes|=o),u=i,i=i.return;return u.tag===3?u.stateNode:null}var wo=!1;function Ef(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jp(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ka(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function xo(i,o,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,Tn&2){var v=p.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),p.pending=o,Ha(i,u)}return v=p.interleaved,v===null?(o.next=o,kf(p)):(o.next=v.next,v.next=o),p.interleaved=o,Ha(i,u)}function uc(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194240)!==0)){var p=o.lanes;p&=i.pendingLanes,u|=p,o.lanes=u,lo(i,u)}}function em(i,o){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var v=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var I={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};E===null?v=E=I:E=E.next=I,u=u.next}while(u!==null);E===null?v=E=o:E=E.next=o}else v=E=o;u={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:p.shared,effects:p.effects},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}function cc(i,o,u,p){var v=i.updateQueue;wo=!1;var E=v.firstBaseUpdate,I=v.lastBaseUpdate,X=v.shared.pending;if(X!==null){v.shared.pending=null;var ae=X,Le=ae.next;ae.next=null,I===null?E=Le:I.next=Le,I=ae;var Qe=i.alternate;Qe!==null&&(Qe=Qe.updateQueue,X=Qe.lastBaseUpdate,X!==I&&(X===null?Qe.firstBaseUpdate=Le:X.next=Le,Qe.lastBaseUpdate=ae))}if(E!==null){var tt=v.baseState;I=0,Qe=Le=ae=null,X=E;do{var Xe=X.lane,At=X.eventTime;if((p&Xe)===Xe){Qe!==null&&(Qe=Qe.next={eventTime:At,lane:0,tag:X.tag,payload:X.payload,callback:X.callback,next:null});e:{var Lt=i,Bt=X;switch(Xe=o,At=u,Bt.tag){case 1:if(Lt=Bt.payload,typeof Lt=="function"){tt=Lt.call(At,tt,Xe);break e}tt=Lt;break e;case 3:Lt.flags=Lt.flags&-65537|128;case 0:if(Lt=Bt.payload,Xe=typeof Lt=="function"?Lt.call(At,tt,Xe):Lt,Xe==null)break e;tt=L({},tt,Xe);break e;case 2:wo=!0}}X.callback!==null&&X.lane!==0&&(i.flags|=64,Xe=v.effects,Xe===null?v.effects=[X]:Xe.push(X))}else At={eventTime:At,lane:Xe,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Qe===null?(Le=Qe=At,ae=tt):Qe=Qe.next=At,I|=Xe;if(X=X.next,X===null){if(X=v.shared.pending,X===null)break;Xe=X,X=Xe.next,Xe.next=null,v.lastBaseUpdate=Xe,v.shared.pending=null}}while(!0);if(Qe===null&&(ae=tt),v.baseState=ae,v.firstBaseUpdate=Le,v.lastBaseUpdate=Qe,o=v.shared.interleaved,o!==null){v=o;do I|=v.lane,v=v.next;while(v!==o)}else E===null&&(v.shared.lanes=0);gl|=I,i.lanes=I,i.memoizedState=tt}}function tm(i,o,u){if(i=o.effects,o.effects=null,i!==null)for(o=0;ou?u:4,i(!0);var p=Cf.transition;Cf.transition={};try{i(!1),o()}finally{Sn=u,Cf.transition=p}}function wm(){return Ui().memoizedState}function n5(i,o,u){var p=_o(i);if(u={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null},xm(i))km(o,u);else if(u=Qp(i,o,u,p),u!==null){var v=Jr();ta(u,i,p,v),Em(u,o,p)}}function r5(i,o,u){var p=_o(i),v={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null};if(xm(i))km(o,v);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=o.lastRenderedReducer,E!==null))try{var I=o.lastRenderedState,X=E(I,u);if(v.hasEagerState=!0,v.eagerState=X,te(X,I)){var ae=o.interleaved;ae===null?(v.next=v,kf(o)):(v.next=ae.next,ae.next=v),o.interleaved=v;return}}catch{}finally{}u=Qp(i,o,v,p),u!==null&&(v=Jr(),ta(u,i,p,v),Em(u,o,p))}}function xm(i){var o=i.alternate;return i===or||o!==null&&o===or}function km(i,o){qs=hc=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function Em(i,o,u){if(u&4194240){var p=o.lanes;p&=i.pendingLanes,u|=p,o.lanes=u,lo(i,u)}}var gc={readContext:Fi,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},i5={readContext:Fi,useCallback:function(i,o){return va().memoizedState=[i,o===void 0?null:o],i},useContext:Fi,useEffect:dm,useImperativeHandle:function(i,o,u){return u=u!=null?u.concat([i]):null,pc(4194308,4,mm.bind(null,o,i),u)},useLayoutEffect:function(i,o){return pc(4194308,4,i,o)},useInsertionEffect:function(i,o){return pc(4,2,i,o)},useMemo:function(i,o){var u=va();return o=o===void 0?null:o,i=i(),u.memoizedState=[i,o],i},useReducer:function(i,o,u){var p=va();return o=u!==void 0?u(o):o,p.memoizedState=p.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},p.queue=i,i=i.dispatch=n5.bind(null,or,i),[p.memoizedState,i]},useRef:function(i){var o=va();return i={current:i},o.memoizedState=i},useState:cm,useDebugValue:Pf,useDeferredValue:function(i){return va().memoizedState=i},useTransition:function(){var i=cm(!1),o=i[0];return i=t5.bind(null,i[1]),va().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,u){var p=or,v=va();if(Jn){if(u===void 0)throw Error(n(407));u=u()}else{if(u=o(),Dr===null)throw Error(n(349));ml&30||am(p,o,u)}v.memoizedState=u;var E={value:u,getSnapshot:o};return v.queue=E,dm(lm.bind(null,p,E,i),[i]),p.flags|=2048,Vs(9,om.bind(null,p,E,u,o),void 0,null),u},useId:function(){var i=va(),o=Dr.identifierPrefix;if(Jn){var u=qa,p=$a;u=(p&~(1<<32-Ut(p)-1)).toString(32)+u,o=":"+o+"R"+u,u=Hs++,0")&&(ae=ae.replace("",i.displayName)),ae}while(1<=I&&0<=X);break}}}finally{H=!1,Error.prepareStackTrace=u}return(i=i?i.displayName||i.name:"")?Te(i):""}function yt(i){switch(i.tag){case 5:return Te(i.type);case 16:return Te("Lazy");case 13:return Te("Suspense");case 19:return Te("SuspenseList");case 0:case 2:case 15:return i=Ve(i.type,!1),i;case 11:return i=Ve(i.type.render,!1),i;case 1:return i=Ve(i.type,!0),i;default:return""}}function wt(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ye:return"Fragment";case V:return"Portal";case K:return"Profiler";case Ee:return"StrictMode";case Pe:return"Suspense";case Se:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case ne:return(i.displayName||"Context")+".Consumer";case C:return(i._context.displayName||"Context")+".Provider";case G:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case _e:return o=i.displayName||null,o!==null?o:wt(i.type)||"Memo";case et:o=i._payload,i=i._init;try{return wt(i(o))}catch{}}return null}function we(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wt(o);case 8:return o===Ee?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function xe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function le(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ce(i){var o=le(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),p=""+i[o];if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var v=u.get,E=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return v.call(this)},set:function(I){p=""+I,E.call(this,I)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return p},setValue:function(I){p=""+I},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Ze(i){i._valueTracker||(i._valueTracker=Ce(i))}function Et(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),p="";return i&&(p=le(i)?i.checked?"true":"false":i.value),i=p,i!==u?(o.setValue(i),!0):!1}function qt(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Ht(i,o){var u=o.checked;return L({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??i._wrapperState.initialChecked})}function vt(i,o){var u=o.defaultValue==null?"":o.defaultValue,p=o.checked!=null?o.checked:o.defaultChecked;u=xe(o.value!=null?o.value:u),i._wrapperState={initialChecked:p,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ft(i,o){o=o.checked,o!=null&&U(i,"checked",o,!1)}function xn(i,o){Ft(i,o);var u=xe(o.value),p=o.type;if(u!=null)p==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=""+u):i.value!==""+u&&(i.value=""+u);else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?_n(i,o.type,u):o.hasOwnProperty("defaultValue")&&_n(i,o.type,xe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function kn(i,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var p=o.type;if(!(p!=="submit"&&p!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,u||o===i.value||(i.value=o),i.defaultValue=o}u=i.name,u!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,u!==""&&(i.name=u)}function _n(i,o,u){(o!=="number"||qt(i.ownerDocument)!==i)&&(u==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+u&&(i.defaultValue=""+u))}var Bn=Array.isArray;function Mn(i,o,u,p){if(i=i.options,o){o={};for(var v=0;v"+o.valueOf().toString()+"",o=_t.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function z(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var O={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},$=["Webkit","ms","Moz","O"];Object.keys(O).forEach(function(i){$.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),O[o]=O[i]})});function re(i,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||O.hasOwnProperty(i)&&O[i]?(""+o).trim():o+"px"}function pe(i,o){i=i.style;for(var u in o)if(o.hasOwnProperty(u)){var p=u.indexOf("--")===0,v=re(u,o[u],p);u==="float"&&(u="cssFloat"),p?i.setProperty(u,v):i[u]=v}}var Je=L({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 Ie(i,o){if(o){if(Je[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Nt(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){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 rt=null;function zt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var He=null,Qt=null,dn=null;function nn(i){if(i=Bs(i)){if(typeof He!="function")throw Error(n(280));var o=i.stateNode;o&&(o=Ju(o),He(i.stateNode,i.type,o))}}function W(i){Qt?dn?dn.push(i):dn=[i]:Qt=i}function Le(){if(Qt){var i=Qt,o=dn;if(dn=Qt=null,nn(i),o)for(i=0;i>>=0,i===0?32:31-(yi(i)/Ma|0)|0}var mn=64,vi=4194304;function ai(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function oi(i,o){var u=i.pendingLanes;if(u===0)return 0;var p=0,v=i.suspendedLanes,E=i.pingedLanes,I=u&268435455;if(I!==0){var X=I&~v;X!==0?p=ai(X):(E&=I,E!==0&&(p=ai(E)))}else I=u&~v,I!==0?p=ai(I):E!==0&&(p=ai(E));if(p===0)return 0;if(o!==0&&o!==p&&!(o&v)&&(v=p&-p,E=o&-o,v>=E||v===16&&(E&4194240)!==0))return o;if(p&4&&(p|=u&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=p;0u;u++)o.push(i);return o}function Yi(i,o,u){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-jt(o),i[o]=u}function Mr(i,o){var u=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var p=i.eventTimes;for(i=i.expirationTimes;0=po),Vu=" ",Gu=!1;function ol(i,o){switch(i){case"keyup":return qu.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Li(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ln=!1;function ql(i,o){switch(i){case"compositionend":return Li(o);case"keypress":return o.which!==32?null:(Gu=!0,Vu);case"textInput":return i=o.data,i===Vu&&Gu?null:i;default:return null}}function li(i,o){if(Ln)return i==="compositionend"||!al&&ol(i,o)?(i=Pl(),fo=Ns=pa=null,Ln=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:u,offset:o-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ue(u)}}function be(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?be(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function he(){for(var i=window,o=qt();o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=qt(i.document)}return o}function Oe(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function Be(i){var o=he(),u=i.focusedElem,p=i.selectionRange;if(o!==u&&u&&u.ownerDocument&&be(u.ownerDocument.documentElement,u)){if(p!==null&&Oe(u)){if(o=p.start,i=p.end,i===void 0&&(i=o),"selectionStart"in u)u.selectionStart=o,u.selectionEnd=Math.min(i,u.value.length);else if(i=(o=u.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var v=u.textContent.length,E=Math.min(p.start,v);p=p.end===void 0?E:Math.min(p.end,v),!i.extend&&E>p&&(v=p,p=E,E=v),v=me(u,E);var I=me(u,p);v&&I&&(i.rangeCount!==1||i.anchorNode!==v.node||i.anchorOffset!==v.offset||i.focusNode!==I.node||i.focusOffset!==I.offset)&&(o=o.createRange(),o.setStart(v.node,v.offset),i.removeAllRanges(),E>p?(i.addRange(o),i.extend(I.node,I.offset)):(o.setEnd(I.node,I.offset),i.addRange(o)))}}for(o=[],i=u;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u=document.documentMode,je=null,it=null,gt=null,at=!1;function dt(i,o,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;at||je==null||je!==qt(p)||(p=je,"selectionStart"in p&&Oe(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),gt&&ve(gt,p)||(gt=p,p=Xu(it,"onSelect"),0Wl||(i.current=ff[Wl],ff[Wl]=null,Wl--)}function qn(i,o){Wl++,ff[Wl]=i.current,i.current=o}var vo={},Kr=yo(vo),si=yo(!1),cl=vo;function Yl(i,o){var u=i.type.contextTypes;if(!u)return vo;var p=i.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===o)return p.__reactInternalMemoizedMaskedChildContext;var v={},E;for(E in u)v[E]=o[E];return p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=v),v}function ui(i){return i=i.childContextTypes,i!=null}function ec(){Wn(si),Wn(Kr)}function Up(i,o,u){if(Kr.current!==vo)throw Error(n(168));qn(Kr,o),qn(si,u)}function jp(i,o,u){var p=i.stateNode;if(o=o.childContextTypes,typeof p.getChildContext!="function")return u;p=p.getChildContext();for(var v in p)if(!(v in o))throw Error(n(108,we(i)||"Unknown",v));return L({},u,p)}function tc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||vo,cl=Kr.current,qn(Kr,i),qn(si,si.current),!0}function $p(i,o,u){var p=i.stateNode;if(!p)throw Error(n(169));u?(i=jp(i,o,cl),p.__reactInternalMemoizedMergedChildContext=i,Wn(si),Wn(Kr),qn(Kr,i)):Wn(si),qn(si,u)}var ja=null,nc=!1,df=!1;function qp(i){ja===null?ja=[i]:ja.push(i)}function Qv(i){nc=!0,qp(i)}function bo(){if(!df&&ja!==null){df=!0;var i=0,o=Tn;try{var u=ja;for(Tn=1;i>=I,v-=I,$a=1<<32-jt(o)+v|u<tn?(Pr=Gt,Gt=null):Pr=Gt.sibling;var On=Ye(Ne,Gt,Me[tn],pt);if(On===null){Gt===null&&(Gt=Pr);break}i&&Gt&&On.alternate===null&&o(Ne,Gt),de=E(On,de,tn),Vt===null?Ut=On:Vt.sibling=On,Vt=On,Gt=Pr}if(tn===Me.length)return u(Ne,Gt),Jn&&dl(Ne,tn),Ut;if(Gt===null){for(;tntn?(Pr=Gt,Gt=null):Pr=Gt.sibling;var Co=Ye(Ne,Gt,On.value,pt);if(Co===null){Gt===null&&(Gt=Pr);break}i&&Gt&&Co.alternate===null&&o(Ne,Gt),de=E(Co,de,tn),Vt===null?Ut=Co:Vt.sibling=Co,Vt=Co,Gt=Pr}if(On.done)return u(Ne,Gt),Jn&&dl(Ne,tn),Ut;if(Gt===null){for(;!On.done;tn++,On=Me.next())On=tt(Ne,On.value,pt),On!==null&&(de=E(On,de,tn),Vt===null?Ut=On:Vt.sibling=On,Vt=On);return Jn&&dl(Ne,tn),Ut}for(Gt=p(Ne,Gt);!On.done;tn++,On=Me.next())On=At(Gt,Ne,tn,On.value,pt),On!==null&&(i&&On.alternate!==null&&Gt.delete(On.key===null?tn:On.key),de=E(On,de,tn),Vt===null?Ut=On:Vt.sibling=On,Vt=On);return i&&Gt.forEach(function(R5){return o(Ne,R5)}),Jn&&dl(Ne,tn),Ut}function yr(Ne,de,Me,pt){if(typeof Me=="object"&&Me!==null&&Me.type===ye&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case ie:e:{for(var Ut=Me.key,Vt=de;Vt!==null;){if(Vt.key===Ut){if(Ut=Me.type,Ut===ye){if(Vt.tag===7){u(Ne,Vt.sibling),de=v(Vt,Me.props.children),de.return=Ne,Ne=de;break e}}else if(Vt.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===et&&Yp(Ut)===Vt.type){u(Ne,Vt.sibling),de=v(Vt,Me.props),de.ref=Fs(Ne,Vt,Me),de.return=Ne,Ne=de;break e}u(Ne,Vt);break}else o(Ne,Vt);Vt=Vt.sibling}Me.type===ye?(de=wl(Me.props.children,Ne.mode,pt,Me.key),de.return=Ne,Ne=de):(pt=Oc(Me.type,Me.key,Me.props,null,Ne.mode,pt),pt.ref=Fs(Ne,de,Me),pt.return=Ne,Ne=pt)}return I(Ne);case V:e:{for(Vt=Me.key;de!==null;){if(de.key===Vt)if(de.tag===4&&de.stateNode.containerInfo===Me.containerInfo&&de.stateNode.implementation===Me.implementation){u(Ne,de.sibling),de=v(de,Me.children||[]),de.return=Ne,Ne=de;break e}else{u(Ne,de);break}else o(Ne,de);de=de.sibling}de=ud(Me,Ne.mode,pt),de.return=Ne,Ne=de}return I(Ne);case et:return Vt=Me._init,yr(Ne,de,Vt(Me._payload),pt)}if(Bn(Me))return Lt(Ne,de,Me,pt);if(Ke(Me))return Bt(Ne,de,Me,pt);oc(Ne,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,de!==null&&de.tag===6?(u(Ne,de.sibling),de=v(de,Me),de.return=Ne,Ne=de):(u(Ne,de),de=sd(Me,Ne.mode,pt),de.return=Ne,Ne=de),I(Ne)):u(Ne,de)}return yr}var Jl=Xp(!0),Zp=Xp(!1),lc=yo(null),sc=null,es=null,vf=null;function bf(){vf=es=sc=null}function wf(i){var o=lc.current;Wn(lc),i._currentValue=o}function xf(i,o,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,p!==null&&(p.childLanes|=o)):p!==null&&(p.childLanes&o)!==o&&(p.childLanes|=o),i===u)break;i=i.return}}function ts(i,o){sc=i,vf=es=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&o&&(ci=!0),i.firstContext=null)}function Fi(i){var o=i._currentValue;if(vf!==i)if(i={context:i,memoizedValue:o,next:null},es===null){if(sc===null)throw Error(n(308));es=i,sc.dependencies={lanes:0,firstContext:i}}else es=es.next=i;return o}var hl=null;function kf(i){hl===null?hl=[i]:hl.push(i)}function Qp(i,o,u,p){var v=o.interleaved;return v===null?(u.next=u,kf(o)):(u.next=v.next,v.next=u),o.interleaved=u,Ha(i,p)}function Ha(i,o){i.lanes|=o;var u=i.alternate;for(u!==null&&(u.lanes|=o),u=i,i=i.return;i!==null;)i.childLanes|=o,u=i.alternate,u!==null&&(u.childLanes|=o),u=i,i=i.return;return u.tag===3?u.stateNode:null}var wo=!1;function Ef(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jp(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ka(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function xo(i,o,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,Cn&2){var v=p.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),p.pending=o,Ha(i,u)}return v=p.interleaved,v===null?(o.next=o,kf(p)):(o.next=v.next,v.next=o),p.interleaved=o,Ha(i,u)}function uc(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194240)!==0)){var p=o.lanes;p&=i.pendingLanes,u|=p,o.lanes=u,lo(i,u)}}function em(i,o){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var v=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var I={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};E===null?v=E=I:E=E.next=I,u=u.next}while(u!==null);E===null?v=E=o:E=E.next=o}else v=E=o;u={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:p.shared,effects:p.effects},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}function cc(i,o,u,p){var v=i.updateQueue;wo=!1;var E=v.firstBaseUpdate,I=v.lastBaseUpdate,X=v.shared.pending;if(X!==null){v.shared.pending=null;var ae=X,ze=ae.next;ae.next=null,I===null?E=ze:I.next=ze,I=ae;var Qe=i.alternate;Qe!==null&&(Qe=Qe.updateQueue,X=Qe.lastBaseUpdate,X!==I&&(X===null?Qe.firstBaseUpdate=ze:X.next=ze,Qe.lastBaseUpdate=ae))}if(E!==null){var tt=v.baseState;I=0,Qe=ze=ae=null,X=E;do{var Ye=X.lane,At=X.eventTime;if((p&Ye)===Ye){Qe!==null&&(Qe=Qe.next={eventTime:At,lane:0,tag:X.tag,payload:X.payload,callback:X.callback,next:null});e:{var Lt=i,Bt=X;switch(Ye=o,At=u,Bt.tag){case 1:if(Lt=Bt.payload,typeof Lt=="function"){tt=Lt.call(At,tt,Ye);break e}tt=Lt;break e;case 3:Lt.flags=Lt.flags&-65537|128;case 0:if(Lt=Bt.payload,Ye=typeof Lt=="function"?Lt.call(At,tt,Ye):Lt,Ye==null)break e;tt=L({},tt,Ye);break e;case 2:wo=!0}}X.callback!==null&&X.lane!==0&&(i.flags|=64,Ye=v.effects,Ye===null?v.effects=[X]:Ye.push(X))}else At={eventTime:At,lane:Ye,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Qe===null?(ze=Qe=At,ae=tt):Qe=Qe.next=At,I|=Ye;if(X=X.next,X===null){if(X=v.shared.pending,X===null)break;Ye=X,X=Ye.next,Ye.next=null,v.lastBaseUpdate=Ye,v.shared.pending=null}}while(!0);if(Qe===null&&(ae=tt),v.baseState=ae,v.firstBaseUpdate=ze,v.lastBaseUpdate=Qe,o=v.shared.interleaved,o!==null){v=o;do I|=v.lane,v=v.next;while(v!==o)}else E===null&&(v.shared.lanes=0);gl|=I,i.lanes=I,i.memoizedState=tt}}function tm(i,o,u){if(i=o.effects,o.effects=null,i!==null)for(o=0;ou?u:4,i(!0);var p=Cf.transition;Cf.transition={};try{i(!1),o()}finally{Tn=u,Cf.transition=p}}function wm(){return Ui().memoizedState}function n5(i,o,u){var p=_o(i);if(u={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null},xm(i))km(o,u);else if(u=Qp(i,o,u,p),u!==null){var v=Jr();ta(u,i,p,v),Em(u,o,p)}}function r5(i,o,u){var p=_o(i),v={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null};if(xm(i))km(o,v);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=o.lastRenderedReducer,E!==null))try{var I=o.lastRenderedState,X=E(I,u);if(v.hasEagerState=!0,v.eagerState=X,te(X,I)){var ae=o.interleaved;ae===null?(v.next=v,kf(o)):(v.next=ae.next,ae.next=v),o.interleaved=v;return}}catch{}finally{}u=Qp(i,o,v,p),u!==null&&(v=Jr(),ta(u,i,p,v),Em(u,o,p))}}function xm(i){var o=i.alternate;return i===or||o!==null&&o===or}function km(i,o){qs=hc=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function Em(i,o,u){if(u&4194240){var p=o.lanes;p&=i.pendingLanes,u|=p,o.lanes=u,lo(i,u)}}var gc={readContext:Fi,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},i5={readContext:Fi,useCallback:function(i,o){return va().memoizedState=[i,o===void 0?null:o],i},useContext:Fi,useEffect:dm,useImperativeHandle:function(i,o,u){return u=u!=null?u.concat([i]):null,pc(4194308,4,mm.bind(null,o,i),u)},useLayoutEffect:function(i,o){return pc(4194308,4,i,o)},useInsertionEffect:function(i,o){return pc(4,2,i,o)},useMemo:function(i,o){var u=va();return o=o===void 0?null:o,i=i(),u.memoizedState=[i,o],i},useReducer:function(i,o,u){var p=va();return o=u!==void 0?u(o):o,p.memoizedState=p.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},p.queue=i,i=i.dispatch=n5.bind(null,or,i),[p.memoizedState,i]},useRef:function(i){var o=va();return i={current:i},o.memoizedState=i},useState:cm,useDebugValue:Pf,useDeferredValue:function(i){return va().memoizedState=i},useTransition:function(){var i=cm(!1),o=i[0];return i=t5.bind(null,i[1]),va().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,u){var p=or,v=va();if(Jn){if(u===void 0)throw Error(n(407));u=u()}else{if(u=o(),Dr===null)throw Error(n(349));ml&30||am(p,o,u)}v.memoizedState=u;var E={value:u,getSnapshot:o};return v.queue=E,dm(lm.bind(null,p,E,i),[i]),p.flags|=2048,Vs(9,om.bind(null,p,E,u,o),void 0,null),u},useId:function(){var i=va(),o=Dr.identifierPrefix;if(Jn){var u=qa,p=$a;u=(p&~(1<<32-jt(p)-1)).toString(32)+u,o=":"+o+"R"+u,u=Hs++,0<\/script>",i=i.removeChild(i.firstChild)):typeof p.is=="string"?i=I.createElement(u,{is:p.is}):(i=I.createElement(u),u==="select"&&(I=i,p.multiple?I.multiple=!0:p.size&&(I.size=p.size))):i=I.createElementNS(i,u),i[ga]=o,i[zs]=p,qm(i,o,!1,!1),o.stateNode=i;e:{switch(I=Nt(u,p),u){case"dialog":Gn("cancel",i),Gn("close",i),v=p;break;case"iframe":case"object":case"embed":Gn("load",i),v=p;break;case"video":case"audio":for(v=0;vos&&(o.flags|=128,p=!0,Gs(E,!1),o.lanes=4194304)}else{if(!p)if(i=fc(I),i!==null){if(o.flags|=128,p=!0,u=i.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),Gs(E,!0),E.tail===null&&E.tailMode==="hidden"&&!I.alternate&&!Jn)return Gr(o),null}else 2*Jt()-E.renderingStartTime>os&&u!==1073741824&&(o.flags|=128,p=!0,Gs(E,!1),o.lanes=4194304);E.isBackwards?(I.sibling=o.child,o.child=I):(u=E.last,u!==null?u.sibling=I:o.child=I,E.last=I)}return E.tail!==null?(o=E.tail,E.rendering=o,E.tail=o.sibling,E.renderingStartTime=Jt(),o.sibling=null,u=ar.current,qn(ar,p?u&1|2:u&1),o):(Gr(o),null);case 22:case 23:return ad(),p=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==p&&(o.flags|=8192),p&&o.mode&1?_i&1073741824&&(Gr(o),o.subtreeFlags&6&&(o.flags|=8192)):Gr(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function d5(i,o){switch(pf(o),o.tag){case 1:return ui(o.type)&&ec(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ns(),Wn(si),Wn(Kr),Tf(),i=o.flags,i&65536&&!(i&128)?(o.flags=i&-65537|128,o):null;case 5:return _f(o),null;case 13:if(Wn(ar),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Ql()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return Wn(ar),null;case 4:return ns(),null;case 10:return wf(o.type._context),null;case 22:case 23:return ad(),null;case 24:return null;default:return null}}var wc=!1,Wr=!1,h5=typeof WeakSet=="function"?WeakSet:Set,It=null;function is(i,o){var u=i.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(p){fr(i,o,p)}else u.current=null}function Gf(i,o,u){try{u()}catch(p){fr(i,o,p)}}var Vm=!1;function p5(i,o){if(af=ha,i=he(),Ae(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var v=p.anchorOffset,E=p.focusNode;p=p.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var I=0,X=-1,ae=-1,Le=0,Qe=0,tt=i,Xe=null;t:for(;;){for(var At;tt!==u||v!==0&&tt.nodeType!==3||(X=I+v),tt!==E||p!==0&&tt.nodeType!==3||(ae=I+p),tt.nodeType===3&&(I+=tt.nodeValue.length),(At=tt.firstChild)!==null;)Xe=tt,tt=At;for(;;){if(tt===i)break t;if(Xe===u&&++Le===v&&(X=I),Xe===E&&++Qe===p&&(ae=I),(At=tt.nextSibling)!==null)break;tt=Xe,Xe=tt.parentNode}tt=At}u=X===-1||ae===-1?null:{start:X,end:ae}}else u=null}u=u||{start:0,end:0}}else u=null;for(of={focusedElem:i,selectionRange:u},ha=!1,It=o;It!==null;)if(o=It,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,It=i;else for(;It!==null;){o=It;try{var Lt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Lt!==null){var Bt=Lt.memoizedProps,yr=Lt.memoizedState,_e=o.stateNode,de=_e.getSnapshotBeforeUpdate(o.elementType===o.type?Bt:Qi(o.type,Bt),yr);_e.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var Oe=o.stateNode.containerInfo;Oe.nodeType===1?Oe.textContent="":Oe.nodeType===9&&Oe.documentElement&&Oe.removeChild(Oe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(pt){fr(o,o.return,pt)}if(i=o.sibling,i!==null){i.return=o.return,It=i;break}It=o.return}return Lt=Vm,Vm=!1,Lt}function Ws(i,o,u){var p=o.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var v=p=p.next;do{if((v.tag&i)===i){var E=v.destroy;v.destroy=void 0,E!==void 0&&Gf(o,u,E)}v=v.next}while(v!==p)}}function xc(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var u=o=o.next;do{if((u.tag&i)===i){var p=u.create;u.destroy=p()}u=u.next}while(u!==o)}}function Wf(i){var o=i.ref;if(o!==null){var u=i.stateNode;switch(i.tag){case 5:i=u;break;default:i=u}typeof o=="function"?o(i):o.current=i}}function Gm(i){var o=i.alternate;o!==null&&(i.alternate=null,Gm(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[ga],delete o[zs],delete o[cf],delete o[Xv],delete o[Zv])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Wm(i){return i.tag===5||i.tag===3||i.tag===4}function Ym(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Wm(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Yf(i,o,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,o?u.nodeType===8?u.parentNode.insertBefore(i,o):u.insertBefore(i,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(i,u)):(o=u,o.appendChild(i)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Qu));else if(p!==4&&(i=i.child,i!==null))for(Yf(i,o,u),i=i.sibling;i!==null;)Yf(i,o,u),i=i.sibling}function Xf(i,o,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(p!==4&&(i=i.child,i!==null))for(Xf(i,o,u),i=i.sibling;i!==null;)Xf(i,o,u),i=i.sibling}var Ur=null,Ji=!1;function ko(i,o,u){for(u=u.child;u!==null;)Xm(i,o,u),u=u.sibling}function Xm(i,o,u){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(un,u)}catch{}switch(u.tag){case 5:Wr||is(u,o);case 6:var p=Ur,v=Ji;Ur=null,ko(i,o,u),Ur=p,Ji=v,Ur!==null&&(Ji?(i=Ur,u=u.stateNode,i.nodeType===8?i.parentNode.removeChild(u):i.removeChild(u)):Ur.removeChild(u.stateNode));break;case 18:Ur!==null&&(Ji?(i=Ur,u=u.stateNode,i.nodeType===8?uf(i.parentNode,u):i.nodeType===1&&uf(i,u),so(i)):uf(Ur,u.stateNode));break;case 4:p=Ur,v=Ji,Ur=u.stateNode.containerInfo,Ji=!0,ko(i,o,u),Ur=p,Ji=v;break;case 0:case 11:case 14:case 15:if(!Wr&&(p=u.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){v=p=p.next;do{var E=v,I=E.destroy;E=E.tag,I!==void 0&&(E&2||E&4)&&Gf(u,o,I),v=v.next}while(v!==p)}ko(i,o,u);break;case 1:if(!Wr&&(is(u,o),p=u.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=u.memoizedProps,p.state=u.memoizedState,p.componentWillUnmount()}catch(X){fr(u,o,X)}ko(i,o,u);break;case 21:ko(i,o,u);break;case 22:u.mode&1?(Wr=(p=Wr)||u.memoizedState!==null,ko(i,o,u),Wr=p):ko(i,o,u);break;default:ko(i,o,u)}}function Zm(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var u=i.stateNode;u===null&&(u=i.stateNode=new h5),o.forEach(function(p){var v=E5.bind(null,i,p);u.has(p)||(u.add(p),p.then(v,v))})}}function ea(i,o){var u=o.deletions;if(u!==null)for(var p=0;pv&&(v=I),p&=~E}if(p=v,p=Jt()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*g5(p/1960))-p,10i?16:i,So===null)var p=!1;else{if(i=So,So=null,Nc=0,Tn&6)throw Error(n(331));var v=Tn;for(Tn|=4,It=i.current;It!==null;){var E=It,I=E.child;if(It.flags&16){var X=E.deletions;if(X!==null){for(var ae=0;aeJt()-Jf?vl(i,0):Qf|=u),di(i,o)}function c1(i,o){o===0&&(i.mode&1?(o=vi,vi<<=1,!(vi&130023424)&&(vi=4194304)):o=1);var u=Jr();i=Ha(i,o),i!==null&&(Yi(i,o,u),di(i,u))}function k5(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),c1(i,u)}function E5(i,o){var u=0;switch(i.tag){case 13:var p=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:p=i.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(o),c1(i,u)}var f1;f1=function(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps||si.current)ci=!0;else{if(!(i.lanes&u)&&!(o.flags&128))return ci=!1,c5(i,o,u);ci=!!(i.flags&131072)}else ci=!1,Jn&&o.flags&1048576&&Hp(o,ic,o.index);switch(o.lanes=0,o.tag){case 2:var p=o.type;bc(i,o),i=o.pendingProps;var v=Yl(o,Kr.current);ts(o,u),v=Of(null,o,p,i,v,u);var E=Mf();return o.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,ui(p)?(E=!0,tc(o)):E=!1,o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Ef(o),v.updater=yc,o.stateNode=v,v._reactInternals=o,zf(o,p,i,u),o=jf(null,o,p,!0,E,u)):(o.tag=0,Jn&&E&&hf(o),Qr(null,o,v,u),o=o.child),o;case 16:p=o.elementType;e:{switch(bc(i,o),i=o.pendingProps,v=p._init,p=v(p._payload),o.type=p,v=o.tag=_5(p),i=Qi(p,i),v){case 0:o=Uf(null,o,p,i,u);break e;case 1:o=zm(null,o,p,i,u);break e;case 11:o=Rm(null,o,p,i,u);break e;case 14:o=Im(null,o,p,Qi(p.type,i),u);break e}throw Error(n(306,p,""))}return o;case 0:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),Uf(i,o,p,v,u);case 1:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),zm(i,o,p,v,u);case 3:e:{if(Bm(o),i===null)throw Error(n(387));p=o.pendingProps,E=o.memoizedState,v=E.element,Jp(i,o),cc(o,p,null,u);var I=o.memoizedState;if(p=I.element,E.isDehydrated)if(E={element:p,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},o.updateQueue.baseState=E,o.memoizedState=E,o.flags&256){v=rs(Error(n(423)),o),o=Fm(i,o,p,u,v);break e}else if(p!==v){v=rs(Error(n(424)),o),o=Fm(i,o,p,u,v);break e}else for(Si=go(o.stateNode.containerInfo.firstChild),Ei=o,Jn=!0,Zi=null,u=Zp(o,null,p,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ql(),p===v){o=Va(i,o,u);break e}Qr(i,o,p,u)}o=o.child}return o;case 5:return nm(o),i===null&&gf(o),p=o.type,v=o.pendingProps,E=i!==null?i.memoizedProps:null,I=v.children,lf(p,v)?I=null:E!==null&&lf(p,E)&&(o.flags|=32),Lm(i,o),Qr(i,o,I,u),o.child;case 6:return i===null&&gf(o),null;case 13:return Um(i,o,u);case 4:return Sf(o,o.stateNode.containerInfo),p=o.pendingProps,i===null?o.child=Jl(o,null,p,u):Qr(i,o,p,u),o.child;case 11:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),Rm(i,o,p,v,u);case 7:return Qr(i,o,o.pendingProps,u),o.child;case 8:return Qr(i,o,o.pendingProps.children,u),o.child;case 12:return Qr(i,o,o.pendingProps.children,u),o.child;case 10:e:{if(p=o.type._context,v=o.pendingProps,E=o.memoizedProps,I=v.value,qn(lc,p._currentValue),p._currentValue=I,E!==null)if(te(E.value,I)){if(E.children===v.children&&!si.current){o=Va(i,o,u);break e}}else for(E=o.child,E!==null&&(E.return=o);E!==null;){var X=E.dependencies;if(X!==null){I=E.child;for(var ae=X.firstContext;ae!==null;){if(ae.context===p){if(E.tag===1){ae=Ka(-1,u&-u),ae.tag=2;var Le=E.updateQueue;if(Le!==null){Le=Le.shared;var Qe=Le.pending;Qe===null?ae.next=ae:(ae.next=Qe.next,Qe.next=ae),Le.pending=ae}}E.lanes|=u,ae=E.alternate,ae!==null&&(ae.lanes|=u),xf(E.return,u,o),X.lanes|=u;break}ae=ae.next}}else if(E.tag===10)I=E.type===o.type?null:E.child;else if(E.tag===18){if(I=E.return,I===null)throw Error(n(341));I.lanes|=u,X=I.alternate,X!==null&&(X.lanes|=u),xf(I,u,o),I=E.sibling}else I=E.child;if(I!==null)I.return=E;else for(I=E;I!==null;){if(I===o){I=null;break}if(E=I.sibling,E!==null){E.return=I.return,I=E;break}I=I.return}E=I}Qr(i,o,v.children,u),o=o.child}return o;case 9:return v=o.type,p=o.pendingProps.children,ts(o,u),v=Fi(v),p=p(v),o.flags|=1,Qr(i,o,p,u),o.child;case 14:return p=o.type,v=Qi(p,o.pendingProps),v=Qi(p.type,v),Im(i,o,p,v,u);case 15:return Dm(i,o,o.type,o.pendingProps,u);case 17:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),bc(i,o),o.tag=1,ui(p)?(i=!0,tc(o)):i=!1,ts(o,u),_m(o,p,v),zf(o,p,v,u),jf(null,o,p,!0,i,u);case 19:return $m(i,o,u);case 22:return Pm(i,o,u)}throw Error(n(156,o.tag))};function d1(i,o){return Ii(i,o)}function S5(i,o,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $i(i,o,u,p){return new S5(i,o,u,p)}function ld(i){return i=i.prototype,!(!i||!i.isReactComponent)}function _5(i){if(typeof i=="function")return ld(i)?1:0;if(i!=null){if(i=i.$$typeof,i===G)return 11;if(i===Ne)return 14}return 2}function To(i,o){var u=i.alternate;return u===null?(u=$i(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&14680064,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u}function Oc(i,o,u,p,v,E){var I=2;if(p=i,typeof i=="function")ld(i)&&(I=1);else if(typeof i=="string")I=5;else e:switch(i){case ve:return wl(u.children,v,E,o);case Ee:I=8,v|=8;break;case K:return i=$i(12,u,o,v|2),i.elementType=K,i.lanes=E,i;case De:return i=$i(13,u,o,v),i.elementType=De,i.lanes=E,i;case Se:return i=$i(19,u,o,v),i.elementType=Se,i.lanes=E,i;case ft:return Mc(u,v,E,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:I=10;break e;case ne:I=9;break e;case G:I=11;break e;case Ne:I=14;break e;case et:I=16,p=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return o=$i(I,u,o,v),o.elementType=i,o.type=p,o.lanes=E,o}function wl(i,o,u,p){return i=$i(7,i,p,o),i.lanes=u,i}function Mc(i,o,u,p){return i=$i(22,i,p,o),i.elementType=ft,i.lanes=u,i.stateNode={isHidden:!1},i}function sd(i,o,u){return i=$i(6,i,null,o),i.lanes=u,i}function ud(i,o,u){return o=$i(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function N5(i,o,u,p,v){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bi(0),this.expirationTimes=bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.identifierPrefix=p,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function cd(i,o,u,p,v,E,I,X,ae){return i=new N5(i,o,u,X,ae),o===1?(o=1,E===!0&&(o|=8)):o=0,E=$i(3,null,null,o),i.current=E,E.stateNode=i,E.memoizedState={element:p,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ef(E),i}function T5(i,o,u){var p=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yd.exports=$5(),yd.exports}var C1;function H5(){if(C1)return Bc;C1=1;var e=q5();return Bc.createRoot=e.createRoot,Bc.hydrateRoot=e.hydrateRoot,Bc}var K5=H5(),tu={},A1;function V5(){if(A1)return tu;A1=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.parse=s,tu.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,l=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function s(w,b){const _=new l,T=w.length;if(T<2)return _;const D=(b==null?void 0:b.decode)||m;let R=0;do{const F=w.indexOf("=",R);if(F===-1)break;const U=w.indexOf(";",R),le=U===-1?T:U;if(F>le){R=w.lastIndexOf(";",F-1)+1;continue}const ie=c(w,R,F),V=f(w,F,ie),ve=w.slice(ie,V);if(_[ve]===void 0){let Ee=c(w,F+1,le),K=f(w,le,Ee);const C=D(w.slice(Ee,K));_[ve]=C}R=le+1}while(R_;){const T=w.charCodeAt(--b);if(T!==32&&T!==9)return b+1}return _}function d(w,b,_){const T=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(w))throw new TypeError(`argument name is invalid: ${w}`);const D=T(b);if(!t.test(D))throw new TypeError(`argument val is invalid: ${b}`);let R=w+"="+D;if(!_)return R;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);R+="; Max-Age="+_.maxAge}if(_.domain){if(!n.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);R+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);R+="; Path="+_.path}if(_.expires){if(!g(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);R+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(R+="; HttpOnly"),_.secure&&(R+="; Secure"),_.partitioned&&(R+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return R}function m(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function g(w){return a.call(w)==="[object Date]"}return tu}V5();/** +`+E.stack}return{value:i,source:o,stack:v,digest:null}}function Bf(i,o,u){return{value:i,source:null,stack:u??null,digest:o??null}}function Ff(i,o){try{console.error(o.value)}catch(u){setTimeout(function(){throw u})}}var l5=typeof WeakMap=="function"?WeakMap:Map;function Tm(i,o,u){u=Ka(-1,u),u.tag=3,u.payload={element:null};var p=o.value;return u.callback=function(){Sc||(Sc=!0,ed=p),Ff(i,o)},u}function Cm(i,o,u){u=Ka(-1,u),u.tag=3;var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var v=o.value;u.payload=function(){return p(v)},u.callback=function(){Ff(i,o)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(u.callback=function(){Ff(i,o),typeof p!="function"&&(Eo===null?Eo=new Set([this]):Eo.add(this));var I=o.stack;this.componentDidCatch(o.value,{componentStack:I!==null?I:""})}),u}function Am(i,o,u){var p=i.pingCache;if(p===null){p=i.pingCache=new l5;var v=new Set;p.set(o,v)}else v=p.get(o),v===void 0&&(v=new Set,p.set(o,v));v.has(u)||(v.add(u),i=x5.bind(null,i,o,u),o.then(i,i))}function Om(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function Mm(i,o,u,p,v){return i.mode&1?(i.flags|=65536,i.lanes=v,i):(i===o?i.flags|=65536:(i.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(o=Ka(-1,1),o.tag=2,xo(u,o,1))),u.lanes|=1),i)}var s5=oe.ReactCurrentOwner,ci=!1;function Qr(i,o,u,p){o.child=i===null?Zp(o,null,u,p):Jl(o,i.child,u,p)}function Rm(i,o,u,p,v){u=u.render;var E=o.ref;return ts(o,v),p=Of(i,o,u,p,E,v),u=Mf(),i!==null&&!ci?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~v,Va(i,o,v)):(Jn&&u&&hf(o),o.flags|=1,Qr(i,o,p,v),o.child)}function Im(i,o,u,p,v){if(i===null){var E=u.type;return typeof E=="function"&&!ld(E)&&E.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(o.tag=15,o.type=E,Dm(i,o,E,p,v)):(i=Oc(u.type,null,p,o,o.mode,v),i.ref=o.ref,i.return=o,o.child=i)}if(E=i.child,!(i.lanes&v)){var I=E.memoizedProps;if(u=u.compare,u=u!==null?u:ve,u(I,p)&&i.ref===o.ref)return Va(i,o,v)}return o.flags|=1,i=To(E,p),i.ref=o.ref,i.return=o,o.child=i}function Dm(i,o,u,p,v){if(i!==null){var E=i.memoizedProps;if(ve(E,p)&&i.ref===o.ref)if(ci=!1,o.pendingProps=p=E,(i.lanes&v)!==0)i.flags&131072&&(ci=!0);else return o.lanes=i.lanes,Va(i,o,v)}return Uf(i,o,u,p,v)}function Pm(i,o,u){var p=o.pendingProps,v=p.children,E=i!==null?i.memoizedState:null;if(p.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},qn(as,_i),_i|=u;else{if(!(u&1073741824))return i=E!==null?E.baseLanes|u:u,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,qn(as,_i),_i|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=E!==null?E.baseLanes:u,qn(as,_i),_i|=p}else E!==null?(p=E.baseLanes|u,o.memoizedState=null):p=u,qn(as,_i),_i|=p;return Qr(i,o,v,u),o.child}function Lm(i,o){var u=o.ref;(i===null&&u!==null||i!==null&&i.ref!==u)&&(o.flags|=512,o.flags|=2097152)}function Uf(i,o,u,p,v){var E=ui(u)?cl:Kr.current;return E=Yl(o,E),ts(o,v),u=Of(i,o,u,p,E,v),p=Mf(),i!==null&&!ci?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~v,Va(i,o,v)):(Jn&&p&&hf(o),o.flags|=1,Qr(i,o,u,v),o.child)}function zm(i,o,u,p,v){if(ui(u)){var E=!0;tc(o)}else E=!1;if(ts(o,v),o.stateNode===null)bc(i,o),_m(o,u,p),zf(o,u,p,v),p=!0;else if(i===null){var I=o.stateNode,X=o.memoizedProps;I.props=X;var ae=I.context,ze=u.contextType;typeof ze=="object"&&ze!==null?ze=Fi(ze):(ze=ui(u)?cl:Kr.current,ze=Yl(o,ze));var Qe=u.getDerivedStateFromProps,tt=typeof Qe=="function"||typeof I.getSnapshotBeforeUpdate=="function";tt||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(X!==p||ae!==ze)&&Nm(o,I,p,ze),wo=!1;var Ye=o.memoizedState;I.state=Ye,cc(o,p,I,v),ae=o.memoizedState,X!==p||Ye!==ae||si.current||wo?(typeof Qe=="function"&&(Lf(o,u,Qe,p),ae=o.memoizedState),(X=wo||Sm(o,u,X,p,Ye,ae,ze))?(tt||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"&&(o.flags|=4194308)):(typeof I.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=p,o.memoizedState=ae),I.props=p,I.state=ae,I.context=ze,p=X):(typeof I.componentDidMount=="function"&&(o.flags|=4194308),p=!1)}else{I=o.stateNode,Jp(i,o),X=o.memoizedProps,ze=o.type===o.elementType?X:Qi(o.type,X),I.props=ze,tt=o.pendingProps,Ye=I.context,ae=u.contextType,typeof ae=="object"&&ae!==null?ae=Fi(ae):(ae=ui(u)?cl:Kr.current,ae=Yl(o,ae));var At=u.getDerivedStateFromProps;(Qe=typeof At=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(X!==tt||Ye!==ae)&&Nm(o,I,p,ae),wo=!1,Ye=o.memoizedState,I.state=Ye,cc(o,p,I,v);var Lt=o.memoizedState;X!==tt||Ye!==Lt||si.current||wo?(typeof At=="function"&&(Lf(o,u,At,p),Lt=o.memoizedState),(ze=wo||Sm(o,u,ze,p,Ye,Lt,ae)||!1)?(Qe||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(p,Lt,ae),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(p,Lt,ae)),typeof I.componentDidUpdate=="function"&&(o.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof I.componentDidUpdate!="function"||X===i.memoizedProps&&Ye===i.memoizedState||(o.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||X===i.memoizedProps&&Ye===i.memoizedState||(o.flags|=1024),o.memoizedProps=p,o.memoizedState=Lt),I.props=p,I.state=Lt,I.context=ae,p=ze):(typeof I.componentDidUpdate!="function"||X===i.memoizedProps&&Ye===i.memoizedState||(o.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||X===i.memoizedProps&&Ye===i.memoizedState||(o.flags|=1024),p=!1)}return jf(i,o,u,p,E,v)}function jf(i,o,u,p,v,E){Lm(i,o);var I=(o.flags&128)!==0;if(!p&&!I)return v&&$p(o,u,!1),Va(i,o,E);p=o.stateNode,s5.current=o;var X=I&&typeof u.getDerivedStateFromError!="function"?null:p.render();return o.flags|=1,i!==null&&I?(o.child=Jl(o,i.child,null,E),o.child=Jl(o,null,X,E)):Qr(i,o,X,E),o.memoizedState=p.state,v&&$p(o,u,!0),o.child}function Bm(i){var o=i.stateNode;o.pendingContext?Up(i,o.pendingContext,o.pendingContext!==o.context):o.context&&Up(i,o.context,!1),Sf(i,o.containerInfo)}function Fm(i,o,u,p,v){return Ql(),yf(v),o.flags|=256,Qr(i,o,u,p),o.child}var $f={dehydrated:null,treeContext:null,retryLane:0};function qf(i){return{baseLanes:i,cachePool:null,transitions:null}}function Um(i,o,u){var p=o.pendingProps,v=ar.current,E=!1,I=(o.flags&128)!==0,X;if((X=I)||(X=i!==null&&i.memoizedState===null?!1:(v&2)!==0),X?(E=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(v|=1),qn(ar,v&1),i===null)return gf(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(o.mode&1?i.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(I=p.children,i=p.fallback,E?(p=o.mode,E=o.child,I={mode:"hidden",children:I},!(p&1)&&E!==null?(E.childLanes=0,E.pendingProps=I):E=Mc(I,p,0,null),i=wl(i,p,u,null),E.return=o,i.return=o,E.sibling=i,o.child=E,o.child.memoizedState=qf(u),o.memoizedState=$f,i):Hf(o,I));if(v=i.memoizedState,v!==null&&(X=v.dehydrated,X!==null))return u5(i,o,I,p,X,v,u);if(E){E=p.fallback,I=o.mode,v=i.child,X=v.sibling;var ae={mode:"hidden",children:p.children};return!(I&1)&&o.child!==v?(p=o.child,p.childLanes=0,p.pendingProps=ae,o.deletions=null):(p=To(v,ae),p.subtreeFlags=v.subtreeFlags&14680064),X!==null?E=To(X,E):(E=wl(E,I,u,null),E.flags|=2),E.return=o,p.return=o,p.sibling=E,o.child=p,p=E,E=o.child,I=i.child.memoizedState,I=I===null?qf(u):{baseLanes:I.baseLanes|u,cachePool:null,transitions:I.transitions},E.memoizedState=I,E.childLanes=i.childLanes&~u,o.memoizedState=$f,p}return E=i.child,i=E.sibling,p=To(E,{mode:"visible",children:p.children}),!(o.mode&1)&&(p.lanes=u),p.return=o,p.sibling=null,i!==null&&(u=o.deletions,u===null?(o.deletions=[i],o.flags|=16):u.push(i)),o.child=p,o.memoizedState=null,p}function Hf(i,o){return o=Mc({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function vc(i,o,u,p){return p!==null&&yf(p),Jl(o,i.child,null,u),i=Hf(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function u5(i,o,u,p,v,E,I){if(u)return o.flags&256?(o.flags&=-257,p=Bf(Error(n(422))),vc(i,o,I,p)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(E=p.fallback,v=o.mode,p=Mc({mode:"visible",children:p.children},v,0,null),E=wl(E,v,I,null),E.flags|=2,p.return=o,E.return=o,p.sibling=E,o.child=p,o.mode&1&&Jl(o,i.child,null,I),o.child.memoizedState=qf(I),o.memoizedState=$f,E);if(!(o.mode&1))return vc(i,o,I,null);if(v.data==="$!"){if(p=v.nextSibling&&v.nextSibling.dataset,p)var X=p.dgst;return p=X,E=Error(n(419)),p=Bf(E,p,void 0),vc(i,o,I,p)}if(X=(I&i.childLanes)!==0,ci||X){if(p=Dr,p!==null){switch(I&-I){case 4:v=2;break;case 16:v=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:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(p.suspendedLanes|I)?0:v,v!==0&&v!==E.retryLane&&(E.retryLane=v,Ha(i,v),ta(p,i,v,-1))}return od(),p=Bf(Error(n(421))),vc(i,o,I,p)}return v.data==="$?"?(o.flags|=128,o.child=i.child,o=k5.bind(null,i),v._reactRetry=o,null):(i=E.treeContext,Si=go(v.nextSibling),Ei=o,Jn=!0,Zi=null,i!==null&&(zi[Bi++]=$a,zi[Bi++]=qa,zi[Bi++]=fl,$a=i.id,qa=i.overflow,fl=o),o=Hf(o,p.children),o.flags|=4096,o)}function jm(i,o,u){i.lanes|=o;var p=i.alternate;p!==null&&(p.lanes|=o),xf(i.return,o,u)}function Kf(i,o,u,p,v){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:v}:(E.isBackwards=o,E.rendering=null,E.renderingStartTime=0,E.last=p,E.tail=u,E.tailMode=v)}function $m(i,o,u){var p=o.pendingProps,v=p.revealOrder,E=p.tail;if(Qr(i,o,p.children,u),p=ar.current,p&2)p=p&1|2,o.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&jm(i,u,o);else if(i.tag===19)jm(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}if(qn(ar,p),!(o.mode&1))o.memoizedState=null;else switch(v){case"forwards":for(u=o.child,v=null;u!==null;)i=u.alternate,i!==null&&fc(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=o.child,o.child=null):(v=u.sibling,u.sibling=null),Kf(o,!1,v,u,E);break;case"backwards":for(u=null,v=o.child,o.child=null;v!==null;){if(i=v.alternate,i!==null&&fc(i)===null){o.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}Kf(o,!0,u,null,E);break;case"together":Kf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function bc(i,o){!(o.mode&1)&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function Va(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),gl|=o.lanes,!(u&o.childLanes))return null;if(i!==null&&o.child!==i.child)throw Error(n(153));if(o.child!==null){for(i=o.child,u=To(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=To(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function c5(i,o,u){switch(o.tag){case 3:Bm(o),Ql();break;case 5:nm(o);break;case 1:ui(o.type)&&tc(o);break;case 4:Sf(o,o.stateNode.containerInfo);break;case 10:var p=o.type._context,v=o.memoizedProps.value;qn(lc,p._currentValue),p._currentValue=v;break;case 13:if(p=o.memoizedState,p!==null)return p.dehydrated!==null?(qn(ar,ar.current&1),o.flags|=128,null):u&o.child.childLanes?Um(i,o,u):(qn(ar,ar.current&1),i=Va(i,o,u),i!==null?i.sibling:null);qn(ar,ar.current&1);break;case 19:if(p=(u&o.childLanes)!==0,i.flags&128){if(p)return $m(i,o,u);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),qn(ar,ar.current),p)break;return null;case 22:case 23:return o.lanes=0,Pm(i,o,u)}return Va(i,o,u)}var qm,Vf,Hm,Km;qm=function(i,o){for(var u=o.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Vf=function(){},Hm=function(i,o,u,p){var v=i.memoizedProps;if(v!==p){i=o.stateNode,pl(ya.current);var E=null;switch(u){case"input":v=Ht(i,v),p=Ht(i,p),E=[];break;case"select":v=L({},v,{value:void 0}),p=L({},p,{value:void 0}),E=[];break;case"textarea":v=Yn(i,v),p=Yn(i,p),E=[];break;default:typeof v.onClick!="function"&&typeof p.onClick=="function"&&(i.onclick=Qu)}Ie(u,p);var I;u=null;for(ze in v)if(!p.hasOwnProperty(ze)&&v.hasOwnProperty(ze)&&v[ze]!=null)if(ze==="style"){var X=v[ze];for(I in X)X.hasOwnProperty(I)&&(u||(u={}),u[I]="")}else ze!=="dangerouslySetInnerHTML"&&ze!=="children"&&ze!=="suppressContentEditableWarning"&&ze!=="suppressHydrationWarning"&&ze!=="autoFocus"&&(a.hasOwnProperty(ze)?E||(E=[]):(E=E||[]).push(ze,null));for(ze in p){var ae=p[ze];if(X=v!=null?v[ze]:void 0,p.hasOwnProperty(ze)&&ae!==X&&(ae!=null||X!=null))if(ze==="style")if(X){for(I in X)!X.hasOwnProperty(I)||ae&&ae.hasOwnProperty(I)||(u||(u={}),u[I]="");for(I in ae)ae.hasOwnProperty(I)&&X[I]!==ae[I]&&(u||(u={}),u[I]=ae[I])}else u||(E||(E=[]),E.push(ze,u)),u=ae;else ze==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,X=X?X.__html:void 0,ae!=null&&X!==ae&&(E=E||[]).push(ze,ae)):ze==="children"?typeof ae!="string"&&typeof ae!="number"||(E=E||[]).push(ze,""+ae):ze!=="suppressContentEditableWarning"&&ze!=="suppressHydrationWarning"&&(a.hasOwnProperty(ze)?(ae!=null&&ze==="onScroll"&&Gn("scroll",i),E||X===ae||(E=[])):(E=E||[]).push(ze,ae))}u&&(E=E||[]).push("style",u);var ze=E;(o.updateQueue=ze)&&(o.flags|=4)}},Km=function(i,o,u,p){u!==p&&(o.flags|=4)};function Gs(i,o){if(!Jn)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Gr(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(o)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,p|=v.subtreeFlags&14680064,p|=v.flags&14680064,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=p,i.childLanes=u,o}function f5(i,o,u){var p=o.pendingProps;switch(pf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(o),null;case 1:return ui(o.type)&&ec(),Gr(o),null;case 3:return p=o.stateNode,ns(),Wn(si),Wn(Kr),Tf(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(ac(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Zi!==null&&(rd(Zi),Zi=null))),Vf(i,o),Gr(o),null;case 5:_f(o);var v=pl($s.current);if(u=o.type,i!==null&&o.stateNode!=null)Hm(i,o,u,p,v),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!p){if(o.stateNode===null)throw Error(n(166));return Gr(o),null}if(i=pl(ya.current),ac(o)){p=o.stateNode,u=o.type;var E=o.memoizedProps;switch(p[ga]=o,p[zs]=E,i=(o.mode&1)!==0,u){case"dialog":Gn("cancel",p),Gn("close",p);break;case"iframe":case"object":case"embed":Gn("load",p);break;case"video":case"audio":for(v=0;v<\/script>",i=i.removeChild(i.firstChild)):typeof p.is=="string"?i=I.createElement(u,{is:p.is}):(i=I.createElement(u),u==="select"&&(I=i,p.multiple?I.multiple=!0:p.size&&(I.size=p.size))):i=I.createElementNS(i,u),i[ga]=o,i[zs]=p,qm(i,o,!1,!1),o.stateNode=i;e:{switch(I=Nt(u,p),u){case"dialog":Gn("cancel",i),Gn("close",i),v=p;break;case"iframe":case"object":case"embed":Gn("load",i),v=p;break;case"video":case"audio":for(v=0;vos&&(o.flags|=128,p=!0,Gs(E,!1),o.lanes=4194304)}else{if(!p)if(i=fc(I),i!==null){if(o.flags|=128,p=!0,u=i.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),Gs(E,!0),E.tail===null&&E.tailMode==="hidden"&&!I.alternate&&!Jn)return Gr(o),null}else 2*Jt()-E.renderingStartTime>os&&u!==1073741824&&(o.flags|=128,p=!0,Gs(E,!1),o.lanes=4194304);E.isBackwards?(I.sibling=o.child,o.child=I):(u=E.last,u!==null?u.sibling=I:o.child=I,E.last=I)}return E.tail!==null?(o=E.tail,E.rendering=o,E.tail=o.sibling,E.renderingStartTime=Jt(),o.sibling=null,u=ar.current,qn(ar,p?u&1|2:u&1),o):(Gr(o),null);case 22:case 23:return ad(),p=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==p&&(o.flags|=8192),p&&o.mode&1?_i&1073741824&&(Gr(o),o.subtreeFlags&6&&(o.flags|=8192)):Gr(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function d5(i,o){switch(pf(o),o.tag){case 1:return ui(o.type)&&ec(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ns(),Wn(si),Wn(Kr),Tf(),i=o.flags,i&65536&&!(i&128)?(o.flags=i&-65537|128,o):null;case 5:return _f(o),null;case 13:if(Wn(ar),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Ql()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return Wn(ar),null;case 4:return ns(),null;case 10:return wf(o.type._context),null;case 22:case 23:return ad(),null;case 24:return null;default:return null}}var wc=!1,Wr=!1,h5=typeof WeakSet=="function"?WeakSet:Set,It=null;function is(i,o){var u=i.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(p){fr(i,o,p)}else u.current=null}function Gf(i,o,u){try{u()}catch(p){fr(i,o,p)}}var Vm=!1;function p5(i,o){if(af=ha,i=he(),Oe(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var v=p.anchorOffset,E=p.focusNode;p=p.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var I=0,X=-1,ae=-1,ze=0,Qe=0,tt=i,Ye=null;t:for(;;){for(var At;tt!==u||v!==0&&tt.nodeType!==3||(X=I+v),tt!==E||p!==0&&tt.nodeType!==3||(ae=I+p),tt.nodeType===3&&(I+=tt.nodeValue.length),(At=tt.firstChild)!==null;)Ye=tt,tt=At;for(;;){if(tt===i)break t;if(Ye===u&&++ze===v&&(X=I),Ye===E&&++Qe===p&&(ae=I),(At=tt.nextSibling)!==null)break;tt=Ye,Ye=tt.parentNode}tt=At}u=X===-1||ae===-1?null:{start:X,end:ae}}else u=null}u=u||{start:0,end:0}}else u=null;for(of={focusedElem:i,selectionRange:u},ha=!1,It=o;It!==null;)if(o=It,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,It=i;else for(;It!==null;){o=It;try{var Lt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Lt!==null){var Bt=Lt.memoizedProps,yr=Lt.memoizedState,Ne=o.stateNode,de=Ne.getSnapshotBeforeUpdate(o.elementType===o.type?Bt:Qi(o.type,Bt),yr);Ne.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var Me=o.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(pt){fr(o,o.return,pt)}if(i=o.sibling,i!==null){i.return=o.return,It=i;break}It=o.return}return Lt=Vm,Vm=!1,Lt}function Ws(i,o,u){var p=o.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var v=p=p.next;do{if((v.tag&i)===i){var E=v.destroy;v.destroy=void 0,E!==void 0&&Gf(o,u,E)}v=v.next}while(v!==p)}}function xc(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var u=o=o.next;do{if((u.tag&i)===i){var p=u.create;u.destroy=p()}u=u.next}while(u!==o)}}function Wf(i){var o=i.ref;if(o!==null){var u=i.stateNode;switch(i.tag){case 5:i=u;break;default:i=u}typeof o=="function"?o(i):o.current=i}}function Gm(i){var o=i.alternate;o!==null&&(i.alternate=null,Gm(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[ga],delete o[zs],delete o[cf],delete o[Xv],delete o[Zv])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Wm(i){return i.tag===5||i.tag===3||i.tag===4}function Ym(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Wm(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Yf(i,o,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,o?u.nodeType===8?u.parentNode.insertBefore(i,o):u.insertBefore(i,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(i,u)):(o=u,o.appendChild(i)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Qu));else if(p!==4&&(i=i.child,i!==null))for(Yf(i,o,u),i=i.sibling;i!==null;)Yf(i,o,u),i=i.sibling}function Xf(i,o,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(p!==4&&(i=i.child,i!==null))for(Xf(i,o,u),i=i.sibling;i!==null;)Xf(i,o,u),i=i.sibling}var Ur=null,Ji=!1;function ko(i,o,u){for(u=u.child;u!==null;)Xm(i,o,u),u=u.sibling}function Xm(i,o,u){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(un,u)}catch{}switch(u.tag){case 5:Wr||is(u,o);case 6:var p=Ur,v=Ji;Ur=null,ko(i,o,u),Ur=p,Ji=v,Ur!==null&&(Ji?(i=Ur,u=u.stateNode,i.nodeType===8?i.parentNode.removeChild(u):i.removeChild(u)):Ur.removeChild(u.stateNode));break;case 18:Ur!==null&&(Ji?(i=Ur,u=u.stateNode,i.nodeType===8?uf(i.parentNode,u):i.nodeType===1&&uf(i,u),so(i)):uf(Ur,u.stateNode));break;case 4:p=Ur,v=Ji,Ur=u.stateNode.containerInfo,Ji=!0,ko(i,o,u),Ur=p,Ji=v;break;case 0:case 11:case 14:case 15:if(!Wr&&(p=u.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){v=p=p.next;do{var E=v,I=E.destroy;E=E.tag,I!==void 0&&(E&2||E&4)&&Gf(u,o,I),v=v.next}while(v!==p)}ko(i,o,u);break;case 1:if(!Wr&&(is(u,o),p=u.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=u.memoizedProps,p.state=u.memoizedState,p.componentWillUnmount()}catch(X){fr(u,o,X)}ko(i,o,u);break;case 21:ko(i,o,u);break;case 22:u.mode&1?(Wr=(p=Wr)||u.memoizedState!==null,ko(i,o,u),Wr=p):ko(i,o,u);break;default:ko(i,o,u)}}function Zm(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var u=i.stateNode;u===null&&(u=i.stateNode=new h5),o.forEach(function(p){var v=E5.bind(null,i,p);u.has(p)||(u.add(p),p.then(v,v))})}}function ea(i,o){var u=o.deletions;if(u!==null)for(var p=0;pv&&(v=I),p&=~E}if(p=v,p=Jt()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*g5(p/1960))-p,10i?16:i,So===null)var p=!1;else{if(i=So,So=null,Nc=0,Cn&6)throw Error(n(331));var v=Cn;for(Cn|=4,It=i.current;It!==null;){var E=It,I=E.child;if(It.flags&16){var X=E.deletions;if(X!==null){for(var ae=0;aeJt()-Jf?vl(i,0):Qf|=u),di(i,o)}function c1(i,o){o===0&&(i.mode&1?(o=vi,vi<<=1,!(vi&130023424)&&(vi=4194304)):o=1);var u=Jr();i=Ha(i,o),i!==null&&(Yi(i,o,u),di(i,u))}function k5(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),c1(i,u)}function E5(i,o){var u=0;switch(i.tag){case 13:var p=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:p=i.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(o),c1(i,u)}var f1;f1=function(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps||si.current)ci=!0;else{if(!(i.lanes&u)&&!(o.flags&128))return ci=!1,c5(i,o,u);ci=!!(i.flags&131072)}else ci=!1,Jn&&o.flags&1048576&&Hp(o,ic,o.index);switch(o.lanes=0,o.tag){case 2:var p=o.type;bc(i,o),i=o.pendingProps;var v=Yl(o,Kr.current);ts(o,u),v=Of(null,o,p,i,v,u);var E=Mf();return o.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,ui(p)?(E=!0,tc(o)):E=!1,o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Ef(o),v.updater=yc,o.stateNode=v,v._reactInternals=o,zf(o,p,i,u),o=jf(null,o,p,!0,E,u)):(o.tag=0,Jn&&E&&hf(o),Qr(null,o,v,u),o=o.child),o;case 16:p=o.elementType;e:{switch(bc(i,o),i=o.pendingProps,v=p._init,p=v(p._payload),o.type=p,v=o.tag=_5(p),i=Qi(p,i),v){case 0:o=Uf(null,o,p,i,u);break e;case 1:o=zm(null,o,p,i,u);break e;case 11:o=Rm(null,o,p,i,u);break e;case 14:o=Im(null,o,p,Qi(p.type,i),u);break e}throw Error(n(306,p,""))}return o;case 0:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),Uf(i,o,p,v,u);case 1:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),zm(i,o,p,v,u);case 3:e:{if(Bm(o),i===null)throw Error(n(387));p=o.pendingProps,E=o.memoizedState,v=E.element,Jp(i,o),cc(o,p,null,u);var I=o.memoizedState;if(p=I.element,E.isDehydrated)if(E={element:p,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},o.updateQueue.baseState=E,o.memoizedState=E,o.flags&256){v=rs(Error(n(423)),o),o=Fm(i,o,p,u,v);break e}else if(p!==v){v=rs(Error(n(424)),o),o=Fm(i,o,p,u,v);break e}else for(Si=go(o.stateNode.containerInfo.firstChild),Ei=o,Jn=!0,Zi=null,u=Zp(o,null,p,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ql(),p===v){o=Va(i,o,u);break e}Qr(i,o,p,u)}o=o.child}return o;case 5:return nm(o),i===null&&gf(o),p=o.type,v=o.pendingProps,E=i!==null?i.memoizedProps:null,I=v.children,lf(p,v)?I=null:E!==null&&lf(p,E)&&(o.flags|=32),Lm(i,o),Qr(i,o,I,u),o.child;case 6:return i===null&&gf(o),null;case 13:return Um(i,o,u);case 4:return Sf(o,o.stateNode.containerInfo),p=o.pendingProps,i===null?o.child=Jl(o,null,p,u):Qr(i,o,p,u),o.child;case 11:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),Rm(i,o,p,v,u);case 7:return Qr(i,o,o.pendingProps,u),o.child;case 8:return Qr(i,o,o.pendingProps.children,u),o.child;case 12:return Qr(i,o,o.pendingProps.children,u),o.child;case 10:e:{if(p=o.type._context,v=o.pendingProps,E=o.memoizedProps,I=v.value,qn(lc,p._currentValue),p._currentValue=I,E!==null)if(te(E.value,I)){if(E.children===v.children&&!si.current){o=Va(i,o,u);break e}}else for(E=o.child,E!==null&&(E.return=o);E!==null;){var X=E.dependencies;if(X!==null){I=E.child;for(var ae=X.firstContext;ae!==null;){if(ae.context===p){if(E.tag===1){ae=Ka(-1,u&-u),ae.tag=2;var ze=E.updateQueue;if(ze!==null){ze=ze.shared;var Qe=ze.pending;Qe===null?ae.next=ae:(ae.next=Qe.next,Qe.next=ae),ze.pending=ae}}E.lanes|=u,ae=E.alternate,ae!==null&&(ae.lanes|=u),xf(E.return,u,o),X.lanes|=u;break}ae=ae.next}}else if(E.tag===10)I=E.type===o.type?null:E.child;else if(E.tag===18){if(I=E.return,I===null)throw Error(n(341));I.lanes|=u,X=I.alternate,X!==null&&(X.lanes|=u),xf(I,u,o),I=E.sibling}else I=E.child;if(I!==null)I.return=E;else for(I=E;I!==null;){if(I===o){I=null;break}if(E=I.sibling,E!==null){E.return=I.return,I=E;break}I=I.return}E=I}Qr(i,o,v.children,u),o=o.child}return o;case 9:return v=o.type,p=o.pendingProps.children,ts(o,u),v=Fi(v),p=p(v),o.flags|=1,Qr(i,o,p,u),o.child;case 14:return p=o.type,v=Qi(p,o.pendingProps),v=Qi(p.type,v),Im(i,o,p,v,u);case 15:return Dm(i,o,o.type,o.pendingProps,u);case 17:return p=o.type,v=o.pendingProps,v=o.elementType===p?v:Qi(p,v),bc(i,o),o.tag=1,ui(p)?(i=!0,tc(o)):i=!1,ts(o,u),_m(o,p,v),zf(o,p,v,u),jf(null,o,p,!0,i,u);case 19:return $m(i,o,u);case 22:return Pm(i,o,u)}throw Error(n(156,o.tag))};function d1(i,o){return Ii(i,o)}function S5(i,o,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $i(i,o,u,p){return new S5(i,o,u,p)}function ld(i){return i=i.prototype,!(!i||!i.isReactComponent)}function _5(i){if(typeof i=="function")return ld(i)?1:0;if(i!=null){if(i=i.$$typeof,i===G)return 11;if(i===_e)return 14}return 2}function To(i,o){var u=i.alternate;return u===null?(u=$i(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&14680064,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u}function Oc(i,o,u,p,v,E){var I=2;if(p=i,typeof i=="function")ld(i)&&(I=1);else if(typeof i=="string")I=5;else e:switch(i){case ye:return wl(u.children,v,E,o);case Ee:I=8,v|=8;break;case K:return i=$i(12,u,o,v|2),i.elementType=K,i.lanes=E,i;case Pe:return i=$i(13,u,o,v),i.elementType=Pe,i.lanes=E,i;case Se:return i=$i(19,u,o,v),i.elementType=Se,i.lanes=E,i;case ft:return Mc(u,v,E,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:I=10;break e;case ne:I=9;break e;case G:I=11;break e;case _e:I=14;break e;case et:I=16,p=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return o=$i(I,u,o,v),o.elementType=i,o.type=p,o.lanes=E,o}function wl(i,o,u,p){return i=$i(7,i,p,o),i.lanes=u,i}function Mc(i,o,u,p){return i=$i(22,i,p,o),i.elementType=ft,i.lanes=u,i.stateNode={isHidden:!1},i}function sd(i,o,u){return i=$i(6,i,null,o),i.lanes=u,i}function ud(i,o,u){return o=$i(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function N5(i,o,u,p,v){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bi(0),this.expirationTimes=bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.identifierPrefix=p,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function cd(i,o,u,p,v,E,I,X,ae){return i=new N5(i,o,u,X,ae),o===1?(o=1,E===!0&&(o|=8)):o=0,E=$i(3,null,null,o),i.current=E,E.stateNode=i,E.memoizedState={element:p,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ef(E),i}function T5(i,o,u){var p=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yd.exports=$5(),yd.exports}var C1;function H5(){if(C1)return Bc;C1=1;var e=q5();return Bc.createRoot=e.createRoot,Bc.hydrateRoot=e.hydrateRoot,Bc}var K5=H5(),tu={},A1;function V5(){if(A1)return tu;A1=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.parse=s,tu.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,l=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function s(w,b){const _=new l,T=w.length;if(T<2)return _;const D=(b==null?void 0:b.decode)||m;let R=0;do{const F=w.indexOf("=",R);if(F===-1)break;const U=w.indexOf(";",R),oe=U===-1?T:U;if(F>oe){R=w.lastIndexOf(";",F-1)+1;continue}const ie=c(w,R,F),V=f(w,F,ie),ye=w.slice(ie,V);if(_[ye]===void 0){let Ee=c(w,F+1,oe),K=f(w,oe,Ee);const C=D(w.slice(Ee,K));_[ye]=C}R=oe+1}while(R_;){const T=w.charCodeAt(--b);if(T!==32&&T!==9)return b+1}return _}function d(w,b,_){const T=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(w))throw new TypeError(`argument name is invalid: ${w}`);const D=T(b);if(!t.test(D))throw new TypeError(`argument val is invalid: ${b}`);let R=w+"="+D;if(!_)return R;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);R+="; Max-Age="+_.maxAge}if(_.domain){if(!n.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);R+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);R+="; Path="+_.path}if(_.expires){if(!g(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);R+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(R+="; HttpOnly"),_.secure&&(R+="; Secure"),_.partitioned&&(R+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return R}function m(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function g(w){return a.call(w)==="[object Date]"}return tu}V5();/** * react-router v7.1.5 * * Copyright (c) Remix Software Inc. @@ -56,15 +56,15 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */var O1="popstate";function G5(e={}){function t(a,l){let{pathname:s="/",search:c="",hash:f=""}=Al(a.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),sh("",{pathname:s,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(a,l){let s=a.document.querySelector("base"),c="";if(s&&s.getAttribute("href")){let f=a.location.href,d=f.indexOf("#");c=d===-1?f:f.slice(0,d)}return c+"#"+(typeof l=="string"?l:hu(l))}function r(a,l){sa(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(l)})`)}return Y5(t,n,r,e)}function ur(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W5(){return Math.random().toString(36).substring(2,10)}function M1(e,t){return{usr:e.state,key:e.key,idx:t}}function sh(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Al(t):t,state:n,key:t&&t.key||r||W5()}}function hu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Al(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Y5(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,s=a.history,c="POP",f=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}function g(){c="POP";let D=m(),R=D==null?null:D-d;d=D,f&&f({action:c,location:T.location,delta:R})}function w(D,R){c="PUSH";let F=sh(T.location,D,R);n&&n(F,D),d=m()+1;let U=M1(F,d),le=T.createHref(F);try{s.pushState(U,"",le)}catch(ie){if(ie instanceof DOMException&&ie.name==="DataCloneError")throw ie;a.location.assign(le)}l&&f&&f({action:c,location:T.location,delta:1})}function b(D,R){c="REPLACE";let F=sh(T.location,D,R);n&&n(F,D),d=m();let U=M1(F,d),le=T.createHref(F);s.replaceState(U,"",le),l&&f&&f({action:c,location:T.location,delta:0})}function _(D){let R=a.location.origin!=="null"?a.location.origin:a.location.href,F=typeof D=="string"?D:hu(D);return F=F.replace(/ $/,"%20"),ur(R,`No window.location.(origin|href) available to create URL for href: ${F}`),new URL(F,R)}let T={get action(){return c},get location(){return e(a,s)},listen(D){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(O1,g),f=D,()=>{a.removeEventListener(O1,g),f=null}},createHref(D){return t(a,D)},createURL:_,encodeLocation(D){let R=_(D);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:b,go(D){return s.go(D)}};return T}function Ry(e,t,n="/"){return X5(e,t,n,!1)}function X5(e,t,n,r){let a=typeof t=="string"?Al(t):t,l=Lo(a.pathname||"/",n);if(l==null)return null;let s=Iy(e);Z5(s);let c=null;for(let f=0;c==null&&f{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};f.relativePath.startsWith("/")&&(ur(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let d=Ja([r,f.relativePath]),m=n.concat(f);l.children&&l.children.length>0&&(ur(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Iy(l.children,t,m,d)),!(l.path==null&&!l.index)&&t.push({path:d,score:ib(d,l.index),routesMeta:m})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))a(l,s);else for(let f of Dy(l.path))a(l,s,f)}),t}function Dy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let s=Dy(r.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),a&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function Z5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ab(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Q5=/^:[\w-]+$/,J5=3,eb=2,tb=1,nb=10,rb=-2,R1=e=>e==="*";function ib(e,t){let n=e.split("/"),r=n.length;return n.some(R1)&&(r+=rb),t&&(r+=eb),n.filter(a=>!R1(a)).reduce((a,l)=>a+(Q5.test(l)?J5:l===""?tb:nb),r)}function ab(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function ob(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",s=[];for(let c=0;c{if(m==="*"){let _=c[w]||"";s=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const b=c[w];return g&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function lb(e,t=!1,n=!0){sa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function sb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Lo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ub(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Al(e):e;return{pathname:n?n.startsWith("/")?n:cb(n,t):t,search:hb(r),hash:pb(a)}}function cb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function wd(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function fb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Py(e){let t=fb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ly(e,t,n,r=!1){let a;typeof e=="string"?a=Al(e):(a={...e},ur(!a.pathname||!a.pathname.includes("?"),wd("?","pathname","search",a)),ur(!a.pathname||!a.pathname.includes("#"),wd("#","pathname","hash",a)),ur(!a.search||!a.search.includes("#"),wd("#","search","hash",a)));let l=e===""||a.pathname==="",s=l?"/":a.pathname,c;if(s==null)c=n;else{let g=t.length-1;if(!r&&s.startsWith("..")){let w=s.split("/");for(;w[0]==="..";)w.shift(),g-=1;a.pathname=w.join("/")}c=g>=0?t[g]:"/"}let f=ub(a,c),d=s&&s!=="/"&&s.endsWith("/"),m=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Ja=e=>e.join("/").replace(/\/\/+/g,"/"),db=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var zy=["POST","PUT","PATCH","DELETE"];new Set(zy);var gb=["GET",...zy];new Set(gb);var xs=Y.createContext(null);xs.displayName="DataRouter";var A0=Y.createContext(null);A0.displayName="DataRouterState";var By=Y.createContext({isTransitioning:!1});By.displayName="ViewTransition";var yb=Y.createContext(new Map);yb.displayName="Fetchers";var vb=Y.createContext(null);vb.displayName="Await";var Na=Y.createContext(null);Na.displayName="Navigation";var _u=Y.createContext(null);_u.displayName="Location";var ca=Y.createContext({outlet:null,matches:[],isDataRoute:!1});ca.displayName="Route";var $h=Y.createContext(null);$h.displayName="RouteError";function bb(e,{relative:t}={}){ur(Nu(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=Y.useContext(Na),{hash:a,pathname:l,search:s}=Tu(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ja([n,l])),r.createHref({pathname:c,search:s,hash:a})}function Nu(){return Y.useContext(_u)!=null}function jo(){return ur(Nu(),"useLocation() may be used only in the context of a component."),Y.useContext(_u).location}var Fy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Uy(e){Y.useContext(Na).static||Y.useLayoutEffect(e)}function O0(){let{isDataRoute:e}=Y.useContext(ca);return e?Pb():wb()}function wb(){ur(Nu(),"useNavigate() may be used only in the context of a component.");let e=Y.useContext(xs),{basename:t,navigator:n}=Y.useContext(Na),{matches:r}=Y.useContext(ca),{pathname:a}=jo(),l=JSON.stringify(Py(r)),s=Y.useRef(!1);return Uy(()=>{s.current=!0}),Y.useCallback((f,d={})=>{if(sa(s.current,Fy),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=Ly(f,JSON.parse(l),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ja([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,l,a,e])}var xb=Y.createContext(null);function kb(e){let t=Y.useContext(ca).outlet;return t&&Y.createElement(xb.Provider,{value:e},t)}function Eb(){let{matches:e}=Y.useContext(ca),t=e[e.length-1];return t?t.params:{}}function Tu(e,{relative:t}={}){let{matches:n}=Y.useContext(ca),{pathname:r}=jo(),a=JSON.stringify(Py(n));return Y.useMemo(()=>Ly(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Sb(e,t){return jy(e,t)}function jy(e,t,n,r){var F;ur(Nu(),"useRoutes() may be used only in the context of a component.");let{navigator:a,static:l}=Y.useContext(Na),{matches:s}=Y.useContext(ca),c=s[s.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",g=c&&c.route;{let U=g&&g.path||"";$y(d,!g||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + */var O1="popstate";function G5(e={}){function t(a,l){let{pathname:s="/",search:c="",hash:f=""}=Al(a.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),sh("",{pathname:s,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(a,l){let s=a.document.querySelector("base"),c="";if(s&&s.getAttribute("href")){let f=a.location.href,d=f.indexOf("#");c=d===-1?f:f.slice(0,d)}return c+"#"+(typeof l=="string"?l:hu(l))}function r(a,l){sa(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(l)})`)}return Y5(t,n,r,e)}function ur(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W5(){return Math.random().toString(36).substring(2,10)}function M1(e,t){return{usr:e.state,key:e.key,idx:t}}function sh(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Al(t):t,state:n,key:t&&t.key||r||W5()}}function hu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Al(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Y5(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,s=a.history,c="POP",f=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}function g(){c="POP";let D=m(),R=D==null?null:D-d;d=D,f&&f({action:c,location:T.location,delta:R})}function w(D,R){c="PUSH";let F=sh(T.location,D,R);n&&n(F,D),d=m()+1;let U=M1(F,d),oe=T.createHref(F);try{s.pushState(U,"",oe)}catch(ie){if(ie instanceof DOMException&&ie.name==="DataCloneError")throw ie;a.location.assign(oe)}l&&f&&f({action:c,location:T.location,delta:1})}function b(D,R){c="REPLACE";let F=sh(T.location,D,R);n&&n(F,D),d=m();let U=M1(F,d),oe=T.createHref(F);s.replaceState(U,"",oe),l&&f&&f({action:c,location:T.location,delta:0})}function _(D){let R=a.location.origin!=="null"?a.location.origin:a.location.href,F=typeof D=="string"?D:hu(D);return F=F.replace(/ $/,"%20"),ur(R,`No window.location.(origin|href) available to create URL for href: ${F}`),new URL(F,R)}let T={get action(){return c},get location(){return e(a,s)},listen(D){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(O1,g),f=D,()=>{a.removeEventListener(O1,g),f=null}},createHref(D){return t(a,D)},createURL:_,encodeLocation(D){let R=_(D);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:b,go(D){return s.go(D)}};return T}function Ry(e,t,n="/"){return X5(e,t,n,!1)}function X5(e,t,n,r){let a=typeof t=="string"?Al(t):t,l=Lo(a.pathname||"/",n);if(l==null)return null;let s=Iy(e);Z5(s);let c=null;for(let f=0;c==null&&f{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};f.relativePath.startsWith("/")&&(ur(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let d=Ja([r,f.relativePath]),m=n.concat(f);l.children&&l.children.length>0&&(ur(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Iy(l.children,t,m,d)),!(l.path==null&&!l.index)&&t.push({path:d,score:ib(d,l.index),routesMeta:m})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))a(l,s);else for(let f of Dy(l.path))a(l,s,f)}),t}function Dy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let s=Dy(r.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),a&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function Z5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ab(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Q5=/^:[\w-]+$/,J5=3,eb=2,tb=1,nb=10,rb=-2,R1=e=>e==="*";function ib(e,t){let n=e.split("/"),r=n.length;return n.some(R1)&&(r+=rb),t&&(r+=eb),n.filter(a=>!R1(a)).reduce((a,l)=>a+(Q5.test(l)?J5:l===""?tb:nb),r)}function ab(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function ob(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",s=[];for(let c=0;c{if(m==="*"){let _=c[w]||"";s=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const b=c[w];return g&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function lb(e,t=!1,n=!0){sa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function sb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Lo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ub(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Al(e):e;return{pathname:n?n.startsWith("/")?n:cb(n,t):t,search:hb(r),hash:pb(a)}}function cb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function wd(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function fb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Py(e){let t=fb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ly(e,t,n,r=!1){let a;typeof e=="string"?a=Al(e):(a={...e},ur(!a.pathname||!a.pathname.includes("?"),wd("?","pathname","search",a)),ur(!a.pathname||!a.pathname.includes("#"),wd("#","pathname","hash",a)),ur(!a.search||!a.search.includes("#"),wd("#","search","hash",a)));let l=e===""||a.pathname==="",s=l?"/":a.pathname,c;if(s==null)c=n;else{let g=t.length-1;if(!r&&s.startsWith("..")){let w=s.split("/");for(;w[0]==="..";)w.shift(),g-=1;a.pathname=w.join("/")}c=g>=0?t[g]:"/"}let f=ub(a,c),d=s&&s!=="/"&&s.endsWith("/"),m=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Ja=e=>e.join("/").replace(/\/\/+/g,"/"),db=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var zy=["POST","PUT","PATCH","DELETE"];new Set(zy);var gb=["GET",...zy];new Set(gb);var xs=Y.createContext(null);xs.displayName="DataRouter";var A0=Y.createContext(null);A0.displayName="DataRouterState";var By=Y.createContext({isTransitioning:!1});By.displayName="ViewTransition";var yb=Y.createContext(new Map);yb.displayName="Fetchers";var vb=Y.createContext(null);vb.displayName="Await";var Na=Y.createContext(null);Na.displayName="Navigation";var _u=Y.createContext(null);_u.displayName="Location";var ca=Y.createContext({outlet:null,matches:[],isDataRoute:!1});ca.displayName="Route";var $h=Y.createContext(null);$h.displayName="RouteError";function bb(e,{relative:t}={}){ur(Nu(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=Y.useContext(Na),{hash:a,pathname:l,search:s}=Tu(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ja([n,l])),r.createHref({pathname:c,search:s,hash:a})}function Nu(){return Y.useContext(_u)!=null}function jo(){return ur(Nu(),"useLocation() may be used only in the context of a component."),Y.useContext(_u).location}var Fy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Uy(e){Y.useContext(Na).static||Y.useLayoutEffect(e)}function O0(){let{isDataRoute:e}=Y.useContext(ca);return e?Pb():wb()}function wb(){ur(Nu(),"useNavigate() may be used only in the context of a component.");let e=Y.useContext(xs),{basename:t,navigator:n}=Y.useContext(Na),{matches:r}=Y.useContext(ca),{pathname:a}=jo(),l=JSON.stringify(Py(r)),s=Y.useRef(!1);return Uy(()=>{s.current=!0}),Y.useCallback((f,d={})=>{if(sa(s.current,Fy),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=Ly(f,JSON.parse(l),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ja([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,l,a,e])}var xb=Y.createContext(null);function kb(e){let t=Y.useContext(ca).outlet;return t&&Y.createElement(xb.Provider,{value:e},t)}function Eb(){let{matches:e}=Y.useContext(ca),t=e[e.length-1];return t?t.params:{}}function Tu(e,{relative:t}={}){let{matches:n}=Y.useContext(ca),{pathname:r}=jo(),a=JSON.stringify(Py(n));return Y.useMemo(()=>Ly(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Sb(e,t){return jy(e,t)}function jy(e,t,n,r){var F;ur(Nu(),"useRoutes() may be used only in the context of a component.");let{navigator:a,static:l}=Y.useContext(Na),{matches:s}=Y.useContext(ca),c=s[s.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",g=c&&c.route;{let U=g&&g.path||"";$y(d,!g||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let w=jo(),b;if(t){let U=typeof t=="string"?Al(t):t;ur(m==="/"||((F=U.pathname)==null?void 0:F.startsWith(m)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${U.pathname}" was given in the \`location\` prop.`),b=U}else b=w;let _=b.pathname||"/",T=_;if(m!=="/"){let U=m.replace(/^\//,"").split("/");T="/"+_.replace(/^\//,"").split("/").slice(U.length).join("/")}let D=!l&&n&&n.matches&&n.matches.length>0?n.matches:Ry(e,{pathname:T});sa(g||D!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),sa(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let R=Ab(D&&D.map(U=>Object.assign({},U,{params:Object.assign({},f,U.params),pathname:Ja([m,a.encodeLocation?a.encodeLocation(U.pathname).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?m:Ja([m,a.encodeLocation?a.encodeLocation(U.pathnameBase).pathname:U.pathnameBase])})),s,n,r);return t&&R?Y.createElement(_u.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},R):R}function _b(){let e=Db(),t=mb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=Y.createElement(Y.Fragment,null,Y.createElement("p",null,"💿 Hey developer 👋"),Y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Y.createElement("code",{style:l},"ErrorBoundary")," or"," ",Y.createElement("code",{style:l},"errorElement")," prop on your route.")),Y.createElement(Y.Fragment,null,Y.createElement("h2",null,"Unexpected Application Error!"),Y.createElement("h3",{style:{fontStyle:"italic"}},t),n?Y.createElement("pre",{style:a},n):null,s)}var Nb=Y.createElement(_b,null),Tb=class extends Y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?Y.createElement(ca.Provider,{value:this.props.routeContext},Y.createElement($h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cb({routeContext:e,match:t,children:n}){let r=Y.useContext(xs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),Y.createElement(ca.Provider,{value:e},n)}function Ab(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=n==null?void 0:n.errors;if(l!=null){let f=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);ur(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,d,m)=>{let g,w=!1,b=null,_=null;n&&(g=l&&d.route.id?l[d.route.id]:void 0,b=d.route.errorElement||Nb,s&&(c<0&&m===0?($y("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,_=null):c===m&&(w=!0,_=d.route.hydrateFallbackElement||null)));let T=t.concat(a.slice(0,m+1)),D=()=>{let R;return g?R=b:w?R=_:d.route.Component?R=Y.createElement(d.route.Component,null):d.route.element?R=d.route.element:R=f,Y.createElement(Cb,{match:d,routeContext:{outlet:f,matches:T,isDataRoute:n!=null},children:R})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?Y.createElement(Tb,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:D(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):D()},null)}function qh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ob(e){let t=Y.useContext(xs);return ur(t,qh(e)),t}function Mb(e){let t=Y.useContext(A0);return ur(t,qh(e)),t}function Rb(e){let t=Y.useContext(ca);return ur(t,qh(e)),t}function Hh(e){let t=Rb(e),n=t.matches[t.matches.length-1];return ur(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ib(){return Hh("useRouteId")}function Db(){var r;let e=Y.useContext($h),t=Mb("useRouteError"),n=Hh("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Pb(){let{router:e}=Ob("useNavigate"),t=Hh("useNavigate"),n=Y.useRef(!1);return Uy(()=>{n.current=!0}),Y.useCallback(async(a,l={})=>{sa(n.current,Fy),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...l}))},[e,t])}var I1={};function $y(e,t,n){!t&&!I1[e]&&(I1[e]=!0,sa(!1,n))}Y.memo(Lb);function Lb({routes:e,future:t,state:n}){return jy(e,void 0,n,t)}function zb(e){return kb(e.context)}function l0(e){ur(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Bb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1}){ur(!Nu(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=Y.useMemo(()=>({basename:s,navigator:a,static:l,future:{}}),[s,a,l]);typeof n=="string"&&(n=Al(n));let{pathname:f="/",search:d="",hash:m="",state:g=null,key:w="default"}=n,b=Y.useMemo(()=>{let _=Lo(f,s);return _==null?null:{location:{pathname:_,search:d,hash:m,state:g,key:w},navigationType:r}},[s,f,d,m,g,w,r]);return sa(b!=null,` is not able to match the URL "${f}${d}${m}" because it does not start with the basename, so the won't render anything.`),b==null?null:Y.createElement(Na.Provider,{value:c},Y.createElement(_u.Provider,{children:t,value:b}))}function Fb({children:e,location:t}){return Sb(uh(e),t)}function uh(e,t=[]){let n=[];return Y.Children.forEach(e,(r,a)=>{if(!Y.isValidElement(r))return;let l=[...t,a];if(r.type===Y.Fragment){n.push.apply(n,uh(r.props.children,l));return}ur(r.type===l0,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),ur(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=uh(r.props.children,l)),n.push(s)}),n}var s0="get",u0="application/x-www-form-urlencoded";function M0(e){return e!=null&&typeof e.tagName=="string"}function Ub(e){return M0(e)&&e.tagName.toLowerCase()==="button"}function jb(e){return M0(e)&&e.tagName.toLowerCase()==="form"}function $b(e){return M0(e)&&e.tagName.toLowerCase()==="input"}function qb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Hb(e,t){return e.button===0&&(!t||t==="_self")&&!qb(e)}var Fc=null;function Kb(){if(Fc===null)try{new FormData(document.createElement("form"),0),Fc=!1}catch{Fc=!0}return Fc}var Vb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xd(e){return e!=null&&!Vb.has(e)?(sa(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${u0}"`),null):e}function Gb(e,t){let n,r,a,l,s;if(jb(e)){let c=e.getAttribute("action");r=c?Lo(c,t):null,n=e.getAttribute("method")||s0,a=xd(e.getAttribute("enctype"))||u0,l=new FormData(e)}else if(Ub(e)||$b(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a