aee0f09db8
- Datafabrik: Dockerfile fix, agentorkestrering fungerar - Vision: Identify-modell, FAISS, OCR alla testade - API: Alla 7 integrationstester passerade - Upplösare: Entitetsupplösning verifierad
142 lines
277 KiB
JavaScript
142 lines
277 KiB
JavaScript
function Wh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mc={exports:{}},Oo={},Uc={exports:{}},z={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Jr=Symbol.for("react.element"),Kh=Symbol.for("react.portal"),Xh=Symbol.for("react.fragment"),Jh=Symbol.for("react.strict_mode"),Gh=Symbol.for("react.profiler"),Yh=Symbol.for("react.provider"),Zh=Symbol.for("react.context"),ep=Symbol.for("react.forward_ref"),tp=Symbol.for("react.suspense"),np=Symbol.for("react.memo"),rp=Symbol.for("react.lazy"),$u=Symbol.iterator;function ip(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var zc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bc=Object.assign,Bc={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||zc}Jn.prototype.isReactComponent={};Jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $c(){}$c.prototype=Jn.prototype;function Al(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||zc}var Dl=Al.prototype=new $c;Dl.constructor=Al;bc(Dl,Jn.prototype);Dl.isPureReactComponent=!0;var Qu=Array.isArray,Qc=Object.prototype.hasOwnProperty,Il={current:null},Hc={key:!0,ref:!0,__self:!0,__source:!0};function qc(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Qc.call(t,r)&&!Hc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),a=0;a<l;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Jr,type:e,key:o,ref:s,props:i,_owner:Il.current}}function op(e,t){return{$$typeof:Jr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ml(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jr}function sp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hu=/\/+/g;function Go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sp(""+e.key):t.toString(36)}function Oi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Jr:case Kh:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Go(s,0):r,Qu(i)?(n="",e!=null&&(n=e.replace(Hu,"$&/")+"/"),Oi(i,t,n,"",function(a){return a})):i!=null&&(Ml(i)&&(i=op(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Hu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Qu(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Go(o,l);s+=Oi(o,t,n,u,i)}else if(u=ip(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Go(o,l++),s+=Oi(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ai(e,t,n){if(e==null)return e;var r=[],i=0;return Oi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function lp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Oe={current:null},Pi={transition:null},up={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Pi,ReactCurrentOwner:Il};function Vc(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:ai,forEach:function(e,t,n){ai(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ai(e,function(){t++}),t},toArray:function(e){return ai(e,function(t){return t})||[]},only:function(e){if(!Ml(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Jn;z.Fragment=Xh;z.Profiler=Gh;z.PureComponent=Al;z.StrictMode=Jh;z.Suspense=tp;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=up;z.act=Vc;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bc({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Il.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Qc.call(t,u)&&!Hc.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var a=0;a<u;a++)l[a]=arguments[a+2];r.children=l}return{$$typeof:Jr,type:e.type,key:i,ref:o,props:r,_owner:s}};z.createContext=function(e){return e={$$typeof:Zh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Yh,_context:e},e.Consumer=e};z.createElement=qc;z.createFactory=function(e){var t=qc.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:ep,render:e}};z.isValidElement=Ml;z.lazy=function(e){return{$$typeof:rp,_payload:{_status:-1,_result:e},_init:lp}};z.memo=function(e,t){return{$$typeof:np,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Pi.transition;Pi.transition={};try{e()}finally{Pi.transition=t}};z.unstable_act=Vc;z.useCallback=function(e,t){return Oe.current.useCallback(e,t)};z.useContext=function(e){return Oe.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Oe.current.useDeferredValue(e)};z.useEffect=function(e,t){return Oe.current.useEffect(e,t)};z.useId=function(){return Oe.current.useId()};z.useImperativeHandle=function(e,t,n){return Oe.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Oe.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Oe.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Oe.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Oe.current.useReducer(e,t,n)};z.useRef=function(e){return Oe.current.useRef(e)};z.useState=function(e){return Oe.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Oe.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Oe.current.useTransition()};z.version="18.3.1";Uc.exports=z;var O=Uc.exports;const ie=Ic(O),ap=Wh({__proto__:null,default:ie},[O]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var cp=O,fp=Symbol.for("react.element"),dp=Symbol.for("react.fragment"),hp=Object.prototype.hasOwnProperty,pp=cp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mp={key:!0,ref:!0,__self:!0,__source:!0};function Wc(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)hp.call(t,r)&&!mp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:fp,type:e,key:o,ref:s,props:i,_owner:pp.current}}Oo.Fragment=dp;Oo.jsx=Wc;Oo.jsxs=Wc;Mc.exports=Oo;var p=Mc.exports,Ps={},Kc={exports:{}},Qe={},Xc={exports:{}},Jc={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(j,F){var A=j.length;j.push(F);e:for(;0<A;){var I=A-1>>>1,H=j[I];if(0<i(H,F))j[I]=F,j[A]=H,A=I;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var F=j[0],A=j.pop();if(A!==F){j[0]=A;e:for(var I=0,H=j.length,Ge=H>>>1;I<Ge;){var Me=2*(I+1)-1,wn=j[Me],b=Me+1,de=j[b];if(0>i(wn,A))b<H&&0>i(de,wn)?(j[I]=de,j[b]=A,I=b):(j[I]=wn,j[Me]=A,I=Me);else if(b<H&&0>i(de,A))j[I]=de,j[b]=A,I=b;else break e}}return F}function i(j,F){var A=j.sortIndex-F.sortIndex;return A!==0?A:j.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],a=[],c=1,f=null,v=3,g=!1,x=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var F=n(a);F!==null;){if(F.callback===null)r(a);else if(F.startTime<=j)r(a),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(a)}}function S(j){if(y=!1,m(j),!x)if(n(u)!==null)x=!0,oe(k);else{var F=n(a);F!==null&&Ie(S,F.startTime-j)}}function k(j,F){x=!1,y&&(y=!1,d(P),P=-1),g=!0;var A=v;try{for(m(F),f=n(u);f!==null&&(!(f.expirationTime>F)||j&&!q());){var I=f.callback;if(typeof I=="function"){f.callback=null,v=f.priorityLevel;var H=I(f.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(u)&&r(u),m(F)}else r(u);f=n(u)}if(f!==null)var Ge=!0;else{var Me=n(a);Me!==null&&Ie(S,Me.startTime-F),Ge=!1}return Ge}finally{f=null,v=A,g=!1}}var E=!1,R=null,P=-1,D=5,L=-1;function q(){return!(e.unstable_now()-L<D)}function ae(){if(R!==null){var j=e.unstable_now();L=j;var F=!0;try{F=R(!0,j)}finally{F?ge():(E=!1,R=null)}}else E=!1}var ge;if(typeof h=="function")ge=function(){h(ae)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,De=ee.port2;ee.port1.onmessage=ae,ge=function(){De.postMessage(null)}}else ge=function(){C(ae,0)};function oe(j){R=j,E||(E=!0,ge())}function Ie(j,F){P=C(function(){j(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,oe(k))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(j){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var A=v;v=F;try{return j()}finally{v=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,F){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var A=v;v=j;try{return F()}finally{v=A}},e.unstable_scheduleCallback=function(j,F,A){var I=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?I+A:I):A=I,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=A+H,j={id:c++,callback:F,priorityLevel:j,startTime:A,expirationTime:H,sortIndex:-1},A>I?(j.sortIndex=A,t(a,j),n(u)===null&&j===n(a)&&(y?(d(P),P=-1):y=!0,Ie(S,A-I))):(j.sortIndex=H,t(u,j),x||g||(x=!0,oe(k))),j},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(j){var F=v;return function(){var A=v;v=F;try{return j.apply(this,arguments)}finally{v=A}}}})(Jc);Xc.exports=Jc;var vp=Xc.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var yp=O,$e=vp;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gc=new Set,Nr={};function vn(e,t){bn(e,t),bn(e+"Capture",t)}function bn(e,t){for(Nr[e]=t,e=0;e<t.length;e++)Gc.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=Object.prototype.hasOwnProperty,gp=/^[: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]*$/,qu={},Vu={};function wp(e){return js.call(Vu,e)?!0:js.call(qu,e)?!1:gp.test(e)?Vu[e]=!0:(qu[e]=!0,!1)}function xp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sp(e,t,n,r){if(t===null||typeof t>"u"||xp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Pe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ye[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function zl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ul,zl);ye[t]=new Pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ul,zl);ye[t]=new Pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ul,zl);ye[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function bl(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Sp(t,n,i,r)&&(n=null),r||i===null?wp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var kt=yp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ci=Symbol.for("react.element"),En=Symbol.for("react.portal"),Cn=Symbol.for("react.fragment"),Bl=Symbol.for("react.strict_mode"),Ns=Symbol.for("react.profiler"),Yc=Symbol.for("react.provider"),Zc=Symbol.for("react.context"),$l=Symbol.for("react.forward_ref"),Ts=Symbol.for("react.suspense"),Ls=Symbol.for("react.suspense_list"),Ql=Symbol.for("react.memo"),Ot=Symbol.for("react.lazy"),ef=Symbol.for("react.offscreen"),Wu=Symbol.iterator;function or(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Object.assign,Yo;function vr(e){if(Yo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yo=t&&t[1]||""}return`
|
||
`+Yo+e}var Zo=!1;function es(e,t){if(!e||Zo)return"";Zo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
|
||
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Ep(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=es(e.type,!1),e;case 11:return e=es(e.type.render,!1),e;case 1:return e=es(e.type,!0),e;default:return""}}function Fs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case En:return"Portal";case Ns:return"Profiler";case Bl:return"StrictMode";case Ts:return"Suspense";case Ls:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zc:return(e.displayName||"Context")+".Consumer";case Yc:return(e._context.displayName||"Context")+".Provider";case $l:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ql:return t=e.displayName||null,t!==null?t:Fs(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Fs(e(t))}catch{}}return null}function Cp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fs(t);case 8:return t===Bl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kp(e){var t=tf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=kp(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function As(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rf(e,t){t=t.checked,t!=null&&bl(e,"checked",t,!1)}function Ds(e,t){rf(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Is(e,t.type,n):t.hasOwnProperty("defaultValue")&&Is(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Is(e,t,n){(t!=="number"||qi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function An(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ms(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ju(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(yr(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function of(e,t){var n=Ht(t.value),r=Ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Us(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var di,lf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(di=di||document.createElement("div"),di.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xr={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},Rp=["Webkit","ms","Moz","O"];Object.keys(xr).forEach(function(e){Rp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xr[t]=xr[e]})});function uf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xr.hasOwnProperty(e)&&xr[e]?(""+t).trim():t+"px"}function af(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=uf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _p=Z({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 zs(e,t){if(t){if(_p[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function bs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bs=null;function Hl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $s=null,Dn=null,In=null;function Yu(e){if(e=Zr(e)){if(typeof $s!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Lo(t),$s(e.stateNode,e.type,t))}}function cf(e){Dn?In?In.push(e):In=[e]:Dn=e}function ff(){if(Dn){var e=Dn,t=In;if(In=Dn=null,Yu(e),t)for(e=0;e<t.length;e++)Yu(t[e])}}function df(e,t){return e(t)}function hf(){}var ts=!1;function pf(e,t,n){if(ts)return e(t,n);ts=!0;try{return df(e,t,n)}finally{ts=!1,(Dn!==null||In!==null)&&(hf(),ff())}}function Lr(e,t){var n=e.stateNode;if(n===null)return null;var r=Lo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Qs=!1;if(xt)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){Qs=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Qs=!1}function Op(e,t,n,r,i,o,s,l,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var Sr=!1,Vi=null,Wi=!1,Hs=null,Pp={onError:function(e){Sr=!0,Vi=e}};function jp(e,t,n,r,i,o,s,l,u){Sr=!1,Vi=null,Op.apply(Pp,arguments)}function Np(e,t,n,r,i,o,s,l,u){if(jp.apply(this,arguments),Sr){if(Sr){var a=Vi;Sr=!1,Vi=null}else throw Error(_(198));Wi||(Wi=!0,Hs=a)}}function yn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mf(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zu(e){if(yn(e)!==e)throw Error(_(188))}function Tp(e){var t=e.alternate;if(!t){if(t=yn(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Zu(i),e;if(o===r)return Zu(i),t;o=o.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function vf(e){return e=Tp(e),e!==null?yf(e):null}function yf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yf(e);if(t!==null)return t;e=e.sibling}return null}var gf=$e.unstable_scheduleCallback,ea=$e.unstable_cancelCallback,Lp=$e.unstable_shouldYield,Fp=$e.unstable_requestPaint,re=$e.unstable_now,Ap=$e.unstable_getCurrentPriorityLevel,ql=$e.unstable_ImmediatePriority,wf=$e.unstable_UserBlockingPriority,Ki=$e.unstable_NormalPriority,Dp=$e.unstable_LowPriority,xf=$e.unstable_IdlePriority,Po=null,ft=null;function Ip(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Po,e,void 0,(e.current.flags&128)===128)}catch{}}var nt=Math.clz32?Math.clz32:zp,Mp=Math.log,Up=Math.LN2;function zp(e){return e>>>=0,e===0?32:31-(Mp(e)/Up|0)|0}var hi=64,pi=4194304;function gr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=gr(l):(o&=s,o!==0&&(r=gr(o)))}else s=n&~i,s!==0?r=gr(s):o!==0&&(r=gr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-nt(t),i=1<<n,r|=e[n],t&=~i;return r}function bp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-nt(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=bp(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function qs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sf(){var e=hi;return hi<<=1,!(hi&4194240)&&(hi=64),e}function ns(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nt(t),e[t]=n}function $p(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-nt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Vl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Q=0;function Ef(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Cf,Wl,kf,Rf,_f,Vs=!1,mi=[],Dt=null,It=null,Mt=null,Fr=new Map,Ar=new Map,Nt=[],Qp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ta(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function lr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Zr(t),t!==null&&Wl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hp(e,t,n,r,i){switch(t){case"focusin":return Dt=lr(Dt,e,t,n,r,i),!0;case"dragenter":return It=lr(It,e,t,n,r,i),!0;case"mouseover":return Mt=lr(Mt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Fr.set(o,lr(Fr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ar.set(o,lr(Ar.get(o)||null,e,t,n,r,i)),!0}return!1}function Of(e){var t=en(e.target);if(t!==null){var n=yn(t);if(n!==null){if(t=n.tag,t===13){if(t=mf(n),t!==null){e.blockedOn=t,_f(e.priority,function(){kf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bs=r,n.target.dispatchEvent(r),Bs=null}else return t=Zr(n),t!==null&&Wl(t),e.blockedOn=n,!1;t.shift()}return!0}function na(e,t,n){ji(e)&&n.delete(t)}function qp(){Vs=!1,Dt!==null&&ji(Dt)&&(Dt=null),It!==null&&ji(It)&&(It=null),Mt!==null&&ji(Mt)&&(Mt=null),Fr.forEach(na),Ar.forEach(na)}function ur(e,t){e.blockedOn===t&&(e.blockedOn=null,Vs||(Vs=!0,$e.unstable_scheduleCallback($e.unstable_NormalPriority,qp)))}function Dr(e){function t(i){return ur(i,e)}if(0<mi.length){ur(mi[0],e);for(var n=1;n<mi.length;n++){var r=mi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dt!==null&&ur(Dt,e),It!==null&&ur(It,e),Mt!==null&&ur(Mt,e),Fr.forEach(t),Ar.forEach(t),n=0;n<Nt.length;n++)r=Nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&(n=Nt[0],n.blockedOn===null);)Of(n),n.blockedOn===null&&Nt.shift()}var Mn=kt.ReactCurrentBatchConfig,Ji=!0;function Vp(e,t,n,r){var i=Q,o=Mn.transition;Mn.transition=null;try{Q=1,Kl(e,t,n,r)}finally{Q=i,Mn.transition=o}}function Wp(e,t,n,r){var i=Q,o=Mn.transition;Mn.transition=null;try{Q=4,Kl(e,t,n,r)}finally{Q=i,Mn.transition=o}}function Kl(e,t,n,r){if(Ji){var i=Ws(e,t,n,r);if(i===null)ds(e,t,r,Gi,n),ta(e,r);else if(Hp(i,e,t,n,r))r.stopPropagation();else if(ta(e,r),t&4&&-1<Qp.indexOf(e)){for(;i!==null;){var o=Zr(i);if(o!==null&&Cf(o),o=Ws(e,t,n,r),o===null&&ds(e,t,r,Gi,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ds(e,t,r,null,n)}}var Gi=null;function Ws(e,t,n,r){if(Gi=null,e=Hl(r),e=en(e),e!==null)if(t=yn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gi=e,null}function Pf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ap()){case ql:return 1;case wf:return 4;case Ki:case Dp:return 16;case xf:return 536870912;default:return 16}default:return 16}}var Lt=null,Xl=null,Ni=null;function jf(){if(Ni)return Ni;var e,t=Xl,n=t.length,r,i="value"in Lt?Lt.value:Lt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Ni=i.slice(e,1<r?1-r:void 0)}function Ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vi(){return!0}function ra(){return!1}function He(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?vi:ra,this.isPropagationStopped=ra,this}return Z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=He(Gn),Yr=Z({},Gn,{view:0,detail:0}),Kp=He(Yr),rs,is,ar,jo=Z({},Yr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ar&&(ar&&e.type==="mousemove"?(rs=e.screenX-ar.screenX,is=e.screenY-ar.screenY):is=rs=0,ar=e),rs)},movementY:function(e){return"movementY"in e?e.movementY:is}}),ia=He(jo),Xp=Z({},jo,{dataTransfer:0}),Jp=He(Xp),Gp=Z({},Yr,{relatedTarget:0}),os=He(Gp),Yp=Z({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Zp=He(Yp),em=Z({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tm=He(em),nm=Z({},Gn,{data:0}),oa=He(nm),rm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},im={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},om={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=om[e])?!!t[e]:!1}function Gl(){return sm}var lm=Z({},Yr,{key:function(e){if(e.key){var t=rm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?im[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gl,charCode:function(e){return e.type==="keypress"?Ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),um=He(lm),am=Z({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sa=He(am),cm=Z({},Yr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gl}),fm=He(cm),dm=Z({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),hm=He(dm),pm=Z({},jo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mm=He(pm),vm=[9,13,27,32],Yl=xt&&"CompositionEvent"in window,Er=null;xt&&"documentMode"in document&&(Er=document.documentMode);var ym=xt&&"TextEvent"in window&&!Er,Nf=xt&&(!Yl||Er&&8<Er&&11>=Er),la=" ",ua=!1;function Tf(e,t){switch(e){case"keyup":return vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function gm(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(ua=!0,la);case"textInput":return e=t.data,e===la&&ua?null:e;default:return null}}function wm(e,t){if(kn)return e==="compositionend"||!Yl&&Tf(e,t)?(e=jf(),Ni=Xl=Lt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nf&&t.locale!=="ko"?null:t.data;default:return null}}var xm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function aa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xm[e.type]:t==="textarea"}function Ff(e,t,n,r){cf(r),t=Yi(t,"onChange"),0<t.length&&(n=new Jl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Cr=null,Ir=null;function Sm(e){Hf(e,0)}function No(e){var t=On(e);if(nf(t))return e}function Em(e,t){if(e==="change")return t}var Af=!1;if(xt){var ss;if(xt){var ls="oninput"in document;if(!ls){var ca=document.createElement("div");ca.setAttribute("oninput","return;"),ls=typeof ca.oninput=="function"}ss=ls}else ss=!1;Af=ss&&(!document.documentMode||9<document.documentMode)}function fa(){Cr&&(Cr.detachEvent("onpropertychange",Df),Ir=Cr=null)}function Df(e){if(e.propertyName==="value"&&No(Ir)){var t=[];Ff(t,Ir,e,Hl(e)),pf(Sm,t)}}function Cm(e,t,n){e==="focusin"?(fa(),Cr=t,Ir=n,Cr.attachEvent("onpropertychange",Df)):e==="focusout"&&fa()}function km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return No(Ir)}function Rm(e,t){if(e==="click")return No(t)}function _m(e,t){if(e==="input"||e==="change")return No(t)}function Om(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:Om;function Mr(e,t){if(ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!js.call(t,i)||!ot(e[i],t[i]))return!1}return!0}function da(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ha(e,t){var n=da(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=da(n)}}function If(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?If(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mf(){for(var e=window,t=qi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qi(e.document)}return t}function Zl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pm(e){var t=Mf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&If(n.ownerDocument.documentElement,n)){if(r!==null&&Zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ha(n,o);var s=ha(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jm=xt&&"documentMode"in document&&11>=document.documentMode,Rn=null,Ks=null,kr=null,Xs=!1;function pa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xs||Rn==null||Rn!==qi(r)||(r=Rn,"selectionStart"in r&&Zl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&Mr(kr,r)||(kr=r,r=Yi(Ks,"onSelect"),0<r.length&&(t=new Jl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Rn)))}function yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _n={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionend:yi("Transition","TransitionEnd")},us={},Uf={};xt&&(Uf=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);function To(e){if(us[e])return us[e];if(!_n[e])return e;var t=_n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Uf)return us[e]=t[n];return e}var zf=To("animationend"),bf=To("animationiteration"),Bf=To("animationstart"),$f=To("transitionend"),Qf=new Map,ma="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Vt(e,t){Qf.set(e,t),vn(t,[e])}for(var as=0;as<ma.length;as++){var cs=ma[as],Nm=cs.toLowerCase(),Tm=cs[0].toUpperCase()+cs.slice(1);Vt(Nm,"on"+Tm)}Vt(zf,"onAnimationEnd");Vt(bf,"onAnimationIteration");Vt(Bf,"onAnimationStart");Vt("dblclick","onDoubleClick");Vt("focusin","onFocus");Vt("focusout","onBlur");Vt($f,"onTransitionEnd");bn("onMouseEnter",["mouseout","mouseover"]);bn("onMouseLeave",["mouseout","mouseover"]);bn("onPointerEnter",["pointerout","pointerover"]);bn("onPointerLeave",["pointerout","pointerover"]);vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lm=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function va(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Np(r,t,void 0,e),e.currentTarget=null}function Hf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,a=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;va(i,l,a),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,a=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;va(i,l,a),o=u}}}if(Wi)throw e=Hs,Wi=!1,Hs=null,e}function W(e,t){var n=t[el];n===void 0&&(n=t[el]=new Set);var r=e+"__bubble";n.has(r)||(qf(t,e,2,!1),n.add(r))}function fs(e,t,n){var r=0;t&&(r|=4),qf(n,e,r,t)}var gi="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[gi]){e[gi]=!0,Gc.forEach(function(n){n!=="selectionchange"&&(Lm.has(n)||fs(n,!1,e),fs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gi]||(t[gi]=!0,fs("selectionchange",!1,t))}}function qf(e,t,n,r){switch(Pf(t)){case 1:var i=Vp;break;case 4:i=Wp;break;default:i=Kl}n=i.bind(null,t,n,e),i=void 0,!Qs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ds(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=en(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}pf(function(){var a=o,c=Hl(n),f=[];e:{var v=Qf.get(e);if(v!==void 0){var g=Jl,x=e;switch(e){case"keypress":if(Ti(n)===0)break e;case"keydown":case"keyup":g=um;break;case"focusin":x="focus",g=os;break;case"focusout":x="blur",g=os;break;case"beforeblur":case"afterblur":g=os;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=ia;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Jp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=fm;break;case zf:case bf:case Bf:g=Zp;break;case $f:g=hm;break;case"scroll":g=Kp;break;case"wheel":g=mm;break;case"copy":case"cut":case"paste":g=tm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=sa}var y=(t&4)!==0,C=!y&&e==="scroll",d=y?v!==null?v+"Capture":null:v;y=[];for(var h=a,m;h!==null;){m=h;var S=m.stateNode;if(m.tag===5&&S!==null&&(m=S,d!==null&&(S=Lr(h,d),S!=null&&y.push(zr(h,S,m)))),C)break;h=h.return}0<y.length&&(v=new g(v,x,null,n,c),f.push({event:v,listeners:y}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==Bs&&(x=n.relatedTarget||n.fromElement)&&(en(x)||x[St]))break e;if((g||v)&&(v=c.window===c?c:(v=c.ownerDocument)?v.defaultView||v.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=a,x=x?en(x):null,x!==null&&(C=yn(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=a),g!==x)){if(y=ia,S="onMouseLeave",d="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=sa,S="onPointerLeave",d="onPointerEnter",h="pointer"),C=g==null?v:On(g),m=x==null?v:On(x),v=new y(S,h+"leave",g,n,c),v.target=C,v.relatedTarget=m,S=null,en(c)===a&&(y=new y(d,h+"enter",x,n,c),y.target=m,y.relatedTarget=C,S=y),C=S,g&&x)t:{for(y=g,d=x,h=0,m=y;m;m=xn(m))h++;for(m=0,S=d;S;S=xn(S))m++;for(;0<h-m;)y=xn(y),h--;for(;0<m-h;)d=xn(d),m--;for(;h--;){if(y===d||d!==null&&y===d.alternate)break t;y=xn(y),d=xn(d)}y=null}else y=null;g!==null&&ya(f,v,g,y,!1),x!==null&&C!==null&&ya(f,C,x,y,!0)}}e:{if(v=a?On(a):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var k=Em;else if(aa(v))if(Af)k=_m;else{k=km;var E=Cm}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(k=Rm);if(k&&(k=k(e,a))){Ff(f,k,n,c);break e}E&&E(e,v,a),e==="focusout"&&(E=v._wrapperState)&&E.controlled&&v.type==="number"&&Is(v,"number",v.value)}switch(E=a?On(a):window,e){case"focusin":(aa(E)||E.contentEditable==="true")&&(Rn=E,Ks=a,kr=null);break;case"focusout":kr=Ks=Rn=null;break;case"mousedown":Xs=!0;break;case"contextmenu":case"mouseup":case"dragend":Xs=!1,pa(f,n,c);break;case"selectionchange":if(jm)break;case"keydown":case"keyup":pa(f,n,c)}var R;if(Yl)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else kn?Tf(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Nf&&n.locale!=="ko"&&(kn||P!=="onCompositionStart"?P==="onCompositionEnd"&&kn&&(R=jf()):(Lt=c,Xl="value"in Lt?Lt.value:Lt.textContent,kn=!0)),E=Yi(a,P),0<E.length&&(P=new oa(P,e,null,n,c),f.push({event:P,listeners:E}),R?P.data=R:(R=Lf(n),R!==null&&(P.data=R)))),(R=ym?gm(e,n):wm(e,n))&&(a=Yi(a,"onBeforeInput"),0<a.length&&(c=new oa("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:a}),c.data=R))}Hf(f,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Lr(e,n),o!=null&&r.unshift(zr(e,o,i)),o=Lr(e,t),o!=null&&r.push(zr(e,o,i))),e=e.return}return r}function xn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ya(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,a=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&a!==null&&(l=a,i?(u=Lr(n,o),u!=null&&s.unshift(zr(n,u,l))):i||(u=Lr(n,o),u!=null&&s.push(zr(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Fm=/\r\n?/g,Am=/\u0000|\uFFFD/g;function ga(e){return(typeof e=="string"?e:""+e).replace(Fm,`
|
||
`).replace(Am,"")}function wi(e,t,n){if(t=ga(t),ga(e)!==t&&n)throw Error(_(425))}function Zi(){}var Js=null,Gs=null;function Ys(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zs=typeof setTimeout=="function"?setTimeout:void 0,Dm=typeof clearTimeout=="function"?clearTimeout:void 0,wa=typeof Promise=="function"?Promise:void 0,Im=typeof queueMicrotask=="function"?queueMicrotask:typeof wa<"u"?function(e){return wa.resolve(null).then(e).catch(Mm)}:Zs;function Mm(e){setTimeout(function(){throw e})}function hs(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Dr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Dr(t)}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Yn,br="__reactProps$"+Yn,St="__reactContainer$"+Yn,el="__reactEvents$"+Yn,Um="__reactListeners$"+Yn,zm="__reactHandles$"+Yn;function en(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[St]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xa(e);e!==null;){if(n=e[ct])return n;e=xa(e)}return t}e=n,n=e.parentNode}return null}function Zr(e){return e=e[ct]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function On(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Lo(e){return e[br]||null}var tl=[],Pn=-1;function Wt(e){return{current:e}}function K(e){0>Pn||(e.current=tl[Pn],tl[Pn]=null,Pn--)}function V(e,t){Pn++,tl[Pn]=e.current,e.current=t}var qt={},ke=Wt(qt),Te=Wt(!1),an=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Le(e){return e=e.childContextTypes,e!=null}function eo(){K(Te),K(ke)}function Sa(e,t,n){if(ke.current!==qt)throw Error(_(168));V(ke,t),V(Te,n)}function Vf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Cp(e)||"Unknown",i));return Z({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,an=ke.current,V(ke,e),V(Te,Te.current),!0}function Ea(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Vf(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,K(Te),K(ke),V(ke,e)):K(Te),V(Te,n)}var vt=null,Fo=!1,ps=!1;function Wf(e){vt===null?vt=[e]:vt.push(e)}function bm(e){Fo=!0,Wf(e)}function Kt(){if(!ps&&vt!==null){ps=!0;var e=0,t=Q;try{var n=vt;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vt=null,Fo=!1}catch(i){throw vt!==null&&(vt=vt.slice(e+1)),gf(ql,Kt),i}finally{Q=t,ps=!1}}return null}var jn=[],Nn=0,no=null,ro=0,qe=[],Ve=0,cn=null,yt=1,gt="";function Gt(e,t){jn[Nn++]=ro,jn[Nn++]=no,no=e,ro=t}function Kf(e,t,n){qe[Ve++]=yt,qe[Ve++]=gt,qe[Ve++]=cn,cn=e;var r=yt;e=gt;var i=32-nt(r)-1;r&=~(1<<i),n+=1;var o=32-nt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,yt=1<<32-nt(t)+i|n<<i|r,gt=o+e}else yt=1<<o|n<<i|r,gt=e}function eu(e){e.return!==null&&(Gt(e,1),Kf(e,1,0))}function tu(e){for(;e===no;)no=jn[--Nn],jn[Nn]=null,ro=jn[--Nn],jn[Nn]=null;for(;e===cn;)cn=qe[--Ve],qe[Ve]=null,gt=qe[--Ve],qe[Ve]=null,yt=qe[--Ve],qe[Ve]=null}var Be=null,be=null,J=!1,tt=null;function Xf(e,t){var n=We(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Be=e,be=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Be=e,be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cn!==null?{id:yt,overflow:gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=We(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Be=e,be=null,!0):!1;default:return!1}}function nl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rl(e){if(J){var t=be;if(t){var n=t;if(!Ca(e,t)){if(nl(e))throw Error(_(418));t=Ut(n.nextSibling);var r=Be;t&&Ca(e,t)?Xf(r,n):(e.flags=e.flags&-4097|2,J=!1,Be=e)}}else{if(nl(e))throw Error(_(418));e.flags=e.flags&-4097|2,J=!1,Be=e}}}function ka(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function xi(e){if(e!==Be)return!1;if(!J)return ka(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ys(e.type,e.memoizedProps)),t&&(t=be)){if(nl(e))throw Jf(),Error(_(418));for(;t;)Xf(e,t),t=Ut(t.nextSibling)}if(ka(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){be=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}be=null}}else be=Be?Ut(e.stateNode.nextSibling):null;return!0}function Jf(){for(var e=be;e;)e=Ut(e.nextSibling)}function $n(){be=Be=null,J=!1}function nu(e){tt===null?tt=[e]:tt.push(e)}var Bm=kt.ReactCurrentBatchConfig;function cr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Si(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ra(e){var t=e._init;return t(e._payload)}function Gf(e){function t(d,h){if(e){var m=d.deletions;m===null?(d.deletions=[h],d.flags|=16):m.push(h)}}function n(d,h){if(!e)return null;for(;h!==null;)t(d,h),h=h.sibling;return null}function r(d,h){for(d=new Map;h!==null;)h.key!==null?d.set(h.key,h):d.set(h.index,h),h=h.sibling;return d}function i(d,h){return d=$t(d,h),d.index=0,d.sibling=null,d}function o(d,h,m){return d.index=m,e?(m=d.alternate,m!==null?(m=m.index,m<h?(d.flags|=2,h):m):(d.flags|=2,h)):(d.flags|=1048576,h)}function s(d){return e&&d.alternate===null&&(d.flags|=2),d}function l(d,h,m,S){return h===null||h.tag!==6?(h=Ss(m,d.mode,S),h.return=d,h):(h=i(h,m),h.return=d,h)}function u(d,h,m,S){var k=m.type;return k===Cn?c(d,h,m.props.children,S,m.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ot&&Ra(k)===h.type)?(S=i(h,m.props),S.ref=cr(d,h,m),S.return=d,S):(S=Ui(m.type,m.key,m.props,null,d.mode,S),S.ref=cr(d,h,m),S.return=d,S)}function a(d,h,m,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=Es(m,d.mode,S),h.return=d,h):(h=i(h,m.children||[]),h.return=d,h)}function c(d,h,m,S,k){return h===null||h.tag!==7?(h=ln(m,d.mode,S,k),h.return=d,h):(h=i(h,m),h.return=d,h)}function f(d,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Ss(""+h,d.mode,m),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ci:return m=Ui(h.type,h.key,h.props,null,d.mode,m),m.ref=cr(d,null,h),m.return=d,m;case En:return h=Es(h,d.mode,m),h.return=d,h;case Ot:var S=h._init;return f(d,S(h._payload),m)}if(yr(h)||or(h))return h=ln(h,d.mode,m,null),h.return=d,h;Si(d,h)}return null}function v(d,h,m,S){var k=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return k!==null?null:l(d,h,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ci:return m.key===k?u(d,h,m,S):null;case En:return m.key===k?a(d,h,m,S):null;case Ot:return k=m._init,v(d,h,k(m._payload),S)}if(yr(m)||or(m))return k!==null?null:c(d,h,m,S,null);Si(d,m)}return null}function g(d,h,m,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return d=d.get(m)||null,l(h,d,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ci:return d=d.get(S.key===null?m:S.key)||null,u(h,d,S,k);case En:return d=d.get(S.key===null?m:S.key)||null,a(h,d,S,k);case Ot:var E=S._init;return g(d,h,m,E(S._payload),k)}if(yr(S)||or(S))return d=d.get(m)||null,c(h,d,S,k,null);Si(h,S)}return null}function x(d,h,m,S){for(var k=null,E=null,R=h,P=h=0,D=null;R!==null&&P<m.length;P++){R.index>P?(D=R,R=null):D=R.sibling;var L=v(d,R,m[P],S);if(L===null){R===null&&(R=D);break}e&&R&&L.alternate===null&&t(d,R),h=o(L,h,P),E===null?k=L:E.sibling=L,E=L,R=D}if(P===m.length)return n(d,R),J&&Gt(d,P),k;if(R===null){for(;P<m.length;P++)R=f(d,m[P],S),R!==null&&(h=o(R,h,P),E===null?k=R:E.sibling=R,E=R);return J&&Gt(d,P),k}for(R=r(d,R);P<m.length;P++)D=g(R,d,P,m[P],S),D!==null&&(e&&D.alternate!==null&&R.delete(D.key===null?P:D.key),h=o(D,h,P),E===null?k=D:E.sibling=D,E=D);return e&&R.forEach(function(q){return t(d,q)}),J&&Gt(d,P),k}function y(d,h,m,S){var k=or(m);if(typeof k!="function")throw Error(_(150));if(m=k.call(m),m==null)throw Error(_(151));for(var E=k=null,R=h,P=h=0,D=null,L=m.next();R!==null&&!L.done;P++,L=m.next()){R.index>P?(D=R,R=null):D=R.sibling;var q=v(d,R,L.value,S);if(q===null){R===null&&(R=D);break}e&&R&&q.alternate===null&&t(d,R),h=o(q,h,P),E===null?k=q:E.sibling=q,E=q,R=D}if(L.done)return n(d,R),J&&Gt(d,P),k;if(R===null){for(;!L.done;P++,L=m.next())L=f(d,L.value,S),L!==null&&(h=o(L,h,P),E===null?k=L:E.sibling=L,E=L);return J&&Gt(d,P),k}for(R=r(d,R);!L.done;P++,L=m.next())L=g(R,d,P,L.value,S),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?P:L.key),h=o(L,h,P),E===null?k=L:E.sibling=L,E=L);return e&&R.forEach(function(ae){return t(d,ae)}),J&&Gt(d,P),k}function C(d,h,m,S){if(typeof m=="object"&&m!==null&&m.type===Cn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ci:e:{for(var k=m.key,E=h;E!==null;){if(E.key===k){if(k=m.type,k===Cn){if(E.tag===7){n(d,E.sibling),h=i(E,m.props.children),h.return=d,d=h;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ot&&Ra(k)===E.type){n(d,E.sibling),h=i(E,m.props),h.ref=cr(d,E,m),h.return=d,d=h;break e}n(d,E);break}else t(d,E);E=E.sibling}m.type===Cn?(h=ln(m.props.children,d.mode,S,m.key),h.return=d,d=h):(S=Ui(m.type,m.key,m.props,null,d.mode,S),S.ref=cr(d,h,m),S.return=d,d=S)}return s(d);case En:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(d,h.sibling),h=i(h,m.children||[]),h.return=d,d=h;break e}else{n(d,h);break}else t(d,h);h=h.sibling}h=Es(m,d.mode,S),h.return=d,d=h}return s(d);case Ot:return E=m._init,C(d,h,E(m._payload),S)}if(yr(m))return x(d,h,m,S);if(or(m))return y(d,h,m,S);Si(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(d,h.sibling),h=i(h,m),h.return=d,d=h):(n(d,h),h=Ss(m,d.mode,S),h.return=d,d=h),s(d)):n(d,h)}return C}var Qn=Gf(!0),Yf=Gf(!1),io=Wt(null),oo=null,Tn=null,ru=null;function iu(){ru=Tn=oo=null}function ou(e){var t=io.current;K(io),e._currentValue=t}function il(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Un(e,t){oo=e,ru=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(ru!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(oo===null)throw Error(_(308));Tn=e,oo.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var tn=null;function su(e){tn===null?tn=[e]:tn.push(e)}function Zf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,su(t)):(n.next=i.next,i.next=n),t.interleaved=n,Et(e,r)}function Et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pt=!1;function lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Et(e,n)}return i=r.interleaved,i===null?(t.next=t,su(r)):(t.next=i.next,i.next=t),r.interleaved=t,Et(e,n)}function Li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vl(e,n)}}function _a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,r){var i=e.updateQueue;Pt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,a=u.next;u.next=null,s===null?o=a:s.next=a,s=u;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=a:l.next=a,c.lastBaseUpdate=u))}if(o!==null){var f=i.baseState;s=0,c=a=u=null,l=o;do{var v=l.lane,g=l.eventTime;if((r&v)===v){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,y=l;switch(v=t,g=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){f=x.call(g,f,v);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,v=typeof x=="function"?x.call(g,f,v):x,v==null)break e;f=Z({},f,v);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=i.effects,v===null?i.effects=[l]:v.push(l))}else g={eventTime:g,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(a=c=g,u=f):c=c.next=g,s|=v;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;v=l,l=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);dn|=s,e.lanes=s,e.memoizedState=f}}function Oa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var ei={},dt=Wt(ei),Br=Wt(ei),$r=Wt(ei);function nn(e){if(e===ei)throw Error(_(174));return e}function uu(e,t){switch(V($r,t),V(Br,e),V(dt,ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Us(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Us(t,e)}K(dt),V(dt,t)}function Hn(){K(dt),K(Br),K($r)}function td(e){nn($r.current);var t=nn(dt.current),n=Us(t,e.type);t!==n&&(V(Br,e),V(dt,n))}function au(e){Br.current===e&&(K(dt),K(Br))}var G=Wt(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ms=[];function cu(){for(var e=0;e<ms.length;e++)ms[e]._workInProgressVersionPrimary=null;ms.length=0}var Fi=kt.ReactCurrentDispatcher,vs=kt.ReactCurrentBatchConfig,fn=0,Y=null,le=null,ce=null,uo=!1,Rr=!1,Qr=0,$m=0;function we(){throw Error(_(321))}function fu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ot(e[n],t[n]))return!1;return!0}function du(e,t,n,r,i,o){if(fn=o,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fi.current=e===null||e.memoizedState===null?Vm:Wm,e=n(r,i),Rr){o=0;do{if(Rr=!1,Qr=0,25<=o)throw Error(_(301));o+=1,ce=le=null,t.updateQueue=null,Fi.current=Km,e=n(r,i)}while(Rr)}if(Fi.current=ao,t=le!==null&&le.next!==null,fn=0,ce=le=Y=null,uo=!1,t)throw Error(_(300));return e}function hu(){var e=Qr!==0;return Qr=0,e}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?Y.memoizedState=ce=e:ce=ce.next=e,ce}function Je(){if(le===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=ce===null?Y.memoizedState:ce.next;if(t!==null)ce=t,le=e;else{if(e===null)throw Error(_(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},ce===null?Y.memoizedState=ce=e:ce=ce.next=e}return ce}function Hr(e,t){return typeof t=="function"?t(e):t}function ys(e){var t=Je(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=le,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,a=o;do{var c=a.lane;if((fn&c)===c)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var f={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(l=u=f,s=r):u=u.next=f,Y.lanes|=c,dn|=c}a=a.next}while(a!==null&&a!==o);u===null?s=r:u.next=l,ot(r,t.memoizedState)||(Ne=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Y.lanes|=o,dn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gs(e){var t=Je(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);ot(o,t.memoizedState)||(Ne=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function nd(){}function rd(e,t){var n=Y,r=Je(),i=t(),o=!ot(r.memoizedState,i);if(o&&(r.memoizedState=i,Ne=!0),r=r.queue,pu(sd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,qr(9,od.bind(null,n,r,i,t),void 0,null),fe===null)throw Error(_(349));fn&30||id(n,t,i)}return i}function id(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function od(e,t,n,r){t.value=n,t.getSnapshot=r,ld(t)&&ud(e)}function sd(e,t,n){return n(function(){ld(t)&&ud(e)})}function ld(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ot(e,n)}catch{return!0}}function ud(e){var t=Et(e,1);t!==null&&rt(t,e,1,-1)}function Pa(e){var t=at();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:e},t.queue=e,e=e.dispatch=qm.bind(null,Y,e),[t.memoizedState,e]}function qr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ad(){return Je().memoizedState}function Ai(e,t,n,r){var i=at();Y.flags|=e,i.memoizedState=qr(1|t,n,void 0,r===void 0?null:r)}function Ao(e,t,n,r){var i=Je();r=r===void 0?null:r;var o=void 0;if(le!==null){var s=le.memoizedState;if(o=s.destroy,r!==null&&fu(r,s.deps)){i.memoizedState=qr(t,n,o,r);return}}Y.flags|=e,i.memoizedState=qr(1|t,n,o,r)}function ja(e,t){return Ai(8390656,8,e,t)}function pu(e,t){return Ao(2048,8,e,t)}function cd(e,t){return Ao(4,2,e,t)}function fd(e,t){return Ao(4,4,e,t)}function dd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hd(e,t,n){return n=n!=null?n.concat([e]):null,Ao(4,4,dd.bind(null,t,e),n)}function mu(){}function pd(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function md(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vd(e,t,n){return fn&21?(ot(n,t)||(n=Sf(),Y.lanes|=n,dn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ne=!0),e.memoizedState=n)}function Qm(e,t){var n=Q;Q=n!==0&&4>n?n:4,e(!0);var r=vs.transition;vs.transition={};try{e(!1),t()}finally{Q=n,vs.transition=r}}function yd(){return Je().memoizedState}function Hm(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))wd(t,n);else if(n=Zf(e,t,n,r),n!==null){var i=_e();rt(n,e,r,i),xd(n,t,r)}}function qm(e,t,n){var r=Bt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))wd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ot(l,s)){var u=t.interleaved;u===null?(i.next=i,su(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Zf(e,t,i,r),n!==null&&(i=_e(),rt(n,e,r,i),xd(n,t,r))}}function gd(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function wd(e,t){Rr=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vl(e,n)}}var ao={readContext:Xe,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},Vm={readContext:Xe,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:ja,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hm.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:mu,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Qm.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,i=at();if(J){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));fn&30||id(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ja(sd.bind(null,r,o,e),[e]),r.flags|=2048,qr(9,od.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=at(),t=fe.identifierPrefix;if(J){var n=gt,r=yt;n=(r&~(1<<32-nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=$m++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Wm={readContext:Xe,useCallback:pd,useContext:Xe,useEffect:pu,useImperativeHandle:hd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:md,useReducer:ys,useRef:ad,useState:function(){return ys(Hr)},useDebugValue:mu,useDeferredValue:function(e){var t=Je();return vd(t,le.memoizedState,e)},useTransition:function(){var e=ys(Hr)[0],t=Je().memoizedState;return[e,t]},useMutableSource:nd,useSyncExternalStore:rd,useId:yd,unstable_isNewReconciler:!1},Km={readContext:Xe,useCallback:pd,useContext:Xe,useEffect:pu,useImperativeHandle:hd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:md,useReducer:gs,useRef:ad,useState:function(){return gs(Hr)},useDebugValue:mu,useDeferredValue:function(e){var t=Je();return le===null?t.memoizedState=e:vd(t,le.memoizedState,e)},useTransition:function(){var e=gs(Hr)[0],t=Je().memoizedState;return[e,t]},useMutableSource:nd,useSyncExternalStore:rd,useId:yd,unstable_isNewReconciler:!1};function Ze(e,t){if(e&&e.defaultProps){t=Z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Do={isMounted:function(e){return(e=e._reactInternals)?yn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),i=Bt(e),o=wt(r,i);o.payload=t,n!=null&&(o.callback=n),t=zt(e,o,i),t!==null&&(rt(t,e,i,r),Li(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),i=Bt(e),o=wt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=zt(e,o,i),t!==null&&(rt(t,e,i,r),Li(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Bt(e),i=wt(n,r);i.tag=2,t!=null&&(i.callback=t),t=zt(e,i,r),t!==null&&(rt(t,e,r,n),Li(t,e,r))}};function Na(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Mr(n,r)||!Mr(i,o):!0}function Sd(e,t,n){var r=!1,i=qt,o=t.contextType;return typeof o=="object"&&o!==null?o=Xe(o):(i=Le(t)?an:ke.current,r=t.contextTypes,o=(r=r!=null)?Bn(e,i):qt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Do,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ta(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Do.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},lu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Xe(o):(o=Le(t)?an:ke.current,i.context=Bn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ol(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Do.enqueueReplaceState(i,i.state,null),so(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=Ep(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xm=typeof WeakMap=="function"?WeakMap:Map;function Ed(e,t,n){n=wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fo||(fo=!0,yl=r),ll(e,t)},n}function Cd(e,t,n){n=wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ll(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ll(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function La(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=av.bind(null,e,t,n),t.then(e,e))}function Fa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Aa(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wt(-1,1),t.tag=2,zt(n,t,1))),n.lanes|=1),e)}var Jm=kt.ReactCurrentOwner,Ne=!1;function Re(e,t,n,r){t.child=e===null?Yf(t,null,n,r):Qn(t,e.child,n,r)}function Da(e,t,n,r,i){n=n.render;var o=t.ref;return Un(t,i),r=du(e,t,n,r,o,i),n=hu(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(J&&n&&eu(t),t.flags|=1,Re(e,t,r,i),t.child)}function Ia(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Cu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,kd(e,t,o,r,i)):(e=Ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Mr,n(s,r)&&e.ref===t.ref)return Ct(e,t,i)}return t.flags|=1,e=$t(o,r),e.ref=t.ref,e.return=t,t.child=e}function kd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mr(o,r)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,Ct(e,t,i)}return ul(e,t,n,r,i)}function Rd(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(Fn,ze),ze|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(Fn,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,V(Fn,ze),ze|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,V(Fn,ze),ze|=r;return Re(e,t,i,n),t.child}function _d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ul(e,t,n,r,i){var o=Le(n)?an:ke.current;return o=Bn(t,o),Un(t,i),n=du(e,t,n,r,o,i),r=hu(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(J&&r&&eu(t),t.flags|=1,Re(e,t,n,i),t.child)}function Ma(e,t,n,r,i){if(Le(n)){var o=!0;to(t)}else o=!1;if(Un(t,i),t.stateNode===null)Di(e,t),Sd(t,n,r),sl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Xe(a):(a=Le(n)?an:ke.current,a=Bn(t,a));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==a)&&Ta(t,s,r,a),Pt=!1;var v=t.memoizedState;s.state=v,so(t,r,s,i),u=t.memoizedState,l!==r||v!==u||Te.current||Pt?(typeof c=="function"&&(ol(t,n,c,r),u=t.memoizedState),(l=Pt||Na(t,n,l,r,v,u,a))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=a,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ed(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:Ze(t.type,l),s.props=a,f=t.pendingProps,v=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Xe(u):(u=Le(n)?an:ke.current,u=Bn(t,u));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||v!==u)&&Ta(t,s,r,u),Pt=!1,v=t.memoizedState,s.state=v,so(t,r,s,i);var x=t.memoizedState;l!==f||v!==x||Te.current||Pt?(typeof g=="function"&&(ol(t,n,g,r),x=t.memoizedState),(a=Pt||Na(t,n,a,r,v,x,u)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=a):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return al(e,t,n,r,o,i)}function al(e,t,n,r,i,o){_d(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Ea(t,n,!1),Ct(e,t,o);r=t.stateNode,Jm.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Qn(t,e.child,null,o),t.child=Qn(t,null,l,o)):Re(e,t,l,o),t.memoizedState=r.state,i&&Ea(t,n,!0),t.child}function Od(e){var t=e.stateNode;t.pendingContext?Sa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sa(e,t.context,!1),uu(e,t.containerInfo)}function Ua(e,t,n,r,i){return $n(),nu(i),t.flags|=256,Re(e,t,n,r),t.child}var cl={dehydrated:null,treeContext:null,retryLane:0};function fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pd(e,t,n){var r=t.pendingProps,i=G.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),V(G,i&1),e===null)return rl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Uo(s,r,0,null),e=ln(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=fl(n),t.memoizedState=cl,e):vu(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Gm(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=$t(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=$t(l,o):(o=ln(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?fl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=cl,r}return o=e.child,e=o.sibling,r=$t(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vu(e,t){return t=Uo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ei(e,t,n,r){return r!==null&&nu(r),Qn(t,e.child,null,n),e=vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gm(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ws(Error(_(422))),Ei(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Uo({mode:"visible",children:r.children},i,0,null),o=ln(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Qn(t,e.child,null,s),t.child.memoizedState=fl(s),t.memoizedState=cl,o);if(!(t.mode&1))return Ei(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(_(419)),r=ws(o,r,void 0),Ei(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ne||l){if(r=fe,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Et(e,i),rt(r,e,i,-1))}return Eu(),r=ws(Error(_(421))),Ei(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=cv.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,be=Ut(i.nextSibling),Be=t,J=!0,tt=null,e!==null&&(qe[Ve++]=yt,qe[Ve++]=gt,qe[Ve++]=cn,yt=e.id,gt=e.overflow,cn=t),t=vu(t,r.children),t.flags|=4096,t)}function za(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),il(e.return,t,n)}function xs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function jd(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Re(e,t,r.children,n),r=G.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&za(e,n,t);else if(e.tag===19)za(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(V(G,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xs(t,!0,n,null,o);break;case"together":xs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Di(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=$t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ym(e,t,n){switch(t.tag){case 3:Od(t),$n();break;case 5:td(t);break;case 1:Le(t.type)&&to(t);break;case 4:uu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;V(io,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?Pd(e,t,n):(V(G,G.current&1),e=Ct(e,t,n),e!==null?e.sibling:null);V(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return jd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,Rd(e,t,n)}return Ct(e,t,n)}var Nd,dl,Td,Ld;Nd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};dl=function(){};Td=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,nn(dt.current);var o=null;switch(n){case"input":i=As(e,i),r=As(e,r),o=[];break;case"select":i=Z({},i,{value:void 0}),r=Z({},r,{value:void 0}),o=[];break;case"textarea":i=Ms(e,i),r=Ms(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zi)}zs(n,r);var s;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var l=i[a];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Nr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(l=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==l&&(u!=null||l!=null))if(a==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Nr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&W("scroll",e),o||l===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Ld=function(e,t,n,r){n!==r&&(t.flags|=4)};function fr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zm(e,t,n){var r=t.pendingProps;switch(tu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Le(t.type)&&eo(),xe(t),null;case 3:return r=t.stateNode,Hn(),K(Te),K(ke),cu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,tt!==null&&(xl(tt),tt=null))),dl(e,t),xe(t),null;case 5:au(t);var i=nn($r.current);if(n=t.type,e!==null&&t.stateNode!=null)Td(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return xe(t),null}if(e=nn(dt.current),xi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ct]=t,r[br]=o,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(i=0;i<wr.length;i++)W(wr[i],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":Ku(r,o),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},W("invalid",r);break;case"textarea":Ju(r,o),W("invalid",r)}zs(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&wi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&wi(r.textContent,l,e),i=["children",""+l]):Nr.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&W("scroll",r)}switch(n){case"input":fi(r),Xu(r,o,!0);break;case"textarea":fi(r),Gu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Zi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ct]=t,e[br]=r,Nd(e,t,!1,!1),t.stateNode=e;e:{switch(s=bs(n,r),n){case"dialog":W("cancel",e),W("close",e),i=r;break;case"iframe":case"object":case"embed":W("load",e),i=r;break;case"video":case"audio":for(i=0;i<wr.length;i++)W(wr[i],e);i=r;break;case"source":W("error",e),i=r;break;case"img":case"image":case"link":W("error",e),W("load",e),i=r;break;case"details":W("toggle",e),i=r;break;case"input":Ku(e,r),i=As(e,r),W("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Z({},r,{value:void 0}),W("invalid",e);break;case"textarea":Ju(e,r),i=Ms(e,r),W("invalid",e);break;default:i=r}zs(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?af(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&lf(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Tr(e,u):typeof u=="number"&&Tr(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Nr.hasOwnProperty(o)?u!=null&&o==="onScroll"&&W("scroll",e):u!=null&&bl(e,o,u,s))}switch(n){case"input":fi(e),Xu(e,r,!1);break;case"textarea":fi(e),Gu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?An(e,!!r.multiple,o,!1):r.defaultValue!=null&&An(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Zi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)Ld(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=nn($r.current),nn(dt.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(o=r.nodeValue!==n)&&(e=Be,e!==null))switch(e.tag){case 3:wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ct]=t,t.stateNode=r}return xe(t),null;case 13:if(K(G),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&be!==null&&t.mode&1&&!(t.flags&128))Jf(),$n(),t.flags|=98560,o=!1;else if(o=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(_(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(_(317));o[ct]=t}else $n(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),o=!1}else tt!==null&&(xl(tt),tt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?ue===0&&(ue=3):Eu())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return Hn(),dl(e,t),e===null&&Ur(t.stateNode.containerInfo),xe(t),null;case 10:return ou(t.type._context),xe(t),null;case 17:return Le(t.type)&&eo(),xe(t),null;case 19:if(K(G),o=t.memoizedState,o===null)return xe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)fr(o,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=lo(e),s!==null){for(t.flags|=128,fr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(G,G.current&1|2),t.child}e=e.sibling}o.tail!==null&&re()>Vn&&(t.flags|=128,r=!0,fr(o,!1),t.lanes=4194304)}else{if(!r)if(e=lo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!J)return xe(t),null}else 2*re()-o.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,fr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,n=G.current,V(G,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function ev(e,t){switch(tu(t),t.tag){case 1:return Le(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(),K(Te),K(ke),cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return au(t),null;case 13:if(K(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(G),null;case 4:return Hn(),null;case 10:return ou(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var Ci=!1,Ee=!1,tv=typeof WeakSet=="function"?WeakSet:Set,T=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function hl(e,t,n){try{n()}catch(r){te(e,t,r)}}var ba=!1;function nv(e,t){if(Js=Ji,e=Mf(),Zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,a=0,c=0,f=e,v=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)v=f,f=g;for(;;){if(f===e)break t;if(v===n&&++a===i&&(l=s),v===o&&++c===r&&(u=s),(g=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gs={focusedElem:e,selectionRange:n},Ji=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,C=x.memoizedState,d=t.stateNode,h=d.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ze(t.type,y),C);d.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return x=ba,ba=!1,x}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&hl(t,n,o)}i=i.next}while(i!==r)}}function Io(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[br],delete t[el],delete t[Um],delete t[zm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ad(e){return e.tag===5||e.tag===3||e.tag===4}function Ba(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zi));else if(r!==4&&(e=e.child,e!==null))for(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}function vl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vl(e,t,n),e=e.sibling;e!==null;)vl(e,t,n),e=e.sibling}var he=null,et=!1;function _t(e,t,n){for(n=n.child;n!==null;)Dd(e,t,n),n=n.sibling}function Dd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Po,n)}catch{}switch(n.tag){case 5:Ee||Ln(n,t);case 6:var r=he,i=et;he=null,_t(e,t,n),he=r,et=i,he!==null&&(et?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(et?(e=he,n=n.stateNode,e.nodeType===8?hs(e.parentNode,n):e.nodeType===1&&hs(e,n),Dr(e)):hs(he,n.stateNode));break;case 4:r=he,i=et,he=n.stateNode.containerInfo,et=!0,_t(e,t,n),he=r,et=i;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&hl(n,t,s),i=i.next}while(i!==r)}_t(e,t,n);break;case 1:if(!Ee&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){te(n,t,l)}_t(e,t,n);break;case 21:_t(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,_t(e,t,n),Ee=r):_t(e,t,n);break;default:_t(e,t,n)}}function $a(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tv),t.forEach(function(r){var i=fv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:he=l.stateNode,et=!1;break e;case 3:he=l.stateNode.containerInfo,et=!0;break e;case 4:he=l.stateNode.containerInfo,et=!0;break e}l=l.return}if(he===null)throw Error(_(160));Dd(o,s,i),he=null,et=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(a){te(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Id(t,e),t=t.sibling}function Id(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ye(t,e),ut(e),r&4){try{_r(3,e,e.return),Io(3,e)}catch(y){te(e,e.return,y)}try{_r(5,e,e.return)}catch(y){te(e,e.return,y)}}break;case 1:Ye(t,e),ut(e),r&512&&n!==null&&Ln(n,n.return);break;case 5:if(Ye(t,e),ut(e),r&512&&n!==null&&Ln(n,n.return),e.flags&32){var i=e.stateNode;try{Tr(i,"")}catch(y){te(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&rf(i,o),bs(l,s);var a=bs(l,o);for(s=0;s<u.length;s+=2){var c=u[s],f=u[s+1];c==="style"?af(i,f):c==="dangerouslySetInnerHTML"?lf(i,f):c==="children"?Tr(i,f):bl(i,c,f,a)}switch(l){case"input":Ds(i,o);break;case"textarea":of(i,o);break;case"select":var v=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?An(i,!!o.multiple,g,!1):v!==!!o.multiple&&(o.defaultValue!=null?An(i,!!o.multiple,o.defaultValue,!0):An(i,!!o.multiple,o.multiple?[]:"",!1))}i[br]=o}catch(y){te(e,e.return,y)}}break;case 6:if(Ye(t,e),ut(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){te(e,e.return,y)}}break;case 3:if(Ye(t,e),ut(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dr(t.containerInfo)}catch(y){te(e,e.return,y)}break;case 4:Ye(t,e),ut(e);break;case 13:Ye(t,e),ut(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(wu=re())),r&4&&$a(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ee=(a=Ee)||c,Ye(t,e),Ee=a):Ye(t,e),ut(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(T=e,c=e.child;c!==null;){for(f=T=c;T!==null;){switch(v=T,g=v.child,v.tag){case 0:case 11:case 14:case 15:_r(4,v,v.return);break;case 1:Ln(v,v.return);var x=v.stateNode;if(typeof x.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){te(r,n,y)}}break;case 5:Ln(v,v.return);break;case 22:if(v.memoizedState!==null){Ha(f);continue}}g!==null?(g.return=v,T=g):Ha(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,a?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,u=f.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=uf("display",s))}catch(y){te(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=a?"":f.memoizedProps}catch(y){te(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ye(t,e),ut(e),r&4&&$a(e);break;case 21:break;default:Ye(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ad(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Tr(i,""),r.flags&=-33);var o=Ba(e);vl(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Ba(e);ml(e,l,s);break;default:throw Error(_(161))}}catch(u){te(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rv(e,t,n){T=e,Md(e)}function Md(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var i=T,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Ci;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||Ee;l=Ci;var a=Ee;if(Ci=s,(Ee=u)&&!a)for(T=i;T!==null;)s=T,u=s.child,s.tag===22&&s.memoizedState!==null?qa(i):u!==null?(u.return=s,T=u):qa(i);for(;o!==null;)T=o,Md(o),o=o.sibling;T=i,Ci=l,Ee=a}Qa(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,T=o):Qa(e)}}function Qa(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ee||Io(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ee)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ze(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Oa(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Oa(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var c=a.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Dr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Ee||t.flags&512&&pl(t)}catch(v){te(t,t.return,v)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Ha(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function qa(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Io(4,t)}catch(u){te(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){te(t,i,u)}}var o=t.return;try{pl(t)}catch(u){te(t,o,u)}break;case 5:var s=t.return;try{pl(t)}catch(u){te(t,s,u)}}}catch(u){te(t,t.return,u)}if(t===e){T=null;break}var l=t.sibling;if(l!==null){l.return=t.return,T=l;break}T=t.return}}var iv=Math.ceil,co=kt.ReactCurrentDispatcher,yu=kt.ReactCurrentOwner,Ke=kt.ReactCurrentBatchConfig,$=0,fe=null,se=null,ve=0,ze=0,Fn=Wt(0),ue=0,Vr=null,dn=0,Mo=0,gu=0,Or=null,je=null,wu=0,Vn=1/0,mt=null,fo=!1,yl=null,bt=null,ki=!1,Ft=null,ho=0,Pr=0,gl=null,Ii=-1,Mi=0;function _e(){return $&6?re():Ii!==-1?Ii:Ii=re()}function Bt(e){return e.mode&1?$&2&&ve!==0?ve&-ve:Bm.transition!==null?(Mi===0&&(Mi=Sf()),Mi):(e=Q,e!==0||(e=window.event,e=e===void 0?16:Pf(e.type)),e):1}function rt(e,t,n,r){if(50<Pr)throw Pr=0,gl=null,Error(_(185));Gr(e,n,r),(!($&2)||e!==fe)&&(e===fe&&(!($&2)&&(Mo|=n),ue===4&&Tt(e,ve)),Fe(e,r),n===1&&$===0&&!(t.mode&1)&&(Vn=re()+500,Fo&&Kt()))}function Fe(e,t){var n=e.callbackNode;Bp(e,t);var r=Xi(e,e===fe?ve:0);if(r===0)n!==null&&ea(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ea(n),t===1)e.tag===0?bm(Va.bind(null,e)):Wf(Va.bind(null,e)),Im(function(){!($&6)&&Kt()}),n=null;else{switch(Ef(r)){case 1:n=ql;break;case 4:n=wf;break;case 16:n=Ki;break;case 536870912:n=xf;break;default:n=Ki}n=qd(n,Ud.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ud(e,t){if(Ii=-1,Mi=0,$&6)throw Error(_(327));var n=e.callbackNode;if(zn()&&e.callbackNode!==n)return null;var r=Xi(e,e===fe?ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=po(e,r);else{t=r;var i=$;$|=2;var o=bd();(fe!==e||ve!==t)&&(mt=null,Vn=re()+500,sn(e,t));do try{lv();break}catch(l){zd(e,l)}while(!0);iu(),co.current=o,$=i,se!==null?t=0:(fe=null,ve=0,t=ue)}if(t!==0){if(t===2&&(i=qs(e),i!==0&&(r=i,t=wl(e,i))),t===1)throw n=Vr,sn(e,0),Tt(e,r),Fe(e,re()),n;if(t===6)Tt(e,r);else{if(i=e.current.alternate,!(r&30)&&!ov(i)&&(t=po(e,r),t===2&&(o=qs(e),o!==0&&(r=o,t=wl(e,o))),t===1))throw n=Vr,sn(e,0),Tt(e,r),Fe(e,re()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Yt(e,je,mt);break;case 3:if(Tt(e,r),(r&130023424)===r&&(t=wu+500-re(),10<t)){if(Xi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){_e(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Zs(Yt.bind(null,e,je,mt),t);break}Yt(e,je,mt);break;case 4:if(Tt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-nt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iv(r/1960))-r,10<r){e.timeoutHandle=Zs(Yt.bind(null,e,je,mt),r);break}Yt(e,je,mt);break;case 5:Yt(e,je,mt);break;default:throw Error(_(329))}}}return Fe(e,re()),e.callbackNode===n?Ud.bind(null,e):null}function wl(e,t){var n=Or;return e.current.memoizedState.isDehydrated&&(sn(e,t).flags|=256),e=po(e,t),e!==2&&(t=je,je=n,t!==null&&xl(t)),e}function xl(e){je===null?je=e:je.push.apply(je,e)}function ov(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ot(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tt(e,t){for(t&=~gu,t&=~Mo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-nt(t),r=1<<n;e[n]=-1,t&=~r}}function Va(e){if($&6)throw Error(_(327));zn();var t=Xi(e,0);if(!(t&1))return Fe(e,re()),null;var n=po(e,t);if(e.tag!==0&&n===2){var r=qs(e);r!==0&&(t=r,n=wl(e,r))}if(n===1)throw n=Vr,sn(e,0),Tt(e,t),Fe(e,re()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yt(e,je,mt),Fe(e,re()),null}function xu(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(Vn=re()+500,Fo&&Kt())}}function hn(e){Ft!==null&&Ft.tag===0&&!($&6)&&zn();var t=$;$|=1;var n=Ke.transition,r=Q;try{if(Ke.transition=null,Q=1,e)return e()}finally{Q=r,Ke.transition=n,$=t,!($&6)&&Kt()}}function Su(){ze=Fn.current,K(Fn)}function sn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Dm(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(tu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&eo();break;case 3:Hn(),K(Te),K(ke),cu();break;case 5:au(r);break;case 4:Hn();break;case 13:K(G);break;case 19:K(G);break;case 10:ou(r.type._context);break;case 22:case 23:Su()}n=n.return}if(fe=e,se=e=$t(e.current,null),ve=ze=t,ue=0,Vr=null,gu=Mo=dn=0,je=Or=null,tn!==null){for(t=0;t<tn.length;t++)if(n=tn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}tn=null}return e}function zd(e,t){do{var n=se;try{if(iu(),Fi.current=ao,uo){for(var r=Y.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}uo=!1}if(fn=0,ce=le=Y=null,Rr=!1,Qr=0,yu.current=null,n===null||n.return===null){ue=1,Vr=t,se=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=ve,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var v=c.alternate;v?(c.updateQueue=v.updateQueue,c.memoizedState=v.memoizedState,c.lanes=v.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Fa(s);if(g!==null){g.flags&=-257,Aa(g,s,l,o,t),g.mode&1&&La(o,a,t),t=g,u=a;var x=t.updateQueue;if(x===null){var y=new Set;y.add(u),t.updateQueue=y}else x.add(u);break e}else{if(!(t&1)){La(o,a,t),Eu();break e}u=Error(_(426))}}else if(J&&l.mode&1){var C=Fa(s);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Aa(C,s,l,o,t),nu(qn(u,l));break e}}o=u=qn(u,l),ue!==4&&(ue=2),Or===null?Or=[o]:Or.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var d=Ed(o,u,t);_a(o,d);break e;case 1:l=u;var h=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(bt===null||!bt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Cd(o,l,t);_a(o,S);break e}}o=o.return}while(o!==null)}$d(n)}catch(k){t=k,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function bd(){var e=co.current;return co.current=ao,e===null?ao:e}function Eu(){(ue===0||ue===3||ue===2)&&(ue=4),fe===null||!(dn&268435455)&&!(Mo&268435455)||Tt(fe,ve)}function po(e,t){var n=$;$|=2;var r=bd();(fe!==e||ve!==t)&&(mt=null,sn(e,t));do try{sv();break}catch(i){zd(e,i)}while(!0);if(iu(),$=n,co.current=r,se!==null)throw Error(_(261));return fe=null,ve=0,ue}function sv(){for(;se!==null;)Bd(se)}function lv(){for(;se!==null&&!Lp();)Bd(se)}function Bd(e){var t=Hd(e.alternate,e,ze);e.memoizedProps=e.pendingProps,t===null?$d(e):se=t,yu.current=null}function $d(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ev(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,se=null;return}}else if(n=Zm(n,t,ze),n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ue===0&&(ue=5)}function Yt(e,t,n){var r=Q,i=Ke.transition;try{Ke.transition=null,Q=1,uv(e,t,n,r)}finally{Ke.transition=i,Q=r}return null}function uv(e,t,n,r){do zn();while(Ft!==null);if($&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if($p(e,o),e===fe&&(se=fe=null,ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ki||(ki=!0,qd(Ki,function(){return zn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ke.transition,Ke.transition=null;var s=Q;Q=1;var l=$;$|=4,yu.current=null,nv(e,n),Id(n,e),Pm(Gs),Ji=!!Js,Gs=Js=null,e.current=n,rv(n),Fp(),$=l,Q=s,Ke.transition=o}else e.current=n;if(ki&&(ki=!1,Ft=e,ho=i),o=e.pendingLanes,o===0&&(bt=null),Ip(n.stateNode),Fe(e,re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(fo)throw fo=!1,e=yl,yl=null,e;return ho&1&&e.tag!==0&&zn(),o=e.pendingLanes,o&1?e===gl?Pr++:(Pr=0,gl=e):Pr=0,Kt(),null}function zn(){if(Ft!==null){var e=Ef(ho),t=Ke.transition,n=Q;try{if(Ke.transition=null,Q=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,ho=0,$&6)throw Error(_(331));var i=$;for($|=4,T=e.current;T!==null;){var o=T,s=o.child;if(T.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var a=l[u];for(T=a;T!==null;){var c=T;switch(c.tag){case 0:case 11:case 15:_r(8,c,o)}var f=c.child;if(f!==null)f.return=c,T=f;else for(;T!==null;){c=T;var v=c.sibling,g=c.return;if(Fd(c),c===a){T=null;break}if(v!==null){v.return=g,T=v;break}T=g}}}var x=o.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var C=y.sibling;y.sibling=null,y=C}while(y!==null)}}T=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,T=s;else e:for(;T!==null;){if(o=T,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_r(9,o,o.return)}var d=o.sibling;if(d!==null){d.return=o.return,T=d;break e}T=o.return}}var h=e.current;for(T=h;T!==null;){s=T;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,T=m;else e:for(s=h;T!==null;){if(l=T,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Io(9,l)}}catch(k){te(l,l.return,k)}if(l===s){T=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,T=S;break e}T=l.return}}if($=i,Kt(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Po,e)}catch{}r=!0}return r}finally{Q=n,Ke.transition=t}}return!1}function Wa(e,t,n){t=qn(n,t),t=Ed(e,t,1),e=zt(e,t,1),t=_e(),e!==null&&(Gr(e,1,t),Fe(e,t))}function te(e,t,n){if(e.tag===3)Wa(e,e,n);else for(;t!==null;){if(t.tag===3){Wa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=qn(n,e),e=Cd(t,e,1),t=zt(t,e,1),e=_e(),t!==null&&(Gr(t,1,e),Fe(t,e));break}}t=t.return}}function av(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(ve&n)===n&&(ue===4||ue===3&&(ve&130023424)===ve&&500>re()-wu?sn(e,0):gu|=n),Fe(e,t)}function Qd(e,t){t===0&&(e.mode&1?(t=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):t=1);var n=_e();e=Et(e,t),e!==null&&(Gr(e,t,n),Fe(e,n))}function cv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qd(e,n)}function fv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Qd(e,n)}var Hd;Hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,Ym(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,J&&t.flags&1048576&&Kf(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Di(e,t),e=t.pendingProps;var i=Bn(t,ke.current);Un(t,n),i=du(null,t,r,e,i,n);var o=hu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(o=!0,to(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lu(t),i.updater=Do,t.stateNode=i,i._reactInternals=t,sl(t,r,e,n),t=al(null,t,r,!0,o,n)):(t.tag=0,J&&o&&eu(t),Re(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Di(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=hv(r),e=Ze(r,e),i){case 0:t=ul(null,t,r,e,n);break e;case 1:t=Ma(null,t,r,e,n);break e;case 11:t=Da(null,t,r,e,n);break e;case 14:t=Ia(null,t,r,Ze(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),ul(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ma(e,t,r,i,n);case 3:e:{if(Od(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ed(e,t),so(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=qn(Error(_(423)),t),t=Ua(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(_(424)),t),t=Ua(e,t,r,n,i);break e}else for(be=Ut(t.stateNode.containerInfo.firstChild),Be=t,J=!0,tt=null,n=Yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===i){t=Ct(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return td(t),e===null&&rl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ys(r,i)?s=null:o!==null&&Ys(r,o)&&(t.flags|=32),_d(e,t),Re(e,t,s,n),t.child;case 6:return e===null&&rl(t),null;case 13:return Pd(e,t,n);case 4:return uu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qn(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Da(e,t,r,i,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,V(io,r._currentValue),r._currentValue=s,o!==null)if(ot(o.value,s)){if(o.children===i.children&&!Te.current){t=Ct(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),il(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(_(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),il(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Re(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Xe(i),r=r(i),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,i=Ze(r,t.pendingProps),i=Ze(r.type,i),Ia(e,t,r,i,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Di(e,t),t.tag=1,Le(r)?(e=!0,to(t)):e=!1,Un(t,n),Sd(t,r,i),sl(t,r,i,n),al(null,t,r,!0,e,n);case 19:return jd(e,t,n);case 22:return Rd(e,t,n)}throw Error(_(156,t.tag))};function qd(e,t){return gf(e,t)}function dv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,t,n,r){return new dv(e,t,n,r)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hv(e){if(typeof e=="function")return Cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$l)return 11;if(e===Ql)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=We(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ui(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Cu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cn:return ln(n.children,i,o,t);case Bl:s=8,i|=8;break;case Ns:return e=We(12,n,t,i|2),e.elementType=Ns,e.lanes=o,e;case Ts:return e=We(13,n,t,i),e.elementType=Ts,e.lanes=o,e;case Ls:return e=We(19,n,t,i),e.elementType=Ls,e.lanes=o,e;case ef:return Uo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yc:s=10;break e;case Zc:s=9;break e;case $l:s=11;break e;case Ql:s=14;break e;case Ot:s=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=We(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ln(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function Uo(e,t,n,r){return e=We(22,e,r,t),e.elementType=ef,e.lanes=n,e.stateNode={isHidden:!1},e}function Ss(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function Es(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ns(0),this.expirationTimes=ns(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ku(e,t,n,r,i,o,s,l,u){return e=new pv(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=We(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lu(o),e}function mv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:En,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vd(e){if(!e)return qt;e=e._reactInternals;e:{if(yn(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Le(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Le(n))return Vf(e,n,t)}return t}function Wd(e,t,n,r,i,o,s,l,u){return e=ku(n,r,!0,e,i,o,s,l,u),e.context=Vd(null),n=e.current,r=_e(),i=Bt(n),o=wt(r,i),o.callback=t??null,zt(n,o,i),e.current.lanes=i,Gr(e,i,r),Fe(e,r),e}function zo(e,t,n,r){var i=t.current,o=_e(),s=Bt(i);return n=Vd(n),t.context===null?t.context=n:t.pendingContext=n,t=wt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zt(i,t,s),e!==null&&(rt(e,i,s,o),Li(e,i,s)),s}function mo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ka(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ru(e,t){Ka(e,t),(e=e.alternate)&&Ka(e,t)}function vv(){return null}var Kd=typeof reportError=="function"?reportError:function(e){console.error(e)};function _u(e){this._internalRoot=e}bo.prototype.render=_u.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));zo(e,t,null,null)};bo.prototype.unmount=_u.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){zo(null,e,null,null)}),t[St]=null}};function bo(e){this._internalRoot=e}bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&t!==0&&t<Nt[n].priority;n++);Nt.splice(n,0,e),n===0&&Of(e)}};function Ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Bo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xa(){}function yv(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var a=mo(s);o.call(a)}}var s=Wd(t,r,e,0,null,!1,!1,"",Xa);return e._reactRootContainer=s,e[St]=s.current,Ur(e.nodeType===8?e.parentNode:e),hn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var a=mo(u);l.call(a)}}var u=ku(e,0,!1,null,null,!1,!1,"",Xa);return e._reactRootContainer=u,e[St]=u.current,Ur(e.nodeType===8?e.parentNode:e),hn(function(){zo(t,u,n,r)}),u}function $o(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=mo(s);l.call(u)}}zo(t,s,e,i)}else s=yv(n,t,e,i,r);return mo(s)}Cf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gr(t.pendingLanes);n!==0&&(Vl(t,n|1),Fe(t,re()),!($&6)&&(Vn=re()+500,Kt()))}break;case 13:hn(function(){var r=Et(e,1);if(r!==null){var i=_e();rt(r,e,1,i)}}),Ru(e,1)}};Wl=function(e){if(e.tag===13){var t=Et(e,134217728);if(t!==null){var n=_e();rt(t,e,134217728,n)}Ru(e,134217728)}};kf=function(e){if(e.tag===13){var t=Bt(e),n=Et(e,t);if(n!==null){var r=_e();rt(n,e,t,r)}Ru(e,t)}};Rf=function(){return Q};_f=function(e,t){var n=Q;try{return Q=e,t()}finally{Q=n}};$s=function(e,t,n){switch(t){case"input":if(Ds(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Lo(r);if(!i)throw Error(_(90));nf(r),Ds(r,i)}}}break;case"textarea":of(e,n);break;case"select":t=n.value,t!=null&&An(e,!!n.multiple,t,!1)}};df=xu;hf=hn;var gv={usingClientEntryPoint:!1,Events:[Zr,On,Lo,cf,ff,xu]},dr={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wv={bundleType:dr.bundleType,version:dr.version,rendererPackageName:dr.rendererPackageName,rendererConfig:dr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vf(e),e===null?null:e.stateNode},findFiberByHostInstance:dr.findFiberByHostInstance||vv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ri=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ri.isDisabled&&Ri.supportsFiber)try{Po=Ri.inject(wv),ft=Ri}catch{}}Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gv;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ou(t))throw Error(_(200));return mv(e,t,null,n)};Qe.createRoot=function(e,t){if(!Ou(e))throw Error(_(299));var n=!1,r="",i=Kd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ku(e,1,!1,null,null,n,!1,r,i),e[St]=t.current,Ur(e.nodeType===8?e.parentNode:e),new _u(t)};Qe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=vf(t),e=e===null?null:e.stateNode,e};Qe.flushSync=function(e){return hn(e)};Qe.hydrate=function(e,t,n){if(!Bo(t))throw Error(_(200));return $o(null,e,t,!0,n)};Qe.hydrateRoot=function(e,t,n){if(!Ou(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Kd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Wd(t,null,e,1,n??null,i,!1,o,s),e[St]=t.current,Ur(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new bo(t)};Qe.render=function(e,t,n){if(!Bo(t))throw Error(_(200));return $o(null,e,t,!1,n)};Qe.unmountComponentAtNode=function(e){if(!Bo(e))throw Error(_(40));return e._reactRootContainer?(hn(function(){$o(null,null,e,!1,function(){e._reactRootContainer=null,e[St]=null})}),!0):!1};Qe.unstable_batchedUpdates=xu;Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Bo(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return $o(e,t,n,!1,r)};Qe.version="18.3.1-next-f1338f8080-20240426";function Xd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xd)}catch(e){console.error(e)}}Xd(),Kc.exports=Qe;var Jd=Kc.exports;const xv=Ic(Jd);var Ja=Jd;Ps.createRoot=Ja.createRoot,Ps.hydrateRoot=Ja.hydrateRoot;function Sl(e,t){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Sl(e,t)}function Zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sl(e,t)}var er=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(s){return s!==o}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}var vo=typeof window>"u";function pe(){}function Sv(e,t){return typeof e=="function"?e(t):e}function El(e){return typeof e=="number"&&e>=0&&e!==1/0}function yo(e){return Array.isArray(e)?e:[e]}function Gd(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zi(e,t,n){return ti(e)?typeof t=="function"?U({},n,{queryKey:e,queryFn:t}):U({},t,{queryKey:e}):e}function Ev(e,t,n){return ti(e)?typeof t=="function"?U({},n,{mutationKey:e,mutationFn:t}):U({},t,{mutationKey:e}):typeof e=="function"?U({},t,{mutationFn:e}):U({},e)}function jt(e,t,n){return ti(e)?[U({},t,{queryKey:e}),n]:[e||{},t]}function Cv(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function Ga(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,l=e.queryKey,u=e.stale;if(ti(l)){if(r){if(t.queryHash!==Pu(l,t.options))return!1}else if(!go(t.queryKey,l))return!1}var a=Cv(n,o);if(a==="none")return!1;if(a!=="all"){var c=t.isActive();if(a==="active"&&!c||a==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof i=="boolean"&&t.isFetching()!==i||s&&!s(t))}function Ya(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(ti(o)){if(!t.options.mutationKey)return!1;if(n){if(rn(t.options.mutationKey)!==rn(o))return!1}else if(!go(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Pu(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||rn;return n(e)}function rn(e){var t=yo(e);return kv(t)}function kv(e){return JSON.stringify(e,function(t,n){return Cl(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function go(e,t){return Yd(yo(e),yo(t))}function Yd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!Yd(e[n],t[n])}):!1}function wo(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||Cl(e)&&Cl(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{},l=0,u=0;u<o;u++){var a=n?u:i[u];s[a]=wo(e[a],t[a]),s[a]===e[a]&&l++}return r===o&&l===r?e:s}return t}function Rv(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function Cl(e){if(!Za(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!Za(n)||!n.hasOwnProperty("isPrototypeOf"))}function Za(e){return Object.prototype.toString.call(e)==="[object Object]"}function ti(e){return typeof e=="string"||Array.isArray(e)}function _v(e){return new Promise(function(t){setTimeout(t,e)})}function ec(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function Zd(){if(typeof AbortController=="function")return new AbortController}var Ov=function(e){Zn(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!vo&&((o=window)!=null&&o.addEventListener)){var s=function(){return i()};return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),function(){window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,s=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?s.setFocused(l):s.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(er),jr=new Ov,Pv=function(e){Zn(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!vo&&((o=window)!=null&&o.addEventListener)){var s=function(){return i()};return window.addEventListener("online",s,!1),window.addEventListener("offline",s,!1),function(){window.removeEventListener("online",s),window.removeEventListener("offline",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,s=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?s.setOnline(l):s.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(er),bi=new Pv;function jv(e){return Math.min(1e3*Math.pow(2,e),3e4)}function xo(e){return typeof(e==null?void 0:e.cancel)=="function"}var eh=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Bi(e){return e instanceof eh}var th=function(t){var n=this,r=!1,i,o,s,l;this.abort=t.abort,this.cancel=function(v){return i==null?void 0:i(v)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(v,g){s=v,l=g});var u=function(g){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(g),o==null||o(),s(g))},a=function(g){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(g),o==null||o(),l(g))},c=function(){return new Promise(function(g){o=g,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){o=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function v(){if(!n.isResolved){var g;try{g=t.fn()}catch(x){g=Promise.reject(x)}i=function(y){if(!n.isResolved&&(a(new eh(y)),n.abort==null||n.abort(),xo(g)))try{g.cancel()}catch{}},n.isTransportCancelable=xo(g),Promise.resolve(g).then(u).catch(function(x){var y,C;if(!n.isResolved){var d=(y=t.retry)!=null?y:3,h=(C=t.retryDelay)!=null?C:jv,m=typeof h=="function"?h(n.failureCount,x):h,S=d===!0||typeof d=="number"&&n.failureCount<d||typeof d=="function"&&d(n.failureCount,x);if(r||!S){a(x);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,x),_v(m).then(function(){if(!jr.isFocused()||!bi.isOnline())return c()}).then(function(){r?a(x):v()})}})}};f()},Nv=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var i;this.transactions++;try{i=r()}finally{this.transactions--,this.transactions||this.flush()}return i},t.schedule=function(r){var i=this;this.transactions?this.queue.push(r):ec(function(){i.notifyFn(r)})},t.batchCalls=function(r){var i=this;return function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];i.schedule(function(){r.apply(void 0,s)})}},t.flush=function(){var r=this,i=this.queue;this.queue=[],i.length&&ec(function(){r.batchNotifyFn(function(){i.forEach(function(o){r.notifyFn(o)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),X=new Nv,nh=console;function So(){return nh}function Tv(e){nh=e}var Lv=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var i;this.options=U({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),El(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,i){var o,s,l=this.state.data,u=Sv(r,l);return(o=(s=this.options).isDataEqual)!=null&&o.call(s,l,u)?u=l:this.options.structuralSharing!==!1&&(u=wo(l,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),u},t.setState=function(r,i){this.dispatch({type:"setState",state:r,setStateOptions:i})},t.cancel=function(r){var i,o=this.promise;return(i=this.retryer)==null||i.cancel(r),o?o.then(pe).catch(pe):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Gd(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,i=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});i&&i.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,i=this.observers.find(function(o){return o.shouldFetchOnReconnect()});i&&i.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(i){return i!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,i){var o=this,s,l,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var c=this.observers.find(function(h){return h.options.queryFn});c&&this.setOptions(c.options)}var f=yo(this.queryKey),v=Zd(),g={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(g,"signal",{enumerable:!0,get:function(){if(v)return o.abortSignalConsumed=!0,v.signal}});var x=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(g)):Promise.reject("Missing queryFn")},y={fetchOptions:i,options:this.options,queryKey:f,state:this.state,fetchFn:x,meta:this.meta};if((s=this.options.behavior)!=null&&s.onFetch){var C;(C=this.options.behavior)==null||C.onFetch(y)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((l=y.fetchOptions)==null?void 0:l.meta)){var d;this.dispatch({type:"fetch",meta:(d=y.fetchOptions)==null?void 0:d.meta})}return this.retryer=new th({fn:y.fetchFn,abort:v==null||(u=v.abort)==null?void 0:u.bind(v),onSuccess:function(m){o.setData(m),o.cache.config.onSuccess==null||o.cache.config.onSuccess(m,o),o.cacheTime===0&&o.optionalRemove()},onError:function(m){Bi(m)&&m.silent||o.dispatch({type:"error",error:m}),Bi(m)||(o.cache.config.onError==null||o.cache.config.onError(m,o),So().error(m)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var i=this;this.state=this.reducer(this.state,r),X.batch(function(){i.observers.forEach(function(o){o.onQueryUpdate(r)}),i.cache.notify({query:i,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var i=typeof r.initialData=="function"?r.initialData():r.initialData,o=typeof r.initialData<"u",s=o?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,l=typeof i<"u";return{data:i,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:l?"success":"idle"}},t.reducer=function(r,i){var o,s;switch(i.type){case"failed":return U({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return U({},r,{isPaused:!0});case"continue":return U({},r,{isPaused:!1});case"fetch":return U({},r,{fetchFailureCount:0,fetchMeta:(o=i.meta)!=null?o:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return U({},r,{data:i.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=i.dataUpdatedAt)!=null?s:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var l=i.error;return Bi(l)&&l.revert&&this.revertState?U({},this.revertState):U({},r,{error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return U({},r,{isInvalidated:!0});case"setState":return U({},r,i.state);default:return r}},e}(),Fv=function(e){Zn(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.queries=[],i.queriesMap={},i}var n=t.prototype;return n.build=function(i,o,s){var l,u=o.queryKey,a=(l=o.queryHash)!=null?l:Pu(u,o),c=this.get(a);return c||(c=new Lv({cache:this,queryKey:u,queryHash:a,options:i.defaultQueryOptions(o),state:s,defaultOptions:i.getQueryDefaults(u),meta:o.meta}),this.add(c)),c},n.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},n.remove=function(i){var o=this.queriesMap[i.queryHash];o&&(i.destroy(),this.queries=this.queries.filter(function(s){return s!==i}),o===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},n.clear=function(){var i=this;X.batch(function(){i.queries.forEach(function(o){i.remove(o)})})},n.get=function(i){return this.queriesMap[i]},n.getAll=function(){return this.queries},n.find=function(i,o){var s=jt(i,o),l=s[0];return typeof l.exact>"u"&&(l.exact=!0),this.queries.find(function(u){return Ga(l,u)})},n.findAll=function(i,o){var s=jt(i,o),l=s[0];return Object.keys(l).length>0?this.queries.filter(function(u){return Ga(l,u)}):this.queries},n.notify=function(i){var o=this;X.batch(function(){o.listeners.forEach(function(s){s(i)})})},n.onFocus=function(){var i=this;X.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;X.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},t}(er),Av=function(){function e(n){this.options=U({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||rh(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(pe).catch(pe)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,i,o=this.state.status==="loading",s=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),s=s.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),s.then(function(){return r.executeMutation()}).then(function(l){i=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),So().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,i;return this.retryer=new th({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var i=this;this.state=Dv(this.state,r),X.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function rh(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Dv(e,t){switch(t.type){case"failed":return U({},e,{failureCount:e.failureCount+1});case"pause":return U({},e,{isPaused:!0});case"continue":return U({},e,{isPaused:!1});case"loading":return U({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return U({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return U({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return U({},e,t.state);default:return e}}var Iv=function(e){Zn(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=t.prototype;return n.build=function(i,o,s){var l=new Av({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:s,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(l),l},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;X.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return Ya(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return Ya(i,o)})},n.notify=function(i){var o=this;X.batch(function(){o.listeners.forEach(function(s){s(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return X.batch(function(){return i.reduce(function(o,s){return o.then(function(){return s.continue().catch(pe)})},Promise.resolve())})},t}(er);function Mv(){return{onFetch:function(t){t.fetchFn=function(){var n,r,i,o,s,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,a=(i=t.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,c=a==null?void 0:a.pageParam,f=(a==null?void 0:a.direction)==="forward",v=(a==null?void 0:a.direction)==="backward",g=((s=t.state.data)==null?void 0:s.pages)||[],x=((l=t.state.data)==null?void 0:l.pageParams)||[],y=Zd(),C=y==null?void 0:y.signal,d=x,h=!1,m=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(ee,De,oe,Ie){return d=Ie?[De].concat(d):[].concat(d,[De]),Ie?[oe].concat(ee):[].concat(ee,[oe])},k=function(ee,De,oe,Ie){if(h)return Promise.reject("Cancelled");if(typeof oe>"u"&&!De&&ee.length)return Promise.resolve(ee);var j={queryKey:t.queryKey,signal:C,pageParam:oe,meta:t.meta},F=m(j),A=Promise.resolve(F).then(function(H){return S(ee,oe,H,Ie)});if(xo(F)){var I=A;I.cancel=F.cancel}return A},E;if(!g.length)E=k([]);else if(f){var R=typeof c<"u",P=R?c:tc(t.options,g);E=k(g,R,P)}else if(v){var D=typeof c<"u",L=D?c:Uv(t.options,g);E=k(g,D,L,!0)}else(function(){d=[];var ge=typeof t.options.getNextPageParam>"u",ee=u&&g[0]?u(g[0],0,g):!0;E=ee?k([],ge,x[0]):Promise.resolve(S([],x[0],g[0]));for(var De=function(j){E=E.then(function(F){var A=u&&g[j]?u(g[j],j,g):!0;if(A){var I=ge?x[j]:tc(t.options,F);return k(F,ge,I)}return Promise.resolve(S(F,x[j],g[j]))})},oe=1;oe<g.length;oe++)De(oe)})();var q=E.then(function(ge){return{pages:ge,pageParams:d}}),ae=q;return ae.cancel=function(){h=!0,y==null||y.abort(),xo(E)&&E.cancel()},q}}}}function tc(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Uv(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var zv=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new Fv,this.mutationCache=n.mutationCache||new Iv,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=jr.subscribe(function(){jr.isFocused()&&bi.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=bi.subscribe(function(){jr.isFocused()&&bi.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,i;(r=this.unsubscribeFocus)==null||r.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},t.isFetching=function(r,i){var o=jt(r,i),s=o[0];return s.fetching=!0,this.queryCache.findAll(s).length},t.isMutating=function(r){return this.mutationCache.findAll(U({},r,{fetching:!0})).length},t.getQueryData=function(r,i){var o;return(o=this.queryCache.find(r,i))==null?void 0:o.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(i){var o=i.queryKey,s=i.state,l=s.data;return[o,l]})},t.setQueryData=function(r,i,o){var s=zi(r),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(i,o)},t.setQueriesData=function(r,i,o){var s=this;return X.batch(function(){return s.getQueryCache().findAll(r).map(function(l){var u=l.queryKey;return[u,s.setQueryData(u,i,o)]})})},t.getQueryState=function(r,i){var o;return(o=this.queryCache.find(r,i))==null?void 0:o.state},t.removeQueries=function(r,i){var o=jt(r,i),s=o[0],l=this.queryCache;X.batch(function(){l.findAll(s).forEach(function(u){l.remove(u)})})},t.resetQueries=function(r,i,o){var s=this,l=jt(r,i,o),u=l[0],a=l[1],c=this.queryCache,f=U({},u,{active:!0});return X.batch(function(){return c.findAll(u).forEach(function(v){v.reset()}),s.refetchQueries(f,a)})},t.cancelQueries=function(r,i,o){var s=this,l=jt(r,i,o),u=l[0],a=l[1],c=a===void 0?{}:a;typeof c.revert>"u"&&(c.revert=!0);var f=X.batch(function(){return s.queryCache.findAll(u).map(function(v){return v.cancel(c)})});return Promise.all(f).then(pe).catch(pe)},t.invalidateQueries=function(r,i,o){var s,l,u,a=this,c=jt(r,i,o),f=c[0],v=c[1],g=U({},f,{active:(s=(l=f.refetchActive)!=null?l:f.active)!=null?s:!0,inactive:(u=f.refetchInactive)!=null?u:!1});return X.batch(function(){return a.queryCache.findAll(f).forEach(function(x){x.invalidate()}),a.refetchQueries(g,v)})},t.refetchQueries=function(r,i,o){var s=this,l=jt(r,i,o),u=l[0],a=l[1],c=X.batch(function(){return s.queryCache.findAll(u).map(function(v){return v.fetch(void 0,U({},a,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),f=Promise.all(c).then(pe);return a!=null&&a.throwOnError||(f=f.catch(pe)),f},t.fetchQuery=function(r,i,o){var s=zi(r,i,o),l=this.defaultQueryOptions(s);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(pe).catch(pe)},t.fetchInfiniteQuery=function(r,i,o){var s=zi(r,i,o);return s.behavior=Mv(),this.fetchQuery(s)},t.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(pe).catch(pe)},t.cancelMutations=function(){var r=this,i=X.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(pe).catch(pe)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(s){return rn(r)===rn(s.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},t.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return go(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(s){return rn(r)===rn(s.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},t.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return go(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=U({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=Pu(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:U({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),bv=function(e){Zn(t,e);function t(r,i){var o;return o=e.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),nc(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return kl(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return kl(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var s=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();var u=this.hasListeners();u&&rc(this.currentQuery,l,this.options,s)&&this.executeFetch(),this.updateResult(o),u&&(this.currentQuery!==l||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();var a=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==s.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return this.createResult(s,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var s=this,l={},u=function(c){s.trackedProps.includes(c)||s.trackedProps.push(c)};return Object.keys(i).forEach(function(a){Object.defineProperty(l,a,{configurable:!1,enumerable:!0,get:function(){return u(a),i[a]}})}),(o.useErrorBoundary||o.suspense)&&u("error"),l},n.getNextResult=function(i){var o=this;return new Promise(function(s,l){var u=o.subscribe(function(a){a.isFetching||(u(),a.isError&&(i!=null&&i.throwOnError)?l(a.error):s(a))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(U({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,s=this.client.defaultQueryObserverOptions(i),l=this.client.getQueryCache().build(this.client,s);return l.fetch().then(function(){return o.createResult(l,s)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(pe)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(vo||this.currentResult.isStale||!El(this.options.staleTime))){var o=Gd(this.currentResult.dataUpdatedAt,this.options.staleTime),s=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},s)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(vo||this.options.enabled===!1||!El(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||jr.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var s=this.currentQuery,l=this.options,u=this.currentResult,a=this.currentResultState,c=this.currentResultOptions,f=i!==s,v=f?i.state:this.currentQueryInitialState,g=f?this.currentResult:this.previousQueryResult,x=i.state,y=x.dataUpdatedAt,C=x.error,d=x.errorUpdatedAt,h=x.isFetching,m=x.status,S=!1,k=!1,E;if(o.optimisticResults){var R=this.hasListeners(),P=!R&&nc(i,o),D=R&&rc(i,s,o,l);(P||D)&&(h=!0,y||(m="loading"))}if(o.keepPreviousData&&!x.dataUpdateCount&&(g!=null&&g.isSuccess)&&m!=="error")E=g.data,y=g.dataUpdatedAt,m=g.status,S=!0;else if(o.select&&typeof x.data<"u")if(u&&x.data===(a==null?void 0:a.data)&&o.select===this.selectFn)E=this.selectResult;else try{this.selectFn=o.select,E=o.select(x.data),o.structuralSharing!==!1&&(E=wo(u==null?void 0:u.data,E)),this.selectResult=E,this.selectError=null}catch(ae){So().error(ae),this.selectError=ae}else E=x.data;if(typeof o.placeholderData<"u"&&typeof E>"u"&&(m==="loading"||m==="idle")){var L;if(u!=null&&u.isPlaceholderData&&o.placeholderData===(c==null?void 0:c.placeholderData))L=u.data;else if(L=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof L<"u")try{L=o.select(L),o.structuralSharing!==!1&&(L=wo(u==null?void 0:u.data,L)),this.selectError=null}catch(ae){So().error(ae),this.selectError=ae}typeof L<"u"&&(m="success",E=L,k=!0)}this.selectError&&(C=this.selectError,E=this.selectResult,d=Date.now(),m="error");var q={status:m,isLoading:m==="loading",isSuccess:m==="success",isError:m==="error",isIdle:m==="idle",data:E,dataUpdatedAt:y,error:C,errorUpdatedAt:d,failureCount:x.fetchFailureCount,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>v.dataUpdateCount||x.errorUpdateCount>v.errorUpdateCount,isFetching:h,isRefetching:h&&m!=="loading",isLoadingError:m==="error"&&x.dataUpdatedAt===0,isPlaceholderData:k,isPreviousData:S,isRefetchError:m==="error"&&x.dataUpdatedAt!==0,isStale:ju(i,o),refetch:this.refetch,remove:this.remove};return q},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var s=this.options,l=s.notifyOnChangeProps,u=s.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var a=l==="tracked"?this.trackedProps:l;return Object.keys(i).some(function(c){var f=c,v=i[f]!==o[f],g=a==null?void 0:a.some(function(y){return y===c}),x=u==null?void 0:u.some(function(y){return y===c});return v&&!x&&(!a||g)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Rv(this.currentResult,o)){var s={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(s.listeners=!0),this.notify(U({},s,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!Bi(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;X.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(s){s(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},t}(er);function Bv(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function nc(e,t){return Bv(e,t)||e.state.dataUpdatedAt>0&&kl(e,t,t.refetchOnMount)}function kl(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ju(e,t)}return!1}function rc(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&ju(e,n)}function ju(e,t){return e.isStaleByTime(t.staleTime)}var $v=function(e){Zn(t,e);function t(r,i){var o;return o=e.call(this)||this,o.client=r,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,U({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:rh(),o=U({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},n.notify=function(i){var o=this;X.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(s){s(o.currentResult)})})},t}(er),Qv=xv.unstable_batchedUpdates;X.setBatchNotifyFunction(Qv);var Hv=console;Tv(Hv);var ic=ie.createContext(void 0),ih=ie.createContext(!1);function oh(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ic),window.ReactQueryClientContext):ic}var Qo=function(){var t=ie.useContext(oh(ie.useContext(ih)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qv=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,o=t.children;ie.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=oh(i);return ie.createElement(ih.Provider,{value:i},ie.createElement(s.Provider,{value:n},o))};function Vv(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Wv=ie.createContext(Vv()),Kv=function(){return ie.useContext(Wv)};function sh(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function Rl(e,t,n){var r=ie.useRef(!1),i=ie.useState(0),o=i[1],s=Ev(e,t,n),l=Qo(),u=ie.useRef();u.current?u.current.setOptions(s):u.current=new $v(l,s);var a=u.current.getCurrentResult();ie.useEffect(function(){r.current=!0;var f=u.current.subscribe(X.batchCalls(function(){r.current&&o(function(v){return v+1})}));return function(){r.current=!1,f()}},[]);var c=ie.useCallback(function(f,v){u.current.mutate(f,v).catch(pe)},[]);if(a.error&&sh(void 0,u.current.options.useErrorBoundary,[a.error]))throw a.error;return U({},a,{mutate:c,mutateAsync:a.mutate})}function Xv(e,t){var n=ie.useRef(!1),r=ie.useState(0),i=r[1],o=Qo(),s=Kv(),l=o.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=X.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=X.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=X.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(s.isReset()||(l.retryOnMount=!1));var u=ie.useState(function(){return new t(o,l)}),a=u[0],c=a.getOptimisticResult(l);if(ie.useEffect(function(){n.current=!0,s.clearReset();var f=a.subscribe(X.batchCalls(function(){n.current&&i(function(v){return v+1})}));return a.updateResult(),function(){n.current=!1,f()}},[s,a]),ie.useEffect(function(){a.setOptions(l,{listeners:!1})},[l,a]),l.suspense&&c.isLoading)throw a.fetchOptimistic(l).then(function(f){var v=f.data;l.onSuccess==null||l.onSuccess(v),l.onSettled==null||l.onSettled(v,null)}).catch(function(f){s.clearReset(),l.onError==null||l.onError(f),l.onSettled==null||l.onSettled(void 0,f)});if(c.isError&&!s.isReset()&&!c.isFetching&&sh(l.suspense,l.useErrorBoundary,[c.error,a.getCurrentQuery()]))throw c.error;return l.notifyOnChangeProps==="tracked"&&(c=a.trackResult(c,l)),c}function it(e,t,n){var r=zi(e,t,n);return Xv(r,bv)}/**
|
||
* @remix-run/router v1.23.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(null,arguments)}var At;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(At||(At={}));const oc="popstate";function Jv(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:l}=r.location;return _l("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Eo(i)}return Yv(t,n,null,e)}function ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gv(){return Math.random().toString(36).substr(2,8)}function sc(e,t){return{usr:e.state,key:e.key,idx:t}}function _l(e,t,n,r){return n===void 0&&(n=null),Wr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?tr(t):t,{state:n,key:t&&t.key||r||Gv()})}function Eo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function tr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Yv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=At.Pop,u=null,a=c();a==null&&(a=0,s.replaceState(Wr({},s.state,{idx:a}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=At.Pop;let C=c(),d=C==null?null:C-a;a=C,u&&u({action:l,location:y.location,delta:d})}function v(C,d){l=At.Push;let h=_l(y.location,C,d);a=c()+1;let m=sc(h,a),S=y.createHref(h);try{s.pushState(m,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(S)}o&&u&&u({action:l,location:y.location,delta:1})}function g(C,d){l=At.Replace;let h=_l(y.location,C,d);a=c();let m=sc(h,a),S=y.createHref(h);s.replaceState(m,"",S),o&&u&&u({action:l,location:y.location,delta:0})}function x(C){let d=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof C=="string"?C:Eo(C);return h=h.replace(/ $/,"%20"),ne(d,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,d)}let y={get action(){return l},get location(){return e(i,s)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(oc,f),u=C,()=>{i.removeEventListener(oc,f),u=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let d=x(C);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:v,replace:g,go(C){return s.go(C)}};return y}var lc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lc||(lc={}));function Zv(e,t,n){return n===void 0&&(n="/"),ey(e,t,n)}function ey(e,t,n,r){let i=typeof t=="string"?tr(t):t,o=Wn(i.pathname||"/",n);if(o==null)return null;let s=lh(e);ty(s);let l=null,u=dy(o);for(let a=0;l==null&&a<s.length;++a)l=cy(s[a],u);return l}function lh(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,l)=>{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(ne(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=Qt([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(ne(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),lh(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:uy(a,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of uh(o.path))i(o,s,u)}),t}function uh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=uh(r.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function ty(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ay(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ny=/^:[\w-]+$/,ry=3,iy=2,oy=1,sy=10,ly=-2,uc=e=>e==="*";function uy(e,t){let n=e.split("/"),r=n.length;return n.some(uc)&&(r+=ly),t&&(r+=iy),n.filter(i=>!uc(i)).reduce((i,o)=>i+(ny.test(o)?ry:o===""?oy:sy),r)}function ay(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cy(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let l=0;l<r.length;++l){let u=r[l],a=l===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=Ol({path:u.relativePath,caseSensitive:u.caseSensitive,end:a},c),v=u.route;if(!f)return null;Object.assign(i,f.params),s.push({params:i,pathname:Qt([o,f.pathname]),pathnameBase:yy(Qt([o,f.pathnameBase])),route:v}),f.pathnameBase!=="/"&&(o=Qt([o,f.pathnameBase]))}return s}function Ol(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=fy(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((a,c,f)=>{let{paramName:v,isOptional:g}=c;if(v==="*"){let y=l[f]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const x=l[f];return g&&!x?a[v]=void 0:a[v]=(x||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:s,pattern:e}}function fy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nu(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function dy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Wn(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)||"/"}const hy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,py=e=>hy.test(e);function my(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?tr(e):e,o;if(n)if(py(n))o=n;else{if(n.includes("//")){let s=n;n=fh(n),Nu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=ac(n.substring(1),"/"):o=ac(n,t)}else o=t;return{pathname:o,search:gy(r),hash:wy(i)}}function ac(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Cs(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 <Link to="..."> and the router will parse it for you.'}function vy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ah(e,t){let n=vy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ch(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=tr(e):(i=Wr({},e),ne(!i.pathname||!i.pathname.includes("?"),Cs("?","pathname","search",i)),ne(!i.pathname||!i.pathname.includes("#"),Cs("#","pathname","hash",i)),ne(!i.search||!i.search.includes("#"),Cs("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),f-=1;i.pathname=v.join("/")}l=f>=0?t[f]:"/"}let u=my(i,l),a=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||c)&&(u.pathname+="/"),u}const fh=e=>e.replace(/\/\/+/g,"/"),Qt=e=>fh(e.join("/")),yy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const dh=["post","put","patch","delete"];new Set(dh);const Sy=["get",...dh];new Set(Sy);/**
|
||
* React Router v6.30.4
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(null,arguments)}const Ho=O.createContext(null),hh=O.createContext(null),Xt=O.createContext(null),qo=O.createContext(null),gn=O.createContext({outlet:null,matches:[],isDataRoute:!1}),ph=O.createContext(null);function Ey(e,t){let{relative:n}=t===void 0?{}:t;ni()||ne(!1);let{basename:r,navigator:i}=O.useContext(Xt),{hash:o,pathname:s,search:l}=Vo(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:Qt([r,s])),i.createHref({pathname:u,search:l,hash:o})}function ni(){return O.useContext(qo)!=null}function ri(){return ni()||ne(!1),O.useContext(qo).location}function mh(e){O.useContext(Xt).static||O.useLayoutEffect(e)}function Cy(){let{isDataRoute:e}=O.useContext(gn);return e?Iy():ky()}function ky(){ni()||ne(!1);let e=O.useContext(Ho),{basename:t,future:n,navigator:r}=O.useContext(Xt),{matches:i}=O.useContext(gn),{pathname:o}=ri(),s=JSON.stringify(ah(i,n.v7_relativeSplatPath)),l=O.useRef(!1);return mh(()=>{l.current=!0}),O.useCallback(function(a,c){if(c===void 0&&(c={}),!l.current)return;if(typeof a=="number"){r.go(a);return}let f=ch(a,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qt([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,o,e])}function Vo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(Xt),{matches:i}=O.useContext(gn),{pathname:o}=ri(),s=JSON.stringify(ah(i,r.v7_relativeSplatPath));return O.useMemo(()=>ch(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Ry(e,t){return _y(e,t)}function _y(e,t,n,r){ni()||ne(!1);let{navigator:i}=O.useContext(Xt),{matches:o}=O.useContext(gn),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let a=ri(),c;if(t){var f;let C=typeof t=="string"?tr(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||ne(!1),c=C}else c=a;let v=c.pathname||"/",g=v;if(u!=="/"){let C=u.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=Zv(e,{pathname:g}),y=Ty(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Qt([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Qt([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&y?O.createElement(qo.Provider,{value:{location:Kr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:At.Pop}},y):y}function Oy(){let e=Dy(),t=xy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const Py=O.createElement(Oy,null);class jy extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(gn.Provider,{value:this.props.routeContext},O.createElement(ph.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ny(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Ho);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(gn.Provider,{value:t},r)}function Ty(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||ne(!1),s=s.slice(0,Math.min(s.length,c+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(a=c),f.route.id){let{loaderData:v,errors:g}=n,x=f.route.loader&&v[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||x){u=!0,a>=0?s=s.slice(0,a+1):s=[s[0]];break}}}return s.reduceRight((c,f,v)=>{let g,x=!1,y=null,C=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||Py,u&&(a<0&&v===0?(My("route-fallback"),x=!0,C=null):a===v&&(x=!0,C=f.route.hydrateFallbackElement||null)));let d=t.concat(s.slice(0,v+1)),h=()=>{let m;return g?m=y:x?m=C:f.route.Component?m=O.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,O.createElement(Ny,{match:f,routeContext:{outlet:c,matches:d,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||v===0)?O.createElement(jy,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:h(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):h()},null)}var vh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vh||{}),yh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yh||{});function Ly(e){let t=O.useContext(Ho);return t||ne(!1),t}function Fy(e){let t=O.useContext(hh);return t||ne(!1),t}function Ay(e){let t=O.useContext(gn);return t||ne(!1),t}function gh(e){let t=Ay(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function Dy(){var e;let t=O.useContext(ph),n=Fy(),r=gh();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Iy(){let{router:e}=Ly(vh.UseNavigateStable),t=gh(yh.UseNavigateStable),n=O.useRef(!1);return mh(()=>{n.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Kr({fromRouteId:t},o)))},[e,t])}const cc={};function My(e,t,n){cc[e]||(cc[e]=!0)}function Uy(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Zt(e){ne(!1)}function zy(e){let{basename:t="/",children:n=null,location:r,navigationType:i=At.Pop,navigator:o,static:s=!1,future:l}=e;ni()&&ne(!1);let u=t.replace(/^\/*/,"/"),a=O.useMemo(()=>({basename:u,navigator:o,static:s,future:Kr({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=tr(r));let{pathname:c="/",search:f="",hash:v="",state:g=null,key:x="default"}=r,y=O.useMemo(()=>{let C=Wn(c,u);return C==null?null:{location:{pathname:C,search:f,hash:v,state:g,key:x},navigationType:i}},[u,c,f,v,g,x,i]);return y==null?null:O.createElement(Xt.Provider,{value:a},O.createElement(qo.Provider,{children:n,value:y}))}function by(e){let{children:t,location:n}=e;return Ry(Pl(t),n)}new Promise(()=>{});function Pl(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let o=[...t,i];if(r.type===O.Fragment){n.push.apply(n,Pl(r.props.children,o));return}r.type!==Zt&&ne(!1),!r.props.index||!r.props.children||ne(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Pl(r.props.children,o)),n.push(s)}),n}/**
|
||
* React Router DOM v6.30.4
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(null,arguments)}function wh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function By(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $y(e,t){return e.button===0&&(!t||t==="_self")&&!By(e)}const Qy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hy=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],qy="6";try{window.__reactRouterVersion=qy}catch{}const Vy=O.createContext({isTransitioning:!1}),Wy="startTransition",fc=ap[Wy];function Ky(e){let{basename:t,children:n,future:r,window:i}=e,o=O.useRef();o.current==null&&(o.current=Jv({window:i,v5Compat:!0}));let s=o.current,[l,u]=O.useState({action:s.action,location:s.location}),{v7_startTransition:a}=r||{},c=O.useCallback(f=>{a&&fc?fc(()=>u(f)):u(f)},[u,a]);return O.useLayoutEffect(()=>s.listen(c),[s,c]),O.useEffect(()=>Uy(r),[r]),O.createElement(zy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const Xy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gy=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:a,preventScrollReset:c,viewTransition:f}=t,v=wh(t,Qy),{basename:g}=O.useContext(Xt),x,y=!1;if(typeof a=="string"&&Jy.test(a)&&(x=a,Xy))try{let m=new URL(window.location.href),S=a.startsWith("//")?new URL(m.protocol+a):new URL(a),k=Wn(S.pathname,g);S.origin===m.origin&&k!=null?a=k+S.search+S.hash:y=!0}catch{}let C=Ey(a,{relative:i}),d=Zy(a,{replace:s,state:l,target:u,preventScrollReset:c,relative:i,viewTransition:f});function h(m){r&&r(m),m.defaultPrevented||d(m)}return O.createElement("a",Co({},v,{href:x||C,onClick:y||o?r:h,ref:n,target:u}))}),dc=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:l,to:u,viewTransition:a,children:c}=t,f=wh(t,Hy),v=Vo(u,{relative:f.relative}),g=ri(),x=O.useContext(hh),{navigator:y,basename:C}=O.useContext(Xt),d=x!=null&&eg(v)&&a===!0,h=y.encodeLocation?y.encodeLocation(v).pathname:v.pathname,m=g.pathname,S=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(m=m.toLowerCase(),S=S?S.toLowerCase():null,h=h.toLowerCase()),S&&C&&(S=Wn(S,C)||S);const k=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=m===h||!s&&m.startsWith(h)&&m.charAt(k)==="/",R=S!=null&&(S===h||!s&&S.startsWith(h)&&S.charAt(h.length)==="/"),P={isActive:E,isPending:R,isTransitioning:d},D=E?r:void 0,L;typeof o=="function"?L=o(P):L=[o,E?"active":null,R?"pending":null,d?"transitioning":null].filter(Boolean).join(" ");let q=typeof l=="function"?l(P):l;return O.createElement(Gy,Co({},f,{"aria-current":D,className:L,ref:n,style:q,to:u,viewTransition:a}),typeof c=="function"?c(P):c)});var jl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jl||(jl={}));var hc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hc||(hc={}));function Yy(e){let t=O.useContext(Ho);return t||ne(!1),t}function Zy(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,u=Cy(),a=ri(),c=Vo(e,{relative:s});return O.useCallback(f=>{if($y(f,n)){f.preventDefault();let v=r!==void 0?r:Eo(a)===Eo(c);u(e,{replace:v,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[a,u,c,r,i,n,e,o,s,l])}function eg(e,t){t===void 0&&(t={});let n=O.useContext(Vy);n==null&&ne(!1);let{basename:r}=Yy(jl.useViewTransitionState),i=Vo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Wn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Wn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ol(i.pathname,s)!=null||Ol(i.pathname,o)!=null}/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var tg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ng=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),st=(e,t)=>{const n=O.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:u,...a},c)=>O.createElement("svg",{ref:c,...tg,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${ng(e)}`,l].join(" "),...a},[...t.map(([f,v])=>O.createElement(f,v)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pc=st("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rg=st("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ig=st("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const og=st("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sg=st("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lg=st("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ug=st("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ag=st("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cg=st("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fg=st("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||
* @license lucide-react v0.294.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dg=st("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function hg({children:e}){const[t,n]=O.useState(!1),r=[{to:"/",icon:ug,label:"Översikt"},{to:"/finance",icon:lg,label:"Ekonomi"},{to:"/quixzoom",icon:rg,label:"quiXzoom"},{to:"/support",icon:og,label:"Support"},{to:"/apis",icon:cg,label:"API:er"},{to:"/systems",icon:fg,label:"System"}];return p.jsxs("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column"},children:[p.jsxs("header",{style:{background:"var(--navy)",color:"white",padding:"16px 20px",position:"sticky",top:0,zIndex:100,display:"flex",alignItems:"center",gap:12},children:[p.jsx("div",{style:{width:36,height:36,borderRadius:10,background:"var(--amber)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18},children:"🔁"}),p.jsx("h1",{style:{fontSize:"1.1rem",fontWeight:700,flex:1,margin:0},children:"AAMOS Command Center"}),p.jsx("button",{onClick:()=>n(!t),style:{background:"none",border:"none",color:"white",cursor:"pointer"},children:t?p.jsx(dg,{size:24}):p.jsx(ag,{size:24})})]}),p.jsx("nav",{style:{display:"flex",gap:8,padding:"12px 16px",overflowX:"auto",background:"white",borderBottom:"1px solid var(--border)",WebkitOverflowScrolling:"touch"},children:r.map(i=>p.jsxs(dc,{to:i.to,style:({isActive:o})=>({whiteSpace:"nowrap",padding:"8px 16px",borderRadius:20,border:"1px solid var(--border)",background:o?"var(--navy)":"white",color:o?"white":"var(--navy)",fontSize:"0.88rem",fontWeight:500,textDecoration:"none",display:"flex",alignItems:"center",gap:6}),children:[p.jsx(i.icon,{size:16}),i.label]},i.to))}),p.jsx("main",{style:{flex:1,padding:16,paddingBottom:80},children:e}),p.jsx("nav",{style:{position:"fixed",bottom:0,left:0,right:0,background:"white",borderTop:"1px solid var(--border)",display:"flex",justifyContent:"space-around",padding:"8px 0",zIndex:100},children:r.slice(0,4).map(i=>p.jsxs(dc,{to:i.to,style:({isActive:o})=>({background:"none",border:"none",fontSize:"0.7rem",color:o?"var(--navy)":"var(--muted)",display:"flex",flexDirection:"column",alignItems:"center",gap:3,textDecoration:"none",padding:"4px 12px"}),children:[p.jsx(i.icon,{size:20}),i.label]},i.to))})]})}function xh(e,t){return function(){return e.apply(t,arguments)}}const{toString:pg}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:ii,toStringTag:Sh}=Symbol,ko=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xr=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),ko(n,t))return!0;n=Kn(n)}return!1},mg=(e,t)=>e!=null&&Xr(e,t)?e[t]:void 0,Tu=(e=>t=>{const n=pg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Tu(t)===e),Wo=e=>t=>typeof t===e,{isArray:pn}=Array,Xn=Wo("undefined");function nr(e){return e!==null&&!Xn(e)&&e.constructor!==null&&!Xn(e.constructor)&&Ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eh=lt("ArrayBuffer");function vg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eh(e.buffer),t}const yg=Wo("string"),Ae=Wo("function"),Ch=Wo("number"),rr=e=>e!==null&&typeof e=="object",gg=e=>e===!0||e===!1,$i=e=>{if(!rr(e))return!1;const t=Kn(e);return(t===null||t===Object.prototype||Kn(t)===null)&&!Xr(e,Sh)&&!Xr(e,ii)},wg=e=>{if(!rr(e)||nr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xg=lt("Date"),Sg=lt("File"),Eg=e=>!!(e&&typeof e.uri<"u"),Cg=e=>e&&typeof e.getParts<"u",kg=lt("Blob"),Rg=lt("FileList"),_g=e=>rr(e)&&Ae(e.pipe);function Og(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const mc=Og(),vc=typeof mc.FormData<"u"?mc.FormData:void 0,Pg=e=>{if(!e)return!1;if(vc&&e instanceof vc)return!0;const t=Kn(e);if(!t||t===Object.prototype||!Ae(e.append))return!1;const n=Tu(e);return n==="formdata"||n==="object"&&Ae(e.toString)&&e.toString()==="[object FormData]"},jg=lt("URLSearchParams"),[Ng,Tg,Lg,Fg]=["ReadableStream","Request","Response","Headers"].map(lt),Ag=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),pn(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(nr(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let l;for(r=0;r<s;r++)l=o[r],t.call(null,e[l],l,e)}}function kh(e,t){if(nr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rh=e=>!Xn(e)&&e!==on;function Nl(...e){const{caseless:t,skipUndefined:n}=Rh(this)&&this||{},r={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const l=t&&typeof s=="string"&&kh(r,s)||s,u=ko(r,l)?r[l]:void 0;$i(u)&&$i(o)?r[l]=Nl(u,o):$i(o)?r[l]=Nl({},o):pn(o)?r[l]=o.slice():(!n||!Xn(o))&&(r[l]=o)};for(let o=0,s=e.length;o<s;o++){const l=e[o];if(!l||nr(l)||(oi(l,i),typeof l!="object"||pn(l)))continue;const u=Object.getOwnPropertySymbols(l);for(let a=0;a<u.length;a++){const c=u[a];Vg.call(l,c)&&i(l[c],c)}}return r}const Dg=(e,t,n,{allOwnKeys:r}={})=>(oi(t,(i,o)=>{n&&Ae(i)?Object.defineProperty(e,o,{__proto__:null,value:xh(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Ig=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Ug=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Kn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bg=e=>{if(!e)return null;if(pn(e))return e;let t=e.length;if(!Ch(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kn(Uint8Array)),$g=(e,t)=>{const r=(e&&e[ii]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Qg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Hg=lt("HTMLFormElement"),qg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:Vg}=Object.prototype,Wg=lt("RegExp"),_h=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};oi(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},Kg=e=>{_h(e,(t,n)=>{if(Ae(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Ae(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xg=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return pn(e)?r(e):r(String(e).split(t)),n},Jg=()=>{},Gg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yg(e){return!!(e&&Ae(e.append)&&e[Sh]==="FormData"&&e[ii])}const Zg=e=>{const t=new WeakSet,n=r=>{if(rr(r)){if(t.has(r))return;if(nr(r))return r;if(!("toJSON"in r)){t.add(r);const i=pn(r)?[]:{};return oi(r,(o,s)=>{const l=n(o);!Xn(l)&&(i[s]=l)}),t.delete(r),i}}return r};return n(e)},e0=lt("AsyncFunction"),t0=e=>e&&(rr(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),Oh=((e,t)=>e?setImmediate:t?((n,r)=>(on.addEventListener("message",({source:i,data:o})=>{i===on&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),on.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ae(on.postMessage)),n0=typeof queueMicrotask<"u"?queueMicrotask.bind(on):typeof process<"u"&&process.nextTick||Oh,Ph=e=>e!=null&&Ae(e[ii]),r0=e=>e!=null&&Xr(e,ii)&&Ph(e),w={isArray:pn,isArrayBuffer:Eh,isBuffer:nr,isFormData:Pg,isArrayBufferView:vg,isString:yg,isNumber:Ch,isBoolean:gg,isObject:rr,isPlainObject:$i,isEmptyObject:wg,isReadableStream:Ng,isRequest:Tg,isResponse:Lg,isHeaders:Fg,isUndefined:Xn,isDate:xg,isFile:Sg,isReactNativeBlob:Eg,isReactNative:Cg,isBlob:kg,isRegExp:Wg,isFunction:Ae,isStream:_g,isURLSearchParams:jg,isTypedArray:Bg,isFileList:Rg,forEach:oi,merge:Nl,extend:Dg,trim:Ag,stripBOM:Ig,inherits:Mg,toFlatObject:Ug,kindOf:Tu,kindOfTest:lt,endsWith:zg,toArray:bg,forEachEntry:$g,matchAll:Qg,isHTMLForm:Hg,hasOwnProperty:ko,hasOwnProp:ko,hasOwnInPrototypeChain:Xr,getSafeProp:mg,reduceDescriptors:_h,freezeMethods:Kg,toObjectSet:Xg,toCamelCase:qg,noop:Jg,toFiniteNumber:Gg,findKey:kh,global:on,isContextDefined:Rh,isSpecCompliantForm:Yg,toJSONObject:Zg,isAsyncFn:e0,isThenable:t0,setImmediate:Oh,asap:n0,isIterable:Ph,isSafeIterable:r0},i0=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),o0=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&i0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function s0(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const l0=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),u0=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Lu(e,t){return w.isArray(e)?e.map(n=>Lu(n,t)):s0(String(e).replace(t,""))}const a0=e=>Lu(e,l0),c0=e=>Lu(e,u0);function jh(e){const t=Object.create(null);return w.forEach(e.toJSON(),(n,r)=>{t[r]=c0(n)}),t}const yc=Symbol("internals");function hr(e){return e&&String(e).trim().toLowerCase()}function Qi(e){return e===!1||e==null?e:w.isArray(e)?e.map(Qi):a0(String(e))}function f0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const d0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ks(e,t,n,r,i){if(w.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function h0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function p0(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Ce=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,u,a){const c=hr(u);if(!c)return;const f=w.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||u]=Qi(l))}const s=(l,u)=>w.forEach(l,(a,c)=>o(a,c,u));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!d0(t))s(o0(t),n);else if(w.isObject(t)&&w.isSafeIterable(t)){let l=Object.create(null),u,a;for(const c of t){if(!w.isArray(c))throw new TypeError("Object iterator must return a key-value pair");a=c[0],w.hasOwnProp(l,a)?(u=l[a],l[a]=w.isArray(u)?[...u,c[1]]:[u,c[1]]):l[a]=c[1]}s(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=hr(t),t){const r=w.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return f0(i);if(w.isFunction(n))return n.call(this,i,r);if(w.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hr(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ks(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=hr(s),s){const l=w.findKey(r,s);l&&(!n||ks(r,r[l],l,n))&&(delete r[l],i=!0)}}return w.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ks(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return w.forEach(this,(i,o)=>{const s=w.findKey(r,o);if(s){n[s]=Qi(i),delete n[o];return}const l=t?h0(o):String(o).trim();l!==o&&delete n[o],n[l]=Qi(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[yc]=this[yc]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=hr(s);r[l]||(p0(i,s),r[l]=!0)}return w.isArray(t)?t.forEach(o):o(t),this}};Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(Ce);const m0="[REDACTED ****]";function v0(e){if(w.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(w.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function y0(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||w.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof Ce&&(o=o.toJSON()),r.push(o);let s;if(w.isArray(o))s=[],o.forEach((l,u)=>{const a=i(l);w.isUndefined(a)||(s[u]=a)});else{if(!w.isPlainObject(o)&&v0(o))return r.pop(),o;s=Object.create(null);for(const[l,u]of Object.entries(o)){const a=n.has(l.toLowerCase())?m0:i(u);w.isUndefined(a)||(s[l]=a)}}return r.pop(),s};return i(e)}let N=class Nh extends Error{static from(t,n,r,i,o,s){const l=new Nh(t.message,n||t.code,r,i,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&w.hasOwnProp(t,"redact")?t.redact:void 0,r=w.isArray(n)&&n.length>0?y0(t,n):w.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};N.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";N.ERR_BAD_OPTION="ERR_BAD_OPTION";N.ECONNABORTED="ECONNABORTED";N.ETIMEDOUT="ETIMEDOUT";N.ECONNREFUSED="ECONNREFUSED";N.ERR_NETWORK="ERR_NETWORK";N.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";N.ERR_DEPRECATED="ERR_DEPRECATED";N.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";N.ERR_BAD_REQUEST="ERR_BAD_REQUEST";N.ERR_CANCELED="ERR_CANCELED";N.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";N.ERR_INVALID_URL="ERR_INVALID_URL";N.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const g0=null,Th=100;function Tl(e){return w.isPlainObject(e)||w.isArray(e)}function Lh(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Rs(e,t,n){return e?e.concat(t).map(function(i,o){return i=Lh(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function w0(e){return w.isArray(e)&&!e.some(Tl)}const x0=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!w.isUndefined(m[h])});const r=n.metaTokens,i=n.visitor||x,o=n.dots,s=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?Th:n.maxDepth,a=l&&w.isSpecCompliantForm(t),c=[];if(!w.isFunction(i))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(w.isDate(d))return d.toISOString();if(w.isBoolean(d))return d.toString();if(!a&&w.isBlob(d))throw new N("Blob is not supported. Use a Buffer instead.");if(w.isArrayBuffer(d)||w.isTypedArray(d)){if(a&&typeof l=="function")return new l([d]);if(typeof Buffer<"u")return Buffer.from(d);throw new N("Blob is not supported. Use a Buffer instead.",N.ERR_NOT_SUPPORT)}return d}function v(d){if(d>u)throw new N("Object is too deeply nested ("+d+" levels). Max depth: "+u,N.ERR_FORM_DATA_DEPTH_EXCEEDED)}function g(d,h){if(u===1/0)return JSON.stringify(d);const m=[];return JSON.stringify(d,function(k,E){if(!w.isObject(E))return E;for(;m.length&&m[m.length-1]!==this;)m.pop();return m.push(E),v(h+m.length-1),E})}function x(d,h,m){let S=d;if(w.isReactNative(t)&&w.isReactNativeBlob(d))return t.append(Rs(m,h,o),f(d)),!1;if(d&&!m&&typeof d=="object"){if(w.endsWith(h,"{}"))h=r?h:h.slice(0,-2),d=g(d,1);else if(w.isArray(d)&&w0(d)||(w.isFileList(d)||w.endsWith(h,"[]"))&&(S=w.toArray(d)))return h=Lh(h),S.forEach(function(E,R){!(w.isUndefined(E)||E===null)&&t.append(s===!0?Rs([h],R,o):s===null?h:h+"[]",f(E))}),!1}return Tl(d)?!0:(t.append(Rs(m,h,o),f(d)),!1)}const y=Object.assign(x0,{defaultVisitor:x,convertValue:f,isVisitable:Tl});function C(d,h,m=0){if(!w.isUndefined(d)){if(v(m),c.indexOf(d)!==-1)throw new Error("Circular reference detected in "+h.join("."));c.push(d),w.forEach(d,function(k,E){(!(w.isUndefined(k)||k===null)&&i.call(t,k,w.isString(E)?E.trim():E,h,y))===!0&&C(k,h?h.concat(E):[E],m+1)}),c.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return C(e),t}function gc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Fu(e,t){this._pairs=[],e&&Ko(e,this,t)}const Fh=Fu.prototype;Fh.append=function(t,n){this._pairs.push([t,n])};Fh.toString=function(t){const n=t?r=>t.call(this,r,gc):gc;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function S0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ah(e,t,n){if(!t)return e;e=e||"";const r=w.isFunction(n)?{serialize:n}:n,i=w.getSafeProp(r,"encode")||S0,o=w.getSafeProp(r,"serialize");let s;if(o?s=o(t,r):s=w.isURLSearchParams(t)?t.toString():new Fu(t,r).toString(i),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class wc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},E0=typeof URLSearchParams<"u"?URLSearchParams:Fu,C0=typeof FormData<"u"?FormData:null,k0=typeof Blob<"u"?Blob:null,R0={isBrowser:!0,classes:{URLSearchParams:E0,FormData:C0,Blob:k0},protocols:["http","https","file","blob","url","data"]},Du=typeof window<"u"&&typeof document<"u",Ll=typeof navigator=="object"&&navigator||void 0,_0=Du&&(!Ll||["ReactNative","NativeScript","NS"].indexOf(Ll.product)<0),O0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",P0=Du&&window.location.href||"http://localhost",j0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Du,hasStandardBrowserEnv:_0,hasStandardBrowserWebWorkerEnv:O0,navigator:Ll,origin:P0},Symbol.toStringTag,{value:"Module"})),me={...j0,...R0};function N0(e,t){return Ko(e,new me.classes.URLSearchParams,{visitor:function(n,r,i,o){return me.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const xc=Th;function Dh(e){if(e>xc)throw new N("FormData field is too deeply nested ("+e+" levels). Max depth: "+xc,N.ERR_FORM_DATA_DEPTH_EXCEEDED)}function T0(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)Dh(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function L0(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Ih(e){function t(n,r,i,o){Dh(o);let s=n[o++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),u=o>=n.length;return s=!s&&w.isArray(i)?i.length:s,u?(w.hasOwnProp(i,s)?i[s]=w.isArray(i[s])?i[s].concat(r):[i[s],r]:i[s]=r,!l):((!w.hasOwnProp(i,s)||!w.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&w.isArray(i[s])&&(i[s]=L0(i[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,i)=>{t(T0(r),i,n,0)}),n}return null}const Sn=(e,t)=>e!=null&&w.hasOwnProp(e,t)?e[t]:void 0;function F0(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const si={transitional:Au,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=w.isObject(t);if(o&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return i?JSON.stringify(Ih(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){const u=Sn(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return N0(t,u).toString();if((l=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=Sn(this,"env"),c=a&&a.FormData;return Ko(l?{"files[]":t}:t,c&&new c,u)}}return o||i?(n.setContentType("application/json",!1),F0(t)):t}],transformResponse:[function(t){const n=Sn(this,"transitional")||si.transitional,r=n&&n.forcedJSONParsing,i=Sn(this,"responseType"),o=i==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!i||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Sn(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?N.from(u,N.ERR_BAD_RESPONSE,this,null,Sn(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch","query"],e=>{si.headers[e]={}});function _s(e,t){const n=this||si,r=t||n,i=Ce.from(r.headers);let o=r.data;return w.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Mh(e){return!!(e&&e.__CANCEL__)}let li=class extends N{constructor(t,n,r){super(t??"canceled",N.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Uh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new N("Request failed with status code "+n.status,n.status>=400&&n.status<500?N.ERR_BAD_REQUEST:N.ERR_BAD_RESPONSE,n.config,n.request,n))}function A0(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function D0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[o];s||(s=a),n[i]=u,r[i]=a;let f=o,v=0;for(;f!==i;)v+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),a-s<t)return;const g=c&&a-c;return g?Math.round(v*1e3/g):void 0}}function I0(e,t){let n=0,r=1e3/t,i,o;const s=(a,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const c=Date.now(),f=c-n;f>=r?s(a,c):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},r-f)))},()=>i&&s(i)]}const Ro=(e,t,n=3)=>{let r=0;const i=D0(50,250);return I0(o=>{if(!o||typeof o.loaded!="number")return;const s=o.loaded,l=o.lengthComputable?o.total:void 0,u=l!=null?Math.min(s,l):s,a=Math.max(0,u-r),c=i(a);r=Math.max(r,u);const f={loaded:u,total:l,progress:l?u/l:void 0,bytes:a,rate:c||void 0,estimated:c&&l?(l-u)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Sc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ec=e=>(...t)=>w.asap(()=>e(...t)),M0=me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,U0=me.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];w.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),w.isString(r)&&l.push(`path=${r}`),w.isString(i)&&l.push(`domain=${i}`),o===!0&&l.push("secure"),w.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function z0(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function b0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const B0=/^https?:(?!\/\/)/i,$0=/[\t\n\r]/g;function Q0(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function H0(e){return Q0(e).replace($0,"")}function Cc(e,t){if(typeof e=="string"&&B0.test(H0(e)))throw new N('Invalid URL: missing "//" after protocol',N.ERR_INVALID_URL,t)}function zh(e,t,n,r){Cc(t,r);let i=!z0(t);return e&&(i||n===!1)?(Cc(e,r),b0(e,t)):t}const kc=e=>e instanceof Ce?{...e}:e;function mn(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,f,v,g){return w.isPlainObject(c)&&w.isPlainObject(f)?w.merge.call({caseless:g},c,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}function i(c,f,v,g){if(w.isUndefined(f)){if(!w.isUndefined(c))return r(void 0,c,v,g)}else return r(c,f,v,g)}function o(c,f){if(!w.isUndefined(f))return r(void 0,f)}function s(c,f){if(w.isUndefined(f)){if(!w.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function l(c){const f=w.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!w.isUndefined(f))if(w.isPlainObject(f)){if(w.hasOwnProp(f,c))return f[c]}else return;const v=w.hasOwnProp(e,"transitional")?e.transitional:void 0;if(w.isPlainObject(v)&&w.hasOwnProp(v,c))return v[c]}function u(c,f,v){if(w.hasOwnProp(t,v))return r(c,f);if(w.hasOwnProp(e,v))return r(void 0,c)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:u,headers:(c,f,v)=>i(kc(c),kc(f),v,!0)};return w.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const v=w.hasOwnProp(a,f)?a[f]:i,g=w.hasOwnProp(e,f)?e[f]:void 0,x=w.hasOwnProp(t,f)?t[f]:void 0,y=v(g,x,f);w.isUndefined(y)&&v!==u||(n[f]=y)}),w.hasOwnProp(t,"validateStatus")&&w.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(w.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const q0=["content-type","content-length"];function V0(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{q0.includes(r.toLowerCase())&&e.set(r,i)})}const W0=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function bh(e){const t=mn({},e),n=v=>w.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const u=n("auth"),a=n("baseURL"),c=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=Ce.from(l),t.url=Ah(zh(a,f,c,t),n("params"),n("paramsSerializer")),u){const v=w.getSafeProp(u,"username")||"",g=w.getSafeProp(u,"password")||"";try{l.set("Authorization","Basic "+btoa(v+":"+(g?W0(g):"")))}catch(x){throw N.from(x,N.ERR_BAD_OPTION_VALUE,e)}}if(w.isFormData(r)&&(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv||w.isReactNative(r)?l.setContentType(void 0):w.isFunction(r.getHeaders)&&V0(l,r.getHeaders(),n("formDataHeaderPolicy"))),me.hasStandardBrowserEnv&&(w.isFunction(i)&&(i=i(t)),i===!0||i==null&&M0(t.url))){const g=o&&s&&U0.read(s);g&&l.set(o,g)}return t}const K0=typeof XMLHttpRequest<"u",X0=K0&&function(e){return new Promise(function(n,r){const i=bh(e);let o=i.data;const s=Ce.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:a}=i,c,f,v,g,x;function y(){g&&g(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function d(){if(!C)return;const m=Ce.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:m,config:e,request:C};Uh(function(R){n(R),y()},function(R){r(R),y()},k),C=null}"onloadend"in C?C.onloadend=d:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:"))||setTimeout(d)},C.onabort=function(){C&&(r(new N("Request aborted",N.ECONNABORTED,e,C)),y(),C=null)},C.onerror=function(S){const k=S&&S.message?S.message:"Network Error",E=new N(k,N.ERR_NETWORK,e,C);E.event=S||null,r(E),y(),C=null},C.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||Au;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new N(S,k.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,C)),y(),C=null},o===void 0&&s.setContentType(null),"setRequestHeader"in C&&w.forEach(jh(s),function(S,k){C.setRequestHeader(k,S)}),w.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),l&&l!=="json"&&(C.responseType=i.responseType),a&&([v,x]=Ro(a,!0),C.addEventListener("progress",v)),u&&C.upload&&([f,g]=Ro(u),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(c=m=>{C&&(r(!m||m.type?new li(null,e,C):m),C.abort(),y(),C=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const h=A0(i.url);if(h&&!me.protocols.includes(h)){r(new N("Unsupported protocol "+h+":",N.ERR_BAD_REQUEST,e)),y();return}C.send(o||null)})},J0=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(u){if(!r){r=!0,s();const a=u instanceof Error?u:this.reason;n.abort(a instanceof N?a:new li(a instanceof Error?a.message:a))}};let o=t&&setTimeout(()=>{o=null,i(new N(`timeout of ${t}ms exceeded`,N.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i,{once:!0}));const{signal:l}=n;return l.unsubscribe=()=>w.asap(s),l},G0=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Y0=async function*(e,t){for await(const n of Z0(e))yield*G0(n,t)},Z0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Rc=(e,t,n,r)=>{const i=Y0(e,t);let o=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await i.next();if(a){l(),u.close();return}let f=c.byteLength;if(n){let v=o+=f;n(v)}u.enqueue(new Uint8Array(c))}catch(a){throw l(a),a}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},_o=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,e1=(e,t,n)=>t+2<n&&_o(e.charCodeAt(t+1))&&_o(e.charCodeAt(t+2));function t1(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let s=r.length;const l=r.length;for(let g=0;g<l;g++)if(r.charCodeAt(g)===37&&g+2<l){const x=r.charCodeAt(g+1),y=r.charCodeAt(g+2);_o(x)&&_o(y)&&(s-=2,g+=2)}let u=0,a=l-1;const c=g=>g>=2&&r.charCodeAt(g-2)===37&&r.charCodeAt(g-1)===51&&(r.charCodeAt(g)===68||r.charCodeAt(g)===100);a>=0&&(r.charCodeAt(a)===61?(u++,a--):c(a)&&(u++,a-=3)),u===1&&a>=0&&(r.charCodeAt(a)===61||c(a))&&u++;const v=Math.floor(s/4)*3-(u||0);return v>0?v:0}let o=0;for(let s=0,l=r.length;s<l;s++){const u=r.charCodeAt(s);if(u===37&&e1(r,s,l))o+=1,s+=2;else if(u<128)o+=1;else if(u<2048)o+=2;else if(u>=55296&&u<=56319&&s+1<l){const a=r.charCodeAt(s+1);a>=56320&&a<=57343?(o+=4,s++):o+=3}else o+=3}return o}const Iu="1.18.1",_c=64*1024,{isFunction:_i}=w,n1=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Oc=e=>{if(!w.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Pc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},r1=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},i1=e=>{const t=w.global!==void 0&&w.global!==null?w.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=w.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:s}=e,l=i?_i(i):typeof fetch=="function",u=_i(o),a=_i(s);if(!l)return!1;const c=l&&_i(n),f=l&&(typeof r=="function"?(d=>h=>d.encode(h))(new r):async d=>new Uint8Array(await new o(d).arrayBuffer())),v=u&&c&&Pc(()=>{let d=!1;const h=new o(me.origin,{body:new n,method:"POST",get duplex(){return d=!0,"half"}}),m=h.headers.has("Content-Type");return h.body!=null&&h.body.cancel(),d&&!m}),g=a&&c&&Pc(()=>w.isReadableStream(new s("").body)),x={stream:g&&(d=>d.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!x[d]&&(x[d]=(h,m)=>{let S=h&&h[d];if(S)return S.call(h);throw new N(`Response type '${d}' is not supported`,N.ERR_NOT_SUPPORT,m)})});const y=async d=>{if(d==null)return 0;if(w.isBlob(d))return d.size;if(w.isSpecCompliantForm(d))return(await new o(me.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(w.isArrayBufferView(d)||w.isArrayBuffer(d))return d.byteLength;if(w.isURLSearchParams(d)&&(d=d+""),w.isString(d))return(await f(d)).byteLength},C=async(d,h)=>{const m=w.toFiniteNumber(d.getContentLength());return m??y(h)};return async d=>{let{url:h,method:m,data:S,signal:k,cancelToken:E,timeout:R,onDownloadProgress:P,onUploadProgress:D,responseType:L,headers:q,withCredentials:ae="same-origin",fetchOptions:ge,maxContentLength:ee,maxBodyLength:De}=bh(d);const oe=w.isNumber(ee)&&ee>-1,Ie=w.isNumber(De)&&De>-1,j=b=>w.hasOwnProp(d,b)?d[b]:void 0;let F=i||fetch;L=L?(L+"").toLowerCase():"text";let A=J0([k,E&&E.toAbortSignal()],R),I=null;const H=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let Ge,Me=null;const wn=()=>new N("Request body larger than maxBodyLength limit",N.ERR_BAD_REQUEST,d,I);try{let b;const de=j("auth");if(de){const M=w.getSafeProp(de,"username")||"",Ue=w.getSafeProp(de,"password")||"";b={username:M,password:Ue}}if(r1(h)){const M=new URL(h,me.origin);if(!b&&(M.username||M.password)){const Ue=Oc(M.username),Rt=Oc(M.password);b={username:Ue,password:Rt}}(M.username||M.password)&&(M.username="",M.password="",h=M.href)}if(b&&(q.delete("authorization"),q.set("Authorization","Basic "+btoa(n1((b.username||"")+":"+(b.password||""))))),oe&&typeof h=="string"&&h.startsWith("data:")&&t1(h)>ee)throw new N("maxContentLength size of "+ee+" exceeded",N.ERR_BAD_RESPONSE,d,I);if(Ie&&m!=="get"&&m!=="head"){const M=await y(S);if(typeof M=="number"&&isFinite(M)&&(Ge=M,M>De))throw wn()}const ui=Ie&&(w.isReadableStream(S)||w.isStream(S)),Uu=(M,Ue,Rt)=>Rc(M,_c,Jt=>{if(Ie&&Jt>De)throw Me=wn();Ue&&Ue(Jt)},Rt);if(v&&m!=="get"&&m!=="head"&&(D||ui)){if(Ge=Ge??await C(q,S),Ge!==0||ui){let M=new o(h,{method:"POST",body:S,duplex:"half"}),Ue;if(w.isFormData(S)&&(Ue=M.headers.get("content-type"))&&q.setContentType(Ue),M.body){const[Rt,Jt]=D&&Sc(Ge,Ro(Ec(D)))||[];S=Uu(M.body,Rt,Jt)}}}else if(ui&&!u&&c&&m!=="get"&&m!=="head")S=Uu(S);else if(ui&&u&&!v&&m!=="get"&&m!=="head")throw new N("Stream request bodies are not supported by the current fetch implementation",N.ERR_NOT_SUPPORT,d,I);w.isString(ae)||(ae=ae?"include":"omit");const qh=u&&"credentials"in o.prototype;if(w.isFormData(S)){const M=q.getContentType();M&&/^multipart\/form-data/i.test(M)&&!/boundary=/i.test(M)&&q.delete("content-type")}q.set("User-Agent","axios/"+Iu,!1);const zu={...ge,signal:A,method:m.toUpperCase(),headers:jh(q.normalize()),body:S,duplex:"half",credentials:qh?ae:void 0};I=u&&new o(h,zu);let ht=await(u?F(I,ge):F(h,zu));const bu=Ce.from(ht.headers);if(oe){const M=w.toFiniteNumber(bu.getContentLength());if(M!=null&&M>ee)throw new N("maxContentLength size of "+ee+" exceeded",N.ERR_BAD_RESPONSE,d,I)}const Jo=g&&(L==="stream"||L==="response");if(g&&ht.body&&(P||oe||Jo&&H)){const M={};["status","statusText","headers"].forEach(ir=>{M[ir]=ht[ir]});const Ue=w.toFiniteNumber(bu.getContentLength()),[Rt,Jt]=P&&Sc(Ue,Ro(Ec(P),!0))||[];let Bu=0;const Vh=ir=>{if(oe&&(Bu=ir,Bu>ee))throw new N("maxContentLength size of "+ee+" exceeded",N.ERR_BAD_RESPONSE,d,I);Rt&&Rt(ir)};ht=new s(Rc(ht.body,_c,Vh,()=>{Jt&&Jt(),H&&H()}),M)}L=L||"text";let pt=await x[w.findKey(x,L)||"text"](ht,d);if(oe&&!g&&!Jo){let M;if(pt!=null&&(typeof pt.byteLength=="number"?M=pt.byteLength:typeof pt.size=="number"?M=pt.size:typeof pt=="string"&&(M=typeof r=="function"?new r().encode(pt).byteLength:pt.length)),typeof M=="number"&&M>ee)throw new N("maxContentLength size of "+ee+" exceeded",N.ERR_BAD_RESPONSE,d,I)}return!Jo&&H&&H(),await new Promise((M,Ue)=>{Uh(M,Ue,{data:pt,headers:Ce.from(ht.headers),status:ht.status,statusText:ht.statusText,config:d,request:I})})}catch(b){if(H&&H(),A&&A.aborted&&A.reason instanceof N){const de=A.reason;throw de.config=d,I&&(de.request=I),b!==de&&Object.defineProperty(de,"cause",{__proto__:null,value:b,writable:!0,enumerable:!1,configurable:!0}),de}if(Me)throw I&&!Me.request&&(Me.request=I),Me;if(b instanceof N)throw I&&!b.request&&(b.request=I),b;if(b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)){const de=new N("Network Error",N.ERR_NETWORK,d,I,b&&b.response);throw Object.defineProperty(de,"cause",{__proto__:null,value:b.cause||b,writable:!0,enumerable:!1,configurable:!0}),de}throw N.from(b,b&&b.code,d,I,b&&b.response)}}},o1=new Map,Bh=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,l=s,u,a,c=o1;for(;l--;)u=o[l],a=c.get(u),a===void 0&&c.set(u,a=l?new Map:i1(t)),c=a;return a};Bh();const Mu={http:g0,xhr:X0,fetch:{get:Bh}};w.forEach(Mu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const jc=e=>`- ${e}`,s1=e=>w.isFunction(e)||e===null||e===!1;function l1(e,t){e=w.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let l;if(i=r,!s1(r)&&(i=Mu[(l=String(r)).toLowerCase()],i===void 0))throw new N(`Unknown adapter '${l}'`);if(i&&(w.isFunction(i)||(i=i.get(t))))break;o[l||"#"+s]=i}if(!i){const s=Object.entries(o).map(([u,a])=>`adapter ${u} `+(a===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since :
|
||
`+s.map(jc).join(`
|
||
`):" "+jc(s[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+l,N.ERR_NOT_SUPPORT)}return i}const $h={getAdapter:l1,adapters:Mu};function Os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new li(null,e)}function Nc(e){return Os(e),e.headers=Ce.from(e.headers),e.data=_s.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$h.getAdapter(e.adapter||si.adapter,e)(e).then(function(r){Os(e),e.response=r;try{r.data=_s.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Ce.from(r.headers),r},function(r){if(!Mh(r)&&(Os(e),r&&r.response)){e.response=r.response;try{r.response.data=_s.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ce.from(r.response.headers)}return Promise.reject(r)})}const Xo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tc={};Xo.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Iu+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new N(i(s," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!Tc[s]&&(Tc[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};Xo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function u1(e,t,n){if(typeof e!="object"||e===null)throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const l=e[o],u=l===void 0||s(l,o,e);if(u!==!0)throw new N("option "+o+" must be "+u,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+o,N.ERR_BAD_OPTION)}}const Hi={assertOptions:u1,validators:Xo},Se=Hi.validators;let un=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wc,response:new wc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const s=i.stack.indexOf(`
|
||
`);return s===-1?"":i.stack.slice(s+1)})();try{if(!r.stack)r.stack=o;else if(o){const s=o.indexOf(`
|
||
`),l=s===-1?-1:o.indexOf(`
|
||
`,s+1),u=l===-1?"":o.slice(l+1);String(r.stack).endsWith(u)||(r.stack+=`
|
||
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Hi.assertOptions(r,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean),legacyInterceptorReqResOrdering:Se.transitional(Se.boolean),advertiseZstdAcceptEncoding:Se.transitional(Se.boolean),validateStatusUndefinedResolves:Se.transitional(Se.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:Hi.assertOptions(i,{encode:Se.function,serialize:Se.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hi.assertOptions(n,{baseUrl:Se.spelling("baseURL"),withXsrfToken:Se.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete o[x]}),n.headers=Ce.concat(s,o);const l=[];let u=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;u=u&&y.synchronous;const C=n.transitional||Au;C&&C.legacyInterceptorReqResOrdering?l.unshift(y.fulfilled,y.rejected):l.push(y.fulfilled,y.rejected)});const a=[];this.interceptors.response.forEach(function(y){a.push(y.fulfilled,y.rejected)});let c,f=0,v;if(!u){const x=[Nc.bind(this),void 0];for(x.unshift(...l),x.push(...a),v=x.length,c=Promise.resolve(n);f<v;)c=c.then(x[f++],x[f++]);return c}v=l.length;let g=n;for(;f<v;){const x=l[f++],y=l[f++];try{g=x(g)}catch(C){y.call(this,C);break}}try{c=Nc.call(this,g)}catch(x){return Promise.reject(x)}for(f=0,v=a.length;f<v;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=mn(this.defaults,t);const n=zh(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Ah(n,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){un.prototype[t]=function(n,r){return this.request(mn(r||{},{method:t,url:n,data:r&&w.hasOwnProp(r,"data")?r.data:void 0}))}});w.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,s,l){return this.request(mn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}un.prototype[t]=n(),t!=="query"&&(un.prototype[t+"Form"]=n(!0))});let a1=class Qh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new li(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qh(function(i){t=i}),cancel:t}}};function c1(e){return function(n){return e.apply(null,n)}}function f1(e){return w.isObject(e)&&e.isAxiosError===!0}const Fl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Fl).forEach(([e,t])=>{Fl[t]=e});function Hh(e){const t=new un(e),n=xh(un.prototype.request,t);return w.extend(n,un.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Hh(mn(e,i))},n}const B=Hh(si);B.Axios=un;B.CanceledError=li;B.CancelToken=a1;B.isCancel=Mh;B.VERSION=Iu;B.toFormData=Ko;B.AxiosError=N;B.Cancel=B.CanceledError;B.all=function(t){return Promise.all(t)};B.spread=c1;B.isAxiosError=f1;B.mergeConfig=mn;B.AxiosHeaders=Ce;B.formToJSON=e=>Ih(w.isHTMLForm(e)?new FormData(e):e);B.getAdapter=$h.getAdapter;B.HttpStatusCode=Fl;B.default=B;const{Axios:k1,AxiosError:R1,CanceledError:_1,isCancel:O1,CancelToken:P1,VERSION:j1,all:N1,Cancel:T1,isAxiosError:L1,spread:F1,toFormData:A1,AxiosHeaders:D1,HttpStatusCode:I1,formToJSON:M1,getAdapter:U1,mergeConfig:z1,create:b1}=B,Lc="/api/cc";function d1(){var s,l;const{data:e,isLoading:t}=it("dashboard",()=>B.get(`${Lc}/dashboard`).then(u=>u.data)),{data:n}=it("kpi",()=>B.get(`${Lc}/dashboard/kpi`).then(u=>u.data));if(t)return p.jsx("div",{className:"loading",children:"Laddar dashboard..."});const r=(n==null?void 0:n.data)||{},i=((s=e==null?void 0:e.data)==null?void 0:s.alerts)||[],o=((l=e==null?void 0:e.data)==null?void 0:l.services)||[];return p.jsxs("div",{children:[p.jsxs("div",{className:"kpi-grid",children:[p.jsx(pr,{value:r.cash_balance,label:"Kassa (SEK)",format:"sek"}),p.jsx(pr,{value:r.missions_count,label:"Missions"}),p.jsx(pr,{value:r.journal_entries,label:"Verifikat"}),p.jsx(pr,{value:`${r.services_running}/${r.services_total}`,label:"Tjänster"}),p.jsx(pr,{value:r.tickets_open,label:"Ärenden"})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🚨 Kritiska åtgärder"}),i.length===0?p.jsxs("div",{className:"alert info",children:[p.jsx(ig,{size:20,color:"var(--green)"}),p.jsxs("div",{children:[p.jsx("strong",{children:"Allt ser bra ut"}),p.jsx("br",{}),"Inga kritiska ärenden just nu"]})]}):i.map((u,a)=>p.jsxs("div",{className:`alert ${u.level}`,children:[u.level==="critical"&&p.jsx(pc,{size:20,color:"var(--red)"}),u.level==="warning"&&p.jsx(pc,{size:20,color:"var(--yellow)"}),u.level==="info"&&p.jsx(sg,{size:20,color:"#007AFF"}),p.jsxs("div",{children:[p.jsx("strong",{children:u.title}),p.jsx("br",{}),u.message]})]},a))]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🖥️ Systemstatus"}),o.map(u=>p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 0",borderBottom:"1px solid var(--border)"},children:[p.jsxs("div",{children:[p.jsx("div",{style:{fontWeight:600},children:u.name}),p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:["Port ",u.port," ",u.response_time_ms&&`• ${u.response_time_ms}ms`]})]}),p.jsx("span",{className:`badge ${u.status==="running"?"green":"red"}`,children:u.status})]},u.name))]})]})}function pr({value:e,label:t,format:n}){const r=n==="sek"?new Intl.NumberFormat("sv-SE").format(e||0)+" kr":e||"--",i=n==="sek"&&e<0;return p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:`kpi-value ${i?"bad":""}`,children:r}),p.jsx("div",{className:"kpi-label",children:t})]})}const Fc="/api/cc";function h1(){const[e,t]=O.useState(""),[n,r]=O.useState("all"),{data:i,isLoading:o}=it("economy",()=>B.get(`${Fc}/economy/overview`).then(y=>y.data)),{data:s}=it("trial-balance",()=>B.get(`${Fc}/economy/trial-balance`).then(y=>y.data)),{data:l}=it("journal",()=>B.get("/api/ledger/journal").then(y=>y.data)),u=(i==null?void 0:i.accounts)||[],a=(i==null?void 0:i.summary)||{},c=(l==null?void 0:l.entries)||[];let f=u;n!=="all"&&(f=u.filter(y=>y.type===n));let v=c;if(e){const y=e.toLowerCase();v=c.filter(C=>{var d,h,m;return((d=C.description)==null?void 0:d.toLowerCase().includes(y))||((h=C.entry_number)==null?void 0:h.toString().includes(y))||((m=C.entry_date)==null?void 0:m.includes(y))})}const g=u.find(y=>y.account_number==="1930"),x=g?g.balance:0;return o?p.jsx("div",{className:"loading",children:"Laddar ekonomi..."}):p.jsxs("div",{children:[p.jsxs("div",{className:"kpi-grid",children:[p.jsxs("div",{className:"kpi-card",children:[p.jsxs("div",{className:`kpi-value ${x<0?"bad":""}`,children:[new Intl.NumberFormat("sv-SE").format(x)," kr"]}),p.jsx("div",{className:"kpi-label",children:"Bank (1930)"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:a.total_accounts||0}),p.jsx("div",{className:"kpi-label",children:"Konton"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:a.total_entries||0}),p.jsx("div",{className:"kpi-label",children:"Verifikat"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:a.total_periods||0}),p.jsx("div",{className:"kpi-label",children:"Perioder"})]})]}),x<0&&p.jsxs("div",{className:"alert critical",children:[p.jsx("span",{style:{fontSize:"1.3rem"},children:"🏦"}),p.jsxs("div",{children:[p.jsx("strong",{children:"Bankövertrassering"}),p.jsx("br",{}),"Konto 1930: ",new Intl.NumberFormat("sv-SE").format(x)," kr"]})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🔍 Sök verifikat"}),p.jsx("input",{type:"text",placeholder:"Sök beskrivning, konto, belopp, datum...",value:e,onChange:y=>t(y.target.value)})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🏦 Konton"}),p.jsx("div",{style:{display:"flex",gap:8,marginBottom:16,overflowX:"auto"},children:["all","asset","liability","income","expense","equity"].map(y=>p.jsx("button",{onClick:()=>r(y),className:"btn secondary",style:{background:n===y?"var(--navy)":"var(--bg)",color:n===y?"white":"var(--navy)",padding:"6px 12px",fontSize:"0.8rem"},children:y==="all"?"Alla":y==="asset"?"Tillgångar":y==="liability"?"Skulder":y==="income"?"Intäkter":y==="expense"?"Kostnader":"Eget kapital"},y))}),f.map(y=>p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 0",borderBottom:"1px solid var(--border)"},children:[p.jsxs("div",{children:[p.jsxs("div",{style:{fontWeight:600},children:[y.account_number," ",y.name]}),p.jsx("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:y.type})]}),p.jsxs("div",{style:{fontWeight:700,color:y.balance<0?"var(--red)":y.balance>0?"var(--green)":"var(--muted)"},children:[new Intl.NumberFormat("sv-SE").format(y.balance)," kr"]})]},y.account_number))]}),s&&p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"📊 Saldobalans"}),p.jsxs("div",{style:{display:"flex",gap:16,marginBottom:16},children:[p.jsxs("div",{children:[p.jsx("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:"Total Debet"}),p.jsxs("div",{style:{fontWeight:700},children:[new Intl.NumberFormat("sv-SE").format(s.total_debit||0)," kr"]})]}),p.jsxs("div",{children:[p.jsx("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:"Total Kredit"}),p.jsxs("div",{style:{fontWeight:700},children:[new Intl.NumberFormat("sv-SE").format(s.total_credit||0)," kr"]})]}),p.jsxs("div",{children:[p.jsx("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:"Status"}),p.jsx("span",{className:`badge ${s.balanced?"green":"yellow"}`,children:s.balanced?"Balanserad":"Obalanserad"})]})]})]}),p.jsxs("div",{className:"card",children:[p.jsxs("h3",{children:["📋 Verifikat (",v.length,")"]}),v.slice(-20).reverse().map(y=>p.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 0",borderBottom:"1px solid var(--border)"},children:p.jsxs("div",{children:[p.jsxs("div",{style:{fontWeight:600},children:["#",y.entry_number||"-"," ",y.description]}),p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:[y.entry_date," • ",y.period," • ",y.status]})]})},y.id))]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🔗 Export"}),p.jsx("a",{href:"/api/ledger/export/sie4?fiscal_year=2026",target:"_blank",className:"btn",children:"📥 SIE4 Export 2026"})]})]})}const p1="/api/quixzoom";function m1(){const[e,t]=O.useState(""),[n,r]=O.useState("all"),{data:i}=it("missions",()=>B.get(`${p1}/missions`).then(c=>c.data)),o=(i==null?void 0:i.missions)||[];let s=o;if(n!=="all"&&(s=o.filter(c=>c.status===n)),e){const c=e.toLowerCase();s=o.filter(f=>{var v,g,x;return((v=f.title)==null?void 0:v.toLowerCase().includes(c))||((g=f.address)==null?void 0:g.toLowerCase().includes(c))||((x=f.status)==null?void 0:x.includes(c))})}const l=o.filter(c=>c.status==="open").length,u=o.filter(c=>c.status==="assigned").length,a=o.reduce((c,f)=>c+(f.reward_sek||0),0);return p.jsxs("div",{children:[p.jsxs("div",{className:"kpi-grid",children:[p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:o.length}),p.jsx("div",{className:"kpi-label",children:"Missions"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:l}),p.jsx("div",{className:"kpi-label",children:"Öppna"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:u}),p.jsx("div",{className:"kpi-label",children:"Tilldelade"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsxs("div",{className:"kpi-value",children:[new Intl.NumberFormat("sv-SE").format(a)," kr"]}),p.jsx("div",{className:"kpi-label",children:"Reward-pool"})]})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🔍 Sök missions"}),p.jsx("input",{type:"text",placeholder:"Sök titel, adress, status...",value:e,onChange:c=>t(c.target.value)})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"📱 Missions"}),p.jsx("div",{style:{display:"flex",gap:8,marginBottom:16,overflowX:"auto"},children:["all","open","assigned","submitted","approved"].map(c=>p.jsx("button",{onClick:()=>r(c),className:"btn secondary",style:{background:n===c?"var(--navy)":"var(--bg)",color:n===c?"white":"var(--navy)"},children:c==="all"?"Alla":c==="open"?"Öppna":c==="assigned"?"Tilldelade":c==="submitted"?"Inskickade":"Godkända"},c))}),s.map(c=>p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 0",borderBottom:"1px solid var(--border)",cursor:"pointer"},children:[p.jsxs("div",{children:[p.jsx("div",{style:{fontWeight:600},children:c.title}),p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:[c.address," • ",new Intl.NumberFormat("sv-SE").format(c.reward_sek)," kr",c.zoomer_id&&` • Zoomer: ${c.zoomer_id}`]})]}),p.jsx("span",{className:`badge ${c.status==="open"?"green":c.status==="assigned"?"blue":c.status==="submitted"?"yellow":"green"}`,children:c.status})]},c.id))]})]})}const Ac="/api/cc";function v1(){const[e,t]=O.useState(!1),[n,r]=O.useState("all"),i=Qo(),{data:o}=it("tickets",()=>B.get(`${Ac}/tickets`).then(f=>f.data)),s=Rl(f=>B.post(`${Ac}/tickets`,f),{onSuccess:()=>{i.invalidateQueries("tickets"),t(!1)}}),l=(o==null?void 0:o.tickets)||[];let u=l;n==="open"&&(u=l.filter(f=>f.status==="open")),n==="critical"&&(u=l.filter(f=>f.priority==="critical"&&f.status==="open")),n==="resolved"&&(u=l.filter(f=>f.status==="resolved"));const a=l.filter(f=>f.status==="open").length,c=l.filter(f=>f.priority==="critical"&&f.status==="open").length;return p.jsxs("div",{children:[p.jsxs("div",{className:"kpi-grid",children:[p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:a}),p.jsx("div",{className:"kpi-label",children:"Öppna"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",style:{color:"var(--red)"},children:c}),p.jsx("div",{className:"kpi-label",children:"Kritiska"})]}),p.jsxs("div",{className:"kpi-card",children:[p.jsx("div",{className:"kpi-value",children:l.length}),p.jsx("div",{className:"kpi-label",children:"Totalt"})]})]}),p.jsxs("div",{className:"card",children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[p.jsx("h3",{style:{margin:0},children:"📋 Supportärenden"}),p.jsx("button",{className:"btn",onClick:()=>t(!0),children:"➕ Nytt ärende"})]}),p.jsx("div",{style:{display:"flex",gap:8,marginBottom:16},children:["all","open","critical","resolved"].map(f=>p.jsx("button",{onClick:()=>r(f),className:"btn secondary",style:{background:n===f?"var(--navy)":"var(--bg)",color:n===f?"white":"var(--navy)",padding:"6px 12px",fontSize:"0.8rem"},children:f==="all"?"Alla":f==="open"?"Öppna":f==="critical"?"Kritiska":"Lösta"},f))}),u.map(f=>p.jsxs("div",{style:{border:"1px solid var(--border)",borderRadius:8,padding:16,marginBottom:12},children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[p.jsx("div",{style:{fontWeight:600},children:f.ticket_number}),p.jsxs("div",{style:{display:"flex",gap:8},children:[p.jsx("span",{className:`badge ${f.priority==="critical"?"red":f.priority==="high"?"yellow":"blue"}`,children:f.priority}),p.jsx("span",{className:`badge ${f.status==="resolved"?"green":"yellow"}`,children:f.status})]})]}),p.jsx("div",{style:{fontWeight:600,marginBottom:4},children:f.title}),p.jsx("div",{style:{fontSize:"0.85rem",color:"var(--muted)",marginBottom:8},children:f.description}),p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:[f.zoomer_id&&`Zoomer: ${f.zoomer_id} • `,f.mission_id&&`Mission: ${f.mission_id} • `,new Date(f.created_at).toLocaleString("sv-SE")]})]},f.id))]}),e&&p.jsx("div",{className:"modal-overlay",onClick:()=>t(!1),children:p.jsxs("div",{className:"modal-content",onClick:f=>f.stopPropagation(),children:[p.jsx("h2",{children:"🎫 Nytt supportärende"}),p.jsxs("form",{onSubmit:f=>{f.preventDefault();const v=new FormData(f.target);s.mutate({type:v.get("type"),priority:v.get("priority"),title:v.get("title"),description:v.get("description"),zoomer_id:v.get("zoomer_id")||null,mission_id:v.get("mission_id")||null})},children:[p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Titel"}),p.jsx("input",{name:"title",required:!0})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Beskrivning"}),p.jsx("textarea",{name:"description",rows:3,required:!0})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Typ"}),p.jsxs("select",{name:"type",children:[p.jsx("option",{value:"payment",children:"Betalningsfråga"}),p.jsx("option",{value:"mission",children:"Mission-problem"}),p.jsx("option",{value:"account",children:"Kontoåtkomst"}),p.jsx("option",{value:"technical",children:"Tekniskt fel"}),p.jsx("option",{value:"other",children:"Annat"})]})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Prioritet"}),p.jsxs("select",{name:"priority",children:[p.jsx("option",{value:"low",children:"Låg"}),p.jsx("option",{value:"medium",selected:!0,children:"Medium"}),p.jsx("option",{value:"high",children:"Hög"}),p.jsx("option",{value:"critical",children:"Kritisk"})]})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Zoomer ID (valfritt)"}),p.jsx("input",{name:"zoomer_id"})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Mission ID (valfritt)"}),p.jsx("input",{name:"mission_id"})]}),p.jsxs("div",{style:{display:"flex",gap:12},children:[p.jsx("button",{type:"submit",className:"btn",children:"💾 Spara"}),p.jsx("button",{type:"button",className:"btn secondary",onClick:()=>t(!1),children:"Avbryt"})]})]})]})})]})}const Dc="/api/gateway";function y1(){const[e,t]=O.useState("59.3349"),[n,r]=O.useState("18.0632"),[i,o]=O.useState("business"),[s,l]=O.useState(null),{data:u}=it("gateway",()=>B.get(`${Dc}/`).then(c=>c.data).catch(()=>null)),a=async()=>{try{const c=await B.get(`${Dc}/v1/intelligence/point?lat=${e}&lng=${n}&profile=${i}`);l(c.data)}catch(c){l({error:c.message})}};return p.jsxs("div",{children:[p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🌍 Landvex Intelligence API"}),p.jsx("p",{style:{color:"var(--muted)",fontSize:"0.9rem",marginBottom:16},children:(u==null?void 0:u.description)||"Control Intelligence"}),(u==null?void 0:u.endpoints)&&p.jsxs("div",{style:{marginBottom:16},children:[p.jsx("strong",{children:"Endpoints:"}),u.endpoints.map((c,f)=>p.jsx("div",{style:{fontFamily:"monospace",fontSize:"0.8rem",background:"var(--bg)",padding:"4px 8px",borderRadius:4,margin:"4px 0"},children:c},f))]})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"🔍 Testa Intelligence"}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Latitud"}),p.jsx("input",{type:"number",value:e,onChange:c=>t(c.target.value),step:"0.0001"})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Longitud"}),p.jsx("input",{type:"number",value:n,onChange:c=>r(c.target.value),step:"0.0001"})]}),p.jsxs("div",{className:"form-group",children:[p.jsx("label",{children:"Profil"}),p.jsxs("select",{value:i,onChange:c=>o(c.target.value),children:[p.jsx("option",{value:"business",children:"Business"}),p.jsx("option",{value:"infrastructure",children:"Infrastructure"}),p.jsx("option",{value:"safety",children:"Safety"}),p.jsx("option",{value:"investment",children:"Investment"}),p.jsx("option",{value:"nightlife",children:"Nightlife"}),p.jsx("option",{value:"tourist",children:"Tourist"})]})]}),p.jsx("button",{className:"btn",onClick:a,children:"🔍 Analysera plats"}),s&&p.jsx("pre",{style:{marginTop:16,background:"var(--bg)",padding:16,borderRadius:8,overflow:"auto",fontSize:"0.8rem"},children:JSON.stringify(s,null,2)})]})]})}const mr="/api/cc";function g1(){var k;const e=Qo(),[t,n]=O.useState(""),[r,i]=O.useState(!1),[o,s]=O.useState({description:"",date:new Date().toISOString().split("T")[0],lines:[{account:"",debit:"",credit:""},{account:"",debit:"",credit:""}]}),{data:l}=it("services",()=>B.get(`${mr}/services`).then(E=>E.data),{refetchInterval:1e4}),{data:u}=it("economy-systems",()=>B.get(`${mr}/economy/overview`).then(E=>E.data)),{data:a}=it("journal-systems",()=>B.get(`${mr}/journal`).then(E=>E.data)),c=(l==null?void 0:l.services)||[],f=(a==null?void 0:a.entries)||[],v=Rl(async({service:E,action:R})=>(n(`Kör ${R} på ${E}...`),(await B.post(`${mr}/system/action`,{service:E,action:R})).data),{onSuccess:()=>{e.invalidateQueries("services"),n("Klart!"),setTimeout(()=>n(""),3e3)},onError:E=>{n(`Fel: ${E.message}`)}}),g=Rl(async E=>{const R={description:E.description,entry_date:E.date,fiscal_year:parseInt(E.date.split("-")[0]),period:E.date.substring(0,7),lines:E.lines.filter(D=>D.account&&(D.debit||D.credit)).map(D=>({account_number:D.account,debit:parseInt(D.debit)||0,credit:parseInt(D.credit)||0,description:E.description}))};return(await B.post(`${mr}/journal`,R)).data},{onSuccess:()=>{e.invalidateQueries("economy-systems"),e.invalidateQueries("journal-systems"),i(!1),s({description:"",date:new Date().toISOString().split("T")[0],lines:[{account:"",debit:"",credit:""},{account:"",debit:"",credit:""}]}),n("Verifikat bokfört!"),setTimeout(()=>n(""),3e3)}}),x=()=>{s({...o,lines:[...o.lines,{account:"",debit:"",credit:""}]})},y=(E,R,P)=>{const D=[...o.lines];D[E][R]=P,s({...o,lines:D})},C=o.lines.reduce((E,R)=>E+(parseInt(R.debit)||0),0),d=o.lines.reduce((E,R)=>E+(parseInt(R.credit)||0),0),h=C===d&&C>0,m=(k=u==null?void 0:u.accounts)==null?void 0:k.find(E=>E.account_number==="1930"),S=m?m.balance:0;return p.jsxs("div",{children:[p.jsx("h2",{children:"⚙️ System & Operationer"}),t&&p.jsx("div",{className:"alert info",style:{marginBottom:16},children:t}),S<0&&p.jsxs("div",{className:"alert critical",children:[p.jsx("span",{style:{fontSize:"1.3rem"},children:"🏦"}),p.jsxs("div",{children:[p.jsx("strong",{children:"Bankövertrassering"}),p.jsx("br",{}),"Konto 1930: ",new Intl.NumberFormat("sv-SE").format(S)," kr"]})]}),p.jsxs("div",{className:"card",children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[p.jsx("h3",{children:"➕ Nytt verifikat"}),p.jsx("button",{onClick:()=>i(!r),className:"btn",children:r?"Avbryt":"Skapa"})]}),r&&p.jsxs("div",{children:[p.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,marginBottom:12},children:[p.jsxs("div",{children:[p.jsx("label",{children:"Beskrivning"}),p.jsx("input",{type:"text",value:o.description,onChange:E=>s({...o,description:E.target.value}),placeholder:"t.ex. Faktura #123"})]}),p.jsxs("div",{children:[p.jsx("label",{children:"Datum"}),p.jsx("input",{type:"date",value:o.date,onChange:E=>s({...o,date:E.target.value})})]})]}),p.jsxs("table",{style:{width:"100%",fontSize:"0.9rem"},children:[p.jsx("thead",{children:p.jsxs("tr",{style:{textAlign:"left",borderBottom:"2px solid var(--border)"},children:[p.jsx("th",{children:"Konto"}),p.jsx("th",{children:"Debet"}),p.jsx("th",{children:"Kredit"}),p.jsx("th",{})]})}),p.jsx("tbody",{children:o.lines.map((E,R)=>p.jsxs("tr",{children:[p.jsx("td",{children:p.jsx("input",{type:"text",value:E.account,onChange:P=>y(R,"account",P.target.value),placeholder:"t.ex. 1930",style:{width:80}})}),p.jsx("td",{children:p.jsx("input",{type:"number",value:E.debit,onChange:P=>y(R,"debit",P.target.value),placeholder:"0",style:{width:100}})}),p.jsx("td",{children:p.jsx("input",{type:"number",value:E.credit,onChange:P=>y(R,"credit",P.target.value),placeholder:"0",style:{width:100}})}),p.jsx("td",{children:R>=2&&p.jsx("button",{onClick:()=>s({...o,lines:o.lines.filter((P,D)=>D!==R)}),className:"btn secondary",style:{padding:"4px 8px",fontSize:"0.7rem"},children:"Ta bort"})})]},R))})]}),p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:12},children:[p.jsx("button",{onClick:x,className:"btn secondary",children:"+ Rad"}),p.jsxs("div",{style:{textAlign:"right"},children:[p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:["Debet: ",C.toLocaleString("sv-SE")," kr | Kredit: ",d.toLocaleString("sv-SE")," kr"]}),p.jsx("div",{style:{fontWeight:700,color:h?"var(--green)":"var(--red)"},children:h?"✅ Balanserad":"❌ Obalanserad"})]})]}),p.jsx("button",{onClick:()=>g.mutate(o),disabled:!h||!o.description,className:"btn",style:{width:"100%",marginTop:12},children:g.isLoading?"Bokför...":"Bokför verifikat"})]})]}),p.jsxs("div",{className:"card",children:[p.jsx("h3",{children:"📋 Senaste verifikat"}),f.slice(0,10).map(E=>{var R,P;return p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 0",borderBottom:"1px solid var(--border)"},children:[p.jsxs("div",{children:[p.jsxs("div",{style:{fontWeight:600},children:["#",E.entry_number," ",E.description]}),p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:[E.entry_date," • ",((R=E.lines)==null?void 0:R.length)||0," rader"]})]}),p.jsxs("div",{style:{fontSize:"0.8rem",color:"var(--muted)"},children:[(P=E.lines)==null?void 0:P.reduce((D,L)=>D+(L.debit||0),0).toLocaleString("sv-SE")," kr"]})]},E.id)})]}),p.jsxs("div",{className:"card",children:[p.jsxs("h3",{children:["🔧 Tjänster (",c.filter(E=>E.status==="running").length," running)"]}),c.map(E=>p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:"1px solid var(--border)"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[p.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:E.status==="running"?"var(--green)":"var(--red)",display:"inline-block"}}),p.jsx("div",{style:{fontSize:"0.85rem"},children:E.name.replace(".service","")})]}),p.jsxs("div",{style:{display:"flex",gap:4},children:[p.jsx("button",{onClick:()=>v.mutate({service:E.name,action:"restart"}),className:"btn secondary",style:{padding:"2px 6px",fontSize:"0.7rem"},children:"🔄"}),p.jsx("button",{onClick:()=>v.mutate({service:E.name,action:"stop"}),className:"btn secondary",style:{padding:"2px 6px",fontSize:"0.7rem"},children:"⏹"})]})]},E.name))]})]})}function w1(){return p.jsx(hg,{children:p.jsxs(by,{children:[p.jsx(Zt,{path:"/",element:p.jsx(d1,{})}),p.jsx(Zt,{path:"/finance",element:p.jsx(h1,{})}),p.jsx(Zt,{path:"/quixzoom",element:p.jsx(m1,{})}),p.jsx(Zt,{path:"/support",element:p.jsx(v1,{})}),p.jsx(Zt,{path:"/apis",element:p.jsx(y1,{})}),p.jsx(Zt,{path:"/systems",element:p.jsx(g1,{})})]})})}const x1=new zv({defaultOptions:{queries:{refetchInterval:3e4,staleTime:1e4}}});Ps.createRoot(document.getElementById("root")).render(p.jsx(ie.StrictMode,{children:p.jsx(qv,{client:x1,children:p.jsx(Ky,{children:p.jsx(w1,{})})})}));
|
||
//# sourceMappingURL=index-dtAml4Xa.js.map
|