diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..4fc4dc8 Binary files /dev/null and b/.DS_Store differ diff --git a/.env b/.env deleted file mode 100644 index ac41b1b..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -VITE_SERVER_URL=http://3.37.214.150:8080 -VITE_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoidGt2MDBAbmF2ZXIuY29tIiwibmFtZSI6Iuq5gOuPhOyXsCIsInN1YiI6IjEiLCJpYXQiOjE3MzI2MjQ3MDEsImV4cCI6MTgxOTAyNDcwMX0.Fuh-4oO9b9IN_waGe-jhNghiikXnT3mb3-Je7og5o6Q \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9c0592f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: React build 3 # +on: + pull_request: # main Branch에서 push 이벤트가 일어났을 때만 실행 + types: [closed] # PR이 병합(closed)될 때 실행 + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout source code. # 레포지토리 체크아웃 + uses: actions/checkout@main + + - name: Cache node modules # node modules 캐싱 + uses: actions/cache@v1 + with: + path: node_modules # 프로젝트의 node_modules가 있는 경로로 설정 + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-build- + ${{ runner.OS }}- + + - name: Install Dependencies # 의존 파일 설치 + run: npm install # npm install을 실행할 경로로 설정 + + - name: Build # React Build + run: npm run build # npm run build를 실행할 경로로 설정 + + - name: Deploy # S3에 배포하기 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 cp \ + --recursive \ + --region ap-northeast-2 \ + dist s3://wealthtracker diff --git a/.gitignore b/.gitignore index 3c3629e..c7b41a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ node_modules +.env +*.save diff --git a/README.md b/README.md index 41e4688..b290481 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,111 @@ -# React + Vite +# WealthTracker - Frontend -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. +image -Currently, two official plugins are available: -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh -d2bf9776df23469f801d9796a8a357bfc14c5a0 +##### React 기반 가계부 웹 페이지입니다. +##### Styled-components를 활용한 세련된 UI 디자인과, JWT 기반 API 통신으로 안전한 데이터 처리를 지원합니다. + + + + +## 프로젝트 페이지별 주요 기능 + + +#### - 로그인 +#### - 수입/지출 내역 +#### - 결제 예정 +#### - 비용 +#### - 목표 +#### - 설정 + + +## 개발 환경 + + +#### - HTML +#### - REACT : ^18.3.1 +#### - styled-components ^6.1.13 +#### - Vite: ^5.4.1 + + +## 개발 언어 + + +#### JavaScript + +## 프로젝트 구조 + +``` +📂 WealthTracker-FE +├── 📁 dist/ # 빌드 결과물 디렉터리 +├── 📁 node_modules/ # 설치된 라이브러리 및 의존성 +├── 📁 public/ # 정적 파일 디렉터리 +│ └── index.html # 메인 HTML 파일 +├── 📁 src/ # 소스 코드 디렉터리 +│ ├── 📁 api/ # API 호출 관련 파일 +│ │ ├── api.jsx # 기본 API 설정 파일 +│ │ ├── expendAPI.jsx # 지출 관련 API +│ │ ├── incomeAPI.jsx # 수입 관련 API +│ │ └── scheduleAPI.jsx # 일정 관련 API +│ ├── 📁 assets/ # 이미지 및 리소스 +│ │ ├── images/ # 이미지 파일 디렉터리 +│ │ └── react.svg # React 로고 파일 +│ ├── 📁 components/ # 재사용 가능한 컴포넌트 +│ │ ├── 📁 common/ # 공통 컴포넌트 +│ │ │ ├── CircleGraph.jsx +│ │ │ ├── DailyGraph.jsx +│ │ │ ├── Error.jsx +│ │ │ ├── Layout.jsx +│ │ │ ├── LoadingSpinners.jsx +│ │ │ └── SideMenu.jsx +│ │ ├── 📁 main/ # 메인 페이지 컴포넌트 +│ │ │ ├── ConsumptionReport.jsx +│ │ │ ├── ConsumptionStatistics.jsx +│ │ │ ├── CurrentConsumptionList.jsx +│ │ │ ├── PaymentScheduled.jsx +│ │ │ └── SavingsGoal.jsx +│ │ └── 📁 transactions/ # 트랜잭션 관련 컴포넌트 +│ │ ├── Pagination.jsx +│ │ ├── Tabs.jsx +│ │ ├── TransactionList.jsx +│ │ └── TransactionModal.jsx +│ ├── 📁 hooks/ # 커스텀 훅 +│ │ ├── useFetch.jsx +│ │ ├── useFetchSch.jsx +│ │ └── useFetchTrans.jsx +│ ├── 📁 pages/ # 페이지별 컴포넌트 +│ │ ├── ErrorPage.jsx +│ │ ├── Expense.jsx +│ │ ├── FindPassword.jsx +│ │ ├── Goals.jsx +│ │ ├── Login.jsx +│ │ ├── Main.jsx +│ │ ├── ScheduledPayments.jsx +│ │ ├── Settings.jsx +│ │ ├── Signup.jsx +│ │ └── Transactions.jsx +│ ├── 📁 utils/ # 유틸리티 함수 +│ │ └── formatters.js # 데이터 포매팅 함수 +│ ├── App.css # 전역 CSS 파일 +│ ├── App.jsx # 메인 애플리케이션 컴포넌트 +│ ├── GlobalStyle.js # 글로벌 스타일 정의 +│ ├── index.css # 인덱스 스타일 파일 +│ ├── index.jsx # 애플리케이션 엔트리 파일 +│ └── theme.js # 테마 설정 +├── 📄 .env # 환경 변수 설정 +├── 📄 .eslint.config.js # ESLint 설정 파일 +├── 📄 package.json # 프로젝트 및 의존성 설정 +├── 📄 vite.config.js # Vite 설정 파일 +└── 📄 yarn.lock # Yarn 종속성 잠금 파일 +``` + + + +## 기여자 + + +#### - 김민지 ) 수입/지출 페이지, 결제 예정 페이지 구현 +#### - 박민수 ) 비용 페이지, 목표 페이지 구현 +#### - 백진욱 ) 로그인 페이지, 설정 페이지 구현 + diff --git a/dist/assets/Logo-BH0iwPLZ.png b/dist/assets/Logo-BH0iwPLZ.png new file mode 100644 index 0000000..3d1b0a2 Binary files /dev/null and b/dist/assets/Logo-BH0iwPLZ.png differ diff --git a/dist/assets/index-CNZe2qBA.js b/dist/assets/index-CNZe2qBA.js deleted file mode 100644 index 771444d..0000000 --- a/dist/assets/index-CNZe2qBA.js +++ /dev/null @@ -1,179 +0,0 @@ -var e0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var m_=e0((g_,Ql)=>{function t0(e,t){for(var n=0;nr[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 l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function n0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fd={exports:{}},Do={},dd={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 Xi=Symbol.for("react.element"),r0=Symbol.for("react.portal"),i0=Symbol.for("react.fragment"),l0=Symbol.for("react.strict_mode"),o0=Symbol.for("react.profiler"),s0=Symbol.for("react.provider"),a0=Symbol.for("react.context"),u0=Symbol.for("react.forward_ref"),c0=Symbol.for("react.suspense"),f0=Symbol.for("react.memo"),d0=Symbol.for("react.lazy"),Cc=Symbol.iterator;function h0(e){return e===null||typeof e!="object"?null:(e=Cc&&e[Cc]||e["@@iterator"],typeof e=="function"?e:null)}var hd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pd=Object.assign,md={};function zr(e,t,n){this.props=e,this.context=t,this.refs=md,this.updater=n||hd}zr.prototype.isReactComponent={};zr.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")};zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yd(){}yd.prototype=zr.prototype;function ru(e,t,n){this.props=e,this.context=t,this.refs=md,this.updater=n||hd}var iu=ru.prototype=new yd;iu.constructor=ru;pd(iu,zr.prototype);iu.isPureReactComponent=!0;var Mc=Array.isArray,gd=Object.prototype.hasOwnProperty,lu={current:null},vd={key:!0,ref:!0,__self:!0,__source:!0};function wd(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)gd.call(t,r)&&!vd.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,K=M[X];if(0>>1;Xi(Jt,Y))Wei(Pt,Jt)?(M[X]=Pt,M[We]=Y,X=We):(M[X]=Jt,M[st]=Y,X=st);else if(Wei(Pt,Y))M[X]=Pt,M[We]=Y,X=We;else break e}}return T}function i(M,T){var Y=M.sortIndex-T.sortIndex;return Y!==0?Y:M.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],h=1,f=null,m=3,y=!1,v=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(M){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=M)r(u),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(u)}}function g(M){if(w=!1,p(M),!v)if(n(a)!==null)v=!0,Xr(_);else{var T=n(u);T!==null&&Nn(g,T.startTime-M)}}function _(M,T){v=!1,w&&(w=!1,d(P),P=-1),y=!0;var Y=m;try{for(p(T),f=n(a);f!==null&&(!(f.expirationTime>T)||M&&!je());){var X=f.callback;if(typeof X=="function"){f.callback=null,m=f.priorityLevel;var K=X(f.expirationTime<=T);T=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(a)&&r(a),p(T)}else r(a);f=n(a)}if(f!==null)var Pn=!0;else{var st=n(u);st!==null&&Nn(g,st.startTime-T),Pn=!1}return Pn}finally{f=null,m=Y,y=!1}}var x=!1,S=null,P=-1,Z=5,U=-1;function je(){return!(e.unstable_now()-UM||125X?(M.sortIndex=Y,t(u,M),n(a)===null&&M===n(u)&&(w?(d(P),P=-1):w=!0,Nn(g,Y-X))):(M.sortIndex=K,t(a,M),v||y||(v=!0,Xr(_))),M},e.unstable_shouldYield=je,e.unstable_wrapCallback=function(M){var T=m;return function(){var Y=m;m=T;try{return M.apply(this,arguments)}finally{m=Y}}}})(xd);_d.exports=xd;var E0=_d.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 C0=O,Qe=E0;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=Object.prototype.hasOwnProperty,M0=/^[: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]*$/,Nc={},Pc={};function D0(e){return Gs.call(Pc,e)?!0:Gs.call(Nc,e)?!1:M0.test(e)?Pc[e]=!0:(Nc[e]=!0,!1)}function N0(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 P0(e,t,n,r){if(t===null||typeof t>"u"||N0(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 Te(e,t,n,r,i,l,o){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=l,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Te(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){xe[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var su=/[\-:]([a-z])/g;function au(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(su,au);xe[t]=new Te(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(su,au);xe[t]=new Te(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(su,au);xe[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function uu(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==l[s]){var a=` -`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{ps=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oi(e):""}function O0(e){switch(e.tag){case 5:return oi(e.type);case 16:return oi("Lazy");case 13:return oi("Suspense");case 19:return oi("SuspenseList");case 0:case 2:case 15:return e=ms(e.type,!1),e;case 11:return e=ms(e.type.render,!1),e;case 1:return e=ms(e.type,!0),e;default:return""}}function Js(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 or:return"Fragment";case lr:return"Portal";case Xs:return"Profiler";case cu:return"StrictMode";case Ks:return"Suspense";case Zs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Md:return(e.displayName||"Context")+".Consumer";case Cd:return(e._context.displayName||"Context")+".Provider";case fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case du:return t=e.displayName||null,t!==null?t:Js(e.type)||"Memo";case nn:t=e._payload,e=e._init;try{return Js(e(t))}catch{}}return null}function R0(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 Js(t);case 8:return t===cu?"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 kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T0(e){var t=Nd(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sl(e){e._valueTracker||(e._valueTracker=T0(e))}function Pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gl(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 qs(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(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 Od(e,t){t=t.checked,t!=null&&uu(e,"checked",t,!1)}function bs(e,t){Od(e,t);var n=kn(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")?ea(e,t.type,n):t.hasOwnProperty("defaultValue")&&ea(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(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 ea(e,t,n){(t!=="number"||Gl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var si=Array.isArray;function wr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fi={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},I0=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(e){I0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fi[t]=fi[e]})});function Yd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fi.hasOwnProperty(e)&&fi[e]?(""+t).trim():t+"px"}function Ld(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Yd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Y0=se({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 ra(e,t){if(t){if(Y0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ia(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 la=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,Sr=null,Ar=null;function Lc(e){if(e=Ji(e)){if(typeof oa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=To(t),oa(e.stateNode,e.type,t))}}function Fd(e){Sr?Ar?Ar.push(e):Ar=[e]:Sr=e}function Ud(){if(Sr){var e=Sr,t=Ar;if(Ar=Sr=null,Lc(e),t)for(e=0;e>>=0,e===0?32:31-(Q0(e)/G0|0)|0}var ul=64,cl=4194304;function ai(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 Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=ai(s):(l&=o,l!==0&&(r=ai(l)))}else o=n&~i,o!==0?r=ai(o):l!==0&&(r=ai(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ki(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function J0(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=hi),Hc=" ",Qc=!1;function ih(e,t){switch(e){case"keyup":return Ey.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sr=!1;function My(e,t){switch(e){case"compositionend":return lh(t);case"keypress":return t.which!==32?null:(Qc=!0,Hc);case"textInput":return e=t.data,e===Hc&&Qc?null:e;default:return null}}function Dy(e,t){if(sr)return e==="compositionend"||!Au&&ih(e,t)?(e=nh(),Nl=vu=sn=null,sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zc(n)}}function uh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ch(){for(var e=window,t=Gl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gl(e.document)}return t}function ku(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 Fy(e){var t=ch(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uh(n.ownerDocument.documentElement,n)){if(r!==null&&ku(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,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Jc(n,l);var o=Jc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ar=null,da=null,mi=null,ha=!1;function qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ha||ar==null||ar!==Gl(r)||(r=ar,"selectionStart"in r&&ku(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}),mi&&Ni(mi,r)||(mi=r,r=eo(da,"onSelect"),0fr||(e.current=wa[fr],wa[fr]=null,fr--)}function J(e,t){fr++,wa[fr]=e.current,e.current=t}var _n={},Ne=En(_n),Fe=En(!1),Hn=_n;function Nr(e,t){var n=e.type.contextTypes;if(!n)return _n;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ue(e){return e=e.childContextTypes,e!=null}function no(){ee(Fe),ee(Ne)}function of(e,t,n){if(Ne.current!==_n)throw Error(A(168));J(Ne,t),J(Fe,n)}function wh(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(A(108,R0(e)||"Unknown",i));return se({},n,r)}function ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,Hn=Ne.current,J(Ne,e),J(Fe,Fe.current),!0}function sf(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=wh(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,ee(Fe),ee(Ne),J(Ne,e)):ee(Fe),J(Fe,n)}var Yt=null,Io=!1,Ns=!1;function Sh(e){Yt===null?Yt=[e]:Yt.push(e)}function Ky(e){Io=!0,Sh(e)}function Cn(){if(!Ns&&Yt!==null){Ns=!0;var e=0,t=Q;try{var n=Yt;for(Q=1;e>=o,i-=o,Lt=1<<32-ht(t)+i|n<P?(Z=S,S=null):Z=S.sibling;var U=m(d,S,p[P],g);if(U===null){S===null&&(S=Z);break}e&&S&&U.alternate===null&&t(d,S),c=l(U,c,P),x===null?_=U:x.sibling=U,x=U,S=Z}if(P===p.length)return n(d,S),ie&&Tn(d,P),_;if(S===null){for(;PP?(Z=S,S=null):Z=S.sibling;var je=m(d,S,U.value,g);if(je===null){S===null&&(S=Z);break}e&&S&&je.alternate===null&&t(d,S),c=l(je,c,P),x===null?_=je:x.sibling=je,x=je,S=Z}if(U.done)return n(d,S),ie&&Tn(d,P),_;if(S===null){for(;!U.done;P++,U=p.next())U=f(d,U.value,g),U!==null&&(c=l(U,c,P),x===null?_=U:x.sibling=U,x=U);return ie&&Tn(d,P),_}for(S=r(d,S);!U.done;P++,U=p.next())U=y(S,d,P,U.value,g),U!==null&&(e&&U.alternate!==null&&S.delete(U.key===null?P:U.key),c=l(U,c,P),x===null?_=U:x.sibling=U,x=U);return e&&S.forEach(function(Mn){return t(d,Mn)}),ie&&Tn(d,P),_}function E(d,c,p,g){if(typeof p=="object"&&p!==null&&p.type===or&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ol:e:{for(var _=p.key,x=c;x!==null;){if(x.key===_){if(_=p.type,_===or){if(x.tag===7){n(d,x.sibling),c=i(x,p.props.children),c.return=d,d=c;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===nn&&cf(_)===x.type){n(d,x.sibling),c=i(x,p.props),c.ref=ti(d,x,p),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}p.type===or?(c=Wn(p.props.children,d.mode,g,p.key),c.return=d,d=c):(g=Fl(p.type,p.key,p.props,null,d.mode,g),g.ref=ti(d,c,p),g.return=d,d=g)}return o(d);case lr:e:{for(x=p.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=i(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Fs(p,d.mode,g),c.return=d,d=c}return o(d);case nn:return x=p._init,E(d,c,x(p._payload),g)}if(si(p))return v(d,c,p,g);if(Zr(p))return w(d,c,p,g);gl(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=i(c,p),c.return=d,d=c):(n(d,c),c=Ls(p,d.mode,g),c.return=d,d=c),o(d)):n(d,c)}return E}var Or=xh(!0),Eh=xh(!1),oo=En(null),so=null,pr=null,Cu=null;function Mu(){Cu=pr=so=null}function Du(e){var t=oo.current;ee(oo),e._currentValue=t}function ka(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 _r(e,t){so=e,Cu=pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(Cu!==e)if(e={context:e,memoizedValue:t,next:null},pr===null){if(so===null)throw Error(A(308));pr=e,so.dependencies={lanes:0,firstContext:e}}else pr=pr.next=e;return t}var Ln=null;function Nu(e){Ln===null?Ln=[e]:Ln.push(e)}function Ch(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Nu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ht(e,r)}function Ht(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 rn=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mh(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 jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ht(e,n)}return i=r.interleaved,i===null?(t.next=t,Nu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ht(e,n)}function Ol(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,mu(e,n)}}function ff(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ao(e,t,n,r){var i=e.updateQueue;rn=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==o&&(s===null?h.firstBaseUpdate=u:s.next=u,h.lastBaseUpdate=a))}if(l!==null){var f=i.baseState;o=0,h=u=a=null,s=l;do{var m=s.lane,y=s.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,w=s;switch(m=t,y=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(y,f,m);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,m=typeof v=="function"?v.call(y,f,m):v,m==null)break e;f=se({},f,m);break e;case 2:rn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(u=h=y,a=f):h=h.next=y,o|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(h===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Xn|=o,e.lanes=o,e.memoizedState=f}}function df(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Os.transition;Os.transition={};try{e(!1),t()}finally{Q=n,Os.transition=r}}function Vh(){return rt().memoizedState}function by(e,t,n){var r=vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hh(e))Qh(t,n);else if(n=Ch(e,t,n,r),n!==null){var i=Oe();pt(n,e,r,i),Gh(n,t,r)}}function eg(e,t,n){var r=vn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hh(e))Qh(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,yt(s,o)){var a=t.interleaved;a===null?(i.next=i,Nu(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Ch(e,t,i,r),n!==null&&(i=Oe(),pt(n,e,r,i),Gh(n,t,r))}}function Hh(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Qh(e,t){yi=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mu(e,n)}}var fo={readContext:nt,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},tg={readContext:nt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:pf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4194308,4,zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tl(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=by.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:hf,useDebugValue:Uu,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=hf(!1),t=e[0];return e=qy.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=At();if(ie){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ae===null)throw Error(A(349));Gn&30||Oh(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,pf(Th.bind(null,r,l,e),[e]),r.flags|=2048,Fi(9,Rh.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=At(),t=Ae.identifierPrefix;if(ie){var n=Ft,r=Lt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_t]=t,e[Ri]=r,rp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ia(n,r),n){case"dialog":q("cancel",e),q("close",e),i=r;break;case"iframe":case"object":case"embed":q("load",e),i=r;break;case"video":case"audio":for(i=0;iIr&&(t.flags|=128,r=!0,ni(l,!1),t.lanes=4194304)}else{if(!r)if(e=uo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ni(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ie)return Ce(t),null}else 2*ce()-l.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,ni(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ce(),t.sibling=null,n=le.current,J(le,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return Vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$e&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function ug(e,t){switch(xu(t),t.tag){case 1:return Ue(t.type)&&no(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),ee(Fe),ee(Ne),Tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ru(t),null;case 13:if(ee(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(le),null;case 4:return Rr(),null;case 10:return Du(t.type._context),null;case 22:case 23:return Vu(),null;case 24:return null;default:return null}}var wl=!1,Me=!1,cg=typeof WeakSet=="function"?WeakSet:Set,N=null;function mr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function Oa(e,t,n){try{n()}catch(r){ae(e,t,r)}}var Ef=!1;function fg(e,t){if(pa=ql,e=ch(),ku(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,h=0,f=e,m=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==l||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)m=f,f=y;for(;;){if(f===e)break t;if(m===n&&++u===i&&(s=o),m===l&&++h===r&&(a=o),(y=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ma={focusedElem:e,selectionRange:n},ql=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,E=v.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?w:ut(t.type,w),E);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(g){ae(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return v=Ef,Ef=!1,v}function gi(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 l=i.destroy;i.destroy=void 0,l!==void 0&&Oa(t,n,l)}i=i.next}while(i!==r)}}function Fo(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 Ra(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 op(e){var t=e.alternate;t!==null&&(e.alternate=null,op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Ri],delete t[va],delete t[Gy],delete t[Xy])),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 sp(e){return e.tag===5||e.tag===3||e.tag===4}function Cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sp(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 Ta(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=to));else if(r!==4&&(e=e.child,e!==null))for(Ta(e,t,n),e=e.sibling;e!==null;)Ta(e,t,n),e=e.sibling}function Ia(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(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}var ke=null,ct=!1;function bt(e,t,n){for(n=n.child;n!==null;)ap(e,t,n),n=n.sibling}function ap(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(No,n)}catch{}switch(n.tag){case 5:Me||mr(n,t);case 6:var r=ke,i=ct;ke=null,bt(e,t,n),ke=r,ct=i,ke!==null&&(ct?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(ct?(e=ke,n=n.stateNode,e.nodeType===8?Ds(e.parentNode,n):e.nodeType===1&&Ds(e,n),Mi(e)):Ds(ke,n.stateNode));break;case 4:r=ke,i=ct,ke=n.stateNode.containerInfo,ct=!0,bt(e,t,n),ke=r,ct=i;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Oa(n,t,o),i=i.next}while(i!==r)}bt(e,t,n);break;case 1:if(!Me&&(mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ae(n,t,s)}bt(e,t,n);break;case 21:bt(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,bt(e,t,n),Me=r):bt(e,t,n);break;default:bt(e,t,n)}}function Mf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cg),t.forEach(function(r){var i=Sg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hg(r/1960))-r,10e?16:e,an===null)var r=!1;else{if(e=an,an=null,mo=0,B&6)throw Error(A(331));var i=B;for(B|=4,N=e.current;N!==null;){var l=N,o=l.child;if(N.flags&16){var s=l.deletions;if(s!==null){for(var a=0;ace()-Bu?jn(e,0):Wu|=n),ze(e,t)}function yp(e,t){t===0&&(e.mode&1?(t=cl,cl<<=1,!(cl&130023424)&&(cl=4194304)):t=1);var n=Oe();e=Ht(e,t),e!==null&&(Ki(e,t,n),ze(e,n))}function wg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yp(e,n)}function Sg(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(A(314))}r!==null&&r.delete(t),yp(e,n)}var gp;gp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,sg(e,t,n);Le=!!(e.flags&131072)}else Le=!1,ie&&t.flags&1048576&&Ah(t,lo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Il(e,t),e=t.pendingProps;var i=Nr(t,Ne.current);_r(t,n),i=Yu(null,t,r,e,i,n);var l=Lu();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,Ue(r)?(l=!0,ro(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pu(t),i.updater=Lo,t.stateNode=i,i._reactInternals=t,xa(t,r,e,n),t=Ma(null,t,r,!0,l,n)):(t.tag=0,ie&&l&&_u(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=kg(r),e=ut(r,e),i){case 0:t=Ca(null,t,r,e,n);break e;case 1:t=kf(null,t,r,e,n);break e;case 11:t=Sf(null,t,r,e,n);break e;case 14:t=Af(null,t,r,ut(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ut(r,i),Ca(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ut(r,i),kf(e,t,r,i,n);case 3:e:{if(ep(t),e===null)throw Error(A(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Mh(e,t),ao(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Tr(Error(A(423)),t),t=_f(e,t,r,n,i);break e}else if(r!==i){i=Tr(Error(A(424)),t),t=_f(e,t,r,n,i);break e}else for(Ve=mn(t.stateNode.containerInfo.firstChild),He=t,ie=!0,ft=null,n=Eh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pr(),r===i){t=Qt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Dh(t),e===null&&Aa(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,ya(r,i)?o=null:l!==null&&ya(r,l)&&(t.flags|=32),bh(e,t),Pe(e,t,o,n),t.child;case 6:return e===null&&Aa(t),null;case 13:return tp(e,t,n);case 4:return Ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ut(r,i),Sf(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,J(oo,r._currentValue),r._currentValue=o,l!==null)if(yt(l.value,o)){if(l.children===i.children&&!Fe.current){t=Qt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=jt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ka(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(A(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ka(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_r(t,n),i=nt(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=ut(r,t.pendingProps),i=ut(r.type,i),Af(e,t,r,i,n);case 15:return Jh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ut(r,i),Il(e,t),t.tag=1,Ue(r)?(e=!0,ro(t)):e=!1,_r(t,n),Xh(t,r,i),xa(t,r,i,n),Ma(null,t,r,!0,e,n);case 19:return np(e,t,n);case 22:return qh(e,t,n)}throw Error(A(156,t.tag))};function vp(e,t){return Hd(e,t)}function Ag(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 et(e,t,n,r){return new Ag(e,t,n,r)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kg(e){if(typeof e=="function")return Qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fu)return 11;if(e===du)return 14}return 2}function wn(e,t){var n=e.alternate;return n===null?(n=et(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 Fl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Qu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case or:return Wn(n.children,i,l,t);case cu:o=8,i|=8;break;case Xs:return e=et(12,n,t,i|2),e.elementType=Xs,e.lanes=l,e;case Ks:return e=et(13,n,t,i),e.elementType=Ks,e.lanes=l,e;case Zs:return e=et(19,n,t,i),e.elementType=Zs,e.lanes=l,e;case Dd:return zo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cd:o=10;break e;case Md:o=9;break e;case fu:o=11;break e;case du:o=14;break e;case nn:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=et(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Wn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function zo(e,t,n,r){return e=et(22,e,r,t),e.elementType=Dd,e.lanes=n,e.stateNode={isHidden:!1},e}function Ls(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function Fs(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _g(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=gs(0),this.expirationTimes=gs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gu(e,t,n,r,i,l,o,s,a){return e=new _g(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=et(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pu(l),e}function xg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kp)}catch(e){console.error(e)}}kp(),kd.exports=Ge;var Ng=kd.exports,_p,Yf=Ng;_p=Yf.createRoot,Yf.hydrateRoot;/** - * @remix-run/router v1.21.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Og(){return Math.random().toString(36).substr(2,8)}function Ff(e,t){return{usr:e.state,key:e.key,idx:t}}function za(e,t,n,r){return n===void 0&&(n=null),zi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Br(t):t,{state:n,key:t&&t.key||r||Og()})}function Ep(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 Br(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 Rg(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s=un.Pop,a=null,u=h();u==null&&(u=0,o.replaceState(zi({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function f(){s=un.Pop;let E=h(),d=E==null?null:E-u;u=E,a&&a({action:s,location:w.location,delta:d})}function m(E,d){s=un.Push;let c=za(w.location,E,d);u=h()+1;let p=Ff(c,u),g=w.createHref(c);try{o.pushState(p,"",g)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(g)}l&&a&&a({action:s,location:w.location,delta:1})}function y(E,d){s=un.Replace;let c=za(w.location,E,d);u=h();let p=Ff(c,u),g=w.createHref(c);o.replaceState(p,"",g),l&&a&&a({action:s,location:w.location,delta:0})}function v(E){let d=i.location.origin!=="null"?i.location.origin:i.location.href,c=typeof E=="string"?E:Ep(E);return c=c.replace(/ $/,"%20"),ye(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let w={get action(){return s},get location(){return e(i,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Lf,f),a=E,()=>{i.removeEventListener(Lf,f),a=null}},createHref(E){return t(i,E)},createURL:v,encodeLocation(E){let d=v(E);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:y,go(E){return o.go(E)}};return w}var Uf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Uf||(Uf={}));function Tg(e,t,n){return n===void 0&&(n="/"),Ig(e,t,n,!1)}function Ig(e,t,n,r){let i=typeof t=="string"?Br(t):t,l=Dp(i.pathname||"/",n);if(l==null)return null;let o=Cp(e);Yg(o);let s=null;for(let a=0;s==null&&a{let a={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};a.relativePath.startsWith("/")&&(ye(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Bn([r,a.relativePath]),h=n.concat(a);l.children&&l.children.length>0&&(ye(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cp(l.children,t,h,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:Bg(u,l.index),routesMeta:h})};return e.forEach((l,o)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))i(l,o);else for(let a of Mp(l.path))i(l,o,a)}),t}function Mp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=Mp(r.join("/")),s=[];return s.push(...o.map(a=>a===""?l:[l,a].join("/"))),i&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Yg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$g(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lg=/^:[\w-]+$/,Fg=3,Ug=2,zg=1,jg=10,Wg=-2,zf=e=>e==="*";function Bg(e,t){let n=e.split("/"),r=n.length;return n.some(zf)&&(r+=Wg),t&&(r+=Ug),n.filter(i=>!zf(i)).reduce((i,l)=>i+(Lg.test(l)?Fg:l===""?zg:jg),r)}function $g(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 Vg(e,t,n){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=h;if(m==="*"){let w=s[f]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const v=s[f];return y&&!v?u[m]=void 0:u[m]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Hg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xp(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,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Qg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xp(!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 Dp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Gg(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Br(e):e;return{pathname:n?n.startsWith("/")?n:Xg(n,t):t,search:bg(r),hash:ev(i)}}function Xg(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 Us(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Kg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zg(e,t){let n=Kg(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Jg(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Br(e):(i=zi({},e),ye(!i.pathname||!i.pathname.includes("?"),Us("?","pathname","search",i)),ye(!i.pathname||!i.pathname.includes("#"),Us("#","pathname","hash",i)),ye(!i.search||!i.search.includes("#"),Us("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let a=Gg(i,s),u=o&&o!=="/"&&o.endsWith("/"),h=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||h)&&(a.pathname+="/"),a}const Bn=e=>e.join("/").replace(/\/\/+/g,"/"),qg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ev=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Np=["post","put","patch","delete"];new Set(Np);const nv=["get",...Np];new Set(nv);/** - * React Router v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),O.useCallback(function(u,h){if(h===void 0&&(h={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=Jg(u,JSON.parse(o),l,h.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Bn([t,f.pathname])),(h.replace?r.replace:r.push)(f,h.state,h)},[t,r,o,l,e])}function ov(e,t){return sv(e,t)}function sv(e,t,n,r){Qo()||ye(!1);let{navigator:i}=O.useContext(Vo),{matches:l}=O.useContext($r),o=l[l.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=Op(),h;if(t){var f;let E=typeof t=="string"?Br(t):t;a==="/"||(f=E.pathname)!=null&&f.startsWith(a)||ye(!1),h=E}else h=u;let m=h.pathname||"/",y=m;if(a!=="/"){let E=a.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=Tg(e,{pathname:y}),w=dv(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:Bn([a,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:Bn([a,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,n,r);return t&&w?O.createElement(Ho.Provider,{value:{location:ji({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:un.Pop}},w):w}function av(){let e=yv(),t=tv(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 uv=O.createElement(av,null);class cv 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($r.Provider,{value:this.props.routeContext},O.createElement(Pp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fv(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Ju);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement($r.Provider,{value:t},r)}function dv(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let h=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);h>=0||ye(!1),o=o.slice(0,Math.min(o.length,h+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((h,f,m)=>{let y,v=!1,w=null,E=null;n&&(y=s&&f.route.id?s[f.route.id]:void 0,w=f.route.errorElement||uv,a&&(u<0&&m===0?(v=!0,E=null):u===m&&(v=!0,E=f.route.hydrateFallbackElement||null)));let d=t.concat(o.slice(0,m+1)),c=()=>{let p;return y?p=w:v?p=E:f.route.Component?p=O.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=h,O.createElement(fv,{match:f,routeContext:{outlet:h,matches:d,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?O.createElement(cv,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:c(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):c()},null)}var Tp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Tp||{}),vo=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}(vo||{});function hv(e){let t=O.useContext(Ju);return t||ye(!1),t}function pv(e){let t=O.useContext(rv);return t||ye(!1),t}function mv(e){let t=O.useContext($r);return t||ye(!1),t}function Ip(e){let t=mv(),n=t.matches[t.matches.length-1];return n.route.id||ye(!1),n.route.id}function yv(){var e;let t=O.useContext(Pp),n=pv(vo.UseRouteError),r=Ip(vo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gv(){let{router:e}=hv(Tp.UseNavigateStable),t=Ip(vo.UseNavigateStable),n=O.useRef(!1);return Rp(()=>{n.current=!0}),O.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ji({fromRouteId:t},l)))},[e,t])}const Wf={};function vv(e,t){Wf[t]||(Wf[t]=!0,console.warn(t))}const Bf=(e,t,n)=>vv(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function wv(e,t){e!=null&&e.v7_startTransition||Bf("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&Bf("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function en(e){ye(!1)}function Sv(e){let{basename:t="/",children:n=null,location:r,navigationType:i=un.Pop,navigator:l,static:o=!1,future:s}=e;Qo()&&ye(!1);let a=t.replace(/^\/*/,"/"),u=O.useMemo(()=>({basename:a,navigator:l,static:o,future:ji({v7_relativeSplatPath:!1},s)}),[a,s,l,o]);typeof r=="string"&&(r=Br(r));let{pathname:h="/",search:f="",hash:m="",state:y=null,key:v="default"}=r,w=O.useMemo(()=>{let E=Dp(h,a);return E==null?null:{location:{pathname:E,search:f,hash:m,state:y,key:v},navigationType:i}},[a,h,f,m,y,v,i]);return w==null?null:O.createElement(Vo.Provider,{value:u},O.createElement(Ho.Provider,{children:n,value:w}))}function Av(e){let{children:t,location:n}=e;return ov(ja(t),n)}new Promise(()=>{});function ja(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let l=[...t,i];if(r.type===O.Fragment){n.push.apply(n,ja(r.props.children,l));return}r.type!==en&&ye(!1),!r.props.index||!r.props.children||ye(!1);let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,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&&(o.children=ja(r.props.children,l)),n.push(o)}),n}/** - * React Router DOM v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const kv="6";try{window.__reactRouterVersion=kv}catch{}const _v="startTransition",$f=v0[_v];function xv(e){let{basename:t,children:n,future:r,window:i}=e,l=O.useRef();l.current==null&&(l.current=Pg({window:i,v5Compat:!0}));let o=l.current,[s,a]=O.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},h=O.useCallback(f=>{u&&$f?$f(()=>a(f)):a(f)},[a,u]);return O.useLayoutEffect(()=>o.listen(h),[o,h]),O.useEffect(()=>wv(r),[r]),O.createElement(Sv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Vf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vf||(Vf={}));var Hf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hf||(Hf={}));var Se=function(){return Se=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?we(Vr,--it):0,Lr--,fe===10&&(Lr=1,Xo--),fe}function mt(){return fe=it2||Ba(fe)>3?"":" "}function Iv(e,t){for(;--t&&mt()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Zo(e,zl()+(t<6&&$n()==32&&mt()==32))}function $a(e){for(;mt();)switch(fe){case e:return it;case 34:case 39:e!==34&&e!==39&&$a(fe);break;case 40:e===41&&$a(e);break;case 92:mt();break}return it}function Yv(e,t){for(;mt()&&e+fe!==57;)if(e+fe===84&&$n()===47)break;return"/*"+Zo(t,it-1)+"*"+bu(e===47?e:mt())}function Lv(e){for(;!Ba($n());)mt();return Zo(e,it)}function Fv(e){return Rv(jl("",null,null,null,[""],e=Ov(e),0,[0],e))}function jl(e,t,n,r,i,l,o,s,a){for(var u=0,h=0,f=o,m=0,y=0,v=0,w=1,E=1,d=1,c=0,p="",g=i,_=l,x=r,S=p;E;)switch(v=c,c=mt()){case 40:if(v!=108&&we(S,f-1)==58){Ul(S+=F(zs(c),"&","&\f"),"&\f",Fp(u?s[u-1]:0))!=-1&&(d=-1);break}case 34:case 39:case 91:S+=zs(c);break;case 9:case 10:case 13:case 32:S+=Tv(v);break;case 92:S+=Iv(zl()-1,7);continue;case 47:switch($n()){case 42:case 47:ci(Uv(Yv(mt(),zl()),t,n,a),a);break;default:S+="/"}break;case 123*w:s[u++]=kt(S)*d;case 125*w:case 59:case 0:switch(c){case 0:case 125:E=0;case 59+h:d==-1&&(S=F(S,/\f/g,"")),y>0&&kt(S)-f&&ci(y>32?Xf(S+";",r,n,f-1,a):Xf(F(S," ","")+";",r,n,f-2,a),a);break;case 59:S+=";";default:if(ci(x=Gf(S,t,n,u,h,i,s,p,g=[],_=[],f,l),l),c===123)if(h===0)jl(S,t,x,x,g,l,f,s,_);else switch(m===99&&we(S,3)===110?100:m){case 100:case 108:case 109:case 115:jl(e,x,x,r&&ci(Gf(e,x,x,0,0,i,s,p,i,g=[],f,_),_),i,_,f,s,r?g:_);break;default:jl(S,x,x,x,[""],_,0,s,_)}}u=h=y=0,w=d=1,p=S="",f=o;break;case 58:f=1+kt(S),y=v;default:if(w<1){if(c==123)--w;else if(c==125&&w++==0&&Pv()==125)continue}switch(S+=bu(c),c*w){case 38:d=h>0?1:(S+="\f",-1);break;case 44:s[u++]=(kt(S)-1)*d,d=1;break;case 64:$n()===45&&(S+=zs(mt())),m=$n(),h=f=kt(p=S+=Lv(zl())),c++;break;case 45:v===45&&kt(S)==2&&(w=0)}}return l}function Gf(e,t,n,r,i,l,o,s,a,u,h,f){for(var m=i-1,y=i===0?l:[""],v=zp(y),w=0,E=0,d=0;w0?y[c]+" "+p:F(p,/&\f/g,y[c])))&&(a[d++]=g);return Ko(e,t,n,i===0?Go:s,a,u,h,f)}function Uv(e,t,n,r){return Ko(e,t,n,Yp,bu(Nv()),Yr(e,2,-2),0,r)}function Xf(e,t,n,r,i){return Ko(e,t,n,qu,Yr(e,0,r),Yr(e,r+1,-1),r,i)}function Wp(e,t,n){switch(Mv(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 4789:return Si+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Si+e+b+e+e;case 5936:switch(we(e,t+11)){case 114:return H+e+b+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+b+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+b+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return H+e+b+e+e;case 6165:return H+e+b+"flex-"+e+e;case 5187:return H+e+F(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return H+e+b+"flex-item-"+F(e,/flex-|-self/g,"")+(Tt(e,/flex-|baseline/)?"":b+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return H+e+b+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return H+e+b+F(e,"shrink","negative")+e;case 5292:return H+e+b+F(e,"basis","preferred-size")+e;case 6060:return H+"box-"+F(e,"-grow","")+H+e+b+F(e,"grow","positive")+e;case 4554:return H+F(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+b+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4200:if(!Tt(e,/flex-|baseline/))return b+"grid-column-align"+Yr(e,t)+e;break;case 2592:case 3360:return b+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Tt(r.props,/grid-\w+-end/)})?~Ul(e+(n=n[t].value),"span",0)?e:b+F(e,"-start","")+e+b+"grid-row-span:"+(~Ul(n,"span",0)?Tt(n,/\d+/):+Tt(n,/\d+/)-+Tt(e,/\d+/))+";":b+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Tt(r.props,/grid-\w+-start/)})?e:b+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Si+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ul(e,"stretch",0)?Wp(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,l,o,s,a,u){return b+i+":"+l+u+(o?b+i+"-span:"+(s?a:+a-+l)+u:"")+e});case 4949:if(we(e,t+6)===121)return F(e,":",":"+H)+e;break;case 6444:switch(we(e,we(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+H+(we(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+b+"$2box$3")+e;case 100:return F(e,":",":"+b)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function wo(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case qu:e.return=Wp(e.value,e.length,n);return;case Lp:return wo([tn(e,{value:F(e.value,"@","@"+H)})],r);case Go:if(e.length)return Dv(n=e.props,function(i){switch(Tt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":nr(tn(e,{props:[F(i,/:(read-\w+)/,":"+Si+"$1")]})),nr(tn(e,{props:[i]})),Wa(e,{props:Qf(n,r)});break;case"::placeholder":nr(tn(e,{props:[F(i,/:(plac\w+)/,":"+H+"input-$1")]})),nr(tn(e,{props:[F(i,/:(plac\w+)/,":"+Si+"$1")]})),nr(tn(e,{props:[F(i,/:(plac\w+)/,b+"input-$1")]})),nr(tn(e,{props:[i]})),Wa(e,{props:Qf(n,r)});break}return""})}}var $v={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Be={},Fr=typeof process<"u"&&Be!==void 0&&(Be.REACT_APP_SC_ATTR||Be.SC_ATTR)||"data-styled",Bp="active",$p="data-styled-version",Jo="6.1.13",ec=`/*!sc*/ -`,So=typeof window<"u"&&"HTMLElement"in window,Vv=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Be!==void 0&&Be.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Be.REACT_APP_SC_DISABLE_SPEEDY!==""?Be.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Be.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Be!==void 0&&Be.SC_DISABLE_SPEEDY!==void 0&&Be.SC_DISABLE_SPEEDY!==""&&Be.SC_DISABLE_SPEEDY!=="false"&&Be.SC_DISABLE_SPEEDY),Hv={},qo=Object.freeze([]),Ur=Object.freeze({});function Vp(e,t,n){return n===void 0&&(n=Ur),e.theme!==n.theme&&e.theme||t||n.theme}var Hp=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Qv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Gv=/(^-|-$)/g;function Kf(e){return e.replace(Qv,"-").replace(Gv,"")}var Xv=/(a)(d)/gi,kl=52,Zf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Va(e){var t,n="";for(t=Math.abs(e);t>kl;t=t/kl|0)n=Zf(t%kl)+n;return(Zf(t%kl)+n).replace(Xv,"$1-$2")}var js,Qp=5381,gr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Gp=function(e){return gr(Qp,e)};function Xp(e){return Va(Gp(e)>>>0)}function Kv(e){return e.displayName||e.name||"Component"}function Ws(e){return typeof e=="string"&&!0}var Kp=typeof Symbol=="function"&&Symbol.for,Zp=Kp?Symbol.for("react.memo"):60115,Zv=Kp?Symbol.for("react.forward_ref"):60112,Jv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bv=((js={})[Zv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},js[Zp]=Jp,js);function Jf(e){return("type"in(t=e)&&t.type.$$typeof)===Zp?Jp:"$$typeof"in e?bv[e.$$typeof]:Jv;var t}var e1=Object.defineProperty,t1=Object.getOwnPropertyNames,qf=Object.getOwnPropertySymbols,n1=Object.getOwnPropertyDescriptor,r1=Object.getPrototypeOf,bf=Object.prototype;function qp(e,t,n){if(typeof t!="string"){if(bf){var r=r1(t);r&&r!==bf&&qp(e,r,n)}var i=t1(t);qf&&(i=i.concat(qf(t)));for(var l=Jf(e),o=Jf(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var i1=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,l=i;t>=l;)if((l<<=1)<0)throw Jn(16,"".concat(t));this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var o=i;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),l=i+r,o=i;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(E+="".concat(d,","))}),a+="".concat(v).concat(w,'{content:"').concat(E,'"}').concat(ec)},h=0;h0?".".concat(t):m},h=a.slice();h.push(function(m){m.type===Go&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(m1,n).replace(r,u))}),o.prefix&&h.push(Bv),h.push(zv);var f=function(m,y,v,w){y===void 0&&(y=""),v===void 0&&(v=""),w===void 0&&(w="&"),t=w,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var E=m.replace(y1,""),d=Fv(v||y?"".concat(v," ").concat(y," { ").concat(E," }"):E);o.namespace&&(d=em(d,o.namespace));var c=[];return wo(d,jv(h.concat(Wv(function(p){return c.push(p)})))),c};return f.hash=a.length?a.reduce(function(m,y){return y.name||Jn(15),gr(m,y.name)},Qp).toString():"",f}var v1=new ko,Ga=g1(),tm=be.createContext({shouldForwardProp:void 0,styleSheet:v1,stylis:Ga});tm.Consumer;be.createContext(void 0);function Xa(){return O.useContext(tm)}var w1=function(){function e(t,n){var r=this;this.inject=function(i,l){l===void 0&&(l=Ga);var o=r.name+l.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,l(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,nc(this,function(){throw Jn(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ga),this.name+t.hash},e}(),S1=function(e){return e>="A"&&e<="Z"};function nd(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(l,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}i=Un(i,o),this.staticRulesId=o}else{for(var a=gr(this.baseHash,r.hash),u="",h=0;h>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),i=Un(i,y)}}return i},e}(),$i=be.createContext(void 0);$i.Consumer;function _1(e){var t=be.useContext($i),n=O.useMemo(function(){return function(r,i){if(!r)throw Jn(14);if(Zn(r)){var l=r(i);return l}if(Array.isArray(r)||typeof r!="object")throw Jn(8);return i?Se(Se({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?be.createElement($i.Provider,{value:n},e.children):null}var Bs={};function x1(e,t,n){var r=tc(e),i=e,l=!Ws(e),o=t.attrs,s=o===void 0?qo:o,a=t.componentId,u=a===void 0?function(g,_){var x=typeof g!="string"?"sc":Kf(g);Bs[x]=(Bs[x]||0)+1;var S="".concat(x,"-").concat(Xp(Jo+x+Bs[x]));return _?"".concat(_,"-").concat(S):S}(t.displayName,t.parentComponentId):a,h=t.displayName,f=h===void 0?function(g){return Ws(g)?"styled.".concat(g):"Styled(".concat(Kv(g),")")}(e):h,m=t.displayName&&t.componentId?"".concat(Kf(t.displayName),"-").concat(t.componentId):t.componentId||u,y=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,v=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;v=function(g,_){return w(g,_)&&E(g,_)}}else v=w}var d=new k1(n,m,r?i.componentStyle:void 0);function c(g,_){return function(x,S,P){var Z=x.attrs,U=x.componentStyle,je=x.defaultProps,Mn=x.foldedComponentIds,Dn=x.styledComponentId,rl=x.target,cs=be.useContext($i),Xr=Xa(),Nn=x.shouldForwardProp||Xr.shouldForwardProp,M=Vp(S,cs,je)||Ur,T=function(Jt,We,Pt){for(var Kr,On=Se(Se({},We),{className:void 0,theme:Pt}),fs=0;fs2&&ko.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,i)},e}();function C1(e){for(var t=[],n=1;n>>0,r;for(r=0;r0)for(n=0;n=0;return(l?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var sc=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vs={},Er={};function R(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Er[e]=i),t&&(Er[t[0]]=function(){return Mt(i.apply(this,arguments),t[1],t[2])}),n&&(Er[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R1(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function T1(e){var t=e.match(sc),n,r;for(n=0,r=t.length;n=0&&xl.test(e);)e=e.replace(xl,r),xl.lastIndex=0,n-=1;return e}var I1={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y1(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sc).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var L1="Invalid date";function F1(){return this._invalidDate}var U1="%d",z1=/\d{1,2}/;function j1(e){return this._ordinal.replace("%d",e)}var W1={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function B1(e,t,n,r){var i=this._relativeTime[n];return Nt(i)?i(e,t,n,r):i.replace(/%d/i,e)}function $1(e,t){var n=this._relativeTime[e>0?"future":"past"];return Nt(n)?n(t):n.replace(/%s/i,t)}var sd={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ot(e){return typeof e=="string"?sd[e]||sd[e.toLowerCase()]:void 0}function ac(e){var t={},n,r;for(r in e)$(e,r)&&(n=ot(r),n&&(t[n]=e[r]));return t}var V1={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function H1(e){var t=[],n;for(n in e)$(e,n)&&t.push({unit:n,priority:V1[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var dm=/\d/,Ke=/\d\d/,hm=/\d{3}/,uc=/\d{4}/,es=/[+-]?\d{6}/,ne=/\d\d?/,pm=/\d\d\d\d?/,mm=/\d\d\d\d\d\d?/,ts=/\d{1,3}/,cc=/\d{1,4}/,ns=/[+-]?\d{1,6}/,Hr=/\d+/,rs=/[+-]?\d+/,Q1=/Z|[+-]\d\d:?\d\d/gi,is=/Z|[+-]\d\d(?::?\d\d)?/gi,G1=/[+-]?\d+(\.\d{1,3})?/,tl=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qr=/^[1-9]\d?/,fc=/^([1-9]\d|\d)/,_o;_o={};function D(e,t,n){_o[e]=Nt(t)?t:function(r,i){return r&&n?n:t}}function X1(e,t){return $(_o,e)?_o[e](t._strict,t._locale):new RegExp(K1(e))}function K1(e){return Wt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,l){return n||r||i||l}))}function Wt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function qe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function j(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=qe(t)),n}var ba={};function G(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Gt(t)&&(r=function(l,o){o[t]=j(l)}),i=e.length,n=0;n68?1900:2e3)};var ym=Gr("FullYear",!0);function b1(){return ls(this.year())}function Gr(e,t){return function(n){return n!=null?(gm(this,e,n),C.updateOffset(this,t),this):Vi(this,e)}}function Vi(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function gm(e,t,n){var r,i,l,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}l=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!ls(l)?28:s,i?r.setUTCFullYear(l,o,s):r.setFullYear(l,o,s)}}function ew(e){return e=ot(e),Nt(this[e])?this[e]():this}function tw(e,t){if(typeof e=="object"){e=ac(e);var n=H1(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,l,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,l,o),s}function Hi(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xo(e,t,n){var r=7+t-n,i=(7+Hi(e,0,r).getUTCDay()-t)%7;return-i+r-1}function _m(e,t,n,r,i){var l=(7+n-r)%7,o=xo(e,r,i),s=1+7*(t-1)+l+o,a,u;return s<=0?(a=e-1,u=Ai(a)+s):s>Ai(e)?(a=e+1,u=s-Ai(e)):(a=e,u=s),{year:a,dayOfYear:u}}function Qi(e,t,n){var r=xo(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,l,o;return i<1?(o=e.year()-1,l=i+Bt(o,t,n)):i>Bt(e.year(),t,n)?(l=i-Bt(e.year(),t,n),o=e.year()+1):(o=e.year(),l=i),{week:l,year:o}}function Bt(e,t,n){var r=xo(e,t,n),i=xo(e+1,t,n);return(Ai(e)-r+i)/7}R("w",["ww",2],"wo","week");R("W",["WW",2],"Wo","isoWeek");D("w",ne,Qr);D("ww",ne,Ke);D("W",ne,Qr);D("WW",ne,Ke);nl(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=j(e)});function pw(e){return Qi(e,this._week.dow,this._week.doy).week}var mw={dow:0,doy:6};function yw(){return this._week.dow}function gw(){return this._week.doy}function vw(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ww(e){var t=Qi(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}R("d",0,"do","day");R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});R("e",0,0,"weekday");R("E",0,0,"isoWeekday");D("d",ne);D("e",ne);D("E",ne);D("dd",function(e,t){return t.weekdaysMinRegex(e)});D("ddd",function(e,t){return t.weekdaysShortRegex(e)});D("dddd",function(e,t){return t.weekdaysRegex(e)});nl(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:L(n).invalidWeekday=e});nl(["d","e","E"],function(e,t,n,r){t[r]=j(e)});function Sw(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Aw(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function hc(e,t){return e.slice(t,7).concat(e.slice(0,t))}var kw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xm="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_w="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),xw=tl,Ew=tl,Cw=tl;function Mw(e,t){var n=gt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?hc(n,this._week.dow):e?n[e.day()]:n}function Dw(e){return e===!0?hc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Nw(e){return e===!0?hc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pw(e,t,n){var r,i,l,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)l=Dt([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(l,"").toLocaleLowerCase();return n?t==="dddd"?(i=ue.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=ue.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=ue.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=ue.call(this._weekdaysParse,o),i!==-1||(i=ue.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=ue.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=ue.call(this._shortWeekdaysParse,o),i!==-1||(i=ue.call(this._weekdaysParse,o),i!==-1)?i:(i=ue.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=ue.call(this._minWeekdaysParse,o),i!==-1||(i=ue.call(this._weekdaysParse,o),i!==-1)?i:(i=ue.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function Ow(e,t,n){var r,i,l;if(this._weekdaysParseExact)return Pw.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Dt([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(l="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(l.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Rw(e){if(!this.isValid())return e!=null?this:NaN;var t=Vi(this,"Day");return e!=null?(e=Sw(e,this.localeData()),this.add(e-t,"d")):t}function Tw(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Iw(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Aw(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Yw(e){return this._weekdaysParseExact?($(this,"_weekdaysRegex")||pc.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):($(this,"_weekdaysRegex")||(this._weekdaysRegex=xw),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Lw(e){return this._weekdaysParseExact?($(this,"_weekdaysRegex")||pc.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):($(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ew),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fw(e){return this._weekdaysParseExact?($(this,"_weekdaysRegex")||pc.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):($(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Cw),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pc(){function e(h,f){return f.length-h.length}var t=[],n=[],r=[],i=[],l,o,s,a,u;for(l=0;l<7;l++)o=Dt([2e3,1]).day(l),s=Wt(this.weekdaysMin(o,"")),a=Wt(this.weekdaysShort(o,"")),u=Wt(this.weekdays(o,"")),t.push(s),n.push(a),r.push(u),i.push(s),i.push(a),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mc(){return this.hours()%12||12}function Uw(){return this.hours()||24}R("H",["HH",2],0,"hour");R("h",["hh",2],0,mc);R("k",["kk",2],0,Uw);R("hmm",0,0,function(){return""+mc.apply(this)+Mt(this.minutes(),2)});R("hmmss",0,0,function(){return""+mc.apply(this)+Mt(this.minutes(),2)+Mt(this.seconds(),2)});R("Hmm",0,0,function(){return""+this.hours()+Mt(this.minutes(),2)});R("Hmmss",0,0,function(){return""+this.hours()+Mt(this.minutes(),2)+Mt(this.seconds(),2)});function Em(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Em("a",!0);Em("A",!1);function Cm(e,t){return t._meridiemParse}D("a",Cm);D("A",Cm);D("H",ne,fc);D("h",ne,Qr);D("k",ne,Qr);D("HH",ne,Ke);D("hh",ne,Ke);D("kk",ne,Ke);D("hmm",pm);D("hmmss",mm);D("Hmm",pm);D("Hmmss",mm);G(["H","HH"],me);G(["k","kk"],function(e,t,n){var r=j(e);t[me]=r===24?0:r});G(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});G(["h","hh"],function(e,t,n){t[me]=j(e),L(n).bigHour=!0});G("hmm",function(e,t,n){var r=e.length-2;t[me]=j(e.substr(0,r)),t[dt]=j(e.substr(r)),L(n).bigHour=!0});G("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[me]=j(e.substr(0,r)),t[dt]=j(e.substr(r,2)),t[zt]=j(e.substr(i)),L(n).bigHour=!0});G("Hmm",function(e,t,n){var r=e.length-2;t[me]=j(e.substr(0,r)),t[dt]=j(e.substr(r))});G("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[me]=j(e.substr(0,r)),t[dt]=j(e.substr(r,2)),t[zt]=j(e.substr(i))});function zw(e){return(e+"").toLowerCase().charAt(0)==="p"}var jw=/[ap]\.?m?\.?/i,Ww=Gr("Hours",!0);function Bw(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Mm={calendar:P1,longDateFormat:I1,invalidDate:L1,ordinal:U1,dayOfMonthOrdinalParse:z1,relativeTime:W1,months:rw,monthsShort:vm,week:mw,weekdays:kw,weekdaysMin:_w,weekdaysShort:xm,meridiemParse:jw},re={},ii={},Gi;function $w(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=os(l.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&$w(l,r)>=n-1)break;n--}t++}return Gi}function Hw(e){return!!(e&&e.match("^[^/\\\\]*$"))}function os(e){var t=null,n;if(re[e]===void 0&&typeof Ql<"u"&&Ql&&Ql.exports&&Hw(e))try{t=Gi._abbr,n=require,n("./locale/"+e),An(t)}catch{re[e]=null}return re[e]}function An(e,t){var n;return e&&(Ie(t)?n=Kt(e):n=yc(e,t),n?Gi=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Gi._abbr}function yc(e,t){if(t!==null){var n,r=Mm;if(t.abbr=e,re[e]!=null)cm("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=re[e]._config;else if(t.parentLocale!=null)if(re[t.parentLocale]!=null)r=re[t.parentLocale]._config;else if(n=os(t.parentLocale),n!=null)r=n._config;else return ii[t.parentLocale]||(ii[t.parentLocale]=[]),ii[t.parentLocale].push({name:e,config:t}),null;return re[e]=new oc(Ja(r,t)),ii[e]&&ii[e].forEach(function(i){yc(i.name,i.config)}),An(e),re[e]}else return delete re[e],null}function Qw(e,t){if(t!=null){var n,r,i=Mm;re[e]!=null&&re[e].parentLocale!=null?re[e].set(Ja(re[e]._config,t)):(r=os(e),r!=null&&(i=r._config),t=Ja(i,t),r==null&&(t.abbr=e),n=new oc(t),n.parentLocale=re[e],re[e]=n),An(e)}else re[e]!=null&&(re[e].parentLocale!=null?(re[e]=re[e].parentLocale,e===An()&&An(e)):re[e]!=null&&delete re[e]);return re[e]}function Kt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Gi;if(!gt(e)){if(t=os(e),t)return t;e=[e]}return Vw(e)}function Gw(){return qa(re)}function gc(e){var t,n=e._a;return n&&L(e).overflow===-2&&(t=n[Ut]<0||n[Ut]>11?Ut:n[xt]<1||n[xt]>dc(n[De],n[Ut])?xt:n[me]<0||n[me]>24||n[me]===24&&(n[dt]!==0||n[zt]!==0||n[zn]!==0)?me:n[dt]<0||n[dt]>59?dt:n[zt]<0||n[zt]>59?zt:n[zn]<0||n[zn]>999?zn:-1,L(e)._overflowDayOfYear&&(txt)&&(t=xt),L(e)._overflowWeeks&&t===-1&&(t=J1),L(e)._overflowWeekday&&t===-1&&(t=q1),L(e).overflow=t),e}var Xw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zw=/Z|[+-]\d\d(?::?\d\d)?/,El=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Hs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Jw=/^\/?Date\((-?\d+)/i,qw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Dm(e){var t,n,r=e._i,i=Xw.exec(r)||Kw.exec(r),l,o,s,a,u=El.length,h=Hs.length;if(i){for(L(e).iso=!0,t=0,n=u;tAi(o)||e._dayOfYear===0)&&(L(e)._overflowDayOfYear=!0),n=Hi(o,0,e._dayOfYear),e._a[Ut]=n.getUTCMonth(),e._a[xt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[me]===24&&e._a[dt]===0&&e._a[zt]===0&&e._a[zn]===0&&(e._nextDay=!0,e._a[me]=0),e._d=(e._useUTC?Hi:hw).apply(null,r),l=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[me]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==l&&(L(e).weekdayMismatch=!0)}}function sS(e){var t,n,r,i,l,o,s,a,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(l=1,o=4,n=ir(t.GG,e._a[De],Qi(te(),1,4).year),r=ir(t.W,1),i=ir(t.E,1),(i<1||i>7)&&(a=!0)):(l=e._locale._week.dow,o=e._locale._week.doy,u=Qi(te(),l,o),n=ir(t.gg,e._a[De],u.year),r=ir(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(a=!0)):t.e!=null?(i=t.e+l,(t.e<0||t.e>6)&&(a=!0)):i=l),r<1||r>Bt(n,l,o)?L(e)._overflowWeeks=!0:a!=null?L(e)._overflowWeekday=!0:(s=_m(n,r,i,l,o),e._a[De]=s.year,e._dayOfYear=s.dayOfYear)}C.ISO_8601=function(){};C.RFC_2822=function(){};function wc(e){if(e._f===C.ISO_8601){Dm(e);return}if(e._f===C.RFC_2822){Nm(e);return}e._a=[],L(e).empty=!0;var t=""+e._i,n,r,i,l,o,s=t.length,a=0,u,h;for(i=fm(e._f,e._locale).match(sc)||[],h=i.length,n=0;n0&&L(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),a+=r.length),Er[l]?(r?L(e).empty=!1:L(e).unusedTokens.push(l),Z1(l,r,e)):e._strict&&!r&&L(e).unusedTokens.push(l);L(e).charsLeftOver=s-a,t.length>0&&L(e).unusedInput.push(t),e._a[me]<=12&&L(e).bigHour===!0&&e._a[me]>0&&(L(e).bigHour=void 0),L(e).parsedDateParts=e._a.slice(0),L(e).meridiem=e._meridiem,e._a[me]=aS(e._locale,e._a[me],e._meridiem),u=L(e).era,u!==null&&(e._a[De]=e._locale.erasConvertYear(u,e._a[De])),vc(e),gc(e)}function aS(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function uS(e){var t,n,r,i,l,o,s=!1,a=e._f.length;if(a===0){L(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:bo()});function Rm(e,t){var n,r;if(t.length===1&>(t[0])&&(t=t[0]),!t.length)return te();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function PS(){if(!Ie(this._isDSTShifted))return this._isDSTShifted;var e={},t;return lc(e,this),e=Pm(e),e._a?(t=e._isUTC?Dt(e._a):te(e._a),this._isDSTShifted=this.isValid()&&AS(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function OS(){return this.isValid()?!this._isUTC:!1}function RS(){return this.isValid()?this._isUTC:!1}function Im(){return this.isValid()?this._isUTC&&this._offset===0:!1}var TS=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,IS=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function wt(e,t){var n=e,r=null,i,l,o;return Vl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Gt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=TS.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:j(r[xt])*i,h:j(r[me])*i,m:j(r[dt])*i,s:j(r[zt])*i,ms:j(eu(r[zn]*1e3))*i}):(r=IS.exec(e))?(i=r[1]==="-"?-1:1,n={y:Rn(r[2],i),M:Rn(r[3],i),w:Rn(r[4],i),d:Rn(r[5],i),h:Rn(r[6],i),m:Rn(r[7],i),s:Rn(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=YS(te(n.from),te(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),l=new ss(n),Vl(e)&&$(e,"_locale")&&(l._locale=e._locale),Vl(e)&&$(e,"_isValid")&&(l._isValid=e._isValid),l}wt.fn=ss.prototype;wt.invalid=SS;function Rn(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ud(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function YS(e,t){var n;return e.isValid()&&t.isValid()?(t=Ac(t,e),e.isBefore(t)?n=ud(e,t):(n=ud(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ym(e,t){return function(n,r){var i,l;return r!==null&&!isNaN(+r)&&(cm(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),l=n,n=r,r=l),i=wt(n,r),Lm(this,i,e),this}}function Lm(e,t,n,r){var i=t._milliseconds,l=eu(t._days),o=eu(t._months);e.isValid()&&(r=r??!0,o&&Sm(e,Vi(e,"Month")+o*n),l&&gm(e,"Date",Vi(e,"Date")+l*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&C.updateOffset(e,l||o))}var LS=Ym(1,"add"),FS=Ym(-1,"subtract");function Fm(e){return typeof e=="string"||e instanceof String}function US(e){return vt(e)||bi(e)||Fm(e)||Gt(e)||jS(e)||zS(e)||e===null||e===void 0}function zS(e){var t=Vn(e)&&!rc(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,l,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?$l(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Nt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",$l(n,"Z")):$l(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eA(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,l;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",l=t+'[")]',this.format(n+r+i+l)}function tA(e){e||(e=this.isUtc()?C.defaultFormatUtc:C.defaultFormat);var t=$l(this,e);return this.localeData().postformat(t)}function nA(e,t){return this.isValid()&&(vt(e)&&e.isValid()||te(e).isValid())?wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rA(e){return this.from(te(),e)}function iA(e,t){return this.isValid()&&(vt(e)&&e.isValid()||te(e).isValid())?wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lA(e){return this.to(te(),e)}function Um(e){var t;return e===void 0?this._locale._abbr:(t=Kt(e),t!=null&&(this._locale=t),this)}var zm=lt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function jm(){return this._locale}var Eo=1e3,Cr=60*Eo,Co=60*Cr,Wm=(365*400+97)*24*Co;function Mr(e,t){return(e%t+t)%t}function Bm(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Wm:new Date(e,t,n).valueOf()}function $m(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Wm:Date.UTC(e,t,n)}function oA(e){var t,n;if(e=ot(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?$m:Bm,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Mr(t+(this._isUTC?0:this.utcOffset()*Cr),Co);break;case"minute":t=this._d.valueOf(),t-=Mr(t,Cr);break;case"second":t=this._d.valueOf(),t-=Mr(t,Eo);break}return this._d.setTime(t),C.updateOffset(this,!0),this}function sA(e){var t,n;if(e=ot(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?$m:Bm,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Co-Mr(t+(this._isUTC?0:this.utcOffset()*Cr),Co)-1;break;case"minute":t=this._d.valueOf(),t+=Cr-Mr(t,Cr)-1;break;case"second":t=this._d.valueOf(),t+=Eo-Mr(t,Eo)-1;break}return this._d.setTime(t),C.updateOffset(this,!0),this}function aA(){return this._d.valueOf()-(this._offset||0)*6e4}function uA(){return Math.floor(this.valueOf()/1e3)}function cA(){return new Date(this.valueOf())}function fA(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dA(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function hA(){return this.isValid()?this.toISOString():null}function pA(){return ic(this)}function mA(){return cn({},L(this))}function yA(){return L(this).overflow}function gA(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}R("N",0,0,"eraAbbr");R("NN",0,0,"eraAbbr");R("NNN",0,0,"eraAbbr");R("NNNN",0,0,"eraName");R("NNNNN",0,0,"eraNarrow");R("y",["y",1],"yo","eraYear");R("y",["yy",2],0,"eraYear");R("y",["yyy",3],0,"eraYear");R("y",["yyyy",4],0,"eraYear");D("N",kc);D("NN",kc);D("NNN",kc);D("NNNN",DA);D("NNNNN",NA);G(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?L(n).era=i:L(n).invalidEra=e});D("y",Hr);D("yy",Hr);D("yyy",Hr);D("yyyy",Hr);D("yo",PA);G(["y","yy","yyy","yyyy"],De);G(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[De]=n._locale.eraYearOrdinalParse(e,i):t[De]=parseInt(e,10)});function vA(e,t){var n,r,i,l=this._eras||Kt("en")._eras;for(n=0,r=l.length;n=0)return l[r]}function SA(e,t){var n=e.since<=e.until?1:-1;return t===void 0?C(e.since).year():C(e.since).year()+(t-e.offset)*n}function AA(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;el&&(t=l),FA.call(this,e,t,n,r,i))}function FA(e,t,n,r,i){var l=_m(e,t,n,r,i),o=Hi(l.year,0,l.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}R("Q",0,"Qo","quarter");D("Q",dm);G("Q",function(e,t){t[Ut]=(j(e)-1)*3});function UA(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}R("D",["DD",2],"Do","date");D("D",ne,Qr);D("DD",ne,Ke);D("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});G(["D","DD"],xt);G("Do",function(e,t){t[xt]=j(e.match(ne)[0])});var Hm=Gr("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear");D("DDD",ts);D("DDDD",hm);G(["DDD","DDDD"],function(e,t,n){n._dayOfYear=j(e)});function zA(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}R("m",["mm",2],0,"minute");D("m",ne,fc);D("mm",ne,Ke);G(["m","mm"],dt);var jA=Gr("Minutes",!1);R("s",["ss",2],0,"second");D("s",ne,fc);D("ss",ne,Ke);G(["s","ss"],zt);var WA=Gr("Seconds",!1);R("S",0,0,function(){return~~(this.millisecond()/100)});R(0,["SS",2],0,function(){return~~(this.millisecond()/10)});R(0,["SSS",3],0,"millisecond");R(0,["SSSS",4],0,function(){return this.millisecond()*10});R(0,["SSSSS",5],0,function(){return this.millisecond()*100});R(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});R(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});R(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});R(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});D("S",ts,dm);D("SS",ts,Ke);D("SSS",ts,hm);var fn,Qm;for(fn="SSSS";fn.length<=9;fn+="S")D(fn,Hr);function BA(e,t){t[zn]=j(("0."+e)*1e3)}for(fn="S";fn.length<=9;fn+="S")G(fn,BA);Qm=Gr("Milliseconds",!1);R("z",0,0,"zoneAbbr");R("zz",0,0,"zoneName");function $A(){return this._isUTC?"UTC":""}function VA(){return this._isUTC?"Coordinated Universal Time":""}var k=el.prototype;k.add=LS;k.calendar=$S;k.clone=VS;k.diff=JS;k.endOf=sA;k.format=tA;k.from=nA;k.fromNow=rA;k.to=iA;k.toNow=lA;k.get=ew;k.invalidAt=yA;k.isAfter=HS;k.isBefore=QS;k.isBetween=GS;k.isSame=XS;k.isSameOrAfter=KS;k.isSameOrBefore=ZS;k.isValid=pA;k.lang=zm;k.locale=Um;k.localeData=jm;k.max=pS;k.min=hS;k.parsingFlags=mA;k.set=tw;k.startOf=oA;k.subtract=FS;k.toArray=fA;k.toObject=dA;k.toDate=cA;k.toISOString=bS;k.inspect=eA;typeof Symbol<"u"&&Symbol.for!=null&&(k[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});k.toJSON=hA;k.toString=qS;k.unix=uA;k.valueOf=aA;k.creationData=gA;k.eraName=AA;k.eraNarrow=kA;k.eraAbbr=_A;k.eraYear=xA;k.year=ym;k.isLeapYear=b1;k.weekYear=OA;k.isoWeekYear=RA;k.quarter=k.quarters=UA;k.month=Am;k.daysInMonth=cw;k.week=k.weeks=vw;k.isoWeek=k.isoWeeks=ww;k.weeksInYear=YA;k.weeksInWeekYear=LA;k.isoWeeksInYear=TA;k.isoWeeksInISOWeekYear=IA;k.date=Hm;k.day=k.days=Rw;k.weekday=Tw;k.isoWeekday=Iw;k.dayOfYear=zA;k.hour=k.hours=Ww;k.minute=k.minutes=jA;k.second=k.seconds=WA;k.millisecond=k.milliseconds=Qm;k.utcOffset=_S;k.utc=ES;k.local=CS;k.parseZone=MS;k.hasAlignedHourOffset=DS;k.isDST=NS;k.isLocal=OS;k.isUtcOffset=RS;k.isUtc=Im;k.isUTC=Im;k.zoneAbbr=$A;k.zoneName=VA;k.dates=lt("dates accessor is deprecated. Use date instead.",Hm);k.months=lt("months accessor is deprecated. Use month instead",Am);k.years=lt("years accessor is deprecated. Use year instead",ym);k.zone=lt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",xS);k.isDSTShifted=lt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",PS);function HA(e){return te(e*1e3)}function QA(){return te.apply(null,arguments).parseZone()}function Gm(e){return e}var V=oc.prototype;V.calendar=O1;V.longDateFormat=Y1;V.invalidDate=F1;V.ordinal=j1;V.preparse=Gm;V.postformat=Gm;V.relativeTime=B1;V.pastFuture=$1;V.set=N1;V.eras=vA;V.erasParse=wA;V.erasConvertYear=SA;V.erasAbbrRegex=CA;V.erasNameRegex=EA;V.erasNarrowRegex=MA;V.months=ow;V.monthsShort=sw;V.monthsParse=uw;V.monthsRegex=dw;V.monthsShortRegex=fw;V.week=pw;V.firstDayOfYear=gw;V.firstDayOfWeek=yw;V.weekdays=Mw;V.weekdaysMin=Nw;V.weekdaysShort=Dw;V.weekdaysParse=Ow;V.weekdaysRegex=Yw;V.weekdaysShortRegex=Lw;V.weekdaysMinRegex=Fw;V.isPM=zw;V.meridiem=Bw;function Mo(e,t,n,r){var i=Kt(),l=Dt().set(r,t);return i[n](l,e)}function Xm(e,t,n){if(Gt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Mo(e,r,n,"month");return i}function xc(e,t,n,r){typeof e=="boolean"?(Gt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Gt(t)&&(n=t,t=void 0),t=t||"");var i=Kt(),l=e?i._week.dow:0,o,s=[];if(n!=null)return Mo(t,(n+l)%7,r,"day");for(o=0;o<7;o++)s[o]=Mo(t,(o+l)%7,r,"day");return s}function GA(e,t){return Xm(e,t,"months")}function XA(e,t){return Xm(e,t,"monthsShort")}function KA(e,t,n){return xc(e,t,n,"weekdays")}function ZA(e,t,n){return xc(e,t,n,"weekdaysShort")}function JA(e,t,n){return xc(e,t,n,"weekdaysMin")}An("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=j(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});C.lang=lt("moment.lang is deprecated. Use moment.locale instead.",An);C.langData=lt("moment.langData is deprecated. Use moment.localeData instead.",Kt);var Ot=Math.abs;function qA(){var e=this._data;return this._milliseconds=Ot(this._milliseconds),this._days=Ot(this._days),this._months=Ot(this._months),e.milliseconds=Ot(e.milliseconds),e.seconds=Ot(e.seconds),e.minutes=Ot(e.minutes),e.hours=Ot(e.hours),e.months=Ot(e.months),e.years=Ot(e.years),this}function Km(e,t,n,r){var i=wt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bA(e,t){return Km(this,e,t,1)}function ek(e,t){return Km(this,e,t,-1)}function cd(e){return e<0?Math.floor(e):Math.ceil(e)}function tk(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,l,o,s,a;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=cd(nu(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=qe(e/1e3),r.seconds=i%60,l=qe(i/60),r.minutes=l%60,o=qe(l/60),r.hours=o%24,t+=qe(o/24),a=qe(Zm(t)),n+=a,t-=cd(nu(a)),s=qe(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Zm(e){return e*4800/146097}function nu(e){return e*146097/4800}function nk(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ot(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Zm(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(nu(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Zt(e){return function(){return this.as(e)}}var Jm=Zt("ms"),rk=Zt("s"),ik=Zt("m"),lk=Zt("h"),ok=Zt("d"),sk=Zt("w"),ak=Zt("M"),uk=Zt("Q"),ck=Zt("y"),fk=Jm;function dk(){return wt(this)}function hk(e){return e=ot(e),this.isValid()?this[e+"s"]():NaN}function er(e){return function(){return this.isValid()?this._data[e]:NaN}}var pk=er("milliseconds"),mk=er("seconds"),yk=er("minutes"),gk=er("hours"),vk=er("days"),wk=er("months"),Sk=er("years");function Ak(){return qe(this.days()/7)}var It=Math.round,vr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kk(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function _k(e,t,n,r){var i=wt(e).abs(),l=It(i.as("s")),o=It(i.as("m")),s=It(i.as("h")),a=It(i.as("d")),u=It(i.as("M")),h=It(i.as("w")),f=It(i.as("y")),m=l<=n.ss&&["s",l]||l0,m[4]=r,kk.apply(null,m)}function xk(e){return e===void 0?It:typeof e=="function"?(It=e,!0):!1}function Ek(e,t){return vr[e]===void 0?!1:t===void 0?vr[e]:(vr[e]=t,e==="s"&&(vr.ss=t-1),!0)}function Ck(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=vr,i,l;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},vr,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),l=_k(this,!n,r,i),n&&(l=i.pastFuture(+this,l)),i.postformat(l)}var Qs=Math.abs;function rr(e){return(e>0)-(e<0)||+e}function us(){if(!this.isValid())return this.localeData().invalidDate();var e=Qs(this._milliseconds)/1e3,t=Qs(this._days),n=Qs(this._months),r,i,l,o,s=this.asSeconds(),a,u,h,f;return s?(r=qe(e/60),i=qe(r/60),e%=60,r%=60,l=qe(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",a=s<0?"-":"",u=rr(this._months)!==rr(s)?"-":"",h=rr(this._days)!==rr(s)?"-":"",f=rr(this._milliseconds)!==rr(s)?"-":"",a+"P"+(l?u+l+"Y":"")+(n?u+n+"M":"")+(t?h+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var W=ss.prototype;W.isValid=wS;W.abs=qA;W.add=bA;W.subtract=ek;W.as=nk;W.asMilliseconds=Jm;W.asSeconds=rk;W.asMinutes=ik;W.asHours=lk;W.asDays=ok;W.asWeeks=sk;W.asMonths=ak;W.asQuarters=uk;W.asYears=ck;W.valueOf=fk;W._bubble=tk;W.clone=dk;W.get=hk;W.milliseconds=pk;W.seconds=mk;W.minutes=yk;W.hours=gk;W.days=vk;W.weeks=Ak;W.months=wk;W.years=Sk;W.humanize=Ck;W.toISOString=us;W.toString=us;W.toJSON=us;W.locale=Um;W.localeData=jm;W.toIsoString=lt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us);W.lang=zm;R("X",0,0,"unix");R("x",0,0,"valueOf");D("x",rs);D("X",G1);G("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});G("x",function(e,t,n){n._d=new Date(j(e))});//! moment.js -C.version="2.30.1";M1(te);C.fn=k;C.min=mS;C.max=yS;C.now=gS;C.utc=Dt;C.unix=HA;C.months=GA;C.isDate=bi;C.locale=An;C.invalid=bo;C.duration=wt;C.isMoment=vt;C.weekdays=KA;C.parseZone=QA;C.localeData=Kt;C.isDuration=Vl;C.monthsShort=XA;C.weekdaysMin=JA;C.defineLocale=yc;C.updateLocale=Qw;C.locales=Gw;C.weekdaysShort=ZA;C.normalizeUnits=ot;C.relativeTimeRounding=xk;C.relativeTimeThreshold=Ek;C.calendarFormat=BS;C.prototype=k;C.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Mk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB+SURBVHgB7ZHRCcAgDERjJ3EVR3EyR3GUOkot5MNSvV5poD95IIgP7yARcZyvhNljKWXXa8o5N9bN2ICL/dQeGF86qiD10xZByN0IK6EfqwY1GUaCHF1gVYJ2IPrhMhLG0QUWwILZGBg38s+SrcJPViNCAXQ4KpCHAOQcx5gDXARmFPlZhIoAAAAASUVORK5CYII=";function Dk(){const e=C().format("MMMM DD, YYYY");return I.jsxs(Nk,{children:[I.jsx(Pk,{src:Mk}),I.jsx(Ok,{children:e})]})}const Nk=ge.div` - background-color: ${({theme:e})=>e.colors.gray00}; - width: 100%; - height: 3rem; - display: flex; - align-items:center; - padding: 2rem; -`,Pk=ge.img` - width: 1rem; - height: 1rem; -`,Ok=ge.a` - color: ${({theme:e})=>e.colors.gray03}; - font-size: 1rem; -`,Rk="/assets/profile-AG237wnD.jpg",Tk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgB7ZTLCcAgDEAT6QztVp2iW3WLblWXSNODIP4VRAJ5FyU+jSEQAOmg2xDRzctRcC0iXr2u8YKlCz/7iLuFJ5z5DGP84yfxSJNrYDKaoErU5FxDU7S4fgVvxbWDrnB0VOioEJBAR8V6Pqc0OufLz/unAAAAAElFTkSuQmCC",Ik="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABYSURBVHgB7ZRLCgAgCAUtuv8V6yavllGkJYQgzrYpEz9EbgBQwVM1bpouQfpEGry65XSwZAfuEc7N9JkIILIV+aZDXtw5gya4Tel6IVbFyY1Jtg8Qq8KeDpKNxYfYgTdAAAAAAElFTkSuQmCC",Yk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADESURBVHgB5VPBDcIwDLT7YYPy4s8CbMQWfXeKdgrWYAH+vNoNeIUDJVJUrMSoNg960slS09wlPodo8wghDOAI7qX1hmzQgr1kYmHQgVPJZDUg2sZWXZbtYsXmAUVzqh14jPXOzKfXR6sMfFFqkbt4NQOFQcpoBjv0fsrXrTIQxUunStceaSUaSRylJ91ofmewEH9fm6zgNWqcGVxRDuADvMVaw4xgz6UffveSXV+jpwlLJpRNUq3HNXxkAME0nrpX+fd4AnSNqO8k62CtAAAAAElFTkSuQmCC",Lk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABgSURBVHgB5ZTLCQAgDEODk7j/Uh0lIiiI4EExYvVBj23oJwW+h6SViFBQilMmkoveLdIkzmA1P8AD0j1QvWQeuKB5ozVtG3bTzxQ7eeYalhw74pyTef1XXBWBAqnR3JEAVW9lLIRlJrIAAAAASUVORK5CYII=",Fk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEoSURBVHgBpVQxcsIwENzz0NGbOg/gE0md1HFP2uQBvCI16endkzp9HkANvWqziyVGMBKWzc7c+KTTrU66la3rug0Ao23NbAcPzi/5+RyKEStEMAbbaPxLU+I7bYlrJGMkfMsRHmiLKOZUmfdfE7F5irCK/LWvQNAmKy5uZakYclCFN8cuQi6vGkja0H4wAtUdMl287q2m39BeUIBZhqzhp4mmgr/DFEIidE535Lx/RAFmKMOe3f4rWZgjlP4kjYvG1BwvoSvcdPqYJFQiF+qIT+gFLGLd45C86lxT1NEaBQgvJVSaO/JXYq5I/DnCb/QVBrmsWck/phKGXxWP8dwPy8iyhBHxB0ZCT8/5ahYjcy95tNBAZ4ln9gha87tIxJLKHNPgzmRm2xOJsIRcxGpIKwAAAABJRU5ErkJggg==",Uk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEESURBVHgB3ZTtEYIwDIaD5wC6ASM4giM4AhvYDewIOIGO4Aau4AZ1A7pBDJJyvRL6wfGL5y4HNB9vadMCbAZENGxNMH7O8eUI+Dw4+Y1TRF+JgAkKdmSKTfIVC9RkT35vyQ5ezMRXLACFpPJ2kFfEYM5GJoqIM+ENdWicdtLyJaLPGwqUCOwhjuLnnczy+xcKSAmEfKqqesESZn5fCSukpLyAsSEqP/A/QAQFLvQ4kfXn4UpmKeQY5oW4OtEl4o6p3Wcs1hWc3fBYhwToWJ5UJybQ4ND7jnMqr0jA8xmcOcmrCMRICfh3keWAGsoY87xcK81E43q04lRwuOM7XE6fq2FT/AAnPrYcXERJZgAAAABJRU5ErkJggg==",zk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFVSURBVHgBrVUtU8NAEN1j4upbgUNTg6DoxqOJB0v4E3iii4+vbz3YokFzPjq8DS+dm5u7fDTdmZfN3u29u/3IxQikrusZVAqoniIV8GGM+TUgncN4BRZyHrFAnuBxR9Jv3U2myQq4AlIlbsPXEEqZIIheSDy7GOC8Ad5lpCQdhEuoa+CGdsapvRZHTiEGiXZITvOSOnNcelMWO/ED9d4hLp2xXokRLxyytb6MLWyseAfqDXCrQHq2wAswqN9jxAWwC4zr6Z/lVGKEbYECuIf5STxyeun7a7FZcMsh29UVc5p+V9jAkraDSh4mWrzceW+J03ZxwL/kxpl+fVroGHEROLEu/sKig9fnvih5OBVYfCwcnNb/Q+PaLelzAOFTZGN38yYNNDXPOyWuOLDi7TRErBuVR9pEZvj3eJPxF30Okh+euCmsu5nhhBZKL/yhv6YKJNsuhz8FsH5INd9yTwAAAABJRU5ErkJggg==",jk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFKSURBVHgB3VXtccIwDJV7DMAI7gaMwAZ0g5pJYjZgA9INygYZoRsk3SAbmCcigzAhBIc/8O7eyZFjfVhKRPTqMHERQphDOHBO09CCv8aYhpRxC9bheaglYJqJjy/Qgn/gnqZhBS6ou41tdBCvZY/UPE0AIidxcLT5MfIQp1xTBmZ3DC8hmFaevWyVF0XMcQBjDmKXqAu19jTFgTJWUlcwxkbpRmHIgVVGHS9yGmCoyJXIU3Glx3f83dATHKzBnx69o+vaPO6AuwR0oFHqT5HL9H1uCmmMRlRHea+LbKIu9OEEMSufBNX1t9yvV7ohuJ6AvNo/tfNQF61VBvEAd1SFAKsb30kEO/vHe+VNB7ypovsWnacc9F1Rho1CXZGP+phBK3Ilf8MxaHSWdP51bK4y5eEQ8gbOQtlwfcXXI9NSN3jGjswWkW7p7XEAPy1MH62vfC8AAAAASUVORK5CYII=",Wk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG2SURBVHgBvVUtbAJRDO4jSybwIBfQnIVplkzi8ZtmHo0fmvnzyCWg2SxotknOT0yx9vh6673cX7iMLynlXv9e32v7iP4Zrkh4PB6bzO6YekwdpnuIXpkipjXTzjl3yPNxVeB4BGoa0TV4GxRAP+QgIVXJgJVbzGZwINjqTpkWWHtCRgOmW6xJRlM/G1fgXAzmbLA18mVs5NyowCYVpEFpqOKeaWKd54F1ImQkNnEwHHE6AC+OvV18Z/g7QO4HEd0p5BJklFKQNCV9UJvOBNsG8BFqFppBAL4pKrky4EiFtLyTAEPwN6qPNXjPBmiB76k+tDC68hOXKZ/XF52a6N0oRpzyA1UA20t/2LvrM/2w/U2DLgHZQd0KMr668PUi35rBJ3iP6qMDfrAB9GKGVB86m9Y2wIpJulEaJaAzgbk0wOcuCYBWX0IwsbPEc7DQs82Qic0Mn6E2rK0iCaCzZJYTpE1/PZPlPJ5l9m1IAngDS5pkXqWqcKTPsIngI0GVB2dDpxHyAUeCRzpVnBSF3ln5g+MFkvE99pb74Lbj9f6WWSO+7NFvYYeyU/lvH33JSCpllfN2XAa/7IbOwGt++MoAAAAASUVORK5CYII=",Bk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEkSURBVHgBxZULEcIwDEBzKKiESkDCHCABJMzBsIICcLBDATgoDiYhNJBsoXTruu7g3eUCaZrf1g7gnyCi8VJ7OXtxOEC/Wy8HLxZy4cCNlw7n0eQEt0G1rVSqbFu2nYOubE5w0lWw/iKxx04lEMcbjSmy/pWA7Yb3SBITC95MOgwFuJE1owo8QqRNwcJCaKQco/sokh8YcYFC+KUgavq/YfuedXECz4l1pbPK7LZQiBq308YYLiOoiwWgtQ38AlWBhULwfcr7CUgHd9YVlCPP8aETXFnvoZwd61Nv4VMoN2cFC5k8sHS8ZXa49lURcSi67CDRolOd2FQCfN8/o3tSSQj6qBzU64fsQ7ZW2dLBg0RHnEfHvgZyCSp1QbXUWb0o8Jo8ASVPwqtuGYhyAAAAAElFTkSuQmCC",$k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHRSURBVHgB3VUhVAJBEN3zkTwzdrKXuYydzHXMZp/5zJI98pKv2yUf2S5ZMs6XPzK3nLDPJvPef7sMs3/2z+zuOfffLYkN3G63YxkK/qyTJPEx6y5igoT8VoapICUK+k5a7xdC7HYo2Ajmghv+5elDskzi1jJOmHTZparXQY4yFMaVm/nKzEeE2kDWbiRJbfm6SqSElcAGe1ncAFTiqKYiYEN3SoHYp06ErJJdec43xu9NEqiemoTulIIFx0KJASFJBTmRGnLMx/w5d8cUSHDm9jItyUCG0vjW4nuSxO8B30T8K/G/qiMxJGFzUXPPHT4LrgUN/8NGvk8T1YVrq7DZSPAiqBFMJerP6S+Nr6Qvt+q5tta+wWwPrlQ+8Rc7aLLtASRB5j135HlaGi7MjIqMm2gYG5bopzytt4jXf0QCWMEao8kPbtcH3emjNhlloR/NbTX5wCS4zzrW4XHsOqaqlvFZyNd1D+5UZnC5cB/eCL0XmkibOgnJum7yJce1eaJBpD1p1Zzl0UORxiRYul0PpoEfRxCP3YdrN3QcrD2eABeE0vW5XnAOIjzbfYbiBM3c/juxPLhcLvKLxuaVgXt29LTQor5o5olGeaDKx5Cfh30B26kcl7oBf2sAAAAASUVORK5CYII=",Vk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF3SURBVHgB5VVBTsNADNwgbrnkCVFekRv5AV/IDwgvSDiUa3sHCW4ci/hAxAvyA8qZS/iBscU4tba7TVT11pFG2c567bWduM5dDIjojjmCrTsn2GFNh6iXnL1y8dv2zC0zZ6nC1gPzHusb3qtgNyzOSgwpjgqMoVkSYFBj5sYc7oxNB22EXYPf/ZIAvb0NPzPhzJk1zrzP+XemBKOnp8wSTI2emSxz39+175wft/iZGb3gx4qpjn9Ye0yS5Mvz17L+yfqrC9y89RrWmZs/MT+YK1DWb5qJ6Um82Szu1DEyUb1U50bTIKXN3gSaymu/Ay3JN3gKfqM7gTRb6CnK4Zfo2ZSoDZU3FERGQm8MM+iF6YPWvzDnFC80N0LYIPcDmEwOXlPsjbCv3Bzof/4INjN2mckw+iWHht3UbNqP6KkncChreVNkbx04e/RmDcVReSWkRc0NBJE3akDDxakOPdH1v6FHsC3WjTsVFB7RtTsncPsdetK5i8EfR6fliPFRP5sAAAAASUVORK5CYII=",Hk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD8SURBVHgBrZRdDoIwEISnROVNewRupjcRbsAN5AjeSDyB9ckAiXW3BEMI/VnjJE0h2XydbtsB/iwlKX5pFBlwWgDaLXBVBgZSdRplf4BdGTeroblmIwG+gSZb7ElZHGkqutF5HYVMK8dc88z/Wax4sHgMe5yRqCCQducabRWBE6FB4M6gJlglgWaxgtyglEDdKfeaTsji4q2ys0+CUv2d3Df4xaFUDsir7Z5QvkF3rZw5rHzuvsCQuGe8zQnGPUXMoU/cWwksCqSzKCQwVvAtuyuj0VCStEhUNBzmsNX4GsPBxVgScC6GEWDtYrtMFAPX4ov6bHK4tsgDNkUf4+xvPVIYPRQAAAAASUVORK5CYII=";function Qk(){const e=[{name:"홈",imageSrc:Tk,imageSrcWhite:Ik,page:"/"},{name:"수입/지출 내역",imageSrc:Yk,imageSrcWhite:Lk,page:"/transactions"},{name:"결제예정",imageSrc:Fk,imageSrcWhite:Uk,page:"/scheduledpayments"},{name:"비용",imageSrc:zk,imageSrcWhite:jk,page:"/expenses"},{name:"목표",imageSrc:Wk,imageSrcWhite:Bk,page:"/goals"},{name:"설정",imageSrc:$k,imageSrcWhite:Vk,page:"/settings"}],t=iv(),n=i=>{t(i)},r=()=>{window.confirm("로그아웃 하시겠습니까?")&&(t("/login"),localStorage.removeItem("token"))};return I.jsxs(Gk,{children:[I.jsx(Xk,{children:"WealthTracker"}),I.jsx(Kk,{}),I.jsxs(Zk,{children:[I.jsx(Jk,{src:Rk}),I.jsx(qk,{children:"홍길동"})]}),e.map((i,l)=>I.jsxs(bm,{onClick:()=>n(i.page),children:[I.jsx(bk,{src:i.imageSrc,"data-white-src":i.imageSrcWhite,alt:`${i.imageSrc} icon`}),I.jsx(qm,{children:i.name})]},l)),I.jsxs(t_,{children:[I.jsx(n_,{src:Hk}),I.jsx(e_,{onClick:r,children:"로그아웃"})]})]})}const Gk=ge.div` - width: 15rem; - min-height: 100vh; - background-color: ${({theme:e})=>e.colors.black02}; - display: flex; - flex-direction: column; - align-items: center; - padding: 0 2rem; - gap: 1rem; -`,Xk=ge.h1` - color: ${({theme:e})=>e.colors.white}; - align-items: center; - font-size: 2rem; - font-weight: 800; - padding: 2rem 0; -`,Kk=ge.hr` - background-color: ${({theme:e})=>e.colors.gray05}; - width: 100%; - height: 2px; - border: 0; -`,Zk=ge.div` - display: flex; - gap: 2rem; - align-items: flex-start; - width: 100%; - margin-top: 2rem; - margin-bottom: 3rem; -`,Jk=ge.img` - width: 2rem; - height: 2rem; - border-radius: 50%; -`,qk=ge.a` - align-self: center; - font-size: 1rem; - color: ${({theme:e})=>e.colors.white}; -`,qm=ge.a` - color: ${({theme:e})=>e.colors.gray01}; - font-weight: 700; - transition: color 0.3s; -`,bm=ge.div` - cursor: pointer; - display: flex; - gap: 1rem; - width: 100%; - padding: 1rem 0.5rem; - transition: all 0.3s; - &:hover { - background-color: ${({theme:e})=>e.colors.blue}; - border-radius: 4px; - } - &:hover ${qm} { - color: ${({theme:e})=>e.colors.white}; - } -`,bk=ge.img` - width: 1rem; - height: 1rem; - - /* hover일 때 이미지 변경 */ - ${bm}:hover& { - content: url(${({"data-white-src":e})=>e}); - } -`,e_=ge.a` - color: ${({theme:e})=>e.colors.red}; - font-weight: 700; - transition: color 0.3s; -`,t_=ge.div` - cursor: pointer; - background-color: ${({theme:e})=>e.colors.gray05}; - display: flex; - gap: 1rem; - width: 100%; - padding: 1rem 0.5rem; - border-radius: 4px; - margin-top: 15vh; -`,n_=ge.img` - width: 1rem; - height: 1rem; -`;function Ec({children:e}){return I.jsxs(r_,{children:[I.jsx(Qk,{}),I.jsxs(i_,{children:[I.jsx(Dk,{}),I.jsx(l_,{children:e})]})]})}const r_=ge.div` - display: flex; -`,i_=ge.div` - display: flex; - flex-direction: column; - width: 100%; -`,l_=ge.div` - display: flex; - flex-direction: column; -`;function o_(){return I.jsx(Ec,{children:I.jsx("h1",{children:"Example"})})}function s_(){return I.jsx(I.Fragment,{})}function a_(){return I.jsx(Ec,{children:I.jsx("h1",{children:"Example"})})}function u_(){return I.jsx(I.Fragment,{})}function c_(){return I.jsx(I.Fragment,{})}function f_(){return I.jsx(I.Fragment,{})}function d_(){return I.jsx(Av,{children:I.jsxs(en,{element:I.jsx(Ec,{}),children:[I.jsx(en,{path:"/",element:I.jsx(o_,{})}),I.jsx(en,{path:"/transactions",element:I.jsx(s_,{})}),I.jsx(en,{path:"/scheduledpayments",element:I.jsx(a_,{})}),I.jsx(en,{path:"/expenses",element:I.jsx(u_,{})}),I.jsx(en,{path:"/goals",element:I.jsx(c_,{})}),I.jsx(en,{path:"/settings",element:I.jsx(f_,{})})]})})}const h_=C1` -*{ - margin: 0; -}`,p_={colors:{black:"#191919",blue:"#007BFF",red:"#E92C2C",white:"#FFFFFF",black01:"#525256",black02:"#191919",gray00:"#E8E8E8",gray01:"#FFFFFFB2",gray02:"#D1D1D1",gray03:"#9F9F9F",gray04:"#919EAB",gray05:"#2b2b2b"}};_p(document.getElementById("root")).render(I.jsx(_1,{theme:p_,children:I.jsxs(xv,{children:[I.jsx(h_,{}),I.jsx(d_,{})]})}))});export default m_(); diff --git a/dist/assets/index-Dv25OY3F.js b/dist/assets/index-Dv25OY3F.js new file mode 100644 index 0000000..0433fe0 --- /dev/null +++ b/dist/assets/index-Dv25OY3F.js @@ -0,0 +1,1998 @@ +var $F=Object.defineProperty;var JC=e=>{throw TypeError(e)};var PF=(e,t,n)=>t in e?$F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var TF=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ff=(e,t,n)=>PF(e,typeof t!="symbol"?t+"":t,n),B1=(e,t,n)=>t.has(e)||JC("Cannot "+n);var L=(e,t,n)=>(B1(e,t,"read from private field"),n?n.call(e):t.get(e)),be=(e,t,n)=>t.has(e)?JC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n,r)=>(B1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Pe=(e,t,n)=>(B1(e,t,"access private method"),n);var pm=(e,t,n,r)=>({set _(i){ae(e,t,i,n)},get _(){return L(e,t,r)}});var XRe=TF((JRe,Wg)=>{function EF(e,t){for(var n=0;nr[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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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)}})();var mm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uj={exports:{}},L0={},cj={exports:{}},je={};/** + * @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 Mp=Symbol.for("react.element"),MF=Symbol.for("react.portal"),jF=Symbol.for("react.fragment"),RF=Symbol.for("react.strict_mode"),IF=Symbol.for("react.profiler"),DF=Symbol.for("react.provider"),NF=Symbol.for("react.context"),LF=Symbol.for("react.forward_ref"),BF=Symbol.for("react.suspense"),FF=Symbol.for("react.memo"),UF=Symbol.for("react.lazy"),e$=Symbol.iterator;function zF(e){return e===null||typeof e!="object"?null:(e=e$&&e[e$]||e["@@iterator"],typeof e=="function"?e:null)}var fj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dj=Object.assign,hj={};function nf(e,t,n){this.props=e,this.context=t,this.refs=hj,this.updater=n||fj}nf.prototype.isReactComponent={};nf.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")};nf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pj(){}pj.prototype=nf.prototype;function s_(e,t,n){this.props=e,this.context=t,this.refs=hj,this.updater=n||fj}var l_=s_.prototype=new pj;l_.constructor=s_;dj(l_,nf.prototype);l_.isPureReactComponent=!0;var t$=Array.isArray,mj=Object.prototype.hasOwnProperty,u_={current:null},gj={key:!0,ref:!0,__self:!0,__source:!0};function yj(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)mj.call(t,r)&&!gj.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,Y=j[X];if(0>>1;Xi(re,z))nei(fe,re)?(j[X]=fe,j[ne]=z,X=ne):(j[X]=re,j[Q]=z,X=Q);else if(nei(fe,z))j[X]=fe,j[ne]=z,X=ne;else break e}}return N}function i(j,N){var z=j.sortIndex-N.sortIndex;return z!==0?z:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,c=null,d=3,h=!1,p=!1,m=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(j){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=j)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function A(j){if(m=!1,b(j),!p)if(n(l)!==null)p=!0,I(w);else{var N=n(u);N!==null&&B(A,N.startTime-j)}}function w(j,N){p=!1,m&&(m=!1,y(C),C=-1),h=!0;var z=d;try{for(b(N),c=n(l);c!==null&&(!(c.expirationTime>N)||j&&!$());){var X=c.callback;if(typeof X=="function"){c.callback=null,d=c.priorityLevel;var Y=X(c.expirationTime<=N);N=e.unstable_now(),typeof Y=="function"?c.callback=Y:c===n(l)&&r(l),b(N)}else r(l);c=n(l)}if(c!==null)var K=!0;else{var Q=n(u);Q!==null&&B(A,Q.startTime-N),K=!1}return K}finally{c=null,d=z,h=!1}}var S=!1,_=null,C=-1,P=5,O=-1;function $(){return!(e.unstable_now()-Oj||125X?(j.sortIndex=z,t(u,j),n(l)===null&&j===n(u)&&(m?(y(C),C=-1):m=!0,B(A,z-X))):(j.sortIndex=Y,t(l,j),p||h||(p=!0,I(w))),j},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(j){var N=d;return function(){var z=d;d=N;try{return j.apply(this,arguments)}finally{d=z}}}})(Sj);wj.exports=Sj;var JF=wj.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 eU=k,Lr=JF;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Aw=Object.prototype.hasOwnProperty,tU=/^[: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]*$/,r$={},i$={};function nU(e){return Aw.call(i$,e)?!0:Aw.call(r$,e)?!1:tU.test(e)?i$[e]=!0:(r$[e]=!0,!1)}function rU(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 iU(e,t,n,r){if(t===null||typeof t>"u"||rU(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 nr(e,t,n,r,i,o,a){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=a}var In={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){In[e]=new nr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];In[t]=new nr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){In[e]=new nr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){In[e]=new nr(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){In[e]=new nr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){In[e]=new nr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){In[e]=new nr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){In[e]=new nr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){In[e]=new nr(e,5,!1,e.toLowerCase(),null,!1,!1)});var f_=/[\-:]([a-z])/g;function d_(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(f_,d_);In[t]=new nr(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(f_,d_);In[t]=new nr(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(f_,d_);In[t]=new nr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){In[e]=new nr(e,1,!1,e.toLowerCase(),null,!1,!1)});In.xlinkHref=new nr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){In[e]=new nr(e,1,!1,e.toLowerCase(),null,!0,!0)});function h_(e,t,n,r){var i=In.hasOwnProperty(t)?In[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{z1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wd(e):""}function oU(e){switch(e.tag){case 5:return wd(e.type);case 16:return wd("Lazy");case 13:return wd("Suspense");case 19:return wd("SuspenseList");case 0:case 2:case 15:return e=W1(e.type,!1),e;case 11:return e=W1(e.type.render,!1),e;case 1:return e=W1(e.type,!0),e;default:return""}}function Cw(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 xu:return"Fragment";case bu:return"Portal";case _w:return"Profiler";case p_:return"StrictMode";case Ow:return"Suspense";case kw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oj:return(e.displayName||"Context")+".Consumer";case _j:return(e._context.displayName||"Context")+".Provider";case m_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case g_:return t=e.displayName||null,t!==null?t:Cw(e.type)||"Memo";case Ea:t=e._payload,e=e._init;try{return Cw(e(t))}catch{}}return null}function aU(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 Cw(t);case 8:return t===p_?"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 ms(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sU(e){var t=Cj(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vm(e){e._valueTracker||(e._valueTracker=sU(e))}function $j(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cj(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yg(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 $w(e,t){var n=t.checked;return zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function a$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ms(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 Pj(e,t){t=t.checked,t!=null&&h_(e,"checked",t,!1)}function Pw(e,t){Pj(e,t);var n=ms(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")?Tw(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tw(e,t.type,ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function s$(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 Tw(e,t,n){(t!=="number"||Yg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sd=Array.isArray;function Nu(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=bm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Id={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},lU=["Webkit","ms","Moz","O"];Object.keys(Id).forEach(function(e){lU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Id[t]=Id[e]})});function jj(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Id.hasOwnProperty(e)&&Id[e]?(""+t).trim():t+"px"}function Rj(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=jj(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uU=zt({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 jw(e,t){if(t){if(uU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function Rw(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 Iw=null;function y_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dw=null,Lu=null,Bu=null;function c$(e){if(e=Ip(e)){if(typeof Dw!="function")throw Error(J(280));var t=e.stateNode;t&&(t=W0(t),Dw(e.stateNode,e.type,t))}}function Ij(e){Lu?Bu?Bu.push(e):Bu=[e]:Lu=e}function Dj(){if(Lu){var e=Lu,t=Bu;if(Bu=Lu=null,c$(e),t)for(e=0;e>>=0,e===0?32:31-(xU(e)/wU|0)|0}var xm=64,wm=4194304;function Ad(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 qg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Ad(s):(o&=a,o!==0&&(r=Ad(o)))}else a=n&~i,a!==0?r=Ad(a):o!==0&&(r=Ad(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;0n;n++)t.push(e);return t}function jp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Di(t),e[t]=n}function OU(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=Nd),b$=" ",x$=!1;function n6(e,t){switch(e){case"keyup":return JU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r6(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wu=!1;function tz(e,t){switch(e){case"compositionend":return r6(t);case"keypress":return t.which!==32?null:(x$=!0,b$);case"textInput":return e=t.data,e===b$&&x$?null:e;default:return null}}function nz(e,t){if(wu)return e==="compositionend"||!O_&&n6(e,t)?(e=e6(),pg=S_=Ga=null,wu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_$(n)}}function s6(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?s6(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function l6(){for(var e=window,t=Yg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yg(e.document)}return t}function k_(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 fz(e){var t=l6(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&s6(n.ownerDocument.documentElement,n)){if(r!==null&&k_(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=O$(n,o);var a=O$(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Su=null,zw=null,Bd=null,Ww=!1;function k$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ww||Su==null||Su!==Yg(r)||(r=Su,"selectionStart"in r&&k_(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}),Bd&&uh(Bd,r)||(Bd=r,r=Qg(zw,"onSelect"),0Ou||(e.current=Kw[Ou],Kw[Ou]=null,Ou--)}function bt(e,t){Ou++,Kw[Ou]=e.current,e.current=t}var gs={},Gn=_s(gs),vr=_s(!1),xl=gs;function vc(e,t){var n=e.type.contextTypes;if(!n)return gs;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 br(e){return e=e.childContextTypes,e!=null}function Jg(){$t(vr),$t(Gn)}function j$(e,t,n){if(Gn.current!==gs)throw Error(J(168));bt(Gn,t),bt(vr,n)}function y6(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(J(108,aU(e)||"Unknown",i));return zt({},n,r)}function ey(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,xl=Gn.current,bt(Gn,e),bt(vr,vr.current),!0}function R$(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=y6(e,t,xl),r.__reactInternalMemoizedMergedChildContext=e,$t(vr),$t(Gn),bt(Gn,e)):$t(vr),bt(vr,n)}var Ko=null,Y0=!1,rx=!1;function v6(e){Ko===null?Ko=[e]:Ko.push(e)}function Az(e){Y0=!0,v6(e)}function Os(){if(!rx&&Ko!==null){rx=!0;var e=0,t=rt;try{var n=Ko;for(rt=1;e>=a,i-=a,Qo=1<<32-Di(t)+i|n<C?(P=_,_=null):P=_.sibling;var O=d(y,_,b[C],A);if(O===null){_===null&&(_=P);break}e&&_&&O.alternate===null&&t(y,_),v=o(O,v,C),S===null?w=O:S.sibling=O,S=O,_=P}if(C===b.length)return n(y,_),Dt&&Ns(y,C),w;if(_===null){for(;CC?(P=_,_=null):P=_.sibling;var $=d(y,_,O.value,A);if($===null){_===null&&(_=P);break}e&&_&&$.alternate===null&&t(y,_),v=o($,v,C),S===null?w=$:S.sibling=$,S=$,_=P}if(O.done)return n(y,_),Dt&&Ns(y,C),w;if(_===null){for(;!O.done;C++,O=b.next())O=c(y,O.value,A),O!==null&&(v=o(O,v,C),S===null?w=O:S.sibling=O,S=O);return Dt&&Ns(y,C),w}for(_=r(y,_);!O.done;C++,O=b.next())O=h(_,y,C,O.value,A),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?C:O.key),v=o(O,v,C),S===null?w=O:S.sibling=O,S=O);return e&&_.forEach(function(E){return t(y,E)}),Dt&&Ns(y,C),w}function g(y,v,b,A){if(typeof b=="object"&&b!==null&&b.type===xu&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ym:e:{for(var w=b.key,S=v;S!==null;){if(S.key===w){if(w=b.type,w===xu){if(S.tag===7){n(y,S.sibling),v=i(S,b.props.children),v.return=y,y=v;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ea&&N$(w)===S.type){n(y,S.sibling),v=i(S,b.props),v.ref=Hf(y,S,b),v.return=y,y=v;break e}n(y,S);break}else t(y,S);S=S.sibling}b.type===xu?(v=fl(b.props.children,y.mode,A,b.key),v.return=y,y=v):(A=Sg(b.type,b.key,b.props,null,y.mode,A),A.ref=Hf(y,v,b),A.return=y,y=A)}return a(y);case bu:e:{for(S=b.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(y,v.sibling),v=i(v,b.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=fx(b,y.mode,A),v.return=y,y=v}return a(y);case Ea:return S=b._init,g(y,v,S(b._payload),A)}if(Sd(b))return p(y,v,b,A);if(Uf(b))return m(y,v,b,A);$m(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,b),v.return=y,y=v):(n(y,v),v=cx(b,y.mode,A),v.return=y,y=v),a(y)):n(y,v)}return g}var xc=S6(!0),A6=S6(!1),ry=_s(null),iy=null,$u=null,T_=null;function E_(){T_=$u=iy=null}function M_(e){var t=ry.current;$t(ry),e._currentValue=t}function Zw(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 Uu(e,t){iy=e,T_=$u=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gr=!0),e.firstContext=null)}function ci(e){var t=e._currentValue;if(T_!==e)if(e={context:e,memoizedValue:t,next:null},$u===null){if(iy===null)throw Error(J(308));$u=e,iy.dependencies={lanes:0,firstContext:e}}else $u=$u.next=e;return t}var Gs=null;function j_(e){Gs===null?Gs=[e]:Gs.push(e)}function _6(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,j_(t)):(n.next=i.next,i.next=n),t.interleaved=n,fa(e,r)}function fa(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 Ma=!1;function R_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function O6(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 ia(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function os(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,fa(e,n)}return i=r.interleaved,i===null?(t.next=t,j_(r)):(t.next=i.next,i.next=t),r.interleaved=t,fa(e,n)}function gg(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,b_(e,n)}}function L$(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,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 oy(e,t,n,r){var i=e.updateQueue;Ma=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;a=0,f=u=l=null,s=o;do{var d=s.lane,h=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(d=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){c=p.call(h,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(h,c,d):p,d==null)break e;c=zt({},c,d);break e;case 2:Ma=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Al|=a,e.lanes=a,e.memoizedState=c}}function B$(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ox.transition;ox.transition={};try{e(!1),t()}finally{rt=n,ox.transition=r}}function z6(){return fi().memoizedState}function Cz(e,t,n){var r=ss(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},W6(e))Y6(t,n);else if(n=_6(e,t,n,r),n!==null){var i=er();Ni(n,e,r,i),V6(n,t,r)}}function $z(e,t,n){var r=ss(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(W6(e))Y6(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Fi(s,a)){var l=t.interleaved;l===null?(i.next=i,j_(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=_6(e,t,i,r),n!==null&&(i=er(),Ni(n,e,r,i),V6(n,t,r))}}function W6(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function Y6(e,t){Fd=sy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function V6(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,b_(e,n)}}var ly={readContext:ci,useCallback:Bn,useContext:Bn,useEffect:Bn,useImperativeHandle:Bn,useInsertionEffect:Bn,useLayoutEffect:Bn,useMemo:Bn,useReducer:Bn,useRef:Bn,useState:Bn,useDebugValue:Bn,useDeferredValue:Bn,useTransition:Bn,useMutableSource:Bn,useSyncExternalStore:Bn,useId:Bn,unstable_isNewReconciler:!1},Pz={readContext:ci,useCallback:function(e,t){return ro().memoizedState=[e,t===void 0?null:t],e},useContext:ci,useEffect:U$,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vg(4194308,4,N6.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vg(4194308,4,e,t)},useInsertionEffect:function(e,t){return vg(4,2,e,t)},useMemo:function(e,t){var n=ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ro();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=Cz.bind(null,Ut,e),[r.memoizedState,e]},useRef:function(e){var t=ro();return e={current:e},t.memoizedState=e},useState:F$,useDebugValue:z_,useDeferredValue:function(e){return ro().memoizedState=e},useTransition:function(){var e=F$(!1),t=e[0];return e=kz.bind(null,e[1]),ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ut,i=ro();if(Dt){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),_n===null)throw Error(J(349));Sl&30||P6(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,U$(E6.bind(null,r,o,e),[e]),r.flags|=2048,yh(9,T6.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ro(),t=_n.identifierPrefix;if(Dt){var n=Zo,r=Qo;n=(r&~(1<<32-Di(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ho]=t,e[dh]=r,t8(e,t,!1,!1),t.stateNode=e;e:{switch(a=Rw(n,r),n){case"dialog":At("cancel",e),At("close",e),i=r;break;case"iframe":case"object":case"embed":At("load",e),i=r;break;case"video":case"audio":for(i=0;i<_d.length;i++)At(_d[i],e);i=r;break;case"source":At("error",e),i=r;break;case"img":case"image":case"link":At("error",e),At("load",e),i=r;break;case"details":At("toggle",e),i=r;break;case"input":a$(e,r),i=$w(e,r),At("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=zt({},r,{value:void 0}),At("invalid",e);break;case"textarea":l$(e,r),i=Ew(e,r),At("invalid",e);break;default:i=r}jw(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?Rj(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Mj(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&rh(e,l):typeof l=="number"&&rh(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(nh.hasOwnProperty(o)?l!=null&&o==="onScroll"&&At("scroll",e):l!=null&&h_(e,o,l,a))}switch(n){case"input":vm(e),s$(e,r,!1);break;case"textarea":vm(e),u$(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ms(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Nu(e,!!r.multiple,o,!1):r.defaultValue!=null&&Nu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Zg)}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 Fn(t),null;case 6:if(e&&t.stateNode!=null)r8(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(J(166));if(n=qs(ph.current),qs(vo.current),Cm(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(o=r.nodeValue!==n)&&(e=Rr,e!==null))switch(e.tag){case 3:km(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&km(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ho]=t,t.stateNode=r}return Fn(t),null;case 13:if($t(Ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dt&&jr!==null&&t.mode&1&&!(t.flags&128))w6(),bc(),t.flags|=98560,o=!1;else if(o=Cm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(J(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(J(317));o[ho]=t}else bc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fn(t),o=!1}else Pi!==null&&(pS(Pi),Pi=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||Ft.current&1?pn===0&&(pn=3):K_())),t.updateQueue!==null&&(t.flags|=4),Fn(t),null);case 4:return wc(),aS(e,t),e===null&&ch(t.stateNode.containerInfo),Fn(t),null;case 10:return M_(t.type._context),Fn(t),null;case 17:return br(t.type)&&Jg(),Fn(t),null;case 19:if($t(Ft),o=t.memoizedState,o===null)return Fn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Gf(o,!1);else{if(pn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ay(e),a!==null){for(t.flags|=128,Gf(o,!1),r=a.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,a=o.alternate,a===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=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return bt(Ft,Ft.current&1|2),t.child}e=e.sibling}o.tail!==null&&Jt()>Ac&&(t.flags|=128,r=!0,Gf(o,!1),t.lanes=4194304)}else{if(!r)if(e=ay(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Dt)return Fn(t),null}else 2*Jt()-o.renderingStartTime>Ac&&n!==1073741824&&(t.flags|=128,r=!0,Gf(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Jt(),t.sibling=null,n=Ft.current,bt(Ft,r?n&1|2:n&1),t):(Fn(t),null);case 22:case 23:return q_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pr&1073741824&&(Fn(t),t.subtreeFlags&6&&(t.flags|=8192)):Fn(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function Nz(e,t){switch($_(t),t.tag){case 1:return br(t.type)&&Jg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wc(),$t(vr),$t(Gn),N_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return D_(t),null;case 13:if($t(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(Ft),null;case 4:return wc(),null;case 10:return M_(t.type._context),null;case 22:case 23:return q_(),null;case 24:return null;default:return null}}var Tm=!1,Wn=!1,Lz=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function sS(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var Z$=!1;function Bz(e,t){if(Yw=Kg,e=l6(),k_(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 a=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(s=a+i),c!==o||r!==0&&c.nodeType!==3||(l=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++f===r&&(l=a),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vw={focusedElem:e,selectionRange:n},Kg=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ki(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(A){Gt(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return p=Z$,Z$=!1,p}function Ud(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&&sS(t,n,o)}i=i.next}while(i!==r)}}function G0(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 lS(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 i8(e){var t=e.alternate;t!==null&&(e.alternate=null,i8(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ho],delete t[dh],delete t[qw],delete t[wz],delete t[Sz])),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 o8(e){return e.tag===5||e.tag===3||e.tag===4}function J$(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||o8(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 uS(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=Zg));else if(r!==4&&(e=e.child,e!==null))for(uS(e,t,n),e=e.sibling;e!==null;)uS(e,t,n),e=e.sibling}function cS(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(cS(e,t,n),e=e.sibling;e!==null;)cS(e,t,n),e=e.sibling}var En=null,$i=!1;function Ca(e,t,n){for(n=n.child;n!==null;)a8(e,t,n),n=n.sibling}function a8(e,t,n){if(yo&&typeof yo.onCommitFiberUnmount=="function")try{yo.onCommitFiberUnmount(B0,n)}catch{}switch(n.tag){case 5:Wn||Pu(n,t);case 6:var r=En,i=$i;En=null,Ca(e,t,n),En=r,$i=i,En!==null&&($i?(e=En,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):En.removeChild(n.stateNode));break;case 18:En!==null&&($i?(e=En,n=n.stateNode,e.nodeType===8?nx(e.parentNode,n):e.nodeType===1&&nx(e,n),sh(e)):nx(En,n.stateNode));break;case 4:r=En,i=$i,En=n.stateNode.containerInfo,$i=!0,Ca(e,t,n),En=r,$i=i;break;case 0:case 11:case 14:case 15:if(!Wn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&sS(n,t,a),i=i.next}while(i!==r)}Ca(e,t,n);break;case 1:if(!Wn&&(Pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Gt(n,t,s)}Ca(e,t,n);break;case 21:Ca(e,t,n);break;case 22:n.mode&1?(Wn=(r=Wn)||n.memoizedState!==null,Ca(e,t,n),Wn=r):Ca(e,t,n);break;default:Ca(e,t,n)}}function eP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lz),t.forEach(function(r){var i=qz.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ai(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Jt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uz(r/1960))-r,10e?16:e,qa===null)var r=!1;else{if(e=qa,qa=null,fy=0,ze&6)throw Error(J(331));var i=ze;for(ze|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lJt()-H_?cl(e,0):V_|=n),xr(e,t)}function p8(e,t){t===0&&(e.mode&1?(t=wm,wm<<=1,!(wm&130023424)&&(wm=4194304)):t=1);var n=er();e=fa(e,t),e!==null&&(jp(e,t,n),xr(e,n))}function Gz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),p8(e,n)}function qz(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(J(314))}r!==null&&r.delete(t),p8(e,n)}var m8;m8=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,Iz(e,t,n);gr=!!(e.flags&131072)}else gr=!1,Dt&&t.flags&1048576&&b6(t,ny,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bg(e,t),e=t.pendingProps;var i=vc(t,Gn.current);Uu(t,n),i=B_(null,t,r,e,i,n);var o=F_();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,br(r)?(o=!0,ey(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,R_(t),i.updater=H0,t.stateNode=i,i._reactInternals=t,eS(t,r,e,n),t=rS(null,t,r,!0,o,n)):(t.tag=0,Dt&&o&&C_(t),Qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Xz(r),e=ki(r,e),i){case 0:t=nS(null,t,r,e,n);break e;case 1:t=K$(null,t,r,e,n);break e;case 11:t=G$(null,t,r,e,n);break e;case 14:t=q$(null,t,r,ki(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ki(r,i),nS(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ki(r,i),K$(e,t,r,i,n);case 3:e:{if(Z6(t),e===null)throw Error(J(387));r=t.pendingProps,o=t.memoizedState,i=o.element,O6(e,t),oy(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Sc(Error(J(423)),t),t=X$(e,t,r,n,i);break e}else if(r!==i){i=Sc(Error(J(424)),t),t=X$(e,t,r,n,i);break e}else for(jr=is(t.stateNode.containerInfo.firstChild),Rr=t,Dt=!0,Pi=null,n=A6(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bc(),r===i){t=da(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return k6(t),e===null&&Qw(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Hw(r,i)?a=null:o!==null&&Hw(r,o)&&(t.flags|=32),Q6(e,t),Qn(e,t,a,n),t.child;case 6:return e===null&&Qw(t),null;case 13:return J6(e,t,n);case 4:return I_(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xc(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ki(r,i),G$(e,t,r,i,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,bt(ry,r._currentValue),r._currentValue=a,o!==null)if(Fi(o.value,a)){if(o.children===i.children&&!vr.current){t=da(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ia(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Zw(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(J(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Zw(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Qn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Uu(t,n),i=ci(i),r=r(i),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,i=ki(r,t.pendingProps),i=ki(r.type,i),q$(e,t,r,i,n);case 15:return K6(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ki(r,i),bg(e,t),t.tag=1,br(r)?(e=!0,ey(t)):e=!1,Uu(t,n),H6(t,r,i),eS(t,r,i,n),rS(null,t,r,!0,e,n);case 19:return e8(e,t,n);case 22:return X6(e,t,n)}throw Error(J(156,t.tag))};function g8(e,t){return Wj(e,t)}function Kz(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 oi(e,t,n,r){return new Kz(e,t,n,r)}function X_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xz(e){if(typeof e=="function")return X_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===m_)return 11;if(e===g_)return 14}return 2}function ls(e,t){var n=e.alternate;return n===null?(n=oi(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 Sg(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")X_(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case xu:return fl(n.children,i,o,t);case p_:a=8,i|=8;break;case _w:return e=oi(12,n,t,i|2),e.elementType=_w,e.lanes=o,e;case Ow:return e=oi(13,n,t,i),e.elementType=Ow,e.lanes=o,e;case kw:return e=oi(19,n,t,i),e.elementType=kw,e.lanes=o,e;case kj:return K0(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _j:a=10;break e;case Oj:a=9;break e;case m_:a=11;break e;case g_:a=14;break e;case Ea:a=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=oi(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function fl(e,t,n,r){return e=oi(7,e,r,t),e.lanes=n,e}function K0(e,t,n,r){return e=oi(22,e,r,t),e.elementType=kj,e.lanes=n,e.stateNode={isHidden:!1},e}function cx(e,t,n){return e=oi(6,e,null,t),e.lanes=n,e}function fx(e,t,n){return t=oi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qz(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=V1(0),this.expirationTimes=V1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=V1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Q_(e,t,n,r,i,o,a,s,l){return e=new Qz(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=oi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},R_(o),e}function Zz(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x8)}catch(e){console.error(e)}}x8(),xj.exports=Br;var _c=xj.exports;const jm=Ne(_c);var w8,lP=_c;w8=lP.createRoot,lP.hydrateRoot;/** + * @remix-run/router v1.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function S8(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iW(){return Math.random().toString(36).substr(2,8)}function cP(e,t){return{usr:e.state,key:e.key,idx:t}}function mS(e,t,n,r){return n===void 0&&(n=null),bh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?af(t):t,{state:n,key:t&&t.key||r||iW()})}function py(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 af(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 oW(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ka.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(bh({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){s=Ka.Pop;let g=f(),y=g==null?null:g-u;u=g,l&&l({action:s,location:m.location,delta:y})}function d(g,y){s=Ka.Push;let v=mS(m.location,g,y);u=f()+1;let b=cP(v,u),A=m.createHref(v);try{a.pushState(b,"",A)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(A)}o&&l&&l({action:s,location:m.location,delta:1})}function h(g,y){s=Ka.Replace;let v=mS(m.location,g,y);u=f();let b=cP(v,u),A=m.createHref(v);a.replaceState(b,"",A),o&&l&&l({action:s,location:m.location,delta:0})}function p(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof g=="string"?g:py(g);return v=v.replace(/ $/,"%20"),an(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let m={get action(){return s},get location(){return e(i,a)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(uP,c),l=g,()=>{i.removeEventListener(uP,c),l=null}},createHref(g){return t(i,g)},createURL:p,encodeLocation(g){let y=p(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(g){return a.go(g)}};return m}var fP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fP||(fP={}));function aW(e,t,n){return n===void 0&&(n="/"),sW(e,t,n,!1)}function sW(e,t,n,r){let i=typeof t=="string"?af(t):t,o=tO(i.pathname||"/",n);if(o==null)return null;let a=A8(e);lW(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(an(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=us([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(an(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),A8(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:mW(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of _8(o.path))i(o,a,l)}),t}function _8(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 a=_8(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function lW(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gW(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uW=/^:[\w-]+$/,cW=3,fW=2,dW=1,hW=10,pW=-2,dP=e=>e==="*";function mW(e,t){let n=e.split("/"),r=n.length;return n.some(dP)&&(r+=pW),t&&(r+=fW),n.filter(i=>!dP(i)).reduce((i,o)=>i+(uW.test(o)?cW:o===""?dW:hW),r)}function gW(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 yW(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:d,isOptional:h}=f;if(d==="*"){let m=s[c]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[c];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function vW(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),S8(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function bW(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return S8(!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 tO(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function xW(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?af(e):e;return{pathname:n?n.startsWith("/")?n:wW(n,t):t,search:_W(r),hash:OW(i)}}function wW(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 dx(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function SW(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function O8(e,t){let n=SW(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function k8(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=af(e):(i=bh({},e),an(!i.pathname||!i.pathname.includes("?"),dx("?","pathname","search",i)),an(!i.pathname||!i.pathname.includes("#"),dx("#","pathname","hash",i)),an(!i.search||!i.search.includes("#"),dx("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=xW(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const us=e=>e.join("/").replace(/\/\/+/g,"/"),AW=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_W=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,OW=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kW(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const C8=["post","put","patch","delete"];new Set(C8);const CW=["get",...C8];new Set(CW);/** + * React Router v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let c=k8(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:us([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,o,e])}function T8(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Fl),{matches:i}=k.useContext(Ul),{pathname:o}=tv(),a=JSON.stringify(O8(i,r.v7_relativeSplatPath));return k.useMemo(()=>k8(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function EW(e,t){return MW(e,t)}function MW(e,t,n,r){Np()||an(!1);let{navigator:i}=k.useContext(Fl),{matches:o}=k.useContext(Ul),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=tv(),f;if(t){var c;let g=typeof t=="string"?af(t):t;l==="/"||(c=g.pathname)!=null&&c.startsWith(l)||an(!1),f=g}else f=u;let d=f.pathname||"/",h=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=aW(e,{pathname:h}),m=NW(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:us([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:us([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r);return t&&m?k.createElement(ev.Provider,{value:{location:xh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ka.Pop}},m):m}function jW(){let e=UW(),t=kW(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 k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const RW=k.createElement(jW,null);class IW extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==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?k.createElement(Ul.Provider,{value:this.props.routeContext},k.createElement($8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DW(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(nO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Ul.Provider,{value:t},r)}function NW(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 a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let f=a.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||an(!1),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let h,p=!1,m=null,g=null;n&&(h=s&&c.route.id?s[c.route.id]:void 0,m=c.route.errorElement||RW,l&&(u<0&&d===0?(p=!0,g=null):u===d&&(p=!0,g=c.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,d+1)),v=()=>{let b;return h?b=m:p?b=g:c.route.Component?b=k.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=f,k.createElement(DW,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:b})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?k.createElement(IW,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var E8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E8||{}),my=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}(my||{});function LW(e){let t=k.useContext(nO);return t||an(!1),t}function BW(e){let t=k.useContext($W);return t||an(!1),t}function FW(e){let t=k.useContext(Ul);return t||an(!1),t}function M8(e){let t=FW(),n=t.matches[t.matches.length-1];return n.route.id||an(!1),n.route.id}function UW(){var e;let t=k.useContext($8),n=BW(my.UseRouteError),r=M8(my.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zW(){let{router:e}=LW(E8.UseNavigateStable),t=M8(my.UseNavigateStable),n=k.useRef(!1);return P8(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xh({fromRouteId:t},o)))},[e,t])}const pP={};function WW(e,t){pP[t]||(pP[t]=!0,console.warn(t))}const mP=(e,t,n)=>WW(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function YW(e,t){e!=null&&e.v7_startTransition||mP("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&mP("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Oi(e){an(!1)}function VW(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ka.Pop,navigator:o,static:a=!1,future:s}=e;Np()&&an(!1);let l=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:l,navigator:o,static:a,future:xh({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=af(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:p="default"}=r,m=k.useMemo(()=>{let g=tO(f,l);return g==null?null:{location:{pathname:g,search:c,hash:d,state:h,key:p},navigationType:i}},[l,f,c,d,h,p,i]);return m==null?null:k.createElement(Fl.Provider,{value:u},k.createElement(ev.Provider,{children:n,value:m}))}function HW(e){let{children:t,location:n}=e;return EW(gS(t),n)}new Promise(()=>{});function gS(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let o=[...t,i];if(r.type===k.Fragment){n.push.apply(n,gS(r.props.children,o));return}r.type!==Oi&&an(!1),!r.props.index||!r.props.children||an(!1);let a={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&&(a.children=gS(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function qW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KW(e,t){return e.button===0&&(!t||t==="_self")&&!qW(e)}const XW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],QW="6";try{window.__reactRouterVersion=QW}catch{}const ZW="startTransition",gP=Sw[ZW];function JW(e){let{basename:t,children:n,future:r,window:i}=e,o=k.useRef();o.current==null&&(o.current=rW({window:i,v5Compat:!0}));let a=o.current,[s,l]=k.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=k.useCallback(c=>{u&&gP?gP(()=>l(c)):l(c)},[l,u]);return k.useLayoutEffect(()=>a.listen(f),[a,f]),k.useEffect(()=>YW(r),[r]),k.createElement(VW,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const eY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nY=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,d=GW(t,XW),{basename:h}=k.useContext(Fl),p,m=!1;if(typeof u=="string"&&tY.test(u)&&(p=u,eY))try{let b=new URL(window.location.href),A=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=tO(A.pathname,h);A.origin===b.origin&&w!=null?u=w+A.search+A.hash:m=!0}catch{}let g=PW(u,{relative:i}),y=rY(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function v(b){r&&r(b),b.defaultPrevented||y(b)}return k.createElement("a",yS({},d,{href:p||g,onClick:m||o?r:v,ref:n,target:l}))});var yP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yP||(yP={}));var vP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vP||(vP={}));function rY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=zl(),u=tv(),f=T8(e,{relative:a});return k.useCallback(c=>{if(KW(c,n)){c.preventDefault();let d=r!==void 0?r:py(u)===py(f);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}var An=function(){return An=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?wn(sf,--di):0,kc--,nn===10&&(kc=1,rv--),nn}function Li(){return nn=di2||bS(nn)>3?"":" "}function hY(e,t){for(;--t&&Li()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return ov(e,_g()+(t<6&&dl()==32&&Li()==32))}function xS(e){for(;Li();)switch(nn){case e:return di;case 34:case 39:e!==34&&e!==39&&xS(nn);break;case 40:e===41&&xS(e);break;case 92:Li();break}return di}function pY(e,t){for(;Li()&&e+nn!==57;)if(e+nn===84&&dl()===47)break;return"/*"+ov(t,di-1)+"*"+iO(e===47?e:Li())}function mY(e){for(;!bS(dl());)Li();return ov(e,di)}function gY(e){return fY(Og("",null,null,null,[""],e=cY(e),0,[0],e))}function Og(e,t,n,r,i,o,a,s,l){for(var u=0,f=0,c=a,d=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",A=i,w=o,S=r,_=b;g;)switch(p=v,v=Li()){case 40:if(p!=108&&wn(_,c-1)==58){Ag(_+=Te(hx(v),"&","&\f"),"&\f",I8(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:_+=hx(v);break;case 9:case 10:case 13:case 32:_+=dY(p);break;case 92:_+=hY(_g()-1,7);continue;case 47:switch(dl()){case 42:case 47:Od(yY(pY(Li(),_g()),t,n,l),l);break;default:_+="/"}break;case 123*m:s[u++]=uo(_)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+f:y==-1&&(_=Te(_,/\f/g,"")),h>0&&uo(_)-c&&Od(h>32?wP(_+";",r,n,c-1,l):wP(Te(_," ","")+";",r,n,c-2,l),l);break;case 59:_+=";";default:if(Od(S=xP(_,t,n,u,f,i,s,b,A=[],w=[],c,o),o),v===123)if(f===0)Og(_,t,S,S,A,o,c,s,w);else switch(d===99&&wn(_,3)===110?100:d){case 100:case 108:case 109:case 115:Og(e,S,S,r&&Od(xP(e,S,S,0,0,i,s,b,i,A=[],c,w),w),i,w,c,s,r?A:w);break;default:Og(_,S,S,S,[""],w,0,s,w)}}u=f=h=0,m=y=1,b=_="",c=a;break;case 58:c=1+uo(_),h=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&uY()==125)continue}switch(_+=iO(v),v*m){case 38:y=f>0?1:(_+="\f",-1);break;case 44:s[u++]=(uo(_)-1)*y,y=1;break;case 64:dl()===45&&(_+=hx(Li())),d=dl(),f=c=uo(b=_+=mY(_g())),v++;break;case 45:p===45&&uo(_)==2&&(m=0)}}return o}function xP(e,t,n,r,i,o,a,s,l,u,f,c){for(var d=i-1,h=i===0?o:[""],p=N8(h),m=0,g=0,y=0;m0?h[v]+" "+b:Te(b,/&\f/g,h[v])))&&(l[y++]=A);return iv(e,t,n,i===0?nv:s,l,u,f,c)}function yY(e,t,n,r){return iv(e,t,n,j8,iO(lY()),Oc(e,2,-2),0,r)}function wP(e,t,n,r,i){return iv(e,t,n,rO,Oc(e,0,r),Oc(e,r+1,-1),r,i)}function B8(e,t,n){switch(aY(e,t)){case 5103:return Ze+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ze+e+e;case 4789:return Yd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ze+e+Yd+e+_t+e+e;case 5936:switch(wn(e,t+11)){case 114:return Ze+e+_t+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ze+e+_t+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ze+e+_t+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ze+e+_t+e+e;case 6165:return Ze+e+_t+"flex-"+e+e;case 5187:return Ze+e+Te(e,/(\w+).+(:[^]+)/,Ze+"box-$1$2"+_t+"flex-$1$2")+e;case 5443:return Ze+e+_t+"flex-item-"+Te(e,/flex-|-self/g,"")+(Yo(e,/flex-|baseline/)?"":_t+"grid-row-"+Te(e,/flex-|-self/g,""))+e;case 4675:return Ze+e+_t+"flex-line-pack"+Te(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ze+e+_t+Te(e,"shrink","negative")+e;case 5292:return Ze+e+_t+Te(e,"basis","preferred-size")+e;case 6060:return Ze+"box-"+Te(e,"-grow","")+Ze+e+_t+Te(e,"grow","positive")+e;case 4554:return Ze+Te(e,/([^-])(transform)/g,"$1"+Ze+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Ze+"$1"),/(image-set)/,Ze+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Ze+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Ze+"box-pack:$3"+_t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ze+e+e;case 4200:if(!Yo(e,/flex-|baseline/))return _t+"grid-column-align"+Oc(e,t)+e;break;case 2592:case 3360:return _t+Te(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Yo(r.props,/grid-\w+-end/)})?~Ag(e+(n=n[t].value),"span",0)?e:_t+Te(e,"-start","")+e+_t+"grid-row-span:"+(~Ag(n,"span",0)?Yo(n,/\d+/):+Yo(n,/\d+/)-+Yo(e,/\d+/))+";":_t+Te(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Yo(r.props,/grid-\w+-start/)})?e:_t+Te(Te(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Ze+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(uo(e)-1-t>6)switch(wn(e,t+1)){case 109:if(wn(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Ze+"$2-$3$1"+Yd+(wn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ag(e,"stretch",0)?B8(Te(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Te(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,u){return _t+i+":"+o+u+(a?_t+i+"-span:"+(s?l:+l-+o)+u:"")+e});case 4949:if(wn(e,t+6)===121)return Te(e,":",":"+Ze)+e;break;case 6444:switch(wn(e,wn(e,14)===45?18:11)){case 120:return Te(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ze+(wn(e,14)===45?"inline-":"")+"box$3$1"+Ze+"$2$3$1"+_t+"$2box$3")+e;case 100:return Te(e,":",":"+_t)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Te(e,"scroll-","scroll-snap-")+e}return e}function gy(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case rO:e.return=B8(e.value,e.length,n);return;case R8:return gy([Pa(e,{value:Te(e.value,"@","@"+Ze)})],r);case nv:if(e.length)return sY(n=e.props,function(i){switch(Yo(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Zl(Pa(e,{props:[Te(i,/:(read-\w+)/,":"+Yd+"$1")]})),Zl(Pa(e,{props:[i]})),vS(e,{props:bP(n,r)});break;case"::placeholder":Zl(Pa(e,{props:[Te(i,/:(plac\w+)/,":"+Ze+"input-$1")]})),Zl(Pa(e,{props:[Te(i,/:(plac\w+)/,":"+Yd+"$1")]})),Zl(Pa(e,{props:[Te(i,/:(plac\w+)/,_t+"input-$1")]})),Zl(Pa(e,{props:[i]})),vS(e,{props:bP(n,r)});break}return""})}}var SY={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kr={},Cc=typeof process<"u"&&kr!==void 0&&(kr.REACT_APP_SC_ATTR||kr.SC_ATTR)||"data-styled",F8="active",U8="data-styled-version",av="6.1.13",oO=`/*!sc*/ +`,yy=typeof window<"u"&&"HTMLElement"in window,AY=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&kr!==void 0&&kr.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&kr.REACT_APP_SC_DISABLE_SPEEDY!==""?kr.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&kr.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&kr!==void 0&&kr.SC_DISABLE_SPEEDY!==void 0&&kr.SC_DISABLE_SPEEDY!==""&&kr.SC_DISABLE_SPEEDY!=="false"&&kr.SC_DISABLE_SPEEDY),_Y={},sv=Object.freeze([]),$c=Object.freeze({});function z8(e,t,n){return n===void 0&&(n=$c),e.theme!==n.theme&&e.theme||t||n.theme}var W8=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),OY=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,kY=/(^-|-$)/g;function SP(e){return e.replace(OY,"-").replace(kY,"")}var CY=/(a)(d)/gi,Rm=52,AP=function(e){return String.fromCharCode(e+(e>25?39:97))};function wS(e){var t,n="";for(t=Math.abs(e);t>Rm;t=t/Rm|0)n=AP(t%Rm)+n;return(AP(t%Rm)+n).replace(CY,"$1-$2")}var px,Y8=5381,Eu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},V8=function(e){return Eu(Y8,e)};function H8(e){return wS(V8(e)>>>0)}function $Y(e){return e.displayName||e.name||"Component"}function mx(e){return typeof e=="string"&&!0}var G8=typeof Symbol=="function"&&Symbol.for,q8=G8?Symbol.for("react.memo"):60115,PY=G8?Symbol.for("react.forward_ref"):60112,TY={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},EY={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MY=((px={})[PY]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},px[q8]=K8,px);function _P(e){return("type"in(t=e)&&t.type.$$typeof)===q8?K8:"$$typeof"in e?MY[e.$$typeof]:TY;var t}var jY=Object.defineProperty,RY=Object.getOwnPropertyNames,OP=Object.getOwnPropertySymbols,IY=Object.getOwnPropertyDescriptor,DY=Object.getPrototypeOf,kP=Object.prototype;function X8(e,t,n){if(typeof t!="string"){if(kP){var r=DY(t);r&&r!==kP&&X8(e,r,n)}var i=RY(t);OP&&(i=i.concat(OP(t)));for(var o=_P(e),a=_P(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var NY=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw ys(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(g+="".concat(y,","))}),l+="".concat(p).concat(m,'{content:"').concat(g,'"}').concat(oO)},f=0;f0?".".concat(t):d},f=l.slice();f.push(function(d){d.type===nv&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(qY,n).replace(r,u))}),a.prefix&&f.push(wY),f.push(vY);var c=function(d,h,p,m){h===void 0&&(h=""),p===void 0&&(p=""),m===void 0&&(m="&"),t=m,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var g=d.replace(KY,""),y=gY(p||h?"".concat(p," ").concat(h," { ").concat(g," }"):g);a.namespace&&(y=Z8(y,a.namespace));var v=[];return gy(y,bY(f.concat(xY(function(b){return v.push(b)})))),v};return c.hash=l.length?l.reduce(function(d,h){return h.name||ys(15),Eu(d,h.name)},Y8).toString():"",c}var QY=new by,_S=XY(),J8=F.createContext({shouldForwardProp:void 0,styleSheet:QY,stylis:_S});J8.Consumer;F.createContext(void 0);function OS(){return k.useContext(J8)}var ZY=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=_S);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,sO(this,function(){throw ys(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=_S),this.name+t.hash},e}(),JY=function(e){return e>="A"&&e<="Z"};function PP(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=Ks(i,a),this.staticRulesId=a}else{for(var l=Eu(this.baseHash,r.hash),u="",f=0;f>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),i=Ks(i,h)}}return i},e}(),Pc=F.createContext(void 0);Pc.Consumer;function rR(){var e=k.useContext(Pc);if(!e)throw ys(18);return e}function nV(e){var t=F.useContext(Pc),n=k.useMemo(function(){return function(r,i){if(!r)throw ys(14);if(Ol(r)){var o=r(i);return o}if(Array.isArray(r)||typeof r!="object")throw ys(8);return i?An(An({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?F.createElement(Pc.Provider,{value:n},e.children):null}var gx={};function rV(e,t,n){var r=aO(e),i=e,o=!mx(e),a=t.attrs,s=a===void 0?sv:a,l=t.componentId,u=l===void 0?function(A,w){var S=typeof A!="string"?"sc":SP(A);gx[S]=(gx[S]||0)+1;var _="".concat(S,"-").concat(H8(av+S+gx[S]));return w?"".concat(w,"-").concat(_):_}(t.displayName,t.parentComponentId):l,f=t.displayName,c=f===void 0?function(A){return mx(A)?"styled.".concat(A):"Styled(".concat($Y(A),")")}(e):f,d=t.displayName&&t.componentId?"".concat(SP(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,p=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;p=function(A,w){return m(A,w)&&g(A,w)}}else p=m}var y=new tV(n,d,r?i.componentStyle:void 0);function v(A,w){return function(S,_,C){var P=S.attrs,O=S.componentStyle,$=S.defaultProps,E=S.foldedComponentIds,M=S.styledComponentId,T=S.target,R=F.useContext(Pc),I=OS(),B=S.shouldForwardProp||I.shouldForwardProp,j=z8(_,R,$)||$c,N=function(re,ne,fe){for(var de,q=An(An({},ne),{className:void 0,theme:fe}),ee=0;ee2&&by.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,i)},e}();function oV(e){for(var t=[],n=1;n>>0,r;for(r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var dO=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Dm=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vx={},Wu={};function ye(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Wu[e]=i),t&&(Wu[t[0]]=function(){return _o(i.apply(this,arguments),t[1],t[2])}),n&&(Wu[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function fV(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function dV(e){var t=e.match(dO),n,r;for(n=0,r=t.length;n=0&&Dm.test(e);)e=e.replace(Dm,r),Dm.lastIndex=0,n-=1;return e}var hV={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function pV(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(dO).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var mV="Invalid date";function gV(){return this._invalidDate}var yV="%d",vV=/\d{1,2}/;function bV(e){return this._ordinal.replace("%d",e)}var xV={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wV(e,t,n,r){var i=this._relativeTime[n];return Mo(i)?i(e,t,n,r):i.replace(/%d/i,e)}function SV(e,t){var n=this._relativeTime[e>0?"future":"past"];return Mo(n)?n(t):n.replace(/%s/i,t)}var RP={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function mi(e){return typeof e=="string"?RP[e]||RP[e.toLowerCase()]:void 0}function hO(e){var t={},n,r;for(r in e)Ve(e,r)&&(n=mi(r),n&&(t[n]=e[r]));return t}var AV={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function _V(e){var t=[],n;for(n in e)Ve(e,n)&&t.push({unit:n,priority:AV[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var fR=/\d/,Ur=/\d\d/,dR=/\d{3}/,pO=/\d{4}/,uv=/[+-]?\d{6}/,Tt=/\d\d?/,hR=/\d\d\d\d?/,pR=/\d\d\d\d\d\d?/,cv=/\d{1,3}/,mO=/\d{1,4}/,fv=/[+-]?\d{1,6}/,lf=/\d+/,dv=/[+-]?\d+/,OV=/Z|[+-]\d\d:?\d\d/gi,hv=/Z|[+-]\d\d(?::?\d\d)?/gi,kV=/[+-]?\d+(\.\d{1,3})?/,Fp=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,uf=/^[1-9]\d?/,gO=/^([1-9]\d|\d)/,xy;xy={};function le(e,t,n){xy[e]=Mo(t)?t:function(r,i){return r&&n?n:t}}function CV(e,t){return Ve(xy,e)?xy[e](t._strict,t._locale):new RegExp($V(e))}function $V(e){return oa(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function oa(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ei(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Re(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ei(t)),n}var TS={};function ut(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),ha(t)&&(r=function(o,a){a[t]=Re(o)}),i=e.length,n=0;n68?1900:2e3)};var mR=cf("FullYear",!0);function MV(){return pv(this.year())}function cf(e,t){return function(n){return n!=null?(gR(this,e,n),oe.updateOffset(this,t),this):Ah(this,e)}}function Ah(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function gR(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!pv(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function jV(e){return e=mi(e),Mo(this[e])?this[e]():this}function RV(e,t){if(typeof e=="object"){e=hO(e);var n=_V(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function _h(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wy(e,t,n){var r=7+t-n,i=(7+_h(e,0,r).getUTCDay()-t)%7;return-i+r-1}function SR(e,t,n,r,i){var o=(7+n-r)%7,a=wy(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Vd(l)+s):s>Vd(e)?(l=e+1,u=s-Vd(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Oh(e,t,n){var r=wy(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+aa(a,t,n)):i>aa(e.year(),t,n)?(o=i-aa(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function aa(e,t,n){var r=wy(e,t,n),i=wy(e+1,t,n);return(Vd(e)-r+i)/7}ye("w",["ww",2],"wo","week");ye("W",["WW",2],"Wo","isoWeek");le("w",Tt,uf);le("ww",Tt,Ur);le("W",Tt,uf);le("WW",Tt,Ur);Up(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Re(e)});function GV(e){return Oh(e,this._week.dow,this._week.doy).week}var qV={dow:0,doy:6};function KV(){return this._week.dow}function XV(){return this._week.doy}function QV(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ZV(e){var t=Oh(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ye("d",0,"do","day");ye("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ye("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ye("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ye("e",0,0,"weekday");ye("E",0,0,"isoWeekday");le("d",Tt);le("e",Tt);le("E",Tt);le("dd",function(e,t){return t.weekdaysMinRegex(e)});le("ddd",function(e,t){return t.weekdaysShortRegex(e)});le("dddd",function(e,t){return t.weekdaysRegex(e)});Up(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ce(n).invalidWeekday=e});Up(["d","e","E"],function(e,t,n,r){t[r]=Re(e)});function JV(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function eH(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function vO(e,t){return e.slice(t,7).concat(e.slice(0,t))}var tH="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),AR="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nH="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rH=Fp,iH=Fp,oH=Fp;function aH(e,t){var n=Ui(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?vO(n,this._week.dow):e?n[e.day()]:n}function sH(e){return e===!0?vO(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function lH(e){return e===!0?vO(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uH(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Eo([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Zt.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Zt.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Zt.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Zt.call(this._weekdaysParse,a),i!==-1||(i=Zt.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Zt.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Zt.call(this._shortWeekdaysParse,a),i!==-1||(i=Zt.call(this._weekdaysParse,a),i!==-1)?i:(i=Zt.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Zt.call(this._minWeekdaysParse,a),i!==-1||(i=Zt.call(this._weekdaysParse,a),i!==-1)?i:(i=Zt.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function cH(e,t,n){var r,i,o;if(this._weekdaysParseExact)return uH.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Eo([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function fH(e){if(!this.isValid())return e!=null?this:NaN;var t=Ah(this,"Day");return e!=null?(e=JV(e,this.localeData()),this.add(e-t,"d")):t}function dH(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function hH(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=eH(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function pH(e){return this._weekdaysParseExact?(Ve(this,"_weekdaysRegex")||bO.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ve(this,"_weekdaysRegex")||(this._weekdaysRegex=rH),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function mH(e){return this._weekdaysParseExact?(Ve(this,"_weekdaysRegex")||bO.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ve(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=iH),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gH(e){return this._weekdaysParseExact?(Ve(this,"_weekdaysRegex")||bO.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ve(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oH),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function bO(){function e(f,c){return c.length-f.length}var t=[],n=[],r=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=Eo([2e3,1]).day(o),s=oa(this.weekdaysMin(a,"")),l=oa(this.weekdaysShort(a,"")),u=oa(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),i.push(s),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function xO(){return this.hours()%12||12}function yH(){return this.hours()||24}ye("H",["HH",2],0,"hour");ye("h",["hh",2],0,xO);ye("k",["kk",2],0,yH);ye("hmm",0,0,function(){return""+xO.apply(this)+_o(this.minutes(),2)});ye("hmmss",0,0,function(){return""+xO.apply(this)+_o(this.minutes(),2)+_o(this.seconds(),2)});ye("Hmm",0,0,function(){return""+this.hours()+_o(this.minutes(),2)});ye("Hmmss",0,0,function(){return""+this.hours()+_o(this.minutes(),2)+_o(this.seconds(),2)});function _R(e,t){ye(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}_R("a",!0);_R("A",!1);function OR(e,t){return t._meridiemParse}le("a",OR);le("A",OR);le("H",Tt,gO);le("h",Tt,uf);le("k",Tt,uf);le("HH",Tt,Ur);le("hh",Tt,Ur);le("kk",Tt,Ur);le("hmm",hR);le("hmmss",pR);le("Hmm",hR);le("Hmmss",pR);ut(["H","HH"],mn);ut(["k","kk"],function(e,t,n){var r=Re(e);t[mn]=r===24?0:r});ut(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ut(["h","hh"],function(e,t,n){t[mn]=Re(e),Ce(n).bigHour=!0});ut("hmm",function(e,t,n){var r=e.length-2;t[mn]=Re(e.substr(0,r)),t[ji]=Re(e.substr(r)),Ce(n).bigHour=!0});ut("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[mn]=Re(e.substr(0,r)),t[ji]=Re(e.substr(r,2)),t[ea]=Re(e.substr(i)),Ce(n).bigHour=!0});ut("Hmm",function(e,t,n){var r=e.length-2;t[mn]=Re(e.substr(0,r)),t[ji]=Re(e.substr(r))});ut("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[mn]=Re(e.substr(0,r)),t[ji]=Re(e.substr(r,2)),t[ea]=Re(e.substr(i))});function vH(e){return(e+"").toLowerCase().charAt(0)==="p"}var bH=/[ap]\.?m?\.?/i,xH=cf("Hours",!0);function wH(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var kR={calendar:uV,longDateFormat:hV,invalidDate:mV,ordinal:yV,dayOfMonthOrdinalParse:vV,relativeTime:xV,months:DV,monthsShort:yR,week:qV,weekdays:tH,weekdaysMin:nH,weekdaysShort:AR,meridiemParse:bH},It={},Kf={},kh;function SH(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=mv(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&SH(o,r)>=n-1)break;n--}t++}return kh}function _H(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mv(e){var t=null,n;if(It[e]===void 0&&typeof Wg<"u"&&Wg&&Wg.exports&&_H(e))try{t=kh._abbr,n=require,n("./locale/"+e),fs(t)}catch{It[e]=null}return It[e]}function fs(e,t){var n;return e&&(cr(t)?n=ya(e):n=wO(e,t),n?kh=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),kh._abbr}function wO(e,t){if(t!==null){var n,r=kR;if(t.abbr=e,It[e]!=null)uR("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=It[e]._config;else if(t.parentLocale!=null)if(It[t.parentLocale]!=null)r=It[t.parentLocale]._config;else if(n=mv(t.parentLocale),n!=null)r=n._config;else return Kf[t.parentLocale]||(Kf[t.parentLocale]=[]),Kf[t.parentLocale].push({name:e,config:t}),null;return It[e]=new fO($S(r,t)),Kf[e]&&Kf[e].forEach(function(i){wO(i.name,i.config)}),fs(e),It[e]}else return delete It[e],null}function OH(e,t){if(t!=null){var n,r,i=kR;It[e]!=null&&It[e].parentLocale!=null?It[e].set($S(It[e]._config,t)):(r=mv(e),r!=null&&(i=r._config),t=$S(i,t),r==null&&(t.abbr=e),n=new fO(t),n.parentLocale=It[e],It[e]=n),fs(e)}else It[e]!=null&&(It[e].parentLocale!=null?(It[e]=It[e].parentLocale,e===fs()&&fs(e)):It[e]!=null&&delete It[e]);return It[e]}function ya(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return kh;if(!Ui(e)){if(t=mv(e),t)return t;e=[e]}return AH(e)}function kH(){return PS(It)}function SO(e){var t,n=e._a;return n&&Ce(e).overflow===-2&&(t=n[Jo]<0||n[Jo]>11?Jo:n[po]<1||n[po]>yO(n[Hn],n[Jo])?po:n[mn]<0||n[mn]>24||n[mn]===24&&(n[ji]!==0||n[ea]!==0||n[Xs]!==0)?mn:n[ji]<0||n[ji]>59?ji:n[ea]<0||n[ea]>59?ea:n[Xs]<0||n[Xs]>999?Xs:-1,Ce(e)._overflowDayOfYear&&(tpo)&&(t=po),Ce(e)._overflowWeeks&&t===-1&&(t=TV),Ce(e)._overflowWeekday&&t===-1&&(t=EV),Ce(e).overflow=t),e}var CH=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$H=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,PH=/Z|[+-]\d\d(?::?\d\d)?/,Nm=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bx=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],TH=/^\/?Date\((-?\d+)/i,EH=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,MH={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function CR(e){var t,n,r=e._i,i=CH.exec(r)||$H.exec(r),o,a,s,l,u=Nm.length,f=bx.length;if(i){for(Ce(e).iso=!0,t=0,n=u;tVd(a)||e._dayOfYear===0)&&(Ce(e)._overflowDayOfYear=!0),n=_h(a,0,e._dayOfYear),e._a[Jo]=n.getUTCMonth(),e._a[po]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[mn]===24&&e._a[ji]===0&&e._a[ea]===0&&e._a[Xs]===0&&(e._nextDay=!0,e._a[mn]=0),e._d=(e._useUTC?_h:HV).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[mn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Ce(e).weekdayMismatch=!0)}}function FH(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=gu(t.GG,e._a[Hn],Oh(Pt(),1,4).year),r=gu(t.W,1),i=gu(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Oh(Pt(),o,a),n=gu(t.gg,e._a[Hn],u.year),r=gu(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>aa(n,o,a)?Ce(e)._overflowWeeks=!0:l!=null?Ce(e)._overflowWeekday=!0:(s=SR(n,r,i,o,a),e._a[Hn]=s.year,e._dayOfYear=s.dayOfYear)}oe.ISO_8601=function(){};oe.RFC_2822=function(){};function _O(e){if(e._f===oe.ISO_8601){CR(e);return}if(e._f===oe.RFC_2822){$R(e);return}e._a=[],Ce(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,f;for(i=cR(e._f,e._locale).match(dO)||[],f=i.length,n=0;n0&&Ce(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Wu[o]?(r?Ce(e).empty=!1:Ce(e).unusedTokens.push(o),PV(o,r,e)):e._strict&&!r&&Ce(e).unusedTokens.push(o);Ce(e).charsLeftOver=s-l,t.length>0&&Ce(e).unusedInput.push(t),e._a[mn]<=12&&Ce(e).bigHour===!0&&e._a[mn]>0&&(Ce(e).bigHour=void 0),Ce(e).parsedDateParts=e._a.slice(0),Ce(e).meridiem=e._meridiem,e._a[mn]=UH(e._locale,e._a[mn],e._meridiem),u=Ce(e).era,u!==null&&(e._a[Hn]=e._locale.erasConvertYear(u,e._a[Hn])),AO(e),SO(e)}function UH(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function zH(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Ce(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:lv()});function ER(e,t){var n,r;if(t.length===1&&Ui(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uG(){if(!cr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return cO(e,this),e=PR(e),e._a?(t=e._isUTC?Eo(e._a):Pt(e._a),this._isDSTShifted=this.isValid()&&eG(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function cG(){return this.isValid()?!this._isUTC:!1}function fG(){return this.isValid()?this._isUTC:!1}function jR(){return this.isValid()?this._isUTC&&this._offset===0:!1}var dG=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hG=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yi(e,t){var n=e,r=null,i,o,a;return Pg(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ha(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=dG.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Re(r[po])*i,h:Re(r[mn])*i,m:Re(r[ji])*i,s:Re(r[ea])*i,ms:Re(ES(r[Xs]*1e3))*i}):(r=hG.exec(e))?(i=r[1]==="-"?-1:1,n={y:js(r[2],i),M:js(r[3],i),w:js(r[4],i),d:js(r[5],i),h:js(r[6],i),m:js(r[7],i),s:js(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=pG(Pt(n.from),Pt(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new gv(n),Pg(e)&&Ve(e,"_locale")&&(o._locale=e._locale),Pg(e)&&Ve(e,"_isValid")&&(o._isValid=e._isValid),o}Yi.fn=gv.prototype;Yi.invalid=JH;function js(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function DP(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function pG(e,t){var n;return e.isValid()&&t.isValid()?(t=kO(t,e),e.isBefore(t)?n=DP(e,t):(n=DP(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function RR(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(uR(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Yi(n,r),IR(this,i,e),this}}function IR(e,t,n,r){var i=t._milliseconds,o=ES(t._days),a=ES(t._months);e.isValid()&&(r=r??!0,a&&bR(e,Ah(e,"Month")+a*n),o&&gR(e,"Date",Ah(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&oe.updateOffset(e,o||a))}var mG=RR(1,"add"),gG=RR(-1,"subtract");function DR(e){return typeof e=="string"||e instanceof String}function yG(e){return zi(e)||Lp(e)||DR(e)||ha(e)||bG(e)||vG(e)||e===null||e===void 0}function vG(e){var t=hl(e)&&!lO(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?$g(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Mo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",$g(n,"Z")):$g(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function jG(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function RG(e){e||(e=this.isUtc()?oe.defaultFormatUtc:oe.defaultFormat);var t=$g(this,e);return this.localeData().postformat(t)}function IG(e,t){return this.isValid()&&(zi(e)&&e.isValid()||Pt(e).isValid())?Yi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function DG(e){return this.from(Pt(),e)}function NG(e,t){return this.isValid()&&(zi(e)&&e.isValid()||Pt(e).isValid())?Yi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function LG(e){return this.to(Pt(),e)}function NR(e){var t;return e===void 0?this._locale._abbr:(t=ya(e),t!=null&&(this._locale=t),this)}var LR=pi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function BR(){return this._locale}var Sy=1e3,Yu=60*Sy,Ay=60*Yu,FR=(365*400+97)*24*Ay;function Vu(e,t){return(e%t+t)%t}function UR(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-FR:new Date(e,t,n).valueOf()}function zR(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-FR:Date.UTC(e,t,n)}function BG(e){var t,n;if(e=mi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?zR:UR,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Vu(t+(this._isUTC?0:this.utcOffset()*Yu),Ay);break;case"minute":t=this._d.valueOf(),t-=Vu(t,Yu);break;case"second":t=this._d.valueOf(),t-=Vu(t,Sy);break}return this._d.setTime(t),oe.updateOffset(this,!0),this}function FG(e){var t,n;if(e=mi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?zR:UR,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ay-Vu(t+(this._isUTC?0:this.utcOffset()*Yu),Ay)-1;break;case"minute":t=this._d.valueOf(),t+=Yu-Vu(t,Yu)-1;break;case"second":t=this._d.valueOf(),t+=Sy-Vu(t,Sy)-1;break}return this._d.setTime(t),oe.updateOffset(this,!0),this}function UG(){return this._d.valueOf()-(this._offset||0)*6e4}function zG(){return Math.floor(this.valueOf()/1e3)}function WG(){return new Date(this.valueOf())}function YG(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function VG(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function HG(){return this.isValid()?this.toISOString():null}function GG(){return uO(this)}function qG(){return Xa({},Ce(this))}function KG(){return Ce(this).overflow}function XG(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ye("N",0,0,"eraAbbr");ye("NN",0,0,"eraAbbr");ye("NNN",0,0,"eraAbbr");ye("NNNN",0,0,"eraName");ye("NNNNN",0,0,"eraNarrow");ye("y",["y",1],"yo","eraYear");ye("y",["yy",2],0,"eraYear");ye("y",["yyy",3],0,"eraYear");ye("y",["yyyy",4],0,"eraYear");le("N",CO);le("NN",CO);le("NNN",CO);le("NNNN",sq);le("NNNNN",lq);ut(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ce(n).era=i:Ce(n).invalidEra=e});le("y",lf);le("yy",lf);le("yyy",lf);le("yyyy",lf);le("yo",uq);ut(["y","yy","yyy","yyyy"],Hn);ut(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Hn]=n._locale.eraYearOrdinalParse(e,i):t[Hn]=parseInt(e,10)});function QG(e,t){var n,r,i,o=this._eras||ya("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function JG(e,t){var n=e.since<=e.until?1:-1;return t===void 0?oe(e.since).year():oe(e.since).year()+(t-e.offset)*n}function eq(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),gq.call(this,e,t,n,r,i))}function gq(e,t,n,r,i){var o=SR(e,t,n,r,i),a=_h(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ye("Q",0,"Qo","quarter");le("Q",fR);ut("Q",function(e,t){t[Jo]=(Re(e)-1)*3});function yq(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ye("D",["DD",2],"Do","date");le("D",Tt,uf);le("DD",Tt,Ur);le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ut(["D","DD"],po);ut("Do",function(e,t){t[po]=Re(e.match(Tt)[0])});var YR=cf("Date",!0);ye("DDD",["DDDD",3],"DDDo","dayOfYear");le("DDD",cv);le("DDDD",dR);ut(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Re(e)});function vq(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ye("m",["mm",2],0,"minute");le("m",Tt,gO);le("mm",Tt,Ur);ut(["m","mm"],ji);var bq=cf("Minutes",!1);ye("s",["ss",2],0,"second");le("s",Tt,gO);le("ss",Tt,Ur);ut(["s","ss"],ea);var xq=cf("Seconds",!1);ye("S",0,0,function(){return~~(this.millisecond()/100)});ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ye(0,["SSS",3],0,"millisecond");ye(0,["SSSS",4],0,function(){return this.millisecond()*10});ye(0,["SSSSS",5],0,function(){return this.millisecond()*100});ye(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ye(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ye(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ye(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});le("S",cv,fR);le("SS",cv,Ur);le("SSS",cv,dR);var Qa,VR;for(Qa="SSSS";Qa.length<=9;Qa+="S")le(Qa,lf);function wq(e,t){t[Xs]=Re(("0."+e)*1e3)}for(Qa="S";Qa.length<=9;Qa+="S")ut(Qa,wq);VR=cf("Milliseconds",!1);ye("z",0,0,"zoneAbbr");ye("zz",0,0,"zoneName");function Sq(){return this._isUTC?"UTC":""}function Aq(){return this._isUTC?"Coordinated Universal Time":""}var te=Bp.prototype;te.add=mG;te.calendar=SG;te.clone=AG;te.diff=TG;te.endOf=FG;te.format=RG;te.from=IG;te.fromNow=DG;te.to=NG;te.toNow=LG;te.get=jV;te.invalidAt=KG;te.isAfter=_G;te.isBefore=OG;te.isBetween=kG;te.isSame=CG;te.isSameOrAfter=$G;te.isSameOrBefore=PG;te.isValid=GG;te.lang=LR;te.locale=NR;te.localeData=BR;te.max=GH;te.min=HH;te.parsingFlags=qG;te.set=RV;te.startOf=BG;te.subtract=gG;te.toArray=YG;te.toObject=VG;te.toDate=WG;te.toISOString=MG;te.inspect=jG;typeof Symbol<"u"&&Symbol.for!=null&&(te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});te.toJSON=HG;te.toString=EG;te.unix=zG;te.valueOf=UG;te.creationData=XG;te.eraName=eq;te.eraNarrow=tq;te.eraAbbr=nq;te.eraYear=rq;te.year=mR;te.isLeapYear=MV;te.weekYear=cq;te.isoWeekYear=fq;te.quarter=te.quarters=yq;te.month=xR;te.daysInMonth=WV;te.week=te.weeks=QV;te.isoWeek=te.isoWeeks=ZV;te.weeksInYear=pq;te.weeksInWeekYear=mq;te.isoWeeksInYear=dq;te.isoWeeksInISOWeekYear=hq;te.date=YR;te.day=te.days=fH;te.weekday=dH;te.isoWeekday=hH;te.dayOfYear=vq;te.hour=te.hours=xH;te.minute=te.minutes=bq;te.second=te.seconds=xq;te.millisecond=te.milliseconds=VR;te.utcOffset=nG;te.utc=iG;te.local=oG;te.parseZone=aG;te.hasAlignedHourOffset=sG;te.isDST=lG;te.isLocal=cG;te.isUtcOffset=fG;te.isUtc=jR;te.isUTC=jR;te.zoneAbbr=Sq;te.zoneName=Aq;te.dates=pi("dates accessor is deprecated. Use date instead.",YR);te.months=pi("months accessor is deprecated. Use month instead",xR);te.years=pi("years accessor is deprecated. Use year instead",mR);te.zone=pi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rG);te.isDSTShifted=pi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uG);function _q(e){return Pt(e*1e3)}function Oq(){return Pt.apply(null,arguments).parseZone()}function HR(e){return e}var Ge=fO.prototype;Ge.calendar=cV;Ge.longDateFormat=pV;Ge.invalidDate=gV;Ge.ordinal=bV;Ge.preparse=HR;Ge.postformat=HR;Ge.relativeTime=wV;Ge.pastFuture=SV;Ge.set=lV;Ge.eras=QG;Ge.erasParse=ZG;Ge.erasConvertYear=JG;Ge.erasAbbrRegex=oq;Ge.erasNameRegex=iq;Ge.erasNarrowRegex=aq;Ge.months=BV;Ge.monthsShort=FV;Ge.monthsParse=zV;Ge.monthsRegex=VV;Ge.monthsShortRegex=YV;Ge.week=GV;Ge.firstDayOfYear=XV;Ge.firstDayOfWeek=KV;Ge.weekdays=aH;Ge.weekdaysMin=lH;Ge.weekdaysShort=sH;Ge.weekdaysParse=cH;Ge.weekdaysRegex=pH;Ge.weekdaysShortRegex=mH;Ge.weekdaysMinRegex=gH;Ge.isPM=vH;Ge.meridiem=wH;function _y(e,t,n,r){var i=ya(),o=Eo().set(r,t);return i[n](o,e)}function GR(e,t,n){if(ha(e)&&(t=e,e=void 0),e=e||"",t!=null)return _y(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=_y(e,r,n,"month");return i}function PO(e,t,n,r){typeof e=="boolean"?(ha(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ha(t)&&(n=t,t=void 0),t=t||"");var i=ya(),o=e?i._week.dow:0,a,s=[];if(n!=null)return _y(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=_y(t,(a+o)%7,r,"day");return s}function kq(e,t){return GR(e,t,"months")}function Cq(e,t){return GR(e,t,"monthsShort")}function $q(e,t,n){return PO(e,t,n,"weekdays")}function Pq(e,t,n){return PO(e,t,n,"weekdaysShort")}function Tq(e,t,n){return PO(e,t,n,"weekdaysMin")}fs("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Re(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});oe.lang=pi("moment.lang is deprecated. Use moment.locale instead.",fs);oe.langData=pi("moment.langData is deprecated. Use moment.localeData instead.",ya);var No=Math.abs;function Eq(){var e=this._data;return this._milliseconds=No(this._milliseconds),this._days=No(this._days),this._months=No(this._months),e.milliseconds=No(e.milliseconds),e.seconds=No(e.seconds),e.minutes=No(e.minutes),e.hours=No(e.hours),e.months=No(e.months),e.years=No(e.years),this}function qR(e,t,n,r){var i=Yi(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Mq(e,t){return qR(this,e,t,1)}function jq(e,t){return qR(this,e,t,-1)}function NP(e){return e<0?Math.floor(e):Math.ceil(e)}function Rq(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=NP(jS(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=ei(e/1e3),r.seconds=i%60,o=ei(i/60),r.minutes=o%60,a=ei(o/60),r.hours=a%24,t+=ei(a/24),l=ei(KR(t)),n+=l,t-=NP(jS(l)),s=ei(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function KR(e){return e*4800/146097}function jS(e){return e*146097/4800}function Iq(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=mi(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+KR(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(jS(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function va(e){return function(){return this.as(e)}}var XR=va("ms"),Dq=va("s"),Nq=va("m"),Lq=va("h"),Bq=va("d"),Fq=va("w"),Uq=va("M"),zq=va("Q"),Wq=va("y"),Yq=XR;function Vq(){return Yi(this)}function Hq(e){return e=mi(e),this.isValid()?this[e+"s"]():NaN}function Wl(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gq=Wl("milliseconds"),qq=Wl("seconds"),Kq=Wl("minutes"),Xq=Wl("hours"),Qq=Wl("days"),Zq=Wl("months"),Jq=Wl("years");function eK(){return ei(this.days()/7)}var Vo=Math.round,Mu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function tK(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function nK(e,t,n,r){var i=Yi(e).abs(),o=Vo(i.as("s")),a=Vo(i.as("m")),s=Vo(i.as("h")),l=Vo(i.as("d")),u=Vo(i.as("M")),f=Vo(i.as("w")),c=Vo(i.as("y")),d=o<=n.ss&&["s",o]||o0,d[4]=r,tK.apply(null,d)}function rK(e){return e===void 0?Vo:typeof e=="function"?(Vo=e,!0):!1}function iK(e,t){return Mu[e]===void 0?!1:t===void 0?Mu[e]:(Mu[e]=t,e==="s"&&(Mu.ss=t-1),!0)}function oK(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Mu,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Mu,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=nK(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var xx=Math.abs;function Jl(e){return(e>0)-(e<0)||+e}function vv(){if(!this.isValid())return this.localeData().invalidDate();var e=xx(this._milliseconds)/1e3,t=xx(this._days),n=xx(this._months),r,i,o,a,s=this.asSeconds(),l,u,f,c;return s?(r=ei(e/60),i=ei(r/60),e%=60,r%=60,o=ei(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Jl(this._months)!==Jl(s)?"-":"",f=Jl(this._days)!==Jl(s)?"-":"",c=Jl(this._milliseconds)!==Jl(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?c+i+"H":"")+(r?c+r+"M":"")+(e?c+a+"S":"")):"P0D"}var Fe=gv.prototype;Fe.isValid=ZH;Fe.abs=Eq;Fe.add=Mq;Fe.subtract=jq;Fe.as=Iq;Fe.asMilliseconds=XR;Fe.asSeconds=Dq;Fe.asMinutes=Nq;Fe.asHours=Lq;Fe.asDays=Bq;Fe.asWeeks=Fq;Fe.asMonths=Uq;Fe.asQuarters=zq;Fe.asYears=Wq;Fe.valueOf=Yq;Fe._bubble=Rq;Fe.clone=Vq;Fe.get=Hq;Fe.milliseconds=Gq;Fe.seconds=qq;Fe.minutes=Kq;Fe.hours=Xq;Fe.days=Qq;Fe.weeks=eK;Fe.months=Zq;Fe.years=Jq;Fe.humanize=oK;Fe.toISOString=vv;Fe.toString=vv;Fe.toJSON=vv;Fe.locale=NR;Fe.localeData=BR;Fe.toIsoString=pi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vv);Fe.lang=LR;ye("X",0,0,"unix");ye("x",0,0,"valueOf");le("x",dv);le("X",kV);ut("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ut("x",function(e,t,n){n._d=new Date(Re(e))});//! moment.js +oe.version="2.30.1";aV(Pt);oe.fn=te;oe.min=qH;oe.max=KH;oe.now=XH;oe.utc=Eo;oe.unix=_q;oe.months=kq;oe.isDate=Lp;oe.locale=fs;oe.invalid=lv;oe.duration=Yi;oe.isMoment=zi;oe.weekdays=$q;oe.parseZone=Oq;oe.localeData=ya;oe.isDuration=Pg;oe.monthsShort=Cq;oe.weekdaysMin=Tq;oe.defineLocale=wO;oe.updateLocale=OH;oe.locales=kH;oe.weekdaysShort=Pq;oe.normalizeUnits=mi;oe.relativeTimeRounding=rK;oe.relativeTimeThreshold=iK;oe.calendarFormat=wG;oe.prototype=te;oe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const aK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB+SURBVHgB7ZHRCcAgDERjJ3EVR3EyR3GUOkot5MNSvV5poD95IIgP7yARcZyvhNljKWXXa8o5N9bN2ICL/dQeGF86qiD10xZByN0IK6EfqwY1GUaCHF1gVYJ2IPrhMhLG0QUWwILZGBg38s+SrcJPViNCAXQ4KpCHAOQcx5gDXARmFPlZhIoAAAAASUVORK5CYII=";function sK(){const e=oe().format("MMMM DD, YYYY");return x.jsxs(lK,{children:[x.jsx(uK,{src:aK}),x.jsx(cK,{children:e})]})}const lK=D.div` + background-color: ${({theme:e})=>e.colors.gray00}; + width: 100%; + height: 3rem; + width: auto; + height: 1.5rem; + display: flex; + align-items: center; + padding: 2rem; + border-bottom: 1px solid ${({theme:e})=>e.colors.gray02}; + + @media (max-width: 1350px) { + margin-top: 1.5rem; + } +`,uK=D.img` + width: 1rem; + height: 1rem; + margin-right: 8px; +`,cK=D.a` + color: ${({theme:e})=>e.colors.gray03}; + font-size: 1rem; +`,fK="/assets/profile-AG237wnD.jpg",dK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgB7ZTLCcAgDEAT6QztVp2iW3WLblWXSNODIP4VRAJ5FyU+jSEQAOmg2xDRzctRcC0iXr2u8YKlCz/7iLuFJ5z5DGP84yfxSJNrYDKaoErU5FxDU7S4fgVvxbWDrnB0VOioEJBAR8V6Pqc0OufLz/unAAAAAElFTkSuQmCC",hK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABYSURBVHgB7ZRLCgAgCAUtuv8V6yavllGkJYQgzrYpEz9EbgBQwVM1bpouQfpEGry65XSwZAfuEc7N9JkIILIV+aZDXtw5gya4Tel6IVbFyY1Jtg8Qq8KeDpKNxYfYgTdAAAAAAElFTkSuQmCC",pK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADESURBVHgB5VPBDcIwDLT7YYPy4s8CbMQWfXeKdgrWYAH+vNoNeIUDJVJUrMSoNg960slS09wlPodo8wghDOAI7qX1hmzQgr1kYmHQgVPJZDUg2sZWXZbtYsXmAUVzqh14jPXOzKfXR6sMfFFqkbt4NQOFQcpoBjv0fsrXrTIQxUunStceaSUaSRylJ91ofmewEH9fm6zgNWqcGVxRDuADvMVaw4xgz6UffveSXV+jpwlLJpRNUq3HNXxkAME0nrpX+fd4AnSNqO8k62CtAAAAAElFTkSuQmCC",mK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABgSURBVHgB5ZTLCQAgDEODk7j/Uh0lIiiI4EExYvVBj23oJwW+h6SViFBQilMmkoveLdIkzmA1P8AD0j1QvWQeuKB5ozVtG3bTzxQ7eeYalhw74pyTef1XXBWBAqnR3JEAVW9lLIRlJrIAAAAASUVORK5CYII=",gK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEoSURBVHgBpVQxcsIwENzz0NGbOg/gE0md1HFP2uQBvCI16endkzp9HkANvWqziyVGMBKWzc7c+KTTrU66la3rug0Ao23NbAcPzi/5+RyKEStEMAbbaPxLU+I7bYlrJGMkfMsRHmiLKOZUmfdfE7F5irCK/LWvQNAmKy5uZakYclCFN8cuQi6vGkja0H4wAtUdMl287q2m39BeUIBZhqzhp4mmgr/DFEIidE535Lx/RAFmKMOe3f4rWZgjlP4kjYvG1BwvoSvcdPqYJFQiF+qIT+gFLGLd45C86lxT1NEaBQgvJVSaO/JXYq5I/DnCb/QVBrmsWck/phKGXxWP8dwPy8iyhBHxB0ZCT8/5ahYjcy95tNBAZ4ln9gha87tIxJLKHNPgzmRm2xOJsIRcxGpIKwAAAABJRU5ErkJggg==",yK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEESURBVHgB3ZTtEYIwDIaD5wC6ASM4giM4AhvYDewIOIGO4Aau4AZ1A7pBDJJyvRL6wfGL5y4HNB9vadMCbAZENGxNMH7O8eUI+Dw4+Y1TRF+JgAkKdmSKTfIVC9RkT35vyQ5ezMRXLACFpPJ2kFfEYM5GJoqIM+ENdWicdtLyJaLPGwqUCOwhjuLnnczy+xcKSAmEfKqqesESZn5fCSukpLyAsSEqP/A/QAQFLvQ4kfXn4UpmKeQY5oW4OtEl4o6p3Wcs1hWc3fBYhwToWJ5UJybQ4ND7jnMqr0jA8xmcOcmrCMRICfh3keWAGsoY87xcK81E43q04lRwuOM7XE6fq2FT/AAnPrYcXERJZgAAAABJRU5ErkJggg==",vK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFVSURBVHgBrVUtU8NAEN1j4upbgUNTg6DoxqOJB0v4E3iii4+vbz3YokFzPjq8DS+dm5u7fDTdmZfN3u29u/3IxQikrusZVAqoniIV8GGM+TUgncN4BRZyHrFAnuBxR9Jv3U2myQq4AlIlbsPXEEqZIIheSDy7GOC8Ad5lpCQdhEuoa+CGdsapvRZHTiEGiXZITvOSOnNcelMWO/ED9d4hLp2xXokRLxyytb6MLWyseAfqDXCrQHq2wAswqN9jxAWwC4zr6Z/lVGKEbYECuIf5STxyeun7a7FZcMsh29UVc5p+V9jAkraDSh4mWrzceW+J03ZxwL/kxpl+fVroGHEROLEu/sKig9fnvih5OBVYfCwcnNb/Q+PaLelzAOFTZGN38yYNNDXPOyWuOLDi7TRErBuVR9pEZvj3eJPxF30Okh+euCmsu5nhhBZKL/yhv6YKJNsuhz8FsH5INd9yTwAAAABJRU5ErkJggg==",bK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFKSURBVHgB3VXtccIwDJV7DMAI7gaMwAZ0g5pJYjZgA9INygYZoRsk3SAbmCcigzAhBIc/8O7eyZFjfVhKRPTqMHERQphDOHBO09CCv8aYhpRxC9bheaglYJqJjy/Qgn/gnqZhBS6ou41tdBCvZY/UPE0AIidxcLT5MfIQp1xTBmZ3DC8hmFaevWyVF0XMcQBjDmKXqAu19jTFgTJWUlcwxkbpRmHIgVVGHS9yGmCoyJXIU3Glx3f83dATHKzBnx69o+vaPO6AuwR0oFHqT5HL9H1uCmmMRlRHea+LbKIu9OEEMSufBNX1t9yvV7ohuJ6AvNo/tfNQF61VBvEAd1SFAKsb30kEO/vHe+VNB7ypovsWnacc9F1Rho1CXZGP+phBK3Ilf8MxaHSWdP51bK4y5eEQ8gbOQtlwfcXXI9NSN3jGjswWkW7p7XEAPy1MH62vfC8AAAAASUVORK5CYII=",xK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG2SURBVHgBvVUtbAJRDO4jSybwIBfQnIVplkzi8ZtmHo0fmvnzyCWg2SxotknOT0yx9vh6673cX7iMLynlXv9e32v7iP4Zrkh4PB6bzO6YekwdpnuIXpkipjXTzjl3yPNxVeB4BGoa0TV4GxRAP+QgIVXJgJVbzGZwINjqTpkWWHtCRgOmW6xJRlM/G1fgXAzmbLA18mVs5NyowCYVpEFpqOKeaWKd54F1ImQkNnEwHHE6AC+OvV18Z/g7QO4HEd0p5BJklFKQNCV9UJvOBNsG8BFqFppBAL4pKrky4EiFtLyTAEPwN6qPNXjPBmiB76k+tDC68hOXKZ/XF52a6N0oRpzyA1UA20t/2LvrM/2w/U2DLgHZQd0KMr668PUi35rBJ3iP6qMDfrAB9GKGVB86m9Y2wIpJulEaJaAzgbk0wOcuCYBWX0IwsbPEc7DQs82Qic0Mn6E2rK0iCaCzZJYTpE1/PZPlPJ5l9m1IAngDS5pkXqWqcKTPsIngI0GVB2dDpxHyAUeCRzpVnBSF3ln5g+MFkvE99pb74Lbj9f6WWSO+7NFvYYeyU/lvH33JSCpllfN2XAa/7IbOwGt++MoAAAAASUVORK5CYII=",wK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEkSURBVHgBxZULEcIwDEBzKKiESkDCHCABJMzBsIICcLBDATgoDiYhNJBsoXTruu7g3eUCaZrf1g7gnyCi8VJ7OXtxOEC/Wy8HLxZy4cCNlw7n0eQEt0G1rVSqbFu2nYOubE5w0lWw/iKxx04lEMcbjSmy/pWA7Yb3SBITC95MOgwFuJE1owo8QqRNwcJCaKQco/sokh8YcYFC+KUgavq/YfuedXECz4l1pbPK7LZQiBq308YYLiOoiwWgtQ38AlWBhULwfcr7CUgHd9YVlCPP8aETXFnvoZwd61Nv4VMoN2cFC5k8sHS8ZXa49lURcSi67CDRolOd2FQCfN8/o3tSSQj6qBzU64fsQ7ZW2dLBg0RHnEfHvgZyCSp1QbXUWb0o8Jo8ASVPwqtuGYhyAAAAAElFTkSuQmCC",SK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHRSURBVHgB3VUhVAJBEN3zkTwzdrKXuYydzHXMZp/5zJI98pKv2yUf2S5ZMs6XPzK3nLDPJvPef7sMs3/2z+zuOfffLYkN3G63YxkK/qyTJPEx6y5igoT8VoapICUK+k5a7xdC7HYo2Ajmghv+5elDskzi1jJOmHTZparXQY4yFMaVm/nKzEeE2kDWbiRJbfm6SqSElcAGe1ncAFTiqKYiYEN3SoHYp06ErJJdec43xu9NEqiemoTulIIFx0KJASFJBTmRGnLMx/w5d8cUSHDm9jItyUCG0vjW4nuSxO8B30T8K/G/qiMxJGFzUXPPHT4LrgUN/8NGvk8T1YVrq7DZSPAiqBFMJerP6S+Nr6Qvt+q5tta+wWwPrlQ+8Rc7aLLtASRB5j135HlaGi7MjIqMm2gYG5bopzytt4jXf0QCWMEao8kPbtcH3emjNhlloR/NbTX5wCS4zzrW4XHsOqaqlvFZyNd1D+5UZnC5cB/eCL0XmkibOgnJum7yJce1eaJBpD1p1Zzl0UORxiRYul0PpoEfRxCP3YdrN3QcrD2eABeE0vW5XnAOIjzbfYbiBM3c/juxPLhcLvKLxuaVgXt29LTQor5o5olGeaDKx5Cfh30B26kcl7oBf2sAAAAASUVORK5CYII=",AK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF3SURBVHgB5VVBTsNADNwgbrnkCVFekRv5AV/IDwgvSDiUa3sHCW4ci/hAxAvyA8qZS/iBscU4tba7TVT11pFG2c567bWduM5dDIjojjmCrTsn2GFNh6iXnL1y8dv2zC0zZ6nC1gPzHusb3qtgNyzOSgwpjgqMoVkSYFBj5sYc7oxNB22EXYPf/ZIAvb0NPzPhzJk1zrzP+XemBKOnp8wSTI2emSxz39+175wft/iZGb3gx4qpjn9Ye0yS5Mvz17L+yfqrC9y89RrWmZs/MT+YK1DWb5qJ6Um82Szu1DEyUb1U50bTIKXN3gSaymu/Ay3JN3gKfqM7gTRb6CnK4Zfo2ZSoDZU3FERGQm8MM+iF6YPWvzDnFC80N0LYIPcDmEwOXlPsjbCv3Bzof/4INjN2mckw+iWHht3UbNqP6KkncChreVNkbx04e/RmDcVReSWkRc0NBJE3akDDxakOPdH1v6FHsC3WjTsVFB7RtTsncPsdetK5i8EfR6fliPFRP5sAAAAASUVORK5CYII=",_K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD8SURBVHgBrZRdDoIwEISnROVNewRupjcRbsAN5AjeSDyB9ckAiXW3BEMI/VnjJE0h2XydbtsB/iwlKX5pFBlwWgDaLXBVBgZSdRplf4BdGTeroblmIwG+gSZb7ElZHGkqutF5HYVMK8dc88z/Wax4sHgMe5yRqCCQducabRWBE6FB4M6gJlglgWaxgtyglEDdKfeaTsji4q2ys0+CUv2d3Df4xaFUDsir7Z5QvkF3rZw5rHzuvsCQuGe8zQnGPUXMoU/cWwksCqSzKCQwVvAtuyuj0VCStEhUNBzmsNX4GsPBxVgScC6GEWDtYrtMFAPX4ov6bHK4tsgDNkUf4+xvPVIYPRQAAAAASUVORK5CYII=",Ch={black:"#000",white:"#fff"},eu={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},tu={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},nu={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ru={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},iu={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},OK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function kl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const TO="$$material";function Oy(){return Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Mn(ff,--Sr):0,Tc--,rn===10&&(Tc=1,xv--),rn}function Ir(){return rn=Sr2||Ph(rn)>3?"":" "}function WK(e,t){for(;--t&&Ir()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return zp(e,Eg()+(t<6&&bo()==32&&Ir()==32))}function IS(e){for(;Ir();)switch(rn){case e:return Sr;case 34:case 39:e!==34&&e!==39&&IS(rn);break;case 40:e===41&&IS(e);break;case 92:Ir();break}return Sr}function YK(e,t){for(;Ir()&&e+rn!==57;)if(e+rn===84&&bo()===47)break;return"/*"+zp(t,Sr-1)+"*"+bv(e===47?e:Ir())}function VK(e){for(;!Ph(bo());)Ir();return zp(e,Sr)}function HK(e){return nI(jg("",null,null,null,[""],e=tI(e),0,[0],e))}function jg(e,t,n,r,i,o,a,s,l){for(var u=0,f=0,c=a,d=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",A=i,w=o,S=r,_=b;g;)switch(p=v,v=Ir()){case 40:if(p!=108&&Mn(_,c-1)==58){RS(_+=Xe(Mg(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=Mg(v);break;case 9:case 10:case 13:case 32:_+=zK(p);break;case 92:_+=WK(Eg()-1,7);continue;case 47:switch(bo()){case 42:case 47:Lm(GK(YK(Ir(),Eg()),t,n),l);break;default:_+="/"}break;case 123*m:s[u++]=co(_)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+f:y==-1&&(_=Xe(_,/\f/g,"")),h>0&&co(_)-c&&Lm(h>32?BP(_+";",r,n,c-1):BP(Xe(_," ","")+";",r,n,c-2),l);break;case 59:_+=";";default:if(Lm(S=LP(_,t,n,u,f,i,s,b,A=[],w=[],c),o),v===123)if(f===0)jg(_,t,S,S,A,o,c,s,w);else switch(d===99&&Mn(_,3)===110?100:d){case 100:case 108:case 109:case 115:jg(e,S,S,r&&Lm(LP(e,S,S,0,0,i,s,b,i,A=[],c),w),i,w,c,s,r?A:w);break;default:jg(_,S,S,S,[""],w,0,s,w)}}u=f=h=0,m=y=1,b=_="",c=a;break;case 58:c=1+co(_),h=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&UK()==125)continue}switch(_+=bv(v),v*m){case 38:y=f>0?1:(_+="\f",-1);break;case 44:s[u++]=(co(_)-1)*y,y=1;break;case 64:bo()===45&&(_+=Mg(Ir())),d=bo(),f=c=co(b=_+=VK(Eg())),v++;break;case 45:p===45&&co(_)==2&&(m=0)}}return o}function LP(e,t,n,r,i,o,a,s,l,u,f){for(var c=i-1,d=i===0?o:[""],h=jO(d),p=0,m=0,g=0;p0?d[y]+" "+v:Xe(v,/&\f/g,d[y])))&&(l[g++]=b);return wv(e,t,n,i===0?EO:s,l,u,f)}function GK(e,t,n){return wv(e,t,n,QR,bv(FK()),$h(e,2,-2),0)}function BP(e,t,n,r){return wv(e,t,n,MO,$h(e,0,r),$h(e,r+1,-1),r)}function Hu(e,t){for(var n="",r=jO(e),i=0;i6)switch(Mn(e,t+1)){case 109:if(Mn(e,t+4)!==45)break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+ky+(Mn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~RS(e,"stretch")?rI(Xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mn(e,t+1)!==115)break;case 6444:switch(Mn(e,co(e)-3-(~RS(e,"!important")&&10))){case 107:return Xe(e,":",":"+Ke)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(Mn(e,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+Un+"$2box$3")+e}break;case 5936:switch(Mn(e,t+11)){case 114:return Ke+e+Un+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ke+e+Un+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ke+e+Un+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ke+e+Un+e+e}return e}var nX=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case MO:t.return=rI(t.value,t.length);break;case ZR:return Hu([Zf(t,{value:Xe(t.value,"@","@"+Ke)})],i);case EO:if(t.length)return BK(t.props,function(o){switch(LK(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hu([Zf(t,{props:[Xe(o,/:(read-\w+)/,":"+ky+"$1")]})],i);case"::placeholder":return Hu([Zf(t,{props:[Xe(o,/:(plac\w+)/,":"+Ke+"input-$1")]}),Zf(t,{props:[Xe(o,/:(plac\w+)/,":"+ky+"$1")]}),Zf(t,{props:[Xe(o,/:(plac\w+)/,Un+"input-$1")]})],i)}return""})}},rX=[nX],iX=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||rX,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yX={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function vX(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bX=!1,xX=/[A-Z]|^ms/g,wX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uI=function(t){return t.charCodeAt(1)===45},UP=function(t){return t!=null&&typeof t!="boolean"},wx=vX(function(e){return uI(e)?e:e.replace(xX,"-$&").toLowerCase()}),zP=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(wX,function(r,i,o){return fo={name:i,styles:o,next:fo},i})}return yX[t]!==1&&!uI(t)&&typeof n=="number"&&n!==0?n+"px":n},SX="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Th(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return fo={name:i.name,styles:i.styles,next:fo},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fo={name:a.name,styles:a.styles,next:fo},a=a.next;var s=o.styles+";";return s}return AX(e,t,n)}case"function":{if(e!==void 0){var l=fo,u=n(e);return fo=l,Th(e,t,u)}break}}var f=n;if(t==null)return f;var c=t[f];return c!==void 0?c:f}function AX(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?PX:TX},VP=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},EX=!1,MX=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return lI(n,r,i),kX(function(){return mX(n,r,i)}),null},jX=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=VP(t,n,r),l=s||YP(i),u=!l("as");return function(){var f=arguments,c=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&c.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var d=f.length,h=1;h{t[n]=gI(e[n])}),t}function Dr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mo(e)&&mo(t)&&Object.keys(t).forEach(i=>{k.isValidElement(t[i])?r[i]=t[i]:mo(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&mo(e[i])?r[i]=Dr(e[i],t[i],n):n.clone?r[i]=mo(t[i])?gI(t[i]):t[i]:r[i]=t[i]}),r}const UX=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function zX(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=UX(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,h){const p=a.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:h)-r/100}${n})`}function f(d){return a.indexOf(d)+1r.startsWith("@container")).sort((r,i)=>{var a,s;const o=/min-width:\s*([0-9.]+)/;return+(((a=r.match(o))==null?void 0:a[1])||0)-+(((s=i.match(o))==null?void 0:s[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function YX(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function VX(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function HX(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...s)=>t(e.breakpoints.up(...s),a),o.down=(...s)=>t(e.breakpoints.down(...s),a),o.between=(...s)=>t(e.breakpoints.between(...s),a),o.only=(...s)=>t(e.breakpoints.only(...s),a),o.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const GX={borderRadius:4};function Hd(e,t){return t?Dr(e,t,{clone:!1}):e}const Mv={xs:0,sm:600,md:900,lg:1200,xl:1536},qP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mv[e]}px)`},qX={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Mv[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function pa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||qP;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||qP;return Object.keys(t).reduce((a,s)=>{if(YX(o.keys,s)){const l=VX(r.containerQueries?r:qX,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||Mv).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function KX(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function XX(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Sn(e){if(typeof e!="string")throw new Error(kl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function jv(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Cy(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=jv(e,n)||r,t&&(i=t(i,r,e)),i}function en(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=jv(l,r)||{};return pa(a,s,c=>{let d=Cy(u,i,c);return c===d&&typeof c=="string"&&(d=Cy(u,i,`${t}${c==="default"?"":Sn(c)}`,c)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function QX(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ZX={m:"margin",p:"padding"},JX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},KP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eQ=QX(e=>{if(e.length>2)if(KP[e])e=KP[e];else return[e];const[t,n]=e.split(""),r=ZX[t],i=JX[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),BO=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],FO=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...BO,...FO];function Wp(e,t,n,r){const i=jv(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o),s=i[a];return o>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:()=>{}}function UO(e){return Wp(e,"spacing",8)}function Yp(e,t){return typeof t=="string"||t==null?t:e(t)}function tQ(e,t){return n=>e.reduce((r,i)=>(r[i]=Yp(t,n),r),{})}function nQ(e,t,n,r){if(!t.includes(n))return null;const i=eQ(n),o=tQ(i,r),a=e[n];return pa(e,a,o)}function yI(e,t){const n=UO(e.theme);return Object.keys(e).map(r=>nQ(e,t,r,n)).reduce(Hd,{})}function Yt(e){return yI(e,BO)}Yt.propTypes={};Yt.filterProps=BO;function Vt(e){return yI(e,FO)}Vt.propTypes={};Vt.filterProps=FO;function vI(e=8,t=UO({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Rv(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Hd(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ti(e){return typeof e!="number"?e:`${e}px solid`}function gi(e,t){return en({prop:e,themeKey:"borders",transform:t})}const rQ=gi("border",ti),iQ=gi("borderTop",ti),oQ=gi("borderRight",ti),aQ=gi("borderBottom",ti),sQ=gi("borderLeft",ti),lQ=gi("borderColor"),uQ=gi("borderTopColor"),cQ=gi("borderRightColor"),fQ=gi("borderBottomColor"),dQ=gi("borderLeftColor"),hQ=gi("outline",ti),pQ=gi("outlineColor"),Iv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Yp(t,r)});return pa(e,e.borderRadius,n)}return null};Iv.propTypes={};Iv.filterProps=["borderRadius"];Rv(rQ,iQ,oQ,aQ,sQ,lQ,uQ,cQ,fQ,dQ,Iv,hQ,pQ);const Dv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wp(e.theme,"spacing",8),n=r=>({gap:Yp(t,r)});return pa(e,e.gap,n)}return null};Dv.propTypes={};Dv.filterProps=["gap"];const Nv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wp(e.theme,"spacing",8),n=r=>({columnGap:Yp(t,r)});return pa(e,e.columnGap,n)}return null};Nv.propTypes={};Nv.filterProps=["columnGap"];const Lv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wp(e.theme,"spacing",8),n=r=>({rowGap:Yp(t,r)});return pa(e,e.rowGap,n)}return null};Lv.propTypes={};Lv.filterProps=["rowGap"];const mQ=en({prop:"gridColumn"}),gQ=en({prop:"gridRow"}),yQ=en({prop:"gridAutoFlow"}),vQ=en({prop:"gridAutoColumns"}),bQ=en({prop:"gridAutoRows"}),xQ=en({prop:"gridTemplateColumns"}),wQ=en({prop:"gridTemplateRows"}),SQ=en({prop:"gridTemplateAreas"}),AQ=en({prop:"gridArea"});Rv(Dv,Nv,Lv,mQ,gQ,yQ,vQ,bQ,xQ,wQ,SQ,AQ);function Gu(e,t){return t==="grey"?t:e}const _Q=en({prop:"color",themeKey:"palette",transform:Gu}),OQ=en({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gu}),kQ=en({prop:"backgroundColor",themeKey:"palette",transform:Gu});Rv(_Q,OQ,kQ);function Tr(e){return e<=1&&e!==0?`${e*100}%`:e}const CQ=en({prop:"width",transform:Tr}),zO=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,o,a,s,l;const r=((a=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[n])||Mv[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Tr(n)}};return pa(e,e.maxWidth,t)}return null};zO.filterProps=["maxWidth"];const $Q=en({prop:"minWidth",transform:Tr}),PQ=en({prop:"height",transform:Tr}),TQ=en({prop:"maxHeight",transform:Tr}),EQ=en({prop:"minHeight",transform:Tr});en({prop:"size",cssProperty:"width",transform:Tr});en({prop:"size",cssProperty:"height",transform:Tr});const MQ=en({prop:"boxSizing"});Rv(CQ,zO,$Q,PQ,TQ,EQ,MQ);const Vp={border:{themeKey:"borders",transform:ti},borderTop:{themeKey:"borders",transform:ti},borderRight:{themeKey:"borders",transform:ti},borderBottom:{themeKey:"borders",transform:ti},borderLeft:{themeKey:"borders",transform:ti},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ti},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Iv},color:{themeKey:"palette",transform:Gu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gu},backgroundColor:{themeKey:"palette",transform:Gu},p:{style:Vt},pt:{style:Vt},pr:{style:Vt},pb:{style:Vt},pl:{style:Vt},px:{style:Vt},py:{style:Vt},padding:{style:Vt},paddingTop:{style:Vt},paddingRight:{style:Vt},paddingBottom:{style:Vt},paddingLeft:{style:Vt},paddingX:{style:Vt},paddingY:{style:Vt},paddingInline:{style:Vt},paddingInlineStart:{style:Vt},paddingInlineEnd:{style:Vt},paddingBlock:{style:Vt},paddingBlockStart:{style:Vt},paddingBlockEnd:{style:Vt},m:{style:Yt},mt:{style:Yt},mr:{style:Yt},mb:{style:Yt},ml:{style:Yt},mx:{style:Yt},my:{style:Yt},margin:{style:Yt},marginTop:{style:Yt},marginRight:{style:Yt},marginBottom:{style:Yt},marginLeft:{style:Yt},marginX:{style:Yt},marginY:{style:Yt},marginInline:{style:Yt},marginInlineStart:{style:Yt},marginInlineEnd:{style:Yt},marginBlock:{style:Yt},marginBlockStart:{style:Yt},marginBlockEnd:{style:Yt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Dv},rowGap:{style:Lv},columnGap:{style:Nv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tr},maxWidth:{style:zO},minWidth:{transform:Tr},height:{transform:Tr},maxHeight:{transform:Tr},minHeight:{transform:Tr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function jQ(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function RQ(e,t){return typeof e=="function"?e(t):e}function IQ(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:f,style:c}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=jv(i,u)||{};return c?c(a):pa(a,r,p=>{let m=Cy(d,f,p);return p===m&&typeof p=="string"&&(m=Cy(d,f,`${n}${p==="default"?"":Sn(p)}`,p)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??Vp;function a(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const u=KX(i.breakpoints),f=Object.keys(u);let c=u;return Object.keys(l).forEach(d=>{const h=RQ(l[d],i);if(h!=null)if(typeof h=="object")if(o[d])c=Hd(c,e(d,h,i,o));else{const p=pa({theme:i},h,m=>({[d]:m}));jQ(p,h)?c[d]=t({sx:h,theme:i}):c=Hd(c,p)}else c=Hd(c,e(d,h,i,o))}),WX(i,XX(f,c))}return Array.isArray(r)?r.map(a):a(r)}return t}const Cl=IQ();Cl.filterProps=["sx"];function DQ(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function WO(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=zX(n),l=vI(i);let u=Dr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...GX,...o}},a);return u=HX(u),u.applyStyles=DQ,u=t.reduce((f,c)=>Dr(f,c),u),u.unstable_sxConfig={...Vp,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(c){return Cl({sx:c,theme:this})},u}function NQ(e){return Object.keys(e).length===0}function LQ(e=null){const t=k.useContext(fI);return!t||NQ(t)?e:t}const BQ=WO();function bI(e=BQ){return LQ(e)}const FQ=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Vp;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function UQ(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=FQ(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return mo(s)?{...r,...s}:r}:o={...r,...t},{...i,sx:o}}const XP=e=>e,zQ=()=>{let e=XP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=XP}}},xI=zQ();function wI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Cl);return k.forwardRef(function(l,u){const f=bI(n),{className:c,component:d="div",...h}=UQ(l);return x.jsx(o,{as:d,ref:u,className:pe(c,i?i(r):r),theme:t&&f[t]||f,...h})})}const YQ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ks(e,t,n="Mui"){const r=YQ[t];return r?`${n}-${r}`:`${xI.generate(e)}-${t}`}function ba(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ks(e,i,n)}),r}function SI(e){const{variants:t,...n}=e,r={variants:t,style:GP(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=GP(i.style))}),r}const VQ=WO();function Sx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function HQ(e){return e?(t,n)=>n[e]:null}function GQ(e,t,n){e.theme=XQ(e.theme)?n:e.theme[t]||e.theme}function Rg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Rg(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...o}=n;r=o}return AI(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function AI(e,t,n=[]){var i;let r;e:for(let o=0;o{FX(s,w=>w.filter(S=>S!==Cl));const{name:u,slot:f,skipVariantsResolver:c,skipSx:d,overridesResolver:h=HQ(ZQ(f)),...p}=l,m=c!==void 0?c:f&&f!=="Root"&&f!=="root"||!1,g=d||!1;let y=Sx;f==="Root"||f==="root"?y=r:f?y=i:QQ(s)&&(y=void 0);const v=mI(s,{shouldForwardProp:y,label:KQ(),...p}),b=w=>{if(typeof w=="function"&&w.__emotion_real!==w)return function(_){return Rg(_,w)};if(mo(w)){const S=SI(w);return S.variants?function(C){return Rg(C,S)}:S.style}return w},A=(...w)=>{const S=[],_=w.map(b),C=[];if(S.push(o),u&&h&&C.push(function(E){var I,B;const T=(B=(I=E.theme.components)==null?void 0:I[u])==null?void 0:B.styleOverrides;if(!T)return null;const R={};for(const j in T)R[j]=Rg(E,T[j]);return h(E,R)}),u&&!m&&C.push(function(E){var R,I;const M=E.theme,T=(I=(R=M==null?void 0:M.components)==null?void 0:R[u])==null?void 0:I.variants;return T?AI(E,T):null}),g||C.push(Cl),Array.isArray(_[0])){const $=_.shift(),E=new Array(S.length).fill(""),M=new Array(C.length).fill("");let T;T=[...E,...$,...M],T.raw=[...E,...$.raw,...M],S.unshift(T)}const P=[...S,..._,...C],O=v(...P);return s.muiName&&(O.muiName=s.muiName),O};return v.withConfig&&(A.withConfig=v.withConfig),A}}function KQ(e,t){return void 0}function XQ(e){for(const t in e)return!1;return!0}function QQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ZQ(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function $y(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],a=t[i];if(!a)n[i]=o||{};else if(!o)n[i]=a;else{n[i]={...a};for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const l=s;n[i][l]=$y(o[l],a[l])}}}else n[i]===void 0&&(n[i]=e[i])}return n}const Eh=typeof window<"u"?k.useLayoutEffect:k.useEffect;function JQ(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function YO(e,t=0,n=1){return JQ(e,t,n)}function eZ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function vs(e){if(e.type)return e;if(e.charAt(0)==="#")return vs(eZ(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(kl(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(kl(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const tZ=e=>{const t=vs(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},kd=(e,t)=>{try{return tZ(e)}catch{return e}};function Bv(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function _I(e){e=vs(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Bv({type:s,values:l})}function NS(e){e=vs(e);let t=e.type==="hsl"||e.type==="hsla"?vs(_I(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nZ(e,t){const n=NS(e),r=NS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Na(e,t){return e=vs(e),t=YO(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Bv(e)}function Bm(e,t,n){try{return Na(e,t)}catch{return e}}function VO(e,t){if(e=vs(e),t=YO(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Bv(e)}function ft(e,t,n){try{return VO(e,t)}catch{return e}}function HO(e,t){if(e=vs(e),t=YO(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Bv(e)}function dt(e,t,n){try{return HO(e,t)}catch{return e}}function rZ(e,t=.15){return NS(e)>.5?VO(e,t):HO(e,t)}function Fm(e,t,n){try{return rZ(e,t)}catch{return e}}function QP(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function iZ(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Ri(e){return e&&e.ownerDocument||document}function xo(e){return Ri(e).defaultView||window}function LS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ta(e){const t=k.useRef(e);return Eh(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Oo(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{LS(n,t)})},e)}const ZP={};function OI(e,t){const n=k.useRef(ZP);return n.current===ZP&&(n.current=e(t)),n}const oZ=[];function aZ(e){k.useEffect(e,oZ)}class GO{constructor(){Ff(this,"currentId",null);Ff(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ff(this,"disposeEffect",()=>this.clear)}static create(){return new GO}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function sZ(){const e=OI(GO.create).current;return aZ(e.disposeEffect),e}function JP(e){try{return e.matches(":focus-visible")}catch{}return!1}function lZ(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yl(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function eT(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fZ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=pe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),p={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},m={...n,...i,...r};return h.length>0&&(m.className=h),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const a=kI({...i,...r}),s=eT(r),l=eT(i),u=t(a),f=pe(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),c={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},d={...u,...n,...l,...s};return f.length>0&&(d.className=f),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:u.ref}}function dZ(e,t,n){return typeof e=="function"?e(t,n):e}function Fv(e){var t;return parseInt(k.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const hZ=k.createContext(),pZ=()=>k.useContext(hZ)??!1,mZ=k.createContext(void 0);function gZ(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?$y(i.defaultProps,r):!i.styleOverrides&&!i.variants?$y(i,r):r}function yZ({props:e,name:t}){const n=k.useContext(mZ);return gZ({props:e,name:t,theme:{components:n}})}const tT={theme:void 0};function vZ(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(tT.theme=i.theme,o=SI(e(tT)),t=o,n=i.theme),o}}function bZ(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const nT=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},xZ=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!n||n&&!n([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}r(e)},wZ=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ax(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return xZ(e,(s,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const f=`--${n?`${n}-`:""}${s.join("-")}`,c=wZ(s,l);Object.assign(i,{[f]:c}),nT(o,s,`var(${f})`,u),nT(a,s,`var(${f}, ${c})`,u)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function SZ(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:u,css:f,varsWithDefaults:c}=Ax(l,t);let d=c;const h={},{[s]:p,...m}=o;if(Object.entries(m||{}).forEach(([b,A])=>{const{vars:w,css:S,varsWithDefaults:_}=Ax(A,t);d=Dr(d,_),h[b]={css:S,vars:w}}),p){const{css:b,vars:A,varsWithDefaults:w}=Ax(p,t);d=Dr(d,w),h[s]={css:b,vars:A}}function g(b,A){var S,_;let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),b){if(w==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((_=(S=o[b])==null?void 0:S.palette)==null?void 0:_.mode)||b})`]:{":root":A}};if(w)return e.defaultColorScheme===b?`:root, ${w.replace("%s",String(b))}`:w.replace("%s",String(b))}return":root"}return{vars:d,generateThemeVars:()=>{let b={...u};return Object.entries(h).forEach(([,{vars:A}])=>{b=Dr(b,A)}),b},generateStyleSheets:()=>{var C,P;const b=[],A=e.defaultColorScheme||"light";function w(O,$){Object.keys($).length&&b.push(typeof O=="string"?{[O]:{...$}}:O)}w(n(void 0,{...f}),f);const{[A]:S,..._}=h;if(S){const{css:O}=S,$=(P=(C=o[A])==null?void 0:C.palette)==null?void 0:P.mode,E=!r&&$?{colorScheme:$,...O}:{...O};w(n(A,{...E}),E)}return Object.entries(_).forEach(([O,{css:$}])=>{var T,R;const E=(R=(T=o[O])==null?void 0:T.palette)==null?void 0:R.mode,M=!r&&E?{colorScheme:E,...$}:{...$};w(n(O,{...M}),M)}),b}}}function AZ(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function CI(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ch.white,default:Ch.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const _Z=CI();function $I(){return{text:{primary:Ch.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ch.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const rT=$I();function iT(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=HO(e.main,i):t==="dark"&&(e.dark=VO(e.main,o)))}function OZ(e="light"){return e==="dark"?{main:nu[200],light:nu[50],dark:nu[400]}:{main:nu[700],light:nu[400],dark:nu[800]}}function kZ(e="light"){return e==="dark"?{main:tu[200],light:tu[50],dark:tu[400]}:{main:tu[500],light:tu[300],dark:tu[700]}}function CZ(e="light"){return e==="dark"?{main:eu[500],light:eu[300],dark:eu[700]}:{main:eu[700],light:eu[400],dark:eu[800]}}function $Z(e="light"){return e==="dark"?{main:ru[400],light:ru[300],dark:ru[700]}:{main:ru[700],light:ru[500],dark:ru[900]}}function PZ(e="light"){return e==="dark"?{main:iu[400],light:iu[300],dark:iu[700]}:{main:iu[800],light:iu[500],dark:iu[900]}}function TZ(e="light"){return e==="dark"?{main:Qf[400],light:Qf[300],dark:Qf[700]}:{main:"#ed6c02",light:Qf[500],dark:Qf[900]}}function qO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||OZ(t),a=e.secondary||kZ(t),s=e.error||CZ(t),l=e.info||$Z(t),u=e.success||PZ(t),f=e.warning||TZ(t);function c(m){return nZ(m,rT.text.primary)>=n?rT.text.primary:_Z.text.primary}const d=({color:m,name:g,mainShade:y=500,lightShade:v=300,darkShade:b=700})=>{if(m={...m},!m.main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(kl(11,g?` (${g})`:"",y));if(typeof m.main!="string")throw new Error(kl(12,g?` (${g})`:"",JSON.stringify(m.main)));return iT(m,"light",v,r),iT(m,"dark",b,r),m.contrastText||(m.contrastText=c(m.main)),m};let h;return t==="light"?h=CI():t==="dark"&&(h=$I()),Dr({common:{...Ch},mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:OK,contrastThreshold:n,getContrastText:c,augmentColor:d,tonalOffset:r,...h},i)}function EZ(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function MZ(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function jZ(e){return Math.round(e*1e5)/1e5}const oT={textTransform:"uppercase"},aT='"Roboto", "Helvetica", "Arial", sans-serif';function RZ(e,t){const{fontFamily:n=aT,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:f,...c}=typeof t=="function"?t(e):t,d=r/14,h=f||(g=>`${g/l*d}rem`),p=(g,y,v,b,A)=>({fontFamily:n,fontWeight:g,fontSize:h(y),lineHeight:v,...n===aT?{letterSpacing:`${jZ(b/y)}em`}:{},...A,...u}),m={h1:p(i,96,1.167,-1.5),h2:p(i,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(a,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(a,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(a,14,1.75,.4,oT),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,oT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dr({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},c,{clone:!1})}const IZ=.2,DZ=.14,NZ=.12;function Rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${IZ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${DZ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NZ})`].join(",")}const LZ=["none",Rt(0,2,1,-1,0,1,1,0,0,1,3,0),Rt(0,3,1,-2,0,2,2,0,0,1,5,0),Rt(0,3,3,-2,0,3,4,0,0,1,8,0),Rt(0,2,4,-1,0,4,5,0,0,1,10,0),Rt(0,3,5,-1,0,5,8,0,0,1,14,0),Rt(0,3,5,-1,0,6,10,0,0,1,18,0),Rt(0,4,5,-2,0,7,10,1,0,2,16,1),Rt(0,5,5,-3,0,8,10,1,0,3,14,2),Rt(0,5,6,-3,0,9,12,1,0,3,16,2),Rt(0,6,6,-3,0,10,14,1,0,4,18,3),Rt(0,6,7,-4,0,11,15,1,0,4,20,3),Rt(0,7,8,-4,0,12,17,2,0,5,22,4),Rt(0,7,8,-4,0,13,19,2,0,5,24,4),Rt(0,7,9,-4,0,14,21,2,0,5,26,4),Rt(0,8,9,-5,0,15,22,2,0,6,28,5),Rt(0,8,10,-5,0,16,24,2,0,6,30,5),Rt(0,8,11,-5,0,17,26,2,0,6,32,5),Rt(0,9,11,-5,0,18,28,2,0,7,34,6),Rt(0,9,12,-6,0,19,29,2,0,7,36,6),Rt(0,10,13,-6,0,20,31,3,0,8,38,7),Rt(0,10,13,-6,0,21,33,3,0,8,40,7),Rt(0,10,14,-6,0,22,35,3,0,8,42,7),Rt(0,11,14,-7,0,23,36,3,0,9,44,8),Rt(0,11,15,-7,0,24,38,3,0,9,46,8)],BZ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},FZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sT(e){return`${Math.round(e)}ms`}function UZ(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function zZ(e){const t={...BZ,...e.easing},n={...FZ,...e.duration};return{getAutoHeightDuration:UZ,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof a=="string"?a:sT(a)} ${s} ${typeof l=="string"?l:sT(l)}`).join(",")},...e,easing:t,duration:n}}const WZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function YZ(e){return mo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function PI(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;oDr(h,p),d),d.unstable_sxConfig={...Vp,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(p){return Cl({sx:p,theme:this})},d.toRuntimeSource=PI,d}function FS(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const VZ=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=FS(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function TI(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function EI(e){return e==="dark"?VZ:[]}function HZ(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=qO(t);return{palette:o,opacity:{...TI(o.mode),...n},overlays:r||EI(o.mode),...i}}function GZ(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const qZ=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],KZ=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return qZ(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:o?{[o.replace("%s",t)]:a,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function XZ(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function H(e,t,n){!e[t]&&n&&(e[t]=n)}function Cd(e){return!e||!e.startsWith("hsl")?e:_I(e)}function Lo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=kd(Cd(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function QZ(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const to=e=>{try{return e()}catch{}},ZZ=(e="mui")=>bZ(e);function _x(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=HZ({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:o,...a}=BS({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:o,opacity:{...TI(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||EI(i)},a}function JZ(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=GZ,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,f=Object.keys(n)[0],c=r||(n.light&&f!=="light"?"light":f),d=ZZ(o),{[c]:h,light:p,dark:m,...g}=n,y={...g};let v=h;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(kl(21,c));const b=_x(y,v,u,c);p&&!y.light&&_x(y,p,void 0,"light"),m&&!y.dark&&_x(y,m,void 0,"dark");let A={defaultColorScheme:c,...b,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:d,colorSchemes:y,font:{...EZ(b.typography),...b.font},spacing:QZ(u.spacing)};Object.keys(A.colorSchemes).forEach(P=>{const O=A.colorSchemes[P].palette,$=E=>{const M=E.split("-"),T=M[1],R=M[2];return d(E,O[T][R])};if(O.mode==="light"&&(H(O.common,"background","#fff"),H(O.common,"onBackground","#000")),O.mode==="dark"&&(H(O.common,"background","#000"),H(O.common,"onBackground","#fff")),XZ(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){H(O.Alert,"errorColor",ft(O.error.light,.6)),H(O.Alert,"infoColor",ft(O.info.light,.6)),H(O.Alert,"successColor",ft(O.success.light,.6)),H(O.Alert,"warningColor",ft(O.warning.light,.6)),H(O.Alert,"errorFilledBg",$("palette-error-main")),H(O.Alert,"infoFilledBg",$("palette-info-main")),H(O.Alert,"successFilledBg",$("palette-success-main")),H(O.Alert,"warningFilledBg",$("palette-warning-main")),H(O.Alert,"errorFilledColor",to(()=>O.getContrastText(O.error.main))),H(O.Alert,"infoFilledColor",to(()=>O.getContrastText(O.info.main))),H(O.Alert,"successFilledColor",to(()=>O.getContrastText(O.success.main))),H(O.Alert,"warningFilledColor",to(()=>O.getContrastText(O.warning.main))),H(O.Alert,"errorStandardBg",dt(O.error.light,.9)),H(O.Alert,"infoStandardBg",dt(O.info.light,.9)),H(O.Alert,"successStandardBg",dt(O.success.light,.9)),H(O.Alert,"warningStandardBg",dt(O.warning.light,.9)),H(O.Alert,"errorIconColor",$("palette-error-main")),H(O.Alert,"infoIconColor",$("palette-info-main")),H(O.Alert,"successIconColor",$("palette-success-main")),H(O.Alert,"warningIconColor",$("palette-warning-main")),H(O.AppBar,"defaultBg",$("palette-grey-100")),H(O.Avatar,"defaultBg",$("palette-grey-400")),H(O.Button,"inheritContainedBg",$("palette-grey-300")),H(O.Button,"inheritContainedHoverBg",$("palette-grey-A100")),H(O.Chip,"defaultBorder",$("palette-grey-400")),H(O.Chip,"defaultAvatarColor",$("palette-grey-700")),H(O.Chip,"defaultIconColor",$("palette-grey-700")),H(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(O.LinearProgress,"primaryBg",dt(O.primary.main,.62)),H(O.LinearProgress,"secondaryBg",dt(O.secondary.main,.62)),H(O.LinearProgress,"errorBg",dt(O.error.main,.62)),H(O.LinearProgress,"infoBg",dt(O.info.main,.62)),H(O.LinearProgress,"successBg",dt(O.success.main,.62)),H(O.LinearProgress,"warningBg",dt(O.warning.main,.62)),H(O.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),H(O.Slider,"primaryTrack",dt(O.primary.main,.62)),H(O.Slider,"secondaryTrack",dt(O.secondary.main,.62)),H(O.Slider,"errorTrack",dt(O.error.main,.62)),H(O.Slider,"infoTrack",dt(O.info.main,.62)),H(O.Slider,"successTrack",dt(O.success.main,.62)),H(O.Slider,"warningTrack",dt(O.warning.main,.62));const E=Fm(O.background.default,.8);H(O.SnackbarContent,"bg",E),H(O.SnackbarContent,"color",to(()=>O.getContrastText(E))),H(O.SpeedDialAction,"fabHoverBg",Fm(O.background.paper,.15)),H(O.StepConnector,"border",$("palette-grey-400")),H(O.StepContent,"border",$("palette-grey-400")),H(O.Switch,"defaultColor",$("palette-common-white")),H(O.Switch,"defaultDisabledColor",$("palette-grey-100")),H(O.Switch,"primaryDisabledColor",dt(O.primary.main,.62)),H(O.Switch,"secondaryDisabledColor",dt(O.secondary.main,.62)),H(O.Switch,"errorDisabledColor",dt(O.error.main,.62)),H(O.Switch,"infoDisabledColor",dt(O.info.main,.62)),H(O.Switch,"successDisabledColor",dt(O.success.main,.62)),H(O.Switch,"warningDisabledColor",dt(O.warning.main,.62)),H(O.TableCell,"border",dt(Bm(O.divider,1),.88)),H(O.Tooltip,"bg",Bm(O.grey[700],.92))}if(O.mode==="dark"){H(O.Alert,"errorColor",dt(O.error.light,.6)),H(O.Alert,"infoColor",dt(O.info.light,.6)),H(O.Alert,"successColor",dt(O.success.light,.6)),H(O.Alert,"warningColor",dt(O.warning.light,.6)),H(O.Alert,"errorFilledBg",$("palette-error-dark")),H(O.Alert,"infoFilledBg",$("palette-info-dark")),H(O.Alert,"successFilledBg",$("palette-success-dark")),H(O.Alert,"warningFilledBg",$("palette-warning-dark")),H(O.Alert,"errorFilledColor",to(()=>O.getContrastText(O.error.dark))),H(O.Alert,"infoFilledColor",to(()=>O.getContrastText(O.info.dark))),H(O.Alert,"successFilledColor",to(()=>O.getContrastText(O.success.dark))),H(O.Alert,"warningFilledColor",to(()=>O.getContrastText(O.warning.dark))),H(O.Alert,"errorStandardBg",ft(O.error.light,.9)),H(O.Alert,"infoStandardBg",ft(O.info.light,.9)),H(O.Alert,"successStandardBg",ft(O.success.light,.9)),H(O.Alert,"warningStandardBg",ft(O.warning.light,.9)),H(O.Alert,"errorIconColor",$("palette-error-main")),H(O.Alert,"infoIconColor",$("palette-info-main")),H(O.Alert,"successIconColor",$("palette-success-main")),H(O.Alert,"warningIconColor",$("palette-warning-main")),H(O.AppBar,"defaultBg",$("palette-grey-900")),H(O.AppBar,"darkBg",$("palette-background-paper")),H(O.AppBar,"darkColor",$("palette-text-primary")),H(O.Avatar,"defaultBg",$("palette-grey-600")),H(O.Button,"inheritContainedBg",$("palette-grey-800")),H(O.Button,"inheritContainedHoverBg",$("palette-grey-700")),H(O.Chip,"defaultBorder",$("palette-grey-700")),H(O.Chip,"defaultAvatarColor",$("palette-grey-300")),H(O.Chip,"defaultIconColor",$("palette-grey-300")),H(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(O.LinearProgress,"primaryBg",ft(O.primary.main,.5)),H(O.LinearProgress,"secondaryBg",ft(O.secondary.main,.5)),H(O.LinearProgress,"errorBg",ft(O.error.main,.5)),H(O.LinearProgress,"infoBg",ft(O.info.main,.5)),H(O.LinearProgress,"successBg",ft(O.success.main,.5)),H(O.LinearProgress,"warningBg",ft(O.warning.main,.5)),H(O.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),H(O.Slider,"primaryTrack",ft(O.primary.main,.5)),H(O.Slider,"secondaryTrack",ft(O.secondary.main,.5)),H(O.Slider,"errorTrack",ft(O.error.main,.5)),H(O.Slider,"infoTrack",ft(O.info.main,.5)),H(O.Slider,"successTrack",ft(O.success.main,.5)),H(O.Slider,"warningTrack",ft(O.warning.main,.5));const E=Fm(O.background.default,.98);H(O.SnackbarContent,"bg",E),H(O.SnackbarContent,"color",to(()=>O.getContrastText(E))),H(O.SpeedDialAction,"fabHoverBg",Fm(O.background.paper,.15)),H(O.StepConnector,"border",$("palette-grey-600")),H(O.StepContent,"border",$("palette-grey-600")),H(O.Switch,"defaultColor",$("palette-grey-300")),H(O.Switch,"defaultDisabledColor",$("palette-grey-600")),H(O.Switch,"primaryDisabledColor",ft(O.primary.main,.55)),H(O.Switch,"secondaryDisabledColor",ft(O.secondary.main,.55)),H(O.Switch,"errorDisabledColor",ft(O.error.main,.55)),H(O.Switch,"infoDisabledColor",ft(O.info.main,.55)),H(O.Switch,"successDisabledColor",ft(O.success.main,.55)),H(O.Switch,"warningDisabledColor",ft(O.warning.main,.55)),H(O.TableCell,"border",ft(Bm(O.divider,1),.68)),H(O.Tooltip,"bg",Bm(O.grey[700],.92))}Lo(O.background,"default"),Lo(O.background,"paper"),Lo(O.common,"background"),Lo(O.common,"onBackground"),Lo(O,"divider"),Object.keys(O).forEach(E=>{const M=O[E];M&&typeof M=="object"&&(M.main&&H(O[E],"mainChannel",kd(Cd(M.main))),M.light&&H(O[E],"lightChannel",kd(Cd(M.light))),M.dark&&H(O[E],"darkChannel",kd(Cd(M.dark))),M.contrastText&&H(O[E],"contrastTextChannel",kd(Cd(M.contrastText))),E==="text"&&(Lo(O[E],"primary"),Lo(O[E],"secondary")),E==="action"&&(M.active&&Lo(O[E],"active"),M.selected&&Lo(O[E],"selected")))})}),A=t.reduce((P,O)=>Dr(P,O),A);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:KZ(A)},{vars:S,generateThemeVars:_,generateStyleSheets:C}=SZ(A,w);return A.vars=S,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([P,O])=>{A[P]=O}),A.generateThemeVars=_,A.generateStyleSheets=C,A.generateSpacing=function(){return vI(u.spacing,UO(this))},A.getColorSchemeSelector=AZ(s),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=a,A.unstable_sxConfig={...Vp,...u==null?void 0:u.unstable_sxConfig},A.unstable_sx=function(O){return Cl({sx:O,theme:this})},A.toRuntimeSource=PI,A}function lT(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qO({...n===!0?{}:n.palette,mode:t})})}function MI(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...a}=e,s=o||"light",l=i==null?void 0:i[s],u={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return BS(e,...t);let f=n;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const c=BS({...e,palette:f},...t);return c.defaultColorScheme=s,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={...u.light!==!0&&u.light,palette:c.palette},lT(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:c.palette},lT(c,"light",u.light)),c}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),JZ({...a,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const jI=MI();function Hp(){const e=bI(jI);return e[TO]||e}function eJ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Uv=e=>eJ(e)&&e!=="classes",rr=qQ({themeId:TO,defaultTheme:jI,rootShouldForwardProp:Uv}),df=vZ;function xa(e){return yZ(e)}function RI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function US(e,t){return US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},US(e,t)}function II(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,US(e,t)}const uT={disabled:!1},Py=F.createContext(null);var tJ=function(t){return t.scrollTop},$d="unmounted",Bs="exited",Fs="entering",yu="entered",zS="exiting",jo=function(e){II(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Bs,o.appearStatus=Fs):l=yu:r.unmountOnExit||r.mountOnEnter?l=$d:l=Bs,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===$d?{status:Bs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Fs&&a!==yu&&(o=Fs):(a===Fs||a===yu)&&(o=zS)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Fs){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:jm.findDOMNode(this);a&&tJ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bs&&this.setState({status:$d})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[jm.findDOMNode(this),s],u=l[0],f=l[1],c=this.getTimeouts(),d=s?c.appear:c.enter;if(!i&&!a||uT.disabled){this.safeSetState({status:yu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Fs},function(){o.props.onEntering(u,f),o.onTransitionEnd(d,function(){o.safeSetState({status:yu},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:jm.findDOMNode(this);if(!o||uT.disabled){this.safeSetState({status:Bs},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:zS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Bs},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:jm.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$d)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=RI(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(Py.Provider,{value:null},typeof a=="function"?a(i,s):F.cloneElement(F.Children.only(a),s))},t}(F.Component);jo.contextType=Py;jo.propTypes={};function ou(){}jo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ou,onEntering:ou,onEntered:ou,onExit:ou,onExiting:ou,onExited:ou};jo.UNMOUNTED=$d;jo.EXITED=Bs;jo.ENTERING=Fs;jo.ENTERED=yu;jo.EXITING=zS;function nJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KO(e,t){var n=function(o){return t&&k.isValidElement(o)?t(o):o},r=Object.create(null);return e&&k.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function rJ(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Mh(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function lJ(e){return ks("MuiPaper",e)}ba("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const uJ=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Yl(o,lJ,i)},cJ=rr("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(df(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fJ=k.forwardRef(function(t,n){var h;const r=xa({props:t,name:"MuiPaper"}),i=Hp(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:u="elevation",...f}=r,c={...r,component:a,elevation:s,square:l,variant:u},d=uJ(c);return x.jsx(cJ,{as:a,ownerState:c,className:pe(d.root,o),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":(h=i.vars.overlays)==null?void 0:h[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Na("#fff",FS(s))}, ${Na("#fff",FS(s))})`}},...f.style}})});function Ty(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:s,...l}=t,{component:u,slots:f={[e]:void 0},slotProps:c={[e]:void 0},...d}=o,h=f[e]||r,p=dZ(c[e],i),{props:{component:m,...g},internalRef:y}=fZ({className:n,...l,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:p}),v=Oo(y,p==null?void 0:p.ref,t.ref),b=a?a(g):{},A={...i,...b},w=e==="root"?m||u:m,S=cZ(h,{...e==="root"&&!u&&!f[e]&&s,...e!=="root"&&!f[e]&&s,...g,...w&&{as:w},ref:v},A);return Object.keys(b).forEach(_=>{delete S[_]}),[h,S]}class Ey{constructor(){Ff(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ey}static use(){const t=OI(Ey.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=hJ(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function dJ(){return Ey.use()}function hJ(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function pJ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[f,c]=k.useState(!1),d=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},p=pe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!s&&!f&&c(!0),k.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,s,u]),x.jsx("span",{className:d,style:h,children:x.jsx("span",{className:p})})}const Qr=ba("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),WS=550,mJ=80,gJ=LO` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,yJ=LO` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,vJ=LO` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,bJ=rr("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xJ=rr(pJ,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Qr.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${gJ}; + animation-duration: ${WS}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${Qr.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${Qr.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Qr.childLeaving} { + opacity: 0; + animation-name: ${yJ}; + animation-duration: ${WS}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${Qr.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${vJ}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,wJ=k.forwardRef(function(t,n){const r=xa({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=r,[l,u]=k.useState([]),f=k.useRef(0),c=k.useRef(null);k.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const d=k.useRef(!1),h=sZ(),p=k.useRef(null),m=k.useRef(null),g=k.useCallback(A=>{const{pulsate:w,rippleX:S,rippleY:_,rippleSize:C,cb:P}=A;u(O=>[...O,x.jsx(xJ,{classes:{ripple:pe(o.ripple,Qr.ripple),rippleVisible:pe(o.rippleVisible,Qr.rippleVisible),ripplePulsate:pe(o.ripplePulsate,Qr.ripplePulsate),child:pe(o.child,Qr.child),childLeaving:pe(o.childLeaving,Qr.childLeaving),childPulsate:pe(o.childPulsate,Qr.childPulsate)},timeout:WS,pulsate:w,rippleX:S,rippleY:_,rippleSize:C},f.current)]),f.current+=1,c.current=P},[o]),y=k.useCallback((A={},w={},S=()=>{})=>{const{pulsate:_=!1,center:C=i||w.pulsate,fakeElement:P=!1}=w;if((A==null?void 0:A.type)==="mousedown"&&d.current){d.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(d.current=!0);const O=P?null:m.current,$=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,M,T;if(C||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)E=Math.round($.width/2),M=Math.round($.height/2);else{const{clientX:R,clientY:I}=A.touches&&A.touches.length>0?A.touches[0]:A;E=Math.round(R-$.left),M=Math.round(I-$.top)}if(C)T=Math.sqrt((2*$.width**2+$.height**2)/3),T%2===0&&(T+=1);else{const R=Math.max(Math.abs((O?O.clientWidth:0)-E),E)*2+2,I=Math.max(Math.abs((O?O.clientHeight:0)-M),M)*2+2;T=Math.sqrt(R**2+I**2)}A!=null&&A.touches?p.current===null&&(p.current=()=>{g({pulsate:_,rippleX:E,rippleY:M,rippleSize:T,cb:S})},h.start(mJ,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:_,rippleX:E,rippleY:M,rippleSize:T,cb:S})},[i,g,h]),v=k.useCallback(()=>{y({},{pulsate:!0})},[y]),b=k.useCallback((A,w)=>{if(h.clear(),(A==null?void 0:A.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{b(A,w)});return}p.current=null,u(S=>S.length>0?S.slice(1):S),c.current=w},[h]);return k.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:b}),[v,y,b]),x.jsx(bJ,{className:pe(Qr.root,o.root,a),ref:m,...s,children:x.jsx(XO,{component:null,exit:!0,children:l})})});function SJ(e){return ks("MuiButtonBase",e)}const AJ=ba("MuiButtonBase",["root","disabled","focusVisible"]),_J=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Yl({root:["root",t&&"disabled",n&&"focusVisible"]},SJ,i);return n&&r&&(a.root+=` ${r}`),a},OJ=rr("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${AJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kJ=k.forwardRef(function(t,n){const r=xa({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:y,onDragLeave:v,onFocus:b,onFocusVisible:A,onKeyDown:w,onKeyUp:S,onMouseDown:_,onMouseLeave:C,onMouseUp:P,onTouchEnd:O,onTouchMove:$,onTouchStart:E,tabIndex:M=0,TouchRippleProps:T,touchRippleRef:R,type:I,...B}=r,j=k.useRef(null),N=dJ(),z=Oo(N.ref,R),[X,Y]=k.useState(!1);u&&X&&Y(!1),k.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),j.current.focus()}}),[]);const K=N.shouldMount&&!f&&!u;k.useEffect(()=>{X&&d&&!f&&N.pulsate()},[f,d,X,N]);function Q(he,Nn,tn=c){return ta(ir=>(Nn&&Nn(ir),tn||N[he](ir),!0))}const re=Q("start",_),ne=Q("stop",y),fe=Q("stop",v),de=Q("stop",P),q=Q("stop",he=>{X&&he.preventDefault(),C&&C(he)}),ee=Q("start",E),ie=Q("stop",O),W=Q("stop",$),ve=Q("stop",he=>{JP(he.target)||Y(!1),m&&m(he)},!1),xe=ta(he=>{j.current||(j.current=he.currentTarget),JP(he.target)&&(Y(!0),A&&A(he)),b&&b(he)}),Le=()=>{const he=j.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},qe=ta(he=>{d&&!he.repeat&&X&&he.key===" "&&N.stop(he,()=>{N.start(he)}),he.target===he.currentTarget&&Le()&&he.key===" "&&he.preventDefault(),w&&w(he),he.target===he.currentTarget&&Le()&&he.key==="Enter"&&!u&&(he.preventDefault(),g&&g(he))}),We=ta(he=>{d&&he.key===" "&&X&&!he.defaultPrevented&&N.stop(he,()=>{N.pulsate(he)}),S&&S(he),g&&he.target===he.currentTarget&&Le()&&he.key===" "&&!he.defaultPrevented&&g(he)});let wt=l;wt==="button"&&(B.href||B.to)&&(wt=p);const Lt={};wt==="button"?(Lt.type=I===void 0?"button":I,Lt.disabled=u):(!B.href&&!B.to&&(Lt.role="button"),u&&(Lt["aria-disabled"]=u));const Et=Oo(n,j),St={...r,centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:X},at=_J(St);return x.jsxs(OJ,{as:wt,className:pe(at.root,s),ownerState:St,onBlur:ve,onClick:g,onContextMenu:ne,onFocus:xe,onKeyDown:qe,onKeyUp:We,onMouseDown:re,onMouseLeave:q,onMouseUp:de,onDragLeave:fe,onTouchEnd:ie,onTouchMove:W,onTouchStart:ee,ref:Et,tabIndex:u?-1:M,type:I,...Lt,...B,children:[a,K?x.jsx(wJ,{ref:z,center:o,...T}):null]})});function CJ(e){return typeof e.main=="string"}function $J(e,t=[]){if(!CJ(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function PJ(e=[]){return([,t])=>t&&$J(t,e)}function TJ(e){return typeof e=="function"?e():e}const EJ=k.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=k.useState(null),l=Oo(k.isValidElement(r)?Fv(r):null,n);if(Eh(()=>{o||s(TJ(i)||document.body)},[i,o]),Eh(()=>{if(a&&!o)return LS(n,a),()=>{LS(n,null)}},[n,a,o]),o){if(k.isValidElement(r)){const u={ref:l};return k.cloneElement(r,u)}return x.jsx(k.Fragment,{children:r})}return x.jsx(k.Fragment,{children:a&&_c.createPortal(r,a)})}),MJ={entering:{opacity:1},entered:{opacity:1}},jJ=k.forwardRef(function(t,n){const r=Hp(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:f,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:m,style:g,timeout:y=i,TransitionComponent:v=jo,...b}=t,A=k.useRef(null),w=Oo(A,Fv(s),n),S=T=>R=>{if(T){const I=A.current;R===void 0?T(I):T(I,R)}},_=S(d),C=S((T,R)=>{DI(T);const I=Mh({style:g,timeout:y,easing:l},{mode:"enter"});T.style.webkitTransition=r.transitions.create("opacity",I),T.style.transition=r.transitions.create("opacity",I),f&&f(T,R)}),P=S(c),O=S(m),$=S(T=>{const R=Mh({style:g,timeout:y,easing:l},{mode:"exit"});T.style.webkitTransition=r.transitions.create("opacity",R),T.style.transition=r.transitions.create("opacity",R),h&&h(T)}),E=S(p),M=T=>{o&&o(A.current,T)};return x.jsx(v,{appear:a,in:u,nodeRef:A,onEnter:C,onEntered:P,onEntering:_,onExit:$,onExited:E,onExiting:O,addEndListener:M,timeout:y,...b,children:(T,R)=>k.cloneElement(s,{style:{opacity:0,visibility:T==="exited"&&!u?"hidden":void 0,...MJ[T],...g,...s.props.style},ref:w,...R})})});function RJ(e){return ks("MuiBackdrop",e)}ba("MuiBackdrop",["root","invisible"]);const IJ=e=>{const{ownerState:t,...n}=e;return n},DJ=e=>{const{classes:t,invisible:n}=e;return Yl({root:["root",n&&"invisible"]},RJ,t)},NJ=rr("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),LJ=k.forwardRef(function(t,n){const r=xa({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:u={},componentsProps:f={},slotProps:c={},slots:d={},TransitionComponent:h,transitionDuration:p,...m}=r,g={...r,component:a,invisible:s},y=DJ(g),v={transition:h,root:u.Root,...d},b={...f,...c},A={slots:v,slotProps:b},[w,S]=Ty("root",{elementType:NJ,externalForwardedProps:A,className:pe(y.root,o),ownerState:g}),[_,C]=Ty("transition",{elementType:jJ,externalForwardedProps:A,ownerState:g}),P=IJ(C);return x.jsx(_,{in:l,timeout:p,...m,...P,children:x.jsx(w,{"aria-hidden":!0,...S,classes:y,ref:n,children:i})})}),BJ=ba("MuiBox",["root"]),FJ=MI(),UJ=WQ({themeId:TO,defaultTheme:FJ,defaultClassName:BJ.root,generateClassName:xI.generate});function zJ(e){return ks("MuiButton",e)}const au=ba("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),WJ=k.createContext({}),YJ=k.createContext(void 0),VJ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${Sn(t)}`,`size${Sn(i)}`,`${o}Size${Sn(i)}`,`color${Sn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Sn(i)}`],endIcon:["icon","endIcon",`iconSize${Sn(i)}`]},l=Yl(s,zJ,a);return{...a,...l}},NI=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],HJ=rr(kJ,{shouldForwardProp:e=>Uv(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Sn(n.color)}`],t[`size${Sn(n.size)}`],t[`${n.variant}Size${Sn(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(df(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${au.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${au.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${au.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${au.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(PJ()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Na(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Na(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Na(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Na(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Na(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${au.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${au.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),GJ=rr("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Sn(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...NI]}),qJ=rr("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Sn(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...NI]}),KJ=k.forwardRef(function(t,n){const r=k.useContext(WJ),i=k.useContext(YJ),o=$y(r,t),a=xa({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:f,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:m,fullWidth:g=!1,size:y="medium",startIcon:v,type:b,variant:A="text",...w}=a,S={...a,color:l,component:u,disabled:c,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:y,type:b,variant:A},_=VJ(S),C=v&&x.jsx(GJ,{className:_.startIcon,ownerState:S,children:v}),P=p&&x.jsx(qJ,{className:_.endIcon,ownerState:S,children:p}),O=i||"";return x.jsxs(HJ,{ownerState:S,className:pe(r.className,_.root,f,O),component:u,disabled:c,focusRipple:!h,focusVisibleClassName:pe(_.focusVisible,m),ref:n,type:b,...w,classes:_,children:[C,s,P]})});function XJ(e){const t=Ri(e);return t.body===e?xo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Gd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cT(e){return parseInt(xo(e).getComputedStyle(e).paddingRight,10)||0}function QJ(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function fT(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!QJ(a);s&&l&&Gd(a,i)})}function Ox(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function ZJ(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(XJ(r)){const a=lZ(xo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cT(r)+a}px`;const s=Ri(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cT(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ri(r).body;else{const a=r.parentElement,s=xo(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function JJ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class eee{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Gd(t.modalRef,!1);const i=JJ(n);fT(n,t.mount,t.modalRef,i,!0);const o=Ox(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Ox(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=ZJ(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Ox(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Gd(t.modalRef,n),fT(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Gd(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const tee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nee(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ree(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function iee(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ree(e))}function oee(e){const t=[],n=[];return Array.from(e.querySelectorAll(tee)).forEach((r,i)=>{const o=nee(r);o===-1||!iee(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function aee(){return!0}function see(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=oee,isEnabled:a=aee,open:s}=e,l=k.useRef(!1),u=k.useRef(null),f=k.useRef(null),c=k.useRef(null),d=k.useRef(null),h=k.useRef(!1),p=k.useRef(null),m=Oo(Fv(t),p),g=k.useRef(null);k.useEffect(()=>{!s||!p.current||(h.current=!n)},[n,s]),k.useEffect(()=>{if(!s||!p.current)return;const b=Ri(p.current);return p.current.contains(b.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(c.current&&c.current.focus&&(l.current=!0,c.current.focus()),c.current=null)}},[s]),k.useEffect(()=>{if(!s||!p.current)return;const b=Ri(p.current),A=_=>{g.current=_,!(r||!a()||_.key!=="Tab")&&b.activeElement===p.current&&_.shiftKey&&(l.current=!0,f.current&&f.current.focus())},w=()=>{var P,O;const _=p.current;if(_===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(_.contains(b.activeElement)||r&&b.activeElement!==u.current&&b.activeElement!==f.current)return;if(b.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((b.activeElement===u.current||b.activeElement===f.current)&&(C=o(p.current)),C.length>0){const $=!!((P=g.current)!=null&&P.shiftKey&&((O=g.current)==null?void 0:O.key)==="Tab"),E=C[0],M=C[C.length-1];typeof E!="string"&&typeof M!="string"&&($?M.focus():E.focus())}else _.focus()};b.addEventListener("focusin",w),b.addEventListener("keydown",A,!0);const S=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(S),b.removeEventListener("focusin",w),b.removeEventListener("keydown",A,!0)}},[n,r,i,a,s,o]);const y=b=>{c.current===null&&(c.current=b.relatedTarget),h.current=!0,d.current=b.target;const A=t.props.onFocus;A&&A(b)},v=b=>{c.current===null&&(c.current=b.relatedTarget),h.current=!0};return x.jsxs(k.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:m,onFocus:y}),x.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:f,"data-testid":"sentinelEnd"})]})}function lee(e){return typeof e=="function"?e():e}function uee(e){return e?e.props.hasOwnProperty("in"):!1}const Um=new eee;function cee(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:f}=e,c=k.useRef({}),d=k.useRef(null),h=k.useRef(null),p=Oo(h,f),[m,g]=k.useState(!u),y=uee(s);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const b=()=>Ri(d.current),A=()=>(c.current.modalRef=h.current,c.current.mount=d.current,c.current),w=()=>{Um.mount(A(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},S=ta(()=>{const R=lee(t)||b().body;Um.add(A(),R),h.current&&w()}),_=()=>Um.isTopModal(A()),C=ta(R=>{d.current=R,R&&(u&&_()?w():h.current&&Gd(h.current,v))}),P=k.useCallback(()=>{Um.remove(A(),v)},[v]);k.useEffect(()=>()=>{P()},[P]),k.useEffect(()=>{u?S():(!y||!i)&&P()},[u,P,y,i,S]);const O=R=>I=>{var B;(B=R.onKeyDown)==null||B.call(R,I),!(I.key!=="Escape"||I.which===229||!_())&&(n||(I.stopPropagation(),l&&l(I,"escapeKeyDown")))},$=R=>I=>{var B;(B=R.onClick)==null||B.call(R,I),I.target===I.currentTarget&&l&&l(I,"backdropClick")};return{getRootProps:(R={})=>{const I=kI(e);delete I.onTransitionEnter,delete I.onTransitionExited;const B={...I,...R};return{role:"presentation",...B,onKeyDown:O(B),ref:p}},getBackdropProps:(R={})=>{const I=R;return{"aria-hidden":!0,...I,onClick:$(I),open:u}},getTransitionProps:()=>{const R=()=>{g(!1),o&&o()},I=()=>{g(!0),a&&a(),i&&P()};return{onEnter:QP(R,s==null?void 0:s.props.onEnter),onExited:QP(I,s==null?void 0:s.props.onExited)}},rootRef:p,portalRef:C,isTopModal:_,exited:m,hasTransition:y}}function fee(e){return ks("MuiModal",e)}ba("MuiModal",["root","hidden","backdrop"]);const dee=e=>{const{open:t,exited:n,classes:r}=e;return Yl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fee,r)},hee=rr("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(df(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),pee=rr(LJ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mee=k.forwardRef(function(t,n){const r=xa({name:"MuiModal",props:t}),{BackdropComponent:i=pee,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:u,container:f,component:c,components:d={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:y=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:A=!1,keepMounted:w=!1,onBackdropClick:S,onClose:_,onTransitionEnter:C,onTransitionExited:P,open:O,slotProps:$={},slots:E={},theme:M,...T}=r,R={...r,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:y,disableRestoreFocus:v,disableScrollLock:b,hideBackdrop:A,keepMounted:w},{getRootProps:I,getBackdropProps:B,getTransitionProps:j,portalRef:N,isTopModal:z,exited:X,hasTransition:Y}=cee({...R,rootRef:n}),K={...R,exited:X},Q=dee(K),re={};if(u.props.tabIndex===void 0&&(re.tabIndex="-1"),Y){const{onEnter:W,onExited:ve}=j();re.onEnter=W,re.onExited=ve}const ne={...T,slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...h,...$}},[fe,de]=Ty("root",{elementType:hee,externalForwardedProps:ne,getSlotProps:I,additionalProps:{ref:n,as:c},ownerState:K,className:pe(s,Q==null?void 0:Q.root,!K.open&&K.exited&&(Q==null?void 0:Q.hidden))}),[q,ee]=Ty("backdrop",{elementType:i,externalForwardedProps:ne,additionalProps:o,getSlotProps:W=>B({...W,onClick:ve=>{S&&S(ve),W!=null&&W.onClick&&W.onClick(ve)}}),className:pe(o==null?void 0:o.className,Q==null?void 0:Q.backdrop),ownerState:K}),ie=Oo(o==null?void 0:o.ref,ee.ref);return!w&&!O&&(!Y||X)?null:x.jsx(EJ,{ref:N,container:f,disablePortal:y,children:x.jsxs(fe,{...de,children:[!A&&i?x.jsx(q,{...ee,ref:ie}):null,x.jsx(see,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:v,isEnabled:z,open:O,children:k.cloneElement(u,re)})]})})});function gee(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=xo(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function yee(e){return typeof e=="function"?e():e}function zm(e,t,n){const r=yee(n),i=gee(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const vee=k.forwardRef(function(t,n){const r=Hp(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:f="down",easing:c=i,in:d,onEnter:h,onEntered:p,onEntering:m,onExit:g,onExited:y,onExiting:v,style:b,timeout:A=o,TransitionComponent:w=jo,...S}=t,_=k.useRef(null),C=Oo(Fv(l),_,n),P=j=>N=>{j&&(N===void 0?j(_.current):j(_.current,N))},O=P((j,N)=>{zm(f,j,u),DI(j),h&&h(j,N)}),$=P((j,N)=>{const z=Mh({timeout:A,style:b,easing:c},{mode:"enter"});j.style.webkitTransition=r.transitions.create("-webkit-transform",{...z}),j.style.transition=r.transitions.create("transform",{...z}),j.style.webkitTransform="none",j.style.transform="none",m&&m(j,N)}),E=P(p),M=P(v),T=P(j=>{const N=Mh({timeout:A,style:b,easing:c},{mode:"exit"});j.style.webkitTransition=r.transitions.create("-webkit-transform",N),j.style.transition=r.transitions.create("transform",N),zm(f,j,u),g&&g(j)}),R=P(j=>{j.style.webkitTransition="",j.style.transition="",y&&y(j)}),I=j=>{a&&a(_.current,j)},B=k.useCallback(()=>{_.current&&zm(f,_.current,u)},[f,u]);return k.useEffect(()=>{if(d||f==="down"||f==="right")return;const j=iZ(()=>{_.current&&zm(f,_.current,u)}),N=xo(_.current);return N.addEventListener("resize",j),()=>{j.clear(),N.removeEventListener("resize",j)}},[f,d,u]),k.useEffect(()=>{d||B()},[d,B]),x.jsx(w,{nodeRef:_,onEnter:O,onEntered:E,onEntering:$,onExit:T,onExited:R,onExiting:M,addEndListener:I,appear:s,in:d,timeout:A,...S,children:(j,N)=>k.cloneElement(l,{ref:C,style:{visibility:j==="exited"&&!d?"hidden":void 0,...b,...l.props.style},...N})})});function bee(e){return ks("MuiDrawer",e)}ba("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const LI=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},xee=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Sn(n)}`,r!=="temporary"&&`paperAnchorDocked${Sn(n)}`]};return Yl(i,bee,t)},wee=rr(mee,{name:"MuiDrawer",slot:"Root",overridesResolver:LI})(df(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),dT=rr("div",{shouldForwardProp:Uv,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:LI})({flex:"0 0 auto"}),See=rr(fJ,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Sn(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Sn(n.anchor)}`]]}})(df(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),BI={left:"right",right:"left",top:"down",bottom:"up"};function Ys(e){return["left","right"].includes(e)}function Pd({direction:e},t){return e==="rtl"&&Ys(t)?BI[t]:t}const Aee=k.forwardRef(function(t,n){const r=xa({props:t,name:"MuiDrawer"}),i=Hp(),o=pZ(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:u,className:f,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:h,...p}={},onClose:m,open:g=!1,PaperProps:y={},SlideProps:v,TransitionComponent:b=vee,transitionDuration:A=a,variant:w="temporary",...S}=r,_=k.useRef(!1);k.useEffect(()=>{_.current=!0},[]);const C=Pd({direction:o?"rtl":"ltr"},s),O={...r,anchor:s,elevation:c,open:g,variant:w,...S},$=xee(O),E=x.jsx(See,{elevation:w==="temporary"?c:0,square:!0,...y,className:pe($.paper,y.className),ownerState:O,children:u});if(w==="permanent")return x.jsx(dT,{className:pe($.root,$.docked,f),ownerState:O,ref:n,...S,children:E});const M=x.jsx(b,{in:g,direction:BI[C],timeout:A,appear:_.current,...v,children:E});return w==="persistent"?x.jsx(dT,{className:pe($.root,$.docked,f),ownerState:O,ref:n,...S,children:M}):x.jsx(wee,{BackdropProps:{...l,...h,transitionDuration:A},className:pe($.root,$.modal,f),open:g,ownerState:O,onClose:m,hideBackdrop:d,ref:n,...S,...p,children:M})}),_ee=k.createContext({});function Oee(e){return ks("MuiList",e)}ba("MuiList",["root","padding","dense","subheader"]);const kee=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Yl({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Oee,t)},Cee=rr("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),$ee=k.forwardRef(function(t,n){const r=xa({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u,...f}=r,c=k.useMemo(()=>({dense:s}),[s]),d={...r,component:a,dense:s,disablePadding:l},h=kee(d);return x.jsx(_ee.Provider,{value:c,children:x.jsxs(Cee,{as:a,className:pe(h.root,o),ref:n,ownerState:d,...f,children:[u,i]})})});function Pee(e){const{children:t,defer:n=!1,fallback:r=null}=e,[i,o]=k.useState(!1);return Eh(()=>{n||o(!0)},[n]),k.useEffect(()=>{n&&o(!0)},[n]),x.jsx(k.Fragment,{children:i?t:r})}const Tee=rr("div",{shouldForwardProp:Uv})(df(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),Eee=k.forwardRef(function(t,n){const{anchor:r,classes:i={},className:o,width:a,style:s,...l}=t,u=t;return x.jsx(Tee,{className:pe("PrivateSwipeArea-root",i.root,i[`anchor${Sn(r)}`],o),ref:n,style:{[Ys(r)?"width":"height"]:a,...s},ownerState:u,...l})}),Wm=3,kx=20;let Bo=null;function Cx(e,t,n){return e==="right"?n.body.offsetWidth-t[0].pageX:t[0].pageX}function $x(e,t,n){return e==="bottom"?n.innerHeight-t[0].clientY:t[0].clientY}function Jf(e,t){return e?t.clientWidth:t.clientHeight}function hT(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}function Mee(e,t){const n=[];for(;e&&e!==t.parentElement;){const r=xo(t).getComputedStyle(e);r.getPropertyValue("position")==="absolute"||r.getPropertyValue("overflow-x")==="hidden"||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}function jee({domTreeShapes:e,start:t,current:n,anchor:r}){const i={scrollPosition:{x:"scrollLeft",y:"scrollTop"},scrollLength:{x:"scrollWidth",y:"scrollHeight"},clientLength:{x:"clientWidth",y:"clientHeight"}};return e.some(o=>{let a=n>=t;(r==="top"||r==="left")&&(a=!a);const s=r==="left"||r==="right"?"x":"y",l=Math.round(o[i.scrollPosition[s]]),u=l>0,f=l+o[i.clientLength[s]]{B.current=null},[v]);const j=k.useCallback((K,Q={})=>{const{mode:re=null,changeTransition:ne=!0}=Q,fe=Pd(i,a),de=["right","bottom"].includes(fe)?1:-1,q=Ys(a),ee=q?`translate(${de*K}px, 0)`:`translate(0, ${de*K}px)`,ie=T.current.style;ie.webkitTransform=ee,ie.transform=ee;let W="";if(re&&(W=i.transitions.create("all",Mh({easing:void 0,style:void 0,timeout:S},{mode:re}))),ne&&(ie.webkitTransition=W,ie.transition=W),!s&&!f){const ve=M.current.style;ve.opacity=1-K/Jf(q,T.current),ne&&(ve.webkitTransition=W,ve.transition=W)}},[a,s,f,i,S]),N=ta(K=>{if(!I.current)return;if(Bo=null,I.current=!1,_c.flushSync(()=>{O(!1)}),!$.current.isSwiping){$.current.isSwiping=null;return}$.current.isSwiping=null;const Q=Pd(i,a),re=Ys(a);let ne;re?ne=Cx(Q,K.changedTouches,Ri(K.currentTarget)):ne=$x(Q,K.changedTouches,xo(K.currentTarget));const fe=re?$.current.startX:$.current.startY,de=Jf(re,T.current),q=hT(ne,fe,v,de),ee=q/de;if(Math.abs($.current.velocity)>h&&(B.current=Math.abs((de-q)/$.current.velocity)*1e3),v){$.current.velocity>h||ee>c?g():j(0,{mode:"exit"});return}$.current.velocity<-h||1-ee>c?y():j(Jf(re,T.current),{mode:"enter"})}),z=(K=!1)=>{if(!P){(K||!(l&&d))&&_c.flushSync(()=>{O(!0)});const Q=Ys(a);!v&&T.current&&j(Jf(Q,T.current)+(l?15:-kx),{changeTransition:!1}),$.current.velocity=0,$.current.lastTime=null,$.current.lastTranslate=null,$.current.paperHit=!1,I.current=!0}},X=ta(K=>{if(!T.current||!I.current||Bo!==null&&Bo!==$.current)return;z(!0);const Q=Pd(i,a),re=Ys(a),ne=Cx(Q,K.touches,Ri(K.currentTarget)),fe=$x(Q,K.touches,xo(K.currentTarget));if(v&&T.current.contains(K.target)&&Bo===null){const W=Mee(K.target,T.current);if(jee({domTreeShapes:W,start:re?$.current.startX:$.current.startY,current:re?ne:fe,anchor:a})){Bo=!0;return}Bo=$.current}if($.current.isSwiping==null){const W=Math.abs(ne-$.current.startX),ve=Math.abs(fe-$.current.startY),xe=re?W>ve&&W>Wm:ve>W&&ve>Wm;if(xe&&K.cancelable&&K.preventDefault(),xe===!0||(re?ve>Wm:W>Wm)){if($.current.isSwiping=xe,!xe){N(K);return}$.current.startX=ne,$.current.startY=fe,!l&&!v&&(re?$.current.startX-=kx:$.current.startY-=kx)}}if(!$.current.isSwiping)return;const de=Jf(re,T.current);let q=re?$.current.startX:$.current.startY;v&&!$.current.paperHit&&(q=Math.min(q,de));const ee=hT(re?ne:fe,q,v,de);if(v)if($.current.paperHit)ee===0&&($.current.startX=ne,$.current.startY=fe);else if(re?ne{var de;if(K.defaultPrevented||K.defaultMuiPrevented||v&&(f||!M.current.contains(K.target))&&!T.current.contains(K.target))return;const Q=Pd(i,a),re=Ys(a),ne=Cx(Q,K.touches,Ri(K.currentTarget)),fe=$x(Q,K.touches,xo(K.currentTarget));if(!v){if(u||!(K.target===E.current||(de=T.current)!=null&&de.contains(K.target)&&(typeof d=="function"?d(K,E.current,T.current):d)))return;if(re){if(ne>w)return}else if(fe>w)return}K.defaultMuiPrevented=!0,Bo=null,$.current.startX=ne,$.current.startY=fe,z()});return k.useEffect(()=>{if(_==="temporary"){const K=Ri(T.current);return K.addEventListener("touchstart",Y),K.addEventListener("touchmove",X,{passive:!v}),K.addEventListener("touchend",N),()=>{K.removeEventListener("touchstart",Y),K.removeEventListener("touchmove",X,{passive:!v}),K.removeEventListener("touchend",N)}}},[_,v,Y,X,N]),k.useEffect(()=>()=>{Bo===$.current&&(Bo=null)},[]),k.useEffect(()=>{v||O(!1)},[v]),x.jsxs(k.Fragment,{children:[x.jsx(Aee,{open:_==="temporary"&&P?!0:v,variant:_,ModalProps:{BackdropProps:{...p,ref:M},..._==="temporary"&&{keepMounted:!0},...m},hideBackdrop:f,PaperProps:{...b,style:{pointerEvents:_==="temporary"&&!v&&!d?"none":"",...b.style},ref:R},anchor:a,transitionDuration:B.current||S,onClose:g,ref:n,...C}),!u&&_==="temporary"&&x.jsx(Pee,{children:x.jsx(Eee,{anchor:a,ref:E,width:w,...A})})]})});function FI(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dee}=Object.prototype,{getPrototypeOf:QO}=Object,zv=(e=>t=>{const n=Dee.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vi=e=>(e=e.toLowerCase(),t=>zv(t)===e),Wv=e=>t=>typeof t===e,{isArray:hf}=Array,jh=Wv("undefined");function Nee(e){return e!==null&&!jh(e)&&e.constructor!==null&&!jh(e.constructor)&&Nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UI=Vi("ArrayBuffer");function Lee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UI(e.buffer),t}const Bee=Wv("string"),Nr=Wv("function"),zI=Wv("number"),Yv=e=>e!==null&&typeof e=="object",Fee=e=>e===!0||e===!1,Ig=e=>{if(zv(e)!=="object")return!1;const t=QO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Uee=Vi("Date"),zee=Vi("File"),Wee=Vi("Blob"),Yee=Vi("FileList"),Vee=e=>Yv(e)&&Nr(e.pipe),Hee=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nr(e.append)&&((t=zv(e))==="formdata"||t==="object"&&Nr(e.toString)&&e.toString()==="[object FormData]"))},Gee=Vi("URLSearchParams"),[qee,Kee,Xee,Qee]=["ReadableStream","Request","Response","Headers"].map(Vi),Zee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),hf(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,YI=e=>!jh(e)&&e!==Zs;function YS(){const{caseless:e}=YI(this)&&this||{},t={},n=(r,i)=>{const o=e&&WI(t,i)||i;Ig(t[o])&&Ig(r)?t[o]=YS(t[o],r):Ig(r)?t[o]=YS({},r):hf(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Gp(t,(i,o)=>{n&&Nr(i)?e[o]=FI(i,n):e[o]=i},{allOwnKeys:r}),e),ete=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tte=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nte=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&QO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rte=(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},ite=e=>{if(!e)return null;if(hf(e))return e;let t=e.length;if(!zI(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ote=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&QO(Uint8Array)),ate=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},ste=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lte=Vi("HTMLFormElement"),ute=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),pT=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cte=Vi("RegExp"),VI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gp(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},fte=e=>{VI(e,(t,n)=>{if(Nr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nr(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+"'")})}})},dte=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return hf(e)?r(e):r(String(e).split(t)),n},hte=()=>{},pte=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Px="abcdefghijklmnopqrstuvwxyz",mT="0123456789",HI={DIGIT:mT,ALPHA:Px,ALPHA_DIGIT:Px+Px.toUpperCase()+mT},mte=(e=16,t=HI.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gte(e){return!!(e&&Nr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yte=e=>{const t=new Array(10),n=(r,i)=>{if(Yv(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=hf(r)?[]:{};return Gp(r,(a,s)=>{const l=n(a,i+1);!jh(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},vte=Vi("AsyncFunction"),bte=e=>e&&(Yv(e)||Nr(e))&&Nr(e.then)&&Nr(e.catch),GI=((e,t)=>e?setImmediate:t?((n,r)=>(Zs.addEventListener("message",({source:i,data:o})=>{i===Zs&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Zs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nr(Zs.postMessage)),xte=typeof queueMicrotask<"u"?queueMicrotask.bind(Zs):typeof process<"u"&&process.nextTick||GI,V={isArray:hf,isArrayBuffer:UI,isBuffer:Nee,isFormData:Hee,isArrayBufferView:Lee,isString:Bee,isNumber:zI,isBoolean:Fee,isObject:Yv,isPlainObject:Ig,isReadableStream:qee,isRequest:Kee,isResponse:Xee,isHeaders:Qee,isUndefined:jh,isDate:Uee,isFile:zee,isBlob:Wee,isRegExp:cte,isFunction:Nr,isStream:Vee,isURLSearchParams:Gee,isTypedArray:ote,isFileList:Yee,forEach:Gp,merge:YS,extend:Jee,trim:Zee,stripBOM:ete,inherits:tte,toFlatObject:nte,kindOf:zv,kindOfTest:Vi,endsWith:rte,toArray:ite,forEachEntry:ate,matchAll:ste,isHTMLForm:lte,hasOwnProperty:pT,hasOwnProp:pT,reduceDescriptors:VI,freezeMethods:fte,toObjectSet:dte,toCamelCase:ute,noop:hte,toFiniteNumber:pte,findKey:WI,global:Zs,isContextDefined:YI,ALPHABET:HI,generateString:mte,isSpecCompliantForm:gte,toJSONObject:yte,isAsyncFn:vte,isThenable:bte,setImmediate:GI,asap:xte};function Oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}V.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const qI=Oe.prototype,KI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{KI[e]={value:e}});Object.defineProperties(Oe,KI);Object.defineProperty(qI,"isAxiosError",{value:!0});Oe.from=(e,t,n,r,i,o)=>{const a=Object.create(qI);return V.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Oe.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const wte=null;function VS(e){return V.isPlainObject(e)||V.isArray(e)}function XI(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function gT(e,t,n){return e?e.concat(t).map(function(i,o){return i=XI(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Ste(e){return V.isArray(e)&&!e.some(VS)}const Ate=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function Vv(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!V.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(V.isDate(p))return p.toISOString();if(!l&&V.isBlob(p))throw new Oe("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(p)||V.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,m,g){let y=p;if(p&&!g&&typeof p=="object"){if(V.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(V.isArray(p)&&Ste(p)||(V.isFileList(p)||V.endsWith(m,"[]"))&&(y=V.toArray(p)))return m=XI(m),y.forEach(function(b,A){!(V.isUndefined(b)||b===null)&&t.append(a===!0?gT([m],A,o):a===null?m:m+"[]",u(b))}),!1}return VS(p)?!0:(t.append(gT(g,m,o),u(p)),!1)}const c=[],d=Object.assign(Ate,{defaultVisitor:f,convertValue:u,isVisitable:VS});function h(p,m){if(!V.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(p),V.forEach(p,function(y,v){(!(V.isUndefined(y)||y===null)&&i.call(t,y,V.isString(v)?v.trim():v,m,d))===!0&&h(y,m?m.concat(v):[v])}),c.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return h(e),t}function yT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ZO(e,t){this._pairs=[],e&&Vv(e,this,t)}const QI=ZO.prototype;QI.append=function(t,n){this._pairs.push([t,n])};QI.toString=function(t){const n=t?function(r){return t.call(this,r,yT)}:yT;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function _te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZI(e,t,n){if(!t)return e;const r=n&&n.encode||_te;V.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=V.isURLSearchParams(t)?t.toString():new ZO(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class vT{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const JI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ote=typeof URLSearchParams<"u"?URLSearchParams:ZO,kte=typeof FormData<"u"?FormData:null,Cte=typeof Blob<"u"?Blob:null,$te={isBrowser:!0,classes:{URLSearchParams:Ote,FormData:kte,Blob:Cte},protocols:["http","https","file","blob","url","data"]},JO=typeof window<"u"&&typeof document<"u",HS=typeof navigator=="object"&&navigator||void 0,Pte=JO&&(!HS||["ReactNative","NativeScript","NS"].indexOf(HS.product)<0),Tte=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ete=JO&&window.location.href||"http://localhost",Mte=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:JO,hasStandardBrowserEnv:Pte,hasStandardBrowserWebWorkerEnv:Tte,navigator:HS,origin:Ete},Symbol.toStringTag,{value:"Module"})),Yn={...Mte,...$te};function jte(e,t){return Vv(e,new Yn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Yn.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Rte(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ite(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&V.isArray(i)?i.length:a,l?(V.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!V.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&V.isArray(i[a])&&(i[a]=Ite(i[a])),!s)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,i)=>{t(Rte(r),i,n,0)}),n}return null}function Dte(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const qp={transitional:JI,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=V.isObject(t);if(o&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return i?JSON.stringify(eD(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jte(t,this.formSerializer).toString();if((s=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vv(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Dte(t)):t}],transformResponse:[function(t){const n=this.transitional||qp.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Oe.from(s,Oe.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yn.classes.FormData,Blob:Yn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{qp.headers[e]={}});const Nte=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lte=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Nte[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bT=Symbol("internals");function ed(e){return e&&String(e).trim().toLowerCase()}function Dg(e){return e===!1||e==null?e:V.isArray(e)?e.map(Dg):String(e)}function Bte(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 Fte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tx(e,t,n,r,i){if(V.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function Ute(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zte(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class wr{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const f=ed(l);if(!f)throw new Error("header name must be a non-empty string");const c=V.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=Dg(s))}const a=(s,l)=>V.forEach(s,(u,f)=>o(u,f,l));if(V.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(V.isString(t)&&(t=t.trim())&&!Fte(t))a(Lte(t),n);else if(V.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=ed(t),t){const r=V.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Bte(i);if(V.isFunction(n))return n.call(this,i,r);if(V.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ed(t),t){const r=V.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Tx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=ed(a),a){const s=V.findKey(r,a);s&&(!n||Tx(r,r[s],s,n))&&(delete r[s],i=!0)}}return V.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||Tx(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return V.forEach(this,(i,o)=>{const a=V.findKey(r,o);if(a){n[a]=Dg(i),delete n[o];return}const s=t?Ute(o):String(o).trim();s!==o&&delete n[o],n[s]=Dg(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return V.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&V.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[bT]=this[bT]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=ed(a);r[s]||(zte(i,a),r[s]=!0)}return V.isArray(t)?t.forEach(o):o(t),this}}wr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(wr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});V.freezeMethods(wr);function Ex(e,t){const n=this||qp,r=t||n,i=wr.from(r.headers);let o=r.data;return V.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function tD(e){return!!(e&&e.__CANCEL__)}function pf(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(pf,Oe,{__CANCEL__:!0});function nD(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Wte(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Yte(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[o];a||(a=u),n[i]=l,r[i]=u;let c=o,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=f,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),c=f-n;c>=r?a(u,f):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-c)))},()=>i&&a(i)]}const My=(e,t,n=3)=>{let r=0;const i=Yte(50,250);return Vte(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),f=a<=s;r=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},xT=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wT=e=>(...t)=>V.asap(()=>e(...t)),Hte=Yn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yn.origin),Yn.navigator&&/(msie|trident)/i.test(Yn.navigator.userAgent)):()=>!0,Gte=Yn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qte(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kte(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rD(e,t){return e&&!qte(t)?Kte(e,t):t}const ST=e=>e instanceof wr?{...e}:e;function $l(e,t){t=t||{};const n={};function r(u,f,c,d){return V.isPlainObject(u)&&V.isPlainObject(f)?V.merge.call({caseless:d},u,f):V.isPlainObject(f)?V.merge({},f):V.isArray(f)?f.slice():f}function i(u,f,c,d){if(V.isUndefined(f)){if(!V.isUndefined(u))return r(void 0,u,c,d)}else return r(u,f,c,d)}function o(u,f){if(!V.isUndefined(f))return r(void 0,f)}function a(u,f){if(V.isUndefined(f)){if(!V.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function s(u,f,c){if(c in t)return r(u,f);if(c in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,f,c)=>i(ST(u),ST(f),c,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,d=c(e[f],t[f],f);V.isUndefined(d)&&c!==s||(n[f]=d)}),n}const iD=e=>{const t=$l({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=wr.from(a),t.url=ZI(rD(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(V.isFormData(n)){if(Yn.hasStandardBrowserEnv||Yn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...f]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...f].join("; "))}}if(Yn.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||r!==!1&&Hte(t.url))){const u=i&&o&&Gte.read(o);u&&a.set(i,u)}return t},Xte=typeof XMLHttpRequest<"u",Qte=Xte&&function(e){return new Promise(function(n,r){const i=iD(e);let o=i.data;const a=wr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,d,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function y(){if(!g)return;const b=wr.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};nD(function(_){n(_),m()},function(_){r(_),m()},w),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let A=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||JI;i.timeoutErrorMessage&&(A=i.timeoutErrorMessage),r(new Oe(A,w.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&V.forEach(a.toJSON(),function(A,w){g.setRequestHeader(w,A)}),V.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),u&&([d,p]=My(u,!0),g.addEventListener("progress",d)),l&&g.upload&&([c,h]=My(l),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(f=b=>{g&&(r(!b||b.type?new pf(null,e,g):b),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const v=Wte(i.url);if(v&&Yn.protocols.indexOf(v)===-1){r(new Oe("Unsupported protocol "+v+":",Oe.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Zte=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;r.abort(f instanceof Oe?f:new pf(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,o(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>V.asap(s),l}},Jte=function*(e,t){let n=e.byteLength;if(n{const i=ene(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(n){let d=o+=c;n(d)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Hv=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",oD=Hv&&typeof ReadableStream=="function",nne=Hv&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),aD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rne=oD&&aD(()=>{let e=!1;const t=new Request(Yn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_T=64*1024,GS=oD&&aD(()=>V.isReadableStream(new Response("").body)),jy={stream:GS&&(e=>e.body)};Hv&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!jy[t]&&(jy[t]=V.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Oe(`Response type '${t}' is not supported`,Oe.ERR_NOT_SUPPORT,r)})})})(new Response);const ine=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(Yn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await nne(e)).byteLength},one=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return n??ine(t)},ane=Hv&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:f,withCredentials:c="same-origin",fetchOptions:d}=iD(e);u=u?(u+"").toLowerCase():"text";let h=Zte([i,o&&o.toAbortSignal()],a),p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&rne&&n!=="get"&&n!=="head"&&(g=await one(f,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(V.isFormData(r)&&(S=w.headers.get("content-type"))&&f.setContentType(S),w.body){const[_,C]=xT(g,My(wT(l)));r=AT(w.body,_T,_,C)}}V.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:y?c:void 0});let v=await fetch(p);const b=GS&&(u==="stream"||u==="response");if(GS&&(s||b&&m)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=v[P]});const S=V.toFiniteNumber(v.headers.get("content-length")),[_,C]=s&&xT(S,My(wT(s),!0))||[];v=new Response(AT(v.body,_T,_,()=>{C&&C(),m&&m()}),w)}u=u||"text";let A=await jy[V.findKey(jy,u)||"text"](v,e);return!b&&m&&m(),await new Promise((w,S)=>{nD(w,S,{data:A,headers:wr.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:p})})}catch(y){throw m&&m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,e,p),{cause:y.cause||y}):Oe.from(y,y&&y.code,e,p)}}),qS={http:wte,xhr:Qte,fetch:ane};V.forEach(qS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const OT=e=>`- ${e}`,sne=e=>V.isFunction(e)||e===null||e===!1,sD={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : +`+o.map(OT).join(` +`):" "+OT(o[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:qS};function Mx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pf(null,e)}function kT(e){return Mx(e),e.headers=wr.from(e.headers),e.data=Ex.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sD.getAdapter(e.adapter||qp.adapter)(e).then(function(r){return Mx(e),r.data=Ex.call(e,e.transformResponse,r),r.headers=wr.from(r.headers),r},function(r){return tD(r)||(Mx(e),r&&r.response&&(r.response.data=Ex.call(e,e.transformResponse,r.response),r.response.headers=wr.from(r.response.headers))),Promise.reject(r)})}const lD="1.7.8",Gv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const CT={};Gv.transitional=function(t,n,r){function i(o,a){return"[Axios v"+lD+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Oe(i(a," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!CT[a]&&(CT[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};Gv.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function lne(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Oe("option "+o+" must be "+l,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+o,Oe.ERR_BAD_OPTION)}}const Ng={assertOptions:lne,validators:Gv},no=Ng.validators;class pl{constructor(t){this.defaults=t,this.interceptors={request:new vT,response:new vT}}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=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$l(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Ng.assertOptions(r,{silentJSONParsing:no.transitional(no.boolean),forcedJSONParsing:no.transitional(no.boolean),clarifyTimeoutError:no.transitional(no.boolean)},!1),i!=null&&(V.isFunction(i)?n.paramsSerializer={serialize:i}:Ng.assertOptions(i,{encode:no.function,serialize:no.function},!0)),Ng.assertOptions(n,{baseUrl:no.spelling("baseURL"),withXsrfToken:no.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&V.merge(o.common,o[n.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=wr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let f,c=0,d;if(!l){const p=[kT.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,f=Promise.resolve(n);c{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 a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new pf(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ek(function(i){t=i}),cancel:t}}}function une(e){return function(n){return e.apply(null,n)}}function cne(e){return V.isObject(e)&&e.isAxiosError===!0}const KS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(KS).forEach(([e,t])=>{KS[t]=e});function uD(e){const t=new pl(e),n=FI(pl.prototype.request,t);return V.extend(n,pl.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uD($l(e,i))},n}const Qe=uD(qp);Qe.Axios=pl;Qe.CanceledError=pf;Qe.CancelToken=ek;Qe.isCancel=tD;Qe.VERSION=lD;Qe.toFormData=Vv;Qe.AxiosError=Oe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=une;Qe.isAxiosError=cne;Qe.mergeConfig=$l;Qe.AxiosHeaders=wr;Qe.formToJSON=e=>eD(V.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=sD.getAdapter;Qe.HttpStatusCode=KS;Qe.default=Qe;function fne(){const e="http://3.37.214.150:8080",t=[{name:"홈",imageSrc:dK,imageSrcWhite:hK,page:"/main"},{name:"수입/지출 내역",imageSrc:pK,imageSrcWhite:mK,page:"/transactions"},{name:"결제예정",imageSrc:gK,imageSrcWhite:yK,page:"/scheduledpayments"},{name:"비용",imageSrc:vK,imageSrcWhite:bK,page:"/expenses"},{name:"목표",imageSrc:xK,imageSrcWhite:wK,page:"/goals"},{name:"설정",imageSrc:SK,imageSrcWhite:AK,page:"/settings"}],n=zl(),r=g=>{n(g)},i=()=>{window.confirm("로그아웃 하시겠습니까?")&&(n("/"),localStorage.removeItem("token"))},[o,a]=k.useState({top:!1}),[s,l]=k.useState(""),[u,f]=k.useState("");k.useEffect(()=>{(async()=>{try{const y=await Qe.get(`${e}/api/profile`,{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});l(y.data.name),f(y.data.nickName)}catch(y){console.error("Error fetching user info:",y)}})()},[]);const c=(g,y)=>v=>{v&&v.type=="keydown"&&(v.key=="Tab"||v.key=="Shift")||a({...o,[g]:y})},d=g=>x.jsx(UJ,{sx:{width:"auto",maxWidth:"100%"},role:"presentation",onClick:c(g,!1),onKeyDown:c(g,!1),children:x.jsx($ee,{children:t.map((y,v)=>x.jsxs(QS,{onClick:()=>r(y.page),children:[x.jsx($T,{src:y.imageSrc,"data-white-src":y.imageSrcWhite,alt:`${y.imageSrc} icon`}),x.jsx(XS,{children:y.name})]},v))})}),[h,p]=k.useState(1920),m=k.useRef(null);return k.useEffect(()=>{const g=()=>{m.current===null&&(m.current=setTimeout(()=>{m.current=null,p(window.innerWidth)},200))};return window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[h]),h>1350?x.jsxs(dne,{children:[x.jsx(hne,{children:"WealthTracker"}),x.jsx(pne,{}),x.jsxs(mne,{children:[x.jsx(gne,{src:fK}),x.jsx(yne,{children:s})]}),t.map((g,y)=>x.jsxs(QS,{onClick:()=>r(g.page),children:[x.jsx($T,{src:g.imageSrc,"data-white-src":g.imageSrcWhite,alt:`${g.imageSrc} icon`}),x.jsx(XS,{children:g.name})]},y)),x.jsxs(bne,{children:[x.jsx(xne,{src:_K}),x.jsx(vne,{onClick:i,children:"로그아웃"})]})]}):x.jsx(F.Fragment,{children:x.jsxs(wne,{children:[x.jsx(KJ,{onClick:c("top",!0),sx:{backgroundColor:"black",borderRadius:0},children:"Menu"}),x.jsx(Iee,{anchor:"top",open:o.top,onClose:c("top",!1),onOpen:c("top",!0),PaperProps:{sx:{backgroundColor:"black",borderRadius:0}},children:d("top")})]})})}const dne=D.div` + width: 15rem; + min-height: 100vh; + background-color: ${({theme:e})=>e.colors.black02}; + display: flex; + flex-direction: column; + align-items: center; + padding: 0 2rem; + gap: 1rem; + position: sticky; + top: 0; +`,hne=D.h1` + color: ${({theme:e})=>e.colors.white}; + align-items: center; + font-size: 1.8rem; + font-weight: 800; + padding: 2rem 0; +`,pne=D.hr` + background-color: ${({theme:e})=>e.colors.gray05}; + width: 100%; + height: 2px; + border: 0; +`,mne=D.div` + display: flex; + gap: 2rem; + align-items: flex-start; + width: 100%; + margin-top: 2rem; + margin-bottom: 3rem; +`,gne=D.img` + width: 2rem; + height: 2rem; + border-radius: 50%; +`,yne=D.a` + align-self: center; + font-size: 1rem; + color: ${({theme:e})=>e.colors.white}; +`,XS=D.a` + color: ${({theme:e})=>e.colors.gray01}; + font-weight: 700; + transition: color 0.3s; +`,QS=D.div` + cursor: pointer; + display: flex; + gap: 1rem; + width: 100%; + padding: 1rem 0.5rem; + transition: all 0.3s; + &:hover { + background-color: ${({theme:e})=>e.colors.blue}; + border-radius: 4px; + } + &:hover ${XS} { + color: ${({theme:e})=>e.colors.white}; + } +`,$T=D.img` + width: 1rem; + height: 1rem; + + /* hover일 때 이미지 변경 */ + ${QS}:hover& { + content: url(${({"data-white-src":e})=>e}); + } +`,vne=D.a` + color: ${({theme:e})=>e.colors.red}; + font-weight: 700; + transition: color 0.3s; +`,bne=D.div` + cursor: pointer; + background-color: ${({theme:e})=>e.colors.gray05}; + display: flex; + gap: 1rem; + width: 100%; + padding: 1rem 0.5rem; + border-radius: 4px; + margin-top: 15vh; +`,xne=D.img` + width: 1rem; + height: 1rem; +`,wne=D.div` + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 100; + background-color: black; +`;function mf({children:e}){return x.jsxs(Sne,{children:[x.jsx(fne,{}),x.jsxs(Ane,{children:[x.jsx(sK,{}),x.jsx(_ne,{children:e})]})]})}const Sne=D.div` + display: flex; + justify-content: center; + background-color: ${({theme:e})=>e.colors.gray00}; + min-height: 100vh; +`,Ane=D.div` + display: flex; + flex-direction: column; + width: 100%; + max-width: 1440px; + height: 1024px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + background-color: ${({theme:e})=>e.colors.gray00}; +`,_ne=D.div` + display: flex; + flex-direction: column; +`,One="/assets/Logo-BH0iwPLZ.png";var kne=Array.isArray,Dn=kne,Cne=typeof mm=="object"&&mm&&mm.Object===Object&&mm,cD=Cne,$ne=cD,Pne=typeof self=="object"&&self&&self.Object===Object&&self,Tne=$ne||Pne||Function("return this")(),Hi=Tne,Ene=Hi,Mne=Ene.Symbol,gf=Mne,PT=gf,fD=Object.prototype,jne=fD.hasOwnProperty,Rne=fD.toString,td=PT?PT.toStringTag:void 0;function Ine(e){var t=jne.call(e,td),n=e[td];try{e[td]=void 0;var r=!0}catch{}var i=Rne.call(e);return r&&(t?e[td]=n:delete e[td]),i}var Dne=Ine,Nne=Object.prototype,Lne=Nne.toString;function Bne(e){return Lne.call(e)}var Fne=Bne,TT=gf,Une=Dne,zne=Fne,Wne="[object Null]",Yne="[object Undefined]",ET=TT?TT.toStringTag:void 0;function Vne(e){return e==null?e===void 0?Yne:Wne:ET&&ET in Object(e)?Une(e):zne(e)}var wa=Vne;function Hne(e){return e!=null&&typeof e=="object"}var yi=Hne,Gne=wa,qne=yi,Kne="[object Symbol]";function Xne(e){return typeof e=="symbol"||qne(e)&&Gne(e)==Kne}var yf=Xne,Qne=Dn,Zne=yf,Jne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ere=/^\w*$/;function tre(e,t){if(Qne(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Zne(e)?!0:ere.test(e)||!Jne.test(e)||t!=null&&e in Object(t)}var tk=tre;function nre(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ar=nre;const vf=Ne(Ar);var rre=wa,ire=Ar,ore="[object AsyncFunction]",are="[object Function]",sre="[object GeneratorFunction]",lre="[object Proxy]";function ure(e){if(!ire(e))return!1;var t=rre(e);return t==are||t==sre||t==ore||t==lre}var qv=ure;const Me=Ne(qv);var cre=Hi,fre=cre["__core-js_shared__"],dre=fre,jx=dre,MT=function(){var e=/[^.]+$/.exec(jx&&jx.keys&&jx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hre(e){return!!MT&&MT in e}var pre=hre,mre=Function.prototype,gre=mre.toString;function yre(e){if(e!=null){try{return gre.call(e)}catch{}try{return e+""}catch{}}return""}var dD=yre,vre=qv,bre=pre,xre=Ar,wre=dD,Sre=/[\\^$.*+?()[\]{}|]/g,Are=/^\[object .+?Constructor\]$/,_re=Function.prototype,Ore=Object.prototype,kre=_re.toString,Cre=Ore.hasOwnProperty,$re=RegExp("^"+kre.call(Cre).replace(Sre,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pre(e){if(!xre(e)||bre(e))return!1;var t=vre(e)?$re:Are;return t.test(wre(e))}var Tre=Pre;function Ere(e,t){return e==null?void 0:e[t]}var Mre=Ere,jre=Tre,Rre=Mre;function Ire(e,t){var n=Rre(e,t);return jre(n)?n:void 0}var Vl=Ire,Dre=Vl,Nre=Dre(Object,"create"),Kv=Nre,jT=Kv;function Lre(){this.__data__=jT?jT(null):{},this.size=0}var Bre=Lre;function Fre(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ure=Fre,zre=Kv,Wre="__lodash_hash_undefined__",Yre=Object.prototype,Vre=Yre.hasOwnProperty;function Hre(e){var t=this.__data__;if(zre){var n=t[e];return n===Wre?void 0:n}return Vre.call(t,e)?t[e]:void 0}var Gre=Hre,qre=Kv,Kre=Object.prototype,Xre=Kre.hasOwnProperty;function Qre(e){var t=this.__data__;return qre?t[e]!==void 0:Xre.call(t,e)}var Zre=Qre,Jre=Kv,eie="__lodash_hash_undefined__";function tie(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jre&&t===void 0?eie:t,this}var nie=tie,rie=Bre,iie=Ure,oie=Gre,aie=Zre,sie=nie;function bf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var _ie=Aie,Oie=Xv;function kie(e,t){var n=this.__data__,r=Oie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Cie=kie,$ie=cie,Pie=vie,Tie=wie,Eie=_ie,Mie=Cie;function xf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},JS=function(t){return _f(t)&&t.indexOf("%")===t.length-1},se=function(t){return ZS(t)&&!Zp(t)},gn=function(t){return se(t)||_f(t)},rae=0,ub=function(t){var n=++rae;return"".concat(t||"").concat(n)},yr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!_f(t))return r;var o;if(JS(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Zp(o)&&(o=r),i&&o>n&&(o=n),o},vu=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},iae=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var UT={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ds=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zT=null,Ix=null,lk=function e(t){if(t===zT&&Array.isArray(Ix))return Ix;var n=[];return k.Children.forEach(t,function(r){De(r)||(Koe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ix=n,zT=t,n};function wo(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return ds(i)}):r=[ds(t)],lk(e).forEach(function(i){var o=sn(i,"type.displayName")||sn(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Kr(e,t){var n=wo(e,t);return n&&n[0]}var WT=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!se(r)||r<=0||!se(i)||i<=0)},fae=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],dae=function(t){return t&&t.type&&_f(t.type)&&fae.indexOf(t.type)>=0},hae=function(t,n,r,i){var o,a=(o=Rx==null?void 0:Rx[i])!==null&&o!==void 0?o:[];return!Me(t)&&(i&&a.includes(n)||aae.includes(n))||r&&sk.includes(n)},Ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!vf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;hae((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},r2=function e(t,n){if(t===n)return!0;var r=k.Children.count(t);if(r!==k.Children.count(n))return!1;if(r===0)return!0;if(r===1)return YT(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function o2(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=yae(e,gae),f=i||{width:n,height:r,x:0,y:0},c=pe("recharts-surface",o);return F.createElement("svg",i2({},Ee(u,!0,"svg"),{className:c,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),F.createElement("title",null,s),F.createElement("desc",null,l),t)}var bae=["children","className"];function a2(){return a2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Kt=F.forwardRef(function(e,t){var n=e.children,r=e.className,i=xae(e,bae),o=pe("recharts-layer",r);return F.createElement("g",a2({className:o},Ee(i,!0),{ref:t}),n)}),Ec=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;oi?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:Aae(e,t,n)}var Oae=_ae,kae="\\ud800-\\udfff",Cae="\\u0300-\\u036f",$ae="\\ufe20-\\ufe2f",Pae="\\u20d0-\\u20ff",Tae=Cae+$ae+Pae,Eae="\\ufe0e\\ufe0f",Mae="\\u200d",jae=RegExp("["+Mae+kae+Tae+Eae+"]");function Rae(e){return jae.test(e)}var SD=Rae;function Iae(e){return e.split("")}var Dae=Iae,AD="\\ud800-\\udfff",Nae="\\u0300-\\u036f",Lae="\\ufe20-\\ufe2f",Bae="\\u20d0-\\u20ff",Fae=Nae+Lae+Bae,Uae="\\ufe0e\\ufe0f",zae="["+AD+"]",s2="["+Fae+"]",l2="\\ud83c[\\udffb-\\udfff]",Wae="(?:"+s2+"|"+l2+")",_D="[^"+AD+"]",OD="(?:\\ud83c[\\udde6-\\uddff]){2}",kD="[\\ud800-\\udbff][\\udc00-\\udfff]",Yae="\\u200d",CD=Wae+"?",$D="["+Uae+"]?",Vae="(?:"+Yae+"(?:"+[_D,OD,kD].join("|")+")"+$D+CD+")*",Hae=$D+CD+Vae,Gae="(?:"+[_D+s2+"?",s2,OD,kD,zae].join("|")+")",qae=RegExp(l2+"(?="+l2+")|"+Gae+Hae,"g");function Kae(e){return e.match(qae)||[]}var Xae=Kae,Qae=Dae,Zae=SD,Jae=Xae;function ese(e){return Zae(e)?Jae(e):Qae(e)}var tse=ese,nse=Oae,rse=SD,ise=tse,ose=gD;function ase(e){return function(t){t=ose(t);var n=rse(t)?ise(t):void 0,r=n?n[0]:t.charAt(0),i=n?nse(n,1).join(""):t.slice(1);return r[e]()+i}}var sse=ase,lse=sse,use=lse("toUpperCase"),cse=use;const fb=Ne(cse);function vt(e){return function(){return e}}const PD=Math.cos,Iy=Math.sin,Gi=Math.sqrt,HT=1e-12,Dy=Math.PI,db=2*Dy,u2=Math.PI,c2=2*u2,Us=1e-6,fse=c2-Us;function TD(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return TD;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iUs)if(!(Math.abs(c*l-u*f)>Us)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=i-s,m=l*l+u*u,g=h*h+p*p,y=Math.sqrt(m),v=Math.sqrt(d),b=o*Math.tan((u2-Math.acos((m+d-g)/(2*y*v)))/2),A=b/v,w=b/y;Math.abs(A-1)>Us&&this._append`L${t+A*f},${n+A*c}`,this._append`A${o},${o},0,0,${+(c*h>f*p)},${this._x1=t+w*l},${this._y1=n+w*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,c=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Us||Math.abs(this._y1-f)>Us)&&this._append`L${u},${f}`,r&&(d<0&&(d=d%c2+c2),d>fse?this._append`A${r},${r},0,1,${c},${t-s},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:d>Us&&this._append`A${r},${r},0,${+(d>=u2)},${c},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function uk(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new hse(t)}function ck(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ED(e){this._context=e}ED.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Jp(e){return new ED(e)}function MD(e){return e[0]}function jD(e){return e[1]}function RD(e,t){var n=vt(!0),r=null,i=Jp,o=null,a=uk(s);e=typeof e=="function"?e:e===void 0?MD:vt(e),t=typeof t=="function"?t:t===void 0?jD:vt(t);function s(l){var u,f=(l=ck(l)).length,c,d=!1,h;for(r==null&&(o=i(h=a())),u=0;u<=f;++u)!(u=h;--p)s.point(b[p],A[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+e(g,d,c),A[d]=+t(g,d,c),s.point(r?+r(g,d,c):b[d],n?+n(g,d,c):A[d]))}if(v)return s=null,v+""||null}function f(){return RD().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:vt(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:vt(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:vt(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:vt(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:vt(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:vt(+c),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:vt(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}class ID{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function pse(e){return new ID(e,!0)}function mse(e){return new ID(e,!1)}const fk={draw(e,t){const n=Gi(t/Dy);e.moveTo(n,0),e.arc(0,0,n,0,db)}},gse={draw(e,t){const n=Gi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},DD=Gi(1/3),yse=DD*2,vse={draw(e,t){const n=Gi(t/yse),r=n*DD;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},bse={draw(e,t){const n=Gi(t),r=-n/2;e.rect(r,r,n,n)}},xse=.8908130915292852,ND=Iy(Dy/10)/Iy(7*Dy/10),wse=Iy(db/10)*ND,Sse=-PD(db/10)*ND,Ase={draw(e,t){const n=Gi(t*xse),r=wse*n,i=Sse*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=db*o/5,s=PD(a),l=Iy(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Dx=Gi(3),_se={draw(e,t){const n=-Gi(t/(Dx*3));e.moveTo(0,n*2),e.lineTo(-Dx*n,-n),e.lineTo(Dx*n,-n),e.closePath()}},Vr=-.5,Hr=Gi(3)/2,f2=1/Gi(12),Ose=(f2/2+1)*3,kse={draw(e,t){const n=Gi(t/Ose),r=n/2,i=n*f2,o=r,a=n*f2+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Vr*r-Hr*i,Hr*r+Vr*i),e.lineTo(Vr*o-Hr*a,Hr*o+Vr*a),e.lineTo(Vr*s-Hr*l,Hr*s+Vr*l),e.lineTo(Vr*r+Hr*i,Vr*i-Hr*r),e.lineTo(Vr*o+Hr*a,Vr*a-Hr*o),e.lineTo(Vr*s+Hr*l,Vr*l-Hr*s),e.closePath()}};function Cse(e,t){let n=null,r=uk(i);e=typeof e=="function"?e:vt(e||fk),t=typeof t=="function"?t:vt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:vt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:vt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function bs(){}function Ny(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function hb(e){this._context=e}hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ny(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ny(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LD(e){return new hb(e)}function BD(e){this._context=e}BD.prototype={areaStart:bs,areaEnd:bs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ny(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FD(e){return new BD(e)}function UD(e){this._context=e}UD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ny(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zD(e){return new UD(e)}function WD(e,t){this._basis=new hb(e),this._beta=t}WD.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const $se=function e(t){function n(r){return t===1?new hb(r):new WD(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ly(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function dk(e,t){this._context=e,this._k=(1-t)/6}dk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ly(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ly(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pse=function e(t){function n(r){return new dk(r,t)}return n.tension=function(r){return e(+r)},n}(0);function hk(e,t){this._context=e,this._k=(1-t)/6}hk.prototype={areaStart:bs,areaEnd:bs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ly(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Tse=function e(t){function n(r){return new hk(r,t)}return n.tension=function(r){return e(+r)},n}(0);function pk(e,t){this._context=e,this._k=(1-t)/6}pk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ly(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ese=function e(t){function n(r){return new pk(r,t)}return n.tension=function(r){return e(+r)},n}(0);function mk(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>HT){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>HT){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/f,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function YD(e,t){this._context=e,this._alpha=t}YD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:mk(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Mse=function e(t){function n(r){return t?new YD(r,t):new dk(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function VD(e,t){this._context=e,this._alpha=t}VD.prototype={areaStart:bs,areaEnd:bs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:mk(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jse=function e(t){function n(r){return t?new VD(r,t):new hk(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function HD(e,t){this._context=e,this._alpha=t}HD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:mk(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Rse=function e(t){function n(r){return t?new HD(r,t):new pk(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function GD(e){this._context=e}GD.prototype={areaStart:bs,areaEnd:bs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function qD(e){return new GD(e)}function GT(e){return e<0?-1:1}function qT(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(GT(o)+GT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function KT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nx(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function By(e){this._context=e}By.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Nx(this,this._t0,KT(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Nx(this,KT(this,n=qT(this,e,t)),n);break;default:Nx(this,this._t0,n=qT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KD(e){this._context=new XD(e)}(KD.prototype=Object.create(By.prototype)).point=function(e,t){By.prototype.point.call(this,t,e)};function XD(e){this._context=e}XD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function QD(e){return new By(e)}function ZD(e){return new KD(e)}function JD(e){this._context=e}JD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=XT(e),i=XT(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function t7(e){return new pb(e,.5)}function n7(e){return new pb(e,0)}function r7(e){return new pb(e,1)}function Mc(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n=0;)n[t]=t;return n}function Ise(e,t){return e[t]}function Dse(e){const t=[];return t.key=e,t}function i7(){var e=vt([]),t=d2,n=Mc,r=Ise;function i(o){var a=Array.from(e.apply(this,arguments),Dse),s,l=a.length,u=-1,f;for(const c of o)for(s=0,++u;s0){for(var n,r,i=0,o=e[0].length,a;i0)for(var n,r=0,i,o,a,s,l,u=e[t[0]].length;r0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Bse(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var o7={symbolCircle:fk,symbolCross:gse,symbolDiamond:vse,symbolSquare:bse,symbolStar:Ase,symbolTriangle:_se,symbolWye:kse},Gse=Math.PI/180,qse=function(t){var n="symbol".concat(fb(t));return o7[n]||fk},Kse=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Gse;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Xse=function(t,n){o7["symbol".concat(fb(t))]=n},gk=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=Vse(t,Use),u=ZT(ZT({},l),{},{type:r,size:o,sizeType:s}),f=function(){var g=qse(r),y=Cse().type(g).size(Kse(o,s,r));return y()},c=u.className,d=u.cx,h=u.cy,p=Ee(u,!0);return d===+d&&h===+h&&o===+o?F.createElement("path",h2({},p,{className:pe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};gk.registerSymbol=Xse;function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function p2(){return p2=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var v=h.inactive?u:h.color;return F.createElement("li",p2({className:g,style:c,key:"legend-item-".concat(p)},cb(r.props,h,p)),F.createElement(o2,{width:a,height:a,viewBox:f,style:d},r.renderIcon(h)),F.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m?m(y,h,p):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return F.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(k.PureComponent);Ih(yk,"displayName","Legend");Ih(yk,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ale=Qv;function sle(){this.__data__=new ale,this.size=0}var lle=sle;function ule(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var cle=ule;function fle(e){return this.__data__.get(e)}var dle=fle;function hle(e){return this.__data__.has(e)}var ple=hle,mle=Qv,gle=nk,yle=rk,vle=200;function ble(e,t){var n=this.__data__;if(n instanceof mle){var r=n.__data__;if(!gle||r.lengths))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,h=n&Ule?new Nle:void 0;for(o.set(e,t),o.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=Fue}var Ak=Uue,zue=wa,Wue=Ak,Yue=yi,Vue="[object Arguments]",Hue="[object Array]",Gue="[object Boolean]",que="[object Date]",Kue="[object Error]",Xue="[object Function]",Que="[object Map]",Zue="[object Number]",Jue="[object Object]",ece="[object RegExp]",tce="[object Set]",nce="[object String]",rce="[object WeakMap]",ice="[object ArrayBuffer]",oce="[object DataView]",ace="[object Float32Array]",sce="[object Float64Array]",lce="[object Int8Array]",uce="[object Int16Array]",cce="[object Int32Array]",fce="[object Uint8Array]",dce="[object Uint8ClampedArray]",hce="[object Uint16Array]",pce="[object Uint32Array]",kt={};kt[ace]=kt[sce]=kt[lce]=kt[uce]=kt[cce]=kt[fce]=kt[dce]=kt[hce]=kt[pce]=!0;kt[Vue]=kt[Hue]=kt[ice]=kt[Gue]=kt[oce]=kt[que]=kt[Kue]=kt[Xue]=kt[Que]=kt[Zue]=kt[Jue]=kt[ece]=kt[tce]=kt[nce]=kt[rce]=!1;function mce(e){return Yue(e)&&Wue(e.length)&&!!kt[zue(e)]}var gce=mce;function yce(e){return function(t){return e(t)}}var em=yce,Wy={exports:{}};Wy.exports;(function(e,t){var n=cD,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Wy,Wy.exports);var bb=Wy.exports,vce=gce,bce=em,oE=bb,aE=oE&&oE.isTypedArray,xce=aE?bce(aE):vce,_k=xce,wce=Oue,Sce=gb,Ace=Dn,_ce=yb,Oce=vb,kce=_k,Cce=Object.prototype,$ce=Cce.hasOwnProperty;function Pce(e,t){var n=Ace(e),r=!n&&Sce(e),i=!n&&!r&&_ce(e),o=!n&&!r&&!i&&kce(e),a=n||r||i||o,s=a?wce(e.length,String):[],l=s.length;for(var u in e)(t||$ce.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Oce(u,l)))&&s.push(u);return s}var m7=Pce,Tce=Object.prototype;function Ece(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Tce;return e===n}var Ok=Ece;function Mce(e,t){return function(n){return e(t(n))}}var g7=Mce,jce=g7,Rce=jce(Object.keys,Object),Ice=Rce,Dce=Ok,Nce=Ice,Lce=Object.prototype,Bce=Lce.hasOwnProperty;function Fce(e){if(!Dce(e))return Nce(e);var t=[];for(var n in Object(e))Bce.call(e,n)&&n!="constructor"&&t.push(n);return t}var Uce=Fce,zce=qv,Wce=Ak;function Yce(e){return e!=null&&Wce(e.length)&&!zce(e)}var kf=Yce,Vce=m7,Hce=Uce,Gce=kf;function qce(e){return Gce(e)?Vce(e):Hce(e)}var tm=qce,Kce=f7,Xce=Sk,Qce=tm;function Zce(e){return Kce(e,Qce,Xce)}var y7=Zce,sE=y7,Jce=1,efe=Object.prototype,tfe=efe.hasOwnProperty;function nfe(e,t,n,r,i,o){var a=n&Jce,s=sE(e),l=s.length,u=sE(t),f=u.length;if(l!=f&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:tfe.call(t,d)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=a;++c-1}var _7=Zde;function Jde(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=hhe){var u=t?null:fhe(e);if(u)return dhe(u);a=!1,i=che,l=new she}else l=t?[]:s;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Phe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function The(e){return e.value}function Ehe(e,t){if(F.isValidElement(e))return F.cloneElement(e,t);if(typeof e=="function")return F.createElement(e,t);t.ref;var n=$he(t,xhe);return F.createElement(yk,n)}var SE=1,qu=function(e){function t(){var n;whe(this,t);for(var r=arguments.length,i=new Array(r),o=0;oSE||Math.abs(i.height-this.lastBoundingBox.height)>SE)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Fo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var h=this.getBBoxSnapshot();c={left:((u||0)-h.width)/2}}else c=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var p=this.getBBoxSnapshot();d={top:((f||0)-p.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Fo(Fo({},c),d)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=Fo(Fo({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return F.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},Ehe(o,Fo(Fo({},this.props),{},{payload:k7(f,u,The)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Fo(Fo({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&se(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(k.PureComponent);wb(qu,"displayName","Legend");wb(qu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AE=gf,Mhe=gb,jhe=Dn,_E=AE?AE.isConcatSpreadable:void 0;function Rhe(e){return jhe(e)||Mhe(e)||!!(_E&&e&&e[_E])}var Ihe=Rhe,Dhe=wk,Nhe=Ihe;function P7(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Nhe),i||(i=[]);++o0&&n(s)?t>1?P7(s,t-1,n,r,i):Dhe(i,s):r||(i[i.length]=s)}return i}var Ck=P7;function Lhe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var Bhe=Lhe,Fhe=Bhe,Uhe=Fhe(),T7=Uhe,zhe=T7,Whe=tm;function Yhe(e,t){return e&&zhe(e,t,Whe)}var E7=Yhe,Vhe=kf;function Hhe(e,t){return function(n,r){if(n==null)return n;if(!Vhe(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++ot||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var ape=ope,Ux=Xp,spe=Qp,lpe=Sa,upe=M7,cpe=tpe,fpe=em,dpe=ape,hpe=$f,ppe=Dn;function mpe(e,t,n){t.length?t=Ux(t,function(o){return ppe(o)?function(a){return spe(a,o.length===1?o[0]:o)}:o}):t=[hpe];var r=-1;t=Ux(t,fpe(lpe));var i=upe(e,function(o,a,s){var l=Ux(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return cpe(i,function(o,a){return dpe(o,a,n)})}var gpe=mpe;function ype(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vpe=ype,bpe=vpe,kE=Math.max;function xpe(e,t,n){return t=kE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=kE(r.length-t,0),a=Array(o);++i0){if(++t>=Ppe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var jpe=Mpe,Rpe=$pe,Ipe=jpe,Dpe=Ipe(Rpe),I7=Dpe,Npe=$f,Lpe=j7,Bpe=I7;function Fpe(e,t){return Bpe(Lpe(e,t,Npe),e+"")}var $k=Fpe,Upe=Kp,zpe=kf,Wpe=vb,Ype=Ar;function Vpe(e,t,n){if(!Ype(n))return!1;var r=typeof t;return(r=="number"?zpe(n)&&Wpe(t,n.length):r=="string"&&t in n)?Upe(n[t],e):!1}var nm=Vpe,Hpe=Ck,Gpe=gpe,qpe=$k,$E=nm,Kpe=qpe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&$E(e,t[0],t[1])?t=[]:n>2&&$E(t[0],t[1],t[2])&&(t=[t[0]]),Gpe(e,Hpe(t,1),[])}),Xpe=Kpe;const Pk=Ne(Xpe);function Dh(e){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(nd,"-left"),se(n)&&t&&se(t.x)&&n=t.y),"".concat(nd,"-top"),se(r)&&t&&se(t.y)&&rm?Math.max(f,l[r]):Math.max(c,l[r])}function fme(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function dme(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return a.height>0&&a.width>0&&n?(f=EE({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),c=EE({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=fme({translateX:f,translateY:c,useTranslate3d:s})):u=ume,{cssProperties:u,cssClasses:cme({translateX:f,translateY:c,coordinate:n})}}function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function ME(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jE(e){for(var t=1;tRE||Math.abs(r.height-this.state.lastBoundingBox.height)>RE)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,h=i.offset,p=i.position,m=i.reverseDirection,g=i.useTranslate3d,y=i.viewBox,v=i.wrapperStyle,b=dme({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:h,position:p,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),A=b.cssClasses,w=b.cssProperties,S=jE(jE({transition:d&&o?"transform ".concat(s,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&c?"visible":"hidden",position:"absolute",top:0,left:0},v);return F.createElement("div",{tabIndex:-1,className:A,style:S,ref:function(C){r.wrapperNode=C}},u)}}])}(k.PureComponent),Sme=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ml={isSsr:Sme(),get:function(t){return ml[t]},set:function(t,n){if(typeof t=="string")ml[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ml[i]=t[i]})}}};function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function IE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DE(e){for(var t=1;t0;return F.createElement(wme,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:d,active:o,coordinate:f,hasPayload:S,offset:h,position:g,reverseDirection:y,useTranslate3d:v,viewBox:b,wrapperStyle:A},Mme(u,DE(DE({},this.props),{},{payload:w})))}}])}(k.PureComponent);Tk(Ho,"displayName","Tooltip");Tk(Ho,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ml.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var jme=Hi,Rme=function(){return jme.Date.now()},Ime=Rme,Dme=/\s/;function Nme(e){for(var t=e.length;t--&&Dme.test(e.charAt(t)););return t}var Lme=Nme,Bme=Lme,Fme=/^\s+/;function Ume(e){return e&&e.slice(0,Bme(e)+1).replace(Fme,"")}var zme=Ume,Wme=zme,NE=Ar,Yme=yf,LE=NaN,Vme=/^[-+]0x[0-9a-f]+$/i,Hme=/^0b[01]+$/i,Gme=/^0o[0-7]+$/i,qme=parseInt;function Kme(e){if(typeof e=="number")return e;if(Yme(e))return LE;if(NE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=NE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Wme(e);var n=Hme.test(e);return n||Gme.test(e)?qme(e.slice(2),n?2:8):Vme.test(e)?LE:+e}var F7=Kme,Xme=Ar,Wx=Ime,BE=F7,Qme="Expected a function",Zme=Math.max,Jme=Math.min;function ege(e,t,n){var r,i,o,a,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Qme);t=BE(t)||0,Xme(n)&&(f=!!n.leading,c="maxWait"in n,o=c?Zme(BE(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function h(S){var _=r,C=i;return r=i=void 0,u=S,a=e.apply(C,_),a}function p(S){return u=S,s=setTimeout(y,t),f?h(S):a}function m(S){var _=S-l,C=S-u,P=t-_;return c?Jme(P,o-C):P}function g(S){var _=S-l,C=S-u;return l===void 0||_>=t||_<0||c&&C>=o}function y(){var S=Wx();if(g(S))return v(S);s=setTimeout(y,m(S))}function v(S){return s=void 0,d&&r?h(S):(r=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function A(){return s===void 0?a:v(Wx())}function w(){var S=Wx(),_=g(S);if(r=arguments,i=this,l=S,_){if(s===void 0)return p(l);if(c)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return w.cancel=b,w.flush=A,w}var tge=ege,nge=tge,rge=Ar,ige="Expected a function";function oge(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(ige);return rge(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),nge(e,t,{leading:r,maxWait:t,trailing:i})}var age=oge;const sge=Ne(age);var qy=function(t){return null};qy.displayName="Cell";function Lh(e){"@babel/helpers - typeof";return Lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lh(e)}function FE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k2(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ml.isSsr)return{width:0,height:0};var r=hge(n),i=JSON.stringify({text:t,copyStyle:r});if(su.widthCache[i])return su.widthCache[i];try{var o=document.getElementById(UE);o||(o=document.createElement("span"),o.setAttribute("id",UE),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=k2(k2({},dge),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return su.widthCache[i]=l,++su.cacheCount>fge&&(su.cacheCount=0,su.widthCache={}),l}catch{return{width:0,height:0}}},pge=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}function Ky(e,t){return vge(e)||yge(e,t)||gge(e,t)||mge()}function mge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gge(e,t){if(e){if(typeof e=="string")return WE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WE(e,t)}}function WE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function KE(e,t){return Dge(e)||Ige(e,t)||Rge(e,t)||jge()}function jge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rge(e,t){if(e){if(typeof e=="string")return XE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XE(e,t)}}function XE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(I,B){var j=B.word,N=B.width,z=I[I.length-1];if(z&&(i==null||o||z.width+N+rB.width?I:B})};if(!f)return h;for(var m="…",g=function(R){var I=c.slice(0,R),B=Y7({breakAll:u,style:l,children:I+m}).wordsWithComputedWidth,j=d(B),N=j.length>a||p(j).width>Number(i);return[N,j]},y=0,v=c.length-1,b=0,A;y<=v&&b<=c.length-1;){var w=Math.floor((y+v)/2),S=w-1,_=g(S),C=KE(_,2),P=C[0],O=C[1],$=g(w),E=KE($,1),M=E[0];if(!P&&!M&&(y=w+1),P&&M&&(v=w-1),!P&&M){A=O;break}b++}return A||h},QE=function(t){var n=De(t)?[]:t.toString().split(W7);return[{words:n}]},Lge=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!ml.isSsr){var l,u,f=Y7({breakAll:a,children:i,style:o});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return QE(i);return Nge({breakAll:a,children:i,maxLines:s,style:o},l,u,n,r)}return QE(i)},ZE="#808080",Nc=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,p=t.verticalAnchor,m=p===void 0?"end":p,g=t.fill,y=g===void 0?ZE:g,v=qE(t,Tge),b=k.useMemo(function(){return Lge({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:c,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,c,v.style,v.width]),A=v.dx,w=v.dy,S=v.angle,_=v.className,C=v.breakAll,P=qE(v,Ege);if(!gn(r)||!gn(o))return null;var O=r+(se(A)?A:0),$=o+(se(w)?w:0),E;switch(m){case"start":E=Yx("calc(".concat(u,")"));break;case"middle":E=Yx("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=Yx("calc(".concat(b.length-1," * -").concat(s,")"));break}var M=[];if(c){var T=b[0].width,R=v.width;M.push("scale(".concat((se(R)?R/T:1)/T,")"))}return S&&M.push("rotate(".concat(S,", ").concat(O,", ").concat($,")")),M.length&&(P.transform=M.join(" ")),F.createElement("text",C2({},Ee(P,!0),{x:O,y:$,className:pe("recharts-text",_),textAnchor:h,fill:y.includes("url")?ZE:y}),b.map(function(I,B){var j=I.words.join(C?"":" ");return F.createElement("tspan",{x:O,dy:B===0?E:s,key:"".concat(j,"-").concat(B)},j)}))};function hs(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function Bge(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ek(e){let t,n,r;e.length!==2?(t=hs,n=(s,l)=>hs(e(s),l),r=(s,l)=>e(s)-l):(t=e===hs||e===Bge?e:Fge,n=e,r=e);function i(s,l,u=0,f=s.length){if(u>>1;n(s[c],l)<0?u=c+1:f=c}while(u>>1;n(s[c],l)<=0?u=c+1:f=c}while(uu&&r(s[c-1],l)>-r(s[c],l)?c-1:c}return{left:i,center:a,right:o}}function Fge(){return 0}function V7(e){return e===null?NaN:+e}function*Uge(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const zge=Ek(hs),rm=zge.right;Ek(V7).center;class JE extends Map{constructor(t,n=Vge){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(e3(this,t))}has(t){return super.has(e3(this,t))}set(t,n){return super.set(Wge(this,t),n)}delete(t){return super.delete(Yge(this,t))}}function e3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Wge({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Yge({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Vge(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Hge(e=hs){if(e===hs)return H7;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function H7(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const Gge=Math.sqrt(50),qge=Math.sqrt(10),Kge=Math.sqrt(2);function Xy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Gge?10:o>=qge?5:o>=Kge?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u=r)&&(n=r);return n}function n3(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function G7(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?H7:Hge(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*c/l+d)),p=Math.min(r,Math.floor(t+(l-u)*c/l+d));G7(e,t,h,p,i)}const o=e[t];let a=n,s=r;for(rd(e,n,t),i(e[r],o)>0&&rd(e,n,r);a0;)--s}i(e[n],o)===0?rd(e,n,s):(++s,rd(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function rd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Xge(e,t,n){if(e=Float64Array.from(Uge(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return n3(e);if(t>=1)return t3(e);var r,i=(r-1)*t,o=Math.floor(i),a=t3(G7(e,o).subarray(0,o+1)),s=n3(e.subarray(o+1));return a+(s-a)*(i-o)}}function Qge(e,t,n=V7){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function Zge(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=eye.exec(e))?new Vn(t[1],t[2],t[3],1):(t=tye.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nye.exec(e))?qm(t[1],t[2],t[3],t[4]):(t=rye.exec(e))?qm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iye.exec(e))?u3(t[1],t[2]/100,t[3]/100,1):(t=oye.exec(e))?u3(t[1],t[2]/100,t[3]/100,t[4]):r3.hasOwnProperty(e)?a3(r3[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function a3(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function qm(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vn(e,t,n,r)}function K7(e){return e instanceof Pf||(e=Uh(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function Fc(e,t,n,r){return arguments.length===1?K7(e):new Vn(e,t,n,r??1)}function Vn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ab(Vn,Fc,Mk(Pf,{brighter(e){return e=e==null?Bc:Math.pow(Bc,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pl:Math.pow(Pl,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(gl(this.r),gl(this.g),gl(this.b),Qy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:s3,formatHex:s3,formatHex8:lye,formatRgb:l3,toString:l3}));function s3(){return`#${Js(this.r)}${Js(this.g)}${Js(this.b)}`}function lye(){return`#${Js(this.r)}${Js(this.g)}${Js(this.b)}${Js((isNaN(this.opacity)?1:this.opacity)*255)}`}function l3(){const e=Qy(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function Qy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Js(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function u3(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mi(e,t,n,r)}function X7(e){if(e instanceof Mi)return new Mi(e.h,e.s,e.l,e.opacity);if(e instanceof Pf||(e=Uh(e)),!e)return new Mi;if(e instanceof Mi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n0&&l<1?0:a,new Mi(a,s,l,e.opacity)}function uye(e,t,n,r){return arguments.length===1?X7(e):new Mi(e,t,n,r??1)}function Mi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ab(Mi,uye,Mk(Pf,{brighter(e){return e=e==null?Bc:Math.pow(Bc,e),new Mi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pl:Math.pow(Pl,e),new Mi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Vn(Vx(e>=240?e-240:e+120,i,r),Vx(e,i,r),Vx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mi(c3(this.h),Km(this.s),Km(this.l),Qy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qy(this.opacity);return`${e===1?"hsl(":"hsla("}${c3(this.h)}, ${Km(this.s)*100}%, ${Km(this.l)*100}%${e===1?")":`, ${e})`}`}}));function c3(e){return e=(e||0)%360,e<0?e+360:e}function Km(e){return Math.max(0,Math.min(1,e||0))}function Vx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cye=Math.PI/180,fye=180/Math.PI;var Q7=-.14861,jk=1.78277,Rk=-.29227,_b=-.90649,zh=1.97294,f3=zh*_b,d3=zh*jk,h3=jk*Rk-_b*Q7;function dye(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);e instanceof Vn||(e=K7(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(h3*r+f3*t-d3*n)/(h3+f3-d3),o=r-i,a=(zh*(n-i)-Rk*o)/_b,s=Math.sqrt(a*a+o*o)/(zh*i*(1-i)),l=s?Math.atan2(a,o)*fye-120:NaN;return new yl(l<0?l+360:l,s,i,e.opacity)}function ko(e,t,n,r){return arguments.length===1?dye(e):new yl(e,t,n,r??1)}function yl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ab(yl,ko,Mk(Pf,{brighter(e){return e=e==null?Bc:Math.pow(Bc,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pl:Math.pow(Pl,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*cye,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Vn(255*(t+n*(Q7*r+jk*i)),255*(t+n*(Rk*r+_b*i)),255*(t+n*(zh*r)),this.opacity)}}));function hye(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function pye(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r()=>e;function Z7(e,t){return function(n){return e+n*t}}function mye(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function gye(e,t){var n=t-e;return n?Z7(e,n>180||n<-180?n-360*Math.round(n/360):n):Ob(isNaN(e)?t:e)}function yye(e){return(e=+e)==1?Qu:function(t,n){return n-t?mye(t,n,e):Ob(isNaN(t)?n:t)}}function Qu(e,t){var n=t-e;return n?Z7(e,n):Ob(isNaN(e)?t:e)}const p3=function e(t){var n=yye(t);function r(i,o){var a=n((i=Fc(i)).r,(o=Fc(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=Qu(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function vye(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;an&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Zy(r,i)})),n=Hx.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Tye(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i2?Eye:Tye,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?o:(l||(l=s(e.map(r),t,n)))(r(a(d)))}return c.invert=function(d){return a(i((u||(u=s(t,e.map(r),Zy)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Jy),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=Ik,f()},c.clamp=function(d){return arguments.length?(a=d?!0:Zn,f()):a!==Zn},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,h){return r=d,i=h,f()}}function Nk(){return kb()(Zn,Zn)}function Mye(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function e0(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Uc(e){return e=e0(Math.abs(e)),e?e[1]:NaN}function jye(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Rye(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Iye=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wh(e){if(!(t=Iye.exec(e)))throw new Error("invalid format: "+e);var t;return new Lk({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Wh.prototype=Lk.prototype;function Lk(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Lk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Dye(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var tN;function Nye(e,t){var n=e0(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(tN=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+e0(e,Math.max(0,t+o-1))[0]}function g3(e,t){var n=e0(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const y3={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Mye,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return g3(e*100,t)},r:g3,s:Nye,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function v3(e){return e}var b3=Array.prototype.map,x3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lye(e){var t=e.grouping===void 0||e.thousands===void 0?v3:jye(b3.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?v3:Rye(b3.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c){c=Wh(c);var d=c.fill,h=c.align,p=c.sign,m=c.symbol,g=c.zero,y=c.width,v=c.comma,b=c.precision,A=c.trim,w=c.type;w==="n"?(v=!0,w="g"):y3[w]||(b===void 0&&(b=12),A=!0,w="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",_=m==="$"?r:/[%p]/.test(w)?a:"",C=y3[w],P=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function O($){var E=S,M=_,T,R,I;if(w==="c")M=C($)+M,$="";else{$=+$;var B=$<0||1/$<0;if($=isNaN($)?l:C(Math.abs($),b),A&&($=Dye($)),B&&+$==0&&p!=="+"&&(B=!1),E=(B?p==="("?p:s:p==="-"||p==="("?"":p)+E,M=(w==="s"?x3[8+tN/3]:"")+M+(B&&p==="("?")":""),P){for(T=-1,R=$.length;++TI||I>57){M=(I===46?i+$.slice(T+1):$.slice(T))+M,$=$.slice(0,T);break}}}v&&!g&&($=t($,1/0));var j=E.length+$.length+M.length,N=j>1)+E+$+M+N.slice(j);break;default:$=N+E+$+M;break}return o($)}return O.toString=function(){return c+""},O}function f(c,d){var h=u((c=Wh(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Uc(d)/3)))*3,m=Math.pow(10,-p),g=x3[8+p/3];return function(y){return h(m*y)+g}}return{format:u,formatPrefix:f}}var Xm,om,nN;Bye({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Bye(e){return Xm=Lye(e),om=Xm.format,nN=Xm.formatPrefix,Xm}function Fye(e){return Math.max(0,-Uc(Math.abs(e)))}function Uye(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Uc(t)/3)))*3-Uc(Math.abs(e)))}function zye(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Uc(t)-Uc(e))+1}function rN(e,t,n,r){var i=T2(e,t,n),o;switch(r=Wh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Uye(i,a))&&(r.precision=o),nN(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=zye(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Fye(i))&&(r.precision=o-(r.type==="%")*2);break}}return om(r)}function Cs(e){var t=e.domain;return e.ticks=function(n){var r=t();return $2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return rN(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s0;){if(u=P2(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Yh(){var e=Nk();return e.copy=function(){return im(e,Yh())},bi.apply(e,arguments),Cs(e)}function iN(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Jy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return iN(e).unknown(t)},e=arguments.length?Array.from(e,Jy):[0,1],Cs(n)}function oN(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return oMath.pow(e,t)}function Gye(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function A3(e){return(t,n)=>-e(-t,n)}function Bk(e){const t=e(w3,S3),n=t.domain;let r=10,i,o;function a(){return i=Gye(r),o=Hye(r),n()[0]<0?(i=A3(i),o=A3(o),e(Wye,Yye)):e(w3,S3),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const c=f0){for(;d<=h;++d)for(p=1;pf)break;y.push(m)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(m=d>0?p/o(-d):p*o(d),!(mf)break;y.push(m)}y.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Wh(l)).precision==null&&(l.trim=!0),l=om(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let c=f/o(Math.round(i(f)));return c*rn(oN(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Fk(){const e=Bk(kb()).domain([1,10]);return e.copy=()=>im(e,Fk()).base(e.base()),bi.apply(e,arguments),e}function _3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function O3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Uk(e){var t=1,n=e(_3(t),O3(t));return n.constant=function(r){return arguments.length?e(_3(t=+r),O3(t)):t},Cs(n)}function zk(){var e=Uk(kb());return e.copy=function(){return im(e,zk()).constant(e.constant())},bi.apply(e,arguments)}function k3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qye(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Kye(e){return e<0?-e*e:e*e}function Wk(e){var t=e(Zn,Zn),n=1;function r(){return n===1?e(Zn,Zn):n===.5?e(qye,Kye):e(k3(n),k3(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Cs(t)}function Yk(){var e=Wk(kb());return e.copy=function(){return im(e,Yk()).exponent(e.exponent())},bi.apply(e,arguments),e}function Xye(){return Yk.apply(null,arguments).exponent(.5)}function C3(e){return Math.sign(e)*e*e}function Qye(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function aN(){var e=Nk(),t=[0,1],n=!1,r;function i(o){var a=Qye(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(C3(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Jy)).map(C3)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return aN(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},bi.apply(i,arguments),Cs(i)}function sN(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return lN().domain([e,t]).range(i).unknown(o)},bi.apply(Cs(a),arguments)}function uN(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[rm(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return uN().domain(e).range(t).unknown(n)},bi.apply(i,arguments)}const Gx=new Date,qx=new Date;function yn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(uyn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Gx.setTime(+o),qx.setTime(+a),e(Gx),e(qx),Math.floor(n(Gx,qx))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const t0=yn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);t0.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):t0);t0.range;const na=1e3,si=na*60,ra=si*60,ma=ra*24,Vk=ma*7,$3=ma*30,Kx=ma*365,el=yn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getUTCSeconds());el.range;const Hk=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*na)},(e,t)=>{e.setTime(+e+t*si)},(e,t)=>(t-e)/si,e=>e.getMinutes());Hk.range;const Gk=yn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*si)},(e,t)=>(t-e)/si,e=>e.getUTCMinutes());Gk.range;const qk=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*na-e.getMinutes()*si)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getHours());qk.range;const Kk=yn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getUTCHours());Kk.range;const Xk=yn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*si)/ma,e=>e.getDate()-1);Xk.range;const cN=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ma,e=>e.getUTCDate()-1);cN.range;const fN=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ma,e=>Math.floor(e/ma));fN.range;function Hl(e){return yn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*si)/Vk)}const Qk=Hl(0),Zye=Hl(1),Jye=Hl(2),e0e=Hl(3),t0e=Hl(4),n0e=Hl(5),r0e=Hl(6);Qk.range;Zye.range;Jye.range;e0e.range;t0e.range;n0e.range;r0e.range;function Gl(e){return yn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Vk)}const Zk=Gl(0),i0e=Gl(1),o0e=Gl(2),a0e=Gl(3),s0e=Gl(4),l0e=Gl(5),u0e=Gl(6);Zk.range;i0e.range;o0e.range;a0e.range;s0e.range;l0e.range;u0e.range;const Jk=yn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Jk.range;const eC=yn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eC.range;const Cb=yn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Cb.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Cb.range;const $b=yn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());$b.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});$b.range;function dN(e,t,n,r,i,o){const a=[[el,1,na],[el,5,5*na],[el,15,15*na],[el,30,30*na],[o,1,si],[o,5,5*si],[o,15,15*si],[o,30,30*si],[i,1,ra],[i,3,3*ra],[i,6,6*ra],[i,12,12*ra],[r,1,ma],[r,2,2*ma],[n,1,Vk],[t,1,$3],[t,3,3*$3],[e,1,Kx]];function s(u,f,c){const d=fg).right(a,d);if(h===a.length)return e.every(T2(u/Kx,f/Kx,c));if(h===0)return t0.every(Math.max(T2(u,f,c),1));const[p,m]=a[d/a[h-1][2]0))return l;do l.push(u=new Date(+o)),t(o,s),e(o);while(u=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return Xx.setTime(+o),Qx.setTime(+a),e(Xx),e(Qx),Math.floor(n(Xx,Qx))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var Vh=un(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vh.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?un(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Vh};Vh.range;var n0=1e3,Tl=6e4,r0=36e5,hN=864e5,pN=6048e5,R2=un(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*n0)},function(e,t){return(t-e)/n0},function(e){return e.getUTCSeconds()});R2.range;var mN=un(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*n0)},function(e,t){e.setTime(+e+t*Tl)},function(e,t){return(t-e)/Tl},function(e){return e.getMinutes()});mN.range;var gN=un(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*n0-e.getMinutes()*Tl)},function(e,t){e.setTime(+e+t*r0)},function(e,t){return(t-e)/r0},function(e){return e.getHours()});gN.range;var tC=un(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Tl)/hN},function(e){return e.getDate()-1});tC.range;function ql(e){return un(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Tl)/pN})}var i0=ql(0),Hh=ql(1),yN=ql(2),vN=ql(3),El=ql(4),bN=ql(5),xN=ql(6);i0.range;Hh.range;yN.range;vN.range;El.range;bN.range;xN.range;var wN=un(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});wN.range;var xs=un(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});xs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:un(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};xs.range;var SN=un(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Tl)},function(e,t){return(t-e)/Tl},function(e){return e.getUTCMinutes()});SN.range;var AN=un(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*r0)},function(e,t){return(t-e)/r0},function(e){return e.getUTCHours()});AN.range;var nC=un(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/hN},function(e){return e.getUTCDate()-1});nC.range;function Kl(e){return un(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/pN})}var o0=Kl(0),Gh=Kl(1),_N=Kl(2),ON=Kl(3),Ml=Kl(4),kN=Kl(5),CN=Kl(6);o0.range;Gh.range;_N.range;ON.range;Ml.range;kN.range;CN.range;var $N=un(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});$N.range;var ws=un(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ws.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:un(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};ws.range;function Zx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Jx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function id(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function p0e(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=od(i),f=ad(i),c=od(o),d=ad(o),h=od(a),p=ad(a),m=od(s),g=ad(s),y=od(l),v=ad(l),b={a:B,A:j,b:N,B:z,c:null,d:R3,e:R3,f:N0e,g:G0e,G:K0e,H:R0e,I:I0e,j:D0e,L:PN,m:L0e,M:B0e,p:X,q:Y,Q:N3,s:L3,S:F0e,u:U0e,U:z0e,V:W0e,w:Y0e,W:V0e,x:null,X:null,y:H0e,Y:q0e,Z:X0e,"%":D3},A={a:K,A:Q,b:re,B:ne,c:null,d:I3,e:I3,f:eve,g:cve,G:dve,H:Q0e,I:Z0e,j:J0e,L:EN,m:tve,M:nve,p:fe,q:de,Q:N3,s:L3,S:rve,u:ive,U:ove,V:ave,w:sve,W:lve,x:null,X:null,y:uve,Y:fve,Z:hve,"%":D3},w={a:O,A:$,b:E,B:M,c:T,d:M3,e:M3,f:T0e,g:E3,G:T3,H:j3,I:j3,j:k0e,L:P0e,m:O0e,M:C0e,p:P,q:_0e,Q:M0e,s:j0e,S:$0e,u:b0e,U:x0e,V:w0e,w:v0e,W:S0e,x:R,X:I,y:E3,Y:T3,Z:A0e,"%":E0e};b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),A.x=S(n,A),A.X=S(r,A),A.c=S(t,A);function S(q,ee){return function(ie){var W=[],ve=-1,xe=0,Le=q.length,qe,We,wt;for(ie instanceof Date||(ie=new Date(+ie));++ve53)return null;"w"in W||(W.w=1),"Z"in W?(xe=Jx(id(W.y,0,1)),Le=xe.getUTCDay(),xe=Le>4||Le===0?Gh.ceil(xe):Gh(xe),xe=nC.offset(xe,(W.V-1)*7),W.y=xe.getUTCFullYear(),W.m=xe.getUTCMonth(),W.d=xe.getUTCDate()+(W.w+6)%7):(xe=Zx(id(W.y,0,1)),Le=xe.getDay(),xe=Le>4||Le===0?Hh.ceil(xe):Hh(xe),xe=tC.offset(xe,(W.V-1)*7),W.y=xe.getFullYear(),W.m=xe.getMonth(),W.d=xe.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),Le="Z"in W?Jx(id(W.y,0,1)).getUTCDay():Zx(id(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(Le+5)%7:W.w+W.U*7-(Le+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,Jx(W)):Zx(W)}}function C(q,ee,ie,W){for(var ve=0,xe=ee.length,Le=ie.length,qe,We;ve=Le)return-1;if(qe=ee.charCodeAt(ve++),qe===37){if(qe=ee.charAt(ve++),We=w[qe in P3?ee.charAt(ve++):qe],!We||(W=We(q,ie,W))<0)return-1}else if(qe!=ie.charCodeAt(W++))return-1}return W}function P(q,ee,ie){var W=u.exec(ee.slice(ie));return W?(q.p=f.get(W[0].toLowerCase()),ie+W[0].length):-1}function O(q,ee,ie){var W=h.exec(ee.slice(ie));return W?(q.w=p.get(W[0].toLowerCase()),ie+W[0].length):-1}function $(q,ee,ie){var W=c.exec(ee.slice(ie));return W?(q.w=d.get(W[0].toLowerCase()),ie+W[0].length):-1}function E(q,ee,ie){var W=y.exec(ee.slice(ie));return W?(q.m=v.get(W[0].toLowerCase()),ie+W[0].length):-1}function M(q,ee,ie){var W=m.exec(ee.slice(ie));return W?(q.m=g.get(W[0].toLowerCase()),ie+W[0].length):-1}function T(q,ee,ie){return C(q,t,ee,ie)}function R(q,ee,ie){return C(q,n,ee,ie)}function I(q,ee,ie){return C(q,r,ee,ie)}function B(q){return a[q.getDay()]}function j(q){return o[q.getDay()]}function N(q){return l[q.getMonth()]}function z(q){return s[q.getMonth()]}function X(q){return i[+(q.getHours()>=12)]}function Y(q){return 1+~~(q.getMonth()/3)}function K(q){return a[q.getUTCDay()]}function Q(q){return o[q.getUTCDay()]}function re(q){return l[q.getUTCMonth()]}function ne(q){return s[q.getUTCMonth()]}function fe(q){return i[+(q.getUTCHours()>=12)]}function de(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var ee=S(q+="",b);return ee.toString=function(){return q},ee},parse:function(q){var ee=_(q+="",!1);return ee.toString=function(){return q},ee},utcFormat:function(q){var ee=S(q+="",A);return ee.toString=function(){return q},ee},utcParse:function(q){var ee=_(q+="",!0);return ee.toString=function(){return q},ee}}}var P3={"-":"",_:" ",0:"0"},kn=/^\s*\d+/,m0e=/^%/,g0e=/[\\^$*+?|[\]().{}]/g;function He(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[t.toLowerCase(),n]))}function v0e(e,t,n){var r=kn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function b0e(e,t,n){var r=kn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function x0e(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function w0e(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function S0e(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function T3(e,t,n){var r=kn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function E3(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function A0e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _0e(e,t,n){var r=kn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function O0e(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M3(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function k0e(e,t,n){var r=kn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function j3(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function C0e(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $0e(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function P0e(e,t,n){var r=kn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function T0e(e,t,n){var r=kn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function E0e(e,t,n){var r=m0e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function M0e(e,t,n){var r=kn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function j0e(e,t,n){var r=kn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function R3(e,t){return He(e.getDate(),t,2)}function R0e(e,t){return He(e.getHours(),t,2)}function I0e(e,t){return He(e.getHours()%12||12,t,2)}function D0e(e,t){return He(1+tC.count(xs(e),e),t,3)}function PN(e,t){return He(e.getMilliseconds(),t,3)}function N0e(e,t){return PN(e,t)+"000"}function L0e(e,t){return He(e.getMonth()+1,t,2)}function B0e(e,t){return He(e.getMinutes(),t,2)}function F0e(e,t){return He(e.getSeconds(),t,2)}function U0e(e){var t=e.getDay();return t===0?7:t}function z0e(e,t){return He(i0.count(xs(e)-1,e),t,2)}function TN(e){var t=e.getDay();return t>=4||t===0?El(e):El.ceil(e)}function W0e(e,t){return e=TN(e),He(El.count(xs(e),e)+(xs(e).getDay()===4),t,2)}function Y0e(e){return e.getDay()}function V0e(e,t){return He(Hh.count(xs(e)-1,e),t,2)}function H0e(e,t){return He(e.getFullYear()%100,t,2)}function G0e(e,t){return e=TN(e),He(e.getFullYear()%100,t,2)}function q0e(e,t){return He(e.getFullYear()%1e4,t,4)}function K0e(e,t){var n=e.getDay();return e=n>=4||n===0?El(e):El.ceil(e),He(e.getFullYear()%1e4,t,4)}function X0e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+He(t/60|0,"0",2)+He(t%60,"0",2)}function I3(e,t){return He(e.getUTCDate(),t,2)}function Q0e(e,t){return He(e.getUTCHours(),t,2)}function Z0e(e,t){return He(e.getUTCHours()%12||12,t,2)}function J0e(e,t){return He(1+nC.count(ws(e),e),t,3)}function EN(e,t){return He(e.getUTCMilliseconds(),t,3)}function eve(e,t){return EN(e,t)+"000"}function tve(e,t){return He(e.getUTCMonth()+1,t,2)}function nve(e,t){return He(e.getUTCMinutes(),t,2)}function rve(e,t){return He(e.getUTCSeconds(),t,2)}function ive(e){var t=e.getUTCDay();return t===0?7:t}function ove(e,t){return He(o0.count(ws(e)-1,e),t,2)}function MN(e){var t=e.getUTCDay();return t>=4||t===0?Ml(e):Ml.ceil(e)}function ave(e,t){return e=MN(e),He(Ml.count(ws(e),e)+(ws(e).getUTCDay()===4),t,2)}function sve(e){return e.getUTCDay()}function lve(e,t){return He(Gh.count(ws(e)-1,e),t,2)}function uve(e,t){return He(e.getUTCFullYear()%100,t,2)}function cve(e,t){return e=MN(e),He(e.getUTCFullYear()%100,t,2)}function fve(e,t){return He(e.getUTCFullYear()%1e4,t,4)}function dve(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ml(e):Ml.ceil(e),He(e.getUTCFullYear()%1e4,t,4)}function hve(){return"+0000"}function D3(){return"%"}function N3(e){return+e}function L3(e){return Math.floor(+e/1e3)}var lu,Pb,jN,RN,IN;pve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pve(e){return lu=p0e(e),Pb=lu.format,jN=lu.parse,RN=lu.utcFormat,IN=lu.utcParse,lu}function mve(e){return new Date(e)}function gve(e){return e instanceof Date?+e:+new Date(+e)}function rC(e,t,n,r,i,o,a,s,l,u){var f=Nk(),c=f.invert,d=f.domain,h=u(".%L"),p=u(":%S"),m=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),v=u("%b %d"),b=u("%B"),A=u("%Y");function w(S){return(l(S)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>Xge(e,o/r))},n.copy=function(){return UN(t).domain(e)},Aa.apply(n,arguments)}function Eb(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=Zn,f,c=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+f(m))-o)*(r*mt}var VN=wve,Sve=Mb,Ave=VN,_ve=$f;function Ove(e){return e&&e.length?Sve(e,_ve,Ave):void 0}var kve=Ove;const jb=Ne(kve);function Cve(e,t){return ee.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ce.decimalPlaces=ce.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ct;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ce.dividedBy=ce.div=function(e){return sa(this,new this.constructor(e))};ce.dividedToIntegerBy=ce.idiv=function(e){var t=this,n=t.constructor;return pt(sa(t,new n(e),0,1),n.precision)};ce.equals=ce.eq=function(e){return!this.cmp(e)};ce.exponent=function(){return ln(this)};ce.greaterThan=ce.gt=function(e){return this.cmp(e)>0};ce.greaterThanOrEqualTo=ce.gte=function(e){return this.cmp(e)>=0};ce.isInteger=ce.isint=function(){return this.e>this.d.length-2};ce.isNegative=ce.isneg=function(){return this.s<0};ce.isPositive=ce.ispos=function(){return this.s>0};ce.isZero=function(){return this.s===0};ce.lessThan=ce.lt=function(e){return this.cmp(e)<0};ce.lessThanOrEqualTo=ce.lte=function(e){return this.cmp(e)<1};ce.logarithm=ce.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Er))throw Error(hi+"NaN");if(n.s<1)throw Error(hi+(n.s?"NaN":"-Infinity"));return n.eq(Er)?new r(0):(Nt=!1,t=sa(qh(n,o),qh(e,o),o),Nt=!0,pt(t,i))};ce.minus=ce.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XN(t,e):qN(t,(e.s=-e.s,e))};ce.modulo=ce.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(hi+"NaN");return n.s?(Nt=!1,t=sa(n,e,0,1).times(e),Nt=!0,n.minus(t)):pt(new r(n),i)};ce.naturalExponential=ce.exp=function(){return KN(this)};ce.naturalLogarithm=ce.ln=function(){return qh(this)};ce.negated=ce.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ce.plus=ce.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qN(t,e):XN(t,(e.s=-e.s,e))};ce.precision=ce.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(vl+e);if(t=ln(i)+1,r=i.d.length-1,n=r*Ct+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ce.squareRoot=ce.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(hi+"NaN")}for(e=ln(s),Nt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=go(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mf((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(sa(s,o,a+2)).times(.5),go(o.d).slice(0,a)===(t=go(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(pt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Nt=!0,pt(r,n)};ce.times=ce.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,c=f.constructor,d=f.d,h=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,l=d.length,u=h.length,l=0;){for(t=0,i=l+r;i>r;)s=o[i]+h[r]*d[i-r-1]+t,o[i--]=s%bn|0,t=s/bn|0;o[i]=(o[i]+t)%bn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Nt?pt(e,c.precision):e};ce.toDecimalPlaces=ce.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Co(e,0,Ef),t===void 0?t=r.rounding:Co(t,0,8),pt(n,e+ln(n)+1,t))};ce.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=jl(r,!0):(Co(e,0,Ef),t===void 0?t=i.rounding:Co(t,0,8),r=pt(new i(r),e+1,t),n=jl(r,!0,e+1)),n};ce.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?jl(i):(Co(e,0,Ef),t===void 0?t=o.rounding:Co(t,0,8),r=pt(new o(i),e+ln(i)+1,t),n=jl(r.abs(),!1,e+ln(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ce.toInteger=ce.toint=function(){var e=this,t=e.constructor;return pt(new t(e),ln(e)+1,t.rounding)};ce.toNumber=function(){return+this};ce.toPower=ce.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(Er);if(s=new l(s),!s.s){if(e.s<1)throw Error(hi+"Infinity");return s}if(s.eq(Er))return s;if(r=l.precision,e.eq(Er))return pt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=GN){for(i=new l(Er),t=Math.ceil(r/Ct+4),Nt=!1;n%2&&(i=i.times(s),U3(i.d,t)),n=Mf(n/2),n!==0;)s=s.times(s),U3(s.d,t);return Nt=!0,e.s<0?new l(Er).div(i):pt(i,r)}}else if(o<0)throw Error(hi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Nt=!1,i=e.times(qh(s,r+u)),Nt=!0,i=KN(i),i.s=o,i};ce.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=ln(i),r=jl(i,n<=o.toExpNeg||n>=o.toExpPos)):(Co(e,1,Ef),t===void 0?t=o.rounding:Co(t,0,8),i=pt(new o(i),e,t),n=ln(i),r=jl(i,e<=n||n<=o.toExpNeg,e)),r};ce.toSignificantDigits=ce.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Co(e,1,Ef),t===void 0?t=r.rounding:Co(t,0,8)),pt(new r(n),e,t)};ce.toString=ce.valueOf=ce.val=ce.toJSON=ce[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ln(e),n=e.constructor;return jl(e,t<=n.toExpNeg||t>=n.toExpPos)};function qN(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Nt?pt(t,c):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(c/Ct),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/bn|0,l[o]%=bn;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Nt?pt(t,c):t}function Co(e,t,n){if(e!==~~e||en)throw Error(vl+e)}function go(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]1;)r.shift()}return function(r,i,o,a){var s,l,u,f,c,d,h,p,m,g,y,v,b,A,w,S,_,C,P=r.constructor,O=r.s==i.s?1:-1,$=r.d,E=i.d;if(!r.s)return new P(r);if(!i.s)throw Error(hi+"Division by zero");for(l=r.e-i.e,_=E.length,w=$.length,h=new P(O),p=h.d=[],u=0;E[u]==($[u]||0);)++u;if(E[u]>($[u]||0)&&--l,o==null?v=o=P.precision:a?v=o+(ln(r)-ln(i))+1:v=o,v<0)return new P(0);if(v=v/Ct+2|0,u=0,_==1)for(f=0,E=E[0],v++;(u1&&(E=e(E,f),$=e($,f),_=E.length,w=$.length),A=_,m=$.slice(0,_),g=m.length;g<_;)m[g++]=0;C=E.slice(),C.unshift(0),S=E[0],E[1]>=bn/2&&++S;do f=0,s=t(E,m,_,g),s<0?(y=m[0],_!=g&&(y=y*bn+(m[1]||0)),f=y/S|0,f>1?(f>=bn&&(f=bn-1),c=e(E,f),d=c.length,g=m.length,s=t(c,m,d,g),s==1&&(f--,n(c,_16)throw Error(aC+ln(e));if(!e.s)return new f(Er);for(t==null?(Nt=!1,s=c):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Ws(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Er),f.precision=s;;){if(i=pt(i.times(e),s),n=n.times(++l),a=o.plus(sa(i,n,s)),go(a.d).slice(0,s)===go(o.d).slice(0,s)){for(;u--;)o=pt(o.times(o),s);return f.precision=c,t==null?(Nt=!0,pt(o,c)):o}o=a}}function ln(e){for(var t=e.e*Ct,n=e.d[0];n>=10;n/=10)t++;return t}function ew(e,t,n){if(t>e.LN10.sd())throw Nt=!0,n&&(e.precision=n),Error(hi+"LN10 precision limit exceeded");return pt(new e(e.LN10),t)}function ja(e){for(var t="";e--;)t+="0";return t}function qh(e,t){var n,r,i,o,a,s,l,u,f,c=1,d=10,h=e,p=h.d,m=h.constructor,g=m.precision;if(h.s<1)throw Error(hi+(h.s?"NaN":"-Infinity"));if(h.eq(Er))return new m(0);if(t==null?(Nt=!1,u=g):u=t,h.eq(10))return t==null&&(Nt=!0),ew(m,u);if(u+=d,m.precision=u,n=go(p),r=n.charAt(0),o=ln(h),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=go(h.d),r=n.charAt(0),c++;o=ln(h),r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1))}else return l=ew(m,u+2,g).times(o+""),h=qh(new m(r+"."+n.slice(1)),u-d).plus(l),m.precision=g,t==null?(Nt=!0,pt(h,g)):h;for(s=a=h=sa(h.minus(Er),h.plus(Er),u),f=pt(h.times(h),u),i=3;;){if(a=pt(a.times(f),u),l=s.plus(sa(a,new m(i),u)),go(l.d).slice(0,u)===go(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(ew(m,u+2,g).times(o+""))),s=sa(s,new m(c),u),m.precision=g,t==null?(Nt=!0,pt(s,g)):s;s=l,i+=2}}function F3(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Mf(n/Ct),e.d=[],r=(n+1)%Ct,n<0&&(r+=Ct),ra0||e.e<-a0))throw Error(aC+n)}else e.s=0,e.e=0,e.d=[0];return e}function pt(e,t,n){var r,i,o,a,s,l,u,f,c=e.d;for(a=1,o=c[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Ct,i=t,u=c[f=0];else{if(f=Math.ceil((r+1)/Ct),o=c.length,f>=o)return e;for(u=o=c[f],a=1;o>=10;o/=10)a++;r%=Ct,i=r-Ct+a}if(n!==void 0&&(o=Ws(10,a-i-1),s=u/o%10|0,l=t<0||c[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Ws(10,a-i):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return l?(o=ln(e),c.length=1,t=t-o-1,c[0]=Ws(10,(Ct-t%Ct)%Ct),e.e=Mf(-t/Ct)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,o=1,f--):(c.length=f+1,o=Ws(10,Ct-r),c[f]=i>0?(u/Ws(10,a-i)%Ws(10,i)|0)*o:0),l)for(;;)if(f==0){(c[0]+=o)==bn&&(c[0]=1,++e.e);break}else{if(c[f]+=o,c[f]!=bn)break;c[f--]=0,o=1}for(r=c.length;c[--r]===0;)c.pop();if(Nt&&(e.e>a0||e.e<-a0))throw Error(aC+ln(e));return e}function XN(e,t){var n,r,i,o,a,s,l,u,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Nt?pt(t,h):t;if(l=e.d,c=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=c.length):(n=c,r=u,s=l.length),i=Math.max(Math.ceil(h/Ct),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=c.length,f=i0;--i)l[s++]=0;for(i=c.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+ja(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ja(-i-1)+o,n&&(r=n-a)>0&&(o+=ja(r))):i>=a?(o+=ja(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+ja(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=ja(r))),e.s<0?"-"+o:o}function U3(e,t){if(e.length>t)return e.length=t,!0}function QN(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(vl+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return F3(a,o.toString())}else if(typeof o!="string")throw Error(vl+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,qve.test(o))F3(a,o);else throw Error(vl+o)}if(i.prototype=ce,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=QN,i.config=i.set=Kve,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(vl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(vl+n+": "+r);return this}var sC=QN(Gve);Er=new sC(1);const lt=sC;function Xve(e){return ebe(e)||Jve(e)||Zve(e)||Qve()}function Qve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zve(e,t){if(e){if(typeof e=="string")return I2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I2(e,t)}}function Jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ebe(e){if(Array.isArray(e))return I2(e)}function I2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-a,z3(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function mbe(e){if(Array.isArray(e))return e}function n9(e){var t=Kh(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function r9(e,t,n){if(e.lte(0))return new lt(0);var r=Nb.getDigitCount(e.toNumber()),i=new lt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new lt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new lt(Math.ceil(l))}function gbe(e,t,n){var r=1,i=new lt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new lt(10).pow(Nb.getDigitCount(e)-1),i=new lt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new lt(Math.floor(e)))}else e===0?i=new lt(Math.floor((t-1)/2)):n||(i=new lt(Math.floor(e)));var a=Math.floor((t-1)/2),s=ibe(rbe(function(l){return i.add(new lt(l-a).mul(r)).toNumber()}),D2);return s(0,t)}function i9(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new lt(0),tickMin:new lt(0),tickMax:new lt(0)};var o=r9(new lt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new lt(0):(a=new lt(e).add(t).div(2),a=a.sub(new lt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new lt(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?i9(e,t,n,r,i+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new lt(s).mul(o)),tickMax:a.add(new lt(l).mul(o))})}function ybe(e){var t=Kh(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=n9([n,r]),l=Kh(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(L2(D2(0,i-1).map(function(){return 1/0}))):[].concat(L2(D2(0,i-1).map(function(){return-1/0})),[f]);return n>r?N2(c):c}if(u===f)return gbe(u,i,o);var d=i9(u,f,a,o),h=d.step,p=d.tickMin,m=d.tickMax,g=Nb.rangeStep(p,m.add(new lt(.1).mul(h)),h);return n>r?N2(g):g}function vbe(e,t){var n=Kh(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=n9([r,i]),s=Kh(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),c=r9(new lt(u).sub(l).div(f-1),o,0),d=[].concat(L2(Nb.rangeStep(new lt(l),new lt(u).sub(new lt(.99).mul(c)),c)),[u]);return r>i?N2(d):d}var bbe=e9(ybe),xbe=e9(vbe),wbe="Invariant failed";function zc(e,t){throw new Error(wbe)}var Sbe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wc(e){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Tbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ebe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(ai(c-f)!==ai(d-c)){var p=[];if(ai(d-c)===ai(l[1]-l[0])){h=d;var m=c+l[1]-l[0];p[0]=Math.min(m,(m+f)/2),p[1]=Math.max(m,(m+f)/2)}else{h=f;var g=d+l[1]-l[0];p[0]=Math.min(c,(g+c)/2),p[1]=Math.max(c,(g+c)/2)}var y=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>y[0]&&t<=y[1]||t>=p[0]&&t<=p[1]){a=i[u].index;break}}else{var v=Math.min(f,d),b=Math.max(f,d);if(t>(v+c)/2&&t<=(b+c)/2){a=i[u].index;break}}}else for(var A=0;A0&&A(r[A].coordinate+r[A-1].coordinate)/2&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A===s-1&&t>(r[A].coordinate+r[A-1].coordinate)/2){a=r[A].index;break}return a},uC=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?qt(qt({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},qbe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,u=s.length;l=0});if(y&&y.length){var v=y[0].type.defaultProps,b=v!==void 0?qt(qt({},v),y[0].props):y[0].props,A=b.barSize,w=b[g];a[w]||(a[w]=[]);var S=De(A)?n:A;a[w].push({item:y[0],stackList:y.slice(1),barSize:De(S)?void 0:yr(S,r,0)})}}return a},Kbe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=yr(n,i,0,!0),f,c=[];if(a[0].barSize===+a[0].barSize){var d=!1,h=i/l,p=a.reduce(function(A,w){return A+w.barSize||0},0);p+=(l-1)*u,p>=i&&(p-=(l-1)*u,u=0),p>=i&&h>0&&(d=!0,h*=.9,p=l*h);var m=(i-p)/2>>0,g={offset:m-u,size:0};f=a.reduce(function(A,w){var S={item:w.item,position:{offset:g.offset+g.size+u,size:d?h:w.barSize}},_=[].concat(V3(A),[S]);return g=_[_.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(C){_.push({item:C,position:g})}),_},c)}else{var y=yr(r,i,0,!0);i-2*y-(l-1)*u<=0&&(u=0);var v=(i-2*y-(l-1)*u)/l;v>1&&(v>>=0);var b=s===+s?Math.min(v,s):v;f=a.reduce(function(A,w,S){var _=[].concat(V3(A),[{item:w.item,position:{offset:y+(v+u)*S+(v-b)/2,size:b}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(C){_.push({item:C,position:_[_.length-1].position})}),_},c)}return f},Xbe=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),u=l9({children:o,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,h=u.align,p=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&p==="middle")&&h!=="center"&&se(t[h]))return qt(qt({},t),{},Zu({},h,t[h]+(c||0)));if((m==="horizontal"||m==="vertical"&&h==="center")&&p!=="middle"&&se(t[p]))return qt(qt({},t),{},Zu({},p,t[p]+(d||0)))}return t},Qbe=function(t,n,r){return De(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},u9=function(t,n,r,i,o){var a=n.props.children,s=wo(a,lC).filter(function(u){return Qbe(i,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=Mr(f,r);if(De(c))return u;var d=Array.isArray(c)?[Rb(c),jb(c)]:[c,c],h=l.reduce(function(p,m){var g=Mr(f,m,0),y=d[0]-Math.abs(Array.isArray(g)?g[0]:g),v=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,p[0]),Math.max(v,p[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},Zbe=function(t,n,r,i,o){var a=n.map(function(s){return u9(t,s,r,o,i)}).filter(function(s){return!De(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},c9=function(t,n,r,i,o){var a=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&u9(t,l,u,i)||qd(t,u,r,o)});if(r==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var f=0,c=u.length;f=2?ai(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=o?o.indexOf(c):c;return{coordinate:i(d)+u,value:c,offset:u}});return f.filter(function(c){return!Zp(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+u,value:c,index:d,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,d){return{coordinate:i(c)+u,value:o?o[c]:c,index:d,offset:u}})},tw=new WeakMap,Qm=function(t,n){if(typeof n!="function")return t;tw.has(t)||tw.set(t,new WeakMap);var r=tw.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},Jbe=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Lc(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Yh(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ku(),realScaleType:"point"}:o==="category"?{scale:Lc(),realScaleType:"band"}:{scale:Yh(),realScaleType:"linear"};if(_f(i)){var l="scale".concat(fb(i));return{scale:(B3[l]||Ku)(),realScaleType:B3[l]?l:"point"}}return Me(i)?{scale:i}:{scale:Ku(),realScaleType:"point"}},G3=1e-4,e1e=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-G3,a=Math.max(i[0],i[1])+G3,s=t(n[0]),l=t(n[r-1]);(sa||la)&&t.domain([n[0],n[r-1]])}},t1e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},n1e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},r1e={sign:t1e,expand:Nse,none:Mc,silhouette:Bse,wiggle:Fse,positive:n1e},i1e=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=r1e[r],a=i7().keys(i).value(function(s,l){return+Mr(s,l,0)}).order(d2).offset(o);return a(t)},o1e=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,l={},u=s.reduce(function(c,d){var h,p=(h=d.type)!==null&&h!==void 0&&h.defaultProps?qt(qt({},d.type.defaultProps),d.props):d.props,m=p.stackId,g=p.hide;if(g)return c;var y=p[r],v=c[y]||{hasStack:!1,stackGroups:{}};if(gn(m)){var b=v.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};b.items.push(d),v.hasStack=!0,v.stackGroups[m]=b}else v.stackGroups[ub("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return qt(qt({},c),{},Zu({},y,v))},l),f={};return Object.keys(u).reduce(function(c,d){var h=u[d];if(h.hasStack){var p={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(m,g){var y=h.stackGroups[g];return qt(qt({},m),{},Zu({},g,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:i1e(t,y.items,o)}))},p)}return qt(qt({},c),{},Zu({},d,h))},f)},a1e=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=bbe(u,o,s);return t.domain([Rb(f),jb(f)]),{niceTicks:f}}if(o&&i==="number"){var c=t.domain(),d=xbe(c,o,s);return{niceTicks:d}}return null},s1e=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?qt(qt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(gn(o)){var a=n[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},l1e=function(t){return t.reduce(function(n,r){return[Rb(r.concat([n[0]]).filter(se)),jb(r.concat([n[1]]).filter(se))]},[1/0,-1/0])},d9=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(u,f){var c=l1e(f.slice(n,r+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},q3=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,K3=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,z2=function(t,n,r){if(Me(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(se(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(q3.test(t[0])){var o=+q3.exec(t[0])[1];i[0]=n[0]-o}else Me(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(se(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(K3.test(t[1])){var a=+K3.exec(t[1])[1];i[1]=n[1]+a}else Me(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},W2=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=Pk(n,function(c){return c.coordinate}),a=1/0,s=1,l=o.length;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},v1e=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=yr(t.cx,a,a/2),c=yr(t.cy,s,s/2),d=p9(a,s,r),h=yr(t.innerRadius,d,0),p=yr(t.outerRadius,d,d*.8),m=Object.keys(n);return m.reduce(function(g,y){var v=n[y],b=v.domain,A=v.reversed,w;if(De(v.range))i==="angleAxis"?w=[l,u]:i==="radiusAxis"&&(w=[h,p]),A&&(w=[w[1],w[0]]);else{w=v.range;var S=w,_=d1e(S,2);l=_[0],u=_[1]}var C=Jbe(v,o),P=C.realScaleType,O=C.scale;O.domain(b).range(w),e1e(O);var $=a1e(O,Go(Go({},v),{},{realScaleType:P})),E=Go(Go(Go({},v),$),{},{range:w,radius:p,realScaleType:P,scale:O,cx:f,cy:c,innerRadius:h,outerRadius:p,startAngle:l,endAngle:u});return Go(Go({},g),{},h9({},y,E))},{})},b1e=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},x1e=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=b1e({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var l=(r-o)/s,u=Math.acos(l);return i>a&&(u=2*Math.PI-u),{radius:s,angle:y1e(u),angleInRadian:u}},w1e=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},S1e=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},J3=function(t,n){var r=t.x,i=t.y,o=x1e({x:r,y:i},n),a=o.radius,s=o.angle,l=n.innerRadius,u=n.outerRadius;if(au)return!1;if(a===0)return!0;var f=w1e(n),c=f.startAngle,d=f.endAngle,h=s,p;if(c<=d){for(;h>d;)h-=360;for(;h=c&&h<=d}else{for(;h>c;)h-=360;for(;h=d&&h<=c}return p?Go(Go({},n),{},{radius:a,angle:S1e(h,n)}):null},m9=function(t){return!k.isValidElement(t)&&!Me(t)&&typeof t!="boolean"?t.className:""};function Jh(e){"@babel/helpers - typeof";return Jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jh(e)}var A1e=["offset"];function _1e(e){return $1e(e)||C1e(e)||k1e(e)||O1e()}function O1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k1e(e,t){if(e){if(typeof e=="string")return Y2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y2(e,t)}}function C1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $1e(e){if(Array.isArray(e))return Y2(e)}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function e5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t=0?1:-1,b,A;i==="insideStart"?(b=h+v*a,A=m):i==="insideEnd"?(b=p-v*a,A=!m):i==="end"&&(b=p+v*a,A=m),A=y<=0?A:!A;var w=xt(u,f,g,b),S=xt(u,f,g,b+(A?1:-1)*359),_="M".concat(w.x,",").concat(w.y,` + A`).concat(g,",").concat(g,",0,1,").concat(A?0:1,`, + `).concat(S.x,",").concat(S.y),C=De(t.id)?ub("recharts-radial-line-"):t.id;return F.createElement("text",ep({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",s)}),F.createElement("defs",null,F.createElement("path",{id:C,d:_})),F.createElement("textPath",{xlinkHref:"#".concat(C)},n))},N1e=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,l=o.innerRadius,u=o.outerRadius,f=o.startAngle,c=o.endAngle,d=(f+c)/2;if(i==="outside"){var h=xt(a,s,u+r,d),p=h.x,m=h.y;return{x:p,y:m,textAnchor:p>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+u)/2,y=xt(a,s,g,d),v=y.x,b=y.y;return{x:v,y:b,textAnchor:"middle",verticalAnchor:"middle"}},L1e=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,l=a.y,u=a.width,f=a.height,c=f>=0?1:-1,d=c*i,h=c>0?"end":"start",p=c>0?"start":"end",m=u>=0?1:-1,g=m*i,y=m>0?"end":"start",v=m>0?"start":"end";if(o==="top"){var b={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:h};return fn(fn({},b),r?{height:Math.max(l-r.y,0),width:u}:{})}if(o==="bottom"){var A={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:p};return fn(fn({},A),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(o==="left"){var w={x:s-g,y:l+f/2,textAnchor:y,verticalAnchor:"middle"};return fn(fn({},w),r?{width:Math.max(w.x-r.x,0),height:f}:{})}if(o==="right"){var S={x:s+u+g,y:l+f/2,textAnchor:v,verticalAnchor:"middle"};return fn(fn({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:f}:{})}var _=r?{width:u,height:f}:{};return o==="insideLeft"?fn({x:s+g,y:l+f/2,textAnchor:v,verticalAnchor:"middle"},_):o==="insideRight"?fn({x:s+u-g,y:l+f/2,textAnchor:y,verticalAnchor:"middle"},_):o==="insideTop"?fn({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:p},_):o==="insideBottom"?fn({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:h},_):o==="insideTopLeft"?fn({x:s+g,y:l+d,textAnchor:v,verticalAnchor:p},_):o==="insideTopRight"?fn({x:s+u-g,y:l+d,textAnchor:y,verticalAnchor:p},_):o==="insideBottomLeft"?fn({x:s+g,y:l+f-d,textAnchor:v,verticalAnchor:h},_):o==="insideBottomRight"?fn({x:s+u-g,y:l+f-d,textAnchor:y,verticalAnchor:h},_):vf(o)&&(se(o.x)||JS(o.x))&&(se(o.y)||JS(o.y))?fn({x:s+yr(o.x,u),y:l+yr(o.y,f),textAnchor:"end",verticalAnchor:"end"},_):fn({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},B1e=function(t){return"cx"in t&&se(t.cx)};function jn(e){var t=e.offset,n=t===void 0?5:t,r=P1e(e,A1e),i=fn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!o||De(s)&&De(l)&&!k.isValidElement(u)&&!Me(u))return null;if(k.isValidElement(u))return k.cloneElement(u,i);var h;if(Me(u)){if(h=k.createElement(u,i),k.isValidElement(h))return h}else h=R1e(i);var p=B1e(o),m=Ee(i,!0);if(p&&(a==="insideStart"||a==="insideEnd"||a==="end"))return D1e(i,h,m);var g=p?N1e(i):L1e(i);return F.createElement(Nc,ep({className:pe("recharts-label",c)},m,g,{breakAll:d}),h)}jn.displayName="Label";var g9=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,h=t.top,p=t.left,m=t.width,g=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if(se(m)&&se(g)){if(se(c)&&se(d))return{x:c,y:d,width:m,height:g};if(se(h)&&se(p))return{x:h,y:p,width:m,height:g}}return se(c)&&se(d)?{x:c,y:d,width:0,height:0}:se(n)&&se(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},F1e=function(t,n){return t?t===!0?F.createElement(jn,{key:"label-implicit",viewBox:n}):gn(t)?F.createElement(jn,{key:"label-implicit",viewBox:n,value:t}):k.isValidElement(t)?t.type===jn?k.cloneElement(t,{key:"label-implicit",viewBox:n}):F.createElement(jn,{key:"label-implicit",content:t,viewBox:n}):Me(t)?F.createElement(jn,{key:"label-implicit",content:t,viewBox:n}):vf(t)?F.createElement(jn,ep({viewBox:n},t,{key:"label-implicit"})):null:null},U1e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=g9(t),a=wo(i,jn).map(function(l,u){return k.cloneElement(l,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var s=F1e(t.label,n||o);return[s].concat(_1e(a))};jn.parseViewBox=g9;jn.renderCallByParent=U1e;function z1e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var y9=z1e;const ge=Ne(y9);function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(e)}var W1e=["valueAccessor"],Y1e=["data","dataKey","clockWise","id","textBreakAll"];function V1e(e){return K1e(e)||q1e(e)||G1e(e)||H1e()}function H1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G1e(e,t){if(e){if(typeof e=="string")return V2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V2(e,t)}}function q1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K1e(e){if(Array.isArray(e))return V2(e)}function V2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var exe=function(t){return Array.isArray(t.value)?ge(t.value):t.value};function bl(e){var t=e.valueAccessor,n=t===void 0?exe:t,r=r5(e,W1e),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=r5(r,Y1e);return!i||!i.length?null:F.createElement(Kt,{className:"recharts-label-list"},i.map(function(f,c){var d=De(o)?n(f,c):Mr(f&&f.payload,o),h=De(s)?{}:{id:"".concat(s,"-").concat(c)};return F.createElement(jn,c0({},Ee(f,!0),u,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:jn.parseViewBox(De(a)?f:n5(n5({},f),{},{clockWise:a})),key:"label-".concat(c),index:c}))}))}bl.displayName="LabelList";function txe(e,t){return e?e===!0?F.createElement(bl,{key:"labelList-implicit",data:t}):F.isValidElement(e)||Me(e)?F.createElement(bl,{key:"labelList-implicit",data:t,content:e}):vf(e)?F.createElement(bl,c0({data:t},e,{key:"labelList-implicit"})):null:null}function nxe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=wo(r,bl).map(function(a,s){return k.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=txe(e.label,t);return[o].concat(V1e(i))}bl.renderCallByParent=nxe;function np(e){"@babel/helpers - typeof";return np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},np(e)}function H2(){return H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>u),`, + `).concat(c.x,",").concat(c.y,` + `);if(i>0){var h=xt(n,r,i,a),p=xt(n,r,i,u);d+="L ".concat(p.x,",").concat(p.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`, + `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},sxe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=ai(f-u),d=Zm({cx:n,cy:r,radius:o,angle:u,sign:c,cornerRadius:a,cornerIsExternal:l}),h=d.circleTangency,p=d.lineTangency,m=d.theta,g=Zm({cx:n,cy:r,radius:o,angle:f,sign:-c,cornerRadius:a,cornerIsExternal:l}),y=g.circleTangency,v=g.lineTangency,b=g.theta,A=l?Math.abs(u-f):Math.abs(u-f)-m-b;if(A<0)return s?"M ".concat(p.x,",").concat(p.y,` + a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 + a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 + `):v9({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f});var w="M ".concat(p.x,",").concat(p.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,` + A`).concat(o,",").concat(o,",0,").concat(+(A>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,` + `);if(i>0){var S=Zm({cx:n,cy:r,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=S.circleTangency,C=S.lineTangency,P=S.theta,O=Zm({cx:n,cy:r,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),$=O.circleTangency,E=O.lineTangency,M=O.theta,T=l?Math.abs(u-f):Math.abs(u-f)-P-M;if(T<0&&a===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(E.x,",").concat(E.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,` + A`).concat(i,",").concat(i,",0,").concat(+(T>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},lxe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},b9=function(t){var n=o5(o5({},lxe),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,d=n.className;if(a0&&Math.abs(f-c)<360?g=sxe({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):g=v9({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:c}),F.createElement("path",H2({},Ee(n,!0),{className:h,d:g,role:"img"}))};function rp(e){"@babel/helpers - typeof";return rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rp(e)}function G2(){return G2=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function vxe(e,t){return jf(e.getTime(),t.getTime())}function h5(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var c=a.value,d=c[0],h=c[1],p=s.value,m=p[0],g=p[1];!u&&!r[f]&&(u=n.equals(d,m,o,f,e,t,n)&&n.equals(h,g,d,m,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;o++}return!0}function bxe(e,t,n){var r=d5(e),i=r.length;if(d5(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===w9&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!x9(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function ud(e,t,n){var r=c5(e),i=r.length;if(c5(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===w9&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!x9(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=f5(e,o),s=f5(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function xxe(e,t){return jf(e.valueOf(),t.valueOf())}function wxe(e,t){return e.source===t.source&&e.flags===t.flags}function p5(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!r[u]&&(l=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function Sxe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var Axe="[object Arguments]",_xe="[object Boolean]",Oxe="[object Date]",kxe="[object Map]",Cxe="[object Number]",$xe="[object Object]",Pxe="[object RegExp]",Txe="[object Set]",Exe="[object String]",Mxe=Array.isArray,m5=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,g5=Object.assign,jxe=Object.prototype.toString.call.bind(Object.prototype.toString);function Rxe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,c,d){if(f===c)return!0;if(f==null||c==null||typeof f!="object"||typeof c!="object")return f!==f&&c!==c;var h=f.constructor;if(h!==c.constructor)return!1;if(h===Object)return i(f,c,d);if(Mxe(f))return t(f,c,d);if(m5!=null&&m5(f))return l(f,c,d);if(h===Date)return n(f,c,d);if(h===RegExp)return a(f,c,d);if(h===Map)return r(f,c,d);if(h===Set)return s(f,c,d);var p=jxe(f);return p===Oxe?n(f,c,d):p===Pxe?a(f,c,d):p===kxe?r(f,c,d):p===Txe?s(f,c,d):p===$xe?typeof f.then!="function"&&typeof c.then!="function"&&i(f,c,d):p===Axe?i(f,c,d):p===_xe||p===Cxe||p===Exe?o(f,c,d):!1}}function Ixe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?ud:yxe,areDatesEqual:vxe,areMapsEqual:r?u5(h5,ud):h5,areObjectsEqual:r?ud:bxe,arePrimitiveWrappersEqual:xxe,areRegExpsEqual:wxe,areSetsEqual:r?u5(p5,ud):p5,areTypedArraysEqual:r?ud:Sxe};if(n&&(i=g5({},i,n(i))),t){var o=eg(i.areArraysEqual),a=eg(i.areMapsEqual),s=eg(i.areObjectsEqual),l=eg(i.areSetsEqual);i=g5({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function Dxe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function Nxe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(l,u){var f=r(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,h=f.meta;return n(l,u,{cache:d,equals:i,meta:h,strict:o})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(l,u){return n(l,u,a)}}var Lxe=Ps();Ps({strict:!0});Ps({circular:!0});Ps({circular:!0,strict:!0});Ps({createInternalComparator:function(){return jf}});Ps({strict:!0,createInternalComparator:function(){return jf}});Ps({circular:!0,createInternalComparator:function(){return jf}});Ps({circular:!0,createInternalComparator:function(){return jf},strict:!0});function Ps(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=Ixe(e),l=Rxe(s),u=r?r(l):Dxe(l);return Nxe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function Bxe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function y5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):Bxe(i)};requestAnimationFrame(r)}function K2(e){"@babel/helpers - typeof";return K2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K2(e)}function Fxe(e){return Yxe(e)||Wxe(e)||zxe(e)||Uxe()}function Uxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zxe(e,t){if(e){if(typeof e=="string")return v5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v5(e,t)}}function v5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:y<0?0:y},m=function(y){for(var v=y>1?1:y,b=v,A=0;A<8;++A){var w=c(b)-v,S=h(b);if(Math.abs(w-v)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(f,c,d){var h=-(f-c)*r,p=d*o,m=d+(h-p)*s/1e3,g=d*s/1e3+f;return Math.abs(g-c)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wwe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function nw(e){return Owe(e)||_we(e)||Awe(e)||Swe()}function Swe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Awe(e,t){if(e){if(typeof e=="string")return eA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eA(e,t)}}function _we(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Owe(e){if(Array.isArray(e))return eA(e)}function eA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},h0(e)}var Ss=function(e){Twe(n,e);var t=Ewe(n);function n(r,i){var o;kwe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,c=a.steps,d=a.children,h=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(rA(o)),o.changeStyle=o.changeStyle.bind(rA(o)),!s||h<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:f}),nA(o);if(c&&c.length)o.state={style:c[0].style};else if(u){if(typeof d=="function")return o.state={style:u},nA(o);o.state={style:l?Ed({},l,u):u}}else o.state={style:{}};return o}return $we(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,f=o.to,c=o.from,d=this.state.style;if(s){if(!a){var h={style:l?Ed({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(h);return}if(!(Lxe(i.to,f)&&i.canBegin&&i.isActive)){var p=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=p||u?c:i.to;if(this.state&&d){var g={style:l?Ed({},l,m):m};(l&&d[l]!==m||!l&&d!==m)&&this.setState(g)}this.runAnimation(_i(_i({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,h=vwe(a,s,swe(u),l,this.changeStyle),p=function(){o.stopJSAnimation=h()};this.manager.start([d,f,p,l,c])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],f=u.style,c=u.duration,d=c===void 0?0:c,h=function(m,g,y){if(y===0)return m;var v=g.duration,b=g.easing,A=b===void 0?"ease":b,w=g.style,S=g.properties,_=g.onAnimationEnd,C=y>0?a[y-1]:g,P=S||Object.keys(w);if(typeof A=="function"||A==="spring")return[].concat(nw(m),[o.runJSAnimation.bind(o,{from:C.style,to:w,duration:v,easing:A}),v]);var O=w5(P,v,A),$=_i(_i(_i({},C.style),w),{},{transition:O});return[].concat(nw(m),[$,v,_]).filter(Kxe)};return this.manager.start([l].concat(nw(a.reduce(h,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Vxe());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,h=i.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var m=s?Ed({},s,l):l,g=w5(Object.keys(m),a,u);p.start([f,o,_i(_i({},m),{},{transition:g}),a,c])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=xwe(i,bwe),u=k.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||u===0||a<=0)return o;var c=function(h){var p=h.props,m=p.style,g=m===void 0?{}:m,y=p.className,v=k.cloneElement(h,_i(_i({},l),{},{style:_i(_i({},g),f),className:y}));return v};return u===1?c(k.Children.only(o)):F.createElement("div",null,k.Children.map(o,function(d){return c(d)}))}}]),n}(k.PureComponent);Ss.displayName="Animate";Ss.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ss.propTypes={from:U.oneOfType([U.object,U.string]),to:U.oneOfType([U.object,U.string]),attributeName:U.string,duration:U.number,begin:U.number,easing:U.oneOfType([U.string,U.func]),steps:U.arrayOf(U.shape({duration:U.number.isRequired,style:U.object.isRequired,easing:U.oneOfType([U.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),U.func]),properties:U.arrayOf("string"),onAnimationEnd:U.func})),children:U.oneOfType([U.node,U.func]),isActive:U.bool,canBegin:U.bool,onAnimationEnd:U.func,shouldReAnimate:U.bool,onAnimationStart:U.func,onAnimationReStart:U.func};U.object,U.object,U.object,U.element;U.object,U.object,U.object,U.oneOfType([U.array,U.element]),U.any;function ap(e){"@babel/helpers - typeof";return ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ap(e)}function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,f;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0,h=4;da?a:o[d];f="M".concat(t,",").concat(n+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(n)),f+="L ".concat(t+r-l*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`, + `).concat(t+r,",").concat(n+s*c[1])),f+="L ".concat(t+r,",").concat(n+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`, + `).concat(t+r-l*c[2],",").concat(n+i)),f+="L ".concat(t+l*c[3],",").concat(n+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`, + `).concat(t,",").concat(n+i-s*c[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);f="M ".concat(t,",").concat(n+s*p,` + A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(n,` + L `).concat(t+r-l*p,",").concat(n,` + A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*p,` + L `).concat(t+r,",").concat(n+i-s*p,` + A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r-l*p,",").concat(n+i,` + L `).concat(t+l*p,",").concat(n+i,` + A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*p," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},Uwe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),f=Math.max(o,o+s),c=Math.min(a,a+l),d=Math.max(a,a+l);return r>=u&&r<=f&&i>=c&&i<=d}return!1},zwe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cC=function(t){var n=P5(P5({},zwe),t),r=k.useRef(),i=k.useState(-1),o=jwe(i,2),a=o[0],s=o[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,f=n.width,c=n.height,d=n.radius,h=n.className,p=n.animationEasing,m=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,v=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var b=pe("recharts-rectangle",h);return v?F.createElement(Ss,{canBegin:a>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:m,animationEasing:p,isActive:v},function(A){var w=A.width,S=A.height,_=A.x,C=A.y;return F.createElement(Ss,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:y,easing:p},F.createElement("path",p0({},Ee(n,!0),{className:b,d:T5(_,C,w,S,d),ref:r})))}):F.createElement("path",p0({},Ee(n,!0),{className:b,d:T5(l,u,f,c,d)}))},Wwe=["points","className","baseLinePoints","connectNulls"];function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function E5(e){return Kwe(e)||qwe(e)||Gwe(e)||Hwe()}function Hwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gwe(e,t){if(e){if(typeof e=="string")return iA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iA(e,t)}}function qwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kwe(e){if(Array.isArray(e))return iA(e)}function iA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){M5(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),M5(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Xd=function(t,n){var r=Xwe(t);n&&(r=[r.reduce(function(o,a){return[].concat(E5(o),E5(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},Qwe=function(t,n,r){var i=Xd(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Xd(n.reverse(),r).slice(1))},Zwe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=Ywe(t,Wwe);if(!n||!n.length)return null;var s=pe("recharts-polygon",r);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",u=Qwe(n,i,o);return F.createElement("g",{className:s},F.createElement("path",Ru({},Ee(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),l?F.createElement("path",Ru({},Ee(a,!0),{fill:"none",d:Xd(n,o)})):null,l?F.createElement("path",Ru({},Ee(a,!0),{fill:"none",d:Xd(i,o)})):null)}var f=Xd(n,o);return F.createElement("path",Ru({},Ee(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function oA(){return oA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var aSe=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},sSe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,h=d===void 0?0:d,p=t.className,m=iSe(t,Jwe),g=eSe({x:r,y:o,top:s,left:u,width:c,height:h},m);return!se(r)||!se(o)||!se(c)||!se(h)||!se(s)||!se(u)?null:F.createElement("path",aA({},Ee(g,!0),{className:pe("recharts-cross",p),d:aSe(r,o,c,h,s,u)}))},lSe=Mb,uSe=VN,cSe=Sa;function fSe(e,t){return e&&e.length?lSe(e,cSe(t),uSe):void 0}var dSe=fSe;const hSe=Ne(dSe);var pSe=Mb,mSe=Sa,gSe=HN;function ySe(e,t){return e&&e.length?pSe(e,mSe(t),gSe):void 0}var vSe=ySe;const bSe=Ne(vSe);var xSe=["cx","cy","angle","ticks","axisLine"],wSe=["ticks","tick","angle","tickFormatter","stroke"];function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ASe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D5(e,t){for(var n=0;nB5?a=i==="outer"?"start":"end":o<-B5?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,u=Ds(Ds({},Ee(this.props,!1)),{},{fill:"none"},Ee(s,!1));if(l==="circle")return F.createElement(fC,Vs({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,c=f.map(function(d){return xt(i,o,a,d.coordinate)});return F.createElement(Zwe,Vs({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=Ee(this.props,!1),c=Ee(a,!1),d=Ds(Ds({},f),{},{fill:"none"},Ee(s,!1)),h=o.map(function(p,m){var g=r.getTickLineCoord(p),y=r.getTickTextAnchor(p),v=Ds(Ds(Ds({textAnchor:y},f),{},{stroke:"none",fill:u},c),{},{index:m,payload:p,x:g.x2,y:g.y2});return F.createElement(Kt,Vs({className:pe("recharts-polar-angle-axis-tick",m9(a)),key:"tick-".concat(p.coordinate)},cb(r.props,p,m)),s&&F.createElement("line",Vs({className:"recharts-polar-angle-axis-tick-line"},d,g)),a&&t.renderTickItem(a,v,l?l(p.value,m):p.value))});return F.createElement(Kt,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:F.createElement(Kt,{className:pe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return F.isValidElement(r)?a=F.cloneElement(r,i):Me(r)?a=r(i):a=F.createElement(Nc,Vs({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(k.PureComponent);Fb(Ub,"displayName","PolarAngleAxis");Fb(Ub,"axisType","angleAxis");Fb(Ub,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var LSe=g7,BSe=LSe(Object.getPrototypeOf,Object),dC=BSe,FSe=wa,USe=dC,zSe=yi,WSe="[object Object]",YSe=Function.prototype,VSe=Object.prototype,M9=YSe.toString,HSe=VSe.hasOwnProperty,GSe=M9.call(Object);function qSe(e){if(!zSe(e)||FSe(e)!=WSe)return!1;var t=USe(e);if(t===null)return!0;var n=HSe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&M9.call(n)==GSe}var hC=qSe;const zb=Ne(hC);var KSe=wa,XSe=yi,QSe="[object Boolean]";function ZSe(e){return e===!0||e===!1||XSe(e)&&KSe(e)==QSe}var JSe=ZSe;const e2e=Ne(JSe);function lp(e){"@babel/helpers - typeof";return lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lp(e)}function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:m,animationEasing:p,isActive:y},function(b){var A=b.upperWidth,w=b.lowerWidth,S=b.height,_=b.x,C=b.y;return F.createElement(Ss,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:p},F.createElement("path",y0({},Ee(n,!0),{className:v,d:W5(_,C,A,w,S),ref:r})))}):F.createElement("g",null,F.createElement("path",y0({},Ee(n,!0),{className:v,d:W5(l,u,f,c,d)})))},f2e=["option","shapeType","propTransformer","activeClassName","isActive"];function up(e){"@babel/helpers - typeof";return up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},up(e)}function d2e(e,t){if(e==null)return{};var n=h2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h2e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function v0(e){for(var t=1;t0?sn(b,"paddingAngle",0):0;if(w){var _=LT(w.endAngle-w.startAngle,b.endAngle-b.startAngle),C=yt(yt({},b),{},{startAngle:v+S,endAngle:v+_(m)+S});g.push(C),v=C.endAngle}else{var P=b.endAngle,O=b.startAngle,$=LT(0,P-O),E=$(m),M=yt(yt({},b),{},{startAngle:v+S,endAngle:v+E+S});g.push(M),v=M.endAngle}}),F.createElement(Kt,null,r.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!Ib(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,p=this.state.isAnimationFinished;if(o||!a||!a.length||!se(u)||!se(f)||!se(c)||!se(d))return null;var m=pe("recharts-pie",s);return F.createElement(Kt,{tabIndex:this.props.rootTabIndex,className:m,ref:function(y){r.pieRef=y}},this.renderSectors(),l&&this.renderLabels(a),jn.renderCallByParent(this.props,null,!1),(!h||p)&&bl.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r=360?v:v-1)*l,A=g-v*h-b,w=i.reduce(function(C,P){var O=Mr(P,y,0);return C+(se(O)?O:0)},0),S;if(w>0){var _;S=i.map(function(C,P){var O=Mr(C,y,0),$=Mr(C,f,P),E=(se(O)?O:0)/w,M;P?M=_.endAngle+ai(m)*l*(O!==0?1:0):M=a;var T=M+ai(m)*((O!==0?h:0)+E*A),R=(M+T)/2,I=(p.innerRadius+p.outerRadius)/2,B=[{name:$,value:O,payload:C,dataKey:y,type:d}],j=xt(p.cx,p.cy,I,R);return _=yt(yt(yt({percent:E,cornerRadius:o,name:$,tooltipPayload:B,midAngle:R,middleRadius:I,tooltipPosition:j},C),p),{},{value:Mr(C,y),startAngle:M,endAngle:T,payload:C,paddingAngle:ai(m)*l}),_})}return yt(yt({},p),{},{sectors:S,data:i})});var I2e=Math.ceil,D2e=Math.max;function N2e(e,t,n,r){for(var i=-1,o=D2e(I2e((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var L2e=N2e,B2e=F7,q5=1/0,F2e=17976931348623157e292;function U2e(e){if(!e)return e===0?e:0;if(e=B2e(e),e===q5||e===-q5){var t=e<0?-1:1;return t*F2e}return e===e?e:0}var z2e=U2e,W2e=L2e,Y2e=nm,rw=z2e;function V2e(e){return function(t,n,r){return r&&typeof r!="number"&&Y2e(t,n,r)&&(n=r=void 0),t=rw(t),n===void 0?(n=t,t=0):n=rw(n),r=r===void 0?t0&&r.handleDrag(i.changedTouches[0])}),Cr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),r.detachDragEndListener()}),Cr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Cr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Cr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Cr(r,"handleSlideDragStart",function(i){var o=J5(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return oAe(t,e),tAe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,o),d=Math.max(i,o),h=t.getIndexInRange(a,c),p=t.getIndexInRange(a,d);return{startIndex:h-h%l,endIndex:p===f?f:p-p%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=Mr(o[r],s,r);return Me(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,h=l.endIndex,p=l.onChange,m=r.pageX-o;m>0?m=Math.min(m,u+f-c-s,u+f-c-a):m<0&&(m=Math.max(m,u-a,u-s));var g=this.getIndex({startX:a+m,endX:s+m});(g.startIndex!==d||g.endIndex!==h)&&p&&p(g),this.setState({startX:a+m,endX:s+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=J5(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[a],f=this.props,c=f.x,d=f.width,h=f.travellerWidth,p=f.onChange,m=f.gap,g=f.data,y={startX:this.state.startX,endX:this.state.endX},v=r.pageX-o;v>0?v=Math.min(v,c+d-h-u):v<0&&(v=Math.max(v,c-u)),y[a]=u+v;var b=this.getIndex(y),A=b.startIndex,w=b.endIndex,S=function(){var C=g.length-1;return a==="startX"&&(s>l?A%m===0:w%m===0)||sl?w%m===0:A%m===0)||s>l&&w===C};this.setState(Cr(Cr({},a,u+v),"brushMoveStartX",r.pageX),function(){p&&S()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+r;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(Cr({},i,h),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.fill,u=r.stroke;return F.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.data,u=r.children,f=r.padding,c=k.Children.only(u);return c?F.cloneElement(c,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,h=l.ariaLabel,p=l.data,m=l.startIndex,g=l.endIndex,y=Math.max(r,this.props.x),v=iw(iw({},Ee(this.props,!1)),{},{x:y,y:u,width:f,height:c}),b=h||"Min value: ".concat((o=p[m])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=p[g])===null||a===void 0?void 0:a.name);return F.createElement(Kt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),s.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,v))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,f=Math.min(r,i)+u,c=Math.max(Math.abs(i-r)-u,0);return F.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:a,width:c,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,u=r.stroke,f=this.state,c=f.startX,d=f.endX,h=5,p={pointerEvents:"none",fill:u};return F.createElement(Kt,{className:"recharts-brush-texts"},F.createElement(Nc,w0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:a+s/2},p),this.getTextOfTick(i)),F.createElement(Nc,w0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+h,y:a+s/2},p),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,l=r.y,u=r.width,f=r.height,c=r.alwaysShowText,d=this.state,h=d.startX,p=d.endX,m=d.isTextActive,g=d.isSlideMoving,y=d.isTravellerMoving,v=d.isTravellerFocused;if(!i||!i.length||!se(s)||!se(l)||!se(u)||!se(f)||u<=0||f<=0)return null;var b=pe("recharts-brush",o),A=F.Children.count(a)===1,w=J2e("userSelect","none");return F.createElement(Kt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(h,p),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(p,"endX"),(m||g||y||v||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,l=r.stroke,u=Math.floor(o+s/2)-1;return F.createElement(F.Fragment,null,F.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),F.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),F.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return F.isValidElement(r)?o=F.cloneElement(r,i):Me(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,l=r.travellerWidth,u=r.updateId,f=r.startIndex,c=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return iw({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?sAe({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>i?s=l:a=l}return i>=r[s]?s:a}}])}(k.PureComponent);Cr(Kc,"displayName","Brush");Cr(Kc,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var lAe=Sb;function uAe(e,t){var n;return lAe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var cAe=uAe,fAe=l7,dAe=Sa,hAe=cAe,pAe=Dn,mAe=nm;function gAe(e,t,n){var r=pAe(e)?fAe:hAe;return n&&mAe(e,t,n)&&(t=void 0),r(e,dAe(t))}var yAe=gAe;const vAe=Ne(yAe);var Ao=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},e4=R7;function bAe(e,t,n){t=="__proto__"&&e4?e4(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Vb=bAe,xAe=Vb,wAe=E7,SAe=Sa;function AAe(e,t){var n={};return t=SAe(t),wAe(e,function(r,i,o){xAe(n,i,t(r,i,o))}),n}var _Ae=AAe;const OAe=Ne(_Ae);function kAe(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();pC(F9,"EPS",1e-4);var mC=function(t){var n=Object.keys(t).reduce(function(r,i){return tg(tg({},r),{},pC({},i,F9.create(t[i])))},{});return tg(tg({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return OAe(i,function(l,u){return n[u].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return LAe(i,function(o,a){return n[a].isInRange(o)})}})},WAe=loe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),U9=k.createContext(void 0),z9=k.createContext(void 0),W9=k.createContext(void 0),YAe=k.createContext({}),Y9=k.createContext(void 0),VAe=k.createContext(0),HAe=k.createContext(0),r4=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,l=t.width,u=t.height,f=WAe(o);return F.createElement(U9.Provider,{value:r},F.createElement(z9.Provider,{value:i},F.createElement(YAe.Provider,{value:o},F.createElement(W9.Provider,{value:f},F.createElement(Y9.Provider,{value:a},F.createElement(VAe.Provider,{value:u},F.createElement(HAe.Provider,{value:l},s)))))))},GAe=function(){return k.useContext(Y9)},qAe=function(t){var n=k.useContext(U9);n==null&&zc();var r=n[t];return r==null&&zc(),r},KAe=function(t){var n=k.useContext(z9);n==null&&zc();var r=n[t];return r==null&&zc(),r},XAe=function(){var t=k.useContext(W9);return t};function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}function QAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZAe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nOe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:t&&t.length&&se(i)&&se(o)?t.slice(i,o+1):[]};function iL(e){return e==="number"?[0,"auto"]:void 0}var wA=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Xb(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var h=c===void 0?s:c;d=e2(h,a.dataKey,i)}else d=c&&c[r]||s[r];return d?[].concat(ef(l),[u1e(u,d)]):l},[])},g4=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=pOe(o,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=Gbe(a,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=wA(t,n,f,c),h=mOe(r,s,f,o);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},gOe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,h=f9(f,o);return r.reduce(function(p,m){var g,y=m.type.defaultProps!==void 0?G(G({},m.type.defaultProps),m.props):m.props,v=y.type,b=y.dataKey,A=y.allowDataOverflow,w=y.allowDuplicatedCategory,S=y.scale,_=y.ticks,C=y.includeHidden,P=y[a];if(p[P])return p;var O=Xb(t.data,{graphicalItems:i.filter(function(Y){var K,Q=a in Y.props?Y.props[a]:(K=Y.type.defaultProps)===null||K===void 0?void 0:K[a];return Q===P}),dataStartIndex:l,dataEndIndex:u}),$=O.length,E,M,T;z_e(y.domain,A,v)&&(E=z2(y.domain,null,A),h&&(v==="number"||S!=="auto")&&(T=qd(O,b,"category")));var R=iL(v);if(!E||E.length===0){var I,B=(I=y.domain)!==null&&I!==void 0?I:R;if(b){if(E=qd(O,b,v),v==="category"&&h){var j=iae(E);w&&j?(M=E,E=x0(0,$)):w||(E=X3(B,E,m).reduce(function(Y,K){return Y.indexOf(K)>=0?Y:[].concat(ef(Y),[K])},[]))}else if(v==="category")w?E=E.filter(function(Y){return Y!==""&&!De(Y)}):E=X3(B,E,m).reduce(function(Y,K){return Y.indexOf(K)>=0||K===""||De(K)?Y:[].concat(ef(Y),[K])},[]);else if(v==="number"){var N=Zbe(O,i.filter(function(Y){var K,Q,re=a in Y.props?Y.props[a]:(K=Y.type.defaultProps)===null||K===void 0?void 0:K[a],ne="hide"in Y.props?Y.props.hide:(Q=Y.type.defaultProps)===null||Q===void 0?void 0:Q.hide;return re===P&&(C||!ne)}),b,o,f);N&&(E=N)}h&&(v==="number"||S!=="auto")&&(T=qd(O,b,"category"))}else h?E=x0(0,$):s&&s[P]&&s[P].hasStack&&v==="number"?E=d==="expand"?[0,1]:d9(s[P].stackGroups,l,u):E=c9(O,i.filter(function(Y){var K=a in Y.props?Y.props[a]:Y.type.defaultProps[a],Q="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return K===P&&(C||!Q)}),v,f,!0);if(v==="number")E=vA(c,E,P,o,_),B&&(E=z2(B,E,A));else if(v==="category"&&B){var z=B,X=E.every(function(Y){return z.indexOf(Y)>=0});X&&(E=z)}}return G(G({},p),{},Se({},P,G(G({},y),{},{axisType:o,domain:E,categoricalDomain:T,duplicateDomain:M,originalDomain:(g=y.domain)!==null&&g!==void 0?g:R,isCategorical:h,layout:f})))},{})},yOe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,d=Xb(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),h=d.length,p=f9(f,o),m=-1;return r.reduce(function(g,y){var v=y.type.defaultProps!==void 0?G(G({},y.type.defaultProps),y.props):y.props,b=v[a],A=iL("number");if(!g[b]){m++;var w;return p?w=x0(0,h):s&&s[b]&&s[b].hasStack?(w=d9(s[b].stackGroups,l,u),w=vA(c,w,b,o)):(w=z2(A,c9(d,r.filter(function(S){var _,C,P=a in S.props?S.props[a]:(_=S.type.defaultProps)===null||_===void 0?void 0:_[a],O="hide"in S.props?S.props.hide:(C=S.type.defaultProps)===null||C===void 0?void 0:C.hide;return P===b&&!O}),"number",f),i.defaultProps.allowDataOverflow),w=vA(c,w,b,o)),G(G({},g),{},Se({},b,G(G({axisType:o},i.defaultProps),{},{hide:!0,orientation:sn(dOe,"".concat(o,".").concat(m%2),null),domain:w,originalDomain:A,isCategorical:p,layout:f})))}return g},{})},vOe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=wo(f,o),h={};return d&&d.length?h=gOe(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(h=yOe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},bOe=function(t){var n=vu(t),r=Td(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Pk(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:W2(n,r)}},y4=function(t){var n=t.children,r=t.defaultShowTooltip,i=Kr(n,Kc),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},xOe=function(t){return!t||!t.length?!1:t.some(function(n){var r=ds(n&&n.type);return r&&r.indexOf("Bar")>=0})},v4=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},wOe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,c=r.children,d=r.margin||{},h=Kr(c,Kc),p=Kr(c,qu),m=Object.keys(l).reduce(function(w,S){var _=l[S],C=_.orientation;return!_.mirror&&!_.hide?G(G({},w),{},Se({},C,w[C]+_.width)):w},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(w,S){var _=a[S],C=_.orientation;return!_.mirror&&!_.hide?G(G({},w),{},Se({},C,sn(w,"".concat(C))+_.height)):w},{top:d.top||0,bottom:d.bottom||0}),y=G(G({},g),m),v=y.bottom;h&&(y.bottom+=h.props.height||Kc.defaultProps.height),p&&n&&(y=Xbe(y,i,r,n));var b=u-y.left-y.right,A=f-y.top-y.bottom;return G(G({brushBottom:v},y),{},{width:Math.max(b,0),height:Math.max(A,0)})},SOe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},AOe=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(y,v){var b=v.graphicalItems,A=v.stackGroups,w=v.offset,S=v.updateId,_=v.dataStartIndex,C=v.dataEndIndex,P=y.barSize,O=y.layout,$=y.barGap,E=y.barCategoryGap,M=y.maxBarSize,T=v4(O),R=T.numericAxisName,I=T.cateAxisName,B=xOe(b),j=[];return b.forEach(function(N,z){var X=Xb(y.data,{graphicalItems:[N],dataStartIndex:_,dataEndIndex:C}),Y=N.type.defaultProps!==void 0?G(G({},N.type.defaultProps),N.props):N.props,K=Y.dataKey,Q=Y.maxBarSize,re=Y["".concat(R,"Id")],ne=Y["".concat(I,"Id")],fe={},de=l.reduce(function(St,at){var he=v["".concat(at.axisType,"Map")],Nn=Y["".concat(at.axisType,"Id")];he&&he[Nn]||at.axisType==="zAxis"||zc();var tn=he[Nn];return G(G({},St),{},Se(Se({},at.axisType,tn),"".concat(at.axisType,"Ticks"),Td(tn)))},fe),q=de[I],ee=de["".concat(I,"Ticks")],ie=A&&A[re]&&A[re].hasStack&&s1e(N,A[re].stackGroups),W=ds(N.type).indexOf("Bar")>=0,ve=W2(q,ee),xe=[],Le=B&&qbe({barSize:P,stackGroups:A,totalSize:SOe(de,I)});if(W){var qe,We,wt=De(Q)?M:Q,Lt=(qe=(We=W2(q,ee,!0))!==null&&We!==void 0?We:wt)!==null&&qe!==void 0?qe:0;xe=Kbe({barGap:$,barCategoryGap:E,bandSize:Lt!==ve?Lt:ve,sizeList:Le[ne],maxBarSize:wt}),Lt!==ve&&(xe=xe.map(function(St){return G(G({},St),{},{position:G(G({},St.position),{},{offset:St.position.offset-Lt/2})})}))}var Et=N&&N.type&&N.type.getComposedData;Et&&j.push({props:G(G({},Et(G(G({},de),{},{displayedData:X,props:y,dataKey:K,item:N,bandSize:ve,barPosition:xe,offset:w,stackedData:ie,layout:O,dataStartIndex:_,dataEndIndex:C}))),{},Se(Se(Se({key:N.key||"item-".concat(z)},R,de[R]),I,de[I]),"animationId",S)),childIndex:mae(N,y.children),item:N})}),j},h=function(y,v){var b=y.props,A=y.dataStartIndex,w=y.dataEndIndex,S=y.updateId;if(!WT({props:b}))return null;var _=b.children,C=b.layout,P=b.stackOffset,O=b.data,$=b.reverseStackOrder,E=v4(C),M=E.numericAxisName,T=E.cateAxisName,R=wo(_,r),I=o1e(O,R,"".concat(M,"Id"),"".concat(T,"Id"),P,$),B=l.reduce(function(Y,K){var Q="".concat(K.axisType,"Map");return G(G({},Y),{},Se({},Q,vOe(b,G(G({},K),{},{graphicalItems:R,stackGroups:K.axisType===M&&I,dataStartIndex:A,dataEndIndex:w}))))},{}),j=wOe(G(G({},B),{},{props:b,graphicalItems:R}),v==null?void 0:v.legendBBox);Object.keys(B).forEach(function(Y){B[Y]=f(b,B[Y],j,Y.replace("Map",""),n)});var N=B["".concat(T,"Map")],z=bOe(N),X=d(b,G(G({},B),{},{dataStartIndex:A,dataEndIndex:w,updateId:S,graphicalItems:R,stackGroups:I,offset:j}));return G(G({formattedGraphicalItems:X,graphicalItems:R,offset:j,stackGroups:I},z),B)},p=function(g){function y(v){var b,A,w;return tOe(this,y),w=iOe(this,y,[v]),Se(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Se(w,"accessibilityManager",new U_e),Se(w,"handleLegendBBoxUpdate",function(S){if(S){var _=w.state,C=_.dataStartIndex,P=_.dataEndIndex,O=_.updateId;w.setState(G({legendBBox:S},h({props:w.props,dataStartIndex:C,dataEndIndex:P,updateId:O},G(G({},w.state),{},{legendBBox:S}))))}}),Se(w,"handleReceiveSyncEvent",function(S,_,C){if(w.props.syncId===S){if(C===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(_)}}),Se(w,"handleBrushChange",function(S){var _=S.startIndex,C=S.endIndex;if(_!==w.state.dataStartIndex||C!==w.state.dataEndIndex){var P=w.state.updateId;w.setState(function(){return G({dataStartIndex:_,dataEndIndex:C},h({props:w.props,dataStartIndex:_,dataEndIndex:C,updateId:P},w.state))}),w.triggerSyncEvent({dataStartIndex:_,dataEndIndex:C})}}),Se(w,"handleMouseEnter",function(S){var _=w.getMouseInfo(S);if(_){var C=G(G({},_),{},{isTooltipActive:!0});w.setState(C),w.triggerSyncEvent(C);var P=w.props.onMouseEnter;Me(P)&&P(C,S)}}),Se(w,"triggeredAfterMouseMove",function(S){var _=w.getMouseInfo(S),C=_?G(G({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(C),w.triggerSyncEvent(C);var P=w.props.onMouseMove;Me(P)&&P(C,S)}),Se(w,"handleItemMouseEnter",function(S){w.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Se(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Se(w,"handleMouseMove",function(S){S.persist(),w.throttleTriggeredAfterMouseMove(S)}),Se(w,"handleMouseLeave",function(S){w.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var C=w.props.onMouseLeave;Me(C)&&C(_,S)}),Se(w,"handleOuterEvent",function(S){var _=pae(S),C=sn(w.props,"".concat(_));if(_&&Me(C)){var P,O;/.*touch.*/i.test(_)?O=w.getMouseInfo(S.changedTouches[0]):O=w.getMouseInfo(S),C((P=O)!==null&&P!==void 0?P:{},S)}}),Se(w,"handleClick",function(S){var _=w.getMouseInfo(S);if(_){var C=G(G({},_),{},{isTooltipActive:!0});w.setState(C),w.triggerSyncEvent(C);var P=w.props.onClick;Me(P)&&P(C,S)}}),Se(w,"handleMouseDown",function(S){var _=w.props.onMouseDown;if(Me(_)){var C=w.getMouseInfo(S);_(C,S)}}),Se(w,"handleMouseUp",function(S){var _=w.props.onMouseUp;if(Me(_)){var C=w.getMouseInfo(S);_(C,S)}}),Se(w,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Se(w,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseDown(S.changedTouches[0])}),Se(w,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseUp(S.changedTouches[0])}),Se(w,"triggerSyncEvent",function(S){w.props.syncId!==void 0&&ow.emit(aw,w.props.syncId,S,w.eventEmitterSymbol)}),Se(w,"applySyncEvent",function(S){var _=w.props,C=_.layout,P=_.syncMethod,O=w.state.updateId,$=S.dataStartIndex,E=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)w.setState(G({dataStartIndex:$,dataEndIndex:E},h({props:w.props,dataStartIndex:$,dataEndIndex:E,updateId:O},w.state)));else if(S.activeTooltipIndex!==void 0){var M=S.chartX,T=S.chartY,R=S.activeTooltipIndex,I=w.state,B=I.offset,j=I.tooltipTicks;if(!B)return;if(typeof P=="function")R=P(j,S);else if(P==="value"){R=-1;for(var N=0;N=0){var ie,W;if(M.dataKey&&!M.allowDuplicatedCategory){var ve=typeof M.dataKey=="function"?ee:"payload.".concat(M.dataKey.toString());ie=e2(N,ve,R),W=z&&X&&e2(X,ve,R)}else ie=N==null?void 0:N[T],W=z&&X&&X[T];if(ne||re){var xe=S.props.activeIndex!==void 0?S.props.activeIndex:T;return[k.cloneElement(S,G(G(G({},P.props),de),{},{activeIndex:xe})),null,null]}if(!De(ie))return[q].concat(ef(w.renderActivePoints({item:P,activePoint:ie,basePoint:W,childIndex:T,isRange:z})))}else{var Le,qe=(Le=w.getItemByXY(w.state.activeCoordinate))!==null&&Le!==void 0?Le:{graphicalItem:q},We=qe.graphicalItem,wt=We.item,Lt=wt===void 0?S:wt,Et=We.childIndex,St=G(G(G({},P.props),de),{},{activeIndex:Et});return[k.cloneElement(Lt,St),null,null]}return z?[q,null,null]:[q,null]}),Se(w,"renderCustomized",function(S,_,C){return k.cloneElement(S,G(G({key:"recharts-customized-".concat(C)},w.props),w.state))}),Se(w,"renderMap",{CartesianGrid:{handler:rg,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:rg},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:rg},YAxis:{handler:rg},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((b=v.id)!==null&&b!==void 0?b:ub("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=sge(w.triggeredAfterMouseMove,(A=v.throttleDelay)!==null&&A!==void 0?A:1e3/60),w.state={},w}return sOe(y,g),rOe(y,[{key:"componentDidMount",value:function(){var b,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,A=b.children,w=b.data,S=b.height,_=b.layout,C=Kr(A,Ho);if(C){var P=C.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var O=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=wA(this.state,w,P,O),E=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+S)/2,T=_==="horizontal",R=T?{x:E,y:M}:{y:E,x:M},I=this.state.formattedGraphicalItems.find(function(j){var N=j.item;return N.type.name==="Scatter"});I&&(R=G(G({},R),I.props.points[P].tooltipPosition),$=I.props.points[P].tooltipPayload);var B={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:O,activePayload:$,activeCoordinate:R};this.setState(B),this.renderCursor(C),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(b){r2([Kr(b.children,Ho)],[Kr(this.props.children,Ho)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Kr(this.props.children,Ho);if(b&&typeof b.props.shared=="boolean"){var A=b.props.shared?"axis":"item";return s.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var A=this.container,w=A.getBoundingClientRect(),S=pge(w),_={chartX:Math.round(b.pageX-S.left),chartY:Math.round(b.pageY-S.top)},C=w.width/A.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,C);if(!P)return null;var O=this.state,$=O.xAxisMap,E=O.yAxisMap,M=this.getTooltipEventType();if(M!=="axis"&&$&&E){var T=vu($).scale,R=vu(E).scale,I=T&&T.invert?T.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return G(G({},_),{},{xValue:I,yValue:B})}var j=g4(this.state,this.props.data,this.props.layout,P);return j?G(G({},_),j):null}},{key:"inRange",value:function(b,A){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,_=b/w,C=A/w;if(S==="horizontal"||S==="vertical"){var P=this.state.offset,O=_>=P.left&&_<=P.left+P.width&&C>=P.top&&C<=P.top+P.height;return O?{x:_,y:C}:null}var $=this.state,E=$.angleAxisMap,M=$.radiusAxisMap;if(E&&M){var T=vu(E);return J3({x:_,y:C},T)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,A=this.getTooltipEventType(),w=Kr(b,Ho),S={};w&&A==="axis"&&(w.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var _=Ry(this.props,this.handleOuterEvent);return G(G({},_),S)}},{key:"addListener",value:function(){ow.on(aw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ow.removeListener(aw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,A,w){for(var S=this.state.formattedGraphicalItems,_=0,C=S.length;_1),o}),Z$e(e,tPe(e),n),r&&(n=K$e(n,nPe|rPe|iPe,J$e));for(var i=t.length;i--;)X$e(n,t[i]);return n}),aPe=oPe;const mL=Ne(aPe),$4=Math.PI/180,sPe=(e,t,n,r,i,o,a)=>{const s=180*(1-e/t),l=(i+2*o)/4,u=Math.sin(-$4*s),f=Math.cos(-$4*s),c=10,d=n+5,h=r+5,p=d+c*u+5,m=h-c*f,g=d-c*u-5,y=h+c*f,v=d+l*f,b=h+l*u;return[x.jsx("circle",{cx:d,cy:h,r:c,fill:a,stroke:"none"},"needle-circle"),x.jsx("path",{d:`M${p} ${m}L${g} ${y} L${v} ${b} L${p} ${m}`,fill:a},"needle-path")]};function lPe({goalAmount:e,currentAmount:t,width:n,height:r}){const i=e,[o,a]=k.useState(0),s=t,l=n/2,u=r-15,f=n*.4,c=r*.8;return k.useEffect(()=>{if(o{a(p=>Math.min(p+d,s))},20);return()=>clearTimeout(h)}},[o,s]),x.jsxs(uPe,{children:[x.jsxs(_Oe,{width:n,height:r,children:[x.jsx($o,{dataKey:"value",startAngle:180,endAngle:0,data:[{value:e,color:"#E8E8E8"}],cx:l,cy:u,innerRadius:f,outerRadius:c,stroke:"none",cornerRadius:10,children:x.jsx(qy,{fill:"#E8E8E8"})}),x.jsx($o,{dataKey:"value",startAngle:180,endAngle:180-180*(t/e),data:[{value:t,color:"#007BFF"}],cx:l,cy:u,innerRadius:f,outerRadius:c,stroke:"none",cornerRadius:10,children:x.jsx(qy,{fill:"#007BFF"})}),sPe(o,i,l,u,f,c,"#007BFF")]}),x.jsxs(cPe,{children:[x.jsx(P4,{children:"0원"}),x.jsxs(P4,{children:[e,"원"]})]})]})}const uPe=D.div` + display: flex; + flex-direction: column; + align-items: center; + width: fit-content; +`,cPe=D.div` + display: flex; + justify-content: space-between; + width: 100%; +`,P4=D.span` + font-size: 1rem; + color: ${({theme:e})=>e.colors.gray03}; +`,qn=Qe.create({baseURL:"http://3.37.214.150:8080",timeout:1e4,headers:{"Content-Type":"application/json"}}),T4=localStorage.getItem("token");qn.interceptors.request.use(e=>(T4&&(e.headers.Authorization=`Bearer ${T4}`),e),e=>Promise.reject(e));qn.interceptors.response.use(e=>e,async e=>{const t=e.config;if(e.response&&e.response.data.error==="INVALID_TOKEN")try{const n=await fPe();return localStorage.setItem("accessToken",n),t.headers.Authorization=`Bearer ${n}`,qn(t)}catch(n){return localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),alert("토큰이 만료되었습니다. 다시 로그인해주세요."),Promise.reject(n)}return Promise.reject(e)});const fPe=async()=>{const e=localStorage.getItem("refreshToken");if(!e)throw new Error("No refresh token available");return(await qn.post("/refresh-token",{token:e})).data.accessToken},sm=e=>{const[t,n]=k.useState(null),[r,i]=k.useState(!1),[o,a]=k.useState(null),[s,l]=k.useState([]),[u,f]=k.useState(0);return k.useEffect(()=>{(async()=>{i(!0),a(null);try{const d=await qn.get(e);n(d.data),l(d.data),f(Object.entries(d.data).length)}catch(d){a(d)}finally{i(!1)}})()},[e]),{data:t,isLoading:r,error:o,arr:s,total:u}};var gL={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},E4=F.createContext&&F.createContext(gL),dPe=["attr","size","title"];function hPe(e,t){if(e==null)return{};var n=pPe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;tF.createElement(t.tag,P0({key:n},t.attr),yL(t.child)))}function lm(e){return t=>F.createElement(vPe,$0({attr:P0({},e.attr)},t),yL(e.child))}function vPe(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=hPe(e,dPe),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),F.createElement("svg",$0({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:P0(P0({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&F.createElement("title",null,o),e.children)};return E4!==void 0?F.createElement(E4.Consumer,null,n=>t(n)):t(gL)}function bPe(e){return lm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function j4(e){return lm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(e)}function If({size:e}){const t=e||70,n=rR();return x.jsxs(xPe,{children:[x.jsx(bPe,{size:t,color:n.colors.red}),x.jsx("strong",{children:"잠시 후 다시 시도하세요."})]})}const xPe=D.div` + display: flex; + flex-direction: column; + gap: 1rem; + align-items: center; +`;var wPe={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function vL(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return wPe[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function R4(e){var t=vL(e);return"".concat(t.value).concat(t.unit)}var SPe=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a=` + @keyframes `.concat(r,` { + `).concat(t,` + } + `);return o&&o.insertRule(a,0),r},Ra=function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{l&&a(l.targetAmount)},[l]),k.useEffect(()=>{e&&a(e)},[e]);const c=m=>{i(m.target.value)};if(u)return x.jsx(If,{});if(f)return x.jsx(Xl,{});const d=l==null?void 0:l.nowAmount;return x.jsx(kPe,{children:x.jsxs(CPe,{children:[x.jsxs($Pe,{children:[x.jsx(PPe,{children:"한달 저축 목표"}),x.jsx(TPe,{value:r||"",onChange:c,children:s.map((m,g)=>x.jsx("option",{value:m.month,children:m.value},g))})]}),x.jsxs(EPe,{children:[x.jsxs(MPe,{children:[x.jsx(D4,{children:"목표금액"}),x.jsx(N4,{children:o?o.toLocaleString()+"원":"0원"}),x.jsx(D4,{children:"현재 금액"}),x.jsx(N4,{children:d?d.toLocaleString()+"원":"0원"})]}),x.jsx(lPe,{goalAmount:o,currentAmount:d,height:120,width:200})]})]})})}const kPe=D.div` + display: flex; + flex-direction: column; + width: 90%; +`,CPe=D.div` + background-color: #fff; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +`,$Pe=D.div` + display: flex; + justify-content: space-between; + padding: 1rem; + border-bottom: 1px solid ${({theme:e})=>e.colors.gray00}; + background-color: #fff; +`,PPe=D.a` + font-size: 1.1rem; + font-weight: 500; + color: ${({theme:e})=>e.colors.black}; +`,TPe=D.select` + border: 1px solid ${({theme:e})=>e.colors.gray07}; + border-radius: 0.5rem; + background-color: ${({theme:e})=>e.colors.gray08}; + height: 1.5rem; + width: 8rem; + text-align: left; +`,EPe=D.div` + display: flex; + padding: 1rem; + justify-content: space-between; + background-color: #fff; +`,MPe=D.div` + display: flex; + flex-direction: column; + gap: 0.5rem; +`,D4=D.div` + font-size: 0.8rem; + color: ${({theme:e})=>e.colors.gray06}; +`,N4=D.div` + font-size: 1rem; + font-weight: 500; + color: ${({theme:e})=>e.colors.black}; +`;function jPe(){const{data:e,isLoading:t,error:n}=sm("/api/feedback");if(t)return x.jsx(Xl,{});if(n)return x.jsx(If,{});const i=((e==null?void 0:e.message)||"").split(/(\d{1,3}(?:,\d{3})*(?:\.\d+)?%?|\d{1,3}(?:,\d{3})*(?:\.\d+)?원)/).filter(Boolean);return x.jsx(RPe,{children:i.map((o,a)=>o.match(/(\d{1,3}(?:,\d{3})*(?:\.\d+)?%?|\d{1,3}(?:,\d{3})*(?:\.\d+)?원)/)?x.jsx(IPe,{children:o},a):x.jsx("span",{children:o},a))})}const RPe=D.div` + padding: 1rem; + line-height: 2; +`,IPe=D.span` + color: ${({theme:e})=>e.colors.blue}; + font-weight: bold; +`;function DPe(){const{arr:e,error:t,isLoading:n}=sm("/api/expend/recent");return t?x.jsx(If,{}):n?x.jsx(Xl,{}):x.jsx(NPe,{children:e&&e.map(r=>x.jsxs(LPe,{children:[x.jsxs(BPe,{children:[x.jsx(L4,{children:r.expendName}),x.jsx(B4,{children:r.category})]}),x.jsxs(FPe,{children:[x.jsxs(L4,{children:[r.cost.toLocaleString("ko-KR"),"원"]}),x.jsx(B4,{children:r.expendDate.replaceAll("-",".")})]})]},r.expendId))})}const NPe=D.div` + width: 100%; + display: flex; + flex-direction: column; + gap: 1rem; +`,LPe=D.div` + display: flex; + padding: 1rem; + justify-content: space-between; + border-bottom: 1px solid ${({theme:e})=>e.colors.gray09}; +`,BPe=D.div` + display: flex; + align-content: start; + flex-direction: column; +`,FPe=D.div` + display: flex; + align-items: end; + flex-direction: column; +`,L4=D.a` + font-size: 1.2rem; + font-weight: 600; +`,B4=D.a` + font-size: 1rem; + font-weight: 500; + color: ${({theme:e})=>e.colors.gray03}; +`;function UPe(){const e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],{data:t,isLoading:n,error:r}=sm("/api/payment/recent"),i=a=>{const s=new Date(a),l=e[s.getMonth()],u=s.getDate();return{convertMonth:l,convertDay:u}},o=Array.isArray(t)&&t.length>0;return r?x.jsx(If,{}):n?x.jsx(Xl,{}):x.jsx(zPe,{children:o?t.map(a=>{var u;const{convertMonth:s,convertDay:l}=i(a==null?void 0:a.dueDate);return x.jsxs(WPe,{children:[x.jsxs(YPe,{children:[x.jsx(VPe,{children:s}),x.jsx(HPe,{children:l})]}),x.jsxs(GPe,{children:[x.jsx(F4,{children:a.tradeName}),x.jsx(F4,{children:a.paymentDetail}),x.jsx(qPe,{children:(u=a.date)==null?void 0:u.replaceAll("-",".")})]}),x.jsxs(KPe,{children:[a.cost.toLocaleString("ko-KR"),"원"]})]},a.paymentId)}):x.jsx(XPe,{children:"결제예정 내역이 없습니다."})})}const zPe=D.div` + display: flex; + flex-direction: column; + justify-content: center; + width: 100%; + height: 100%; +`,WPe=D.div` + display: flex; + border-bottom: 1px solid ${({theme:e})=>e.colors.gray00}; + justify-content: space-between; + align-items: center; + padding: 0.5rem; + + &:last-child { + border-bottom: none; + } +`,YPe=D.div` + border-radius: 0.5rem; + width: 2rem; + background-color: ${({theme:e})=>e.colors.gray10}; + padding: 1rem 1rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +`,VPe=D.a` + color: ${({theme:e})=>e.colors.gray06}; + font-size: 1rem; +`,HPe=D.a` + font-size: 2rem; + font-weight: 800; +`,GPe=D.div` + display: flex; + flex-direction: column; + justify-content: start; + padding: 1rem 0; + gap: 0.5rem; +`,F4=D.a` + font-size: 1rem; +`,qPe=D.a` + font-size: 0.8rem; + color: ${({theme:e})=>e.colors.gray06}; +`,KPe=D.div` + border: 1px solid ${({theme:e})=>e.colors.gray00}; + border-radius: 0.5rem; + height: fit-content; + padding: 0.5rem; + display: flex; + align-items: center; + justify-content: center; +`,XPe=D.a` + font-size: 1.5rem; + font-weight: 700; +`;var xC=cm(),_e=e=>um(e,xC),wC=cm();_e.write=e=>um(e,wC);var Qb=cm();_e.onStart=e=>um(e,Qb);var SC=cm();_e.onFrame=e=>um(e,SC);var AC=cm();_e.onFinish=e=>um(e,AC);var Ju=[];_e.setTimeout=(e,t)=>{const n=_e.now()+t,r=()=>{const o=Ju.findIndex(a=>a.cancel==r);~o&&Ju.splice(o,1),es-=~o?1:0},i={time:n,handler:e,cancel:r};return Ju.splice(xL(n),0,i),es+=1,wL(),i};var xL=e=>~(~Ju.findIndex(t=>t.time>e)||~Ju.length);_e.cancel=e=>{Qb.delete(e),SC.delete(e),AC.delete(e),xC.delete(e),wC.delete(e)};_e.sync=e=>{SA=!0,_e.batchedUpdates(e),SA=!1};_e.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,_e.onStart(n)}return r.handler=e,r.cancel=()=>{Qb.delete(n),t=null},r};var _C=typeof window<"u"?window.requestAnimationFrame:()=>{};_e.use=e=>_C=e;_e.now=typeof performance<"u"?()=>performance.now():Date.now;_e.batchedUpdates=e=>e();_e.catch=console.error;_e.frameLoop="always";_e.advance=()=>{_e.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):AL()};var Ja=-1,es=0,SA=!1;function um(e,t){SA?(t.delete(e),e(0)):(t.add(e),wL())}function wL(){Ja<0&&(Ja=0,_e.frameLoop!=="demand"&&_C(SL))}function QPe(){Ja=-1}function SL(){~Ja&&(_C(SL),_e.batchedUpdates(AL))}function AL(){const e=Ja;Ja=_e.now();const t=xL(Ja);if(t&&(_L(Ju.splice(0,t),n=>n.handler()),es-=t),!es){QPe();return}Qb.flush(),xC.flush(e?Math.min(64,Ja-e):16.667),SC.flush(),wC.flush(),AC.flush()}function cm(){let e=new Set,t=e;return{add(n){es+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return es-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,es-=t.size,_L(t,r=>r(n)&&e.add(r)),es+=e.size,t=e)}}}function _L(e,t){e.forEach(n=>{try{t(n)}catch(r){_e.catch(r)}})}var ZPe=Object.defineProperty,JPe=(e,t)=>{for(var n in t)ZPe(e,n,{get:t[n],enumerable:!0})},Wi={};JPe(Wi,{assign:()=>tTe,colors:()=>ps,createStringInterpolator:()=>kC,skipAnimation:()=>kL,to:()=>OL,willAdvance:()=>CC});function AA(){}var eTe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Z={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function qo(e,t){if(Z.arr(e)){if(!Z.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Po(e,t,n){if(Z.arr(e)){for(let r=0;rZ.und(e)?[]:Z.arr(e)?e:[e];function Zd(e,t){if(e.size){const n=Array.from(e);e.clear(),Ae(n,t)}}var Md=(e,...t)=>Zd(e,n=>n(...t)),OC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),kC,OL,ps=null,kL=!1,CC=AA,tTe=e=>{e.to&&(OL=e.to),e.now&&(_e.now=e.now),e.colors!==void 0&&(ps=e.colors),e.skipAnimation!=null&&(kL=e.skipAnimation),e.createStringInterpolator&&(kC=e.createStringInterpolator),e.requestAnimationFrame&&_e.use(e.requestAnimationFrame),e.batchedUpdates&&(_e.batchedUpdates=e.batchedUpdates),e.willAdvance&&(CC=e.willAdvance),e.frameLoop&&(_e.frameLoop=e.frameLoop)},Jd=new Set,ii=[],lw=[],T0=0,Zb={get idle(){return!Jd.size&&!ii.length},start(e){T0>e.priority?(Jd.add(e),_e.onStart(nTe)):(CL(e),_e(_A))},advance:_A,sort(e){if(T0)_e.onFrame(()=>Zb.sort(e));else{const t=ii.indexOf(e);~t&&(ii.splice(t,1),$L(e))}},clear(){ii=[],Jd.clear()}};function nTe(){Jd.forEach(CL),Jd.clear(),_e(_A)}function CL(e){ii.includes(e)||$L(e)}function $L(e){ii.splice(rTe(ii,t=>t.priority>e.priority),0,e)}function _A(e){const t=lw;for(let n=0;n0}function rTe(e,t){const n=e.findIndex(t);return n<0?e.length:n}var iTe=(e,t,n)=>Math.min(Math.max(n,e),t),oTe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ii="[-+]?\\d*\\.?\\d+",E0=Ii+"%";function Jb(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var aTe=new RegExp("rgb"+Jb(Ii,Ii,Ii)),sTe=new RegExp("rgba"+Jb(Ii,Ii,Ii,Ii)),lTe=new RegExp("hsl"+Jb(Ii,E0,E0)),uTe=new RegExp("hsla"+Jb(Ii,E0,E0,Ii)),cTe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fTe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dTe=/^#([0-9a-fA-F]{6})$/,hTe=/^#([0-9a-fA-F]{8})$/;function pTe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=dTe.exec(e))?parseInt(t[1]+"ff",16)>>>0:ps&&ps[e]!==void 0?ps[e]:(t=aTe.exec(e))?(uu(t[1])<<24|uu(t[2])<<16|uu(t[3])<<8|255)>>>0:(t=sTe.exec(e))?(uu(t[1])<<24|uu(t[2])<<16|uu(t[3])<<8|W4(t[4]))>>>0:(t=cTe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hTe.exec(e))?parseInt(t[1],16)>>>0:(t=fTe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=lTe.exec(e))?(U4(z4(t[1]),ig(t[2]),ig(t[3]))|255)>>>0:(t=uTe.exec(e))?(U4(z4(t[1]),ig(t[2]),ig(t[3]))|W4(t[4]))>>>0:null}function uw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function U4(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=uw(i,r,e+1/3),a=uw(i,r,e),s=uw(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function uu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function z4(e){return(parseFloat(e)%360+360)%360/360}function W4(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ig(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Y4(e){let t=pTe(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var mp=(e,t,n)=>{if(Z.fun(e))return e;if(Z.arr(e))return mp({range:e,output:t,extrapolate:n});if(Z.str(e.output[0]))return kC(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const f=gTe(u,o);return mTe(u,o[f],o[f+1],i[f],i[f+1],l,a,s,r.map)}};function mTe(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function gTe(e,t){for(var n=1;n=e);++n);return n-1}var yTe=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return iTe(0,1,i/e)},M0=1.70158,og=M0*1.525,V4=M0+1,H4=2*Math.PI/3,G4=2*Math.PI/4.5,ag=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,vTe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>V4*e*e*e-M0*e*e,easeOutBack:e=>1+V4*Math.pow(e-1,3)+M0*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((og+1)*2*e-og)/2:(Math.pow(2*e-2,2)*((og+1)*(e*2-2)+og)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*H4),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*H4)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*G4))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*G4)/2+1,easeInBounce:e=>1-ag(1-e),easeOutBounce:ag,easeInOutBounce:e=>e<.5?(1-ag(1-2*e))/2:(1+ag(2*e-1))/2,steps:yTe},gp=Symbol.for("FluidValue.get"),tf=Symbol.for("FluidValue.observers"),ni=e=>!!(e&&e[gp]),hr=e=>e&&e[gp]?e[gp]():e,q4=e=>e[tf]||null;function bTe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function yp(e,t){const n=e[tf];n&&n.forEach(r=>{bTe(r,t)})}var PL=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");xTe(this,e)}},xTe=(e,t)=>TL(e,gp,t);function Df(e,t){if(e[gp]){let n=e[tf];n||TL(e,tf,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function vp(e,t){const n=e[tf];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[tf]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var TL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Fg=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,wTe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,K4=new RegExp(`(${Fg.source})(%|[a-z]+)`,"i"),STe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,e1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,EL=e=>{const[t,n]=ATe(e);if(!t||OC())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&e1.test(n))return EL(n);if(n)return n}return e},ATe=e=>{const t=e1.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cw,_Te=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ML=e=>{cw||(cw=ps?new RegExp(`(${Object.keys(ps).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>hr(o).replace(e1,EL).replace(wTe,Y4).replace(cw,Y4)),n=t.map(o=>o.match(Fg).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>mp({...e,output:o}));return o=>{var l;const a=!K4.test(t[0])&&((l=t.find(u=>K4.test(u)))==null?void 0:l.replace(Fg,""));let s=0;return t[0].replace(Fg,()=>`${i[s++](o)}${a||""}`).replace(STe,_Te)}},$C="react-spring: ",jL=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${$C}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},OTe=jL(console.warn);function kTe(){OTe(`${$C}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var CTe=jL(console.warn);function $Te(){CTe(`${$C}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function t1(e){return Z.str(e)&&(e[0]=="#"||/\d/.test(e)||!OC()&&e1.test(e)||e in(ps||{}))}var tl=OC()?k.useEffect:k.useLayoutEffect,PTe=()=>{const e=k.useRef(!1);return tl(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function PC(){const e=k.useState()[1],t=PTe();return()=>{t.current&&e(Math.random())}}function TTe(e,t){const[n]=k.useState(()=>({inputs:t,result:e()})),r=k.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&ETe(t,o.inputs)||(o={inputs:t,result:e()}):o=n,k.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function ETe(e,t){if(e.length!==t.length)return!1;for(let n=0;nk.useEffect(e,MTe),MTe=[];function OA(e){const t=k.useRef();return k.useEffect(()=>{t.current=e}),t.current}var bp=Symbol.for("Animated:node"),jTe=e=>!!e&&e[bp]===e,io=e=>e&&e[bp],EC=(e,t)=>eTe(e,bp,t),n1=e=>e&&e[bp]&&e[bp].getPayload(),RL=class{constructor(){EC(this,this)}getPayload(){return this.payload||[]}},fm=class extends RL{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Z.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new fm(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Z.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Z.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xp=class extends fm{constructor(e){super(0),this._string=null,this._toString=mp({output:[e,e]})}static create(e){return new xp(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Z.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=mp({output:[this.getValue(),e]})),this._value=0,super.reset()}},j0={dependencies:null},r1=class extends RL{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Po(this.source,(n,r)=>{jTe(n)?t[r]=n.getValue(e):ni(n)?t[r]=hr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ae(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Po(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){j0.dependencies&&ni(e)&&j0.dependencies.add(e);const t=n1(e);t&&Ae(t,n=>this.add(n))}},IL=class extends r1{constructor(e){super(e)}static create(e){return new IL(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(RTe)),!0)}};function RTe(e){return(t1(e)?xp:fm).create(e)}function kA(e){const t=io(e);return t?t.constructor:Z.arr(e)?IL:t1(e)?xp:fm}var X4=(e,t)=>{const n=!Z.fun(e)||e.prototype&&e.prototype.isReactComponent;return k.forwardRef((r,i)=>{const o=k.useRef(null),a=n&&k.useCallback(p=>{o.current=NTe(i,p)},[i]),[s,l]=DTe(r,t),u=PC(),f=()=>{const p=o.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&u()},c=new ITe(f,l),d=k.useRef();tl(()=>(d.current=c,Ae(l,p=>Df(p,c)),()=>{d.current&&(Ae(d.current.deps,p=>vp(p,d.current)),_e.cancel(d.current.update))})),k.useEffect(f,[]),TC(()=>()=>{const p=d.current;Ae(p.deps,m=>vp(m,p))});const h=t.getComponentProps(s.getValue());return k.createElement(e,{...h,ref:a})})},ITe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&_e.write(this.update)}};function DTe(e,t){const n=new Set;return j0.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new r1(e),j0.dependencies=null,[e,n]}function NTe(e,t){return e&&(Z.fun(e)?e(t):e.current=t),t}var Q4=Symbol.for("AnimatedComponent"),LTe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new r1(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=Z4(a)||"Anonymous";return Z.str(a)?a=o[a]||(o[a]=X4(a,i)):a=a[Q4]||(a[Q4]=X4(a,i)),a.displayName=`Animated(${s})`,a};return Po(e,(a,s)=>{Z.arr(e)&&(s=Z4(a)),o[s]=o(a)}),{animated:o}},Z4=e=>Z.str(e)?e:e&&Z.str(e.displayName)?e.displayName:Z.fun(e)&&e.name||null;function pr(e,...t){return Z.fun(e)?e(...t):e}var eh=(e,t)=>e===!0||!!(t&&e&&(Z.fun(e)?e(t):Jn(e).includes(t))),DL=(e,t)=>Z.obj(e)?t&&e[t]:e,NL=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,BTe=e=>e,i1=(e,t=BTe)=>{let n=FTe;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);Z.und(o)||(r[i]=o)}return r},FTe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],UTe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function zTe(e){const t={};let n=0;if(Po(e,(r,i)=>{UTe[i]||(t[i]=r,n++)}),n)return t}function MC(e){const t=zTe(e);if(t){const n={to:t};return Po(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function wp(e){return e=hr(e),Z.arr(e)?e.map(wp):t1(e)?Wi.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function LL(e){for(const t in e)return!0;return!1}function CA(e){return Z.fun(e)||Z.arr(e)&&Z.obj(e[0])}function $A(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function BL(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var jC={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},PA={...jC.default,mass:1,damping:1,easing:vTe.linear,clamp:!1},WTe=class{constructor(){this.velocity=0,Object.assign(this,PA)}};function YTe(e,t,n){n&&(n={...n},J4(n,t),t={...n,...t}),J4(e,t),Object.assign(e,t);for(const a in PA)e[a]==null&&(e[a]=PA[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return Z.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function J4(e,t){if(!Z.und(t.decay))e.duration=void 0;else{const n=!Z.und(t.tension)||!Z.und(t.friction);(n||!Z.und(t.frequency)||!Z.und(t.damping)||!Z.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var eM=[],VTe=class{constructor(){this.changed=!1,this.values=eM,this.toValues=null,this.fromValues=eM,this.config=new WTe,this.immediate=!1}};function FL(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,f=eh(n.cancel??(r==null?void 0:r.cancel),t);if(f)h();else{Z.und(n.pause)||(i.paused=eh(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||eh(p,t)),l=pr(n.delay||0,t),p?(i.resumeQueue.add(d),o.pause()):(o.resume(),d())}function c(){i.resumeQueue.add(d),i.timeouts.delete(u),u.cancel(),l=u.time-_e.now()}function d(){l>0&&!Wi.skipAnimation?(i.delayed=!0,u=_e.setTimeout(h,l),i.pauseQueue.add(c),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(c),i.timeouts.delete(u),e<=(i.cancelId||0)&&(f=!0);try{o.start({...n,callId:e,cancel:f},a)}catch(p){s(p)}}})}var RC=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ec(e.get()):t.every(n=>n.noop)?UL(e.get()):Ti(e.get(),t.every(n=>n.finished)),UL=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ti=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ec=e=>({value:e,cancelled:!0,finished:!1});function zL(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=i1(t,(g,y)=>y==="onRest"?void 0:g);let f,c;const d=new Promise((g,y)=>(f=g,c=y)),h=g=>{const y=i<=(n.cancelId||0)&&ec(r)||i!==n.asyncId&&Ti(r,!1);if(y)throw g.result=y,c(g),g},p=(g,y)=>{const v=new tM,b=new nM;return(async()=>{if(Wi.skipAnimation)throw Sp(n),b.result=Ti(r,!1),c(b),b;h(v);const A=Z.obj(g)?{...g}:{...y,to:g};A.parentId=i,Po(u,(S,_)=>{Z.und(A[_])&&(A[_]=S)});const w=await r.start(A);return h(v),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),w})()};let m;if(Wi.skipAnimation)return Sp(n),Ti(r,!1);try{let g;Z.arr(e)?g=(async y=>{for(const v of y)await p(v)})(e):g=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([g.then(f),d]),m=Ti(r.get(),!0,!1)}catch(g){if(g instanceof tM)m=g.result;else if(g instanceof nM)m=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Z.fun(a)&&_e.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function Sp(e,t){Zd(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tM=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},nM=class extends Error{constructor(){super("SkipAnimationSignal")}},TA=e=>e instanceof IC,HTe=1,IC=class extends PL{constructor(){super(...arguments),this.id=HTe++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=io(this);return e&&e.getValue()}to(...e){return Wi.to(this,e)}interpolate(...e){return kTe(),Wi.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){yp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Zb.sort(this),yp(this,{type:"priority",parent:this,priority:e})}},Rl=Symbol.for("SpringPhase"),WL=1,EA=2,MA=4,fw=e=>(e[Rl]&WL)>0,$a=e=>(e[Rl]&EA)>0,cd=e=>(e[Rl]&MA)>0,rM=(e,t)=>t?e[Rl]|=EA|WL:e[Rl]&=~EA,iM=(e,t)=>t?e[Rl]|=MA:e[Rl]&=~MA,GTe=class extends IC{constructor(e,t){if(super(),this.animation=new VTe,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Z.und(e)||!Z.und(t)){const n=Z.obj(e)?{...e}:{...t,from:e};Z.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!($a(this)||this._state.asyncTo)||cd(this)}get goal(){return hr(this.animation.to)}get velocity(){const e=io(this);return e instanceof fm?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return fw(this)}get isAnimating(){return $a(this)}get isPaused(){return cd(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=n1(r.to);!a&&ni(r.to)&&(i=Jn(hr(r.to))),r.values.forEach((u,f)=>{if(u.done)return;const c=u.constructor==xp?1:a?a[f].lastPosition:i[f];let d=r.immediate,h=c;if(!d){if(h=u.lastPosition,o.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const m=r.fromValues[f],g=u.v0!=null?u.v0:u.v0=Z.arr(o.velocity)?o.velocity[f]:o.velocity;let y;const v=o.precision||(m==c?.005:Math.min(1,Math.abs(c-m)*.001));if(Z.und(o.duration))if(o.decay){const b=o.decay===!0?.998:o.decay,A=Math.exp(-(1-b)*p);h=m+g/(1-b)*(1-A),d=Math.abs(u.lastPosition-h)<=v,y=g*A}else{y=u.lastVelocity==null?g:u.lastVelocity;const b=o.restVelocity||v/10,A=o.clamp?0:o.bounce,w=!Z.und(A),S=m==c?u.v0>0:mb,!(!_&&(d=Math.abs(c-h)<=v,d)));++$){w&&(C=h==c||h>c==S,C&&(y=-y*A,h=c));const E=-o.tension*1e-6*(h-c),M=-o.friction*.001*y,T=(E+M)/o.mass;y=y+T*P,h=h+y*P}}else{let b=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,u.durationProgress>0&&(u.elapsedTime=o.duration*u.durationProgress,p=u.elapsedTime+=e)),b=(o.progress||0)+p/this._memoizedDuration,b=b>1?1:b<0?0:b,u.durationProgress=b),h=m+o.easing(b)*(c-m),y=(h-u.lastPosition)/e,d=b==1}u.lastVelocity=y,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),d=!0)}a&&!a[f].done&&(d=!1),d?u.done=!0:t=!1,u.setValue(h,o.round)&&(n=!0)});const s=io(this),l=s.getValue();if(t){const u=hr(r.to);(l!==u||n)&&!o.decay?(s.setValue(u),this._onChange(u)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return _e.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($a(this)){const{to:e,config:t}=this.animation;_e.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Z.und(e)?(n=this.queue||[],this.queue=[]):n=[Z.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>RC(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Sp(this._state,e&&this._lastCallId),_e.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Z.obj(n)?n[t]:n,(n==null||CA(n))&&(n=void 0),r=Z.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return fw(this)||(e.reverse&&([n,r]=[r,n]),r=hr(r),Z.und(r)?io(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,i1(e,(a,s)=>/^on/.test(s)?DL(a,n):a)),aM(this,e,"onProps"),dd(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return FL(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{cd(this)||(iM(this,!0),Md(o.pauseQueue),dd(this,"onPause",Ti(this,fd(this,this.animation.to)),this))},resume:()=>{cd(this)&&(iM(this,!1),$a(this)&&this._resume(),Md(o.resumeQueue),dd(this,"onResume",Ti(this,fd(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=YL(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ec(this));const r=!Z.und(e.to),i=!Z.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ec(this));const{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:f=l,from:c=u}=e;i&&!r&&(!t.default||Z.und(f))&&(f=c),t.reverse&&([f,c]=[c,f]);const d=!qo(c,u);d&&(s.from=c),c=hr(c);const h=!qo(f,l);h&&this._focus(f);const p=CA(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||i)&&(m.velocity=0),t.config&&!p&&YTe(m,pr(t.config,o),t.config!==a.config?pr(a.config,o):void 0);let v=io(this);if(!v||Z.und(f))return n(Ti(this,!0));const b=Z.und(t.reset)?i&&!t.default:!Z.und(c)&&eh(t.reset,o),A=b?c:this.get(),w=wp(f),S=Z.num(w)||Z.arr(w)||t1(w),_=!p&&(!S||eh(a.immediate||t.immediate,o));if(h){const $=kA(f);if($!==v.constructor)if(_)v=this._set(w);else throw Error(`Cannot animate between ${v.constructor.name} and ${$.name}, as the "to" prop suggests`)}const C=v.constructor;let P=ni(f),O=!1;if(!P){const $=b||!fw(this)&&d;(h||$)&&(O=qo(wp(A),w),P=!O),(!qo(s.immediate,_)&&!_||!qo(m.decay,g)||!qo(m.velocity,y))&&(P=!0)}if(O&&$a(this)&&(s.changed&&!b?P=!0:P||this._stop(l)),!p&&((P||ni(l))&&(s.values=v.getPayload(),s.toValues=ni(f)?null:C==xp?[1]:Jn(w)),s.immediate!=_&&(s.immediate=_,!_&&!b&&this._set(l)),P)){const{onRest:$}=s;Ae(KTe,M=>aM(this,t,M));const E=Ti(this,fd(this,l));Md(this._pendingCalls,E),this._pendingCalls.add(n),s.changed&&_e.batchedUpdates(()=>{var M;s.changed=!b,$==null||$(E,this),b?pr(a.onRest,E):(M=s.onStart)==null||M.call(s,E,this)})}b&&this._set(A),p?n(zL(t.to,t,this._state,this)):P?this._start():$a(this)&&!h?this._pendingCalls.add(n):n(UL(A))}_focus(e){const t=this.animation;e!==t.to&&(q4(this)&&this._detach(),t.to=e,q4(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ni(t)&&(Df(t,this),TA(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ni(e)&&vp(e,this)}_set(e,t=!0){const n=hr(e);if(!Z.und(n)){const r=io(this);if(!r||!qo(n,r.getValue())){const i=kA(n);!r||r.constructor!=i?EC(this,i.create(n)):r.setValue(n),r&&_e.batchedUpdates(()=>{this._onChange(n,t)})}}return io(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,dd(this,"onStart",Ti(this,fd(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pr(this.animation.onChange,e,this)),pr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;io(this).reset(hr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),$a(this)||(rM(this,!0),cd(this)||this._resume())}_resume(){Wi.skipAnimation?this.finish():Zb.start(this)}_stop(e,t){if($a(this)){rM(this,!1);const n=this.animation;Ae(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yp(this,{type:"idle",parent:this});const r=t?ec(this.get()):Ti(this.get(),fd(this,e??n.to));Md(this._pendingCalls,r),n.changed&&(n.changed=!1,dd(this,"onRest",r,this))}}};function fd(e,t){const n=wp(t),r=wp(e.get());return qo(r,n)}function YL(e,t=e.loop,n=e.to){const r=pr(t);if(r){const i=r!==!0&&MC(r),o=(i||e).reverse,a=!i||i.reset;return Ap({...e,loop:t,default:!1,pause:void 0,to:!o||CA(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Ap(e){const{to:t,from:n}=e=MC(e),r=new Set;return Z.obj(t)&&oM(t,r),Z.obj(n)&&oM(n,r),e.keys=r.size?Array.from(r):null,e}function qTe(e){const t=Ap(e);return Z.und(t.default)&&(t.default=i1(t)),t}function oM(e,t){Po(e,(n,r)=>n!=null&&t.add(r))}var KTe=["onStart","onRest","onChange","onPause","onResume"];function aM(e,t,n){e.animation[n]=t[n]!==NL(t,n)?DL(t[n],e.key):void 0}function dd(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var XTe=["onStart","onChange","onRest"],QTe=1,VL=class{constructor(e,t){this.id=QTe++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Z.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ap(e)),this}start(e){let{queue:t}=this;return e?t=Jn(e).map(Ap):this.queue=[],this._flush?this._flush(this,t):(XL(this,t),jA(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ae(Jn(t),r=>n[r].stop(!!e))}else Sp(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Z.und(e))this.start({pause:!0});else{const t=this.springs;Ae(Jn(e),n=>t[n].pause())}return this}resume(e){if(Z.und(e))this.start({pause:!1});else{const t=this.springs;Ae(Jn(e),n=>t[n].resume())}return this}each(e){Po(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Zd(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Zd(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,Zd(n,([s,l])=>{l.value=a,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;_e.onFrame(this._onFrame)}};function jA(e,t){return Promise.all(t.map(n=>HL(e,n))).then(n=>RC(e,n))}async function HL(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=Z.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const f=Z.arr(i)||Z.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ae(XTe,m=>{const g=t[m];if(Z.fun(g)){const y=e._events[m];t[m]=({finished:v,cancelled:b})=>{const A=y.get(g);A?(v||(A.finished=!1),b&&(A.cancelled=!0)):y.set(g,{value:null,finished:v||!1,cancelled:b||!1})},u&&(u[m]=t[m])}});const c=e._state;t.pause===!c.paused?(c.paused=t.pause,Md(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||NL(t,"cancel")===!0;(f||h&&c.asyncId)&&d.push(FL(++e._lastAsyncId,{props:t,state:c,actions:{pause:AA,resume:AA,start(m,g){h?(Sp(c,e._lastAsyncId),g(ec(e))):(m.onRest=s,g(zL(f,m,c,e)))}}})),c.paused&&await new Promise(m=>{c.resumeQueue.add(m)});const p=RC(e,await Promise.all(d));if(a&&p.finished&&!(n&&p.noop)){const m=YL(t,a,i);if(m)return XL(e,[m]),HL(e,m,!0)}return l&&_e.batchedUpdates(()=>l(p,e,e.item)),p}function RA(e,t){const n={...e.springs};return t&&Ae(Jn(t),r=>{Z.und(r.keys)&&(r=Ap(r)),Z.obj(r.to)||(r={...r,to:void 0}),KL(n,r,i=>qL(i))}),GL(e,n),n}function GL(e,t){Po(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Df(n,e))})}function qL(e,t){const n=new GTe;return n.key=e,t&&Df(n,t),n}function KL(e,t,n){t.keys&&Ae(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function XL(e,t){Ae(t,n=>{KL(e.springs,n,r=>qL(r,e))})}var dm=({children:e,...t})=>{const n=k.useContext(R0),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=TTe(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=R0;return k.createElement(o,{value:t},e)},R0=ZTe(dm,{});dm.Provider=R0.Provider;dm.Consumer=R0.Consumer;function ZTe(e,t){return Object.assign(e,k.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var QL=()=>{const e=[],t=function(r){$Te();const i=[];return Ae(e,(o,a)=>{if(Z.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Ae(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ae(e,r=>r.resume(...arguments)),this},t.set=function(r){Ae(e,(i,o)=>{const a=Z.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Ae(e,(o,a)=>{if(Z.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return Ae(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ae(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return Z.fun(r)?r(o,i):r};return t._getProps=n,t};function JTe(e,t,n){const r=Z.fun(t)&&t;r&&!n&&(n=[]);const i=k.useMemo(()=>r||arguments.length==3?QL():void 0,[]),o=k.useRef(0),a=PC(),s=k.useMemo(()=>({ctrls:[],queue:[],flush(y,v){const b=RA(y,v);return o.current>0&&!s.queue.length&&!Object.keys(b).some(w=>!y.springs[w])?jA(y,v):new Promise(w=>{GL(y,b),s.queue.push(()=>{w(jA(y,v))}),a()})}}),[]),l=k.useRef([...s.ctrls]),u=[],f=OA(e)||0;k.useMemo(()=>{Ae(l.current.slice(e,f),y=>{$A(y,i),y.stop(!0)}),l.current.length=e,c(f,e)},[e]),k.useMemo(()=>{c(0,Math.min(f,e))},n);function c(y,v){for(let b=y;bRA(y,u[v])),h=k.useContext(dm),p=OA(h),m=h!==p&&LL(h);tl(()=>{o.current++,s.ctrls=l.current;const{queue:y}=s;y.length&&(s.queue=[],Ae(y,v=>v())),Ae(l.current,(v,b)=>{i==null||i.add(v),m&&v.start({default:h});const A=u[b];A&&(BL(v,A.ref),v.ref?v.queue.push(A):v.start(A))})}),TC(()=>()=>{Ae(s.ctrls,y=>y.stop(!0))});const g=d.map(y=>({...y}));return i?[g,i]:g}function _a(e,t){const n=Z.fun(e),[[r],i]=JTe(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function o1(e,t,n){const r=Z.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:f,config:c}=r?r():t,d=k.useMemo(()=>r||arguments.length==3?QL():void 0,[]),h=Jn(e),p=[],m=k.useRef(null),g=i?null:m.current;tl(()=>{m.current=p}),TC(()=>(Ae(p,T=>{d==null||d.add(T.ctrl),T.ctrl.ref=d}),()=>{Ae(m.current,T=>{T.expired&&clearTimeout(T.expirationId),$A(T.ctrl,d),T.ctrl.stop(!0)})}));const y=tEe(h,r?r():t,g),v=i&&m.current||[];tl(()=>Ae(v,({ctrl:T,item:R,key:I})=>{$A(T,d),pr(u,R,I)}));const b=[];if(g&&Ae(g,(T,R)=>{T.expired?(clearTimeout(T.expirationId),v.push(T)):(R=b[R]=y.indexOf(T.key),~R&&(p[R]=T))}),Ae(h,(T,R)=>{p[R]||(p[R]={key:y[R],item:T,phase:"mount",ctrl:new VL},p[R].ctrl.item=T)}),b.length){let T=-1;const{leave:R}=r?r():t;Ae(b,(I,B)=>{const j=g[B];~I?(T=p.indexOf(j),p[T]={...j,item:h[I]}):R&&p.splice(++T,0,j)})}Z.fun(o)&&p.sort((T,R)=>o(T.item,R.item));let A=-a;const w=PC(),S=i1(t),_=new Map,C=k.useRef(new Map),P=k.useRef(!1);Ae(p,(T,R)=>{const I=T.key,B=T.phase,j=r?r():t;let N,z;const X=pr(j.delay||0,I);if(B=="mount")N=j.enter,z="enter";else{const re=y.indexOf(I)<0;if(B!="leave")if(re)N=j.leave,z="leave";else if(N=j.update)z="update";else return;else if(!re)N=j.enter,z="enter";else return}if(N=pr(N,T.item,R),N=Z.obj(N)?MC(N):{to:N},!N.config){const re=c||S.config;N.config=pr(re,T.item,R,z)}A+=a;const Y={...S,delay:X+A,ref:f,immediate:j.immediate,reset:!1,...N};if(z=="enter"&&Z.und(Y.from)){const re=r?r():t,ne=Z.und(re.initial)||g?re.from:re.initial;Y.from=pr(ne,T.item,R)}const{onResolve:K}=Y;Y.onResolve=re=>{pr(K,re);const ne=m.current,fe=ne.find(de=>de.key===I);if(fe&&!(re.cancelled&&fe.phase!="update")&&fe.ctrl.idle){const de=ne.every(q=>q.ctrl.idle);if(fe.phase=="leave"){const q=pr(s,fe.item);if(q!==!1){const ee=q===!0?0:q;if(fe.expired=!0,!de&&ee>0){ee<=2147483647&&(fe.expirationId=setTimeout(w,ee));return}}}de&&ne.some(q=>q.expired)&&(C.current.delete(fe),l&&(P.current=!0),w())}};const Q=RA(T.ctrl,Y);z==="leave"&&l?C.current.set(T,{phase:z,springs:Q,payload:Y}):_.set(T,{phase:z,springs:Q,payload:Y})});const O=k.useContext(dm),$=OA(O),E=O!==$&&LL(O);tl(()=>{E&&Ae(p,T=>{T.ctrl.start({default:O})})},[O]),Ae(_,(T,R)=>{if(C.current.size){const I=p.findIndex(B=>B.key===R.key);p.splice(I,1)}}),tl(()=>{Ae(C.current.size?C.current:_,({phase:T,payload:R},I)=>{const{ctrl:B}=I;I.phase=T,d==null||d.add(B),E&&T=="enter"&&B.start({default:O}),R&&(BL(B,R.ref),(B.ref||d)&&!P.current?B.update(R):(B.start(R),P.current&&(P.current=!1)))})},i?void 0:n);const M=T=>k.createElement(k.Fragment,null,p.map((R,I)=>{const{springs:B}=_.get(R)||R.ctrl,j=T({...B},R.item,R,I);return j&&j.type?k.createElement(j.type,{...j.props,key:Z.str(R.key)||Z.num(R.key)?R.key:R.ctrl.id,ref:j.ref}):j}));return d?[M,d]:M}var eEe=1;function tEe(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):eEe++})}return Z.und(n)?e:Z.fun(n)?e.map(n):Jn(n)}var ZL=class extends IC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=mp(...t);const n=this._get(),r=kA(n);EC(this,r.create(n))}advance(e){const t=this._get(),n=this.get();qo(t,n)||(io(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&sM(this._active)&&dw(this)}_get(){const e=Z.arr(this.source)?this.source.map(hr):Jn(hr(this.source));return this.calc(...e)}_start(){this.idle&&!sM(this._active)&&(this.idle=!1,Ae(n1(this),e=>{e.done=!1}),Wi.skipAnimation?(_e.batchedUpdates(()=>this.advance()),dw(this)):Zb.start(this))}_attach(){let e=1;Ae(Jn(this.source),t=>{ni(t)&&Df(t,this),TA(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ae(Jn(this.source),e=>{ni(e)&&vp(e,this)}),this._active.clear(),dw(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Jn(this.source).reduce((t,n)=>Math.max(t,(TA(n)?n.priority:0)+1),0))}};function nEe(e){return e.idle!==!1}function sM(e){return!e.size||Array.from(e).every(nEe)}function dw(e){e.idle||(e.idle=!0,Ae(n1(e),t=>{t.done=!0}),yp(e,{type:"idle",parent:e}))}var IA=(e,...t)=>new ZL(e,t);Wi.assign({createStringInterpolator:ML,to:(e,t)=>new ZL(e,t)});var JL=/^--/;function rEe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!JL.test(e)&&!(th.hasOwnProperty(e)&&th[e])?t+"px":(""+t).trim()}var lM={};function iEe(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l,...u}=t,f=Object.values(u),c=Object.keys(u).map(d=>n||e.hasAttribute(d)?d:lM[d]||(lM[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in i)if(i.hasOwnProperty(d)){const h=rEe(d,i[d]);JL.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,f[h])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var th={animationIterationCount:!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,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},oEe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),aEe=["Webkit","Ms","Moz","O"];th=Object.keys(th).reduce((e,t)=>(aEe.forEach(n=>e[oEe(n,t)]=e[t]),e),th);var sEe=/^(matrix|translate|scale|rotate|skew)/,lEe=/^(translate)/,uEe=/^(rotate|skew)/,hw=(e,t)=>Z.num(e)&&e!==0?e+t:e,Ug=(e,t)=>Z.arr(e)?e.every(n=>Ug(n,t)):Z.num(e)?e===t:parseFloat(e)===t,cEe=class extends r1{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>hw(s,"px")).join(",")})`,Ug(a,0)])),Po(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(sEe.test(s)){if(delete r[s],Z.und(a))return;const l=lEe.test(s)?"px":uEe.test(s)?"deg":"";i.push(Jn(a)),o.push(s==="rotate3d"?([u,f,c,d])=>[`rotate3d(${u},${f},${c},${hw(d,l)})`,Ug(d,0)]:u=>[`${s}(${u.map(f=>hw(f,l)).join(",")})`,Ug(u,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new fEe(i,o)),super(r)}},fEe=class extends PL{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ae(this.inputs,(n,r)=>{const i=hr(n[0]),[o,a]=this.transforms[r](Z.arr(i)?i:n.map(hr));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Ae(this.inputs,t=>Ae(t,n=>ni(n)&&Df(n,this)))}observerRemoved(e){e==0&&Ae(this.inputs,t=>Ae(t,n=>ni(n)&&vp(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),yp(this,e)}},dEe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Wi.assign({batchedUpdates:_c.unstable_batchedUpdates,createStringInterpolator:ML,colors:oTe});var hEe=LTe(dEe,{applyAnimatedValues:iEe,createAnimatedStyle:e=>new cEe(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Xt=hEe.animated;function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&c.height>0,g=Math.round(n[0]),y=Math.round(n[1]);m&&(r==="top"?(g-=c.width/2,y-=c.height+14):r==="right"?(g+=14,y-=c.height/2):r==="bottom"?(g-=c.width/2,y+=14):r==="left"?(g-=c.width+14,y-=c.height/2):r==="center"&&(g-=c.width/2,y-=c.height/2),h={transform:uM(g,y)},d.current||(p=!0),d.current=[g,y]);var v=_a({to:h,config:l,immediate:!s||p}),b=Il({},pEe,o.tooltip.wrapper,{transform:(t=v.transform)!=null?t:uM(g,y),opacity:v.transform?1:0});return x.jsx(Xt.div,{ref:f,style:b,children:i})});eB.displayName="TooltipWrapper";var mEe=k.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return x.jsx("span",{style:Il({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),gEe=k.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,u=cn(),f=BC(i);if(typeof l=="function")t=l();else{var c=r;f!==void 0&&c!==void 0&&(c=f(c)),t=x.jsxs("div",{style:u.tooltip.basic,children:[a&&x.jsx(mEe,{color:s,style:u.tooltip.chip}),c!==void 0?x.jsxs("span",{children:[n,": ",x.jsx("strong",{children:""+c})]}):n]})}return x.jsx("div",{style:u.tooltip.container,children:t})}),yEe={width:"100%",borderCollapse:"collapse"},vEe=k.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=cn();return i.length?(t=typeof o=="function"?o():x.jsxs("div",{children:[n&&n,x.jsx("table",{style:Il({},yEe,a.tooltip.table),children:x.jsx("tbody",{children:i.map(function(s,l){return x.jsx("tr",{children:s.map(function(u,f){return x.jsx("td",{style:a.tooltip.tableCell,children:u},f)})},l)})})})]}),x.jsx("div",{style:a.tooltip.container,children:t})):null});vEe.displayName="TableTooltip";var DA=k.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=cn(),a=qi(),s=a.animate,l=a.config,u=k.useMemo(function(){return Il({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),f=_a({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return x.jsx(Xt.line,Il({},f,{fill:"none",style:u}))});DA.displayName="CrosshairLine";var bEe=k.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),x.jsxs(x.Fragment,{children:[t&&x.jsx(DA,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&x.jsx(DA,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});bEe.displayName="Crosshair";var tB=k.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),NA={isVisible:!1,position:[null,null],content:null,anchor:null},nB=k.createContext(NA),xEe=function(e){var t=k.useState(NA),n=t[0],r=t[1],i=k.useCallback(function(s,l,u){var f=l[0],c=l[1];u===void 0&&(u="top"),r({isVisible:!0,position:[f,c],anchor:u,content:s})},[r]),o=k.useCallback(function(s,l,u){u===void 0&&(u="top");var f=e.current.getBoundingClientRect(),c=e.current.offsetWidth,d=c===f.width?1:c/f.width,h="touches"in l?l.touches[0]:l,p=h.clientX,m=h.clientY,g=(p-f.left)*d,y=(m-f.top)*d;u!=="left"&&u!=="right"||(u=g1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&i3e(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++rbye(e[e.length-1]);var a1=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const w3e=mt(a1);var s1=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const S3e=mt(s1);var l1=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const A3e=mt(l1);var u1=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const _3e=mt(u1);var c1=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const O3e=mt(c1);var f1=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const k3e=mt(f1);var d1=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const C3e=mt(d1);var h1=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const $3e=mt(h1);var p1=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const P3e=mt(p1);var m1=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const T3e=mt(m1);var g1=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const E3e=mt(g1);var y1=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const M3e=mt(y1);var v1=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const j3e=mt(v1);var b1=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const R3e=mt(b1);var x1=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const I3e=mt(x1);var w1=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const D3e=mt(w1);var S1=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const N3e=mt(S1);var A1=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const L3e=mt(A1);var _1=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const B3e=mt(_1);var O1=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const F3e=mt(O1);var k1=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const U3e=mt(k1);var C1=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const z3e=mt(C1);var $1=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const W3e=mt($1);var P1=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const Y3e=mt(P1);var T1=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const V3e=mt(T1);var E1=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const H3e=mt(E1);var M1=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const G3e=mt(M1);function q3e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const K3e=Dk(ko(300,.5,0),ko(-240,.5,1));var X3e=Dk(ko(-100,.75,.35),ko(80,1.5,.8)),Q3e=Dk(ko(260,.75,.35),ko(80,1.5,.8)),sg=ko();function Z3e(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return sg.h=360*e-100,sg.s=1.5-1.5*t,sg.l=.8-.9*t,sg+""}var lg=Fc(),J3e=Math.PI/3,e5e=Math.PI*2/3;function t5e(e){var t;return e=(.5-e)*Math.PI,lg.r=255*(t=Math.sin(e))*t,lg.g=255*(t=Math.sin(e+J3e))*t,lg.b=255*(t=Math.sin(e+e5e))*t,lg+""}function n5e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function j1(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const r5e=j1($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var i5e=j1($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),o5e=j1($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a5e=j1($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),s5e=vk,l5e=_7,u5e=O7,c5e=Xp,f5e=em,d5e=bk,h5e=200;function p5e(e,t,n,r){var i=-1,o=l5e,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=c5e(t,f5e(n))),r?(o=u5e,a=!1):t.length>=h5e&&(o=d5e,a=!1,t=new s5e(t));e:for(;++i=0||(i[n]=e[n]);return i}var D5e=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],N5e=function(e,t){return Bi({},t,e)},L5e=function(e,t){var n=f3e({},e,t);return D5e.forEach(function(r){jd(n,r,N5e(sn(n,r),n.text))}),n},vB=k.createContext(),bB=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=k.useMemo(function(){var s=_f(o)?jC[o]:o;return{animate:r,config:s}},[r,o]);return x.jsx(vB.Provider,{value:a,children:t})},mM={animate:U.bool,motionConfig:U.oneOfType([U.oneOf(Object.keys(jC)),U.shape({mass:U.number,tension:U.number,friction:U.number,clamp:U.bool,precision:U.number,velocity:U.number,duration:U.number,easing:U.func})])};bB.propTypes={children:U.node.isRequired,animate:mM.animate,config:mM.motionConfig};var qi=function(){return k.useContext(vB)},B5e=function(e){var t=qi(),n=t.animate,r=t.config,i=function(s){var l=k.useRef();return k.useEffect(function(){l.current=s},[s]),l.current}(e),o=k.useMemo(function(){return J7(i,e)},[i,e]),a=_a({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return IA(a,o)},F5e={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ge(a1),PRGn:ge(s1),PiYG:ge(l1),PuOr:ge(u1),RdBu:ge(c1),RdGy:ge(f1),RdYlBu:ge(d1),RdYlGn:ge(h1),spectral:ge(p1),blues:ge(C1),greens:ge($1),greys:ge(P1),oranges:ge(M1),purples:ge(T1),reds:ge(E1),BuGn:ge(m1),BuPu:ge(g1),GnBu:ge(y1),OrRd:ge(v1),PuBuGn:ge(b1),PuBu:ge(x1),PuRd:ge(w1),RdPu:ge(S1),YlGnBu:ge(A1),YlGn:ge(_1),YlOrBr:ge(O1),YlOrRd:ge(k1)},U5e=Object.keys(F5e);ge(a1),ge(s1),ge(l1),ge(u1),ge(c1),ge(f1),ge(d1),ge(h1),ge(p1),ge(C1),ge($1),ge(P1),ge(M1),ge(T1),ge(E1),ge(m1),ge(g1),ge(y1),ge(v1),ge(b1),ge(x1),ge(w1),ge(S1),ge(A1),ge(_1),ge(O1),ge(k1);U.oneOfType([U.oneOf(U5e),U.func,U.arrayOf(U.string)]);var z5e={basis:LD,basisClosed:FD,basisOpen:zD,bundle:$se,cardinal:Pse,cardinalClosed:Tse,cardinalOpen:Ese,catmullRom:Mse,catmullRomClosed:jse,catmullRomOpen:Rse,linear:Jp,linearClosed:qD,monotoneX:QD,monotoneY:ZD,natural:e7,step:t7,stepAfter:r7,stepBefore:n7},LC=Object.keys(z5e);LC.filter(function(e){return e.endsWith("Closed")});yB(LC,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");yB(LC,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");U.shape({top:U.number,right:U.number,bottom:U.number,left:U.number}).isRequired;var W5e=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];U.oneOf(W5e);Za(DC);var Y5e={top:0,right:0,bottom:0,left:0},xB=function(e,t,n){return n===void 0&&(n={}),k.useMemo(function(){var r=Bi({},Y5e,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},wB=function(){var e=k.useRef(null),t=k.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=k.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return k.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},V5e=function(e){return k.useMemo(function(){return L5e(I5e,e)},[e])},H5e=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Pb(e.slice("5")):om(e):function(t){return""+t}},BC=function(e){return k.useMemo(function(){return H5e(e)},[e])},SB=k.createContext(),G5e={},AB=function(e){var t=e.theme,n=t===void 0?G5e:t,r=e.children,i=V5e(n);return x.jsx(SB.Provider,{value:i,children:r})};AB.propTypes={children:U.node.isRequired,theme:U.object};var cn=function(){return k.useContext(SB)},q5e=["outlineWidth","outlineColor","outlineOpacity"],FC=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,NC(e,q5e)},_B=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?k.cloneElement(r,{},t):t};_B.propTypes={children:U.node.isRequired,condition:U.bool.isRequired,wrapper:U.element.isRequired};var K5e={position:"relative"},UC=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,u=k.useRef(null);return x.jsx(AB,{theme:n,children:x.jsx(bB,{animate:s,config:l,children:x.jsx(_Ee,{container:u,children:x.jsxs(_B,{condition:i,wrapper:x.jsx("div",{style:K5e,ref:u}),children:[t,a&&x.jsx(AEe,{})]})})})})};UC.propTypes={children:U.element.isRequired,isInteractive:U.bool,renderWrapper:U.bool,theme:U.object,animate:U.bool,motionConfig:U.string};U.func.isRequired,U.bool,U.bool,U.object.isRequired,U.bool.isRequired,U.string;var zC=function(e){var t=e.children,n=wB(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return x.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};zC.propTypes={children:U.func.isRequired};var X5e=["id","colors"],OB=function(e){var t=e.id,n=e.colors,r=NC(e,X5e);return x.jsx("linearGradient",Bi({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return x.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};OB.propTypes={id:U.string.isRequired,colors:U.arrayOf(U.shape({offset:U.number.isRequired,color:U.string.isRequired,opacity:U.number})).isRequired,gradientTransform:U.string};var kB={linearGradient:OB},hd={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},LA=k.memo(function(e){var t=e.id,n=e.background,r=n===void 0?hd.background:n,i=e.color,o=i===void 0?hd.color:i,a=e.size,s=a===void 0?hd.size:a,l=e.padding,u=l===void 0?hd.padding:l,f=e.stagger,c=f===void 0?hd.stagger:f,d=s+u,h=s/2,p=u/2;return c===!0&&(d=2*s+2*u),x.jsxs("pattern",{id:t,width:d,height:d,patternUnits:"userSpaceOnUse",children:[x.jsx("rect",{width:d,height:d,fill:r}),x.jsx("circle",{cx:p+h,cy:p+h,r:h,fill:o}),c&&x.jsx("circle",{cx:1.5*u+s+h,cy:1.5*u+s+h,r:h,fill:o})]})});LA.displayName="PatternDots",LA.propTypes={id:U.string.isRequired,color:U.string.isRequired,background:U.string.isRequired,size:U.number.isRequired,padding:U.number.isRequired,stagger:U.bool.isRequired};var _p=function(e){return e*Math.PI/180},Q5e=function(e){return 180*e/Math.PI},Z5e=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},J5e=function(e){var t=e%360;return t<0&&(t+=360),t},e4e={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},pd={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},BA=k.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?pd.spacing:n,i=e.rotation,o=i===void 0?pd.rotation:i,a=e.background,s=a===void 0?pd.background:a,l=e.color,u=l===void 0?pd.color:l,f=e.lineWidth,c=f===void 0?pd.lineWidth:f,d=Math.round(o)%360,h=Math.abs(r);d>180?d-=360:d>90?d-=180:d<-180?d+=360:d<-90&&(d+=180);var p,m=h,g=h;return d===0?p=` + M 0 0 L `+m+` 0 + M 0 `+g+" L "+m+" "+g+` + `:d===90?p=` + M 0 0 L 0 `+g+` + M `+m+" 0 L "+m+" "+g+` + `:(m=Math.abs(h/Math.sin(_p(d))),g=h/Math.sin(_p(90-d)),p=d>0?` + M 0 `+-g+" L "+2*m+" "+g+` + M `+-m+" "+-g+" L "+m+" "+g+` + M `+-m+" 0 L "+m+" "+2*g+` + `:` + M `+-m+" "+g+" L "+m+" "+-g+` + M `+-m+" "+2*g+" L "+2*m+" "+-g+` + M 0 `+2*g+" L "+2*m+` 0 + `),x.jsxs("pattern",{id:t,width:m,height:g,patternUnits:"userSpaceOnUse",children:[x.jsx("rect",{width:m,height:g,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),x.jsx("path",{d:p,strokeWidth:c,stroke:u,strokeLinecap:"square"})]})});BA.displayName="PatternLines",BA.propTypes={id:U.string.isRequired,spacing:U.number.isRequired,rotation:U.number.isRequired,background:U.string.isRequired,color:U.string.isRequired,lineWidth:U.number.isRequired};var md={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},FA=k.memo(function(e){var t=e.id,n=e.color,r=n===void 0?md.color:n,i=e.background,o=i===void 0?md.background:i,a=e.size,s=a===void 0?md.size:a,l=e.padding,u=l===void 0?md.padding:l,f=e.stagger,c=f===void 0?md.stagger:f,d=s+u,h=u/2;return c===!0&&(d=2*s+2*u),x.jsxs("pattern",{id:t,width:d,height:d,patternUnits:"userSpaceOnUse",children:[x.jsx("rect",{width:d,height:d,fill:o}),x.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),c&&x.jsx("rect",{x:1.5*u+s,y:1.5*u+s,width:s,height:s,fill:r})]})});FA.displayName="PatternSquares",FA.propTypes={id:U.string.isRequired,color:U.string.isRequired,background:U.string.isRequired,size:U.number.isRequired,padding:U.number.isRequired,stagger:U.bool.isRequired};var CB={patternDots:LA,patternLines:BA,patternSquares:FA},t4e=["type"],UA=Bi({},kB,CB),$B=function(e){var t=e.defs;return!t||t.length<1?null:x.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=NC(n,t4e);return UA[r]?k.createElement(UA[r],Bi({key:i.id},i)):null})})};$B.propTypes={defs:U.arrayOf(U.shape({type:U.oneOf(Object.keys(UA)).isRequired,id:U.string.isRequired}))};var n4e=k.memo($B),PB=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,f=e.isFocusable,c=cn();return x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:f,tabIndex:f?0:void 0,children:[x.jsx(n4e,{defs:i}),x.jsx("rect",{width:t,height:n,fill:c.background}),x.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:o})]})};PB.propTypes={width:U.number.isRequired,height:U.number.isRequired,margin:U.shape({top:U.number.isRequired,left:U.number.isRequired}).isRequired,defs:U.array,children:U.oneOfType([U.arrayOf(U.node),U.node]).isRequired,role:U.string,isFocusable:U.bool,ariaLabel:U.string,ariaLabelledBy:U.string,ariaDescribedBy:U.string};var TB=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return x.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};TB.propTypes={size:U.number.isRequired,color:U.string.isRequired,borderWidth:U.number.isRequired,borderColor:U.string.isRequired};var r4e=k.memo(TB),EB=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?r4e:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,f=e.label,c=e.labelTextAnchor,d=c===void 0?"middle":c,h=e.labelYOffset,p=h===void 0?-12:h,m=cn(),g=qi(),y=g.animate,v=g.config,b=_a({transform:"translate("+t+", "+n+")",config:v,immediate:!y});return x.jsxs(Xt.g,{transform:b.transform,style:{pointerEvents:"none"},children:[k.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:u}),f&&x.jsx("text",{textAnchor:d,y:p,style:FC(m.dots.text),children:f})]})};EB.propTypes={x:U.number.isRequired,y:U.number.isRequired,datum:U.object.isRequired,size:U.number.isRequired,color:U.string.isRequired,borderWidth:U.number.isRequired,borderColor:U.string.isRequired,symbol:U.oneOfType([U.func,U.object]),label:U.oneOfType([U.string,U.number]),labelTextAnchor:U.oneOf(["start","middle","end"]),labelYOffset:U.number};k.memo(EB);var MB=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,f=u===void 0?"top-right":u,c=e.legendOffsetX,d=c===void 0?14:c,h=e.legendOffsetY,p=h===void 0?14:h,m=e.legendOrientation,g=m===void 0?"horizontal":m,y=cn(),v=0,b=0,A=0,w=0;r==="y"?(A=i(o),b=t):(v=i(o),w=n);var S=null;if(l){var _=function(C){var P=C.axis,O=C.width,$=C.height,E=C.position,M=C.offsetX,T=C.offsetY,R=C.orientation,I=0,B=0,j=R==="vertical"?-90:0,N="start";if(P==="x")switch(E){case"top-left":I=-M,B=T,N="end";break;case"top":B=-T,N=R==="horizontal"?"middle":"start";break;case"top-right":I=M,B=T,N=R==="horizontal"?"start":"end";break;case"right":I=M,B=$/2,N=R==="horizontal"?"start":"middle";break;case"bottom-right":I=M,B=$-T,N="start";break;case"bottom":B=$+T,N=R==="horizontal"?"middle":"end";break;case"bottom-left":B=$-T,I=-M,N=R==="horizontal"?"end":"start";break;case"left":I=-M,B=$/2,N=R==="horizontal"?"end":"middle"}else switch(E){case"top-left":I=M,B=-T,N="start";break;case"top":I=O/2,B=-T,N=R==="horizontal"?"middle":"start";break;case"top-right":I=O-M,B=-T,N=R==="horizontal"?"end":"start";break;case"right":I=O+M,N=R==="horizontal"?"start":"middle";break;case"bottom-right":I=O-M,B=T,N="end";break;case"bottom":I=O/2,B=T,N=R==="horizontal"?"middle":"end";break;case"bottom-left":I=M,B=T,N=R==="horizontal"?"start":"end";break;case"left":I=-M,N=R==="horizontal"?"end":"middle"}return{x:I,y:B,rotation:j,textAnchor:N}}({axis:r,width:t,height:n,position:f,offsetX:d,offsetY:p,orientation:g});S=x.jsx("text",{transform:"translate("+_.x+", "+_.y+") rotate("+_.rotation+")",textAnchor:_.textAnchor,dominantBaseline:"central",style:s,children:l})}return x.jsxs("g",{transform:"translate("+v+", "+A+")",children:[x.jsx("line",{x1:0,x2:b,y1:0,y2:w,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:a}),S]})};MB.propTypes={width:U.number.isRequired,height:U.number.isRequired,axis:U.oneOf(["x","y"]).isRequired,scale:U.func.isRequired,value:U.oneOfType([U.number,U.string,U.instanceOf(Date)]).isRequired,lineStyle:U.object,textStyle:U.object,legend:U.string,legendPosition:U.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:U.number.isRequired,legendOffsetY:U.number.isRequired,legendOrientation:U.oneOf(["horizontal","vertical"]).isRequired};var i4e=k.memo(MB),jB=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map(function(a,s){return x.jsx(i4e,Bi({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null};jB.propTypes={width:U.number.isRequired,height:U.number.isRequired,xScale:U.func.isRequired,yScale:U.func.isRequired,markers:U.arrayOf(U.shape({axis:U.oneOf(["x","y"]).isRequired,value:U.oneOfType([U.number,U.string,U.instanceOf(Date)]).isRequired,lineStyle:U.object,textStyle:U.object}))};var o4e=k.memo(jB),RB=function(e){return Me(e)?e:function(t){return sn(t,e)}},pw=function(e){return k.useMemo(function(){return RB(e)},[e])},a4e=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},mw=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*s,(o-a.top)*s]},s4e=Object.keys(kB),l4e=Object.keys(CB),u4e=function(e,t,n){if(e==="*")return!0;if(Me(e))return e(t);if(zb(e)){var r=n?sn(t,n):t;return Ib(R5e(r,Object.keys(e)),e)}return!1},c4e=function(e,t,n,r){var i=r===void 0?{}:r,o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,l=i.targetKey,u=l===void 0?"fill":l,f=[],c={};return e.length&&t.length&&(f=[].concat(e),t.forEach(function(d){for(var h=function(){var m=n[p],g=m.id,y=m.match;if(u4e(y,d,o)){var v=e.find(function(O){return O.id===g});if(v){if(l4e.includes(v.type))if(v.background==="inherit"||v.color==="inherit"){var b=sn(d,s),A=v.background,w=v.color,S=g;v.background==="inherit"&&(S=S+".bg."+b,A=b),v.color==="inherit"&&(S=S+".fg."+b,w=b),jd(d,u,"url(#"+S+")"),c[S]||(f.push(Bi({},v,{id:S,background:A,color:w})),c[S]=1)}else jd(d,u,"url(#"+g+")");else if(s4e.includes(v.type))if(v.colors.map(function(O){return O.color}).includes("inherit")){var _=sn(d,s),C=g,P=Bi({},v,{colors:v.colors.map(function(O,$){return O.color!=="inherit"?O:(C=C+"."+$+"."+_,Bi({},O,{color:O.color==="inherit"?_:O.color}))})});P.id=C,jd(d,u,"url(#"+C+")"),c[C]||(f.push(P),c[C]=1)}else jd(d,u,"url(#"+g+")")}return"break"}},p=0;p0?(v=h.align[y?"left":"right"],b=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(v=h.align[y?"right":"left"],b=h.baseline.center)):(t=function(A){var w;return{x:0,y:(w=p(A))!=null?w:0}},m.lineX=a*(i==="after"?1:-1),g.textX=(a+s)*(i==="after"?1:-1),v=i==="after"?h.align.left:h.align.right),{ticks:d.map(function(A){var w=typeof A=="string"?function(S){var _=String(S).length;return u&&u>0&&_>u?""+String(S).slice(0,u).concat("..."):""+S}(A):A;return ui({key:A instanceof Date?""+A.valueOf():""+A,value:w},t(A),m,g)}),textAlign:v,textBaseline:b}},BB=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Pb(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return om(e)},zA=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||NB(i,a)),l="bandwidth"in i?IB(i):i,u=o==="x"?s.map(function(f){var c,d;return{key:f instanceof Date?""+f.valueOf():""+f,x1:(c=l(f))!=null?c:0,x2:(d=l(f))!=null?d:0,y1:0,y2:r}}):s.map(function(f){var c,d;return{key:f instanceof Date?""+f.valueOf():""+f,x1:0,x2:n,y1:(c=l(f))!=null?c:0,y2:(d=l(f))!=null?d:0}});return u},_4e=k.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,f=cn(),c=f.axis.ticks.line,d=f.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,p=k.useMemo(function(){var m={opacity:u.opacity};return a?{style:ui({},m,{cursor:"pointer"}),onClick:function(g){return a(g,h)}}:{style:m}},[u.opacity,a,h]);return x.jsxs(Xt.g,ui({transform:u.transform},p,{children:[x.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:c}),d.outlineWidth>0&&x.jsx(Xt.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:d,strokeWidth:2*d.outlineWidth,stroke:d.outlineColor,strokeLinejoin:"round",children:""+h}),x.jsx(Xt.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:FC(d),children:""+h})]}))}),O4e=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,u=e.tickValues,f=e.tickSize,c=f===void 0?5:f,d=e.tickPadding,h=d===void 0?5:d,p=e.tickRotation,m=p===void 0?0:p,g=e.format,y=e.renderTick,v=y===void 0?_4e:y,b=e.truncateTickAt,A=e.legend,w=e.legendPosition,S=w===void 0?"end":w,_=e.legendOffset,C=_===void 0?0:_,P=e.onClick,O=e.ariaHidden,$=cn(),E=$.axis.legend.text,M=k.useMemo(function(){return BB(g,n)},[g,n]),T=LB({axis:t,scale:n,ticksPosition:l,tickValues:u,tickSize:c,tickPadding:h,tickRotation:m,truncateTickAt:b}),R=T.ticks,I=T.textAlign,B=T.textBaseline,j=null;if(A!==void 0){var N,z=0,X=0,Y=0;t==="y"?(Y=-90,z=C,S==="start"?(N="start",X=s):S==="middle"?(N="middle",X=s/2):S==="end"&&(N="end")):(X=C,S==="start"?N="start":S==="middle"?(N="middle",z=s/2):S==="end"&&(N="end",z=s)),j=x.jsxs(x.Fragment,{children:[E.outlineWidth>0&&x.jsx("text",{transform:"translate("+z+", "+X+") rotate("+Y+")",textAnchor:N,style:ui({dominantBaseline:"central"},E),strokeWidth:2*E.outlineWidth,stroke:E.outlineColor,strokeLinejoin:"round",children:A}),x.jsx("text",{transform:"translate("+z+", "+X+") rotate("+Y+")",textAnchor:N,style:ui({dominantBaseline:"central"},E),children:A})]})}var K=qi(),Q=K.animate,re=K.config,ne=_a({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:re,immediate:!Q}),fe=k.useCallback(function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},[m]),de=k.useCallback(function(ee){return{opacity:0,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},[m]),q=o1(R,{keys:function(ee){return ee.key},initial:fe,from:de,enter:fe,update:fe,leave:{opacity:0},config:re,immediate:!Q});return x.jsxs(Xt.g,{transform:ne.transform,"aria-hidden":O,children:[q(function(ee,ie,W,ve){return k.createElement(v,ui({tickIndex:ve,format:M,rotate:m,textBaseline:B,textAnchor:I,truncateTickAt:b,animatedProps:ee},ie,P?{onClick:P}:{}))}),x.jsx(Xt.line,{style:$.axis.domain.line,x1:0,x2:ne.lineX2,y1:0,y2:ne.lineY2}),j]})},k4e=k.memo(O4e),FB=["top","right","bottom","left"],C4e=k.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return x.jsx(x.Fragment,{children:FB.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return x.jsx(k4e,ui({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),$4e=k.memo(function(e){var t=e.animatedProps,n=cn();return x.jsx(Xt.line,ui({},t,n.grid.line))}),yM=k.memo(function(e){var t=e.lines,n=qi(),r=n.animate,i=n.config,o=o1(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return x.jsx("g",{children:o(function(a,s){return k.createElement($4e,ui({},s,{key:s.key,animatedProps:a}))})})}),P4e=k.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=k.useMemo(function(){return!!r&&zA({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=k.useMemo(function(){return!!i&&zA({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return x.jsxs(x.Fragment,{children:[s&&x.jsx(yM,{lines:s}),l&&x.jsx(yM,{lines:l})]})}),T4e=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,l=s===void 0?0:s,u=t.length,f=t.ticksPosition,c=t.tickValues,d=t.tickSize,h=d===void 0?5:d,p=t.tickPadding,m=p===void 0?5:p,g=t.tickRotation,y=g===void 0?0:g,v=t.format,b=t.legend,A=t.legendPosition,w=A===void 0?"end":A,S=t.legendOffset,_=S===void 0?0:S,C=t.theme,P=LB({axis:r,scale:i,ticksPosition:f,tickValues:c,tickSize:h,tickPadding:m,tickRotation:y,engine:"canvas"}),O=P.ticks,$=P.textAlign,E=P.textBaseline;e.save(),e.translate(a,l),e.textAlign=$,e.textBaseline=E;var M=C.axis.ticks.text;e.font=(M.fontWeight?M.fontWeight+" ":"")+M.fontSize+"px "+M.fontFamily,((n=C.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(C.axis.domain.line.strokeWidth),e.lineCap="square",C.axis.domain.line.stroke&&(e.strokeStyle=C.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var T=typeof v=="function"?v:function(N){return""+N};if(O.forEach(function(N){var z;((z=C.axis.ticks.line.strokeWidth)!=null?z:0)>0&&(e.lineWidth=Number(C.axis.ticks.line.strokeWidth),e.lineCap="square",C.axis.ticks.line.stroke&&(e.strokeStyle=C.axis.ticks.line.stroke),e.beginPath(),e.moveTo(N.x,N.y),e.lineTo(N.x+N.lineX,N.y+N.lineY),e.stroke());var X=T(N.value);e.save(),e.translate(N.x+N.textX,N.y+N.textY),e.rotate(_p(y)),M.outlineWidth>0&&(e.strokeStyle=M.outlineColor,e.lineWidth=2*M.outlineWidth,e.lineJoin="round",e.strokeText(""+X,0,0)),C.axis.ticks.text.fill&&(e.fillStyle=M.fill),e.fillText(""+X,0,0),e.restore()}),b!==void 0){var R=0,I=0,B=0,j="center";r==="y"?(B=-90,R=_,w==="start"?(j="start",I=u):w==="middle"?(j="center",I=u/2):w==="end"&&(j="end")):(I=_,w==="start"?j="start":w==="middle"?(j="center",R=u/2):w==="end"&&(j="end",R=u)),e.translate(R,I),e.rotate(_p(B)),e.font=(C.axis.legend.text.fontWeight?C.axis.legend.text.fontWeight+" ":"")+C.axis.legend.text.fontSize+"px "+C.axis.legend.text.fontFamily,C.axis.legend.text.fill&&(e.fillStyle=C.axis.legend.text.fill),e.textAlign=j,e.textBaseline="middle",e.fillText(b,0,0)}e.restore()},E4e=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,u=t.left,f=t.theme,c={top:a,right:s,bottom:l,left:u};FB.forEach(function(d){var h=c[d];if(!h)return null;var p=d==="top"||d==="bottom",m=d==="top"||d==="left"?"before":"after",g=p?n:r,y=BB(h.format,g);T4e(e,ui({},h,{axis:p?"x":"y",x:d==="right"?i:0,y:d==="bottom"?o:0,scale:g,format:y,length:p?i:o,ticksPosition:m,theme:f}))})},vM=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;zA({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},M4e=Sb;function j4e(e,t){var n=[];return M4e(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var R4e=j4e,I4e=d7,D4e=R4e,N4e=Sa,L4e=Dn;function B4e(e,t){var n=L4e(e)?I4e:D4e;return n(e,N4e(t))}var F4e=B4e;const U4e=Ne(F4e);function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t180?(g-=l,y-=l):y+=l,{points:[[c,d],[t,n],[y,n]],text:[g,n-f],angle:h+90}},zB=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return k.useMemo(function(){return Y4e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},H4e=function(e){var t=e.annotations;return k.useMemo(function(){return t.map(function(n){return To({},n,{computed:UB(To({},n))})})},[t])},G4e=function(e){return k.useMemo(function(){return UB(e)},[e])},q4e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=cn(),a=qi(),s=a.animate,l=a.config,u=_a({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?k.createElement(i,{x:n,y:r,datum:t}):x.jsxs(x.Fragment,{children:[o.annotations.text.outlineWidth>0&&x.jsx(Xt.text,{x:u.x,y:u.y,style:To({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),x.jsx(Xt.text,{x:u.x,y:u.y,style:mL(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},bM=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=cn(),o=k.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(u,f){return u+" L"+f[0]+","+f[1]},"M"+l[0]+","+l[1])},[t]),a=B5e(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=To({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),x.jsx(Xt.path,{fill:"none",d:a,style:s})},K4e=function(e){var t=e.x,n=e.y,r=e.size,i=cn(),o=qi(),a=o.animate,s=o.config,l=_a({x:t,y:n,radius:r/2,config:s,immediate:!a});return x.jsxs(x.Fragment,{children:[i.annotations.outline.outlineWidth>0&&x.jsx(Xt.circle,{cx:l.x,cy:l.y,r:l.radius,style:To({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),x.jsx(Xt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},X4e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?WA.dotSize:r,o=cn(),a=qi(),s=a.animate,l=a.config,u=_a({x:t,y:n,radius:i/2,config:l,immediate:!s});return x.jsxs(x.Fragment,{children:[o.annotations.outline.outlineWidth>0&&x.jsx(Xt.circle,{cx:u.x,cy:u.y,r:u.radius,style:To({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),x.jsx(Xt.circle,{cx:u.x,cy:u.y,r:u.radius,style:o.annotations.symbol})]})},Q4e=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=cn(),l=qi(),u=l.animate,f=l.config,c=_a({x:t-r/2,y:n-i/2,width:r,height:i,config:f,immediate:!u});return x.jsxs(x.Fragment,{children:[s.annotations.outline.outlineWidth>0&&x.jsx(Xt.rect,{x:c.x,y:c.y,rx:a,ry:a,width:c.width,height:c.height,style:To({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),x.jsx(Xt.rect,{x:c.x,y:c.y,rx:a,ry:a,width:c.width,height:c.height,style:s.annotations.outline})]})},Z4e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=G4e(e);if(!z4e(i))throw new Error("note should be a valid react element");return x.jsxs(x.Fragment,{children:[x.jsx(bM,{points:o.points,isOutline:!0}),Op(e)&&x.jsx(K4e,{x:n,y:r,size:e.size}),YA(e)&&x.jsx(X4e,{x:n,y:r,size:e.size}),kp(e)&&x.jsx(Q4e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),x.jsx(bM,{points:o.points}),x.jsx(q4e,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},xM=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},J4e=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!W4e(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),xM(e,i.computed.points),e.stroke(),e.lineCap="butt"),Op(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),YA(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),kp(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),xM(e,i.computed.points),e.stroke(),Op(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),YA(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),kp(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var WB={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:uB,accent:cB,dark2:fB,paired:dB,pastel1:hB,pastel2:pB,set1:mB,set2:gB,set3:DC,tableau10:x3e},tMe=Object.keys(WB),YB={brown_blueGreen:a1,purpleRed_green:s1,pink_yellowGreen:l1,purple_orange:u1,red_blue:c1,red_grey:f1,red_yellow_blue:d1,red_yellow_green:h1,spectral:p1},nMe=Object.keys(YB),rMe={brown_blueGreen:w3e,purpleRed_green:S3e,pink_yellowGreen:A3e,purple_orange:_3e,red_blue:O3e,red_grey:k3e,red_yellow_blue:C3e,red_yellow_green:$3e,spectral:P3e},VB={blues:C1,greens:$1,greys:P1,oranges:M1,purples:T1,reds:E1,blue_green:m1,blue_purple:g1,green_blue:y1,orange_red:v1,purple_blue_green:b1,purple_blue:x1,purple_red:w1,red_purple:S1,yellow_green_blue:A1,yellow_green:_1,yellow_orange_brown:O1,yellow_orange_red:k1},iMe=Object.keys(VB),oMe={blues:z3e,greens:W3e,greys:Y3e,oranges:G3e,purples:V3e,reds:H3e,turbo:n5e,viridis:r5e,inferno:o5e,magma:i5e,plasma:a5e,cividis:q3e,warm:X3e,cool:Q3e,cubehelixDefault:K3e,blue_green:T3e,blue_purple:E3e,green_blue:M3e,orange_red:j3e,purple_blue_green:R3e,purple_blue:I3e,purple_red:D3e,red_purple:N3e,yellow_green_blue:L3e,yellow_green:B3e,yellow_orange_brown:F3e,yellow_orange_red:U3e},gw=I0({},WB,YB,VB),aMe=function(e){return tMe.includes(e)},sMe=function(e){return nMe.includes(e)},lMe=function(e){return iMe.includes(e)},uMe={rainbow:Z3e,sinebow:t5e};I0({},rMe,oMe,uMe);var cMe=function(e,t){if(typeof e=="function")return e;if(zb(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=sn(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return sn(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,u=l[0],f=l[1];if(u==="brighter")o.push(function(c){return c.brighter(f)});else if(u==="darker")o.push(function(c){return c.darker(f)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(c){return c.opacity=f,c})}},s=eMe(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce(function(u,f){return f(u)},Fc(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},SM=function(e,t){return k.useMemo(function(){return cMe(e,t)},[e,t])};U.oneOfType([U.string,U.func,U.shape({theme:U.string.isRequired}),U.shape({from:U.string.isRequired,modifiers:U.arrayOf(U.array)})]);var fMe=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(c){return sn(c,t)};if(Array.isArray(e)){var r=Za(e),i=function(c){return r(n(c))};return i.scale=r,i}if(zb(e)){if(function(c){return c.datum!==void 0}(e))return function(c){return sn(c,e.datum)};if(function(c){return c.scheme!==void 0}(e)){if(aMe(e.scheme)){var o=Za(gw[e.scheme]),a=function(c){return o(n(c))};return a.scale=o,a}if(sMe(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=Za(gw[e.scheme][e.size||11]),l=function(c){return s(n(c))};return l.scale=s,l}if(lMe(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=Za(gw[e.scheme][e.size||9]),f=function(c){return u(n(c))};return f.scale=u,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},dMe=function(e,t){return k.useMemo(function(){return fMe(e,t)},[e,t])},hMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return x.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},pMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return x.jsx("g",{transform:"translate("+t+","+n+")",children:x.jsx("path",{d:` + M`+r/2+` 0 + L`+.8*r+" "+r/2+` + L`+r/2+" "+r+` + L`+.2*r+" "+r/2+` + L`+r/2+` 0 + `,fill:i,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})},mMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return x.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,width:r,height:r,style:{pointerEvents:"none"}})},gMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return x.jsx("g",{transform:"translate("+t+","+n+")",children:x.jsx("path",{d:` + M`+r/2+` 0 + L`+r+" "+r+` + L0 `+r+` + L`+r/2+` 0 + `,fill:i,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var AM,_Me=function(e){var t=e.bars,n=e.annotations,r=zB({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return x.jsx(x.Fragment,{children:r.map(function(i,o){return x.jsx(Z4e,nt({},i),o)})})},OMe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return x.jsx(x.Fragment,{children:r.map(function(o,a){var s,l=o[0],u=o[1];return x.jsx(wMe,nt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:u,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},kMe=["data"],CMe=function(e){var t,n=e.bar,r=n.data,i=Nf(n,kMe),o=e.style,a=o.borderColor,s=o.color,l=o.height,u=o.labelColor,f=o.labelOpacity,c=o.labelX,d=o.labelY,h=o.transform,p=o.width,m=e.borderRadius,g=e.borderWidth,y=e.label,v=e.shouldRenderLabel,b=e.isInteractive,A=e.onClick,w=e.onMouseEnter,S=e.onMouseLeave,_=e.tooltip,C=e.isFocusable,P=e.ariaLabel,O=e.ariaLabelledBy,$=e.ariaDescribedBy,E=cn(),M=rB(),T=M.showTooltipFromEvent,R=M.showTooltipAt,I=M.hideTooltip,B=k.useMemo(function(){return function(){return k.createElement(_,nt({},i,r))}},[_,i,r]),j=k.useCallback(function(Q){A==null||A(nt({color:i.color},r),Q)},[i,r,A]),N=k.useCallback(function(Q){return T(B(),Q)},[T,B]),z=k.useCallback(function(Q){w==null||w(r,Q),T(B(),Q)},[r,w,T,B]),X=k.useCallback(function(Q){S==null||S(r,Q),I()},[r,I,S]),Y=k.useCallback(function(){R(B(),[i.absX+i.width/2,i.absY])},[R,B,i]),K=k.useCallback(function(){I()},[I]);return x.jsxs(Xt.g,{transform:h,children:[x.jsx(Xt.rect,{width:IA(p,function(Q){return Math.max(Q,0)}),height:IA(l,function(Q){return Math.max(Q,0)}),rx:m,ry:m,fill:(t=r.fill)!=null?t:s,strokeWidth:g,stroke:a,focusable:C,tabIndex:C?0:void 0,"aria-label":P?P(r):void 0,"aria-labelledby":O?O(r):void 0,"aria-describedby":$?$(r):void 0,onMouseEnter:b?z:void 0,onMouseMove:b?N:void 0,onMouseLeave:b?X:void 0,onClick:b?j:void 0,onFocus:b&&C?Y:void 0,onBlur:b&&C?K:void 0}),v&&x.jsx(Xt.text,{x:c,y:d,textAnchor:"middle",dominantBaseline:"central",fillOpacity:f,style:nt({},E.labels.text,{pointerEvents:"none",fill:u}),children:y})]})},$Me=["color","label"],PMe=function(e){var t=e.color,n=e.label,r=Nf(e,$Me);return x.jsx(gEe,{id:n,value:r.formattedValue,enableChip:!0,color:t})},ht={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:PMe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},Ot=nt({},ht,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:CMe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Pn=nt({},ht,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(AM=window.devicePixelRatio)!=null?AM:1}),qB=function(e,t,n,r,i,o){return WC(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},KB=function(e,t){return e.map(function(n){return nt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},R1=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},I1=function(e){return[e,Number(e)]},TMe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],VC=function(e,t){return e>t},XB=function(e,t){return e0?r==="vertical"?MMe.apply(void 0,N):jMe.apply(void 0,N):[]}},IMe=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],DMe=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},NMe=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,f=e.yScale,c=e.margin,d=[];return l.forEach(function(h){return u.domain().forEach(function(p,m){var g,y,v=h[m],b=(g=u(o(v.data)))!=null?g:0,A=((y=function(O){return f(O[n?0:1])}(v))!=null?y:0)+.5*s,w=function(O,$){var E;return((E=f(O[n?1:0]))!=null?E:0)-$}(v,A)-s,S=I1(v.data[h.key]),_=S[0],C=S[1],P={id:h.key,value:_===null?_:C,formattedValue:r(C),hidden:!1,index:m,indexValue:p,data:R1(v.data)};d.push({key:h.key+"."+p,index:d.length,data:P,x:b,y:A,absX:c.left+b,absY:c.top+A,width:t,height:w,color:i(P),label:a(P)})})}),d},LMe=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,f=e.yScale,c=e.margin,d=[];return l.forEach(function(h){return f.domain().forEach(function(p,m){var g,y,v=h[m],b=(g=f(o(v.data)))!=null?g:0,A=((y=function(O){return u(O[n?1:0])}(v))!=null?y:0)+.5*s,w=function(O,$){var E;return((E=u(O[n?0:1]))!=null?E:0)-$}(v,A)-s,S=I1(v.data[h.key]),_=S[0],C=S[1],P={id:h.key,value:_===null?_:C,formattedValue:r(C),hidden:!1,index:m,indexValue:p,data:R1(v.data)};d.push({key:h.key+"."+p,index:d.length,data:P,x:A,y:b,absX:c.left+A,absY:c.top+b,width:w,height:t,color:i(P),label:a(P)})})}),d},BMe=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,u=e.padding,f=u===void 0?0:u,c=e.valueScale,d=e.indexScale,h=e.hiddenIds,p=h===void 0?[]:h,m=Nf(e,IMe),g=m.keys.filter(function(j){return!p.includes(j)}),y=i7().keys(g).offset(Lse)(KB(n,g)),v=r==="vertical"?["y","x",s]:["x","y",l],b=v[0],A=v[1],w=v[2],S=qB(n,m.getIndex,f,d,w,A),_=nt({max:o,min:i,reverse:a},c),C=(t=DMe(y),c.type==="log"?t.filter(function(j){return j!==0}):t),P=Math.min.apply(Math,C),O=Math.max.apply(Math,C),$=WC(_,{all:C,min:P,max:O},b==="x"?s:l,b),E=r==="vertical"?[S,$]:[$,S],M=E[0],T=E[1],R=m.innerPadding>0?m.innerPadding:0,I=S.bandwidth(),B=[nt({},m,{innerPadding:R,stackedData:y,xScale:M,yScale:T}),I,_.reverse];return{xScale:M,yScale:T,bars:I>0?r==="vertical"?NMe.apply(void 0,B):LMe.apply(void 0,B):[]}},FMe=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=RB(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(u,f,c){var d=Yy(u.map(function(h){var p,m;return{id:(p=h.data.indexValue)!=null?p:"",label:c(h.data),hidden:h.data.hidden,color:(m=h.color)!=null?m:"#000"}}),function(h){return h.id});return f==="horizontal"&&d.reverse(),d}(t,o,l):function(u,f,c,d,h,p){var m=Yy(u.map(function(g){var y;return{id:g.data.id,label:p(g.data),hidden:g.data.hidden,color:(y=g.color)!=null?y:"#000"}}),function(g){return g.id});return(f==="vertical"&&d==="stacked"&&c==="column"&&h!==!0||f==="horizontal"&&d==="stacked"&&h===!0)&&m.reverse(),m}(t,o,n,i,s,l)},_M=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},UMe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},zMe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},WMe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},ZB=function(e){var t=e.indexBy,n=t===void 0?ht.indexBy:t,r=e.keys,i=r===void 0?ht.keys:r,o=e.label,a=o===void 0?ht.label:o,s=e.tooltipLabel,l=s===void 0?ht.tooltipLabel:s,u=e.valueFormat,f=e.colors,c=f===void 0?ht.colors:f,d=e.colorBy,h=d===void 0?ht.colorBy:d,p=e.borderColor,m=p===void 0?ht.borderColor:p,g=e.labelTextColor,y=g===void 0?ht.labelTextColor:g,v=e.groupMode,b=v===void 0?ht.groupMode:v,A=e.layout,w=A===void 0?ht.layout:A,S=e.reverse,_=S===void 0?ht.reverse:S,C=e.data,P=e.minValue,O=P===void 0?ht.minValue:P,$=e.maxValue,E=$===void 0?ht.maxValue:$,M=e.margin,T=e.width,R=e.height,I=e.padding,B=I===void 0?ht.padding:I,j=e.innerPadding,N=j===void 0?ht.innerPadding:j,z=e.valueScale,X=z===void 0?ht.valueScale:z,Y=e.indexScale,K=Y===void 0?ht.indexScale:Y,Q=e.initialHiddenIds,re=Q===void 0?ht.initialHiddenIds:Q,ne=e.enableLabel,fe=ne===void 0?ht.enableLabel:ne,de=e.labelSkipWidth,q=de===void 0?ht.labelSkipWidth:de,ee=e.labelSkipHeight,ie=ee===void 0?ht.labelSkipHeight:ee,W=e.legends,ve=W===void 0?ht.legends:W,xe=e.legendLabel,Le=e.totalsOffset,qe=Le===void 0?ht.totalsOffset:Le,We=k.useState(re??[]),wt=We[0],Lt=We[1],Et=k.useCallback(function(Be){Lt(function(Ue){return Ue.indexOf(Be)>-1?Ue.filter(function(ct){return ct!==Be}):[].concat(Ue,[Be])})},[]),St=pw(n),at=pw(a),he=pw(l),Nn=BC(u),tn=cn(),ir=dMe(c,h),Ki=SM(m,tn),Ro=SM(y,tn),Oa=(b==="grouped"?RMe:BMe)({layout:w,reverse:_,data:C,getIndex:St,keys:i,minValue:O,maxValue:E,width:T,height:R,getColor:ir,padding:B,innerPadding:N,valueScale:X,indexScale:K,hiddenIds:wt,formatValue:Nn,getTooltipLabel:he,margin:M}),or=Oa.bars,Cn=Oa.xScale,Ln=Oa.yScale,Io=k.useMemo(function(){return or.filter(function(Be){return Be.data.value!==null}).map(function(Be,Ue){return nt({},Be,{index:Ue})})},[or]),$n=k.useCallback(function(Be){var Ue=Be.width,ct=Be.height;return!!fe&&!(q>0&&Ue0&&ct0&&(we.strokeStyle=Bf,we.lineWidth=Or),we.beginPath(),hm>0){var Yr=Math.min(hm,tt);we.moveTo(Wt+Yr,Qt),we.lineTo(Wt+vn-Yr,Qt),we.quadraticCurveTo(Wt+vn,Qt,Wt+vn,Qt+Yr),we.lineTo(Wt+vn,Qt+tt-Yr),we.quadraticCurveTo(Wt+vn,Qt+tt,Wt+vn-Yr,Qt+tt),we.lineTo(Wt+Yr,Qt+tt),we.quadraticCurveTo(Wt,Qt+tt,Wt,Qt+tt-Yr),we.lineTo(Wt,Qt+Yr),we.quadraticCurveTo(Wt,Qt,Wt+Yr,Qt),we.closePath()}else we.rect(Wt,Qt,vn,tt);we.fill(),Or>0&&we.stroke(),Ms&&(we.textBaseline="middle",we.textAlign="center",we.fillStyle=me,we.fillText(L1,Wt+vn/2,Qt+tt/2))}:T,I=e.enableLabel,B=I===void 0?Pn.enableLabel:I,j=e.label,N=e.labelSkipWidth,z=N===void 0?Pn.labelSkipWidth:N,X=e.labelSkipHeight,Y=X===void 0?Pn.labelSkipHeight:X,K=e.labelTextColor,Q=e.colorBy,re=e.colors,ne=e.borderRadius,fe=ne===void 0?Pn.borderRadius:ne,de=e.borderWidth,q=de===void 0?Pn.borderWidth:de,ee=e.borderColor,ie=e.annotations,W=ie===void 0?Pn.annotations:ie,ve=e.legendLabel,xe=e.tooltipLabel,Le=e.valueFormat,qe=e.isInteractive,We=qe===void 0?Pn.isInteractive:qe,wt=e.tooltip,Lt=wt===void 0?Pn.tooltip:wt,Et=e.onClick,St=e.onMouseEnter,at=e.onMouseLeave,he=e.legends,Nn=e.pixelRatio,tn=Nn===void 0?Pn.pixelRatio:Nn,ir=e.canvasRef,Ki=e.enableTotals,Ro=Ki===void 0?Pn.enableTotals:Ki,Oa=e.totalsOffset,or=Oa===void 0?Pn.totalsOffset:Oa,Cn=k.useRef(null),Ln=cn(),Io=xB(o,a,i),$n=Io.margin,ar=Io.innerWidth,sr=Io.innerHeight,Xi=Io.outerWidth,Be=Io.outerHeight,Ue=ZB({indexBy:n,label:j,tooltipLabel:xe,valueFormat:Le,colors:re,colorBy:Q,borderColor:ee,labelTextColor:K,groupMode:s,layout:l,reverse:u,data:t,keys:r,minValue:f,maxValue:c,margin:$n,width:ar,height:sr,padding:p,innerPadding:m,valueScale:d,indexScale:h,enableLabel:B,labelSkipWidth:z,labelSkipHeight:Y,legends:he,legendLabel:ve,totalsOffset:or}),ct=Ue.bars,lr=Ue.barsWithValue,Wr=Ue.xScale,_r=Ue.yScale,Ts=Ue.getLabel,Qi=Ue.getTooltipLabel,xi=Ue.getBorderColor,ka=Ue.getLabelColor,wi=Ue.shouldRenderBarLabel,Do=Ue.legendsWithData,Es=Ue.barTotals,Zi=rB(),Mt=Zi.showTooltipFromEvent,et=Zi.hideTooltip,Ye=H4e({annotations:zB({data:ct,annotations:W,getPosition:function(we){return{x:we.x,y:we.y}},getDimensions:function(we){var ke=we.width,st=we.height;return{width:ke,height:st,size:Math.max(ke,st)}}})}),Bt=k.useMemo(function(){return{borderRadius:fe,borderWidth:q,isInteractive:We,isFocusable:!1,labelSkipWidth:z,labelSkipHeight:Y,margin:$n,width:o,height:a,innerWidth:ar,innerHeight:sr,bars:ct,legendData:Do,enableLabel:B,xScale:Wr,yScale:_r,tooltip:Lt,getTooltipLabel:Qi,onClick:Et,onMouseEnter:St,onMouseLeave:at}},[fe,q,We,z,Y,$n,o,a,ar,sr,ct,Do,B,Wr,_r,Lt,Qi,Et,St,at]),Si=BC(Le);k.useEffect(function(){var we,ke=(we=Cn.current)==null?void 0:we.getContext("2d");Cn.current&&ke&&(Cn.current.width=Xi*tn,Cn.current.height=Be*tn,ke.scale(tn,tn),ke.fillStyle=Ln.background,ke.fillRect(0,0,Xi,Be),ke.translate($n.left,$n.top),M.forEach(function(st){st==="grid"?typeof Ln.grid.line.strokeWidth=="number"&&Ln.grid.line.strokeWidth>0&&(ke.lineWidth=Ln.grid.line.strokeWidth,ke.strokeStyle=Ln.grid.line.stroke,_&&vM(ke,{width:ar,height:sr,scale:Wr,axis:"x",values:O}),P&&vM(ke,{width:ar,height:sr,scale:_r,axis:"y",values:$})):st==="axes"?E4e(ke,{xScale:Wr,yScale:_r,width:ar,height:sr,top:g,right:y,bottom:b,left:w,theme:Ln}):st==="bars"?lr.forEach(function(jt){R(ke,{bar:jt,borderColor:xi(jt),borderRadius:fe,borderWidth:q,label:Ts(jt.data),labelColor:ka(jt),shouldRenderLabel:wi(jt)})}):st==="legends"?Do.forEach(function(jt){var tt=jt[0],vn=jt[1];AMe(ke,nt({},tt,{data:vn,containerWidth:ar,containerHeight:sr,theme:Ln}))}):st==="annotations"?J4e(ke,{annotations:Ye,theme:Ln}):st==="totals"&&Ro?function(jt,tt,vn,Wt){Wt===void 0&&(Wt=Pn.layout),jt.fillStyle=vn.text.fill,jt.font="bold "+vn.labels.text.fontSize+"px "+vn.labels.text.fontFamily,jt.textBaseline=Wt==="vertical"?"alphabetic":"middle",jt.textAlign=Wt==="vertical"?"center":"start",tt.forEach(function(Qt){jt.fillText(Qt.formattedValue,Qt.x,Qt.y)})}(ke,Es,Ln,l):typeof st=="function"&&st(ke,Bt)}),ke.save())},[b,w,y,g,lr,fe,q,Ye,_,P,xi,Ts,ka,O,$,s,a,sr,ar,Bt,M,l,Do,$n.left,$n.top,Be,Xi,tn,R,Wr,_r,u,wi,Ln,o,Es,Ro,Si]);var ur=k.useCallback(function(we){if(ct&&Cn.current){var ke=mw(Cn.current,we),st=ke[0],jt=ke[1],tt=yw(ct,$n,st,jt);tt!==void 0?(Mt(k.createElement(Lt,nt({},tt.data,{color:tt.color,label:tt.label,value:Number(tt.data.value)})),we),we.type==="mouseenter"&&(St==null||St(tt.data,we))):et()}},[et,$n,St,ct,Mt,Lt]),Ji=k.useCallback(function(we){if(ct&&Cn.current){et();var ke=mw(Cn.current,we),st=ke[0],jt=ke[1],tt=yw(ct,$n,st,jt);tt&&(at==null||at(tt.data,we))}},[et,$n,at,ct]),N1=k.useCallback(function(we){if(ct&&Cn.current){var ke=mw(Cn.current,we),st=ke[0],jt=ke[1],tt=yw(ct,$n,st,jt);tt!==void 0&&(Et==null||Et(nt({},tt.data,{color:tt.color}),we))}},[$n,Et,ct]);return x.jsx("canvas",{ref:function(we){Cn.current=we,ir&&"current"in ir&&(ir.current=we)},width:Xi*tn,height:Be*tn,style:{width:Xi,height:Be,cursor:We?"auto":"normal"},onMouseEnter:We?ur:void 0,onMouseMove:We?ur:void 0,onMouseLeave:We?Ji:void 0,onClick:We?N1:void 0})},XMe=k.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Nf(e,qMe);return x.jsx(UC,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:x.jsx(KMe,nt({},o,{canvasRef:t}))})}),JB=function(e){return x.jsx(zC,{children:function(t){var n=t.width,r=t.height;return x.jsx(GMe,nt({width:n,height:r},e))}})};k.forwardRef(function(e,t){return x.jsx(zC,{children:function(n){var r=n.width,i=n.height;return x.jsx(XMe,nt({width:r,height:i},e,{ref:t}))}})});const QMe=({data:e})=>{if(!Array.isArray(e))return console.error("Invalid data provided to Graph component",e),null;const t=e&&Math.max(...e.map(n=>Math.max(n.thisWeekTotalCost,n.lastWeekTotalCost)));return console.log(e),e&&x.jsx(JB,{data:e==null?void 0:e.map(n=>({week:`${n.weekNum}주차`,저번달:n.lastWeekTotalCost,이번달:n.thisWeekTotalCost})),keys:["저번달","이번달"],indexBy:"week",layout:"vertical",margin:{top:40,right:50,bottom:40,left:50},padding:.5,innerPadding:10,groupMode:"grouped",indexScale:{type:"band",round:!1},colors:({id:n})=>n==="저번달"?"#E8E8E8":"#007BFF",borderRadius:5,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisLeft:{tickSize:0,tickPadding:10,tickRotation:0,legendPosition:"middle",legendOffset:-40,format:n=>`${n/1e4} 만원`,tickValues:5,maxValue:Math.ceil(t/5)*5},enableLabel:!1,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},tooltip:({id:n,value:r,indexValue:i})=>x.jsxs("div",{style:{padding:"5px 10px",background:"white",border:"1px solid #ccc",borderRadius:"4px"},children:[x.jsxs("strong",{children:[n," ",i]}),":",r.toLocaleString()," 원"]}),legends:[{dataFrom:"keys",anchor:"top-right",direction:"row",justify:!1,translateX:50,translateY:-40,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemOpacity:.85,symbolSize:20,effects:[{on:"hover",style:{itemOpacity:1}}]}],role:"application",motionConfig:"molasses",ariaLabel:"Nivo bar chart demo",barAriaLabel:n=>`${n.id}: ${n.formattedValue} in week: ${n.indexValue}`})};function ZMe(){const{data:e,error:t,isLoading:n}=sm("/api/expend/graph");return t?x.jsx(If,{}):n?x.jsx(Xl,{}):x.jsx(JMe,{children:x.jsx(QMe,{data:e})})}const JMe=D.div` + width: 100%; + max-width: 45rem; + height: 100%; + max-height: 15rem; + display: flex; + justify-content: center; + align-items: center; + margin: auto; +`;function eje(){const e=zl();return x.jsx(mf,{children:x.jsxs(nje,{children:[x.jsxs(rF,{children:[x.jsx(fu,{style:{visibility:"hidden"},children:"hidden"}),x.jsx(du,{children:x.jsx(tje,{src:One})})]}),x.jsxs("div",{children:[x.jsx(fu,{children:"저축 목표"}),x.jsx(du,{children:x.jsx(bL,{})})]}),x.jsxs("div",{children:[x.jsxs(OM,{children:[x.jsx(fu,{children:"결제 예정"}),x.jsxs(kM,{onClick:()=>e("/ScheduledPayments"),children:[x.jsx(CM,{children:"더 보기"}),x.jsx(j4,{size:12.8,color:"#878787"})]})]}),x.jsx(du,{children:x.jsx(UPe,{})})]}),x.jsxs(eF,{children:[x.jsx(fu,{children:"소비 통계"}),x.jsx(du,{children:x.jsx(ZMe,{})})]}),x.jsxs(tF,{children:[x.jsxs(rje,{children:[x.jsx(fu,{children:"소비 분석 리포트"}),x.jsx(ije,{children:"by Gemini(Google AI)"})]}),x.jsx(du,{children:x.jsx(jPe,{})})]}),x.jsxs(nF,{children:[x.jsxs(OM,{children:[x.jsx(fu,{children:"최근 거래 내역"}),x.jsxs(kM,{onClick:()=>e("/Transactions"),children:[x.jsx(CM,{children:"더 보기"}),x.jsx(j4,{size:12.8,color:"#878787"})]})]}),x.jsx(du,{children:x.jsx(DPe,{})})]})]})})}const eF=D.div` + grid-area: 2/1/3/3; + display: flex; + flex-direction: column; + height: 100%; +`,tF=D.div` + grid-area: 3/1/3/3; + display: flex; + margin-top: 0; + height: 100%; +`,nF=D.div` + grid-area: 2/3/4/3; + display: flex; + height: 100%; +`,fu=D.h2` + font-size: 1.3rem; + font-weight: 400; + color: ${({theme:e})=>e.colors.gray06}; + padding: 0.5rem; + flex-direction: start; +`,du=D.div` + background-color: ${({theme:e})=>e.colors.white}; + border-radius: 0.5rem; + padding: 0.8rem; + align-items: center; + height: 100%; + display: flex; + justify-content: center; + box-shadow: 0px 20px 25px 0px rgba(76, 103, 100, 0.1); +`,tje=D.img` + width: auto; + height: auto; +`,rF=D.div``,nje=D.div` + display: grid; + position: relative; + z-index: 10; + width: 100%; + height: calc(100vh - 10rem); + margin: 0; + grid-template-columns: repeat(3, minmax(0, 1fr)); + grid-template-rows: repeat(3, 1fr); + gap: 1rem; + > div { + border-radius: 0.5rem; + padding: 0 0.8rem; + display: flex; + flex-direction: column; + min-height: 0; + height: 100%; + } + //반응형 1024px 기준 + @media (max-width: 1350px) { + height: auto; + grid-template-columns: 1fr; + grid-template-rows: auto; + gap: 1.5rem; + ${rF} { + display: none; + height: 0; + padding: 0; + margin: 0; + } + ${eF}, + ${tF}, + ${nF} { + grid-area: auto; + } + } +`,OM=D.div` + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; +`,kM=D.div` + display: flex; + cursor: pointer; + align-items: center; + justify-content: center; + gap: 0 0.5rem; +`,CM=D.div` + font-size: 0.8rem; + color: ${({theme:e})=>e.colors.gray06}; +`,rje=D.div` + display: flex; + align-items: center; +`,ije=D.a` + font-size: 0.8rem; + color: ${({theme:e})=>e.colors.gray06}; +`;function oje({activeTab:e,setActiveTab:t}){return x.jsxs(aje,{children:[x.jsx(vw,{$isActive:e==="전체",onClick:()=>t("전체"),$color:"black02",children:"전체"}),x.jsx(vw,{$isActive:e==="수입",onClick:()=>t("수입"),$color:"blue",children:"수입"}),x.jsx(vw,{$isActive:e==="지출",onClick:()=>t("지출"),$color:"red",children:"지출"})]})}const aje=D.div` + display: flex; + justify-content: flex-start; + gap: 36px; + margin-bottom: 20px; + margin-left: 20px; +`,vw=D.button` + background: none; + border: none; + font-size: 20px; + font-weight: ${({$isActive:e})=>e?"bold":"normal"}; + color: ${({$isActive:e,$color:t,theme:n})=>e?n.colors[t]:n.colors.gray03}; + border-bottom: ${({$isActive:e,$color:t,theme:n})=>e?`3px solid ${n.colors[t]}`:"3px solid transparent"}; + cursor: pointer; + + &:hover { + color: ${({$color:e,theme:t})=>t.colors[e]}; + } +`,sje=e=>{if(!e)return"날짜 없음";try{const t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${n}.${r}.${i}`}catch(t){return console.error("날짜 형식 변환 오류:",t),"날짜 형식 오류"}},lje=e=>{if(!e)return"금액 없음";try{return(typeof e=="string"?parseInt(e,10):e).toLocaleString("ko-KR")+"원"}catch(t){return console.error("금액 형식 변환 오류:",t),"금액 형식 오류"}};function uje({transactions:e,currentPage:t,itemsPerPage:n,onEdit:r,onDelete:i}){if(!e||e.length===0)return x.jsx("p",{children:"표시할 거래 내역이 없습니다."});const o=(t-1)*n,a=e.slice(o,o+n);return x.jsxs(cje,{children:[x.jsx("thead",{children:x.jsxs("tr",{children:[x.jsx(hu,{children:"날짜"}),x.jsx(hu,{children:"금액"}),x.jsx(hu,{children:"분류"}),x.jsx(hu,{children:"자산"}),x.jsx(hu,{children:"내용"}),x.jsx(hu,{children:"편집"})]})}),x.jsx("tbody",{children:a.map(s=>{const l="incomeId"in s,u=l?`income-${s.incomeId}`:`expend-${s.expendId}`;return x.jsxs(fje,{children:[x.jsx(pu,{children:sje(l?s.incomeDate:s.expendDate)}),x.jsx(pu,{$isBold:!0,$isIncome:l,children:lje(s.cost)}),x.jsx(pu,{children:s.category}),x.jsx(pu,{children:s.asset}),x.jsx(pu,{$isBold:!0,children:l?s.incomeName:s.expendName}),x.jsxs(pu,{children:[x.jsx($M,{$edit:!0,onClick:()=>r(s),children:"수정"}),x.jsx($M,{onClick:()=>i(l?s.incomeId:s.expendId,l?"income":"expense"),children:"삭제"})]})]},u)})})]})}const cje=D.table` + width: 100%; + margin: 0; + border-collapse: collapse; + table-layout: fixed; + margin-bottom: 13px; +`,hu=D.th` + padding: 10px; + text-align: center; + font-weight: bold; + width: 20%; + color: ${({theme:e})=>e.colors.black02}; +`,fje=D.tr` + height: 50px; +`,pu=D.td` + padding: 12px 8px; + text-align: center; + word-wrap: break-word; + font-weight: ${({$isBold:e})=>e?"bold":"normal"}; + color: ${({theme:e,$isIncome:t})=>t?e.colors.blue:t===!1?e.colors.red:e.colors.gray05}; +`,$M=D.button` + margin: 0 5px; + padding: 5px 15px; + font-size: 10px; + border: ${({$edit:e,theme:t})=>e?`1px solid ${t.colors.black}`:"none"}; + background-color: ${({$edit:e,theme:t})=>e?"transparent":t.colors.black}; + color: ${({$edit:e,theme:t})=>e?t.colors.black:t.colors.white}; + border-radius: 4px; + cursor: pointer; + + &:hover { + background-color: ${({$edit:e,theme:t})=>e?"transparent":t.colors.gray06}; + color: ${({$edit:e,theme:t})=>e?t.colors.gray06:t.colors.white}; + } +`;function iF({currentPage:e,totalItems:t,itemsPerPage:n,onPageChange:r}){const i=Math.ceil(t/n),o=5,a=Math.max(1,e-Math.floor(o/2)),s=Math.min(i,a+o-1),l=u=>{u>=1&&u<=i&&r(u)};return x.jsxs(dje,{children:[x.jsx(VA,{$isDisabled:e===1,onClick:()=>l(e-1),children:"<"}),Array.from({length:s-a+1},(u,f)=>a+f).map(u=>x.jsx(hje,{$isActive:u===e,onClick:()=>l(u),children:u},u)),x.jsx(VA,{$isDisabled:e===i,onClick:()=>l(e+1),children:">"})]})}const dje=D.div` + display: flex; + justify-content: center; + align-items: center; + gap: 8px; +`,VA=D.button` + width: 36px; + height: 36px; + background-color: ${({$isDisabled:e,theme:t})=>e?t.colors.gray02:t.colors.white}; + border: 1px solid ${({$isDisabled:e,theme:t})=>e?t.colors.gray02:t.colors.gray04}; + border-radius: 4px; + color: ${({$isDisabled:e,theme:t})=>e?t.colors.gray03:t.colors.black01}; + cursor: ${({$isDisabled:e})=>e?"not-allowed":"pointer"}; + display: flex; + justify-content: center; + align-items: center; +`,hje=D(VA)` + border: 1px solid ${({$isActive:e,theme:t})=>e?t.colors.blue:t.colors.gray02}; + color: ${({$isActive:e,theme:t})=>e?t.colors.blue:t.colors.black01}; + font-weight: bold; + font-size: 14px; +`;function pje({isOpen:e,onClose:t,onSubmit:n,type:r,editData:i}){const[o,a]=k.useState({description:"",amount:"",category:"",asset:"",date:""});k.useEffect(()=>{var p;a(i?{description:i.content||(r==="income"?i.incomeName||"":i.expendName||""),amount:((p=i.cost)==null?void 0:p.toString())||"",category:i.category||"",asset:i.asset||"",date:i.date||(r==="income"?i.incomeDate||"":i.expendDate||"")}:{description:"",amount:"",category:"",asset:"",date:""})},[i,r]);const s=p=>{const{name:m,value:g}=p.target;a(y=>({...y,[m]:g}))},l=p=>{a(m=>({...m,category:p}))},u=p=>{a(m=>({...m,asset:p}))},f=p=>{if(p.preventDefault(),!o.date||!o.amount||!o.category||!o.asset||!o.description){alert("모든 필드를 입력해주세요.");return}if(!/^\d{4}-\d{2}-\d{2}$/.test(o.date)){alert("날짜는 YYYY-MM-DD 형식이어야 합니다.");return}if(isNaN(Number(o.amount))||Number(o.amount)<=0){alert("금액은 0보다 커야 합니다.");return}const g={[r==="income"?"incomeDate":"expendDate"]:o.date,cost:Number(o.amount),category:o.category,[r==="income"?"incomeName":"expendName"]:o.description,asset:o.asset};n(g),t()};if(!e)return null;const h=r==="income"?[{name:"월급",icon:"💰"},{name:"용돈",icon:"💵"},{name:"기타",icon:""}]:[{name:"납부",icon:"💰"},{name:"식비",icon:"🍕"},{name:"교통",icon:"🚌"},{name:"오락",icon:"🎮"},{name:"쇼핑",icon:"🛍️"},{name:"기타",icon:""}];return x.jsx(mje,{onClick:t,children:x.jsxs(gje,{onClick:p=>p.stopPropagation(),type:r,children:[x.jsx(yje,{onClick:t,children:"×"}),x.jsxs(vje,{onSubmit:f,children:[x.jsxs("div",{children:[x.jsx(gd,{children:"날짜"}),x.jsx(bw,{name:"date",type:"text",placeholder:"YYYY-MM-DD",value:o.date,onChange:s,required:!0})]}),x.jsxs("div",{children:[x.jsx(gd,{children:"금액"}),x.jsx(bw,{name:"amount",type:"number",placeholder:"금액을 입력해 주세요",value:o.amount,onChange:s,required:!0})]}),x.jsxs("div",{children:[x.jsx(gd,{children:r==="income"?"분류":"지출 유형"}),x.jsx(PM,{children:h.map(p=>x.jsxs(TM,{type:"button",$active:o.category===p.name,onClick:()=>l(p.name),children:[p.icon," ",p.name]},p.name))})]}),x.jsxs("div",{children:[x.jsx(gd,{children:"자산"}),x.jsx(PM,{children:["현금","은행","카드"].map(p=>x.jsx(TM,{type:"button",$active:o.asset===p,onClick:()=>u(p),children:p},p))})]}),x.jsxs("div",{children:[x.jsx(gd,{children:"내용"}),x.jsx(bw,{name:"description",placeholder:"상세 내용을 작성해 주세요",value:o.description,onChange:s,required:!0})]}),x.jsx(bje,{type:"submit",children:"저장"})]})]})})}const mje=D.div` + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.2); + display: flex; + justify-content: center; + align-items: center; + z-index: 10; +`,gje=D.div` + background: white; + border-radius: 12px; + padding: 60px; + width: 350px; + height: ${({type:e})=>e==="income"?"550px":"620px"}; + position: relative; + z-index: 11; +`,yje=D.button` + position: absolute; + right: 20px; + top: 20px; + background: none; + border: none; + font-size: 38px; + cursor: pointer; + color: ${({theme:e})=>e.colors.gray05}; +`,vje=D.form` + display: flex; + flex-direction: column; + gap: 35px; +`,gd=D.div` + font-size: 14px; + color: #333; + margin-bottom: 8px; +`,bw=D.input` + width: 100%; + height: 48px; + padding: 12px; + border: 1px solid ${({theme:e})=>e.colors.gray02}; + border-radius: 8px; + font-size: 14px; + box-sizing: border-box; + + &::placeholder { + color: ${({theme:e})=>e.colors.gray02}; + } +`,PM=D.div` + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +`,TM=D.button` + padding: 12px; + height: 48px; + border: 1px solid ${({theme:e,$active:t})=>t?e.colors.blue:e.colors.gray02}; + border-radius: 8px; + background: ${({theme:e,$active:t})=>t?e.colors.blue:e.colors.white}; + color: ${({theme:e,$active:t})=>t?e.colors.white:e.colors.gray02}; + cursor: pointer; + font-size: 14px; + font-weight: bold; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + + &:hover { + border-color: ${({theme:e})=>e.colors.gray04}; + } +`,bje=D.button` + width: 180px; + height: 45px; + padding: 12px; + background-color: ${({theme:e})=>e.colors.blue}; + color: ${({theme:e})=>e.colors.white}; + border: none; + border-radius: 4px; + font-size: 14px; + font-weight: bold; + cursor: pointer; + align-self: center; + + &:hover { + background-color: ${({theme:e})=>e.colors.primaryHover}; + } +`;var Lf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dl=typeof window>"u"||"Deno"in globalThis;function Xr(){}function xje(e,t){return typeof e=="function"?e(t):e}function HA(e){return typeof e=="number"&&e>=0&&e!==1/0}function oF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tc(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){return typeof e=="function"?e(t):e}function EM(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==HC(a,t.options))return!1}else if(!Cp(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function MM(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Nl(t.options.mutationKey)!==Nl(o))return!1}else if(!Cp(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function HC(e,t){return((t==null?void 0:t.queryKeyHashFn)||Nl)(e)}function Nl(e){return JSON.stringify(e,(t,n)=>GA(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Cp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Cp(e[n],t[n])):!1}function aF(e,t){if(e===t)return e;const n=jM(e)&&jM(t);if(n||GA(e)&&GA(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function qA(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?aF(e,t):t}function Sje(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Aje(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var GC=Symbol();function sF(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===GC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var rl,La,ic,JM,_je=(JM=class extends Lf{constructor(){super();be(this,rl);be(this,La);be(this,ic);ae(this,ic,t=>{if(!Dl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){L(this,La)||this.setEventListener(L(this,ic))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,La))==null||t.call(this),ae(this,La,void 0))}setEventListener(t){var n;ae(this,ic,t),(n=L(this,La))==null||n.call(this),ae(this,La,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){L(this,rl)!==t&&(ae(this,rl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof L(this,rl)=="boolean"?L(this,rl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rl=new WeakMap,La=new WeakMap,ic=new WeakMap,JM),qC=new _je,oc,Ba,ac,ej,Oje=(ej=class extends Lf{constructor(){super();be(this,oc,!0);be(this,Ba);be(this,ac);ae(this,ac,t=>{if(!Dl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){L(this,Ba)||this.setEventListener(L(this,ac))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,Ba))==null||t.call(this),ae(this,Ba,void 0))}setEventListener(t){var n;ae(this,ac,t),(n=L(this,Ba))==null||n.call(this),ae(this,Ba,t(this.setOnline.bind(this)))}setOnline(t){L(this,oc)!==t&&(ae(this,oc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return L(this,oc)}},oc=new WeakMap,Ba=new WeakMap,ac=new WeakMap,ej),N0=new Oje;function KA(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function kje(e){return Math.min(1e3*2**e,3e4)}function lF(e){return(e??"online")==="online"?N0.isOnline():!0}var uF=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xw(e){return e instanceof uF}function cF(e){let t=!1,n=0,r=!1,i;const o=KA(),a=m=>{var g;r||(d(new uF(m)),(g=e.abort)==null||g.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>qC.isFocused()&&(e.networkMode==="always"||N0.isOnline())&&e.canRun(),f=()=>lF(e.networkMode)&&e.canRun(),c=m=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,m),i==null||i(),o.resolve(m))},d=m=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,m),i==null||i(),o.reject(m))},h=()=>new Promise(m=>{var g;i=y=>{(r||u())&&m(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(r)return;let m;const g=n===0?e.initialPromise:void 0;try{m=g??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(c).catch(y=>{var S;if(r)return;const v=e.retry??(Dl?0:3),b=e.retryDelay??kje,A=typeof b=="function"?b(n,y):b,w=v===!0||typeof v=="number"&&nu()?void 0:h()).then(()=>{t?d(y):p()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?p():h().then(p),o)}}function Cje(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var hn=Cje(),il,tj,fF=(tj=class{constructor(){be(this,il)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),HA(this.gcTime)&&ae(this,il,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dl?1/0:5*60*1e3))}clearGcTimeout(){L(this,il)&&(clearTimeout(L(this,il)),ae(this,il,void 0))}},il=new WeakMap,tj),sc,lc,qr,zn,$p,ol,Ci,zo,nj,$je=(nj=class extends fF{constructor(t){super();be(this,Ci);be(this,sc);be(this,lc);be(this,qr);be(this,zn);be(this,$p);be(this,ol);ae(this,ol,!1),ae(this,$p,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,qr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,sc,Pje(this.options)),this.state=t.state??L(this,sc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,zn))==null?void 0:t.promise}setOptions(t){this.options={...L(this,$p),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,qr).remove(this)}setData(t,n){const r=qA(this.state.data,t,this.options);return Pe(this,Ci,zo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Pe(this,Ci,zo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=L(this,zn))==null?void 0:r.promise;return(i=L(this,zn))==null||i.cancel(t),n?n.then(Xr).catch(Xr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,sc))}isActive(){return this.observers.some(t=>Ei(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===GC||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!oF(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,zn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,zn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,qr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(L(this,zn)&&(L(this,ol)?L(this,zn).cancel({revert:!0}):L(this,zn).cancelRetry()),this.scheduleGc()),L(this,qr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,Ci,zo).call(this,{type:"invalidate"})}fetch(t,n){var l,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(L(this,zn))return L(this,zn).continueRetry(),L(this,zn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(d=>d.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(ae(this,ol,!0),r.signal)})},o=()=>{const c=sF(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return i(d),ae(this,ol,!1),this.options.persister?this.options.persister(c,d,this):c(d)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),ae(this,lc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Pe(this,Ci,zo).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const s=c=>{var d,h,p,m;xw(c)&&c.silent||Pe(this,Ci,zo).call(this,{type:"error",error:c}),xw(c)||((h=(d=L(this,qr).config).onError)==null||h.call(d,c,this),(m=(p=L(this,qr).config).onSettled)==null||m.call(p,this.state.data,c,this)),this.scheduleGc()};return ae(this,zn,cF({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var d,h,p,m;if(c===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){s(g);return}(h=(d=L(this,qr).config).onSuccess)==null||h.call(d,c,this),(m=(p=L(this,qr).config).onSettled)==null||m.call(p,c,this.state.error,this),this.scheduleGc()},onError:s,onFail:(c,d)=>{Pe(this,Ci,zo).call(this,{type:"failed",failureCount:c,error:d})},onPause:()=>{Pe(this,Ci,zo).call(this,{type:"pause"})},onContinue:()=>{Pe(this,Ci,zo).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),L(this,zn).start()}},sc=new WeakMap,lc=new WeakMap,qr=new WeakMap,zn=new WeakMap,$p=new WeakMap,ol=new WeakMap,Ci=new WeakSet,zo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dF(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return xw(i)&&i.revert&&L(this,lc)?{...L(this,lc),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),hn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),L(this,qr).notify({query:this,type:"updated",action:t})})},nj);function dF(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lF(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pje(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var oo,rj,Tje=(rj=class extends Lf{constructor(t={}){super();be(this,oo);this.config=t,ae(this,oo,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??HC(i,n);let a=this.get(o);return a||(a=new $je({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){L(this,oo).has(t.queryHash)||(L(this,oo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=L(this,oo).get(t.queryHash);n&&(t.destroy(),n===t&&L(this,oo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,oo).get(t)}getAll(){return[...L(this,oo).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>EM(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>EM(t,r)):n}notify(t){hn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){hn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},oo=new WeakMap,rj),ao,Kn,al,so,Ta,ij,Eje=(ij=class extends fF{constructor(t){super();be(this,so);be(this,ao);be(this,Kn);be(this,al);this.mutationId=t.mutationId,ae(this,Kn,t.mutationCache),ae(this,ao,[]),this.state=t.state||hF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,ao).includes(t)||(L(this,ao).push(t),this.clearGcTimeout(),L(this,Kn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,ao,L(this,ao).filter(n=>n!==t)),this.scheduleGc(),L(this,Kn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,ao).length||(this.state.status==="pending"?this.scheduleGc():L(this,Kn).remove(this))}continue(){var t;return((t=L(this,al))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,f,c,d,h,p,m,g,y,v,b,A,w,S,_;ae(this,al,cF({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,P)=>{Pe(this,so,Ta).call(this,{type:"failed",failureCount:C,error:P})},onPause:()=>{Pe(this,so,Ta).call(this,{type:"pause"})},onContinue:()=>{Pe(this,so,Ta).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,Kn).canRun(this)}));const n=this.state.status==="pending",r=!L(this,al).canStart();try{if(!n){Pe(this,so,Ta).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=L(this,Kn).config).onMutate)==null?void 0:o.call(i,t,this));const P=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));P!==this.state.context&&Pe(this,so,Ta).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const C=await L(this,al).start();return await((u=(l=L(this,Kn).config).onSuccess)==null?void 0:u.call(l,C,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,C,t,this.state.context)),await((h=(d=L(this,Kn).config).onSettled)==null?void 0:h.call(d,C,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,C,null,t,this.state.context)),Pe(this,so,Ta).call(this,{type:"success",data:C}),C}catch(C){try{throw await((y=(g=L(this,Kn).config).onError)==null?void 0:y.call(g,C,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,C,t,this.state.context)),await((w=(A=L(this,Kn).config).onSettled)==null?void 0:w.call(A,void 0,C,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,C,t,this.state.context)),C}finally{Pe(this,so,Ta).call(this,{type:"error",error:C})}}finally{L(this,Kn).runNext(this)}}},ao=new WeakMap,Kn=new WeakMap,al=new WeakMap,so=new WeakSet,Ta=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),hn.batch(()=>{L(this,ao).forEach(r=>{r.onMutationUpdate(t)}),L(this,Kn).notify({mutation:this,type:"updated",action:t})})},ij);function hF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $r,Pp,oj,Mje=(oj=class extends Lf{constructor(t={}){super();be(this,$r);be(this,Pp);this.config=t,ae(this,$r,new Map),ae(this,Pp,Date.now())}build(t,n,r){const i=new Eje({mutationCache:this,mutationId:++pm(this,Pp)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=ug(t),r=L(this,$r).get(n)??[];r.push(t),L(this,$r).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ug(t);if(L(this,$r).has(n)){const i=(r=L(this,$r).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?L(this,$r).delete(n):L(this,$r).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=L(this,$r).get(ug(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=L(this,$r).get(ug(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){hn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...L(this,$r).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>MM(n,r))}findAll(t={}){return this.getAll().filter(n=>MM(t,n))}notify(t){hn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return hn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Xr))))}},$r=new WeakMap,Pp=new WeakMap,oj);function ug(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function IM(e){return{onFetch:(t,n)=>{var f,c,d,h,p;const r=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],a=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const g=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=sF(t.options,t.fetchOptions),v=async(b,A,w)=>{if(m)return Promise.reject();if(A==null&&b.pages.length)return Promise.resolve(b);const S={queryKey:t.queryKey,pageParam:A,direction:w?"backward":"forward",meta:t.options.meta};g(S);const _=await y(S),{maxPages:C}=t.options,P=w?Aje:Sje;return{pages:P(b.pages,_,C),pageParams:P(b.pageParams,A,C)}};if(i&&o.length){const b=i==="backward",A=b?jje:DM,w={pages:o,pageParams:a},S=A(r,w);s=await v(w,S,b)}else{const b=e??o.length;do{const A=l===0?a[0]??r.initialPageParam:DM(r,s);if(l>0&&A==null)break;s=await v(s,A),l++}while(l{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function DM(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function jje(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ht,Fa,Ua,uc,cc,za,fc,dc,aj,Rje=(aj=class{constructor(e={}){be(this,Ht);be(this,Fa);be(this,Ua);be(this,uc);be(this,cc);be(this,za);be(this,fc);be(this,dc);ae(this,Ht,e.queryCache||new Tje),ae(this,Fa,e.mutationCache||new Mje),ae(this,Ua,e.defaultOptions||{}),ae(this,uc,new Map),ae(this,cc,new Map),ae(this,za,0)}mount(){pm(this,za)._++,L(this,za)===1&&(ae(this,fc,qC.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Ht).onFocus())})),ae(this,dc,N0.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Ht).onOnline())})))}unmount(){var e,t;pm(this,za)._--,L(this,za)===0&&((e=L(this,fc))==null||e.call(this),ae(this,fc,void 0),(t=L(this,dc))==null||t.call(this),ae(this,dc,void 0))}isFetching(e){return L(this,Ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,Fa).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Ht).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=L(this,Ht).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(tc(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return L(this,Ht).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=L(this,Ht).get(r.queryHash),o=i==null?void 0:i.state.data,a=xje(t,o);if(a!==void 0)return L(this,Ht).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return hn.batch(()=>L(this,Ht).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Ht).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=L(this,Ht);hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=L(this,Ht),r={type:"active",...e};return hn.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=hn.batch(()=>L(this,Ht).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Xr).catch(Xr)}invalidateQueries(e,t={}){return hn.batch(()=>{if(L(this,Ht).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=hn.batch(()=>L(this,Ht).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Xr)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Xr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=L(this,Ht).build(this,t);return n.isStaleByTime(tc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Xr).catch(Xr)}fetchInfiniteQuery(e){return e.behavior=IM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Xr).catch(Xr)}ensureInfiniteQueryData(e){return e.behavior=IM(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return N0.isOnline()?L(this,Fa).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Ht)}getMutationCache(){return L(this,Fa)}getDefaultOptions(){return L(this,Ua)}setDefaultOptions(e){ae(this,Ua,e)}setQueryDefaults(e,t){L(this,uc).set(Nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,uc).values()],n={};return t.forEach(r=>{Cp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){L(this,cc).set(Nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,cc).values()];let n={};return t.forEach(r=>{Cp(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,Ua).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=HC(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===GC&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,Ua).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,Ht).clear(),L(this,Fa).clear()}},Ht=new WeakMap,Fa=new WeakMap,Ua=new WeakMap,uc=new WeakMap,cc=new WeakMap,za=new WeakMap,fc=new WeakMap,dc=new WeakMap,aj),fr,Ie,Tp,Xn,sl,hc,Wa,lo,Ep,pc,mc,ll,ul,Ya,gc,Je,Rd,XA,QA,ZA,JA,e_,t_,n_,pF,sj,Ije=(sj=class extends Lf{constructor(t,n){super();be(this,Je);be(this,fr);be(this,Ie);be(this,Tp);be(this,Xn);be(this,sl);be(this,hc);be(this,Wa);be(this,lo);be(this,Ep);be(this,pc);be(this,mc);be(this,ll);be(this,ul);be(this,Ya);be(this,gc,new Set);this.options=n,ae(this,fr,t),ae(this,lo,null),ae(this,Wa,KA()),this.options.experimental_prefetchInRender||L(this,Wa).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,Ie).addObserver(this),NM(L(this,Ie),this.options)?Pe(this,Je,Rd).call(this):this.updateResult(),Pe(this,Je,JA).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return r_(L(this,Ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return r_(L(this,Ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Je,e_).call(this),Pe(this,Je,t_).call(this),L(this,Ie).removeObserver(this)}setOptions(t,n){const r=this.options,i=L(this,Ie);if(this.options=L(this,fr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ei(this.options.enabled,L(this,Ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Je,n_).call(this),L(this,Ie).setOptions(this.options),r._defaulted&&!D0(this.options,r)&&L(this,fr).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,Ie),observer:this});const o=this.hasListeners();o&&LM(L(this,Ie),i,this.options,r)&&Pe(this,Je,Rd).call(this),this.updateResult(n),o&&(L(this,Ie)!==i||Ei(this.options.enabled,L(this,Ie))!==Ei(r.enabled,L(this,Ie))||tc(this.options.staleTime,L(this,Ie))!==tc(r.staleTime,L(this,Ie)))&&Pe(this,Je,XA).call(this);const a=Pe(this,Je,QA).call(this);o&&(L(this,Ie)!==i||Ei(this.options.enabled,L(this,Ie))!==Ei(r.enabled,L(this,Ie))||a!==L(this,Ya))&&Pe(this,Je,ZA).call(this,a)}getOptimisticResult(t){const n=L(this,fr).getQueryCache().build(L(this,fr),t),r=this.createResult(n,t);return Nje(this,r)&&(ae(this,Xn,r),ae(this,hc,this.options),ae(this,sl,L(this,Ie).state)),r}getCurrentResult(){return L(this,Xn)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){L(this,gc).add(t)}getCurrentQuery(){return L(this,Ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=L(this,fr).defaultQueryOptions(t),r=L(this,fr).getQueryCache().build(L(this,fr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Pe(this,Je,Rd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,Xn)))}createResult(t,n){var C;const r=L(this,Ie),i=this.options,o=L(this,Xn),a=L(this,sl),s=L(this,hc),u=t!==r?t.state:L(this,Tp),{state:f}=t;let c={...f},d=!1,h;if(n._optimisticResults){const P=this.hasListeners(),O=!P&&NM(t,n),$=P&&LM(t,r,n,i);(O||$)&&(c={...c,...dF(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:g}=c;if(n.select&&c.data!==void 0)if(o&&c.data===(a==null?void 0:a.data)&&n.select===L(this,Ep))h=L(this,pc);else try{ae(this,Ep,n.select),h=n.select(c.data),h=qA(o==null?void 0:o.data,h,n),ae(this,pc,h),ae(this,lo,null)}catch(P){ae(this,lo,P)}else h=c.data;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let P;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))P=o.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData((C=L(this,mc))==null?void 0:C.state.data,L(this,mc)):n.placeholderData,n.select&&P!==void 0)try{P=n.select(P),ae(this,lo,null)}catch(O){ae(this,lo,O)}P!==void 0&&(g="success",h=qA(o==null?void 0:o.data,P,n),d=!0)}L(this,lo)&&(p=L(this,lo),h=L(this,pc),m=Date.now(),g="error");const y=c.fetchStatus==="fetching",v=g==="pending",b=g==="error",A=v&&y,w=h!==void 0,_={status:g,fetchStatus:c.fetchStatus,isPending:v,isSuccess:g==="success",isError:b,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:b&&!w,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:b&&w,isStale:KC(t,n),refetch:this.refetch,promise:L(this,Wa)};if(this.options.experimental_prefetchInRender){const P=E=>{_.status==="error"?E.reject(_.error):_.data!==void 0&&E.resolve(_.data)},O=()=>{const E=ae(this,Wa,_.promise=KA());P(E)},$=L(this,Wa);switch($.status){case"pending":t.queryHash===r.queryHash&&P($);break;case"fulfilled":(_.status==="error"||_.data!==$.value)&&O();break;case"rejected":(_.status!=="error"||_.error!==$.reason)&&O();break}}return _}updateResult(t){const n=L(this,Xn),r=this.createResult(L(this,Ie),this.options);if(ae(this,sl,L(this,Ie).state),ae(this,hc,this.options),L(this,sl).data!==void 0&&ae(this,mc,L(this,Ie)),D0(r,n))return;ae(this,Xn,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!L(this,gc).size)return!0;const l=new Set(s??L(this,gc));return this.options.throwOnError&&l.add("error"),Object.keys(L(this,Xn)).some(u=>{const f=u;return L(this,Xn)[f]!==n[f]&&l.has(f)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Pe(this,Je,pF).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Je,JA).call(this)}},fr=new WeakMap,Ie=new WeakMap,Tp=new WeakMap,Xn=new WeakMap,sl=new WeakMap,hc=new WeakMap,Wa=new WeakMap,lo=new WeakMap,Ep=new WeakMap,pc=new WeakMap,mc=new WeakMap,ll=new WeakMap,ul=new WeakMap,Ya=new WeakMap,gc=new WeakMap,Je=new WeakSet,Rd=function(t){Pe(this,Je,n_).call(this);let n=L(this,Ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Xr)),n},XA=function(){Pe(this,Je,e_).call(this);const t=tc(this.options.staleTime,L(this,Ie));if(Dl||L(this,Xn).isStale||!HA(t))return;const r=oF(L(this,Xn).dataUpdatedAt,t)+1;ae(this,ll,setTimeout(()=>{L(this,Xn).isStale||this.updateResult()},r))},QA=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,Ie)):this.options.refetchInterval)??!1},ZA=function(t){Pe(this,Je,t_).call(this),ae(this,Ya,t),!(Dl||Ei(this.options.enabled,L(this,Ie))===!1||!HA(L(this,Ya))||L(this,Ya)===0)&&ae(this,ul,setInterval(()=>{(this.options.refetchIntervalInBackground||qC.isFocused())&&Pe(this,Je,Rd).call(this)},L(this,Ya)))},JA=function(){Pe(this,Je,XA).call(this),Pe(this,Je,ZA).call(this,Pe(this,Je,QA).call(this))},e_=function(){L(this,ll)&&(clearTimeout(L(this,ll)),ae(this,ll,void 0))},t_=function(){L(this,ul)&&(clearInterval(L(this,ul)),ae(this,ul,void 0))},n_=function(){const t=L(this,fr).getQueryCache().build(L(this,fr),this.options);if(t===L(this,Ie))return;const n=L(this,Ie);ae(this,Ie,t),ae(this,Tp,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pF=function(t){hn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(L(this,Xn))}),L(this,fr).getQueryCache().notify({query:L(this,Ie),type:"observerResultsUpdated"})})},sj);function Dje(e,t){return Ei(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function NM(e,t){return Dje(e,t)||e.state.data!==void 0&&r_(e,t,t.refetchOnMount)}function r_(e,t,n){if(Ei(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&KC(e,t)}return!1}function LM(e,t,n,r){return(e!==t||Ei(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&KC(e,n)}function KC(e,t){return Ei(t.enabled,e)!==!1&&e.isStaleByTime(tc(t.staleTime,e))}function Nje(e,t){return!D0(e.getCurrentResult(),t)}var Va,Ha,dr,Xo,la,zg,i_,lj,Lje=(lj=class extends Lf{constructor(n,r){super();be(this,la);be(this,Va);be(this,Ha);be(this,dr);be(this,Xo);ae(this,Va,n),this.setOptions(r),this.bindMethods(),Pe(this,la,zg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=L(this,Va).defaultMutationOptions(n),D0(this.options,r)||L(this,Va).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,dr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Nl(r.mutationKey)!==Nl(this.options.mutationKey)?this.reset():((i=L(this,dr))==null?void 0:i.state.status)==="pending"&&L(this,dr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=L(this,dr))==null||n.removeObserver(this)}onMutationUpdate(n){Pe(this,la,zg).call(this),Pe(this,la,i_).call(this,n)}getCurrentResult(){return L(this,Ha)}reset(){var n;(n=L(this,dr))==null||n.removeObserver(this),ae(this,dr,void 0),Pe(this,la,zg).call(this),Pe(this,la,i_).call(this)}mutate(n,r){var i;return ae(this,Xo,r),(i=L(this,dr))==null||i.removeObserver(this),ae(this,dr,L(this,Va).getMutationCache().build(L(this,Va),this.options)),L(this,dr).addObserver(this),L(this,dr).execute(n)}},Va=new WeakMap,Ha=new WeakMap,dr=new WeakMap,Xo=new WeakMap,la=new WeakSet,zg=function(){var r;const n=((r=L(this,dr))==null?void 0:r.state)??hF();ae(this,Ha,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},i_=function(n){hn.batch(()=>{var r,i,o,a,s,l,u,f;if(L(this,Xo)&&this.hasListeners()){const c=L(this,Ha).variables,d=L(this,Ha).context;(n==null?void 0:n.type)==="success"?((i=(r=L(this,Xo)).onSuccess)==null||i.call(r,n.data,c,d),(a=(o=L(this,Xo)).onSettled)==null||a.call(o,n.data,null,c,d)):(n==null?void 0:n.type)==="error"&&((l=(s=L(this,Xo)).onError)==null||l.call(s,n.error,c,d),(f=(u=L(this,Xo)).onSettled)==null||f.call(u,void 0,n.error,c,d))}this.listeners.forEach(c=>{c(L(this,Ha))})})},lj),mF=k.createContext(void 0),D1=e=>{const t=k.useContext(mF);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bje=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(mF.Provider,{value:e,children:t})),gF=k.createContext(!1),Fje=()=>k.useContext(gF);gF.Provider;function Uje(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var zje=k.createContext(Uje()),Wje=()=>k.useContext(zje);function yF(e,t){return typeof e=="function"?e(...t):!!e}function o_(){}var Yje=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Vje=e=>{k.useEffect(()=>{e.clearReset()},[e])},Hje=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&yF(n,[e.error,r]),Gje=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},qje=(e,t)=>e.isLoading&&e.isFetching&&!t,Kje=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,BM=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Xje(e,t,n){var f,c,d,h,p;const r=D1(),i=Fje(),o=Wje(),a=r.defaultQueryOptions(e);(c=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||c.call(f,a),a._optimisticResults=i?"isRestoring":"optimistic",Gje(a),Yje(a,o),Vje(o);const s=!r.getQueryCache().get(a.queryHash),[l]=k.useState(()=>new t(r,a)),u=l.getOptimisticResult(a);if(k.useSyncExternalStore(k.useCallback(m=>{const g=i?o_:l.subscribe(hn.batchCalls(m));return l.updateResult(),g},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),k.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),Kje(a,u))throw BM(a,l,o);if(Hje({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw u.error;if((h=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||h.call(d,a,u),a.experimental_prefetchInRender&&!Dl&&qje(u,i)){const m=s?BM(a,l,o):(p=r.getQueryCache().get(a.queryHash))==null?void 0:p.promise;m==null||m.catch(o_).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function vF(e,t){return Xje(e,Ije)}function nc(e,t){const n=D1(),[r]=k.useState(()=>new Lje(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);const i=k.useSyncExternalStore(k.useCallback(a=>r.subscribe(hn.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=k.useCallback((a,s)=>{r.mutate(a,s).catch(o_)},[r]);if(i.error&&yF(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}const FM=(e,t)=>vF({queryKey:[e.includes("expend")?"expend":"income",t==null?void 0:t.month],queryFn:async()=>{var n;try{return(await qn.get(e,{params:t})).data}catch(r){throw((n=r.response)==null?void 0:n.status)===500&&console.error("서버 에러:",r.response.data),r}},staleTime:5e3,cacheTime:3e5}),Qje=e=>{if(!e){alert("지출 데이터가 필요합니다.");return}return console.log("생성 요청 데이터:",e),qn.post("/api/expend",{expendDate:e.expendDate,cost:Number(e.cost),category:e.category,expendName:e.expendName,asset:e.asset})},Zje=(e,t)=>{if(!e){alert("지출 ID가 필요합니다.");return}return console.log("수정 요청 데이터:",{id:e,...t}),qn.put(`/api/expend/update/${e}`,{expendDate:t.expendDate,cost:Number(t.cost),category:t.category,expendName:t.expendName,asset:t.asset})},Jje=e=>{if(!e){alert("지출 ID가 필요합니다.");return}return qn.delete(`/api/expend/delete/${e}`)},e6e=e=>{if(!e){alert("수입 데이터가 필요합니다.");return}return console.log("수입 생성 요청 데이터:",e),qn.post("/api/income",{incomeDate:e.incomeDate,cost:Number(e.cost),category:e.category,incomeName:e.incomeName,asset:e.asset})},t6e=(e,t)=>{if(!e){alert("수입 ID가 필요합니다.");return}return console.log("수입 수정 요청 데이터:",{id:e,...t}),qn.put(`/api/income/update/${e}`,{incomeDate:t.incomeDate,cost:Number(t.cost),category:t.category,incomeName:t.incomeName,asset:t.asset})},n6e=e=>{if(!e){alert("수입 ID가 필요합니다.");return}return qn.delete(`/api/income/delete/${e}`)};function r6e(){const[e,t]=k.useState("전체"),[n,r]=k.useState(new Date),[i,o]=k.useState(1),[a,s]=k.useState(!1),[l,u]=k.useState("expend"),[f,c]=k.useState(null),d=D1(),h=9,p=n.getMonth()+1,{data:m,isLoading:g,error:y}=FM("/api/expend/list",{month:p}),{data:v,isLoading:b,error:A}=FM("/api/income/list",{month:p}),w=nc({mutationFn:M=>l==="income"?e6e(M):Qje(M),onSuccess:()=>{d.invalidateQueries(["transactions"]),alert("거래가 추가되었습니다!")},onError:M=>{var T;console.error("추가 실패:",((T=M.response)==null?void 0:T.data)||M.message),alert("거래 추가에 실패했습니다.")}}),S=nc({mutationFn:({id:M,data:T,type:R})=>R==="income"?t6e(M,T):Zje(M,T),onSuccess:()=>{d.invalidateQueries(["transactions"]),alert("거래가 수정되었습니다!")},onError:M=>{var T;console.error("수정 실패:",((T=M.response)==null?void 0:T.data)||M.message),alert("거래 수정에 실패했습니다.")}}),_=nc({mutationFn:({id:M,type:T})=>T==="income"?n6e(M):Jje(M),onSuccess:()=>{d.invalidateQueries(["transactions"]),alert("거래가 삭제되었습니다!")},onError:M=>{var T;console.error("삭제 실패:",((T=M.response)==null?void 0:T.data)||M.message),alert("거래 삭제에 실패했습니다.")}}),C=e==="전체"?[...(m||[]).map(T=>({...T,type:"지출",transactionDate:T.expendDate,amount:T.cost})),...(v||[]).map(T=>({...T,type:"수입",transactionDate:T.incomeDate,amount:T.amount}))].sort((T,R)=>{const I=new Date(R.transactionDate).getTime()-new Date(T.transactionDate).getTime();return I!==0?I:R.amount-T.amount}):e==="수입"?v||[]:m||[],P=(M,T=null)=>{u(M),c(T||null),s(!0)},O=()=>{c(null),s(!1)},$=M=>{if(f){const T=f.incomeId||f.expendId,R=f.incomeId?"income":"expend";S.mutate({id:T,data:M,type:R})}else w.mutate(M);O()},E=(M,T)=>{window.confirm("정말 삭제하시겠습니까?")&&_.mutate({id:M,type:T})};return x.jsxs(mf,{children:[x.jsxs(i6e,{children:[x.jsxs(o6e,{children:[x.jsx(a6e,{children:"최근 거래 내역"}),x.jsx(oje,{activeTab:e,setActiveTab:t})]}),x.jsxs(s6e,{children:[x.jsxs(l6e,{children:[x.jsx(UM,{onClick:()=>r(new Date(n.getFullYear(),n.getMonth()-1)),children:"‹"}),x.jsx(u6e,{children:n.toISOString().slice(0,7).replace("-","년 ")+"월"}),x.jsx(UM,{onClick:()=>r(new Date(n.getFullYear(),n.getMonth()+1)),children:"›"})]}),y||A?x.jsx(If,{}):g||b?x.jsx(Xl,{}):x.jsxs(x.Fragment,{children:[x.jsx(c6e,{children:x.jsx(uje,{transactions:C,currentPage:i,itemsPerPage:h,onEdit:M=>P(M.incomeId?"income":"expend",M),onDelete:E})}),x.jsxs(f6e,{children:[x.jsx(d6e,{children:x.jsx(iF,{currentPage:i,totalItems:(C==null?void 0:C.length)||0,itemsPerPage:h,onPageChange:o})}),e!=="전체"&&x.jsx(h6e,{onClick:()=>P(e==="수입"?"income":"expend"),children:"작성하기"})]})]})]})]}),x.jsx(pje,{isOpen:a,onClose:O,onSubmit:$,type:l,editData:f})]})}const i6e=D.div` + margin-top: 20px; +`,o6e=D.div` + margin-bottom: 20px; +`,a6e=D.h1` + font-size: 24px; + font-weight: 400; + margin-left: 20px; + margin-bottom: 15px; + color: ${({theme:e})=>e.colors.gray03}; +`,s6e=D.div` + background: ${({theme:e})=>e.colors.white}; + border-radius: 6px; + padding: 20px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + max-width: 93%; + margin: 0 auto; + min-height: 630px; + display: flex; + flex-direction: column; +`,l6e=D.div` + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 20px; +`,UM=D.button` + background: none; + border: none; + font-size: 22px; + cursor: pointer; + margin: 0 16px; + color: ${({theme:e})=>e.colors.black}; +`,u6e=D.span` + font-size: 18px; + font-weight: bold; + margin: 0 90px; + color: ${({theme:e})=>e.colors.black}; +`,c6e=D.div` + flex-grow: 1; + overflow-y: auto; +`,f6e=D.div` + display: flex; + justify-content: center; + align-items: center; + position: relative; + height: 60px; + margin-top: 20px; +`,d6e=D.div` + position: absolute; + left: 50%; + transform: translateX(-50%); +`,h6e=D.button` + position: absolute; + right: 30px; + height: 40px; + padding: 0 24px; + background-color: ${({theme:e})=>e.colors.blue}; + color: ${({theme:e})=>e.colors.white}; + border: none; + border-radius: 6px; + font-size: 14px; + cursor: pointer; + + &:hover { + background-color: ${({theme:e})=>e.colors.primaryHover}; + } +`,p6e=({closeModal:e,editPayment:t,onSave:n})=>{const[r,i]=k.useState({date:"",service:"",details:"",lastPayment:"",amount:""});k.useEffect(()=>{i(t?{date:t.dueDate||"",service:t.tradeName||"",details:t.paymentDetail||"",lastPayment:t.lastPayment||"",amount:t.cost?t.cost.toString():""}:{date:"",service:"",details:"",lastPayment:"",amount:""})},[t]);const o=s=>{s.preventDefault();const l=/^\d{4}-\d{2}-\d{2}$/;if(!r.date.match(l)||!r.lastPayment.match(l)){alert("날짜 형식은 YYYY-MM-DD여야 합니다.");return}const u=r.amount.replace(/[^0-9]/g,"");if(!u||Number(u)<=0){alert("유효한 금액을 입력하세요.");return}const f={paymentDetail:r.details,dueDate:r.date,lastPayment:r.lastPayment,cost:Number(u),tradeName:r.service};n(f)},a=s=>{const{name:l,value:u}=s.target;if(l==="amount"){const f=u.replace(/[^0-9]/g,"");i(c=>({...c,[l]:f}))}else i(f=>({...f,[l]:u}))};return x.jsx(m6e,{onClick:e,children:x.jsxs(g6e,{onClick:s=>s.stopPropagation(),children:[x.jsx(y6e,{children:"결제 예정일"}),x.jsx(v6e,{onClick:e,children:"✕"}),x.jsxs(b6e,{onSubmit:o,children:[x.jsxs(yd,{children:[x.jsx(vd,{children:"결제 예정일이 며칠인가요?"}),x.jsx(bd,{type:"text",name:"date",value:r.date,onChange:a,placeholder:"YYYY-MM-DD"})]}),x.jsxs(yd,{children:[x.jsx(vd,{children:"상호"}),x.jsx(bd,{type:"text",name:"service",value:r.service,onChange:a,placeholder:"브랜드 또는 회사명을 입력해 주세요."})]}),x.jsxs(yd,{children:[x.jsx(vd,{children:"상세내역"}),x.jsx(bd,{type:"text",name:"details",value:r.details,onChange:a,placeholder:"정기 구독 등과 같은 자세한 내용을 입력해 주세요."})]}),x.jsxs(yd,{children:[x.jsx(vd,{children:"마지막 결제"}),x.jsx(bd,{type:"text",name:"lastPayment",value:r.lastPayment,onChange:a,placeholder:"YYYY-MM-DD"})]}),x.jsxs(yd,{children:[x.jsx(vd,{children:"금액"}),x.jsx(bd,{type:"text",name:"amount",value:r.amount.replace(/\B(?=(\d{3})+(?!\d))/g,","),onChange:a,placeholder:"금액을 입력하세요."})]}),x.jsx(x6e,{type:"submit",children:"저장"})]})]})})},m6e=D.div` + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.2); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; +`,g6e=D.div` + background: ${({theme:e})=>e.colors.white}; + padding: 32px; + border-radius: 12px; + width: 420px; + position: relative; +`,y6e=D.h2` + font-size: 20px; + font-weight: 600; + color: ${({theme:e})=>e.colors.black02}; + margin-bottom: 32px; +`,v6e=D.button` + position: absolute; + top: 24px; + right: 24px; + background: none; + border: none; + font-size: 24px; + color: ${({theme:e})=>e.colors.gray03}; + cursor: pointer; +`,b6e=D.form` + display: flex; + flex-direction: column; + gap: 24px; +`,yd=D.div` + display: flex; + flex-direction: column; + gap: 8px; +`,vd=D.label` + font-size: 14px; + font-weight: bold; + color: ${({theme:e})=>e.colors.black02}; +`,bd=D.input` + width: 100%; + height: 48px; + padding: 0 16px; + border: 1px solid ${({theme:e})=>e.colors.gray00}; + border-radius: 8px; + font-size: 14px; + box-sizing: border-box; + + &::placeholder { + color: ${({theme:e})=>e.colors.gray03}; + font-style: italic; + } + + &:focus { + outline: none; + border-color: ${({theme:e})=>e.colors.blue}; + } +`,x6e=D.button` + width: 100%; + height: 48px; + background: ${({theme:e})=>e.colors.blue}; + color: ${({theme:e})=>e.colors.white}; + border: none; + border-radius: 8px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + + &:hover { + opacity: 0.9; + } +`,w6e=async()=>{var e;try{const t=await qn.get("/api/payment/list");return console.log("GET 요청 성공:",t.data),t.data||[]}catch(t){throw console.error("GET 요청 실패:",((e=t.response)==null?void 0:e.data)||t.message),t}},S6e=async e=>{var t;if(!e){alert("결제 예정 데이터가 필요합니다.");return}try{console.log("생성 요청 데이터:",e);const n=await qn.post("/api/payment",{paymentDetail:e.paymentDetail,dueDate:e.dueDate,lastPayment:e.lastPayment,cost:Number(e.cost),tradeName:e.tradeName});return console.log("POST 요청 성공:",n.data),n}catch(n){throw console.error("POST 요청 실패:",((t=n.response)==null?void 0:t.data)||n.message),n}},A6e=async(e,t)=>{var n;if(!e){alert("결제 예정 ID가 필요합니다.");return}try{console.log("수정 요청 데이터:",{id:e,...t});const r={paymentDetail:t.paymentDetail,dueDate:t.dueDate,lastPayment:t.lastPayment,cost:typeof t.cost=="string"?Number(t.cost.replace(/[^0-9]/g,"")):t.cost,tradeName:t.tradeName},i=await qn.put(`/api/payment/update/${e}`,r);return console.log("PUT 요청 성공:",i.data),i}catch(r){throw console.error("PUT 요청 실패:",((n=r.response)==null?void 0:n.data)||r.message),r}},_6e=async e=>{var t;if(!e){alert("결제 예정 ID가 필요합니다.");return}try{console.log("삭제 요청 ID:",e);const n=await qn.delete(`/api/payment/delete/${e}`);return console.log("DELETE 요청 성공:",n.data),n}catch(n){throw console.error("DELETE 요청 실패:",((t=n.response)==null?void 0:t.data)||n.message),n}},O6e=()=>vF({queryKey:["scheduledPayments"],queryFn:async()=>{var e;try{return await w6e()}catch(t){throw((e=t.response)==null?void 0:e.status)===500&&console.error("결제 예정 목록 서버 에러:",t.response.data),t}},staleTime:5e3,cacheTime:3e5});function k6e(){const[e,t]=k.useState(1),[n,r]=k.useState(!1),[i,o]=k.useState(null),a=D1(),s=5,{data:l=[],isLoading:u,isError:f,error:c}=O6e(),d=nc({mutationFn:S6e,onSuccess:()=>{a.invalidateQueries(["scheduledPayments"]),alert("결제 예정이 성공적으로 추가되었습니다.")},onError:S=>{var _;console.error("결제 예정 추가 실패:",((_=S.response)==null?void 0:_.data)||S.message),alert("결제 예정 추가에 실패했습니다.")}}),h=nc({mutationFn:async({id:S,data:_})=>A6e(S,_),onSuccess:()=>{a.invalidateQueries(["scheduledPayments"]),alert("결제 예정이 성공적으로 수정되었습니다.")},onError:S=>{var _;console.error("결제 예정 수정 실패:",((_=S.response)==null?void 0:_.data)||S.message),alert("결제 예정 수정에 실패했습니다.")}}),p=nc({mutationFn:_6e,onSuccess:()=>{a.invalidateQueries(["scheduledPayments"]),alert("결제 예정이 성공적으로 삭제되었습니다.")},onError:S=>{var _;console.error("결제 예정 삭제 실패:",((_=S.response)==null?void 0:_.data)||S.message),alert("결제 예정 삭제에 실패했습니다.")}}),m=(S=null)=>{o(S),r(!0)},g=()=>{o(null),r(!1)},y=S=>{if(!S.paymentDetail||!S.dueDate||!S.lastPayment||!S.cost||!S.tradeName){alert("모든 필드를 입력해야 합니다.");return}i?h.mutate({id:i.paymentId,data:S}):d.mutate(S),g()},v=S=>{window.confirm("정말 삭제하시겠습니까?")&&p.mutate(S)},b=e*s,A=b-s,w=l.slice(A,b);return x.jsxs(mf,{children:[x.jsxs(C6e,{children:[x.jsx($6e,{children:"결제 예정"}),x.jsx(P6e,{children:x.jsxs(T6e,{children:[x.jsx("thead",{children:x.jsxs("tr",{children:[x.jsx(mu,{children:"결제 예정일"}),x.jsx(mu,{children:"상호"}),x.jsx(mu,{children:"상세내역"}),x.jsx(mu,{children:"마지막 결제"}),x.jsx(mu,{children:"금액"}),x.jsx(mu,{children:"편집"})]})}),x.jsx("tbody",{children:u?x.jsx("tr",{children:x.jsx(Uo,{colSpan:"6",children:x.jsx(Xl,{})})}):f?x.jsx("tr",{children:x.jsx(Uo,{colSpan:"6",children:"서버와의 연결에 문제가 발생했습니다."})}):w.length===0?x.jsx("tr",{children:x.jsx(Uo,{colSpan:"6",children:"결제 예정 내역이 없습니다."})}):w.map(S=>x.jsxs(E6e,{children:[x.jsx(Uo,{children:S.dueDate}),x.jsx(Uo,{children:S.tradeName}),x.jsx(Uo,{children:S.paymentDetail}),x.jsx(Uo,{children:S.lastPayment}),x.jsxs(Uo,{children:[S.cost.toLocaleString(),"원"]}),x.jsx(Uo,{children:x.jsxs(M6e,{children:[x.jsx(j6e,{onClick:()=>m(S),children:"수정"}),x.jsx(R6e,{onClick:()=>v(S.paymentId),children:"삭제"})]})})]},S.paymentId))})]})}),x.jsxs(D6e,{children:[x.jsx(N6e,{children:x.jsx(iF,{currentPage:e,totalItems:l.length,itemsPerPage:s,onPageChange:t})}),x.jsx(I6e,{onClick:()=>m(),children:"작성하기"})]})]}),n&&x.jsx(p6e,{closeModal:g,editPayment:i,onSave:y})]})}const C6e=D.div` + margin-top: 20px; +`,$6e=D.h1` + font-size: 24px; + font-weight: 400; + margin-left: 20px; + margin-bottom: 15px; + color: ${({theme:e})=>e.colors.gray03}; +`,P6e=D.div` + background: ${({theme:e})=>e.colors.white}; + border-radius: 6px; + padding: 20px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + max-width: 93%; + margin: 0 auto; + min-height: 630px; + display: flex; + flex-direction: column; +`;D.div` + text-align: center; + color: ${({theme:e})=>e.colors.gray03}; + font-size: 18px; + margin: 50px 0; +`;const T6e=D.table` + width: 100%; + border-collapse: collapse; + table-layout: fixed; +`,mu=D.th` + padding: 10px; + text-align: center; + font-weight: bold; + color: ${({theme:e})=>e.colors.black02}; +`,E6e=D.tr` + &:hover { + background-color: #f9f9f9; + } +`,Uo=D.td` + padding: 12px 8px; + text-align: center; + color: ${({theme:e})=>e.colors.gray05}; +`,M6e=D.div` + display: flex; + gap: 4px; +`,j6e=D.button` + padding: 5px 15px; + border: 1px solid ${({theme:e})=>e.colors.black}; + background: transparent; + color: ${({theme:e})=>e.colors.black}; + border-radius: 4px; + cursor: pointer; + + &:hover { + color: ${({theme:e})=>e.colors.gray06}; + } +`,R6e=D.button` + padding: 5px 15px; + border: none; + background: ${({theme:e})=>e.colors.black}; + color: ${({theme:e})=>e.colors.white}; + border-radius: 4px; + cursor: pointer; + + &:hover { + background: ${({theme:e})=>e.colors.gray06}; + } +`,I6e=D.button` + position: absolute; + right: 30px; + height: 40px; + padding: 0 24px; + background-color: ${({theme:e})=>e.colors.blue}; + color: ${({theme:e})=>e.colors.white}; + border: none; + border-radius: 6px; + font-size: 14px; + cursor: pointer; + + &:hover { + background: ${({theme:e})=>e.colors.primaryHover}; + } +`,D6e=D.div` + display: flex; + justify-content: center; + align-items: center; + position: relative; + margin-top: 20px; +`,N6e=D.div` + position: absolute; + left: 50%; + transform: translateX(-50%); +`,L6e=({data:e})=>{const t=Math.max(...e.map(n=>n.costNum));return x.jsx(JB,{data:e.map(n=>({day:`${n.dayNum}일`,일:n.costNum})),keys:["일"],indexBy:"day",layout:"vertical",margin:{top:50,right:130,bottom:50,left:60},padding:.5,innerPadding:10,groupMode:"grouped",indexScale:{type:"band",round:!1},colors:"#007BFF",borderRadius:5,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisLeft:{tickSize:0,tickPadding:10,tickRotation:0,legendPosition:"middle",legendOffset:-40,format:n=>`${n/1e4} 만원`,tickValues:5,maxValue:Math.ceil(t/5)*5},enableLabel:!1,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},tooltip:({id:n,value:r,indexValue:i})=>x.jsxs("div",{style:{padding:"5px 10px",background:"white",border:"1px solid #ccc",borderRadius:"4px"},children:[x.jsx("strong",{children:i}),":",r.toLocaleString()," 원"]}),legends:[{dataFrom:"keys",anchor:"top-right",direction:"row",justify:!1,translateX:100,translateY:-40,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemOpacity:.85,symbolSize:20,effects:[{on:"hover",style:{itemOpacity:1}}]}],role:"application",motionConfig:"molasses",ariaLabel:"Nivo bar chart demo",barAriaLabel:n=>`${n.id}: ${n.formattedValue} in week: ${n.indexValue}`})},bF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGRSURBVHgB7VTLbcJAEF1bluAWd4DTQToAKggdQCqAHIEDi5A/8iWmApwOSAekAzqwU0HI0QfbeYN2E8dZGyMlUhTxJPDMzuzMe7NrM3bBv4fWNNFxnFDTtGHT/Ol0eqxtsDOR5/ljXRwkunhYrAl837/xPG8sfdd1+ak9pBR5ufSVCjjnZqvVGqdpykXhCR59yOaiyABMH6DmfjabbRGPsix7ms/nk3Ktbw1Wq1XPMIwNTAsFnlFoD5tURFATYG2NRls0sRA70B6svcCOVWS1Iut2u71AMrE44LkEu0AooGZcHHIMtkuwDVnFiChPHrIuAxhJJIqvkyS5lsUJSI7hj2DeHTfp+sa27ZGMg8AXv2pEZtUcC43oAHcwI1a4KSDWR9O3Uw2I2Sv7lDrARrMQ25ESVRGos1gF6t6DAEU70oE6Gk+oSsR46Hz2dKPKMZ39AEBkgQa3qtjZb7IK8sYom7NfRllBj66csK+KAYxhiFgXozBx+B/rWAtKud26BhZ+I6ZGj/6KxYVPn40Ou+DP4h1SlKyBkg8g7gAAAABJRU5ErkJggg==",xF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAUCAYAAACAl21KAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGOSURBVHgBtZPLbcJAEIbXxjyOpANSQaADUkGggtBByAUJOMS+gMQF6MCpIKYCkgriDuISfPRTzv9LXmWRvMTkMdJqx7Oz3zx2bIgzYtt2t9PpPFGPosjBd6jzNXQHm82mn+f5C9ReaQqwbufzeVDlb1YZV6vVFJBjCZFZUP/gmfguI5bSbre3UCcyi0ajMQaUMAmmuFiOmp2plgLIuwLZx3E8mM1mPi+gVwPayjP6HNfrde8kI6ZrGMa2tIVFUTiLxWInNGXDlw/QlYUgkGOAypSHtADgw2msa6iUMpOTUi0JYdpJkth8YsKzLNujP/ewvyFAmKap12w2bQR6RSAP9mv4udjpM1FfzVPmZGiaZheX+tC5eq1WawfbA6CyJIFgrtRNUV+G5w51oBBl3TE6sroRNUQHegZkBAjLYGme+AkIzZwC9MgmY5aulsslX9MXX1NeD0TBNPNyKB8A8BE2/2LQpfL/IMuyAmwH1YaeHTBLQZU/f5GCCnrC5mp7UCUYkb78Ry3FuBW/kD/r0SdC+qxwiKo9kgAAAABJRU5ErkJggg==",wF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEWSURBVHgB3VPLDYMwDA2fAToCI3SDskG7QWGC9oo4QIWAcyeAFboBI3QEJoE+S4AQJcGJxKF9Ehg5tt+zTYT4dViqw7Ise8FAFEXSOrbYGS4nSKaQ0+HuHWgRkGLuXowITDDtgKNM9bdsEpiAQ+iaJOlAq4OiKGrLsq6qmK7rnnEc3zcJxp3MO0LxU9/3bzyvtRzbts+DgG2CJbIs82E8FA+hsBbroloQVLA+hDVKguUuHMcJhs9jnuepJO1AL4zpAtMoCZag8ZDFGG6M2GlMOjvwoOwBghZWLMeE+ID8FIeYZPSb3OQKBSqun72DGcJBqczvsQjWMLYOSyOpVs6/crTuAYH2IBgiNglkwHJT1TmEJeKv8AHdZW4CDi3CdgAAAABJRU5ErkJggg==",SF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHGSURBVHgB3VXLbcJAEF2bPyc6iNOBU0HsCgIVABWAL0hwwTkAEidSQaACKMGpICnBqSAc+QnnzWbHciwiWcY+hJGsmZ2dffPbHQvx30kTGZDrukapVLIgmpqm3Y1Go1ZqBwx2PB43kLekm81mS7A22+z3+3vs+SQXk4Dpuu4Nh0N5oFKp9MF64ARok65arfZ3u90jRIPW5XLZBJP2egSsMZlMOvhM1sGwCfDXIAjWtE86OCIHHj4LkY9J5zjOVjmTGcE+xNBVigYieicwfCEYarkAW6GuJqIcR5LrqghdnLWUYx/ApO+ifAs25BJZnB5xOFvH08fh/nQ6/SSnBDafz1un08mAc5/BsLcRMZJNxsEmDNexPRdAz5whpQ2bD+5FUpIZ1Go1D1FS/d7O57MPII/A2EiB+iIFhdcUUQYiQ0JQElsXOVPxL89pKV6JzDMoFAoPuBArXhdFxjQYDOhydHidSw/4oebiAG+qTVOBnWTqgMDxfpYQG/V63SDdVT2gYYeGNg+Hg43B+KTAt2i0rXpxdZM1GoRUEvEzy36BS4NINF9gjYTANt6Lp87R5OxdAieK9sARCecN5pXFsvo/vFwCvw36BnuavLIn1PJeAAAAAElFTkSuQmCC",AF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADoSURBVHgB7ZSxDYMwEEXPEQUl2QA2IBtkkygbJCVUpIGWDRCbZIOs4BFoXTnfkYmIIbIdlALEk06Gj33fdxYmWjrMZVJVVTGGBpEiIsQdcc6yjNvWWg108odO/EZK2THGDjaTHdlpdPJWCLHHmKhnJI/0N5prcNRjATq14zAML0pAFalt8ahFZVmesLuajJY4wGFY5HneDsVRBUhe/JBcESNqUwy+TCS04lUdDlkO33tMXb3rc/nA5QxmETjM4Z66nwFakPjoJn9v0WawGSzAYOpH6xBRf9d4wk1hqoIrOV4DBmpjN1odTwiXQKLQZhlbAAAAAElFTkSuQmCC",_F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABhSURBVHgB7ZQxDgAgCAPR+GlewLM1bMaohcHA4G0kHWhJIfoAyjyISL+Jmbl4dEqlxzQCGyinjS26GAdW0C2UnA7W7G/EOEDZ5u2BJ9udPr4Hnmyt5P5FFnL2wKN77uADGbH+LVy7ZliAAAAAAElFTkSuQmCC";function B6e(){const[e,t]=k.useState([]),[n,r]=k.useState([]);return k.useEffect(()=>{(async()=>{try{const s=await fetch("http://3.37.214.150:8080/api/expend/expendList/day",{method:"GET",headers:{Authorization:"Bearer undefined"}});if(!s.ok)throw new Error("주간 데이터를 불러오는 데 실패했습니다.");const l=await s.json();t(l)}catch(o){console.error("주간 데이터 API 요청 오류:",o)}})()},[]),k.useEffect(()=>{(async()=>{try{const s=await fetch("http://3.37.214.150:8080/api/expend/expendList",{method:"GET",headers:{Authorization:"Bearer undefined"}});if(!s.ok)throw new Error("비용 데이터를 불러오는 데 실패했습니다.");const l=await s.json();r(l)}catch(o){console.error("비용 데이터 API 요청 오류:",o)}})()},[]),x.jsxs(mf,{children:[x.jsx(F6e,{children:"소비 분석"}),x.jsxs(U6e,{children:[x.jsxs(zM,{children:[x.jsx(z6e,{children:"주간 분석"}),x.jsxs(Y6e,{children:[x.jsx(L6e,{data:e})," "]})]}),x.jsxs(zM,{children:[x.jsx(W6e,{children:"비용 내역"}),x.jsx(V6e,{children:n.map((i,o)=>{const s={납부:bF,식비:xF,교통:wF,오락:SF,쇼핑:AF,기타:_F}[i.categoryName];return x.jsxs(H6e,{hasDetails:i.expendList.length>0,children:[x.jsxs(G6e,{children:[x.jsxs(q6e,{children:[x.jsx(a8e,{children:x.jsx(K6e,{src:s,alt:i.categoryName})}),x.jsx(X6e,{children:i.categoryName})]}),x.jsxs(Z6e,{change:i.upOrDown,children:[i.percent,"% ",i.upOrDown,x.jsx(o8e,{children:"지난달 대비"})]})]}),x.jsxs(Q6e,{children:[i.amount.toLocaleString(),"원"]}),i.expendList.length>0&&x.jsx(J6e,{children:i.expendList.map(l=>x.jsxs(e8e,{children:[" ",x.jsx(t8e,{children:l.expendName}),x.jsxs(n8e,{children:[x.jsxs(r8e,{children:[l.cost.toLocaleString(),"원"]}),x.jsx(i8e,{children:l.expendDate.split("T")[0]})]})]},l.expendID))})]},o)})})]})]})]})}const F6e=D.h1` + width: 82px; + height: 32px; + top: 112px; + left: 312px; + font-family: Pretendard; + font-size: 18px; + font-weight: 400; + line-height: 32px; + text-align: left; + margin-left: 20px; + margin-top: 10px; + color: rgba(135, 135, 135, 1); +`,U6e=D.div` + padding: 16px 32px; + margin-top: -20px; +`,zM=D.div` + margin-bottom: 32px; + padding: 16px; +`,z6e=D.h2` + font-family: Pretendard; + font-size: 13px; + font-weight: 700; + line-height: 32px; + text-align: left; + margin-left: 20px; + margin-top: -10px; +`,W6e=D.h2` + font-family: Pretendard; + font-size: 18px; + font-weight: 400; + line-height: 32px; + text-align: left; + margin-top: -25px; + color: rgba(135, 135, 135, 1); + padding: 10px; +`,Y6e=D.div` + max-width: 1104px; + height: 296px; + background: rgba(255, 255, 255, 1); + box-shadow: 0px 20px 25px 0px rgba(76, 103, 100, 0.1); + margin: -30px; + padding: 24px 0; + border-radius: 8px; +`,V6e=D.div` + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 16px; +`,H6e=D.div` + border: 1px solid #ddd; + background: #fff; + display: flex; + flex-direction: column; + margin: -2px; + box-shadow: 0px 20px 25px 0px rgba(76, 103, 100, 0.1); + width: 352px; + height: 210px; + ${({hasDetails:e})=>e&&` + background: #f5f5f5; + + & > div:last-child { + background: #fff; + flex-grow: 1; + } + `} +`,G6e=D.div` + padding: 1rem; + background: #f5f5f5; + display: flex; + justify-content: space-between; + align-items: center; +`,q6e=D.div` + display: flex; + align-items: center; + margin-left: -12px; +`,K6e=D.img` + width: 24px; + height: 24px; + object-fit: contain; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +`,X6e=D.div` + font-family: Pretendard; + font-size: 16px; + font-weight: 500; + line-height: 32px; + text-align: left; + text-underline-position: from-font; + text-decoration-skip-ink: none; + color: rgba(102, 102, 102, 1); + margin-left: 10px; + margin-top: -20px; +`,Q6e=D.div` + font-family: Pretendard; + font-size: 18px; + font-weight: 600; + line-height: 32px; + text-align: left; + text-underline-position: from-font; + text-decoration-skip-ink: none; + margin-left: 65px; + margin-top: -40px; + margin-bottom: 10px; +`,Z6e=D.div` + color: ${({change:e})=>{const t=e==null?void 0:e.toLowerCase().trim();return t==="up"?"red":t==="down"?"blue":"gray"}}; + text-align: right; + font-family: Pretendard; + font-size: 16px; + font-weight: 600; +`,J6e=D.div` + padding: 10px; + background: #f5f5f5; + border-top: 1px solid #ddd; + display: flex; + flex-direction: column; + flex-grow: 1; +`,e8e=D.div` + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px; + border-bottom: 1px solid #eee; + height: 37px; + &:nth-child(2) { + border-bottom: none; + } +`,t8e=D.div` + color: #333; + flex: 1; + font-family: Pretendard; + font-size: 16px; + font-weight: 500; + line-height: 32px; + text-align: left; + text-underline-position: from-font; + text-decoration-skip-ink: none; +`,n8e=D.div` + display: flex; + flex-direction: column; + align-items: flex-end; +`,r8e=D.div` + margin-bottom: 0.2rem; + font-family: Pretendard; + font-size: 16px; + font-weight: 600; + line-height: 32px; + text-align: left; + text-underline-position: from-font; + text-decoration-skip-ink: none; +`,i8e=D.div` + color: rgba(105, 105, 105, 1); + font-family: Pretendard; + font-size: 14px; + text-align: right; +`,o8e=D.div` + font-size: 0.8rem; + color: #888; + margin-top: 0.5rem; + margin: 0px; + padding: 0px; +`,a8e=D.div` + display: flex; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; + border-radius: 8px; + background: rgba(210, 210, 210, 0.25); + position: relative; + margin-left: 10px; + margin-top: 0; +`,s8e=({date:e,onClose:t,onSubmit:n})=>{const[r,i]=k.useState(""),[o,a]=k.useState(""),s=1;k.useEffect(()=>{if(e)try{a(e.toISOString().split("T")[0])}catch(u){console.error("날짜 변환 오류:",u),a("날짜 오류")}},[e]);const l=async()=>{if(!r||isNaN(parseFloat(r))||parseFloat(r)<=0){alert("유효한 금액을 입력해주세요.");return}const u=JSON.stringify({date:o,amount:parseFloat(r)});try{const f=await fetch(`http://3.37.214.150:8080/api/target/savings/${s}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"},body:u}),c=await f.text();if(!f.ok){console.error(`서버 응답 실패: ${f.status} ${f.statusText}`),console.error("서버 응답 내용:",c),alert("저축 금액 설정에 실패했습니다.");return}if(console.log("서버 응답 내용:",c),c){const d=JSON.parse(c);console.log("저축 금액이 성공적으로 설정되었습니다.",d),n(r),t()}else console.warn("응답 본문이 비어 있습니다."),n(r),t()}catch(f){console.error("저축 금액 설정 실패:",f),alert("저축 금액 설정 중 오류가 발생했습니다.")}};return x.jsx(l8e,{onClick:t,children:x.jsxs(u8e,{onClick:u=>u.stopPropagation(),children:[x.jsx(c8e,{onClick:t,children:"×"}),x.jsx(p8e,{children:"저축 금액"}),x.jsx(f8e,{children:o})," ",x.jsx(d8e,{type:"text",inputMode:"numeric",placeholder:"저축 금액을 입력하세요",value:r,onChange:u=>i(u.target.value)}),x.jsx(h8e,{onClick:l,children:"저장"})]})})},l8e=D.div` + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; +`,u8e=D.div` + position: relative; + background: white; + padding: 20px; + border-radius: 8px; + width: 400px; + height: 200px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +`,c8e=D.button` + position: absolute; + top: 10px; + right: 10px; + font-size: 32px; + cursor: pointer; + color: #333; + background: none; + border: none; +`,f8e=D.div` + font-family: Pretendard; + font-size: 14px; + color: #666; + margin-bottom: 10px; +`,d8e=D.input` + margin: 10px auto; + display: block; + padding: 10px; + border: 1px solid #ccc; + width: 250px; + border-radius: 8px; +`,h8e=D.button` + margin-top: 10px; + padding: 10px 20px; + border: none; + cursor: pointer; + background: #007bff; + color: white; + border-radius: 4px; + width: 192px; +`,p8e=D.h3` + font-family: Pretendard; + font-size: 16px; + font-weight: 600; + margin-bottom: 5px; +`,m8e=({targetId:e})=>{const t=new Date,[n,r]=k.useState(t),[i,o]=k.useState(!1),[a,s]=k.useState(null),[l,u]=k.useState({}),f=new Date(n.getFullYear(),n.getMonth(),1),c=new Date(n.getFullYear(),n.getMonth()+1,0),d=new Date(f);d.setDate(f.getDate()-f.getDay());const h=new Date(c);h.setDate(c.getDate()+(6-c.getDay()));const p=[];let m=new Date(d);for(;m<=h;)p.push(new Date(m)),m.setDate(m.getDate()+1);const g=()=>{r(new Date(n.getFullYear(),n.getMonth()-1,1))},y=()=>{r(new Date(n.getFullYear(),n.getMonth()+1,1))},v=w=>{s(w),o(!0)},b=()=>{o(!1),s(null)},A=w=>{u({...l,[a.toDateString()]:w}),b()};return x.jsxs(g8e,{children:[x.jsxs(y8e,{children:[x.jsx(v8e,{value:`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}`,onChange:w=>{const[S,_]=w.target.value.split("-");r(new Date(S,_-1,1))},children:[...Array(12)].map((w,S)=>x.jsxs("option",{value:`${n.getFullYear()}-${String(S+1).padStart(2,"0")}`,children:[n.getFullYear(),"년 ",S+1,"월"]},S))}),x.jsxs(b8e,{children:[x.jsx(WM,{onClick:g,children:"‹"}),x.jsx(WM,{onClick:y,children:"›"})]})]}),x.jsx(x8e,{children:["일","월","화","수","목","금","토"].map((w,S)=>x.jsx(w8e,{children:w},S))}),x.jsx(S8e,{children:p.map((w,S)=>{const _=w.getDate()===t.getDate()&&w.getMonth()===t.getMonth()&&w.getFullYear()===t.getFullYear(),C=w.getMonth()===n.getMonth();return x.jsxs(A8e,{onClick:()=>v(w),isCurrentMonth:C,children:[_&&x.jsx(_8e,{}),x.jsx(O8e,{isToday:_,children:w.getDate()}),l[w.toDateString()]&&x.jsxs(k8e,{children:[l[w.toDateString()],"원"]})]},S)})}),i&&x.jsx(s8e,{date:a,onClose:b,onSubmit:A,targetId:e})]})},g8e=D.div` + width: 640px; + height: 296px; + background: white; + padding: 20px; + border: 1px solid #ccc; + border-radius: 8px; + display: flex; + flex-direction: column; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); +`,y8e=D.div` + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16px; +`,v8e=D.select` + padding: 5px; + border: none; + cursor: pointer; + font-family: Pretendard; + font-size: 17px; + font-weight: 600; + line-height: 22px; +`,b8e=D.div` + display: flex; + justify-content: space-between; + align-items: center; +`,WM=D.button` + background: none; + border: none; + font-size: 30px; + cursor: pointer; + color: #007bff; + &:hover { + color: #0056b3; + } +`,x8e=D.div` + display: grid; + grid-template-columns: repeat(7, 1fr); + text-align: center; + margin-bottom: 8px; + font-family: Pretendard; + font-size: 13px; + font-weight: 600; + line-height: 18px; + color: rgba(60, 60, 67, 0.3); +`,w8e=D.div` + font-family: Pretendard; + font-size: 16px; + font-weight: 400; + line-height: 25px; + text-align: center; +`,S8e=D.div` + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 8px; + flex-grow: 1; +`,A8e=D.div` + text-align: center; + padding: 10px 0; + border-radius: 8px; + background: #fff; + color: #000; + position: relative; +`,_8e=D.div` + width: 30px; + height: 30px; + background-color: rgba(0, 123, 255, 1); + border-radius: 50%; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 0; +`,O8e=D.div` + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + font-size: 0.9rem; + color: ${({isToday:e})=>e?"#fff":"#000"}; + z-index: 1; +`,k8e=D.div` + font-size: 12px; + color: rgba(0, 123, 255, 1); + position: absolute; + bottom: -12px; + left: 50%; + transform: translateX(-50%); + background-color: rgba(234, 243, 254, 1); + padding: 3px 4px; + border-radius: 4px; + text-align: center; + z-index: 1; +`;function C8e({isOpen:e,onClose:t,targetAmount:n,setTargetAmount:r,onSave:i,selectedCategory:o,currentExpend:a}){const[s,l]=k.useState(n);k.useEffect(()=>{l(n)},[n]);const u=()=>{if(s&&!isNaN(s)){const f=n===0,c=f?"http://3.37.214.150:8080/api/category-target/create":"http://3.37.214.150:8080/api/category-target/update",d=f?"POST":"PUT",h=JSON.stringify({category:o,targetAmount:parseFloat(s)});console.log("API 요청 URL:",c),console.log("API 요청 메소드:",d),console.log("API 요청 본문:",h),fetch(c,{method:d,headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"},body:h}).then(p=>p.ok?p.json():p.text().then(m=>{throw console.error(`서버 응답 실패: ${p.status} ${p.statusText}`),console.error("서버 응답 내용:",m),new Error(`서버 응답 실패: ${p.status} ${p.statusText}`)})).then(p=>{console.log("목표 금액이 성공적으로 저장되었습니다.",p),r(p.targetAmount),i(p.targetAmount),t()}).catch(p=>{console.error("목표 금액 저장 실패:",p)})}else alert("유효한 금액을 입력해주세요.")};return e&&x.jsx($8e,{children:x.jsxs(P8e,{onClick:f=>f.stopPropagation(),children:[x.jsxs(T8e,{children:[x.jsx(M8e,{children:"목표 금액"}),x.jsx(E8e,{onClick:t,children:"×"})]}),x.jsxs(j8e,{children:[x.jsx(R8e,{type:"text",inputMode:"numeric",placeholder:"목표 금액을 입력하세요",value:s,onChange:f=>l(f.target.value)}),x.jsx(I8e,{children:x.jsx(D8e,{onClick:u,children:"저장"})})]})]})})}const $8e=D.div` + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; +`,P8e=D.div` + position: relative; + background: white; + padding: 20px; + border-radius: 8px; + width: 400px; + height: 200px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +`,T8e=D.div` + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; +`,E8e=D.button` + font-size: 32px; + cursor: pointer; + color: #333; + background: none; + border: none; +`,M8e=D.h3` + font-family: Pretendard; + font-size: 16px; + font-weight: 600; + margin: 0 auto; // 중앙 정렬을 위해 변경 +`,j8e=D.div` + display: flex; + flex-direction: column; + gap: 10px; +`,R8e=D.input` + margin: 10px auto; + display: block; + padding: 10px; + border: 1px solid #ccc; + width: 250px; + border-radius: 8px; +`,I8e=D.div` + display: flex; + justify-content: center; +`,D8e=D.button` + margin-top: 10px; + padding: 10px 20px; + border: none; + cursor: pointer; + background: #007bff; + color: white; + border-radius: 4px; + width: 192px; +`;function N8e({isOpen:e,onClose:t,targetAmount:n,setTargetAmount:r,onSave:i,targetId:o}){const[a,s]=k.useState(n);k.useEffect(()=>{s(n)},[n]);const l=(f,c)=>{const d=new Date(f,c,1).toISOString().split("T")[0],h=new Date(f,c+1,0).toISOString().split("T")[0];return{firstDay:d,lastDay:h}},u=()=>{if(a&&!isNaN(a)){const f="http://3.37.214.150:8080/api/target/create",c="POST",d=new Date,{firstDay:h,lastDay:p}=l(d.getFullYear(),d.getMonth()),m=JSON.stringify({targetAmount:parseInt(a,10),startDate:h,endDate:p});console.log("API 요청 URL:",f),console.log("API 요청 메소드:",c),console.log("API 요청 본문:",m),fetch(f,{method:c,headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"},body:m}).then(g=>g.ok?g.json():g.text().then(y=>{throw console.error(`서버 응답 실패: ${g.status} ${g.statusText}`),console.error("서버 응답 내용:",y),new Error(`서버 응답 실패: ${g.status} ${g.statusText}`)})).then(g=>{console.log("저축 목표 금액이 성공적으로 저장되었습니다.",g),r(g.targetAmount),i(g.targetAmount),t()}).catch(g=>{console.error("저축 목표 금액 저장 실패:",g)})}else alert("유효한 금액을 입력해주세요.")};return e&&x.jsx(L8e,{children:x.jsxs(B8e,{onClick:f=>f.stopPropagation(),children:[x.jsxs(F8e,{children:[x.jsx(z8e,{children:"저축 목표 금액"}),x.jsx(U8e,{onClick:t,children:"×"})]}),x.jsxs(W8e,{children:[x.jsx(Y8e,{type:"text",inputMode:"numeric",placeholder:"저축 목표 금액을 입력하세요",value:a,onChange:f=>s(f.target.value)}),x.jsx(V8e,{children:x.jsx(H8e,{onClick:u,children:"저장"})})]})]})})}const L8e=D.div` + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; +`,B8e=D.div` + position: relative; + background: white; + padding: 20px; + border-radius: 8px; + width: 400px; + height: 200px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +`,F8e=D.div` + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; +`,U8e=D.button` + font-size: 32px; + cursor: pointer; + color: #333; + background: none; + border: none; +`,z8e=D.h3` + font-family: Pretendard; + font-size: 16px; + font-weight: 600; + margin: 0 auto; // 중앙 정렬을 위해 변경 +`,W8e=D.div` + display: flex; + flex-direction: column; + gap: 10px; +`,Y8e=D.input` + margin: 10px auto; + display: block; + padding: 10px; + border: 1px solid #ccc; + width: 250px; + border-radius: 8px; +`,V8e=D.div` + display: flex; + justify-content: center; + width: 100%; +`,H8e=D.button` + margin-top: 10px; + padding: 10px 20px; + border: none; + cursor: pointer; + background: #007bff; + color: white; + border-radius: 4px; + width: 192px; +`;function G8e(){var S,_;const e=[{name:"납부",apiCategory:"PAYMENT",icon:bF},{name:"식비",apiCategory:"FOOD",icon:xF},{name:"교통",apiCategory:"TRANSPORTATION",icon:wF},{name:"오락",apiCategory:"GAME",icon:SF},{name:"쇼핑",apiCategory:"SHOPPING",icon:AF},{name:"기타",apiCategory:"ETC",icon:_F}],[t,n]=k.useState(!1),[r,i]=k.useState(!1),[o,a]=k.useState(null),[s,l]=k.useState(0),[u,f]=k.useState(0),[c,d]=k.useState({}),[h,p]=k.useState("");k.useEffect(()=>{e.forEach(C=>{fetch(`http://3.37.214.150:8080/api/category-target/${C.apiCategory}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"}}).then(P=>{if(!P.ok)throw new Error(`Failed to fetch target for category ${C.apiCategory}`);return P.json()}).then(P=>{d(O=>({...O,[C.apiCategory]:P}))}).catch(P=>{console.error(`Error fetching target for ${C.apiCategory}:`,P)})}),fetch("http://3.37.214.150:8080/api/savings-target",{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"}}).then(C=>{if(!C.ok)throw new Error("Failed to fetch savings target");return C.json()}).then(C=>{console.log("Fetched savings target:",C),l(C.targetAmount),f(C.currentAmount)}).catch(C=>{console.error("Error fetching savings target:",C)})},[]);const m=(C,P)=>{console.log(`새로운 목표 금액 저장: ${P} (카테고리: ${C})`),d(O=>({...O,[C]:{...O[C],targetAmount:P}}))},g=C=>{console.log("새로운 저축 목표 금액 저장:",C),l(C)},y=C=>{f(P=>P+C)},v=()=>{n(!0)},b=()=>{n(!1)},A=C=>{p(C),i(!0)},w=()=>{i(!1)};return x.jsx(mf,{children:x.jsxs(q8e,{children:[x.jsxs(YM,{children:[x.jsx(VM,{children:"저축 목표"}),x.jsxs(K8e,{children:[x.jsx(Q8e,{children:x.jsx(Z8e,{children:x.jsxs(J8e,{children:[x.jsx(bL,{targetAmount:s,setTargetAmount:g,currentAmount:u,setCurrentAmount:y,setTargetId:a}),x.jsx(eRe,{onClick:v,children:s===0?"목표 생성하기":"목표 수정하기"})]})})}),x.jsxs(nRe,{children:[x.jsx(m8e,{targetId:o,onSave:y})," "]})]})]}),x.jsxs(YM,{children:[x.jsx(VM,{children:"이번 달 지출 목표"}),x.jsx(rRe,{children:e.map((C,P)=>{const O=c[C.apiCategory]||{targetAmount:0,currentExpend:0,message:"데이터를 불러오는 중입니다."},$=O.currentExpend-O.targetAmount,E=$>0;return x.jsxs(iRe,{children:[x.jsx(oRe,{children:x.jsx(aRe,{src:C.icon,alt:`${C.name} 아이콘`})}),x.jsx(lRe,{children:C.name}),x.jsxs(sRe,{children:[x.jsx(X8e,{children:x.jsx(uRe,{children:"목표 금액보다"})}),x.jsxs(fRe,{isOverBudget:E,children:[Math.abs($).toLocaleString(),"원"," ",E?"더 썼습니다.":"덜 썼습니다."]}),x.jsxs(cRe,{children:["목표 금액: ",O.targetAmount.toLocaleString(),"원"]}),x.jsx(tRe,{onClick:()=>A(C.apiCategory),children:"수정하기"})]})]},P)})})]}),x.jsx(N8e,{isOpen:t,onClose:b,targetAmount:s,setTargetAmount:g,onSave:g,targetId:o}),x.jsx(C8e,{isOpen:r,onClose:w,targetAmount:((S=c[h])==null?void 0:S.targetAmount)||0,setTargetAmount:C=>m(h,C),onSave:C=>m(h,C),selectedCategory:h,currentExpend:((_=c[h])==null?void 0:_.currentExpend)||0})]})})}const q8e=D.div` + padding: 20px; + display: flex; + flex-direction: column; + width: 100%; + max-width: 1200px; + margin: 0 auto; + box-sizing: border-box; + overflow-x: hidden; +`,YM=D.section` + margin-bottom: 40px; +`,VM=D.h2` + font-family: Pretendard; + font-size: 22px; + font-weight: 400; + line-height: 32px; + text-align: left; + margin-bottom: 10px; +`,K8e=D.div` + display: flex; + gap: 20px; + align-items: stretch; + flex-wrap: wrap; +`,X8e=D.div` + display: flex; + + justify-content: space-between; + align-items: center; + font-family: Pretendard; + font-size: 16px; + font-weight: 500; + line-height: 24px; + text-align: left; + text-underline-position: from-font; + text-decoration-skip-ink: none; + color: rgba(0, 0, 0, 1); + margin-left: 15px; +`,Q8e=D.div` + width: 380px; + height: 296px; + padding: 24px 16px; + gap: 16px; + border-radius: 8px; + background: #fff + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); + display: flex; + flex-direction: column; + justify-content: space-between; +`,Z8e=D.div` + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 20px; + padding: 0 8px; +`,J8e=D.div` + display: flex; + flex-direction: column; + align-items: center; + width: 100%; + height: auto; + gap: 10px; + padding: : 0; + +`;D.div` + display: flex; + align-items: center; + justify-content: center; /* 버튼을 가로 중앙으로 정렬 */ + position: relative; /* 버튼 위치 지정 가능 */ +`;const eRe=D.button` + background: white; + color: rgba(0, 123, 255, 1); + border: 1px solid rgba(0, 123, 255, 1); + cursor: pointer; + width: 120px; + height: 32px; + border-radius: 5px; + font-family: Pretendard; + font-size: 14px; + font-weight: 500; + line-height: 16.71px; + text-align: center; +`,tRe=D.button` + background: white; + + cursor: pointer; + margin-top: 20px; + + color: rgba(0, 123, 255, 1); + border: 1px solid rgba(0, 123, 255, 1); + width: 120px; + height: 32px; + gap: 10px; + border-radius: 5px; + font-family: Pretendard; + font-size: 14px; + font-weight: 500; + line-height: 16.71px; + text-underline-position: from-font; + text-decoration-skip-ink: none; +`,nRe=D.div` + background: rgba(0, 0, 0, 0); + width: 10px; +`,rRe=D.div` + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 20px; +`,iRe=D.div` + border-radius: 8px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); + display: flex; + align-items: center; + width: 352px; + height: 164px; + background: rgba(255, 255, 255, 1); + padding: 5px; + gap: 10px; +`,oRe=D.div` + display: flex; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; + border-radius: 8px; + background: rgba(210, 210, 210, 0.25); + margin-top: -110px; + margin-left: 10px; + flex-direction: column; +`,aRe=D.img` + width: 24px; + height: 24px; + object-fit: contain; +`,sRe=D.div` + display: flex; + flex-direction: column; + justify-content: space-between; + flex: 1; +`,lRe=D.span` + font-family: Pretendard; + font-size: 13px; + font-weight: 500; + line-height: 16 + text-align: left; + margin-top: -52px; + margin-left: -42px; +`,uRe=D.span` + font-size: 0.9rem; + color: #666; + margin-left: 20px; +`,cRe=D.span` + font-size: 0.9rem; + color: #666; + margin-left: 20px; + margin-top 20px; /* 아래로 살짝 이동 */ +`,fRe=D.div` + font-size: 16px; + font-weight: bold; + color: ${e=>e.isOverBudget?"red":"blue"}; + margin-left: 20px; /* 오른쪽으로 살짝 이동 */ +`,HM="http://3.37.214.150:8080";function dRe(){const[e,t]=k.useState("account"),[n,r]=k.useState(""),[i,o]=k.useState(""),[a,s]=k.useState(!1),[l,u]=k.useState(null),[f,c]=k.useState(!1),d=async()=>{s(!0),u(null);try{const p=await Qe.get(`${HM}/api/profile`,{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r(p.data.name||"이름 없음"),o(p.data.nickName||"닉네임 없음")}catch{u("사용자 정보를 가져오는 데 실패했습니다.")}finally{s(!1)}},h=async(p,m)=>{if(!/[a-zA-Z0-9]{6,15}$/.test(m)){alert("닉네임은 6~15자의 영문, 숫자만 입력 가능합니다.");return}try{const y=await Qe.put(`${HM}/api/profile-update`,{name:p,nickName:m},{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r(y.data.name),o(y.data.nickName),alert("프로필이 성공적으로 수정되었습니다."),window.location.reload()}catch{alert("프로필 수정에 실패했습니다.")}};return k.useEffect(()=>{e==="account"&&d()},[e]),x.jsx(mf,{children:x.jsxs(gRe,{children:[x.jsxs(yRe,{children:[x.jsx(GM,{isActive:e==="account",onClick:()=>t("account"),children:"계정"}),x.jsx(GM,{isActive:e==="security",onClick:()=>t("security"),children:"보안"})]}),x.jsxs(vRe,{children:[e==="account"&&x.jsx(hRe,{name:n,nickName:i,loading:a,error:l,onEdit:()=>c(!0)}),e==="security"&&x.jsx(mRe,{})]}),f&&x.jsx(pRe,{currentName:n,currentNickName:i,onClose:()=>c(!1),onSave:h})]})})}function hRe({name:e,nickName:t,loading:n,error:r,onEdit:i}){return n?x.jsx("p",{children:"로딩 중..."}):r?x.jsx("p",{style:{color:"red"},children:r}):x.jsxs("div",{children:[x.jsxs(bRe,{children:[x.jsx("p",{children:"이름"}),x.jsx(qM,{children:e}),x.jsx("p",{children:"유저 이름"}),x.jsx(qM,{children:t})]}),x.jsx(OF,{onClick:i,children:"프로필 수정"})]})}function pRe({currentName:e,currentNickName:t,onClose:n,onSave:r}){const[i,o]=k.useState(e),[a,s]=k.useState(t),l=()=>{r(i,a),n()};return x.jsx(ModalOverlay,{children:x.jsxs(ModalContent,{children:[x.jsx("h3",{children:"프로필 수정"}),x.jsx("label",{children:"이름"}),x.jsx("input",{type:"text",value:i,onChange:u=>o(u.target.value)}),x.jsx("label",{children:"닉네임"}),x.jsx("input",{type:"text",value:a,onChange:u=>s(u.target.value)}),x.jsxs(ModalActions,{children:[x.jsx("button",{onClick:n,children:"취소"}),x.jsx("button",{onClick:l,children:"수정"})]})]})})}function mRe(){const[e,t]=k.useState(""),[n,r]=k.useState("");return k.useState(""),k.useState(!1),k.useState(!1),k.useState(""),k.useState(!1),k.useState(""),x.jsxs("div",{children:[x.jsxs(xRe,{children:[x.jsx("label",{children:"기존 비밀번호"}),x.jsx("input",{type:"password",placeholder:"********",value:e,onChange:i=>t(i.target.value)}),x.jsx("label",{children:"새 비밀번호"}),x.jsx("input",{type:"password",placeholder:"********",value:n,onChange:i=>r(i.target.value)}),x.jsx("label",{children:"비밀번호 확인"}),x.jsx("input",{type:"password",placeholder:"********"})]}),x.jsx("div",{children:x.jsx(OF,{children:"비밀번호 변경"})})]})}const gRe=D.div` + width: 1104px; + height: 620 px; + top: 112px; + left: 312px; + padding: 24px 0 0 0; + gap: 16px; + border-radius: 8px; + opacity: 0px; + box-shadow: 0px 20px 25px 0px rgba(76, 103, 100, 0.1); + background: rgba(255, 255, 255, 1); + margin-left: 10px; + margin-top: 10px; +`,yRe=D.div` + width: 171px; + height: 42px; + top: 130px; + left: 352px; + gap: 0px; + justify: space-between; + opacity: 0px; + margin-left: 20px; +`,GM=D.button` + flex: 1; + padding: 10px 20px; + border: none; + cursor: pointer; + border-radius: 4px; + background: none; + transition: all 0.3s ease; + font-family: Pretendard; +font-size: 20px; +font-weight: 600; +line-height: 32px; +text-align: left; +text-underline-position: from-font; +text-decoration-skip-ink: none; + + + + + &:hover { + color:rgba(0, 123, 255, 1); + text-decoration: underline; + text-decoration-color: rgba(0, 123, 255, 1); + text-decoration-thickness: 2px; /* 클릭 시 밑줄 두께 */ + text-underline-offset: 5px; /* 클릭 시 밑줄 간격 */ + + } + &:active, + &:focus { + color: rgba(0, 123, 255, 1); /* 클릭 후 텍스트 색상 파란색 */ + text-decoration: underline; /* 클릭 후 밑줄 추가 */ + text-decoration-color: rgba(0, 123, 255, 1); /* 클릭 후 밑줄 파란색 */ + text-decoration-thickness: 2px; /* 클릭 시 밑줄 두께 */ + text-underline-offset: 5px; /* 클릭 시 밑줄 간격 */ +`,vRe=D.div` + margin-top: 20px; +`,bRe=D.div` + p { + margin-bottom: 10px; /* 각 항목 간 간격을 줍니다 */ + font-family: Pretendard; + font-size: 20px; + font-weight: 600; + line-height: 32px; + text-align: left; + text-decoration-skip-ink: none; + color: rgba(0, 0, 0, 0.8); + margin-left: 20px; + padding: 10px; + } +`,qM=D.p` + font-family: Pretendard; + font-size: 20px; + font-weight: 400; + line-height: 32px; + text-align: left; + color: rgba(153, 157, 163, 1) !important; + margin-bottom: 10px; + opacity: 1; +`,xRe=D.form` + label { + display: block; + margin: 10px 0 5px; + color: #555; + font-family: Pretendard; + font-size: 20px; + font-weight: 600; + line-height: 32px; + text-align: left; + text-underline-position: from-font; + text-decoration-skip-ink: none; + margin-left: 45px; + } + input { + width: 100px; + padding: 8px; + margin-bottom: 20px; + margin-left: 40px; + border: none; + } +`,OF=D.button` + margin-left: 30px; + margin-bottom: 30px; + padding: 10px 20px; + background-color: #4285f4; + color: #fff; + border: none; + cursor: pointer; + border-radius: 4px; + font-family: Pretendard; + font-size: 16px; + font-weight: 700; + line-height: 24px; + text-align: center; + text-underline-position: from-font; + text-decoration-skip-ink: none; +`;function kF(e){return lm({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function CF(e){return lm({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function wRe(e){return lm({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"},child:[]}]})(e)}const XC=D.div` + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; + background-color: ${({theme:e})=>e.colors.gray00}; + width: 100%; +`,QC=D.h1` + color: ${({theme:e})=>e.colors.blue}; /* WealthTracker 파란색 */ + margin-bottom: 40px; +`,ZC=D.form` + display: flex; + flex-direction: column; + align-items: center; + width: 300px; /* 고정된 너비 유지 */ + padding: 20px; + background-color: ${({theme:e})=>e.colors.gray00}; + border-radius: 8px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0); +`,rc=D.button` + width: 100%; /* 너비를 100%로 설정하여 버튼을 입력 필드와 같게 만듦 */ + padding: 10px; + margin-bottom: 10px; + border: none; + border-radius: 4px; + cursor: pointer; + background-color: ${e=>e.className==="login"?"#007bff":e.className==="kakao"?"#ffcc00":"transparent"}; + color: ${e=>e.className==="login"?"white":e.className==="kakao"?"black":"#007bff"}; +`,a_=D.div` + position: relative; + width: 100%; /* 부모의 너비에 맞추어 100% 설정 */ + margin-bottom: 15px; +`,KM=D.input` + width: 85%; + padding: 10px; + padding-right: 30px; + border: 1px solid #ccc; /* 기본 테두리 색상 */ + border-radius: 4px; + margin: 10px 0; + background: transparent; /* 배경 투명 */ + color: #000; /* 텍스트 색상 */ + outline: none; /* 기본 포커스 테두리 제거 */ + ::placeholder { + color: #aaa; /* Placeholder 색상 */ + } + + &:focus { + border: 1px solid black; /* 클릭/포커스 시 진한 테두리 */ + + transition: border-color 0.3s ease, box-shadow 0.3s ease; /* 애니메이션 */ + } +`,SRe=D.button` + position: absolute; + right: 10px; + top: 50%; + transform: translateY(0%); /* 버튼이 정확히 중앙에 위치하도록 설정 */ + background: none; + border: none; + color: #919eab; + cursor: pointer; +`,ARe=D(nY)` + position: absolute; + right: 0px; + top: 5px; + font-size: 10px; + color: #007bff; + cursor: pointer; + text-decoration: underline; +`,_Re=D.div` + display: flex; + align-items: center; + margin-bottom: 20px; + width: 100%; +`,ORe=D.label` + font-size: 12px; + margin-left: 5px; +`,kRe=D.div` + margin: 20px 0; + font-size: 16px; + color: ${({theme:e})=>e.colors.gray04}; +`;function CRe(){const[e,t]=k.useState(""),[n,r]=k.useState(""),[i,o]=k.useState(!1),[a,s]=k.useState(!1),l=zl(),u="http://3.37.214.150:8080";k.useEffect(()=>{const d=localStorage.getItem("rememberMe"),h=localStorage.getItem("email");d&&(o(!0),h&&t(h))},[]);const f=async()=>{var d;try{const h=await Qe.post(`${u}/api/login`,{email:e,password:n});(d=h.data)!=null&&d.token?(localStorage.setItem("token",h.data.token),i?(localStorage.setItem("rememberMe",!0),localStorage.setItem("email",e)):(localStorage.removeItem("rememberMe"),localStorage.removeItem("email")),alert("로그인 성공!"),l("/main")):alert("로그인 실패: 잘못된 이메일 또는 비밀번호입니다.")}catch(h){console.error("로그인 중 오류 발생:",h),alert("로그인 중 문제가 발생했습니다. 다시 시도해주세요.")}},c=()=>{s(!a)};return x.jsxs(XC,{children:[x.jsx(QC,{children:"WealthTracker"}),x.jsxs(ZC,{onSubmit:d=>d.preventDefault(),children:[x.jsx(a_,{children:x.jsxs("div",{children:[x.jsx("label",{children:"이메일 주소"}),x.jsx(KM,{type:"email",placeholder:"yeungnam@email.com",value:e,onChange:d=>t(d.target.value)})]})}),x.jsxs(a_,{children:[x.jsx("label",{children:"비밀번호"}),x.jsx(KM,{type:a?"text":"password",value:n,onChange:d=>r(d.target.value)}),x.jsx(SRe,{type:"button",onClick:c,children:a?x.jsx(CF,{}):x.jsx(kF,{})}),x.jsx(ARe,{to:"/findpw",children:"비밀번호를 잊으셨나요?"})]}),x.jsxs(_Re,{children:[x.jsx("input",{type:"checkbox",checked:i,onChange:()=>o(!i)}),x.jsx(ORe,{children:"로그인 정보 저장"})]}),x.jsx(rc,{className:"login",type:"button",onClick:f,children:"로그인"}),x.jsx(kRe,{children:"or sign in with"}),x.jsxs(rc,{className:"kakao",type:"button",onClick:()=>{},children:[x.jsx(wRe,{})," 카카오 계정 로그인"]}),x.jsx(rc,{className:"signup",type:"button",onClick:()=>l("/signup"),children:"회원가입 하기"})]})]})}const xd=D.input` + width: 85%; + padding: 10px; + padding-right: 30px; + border: 1px solid #ccc; + border-radius: 4px; + margin: 10px 0; + background: transparent; + color: #000; + outline: none; + position: relative; /* position relative 추가 */ + + ::placeholder { + color: #aaa; + } + + &:focus { + border: 1px solid black; + transition: border-color 0.3s ease, box-shadow 0.3s ease; + } +`,$Re=D.button` + position: absolute; + right: 10px; + top: 50%; + transform: translateY(0%); + background: none; + border: none; + color: #919eab; + cursor: pointer; +`,PRe=D.button` +width: 100%; /* 너비를 100%로 설정하여 버튼을 입력 필드와 같게 만듦 */ + padding:10px; + border: 1px solid #007BFF; + border-radius: 4px; + cursor: pointer; + background-color:transparent; + color:#007BFF; +`,TRe=D.div` + display: flex; + align-items: center; + gap: 5px; +`,ERe=D.div` + position: relative; /* Timer와 버튼 위치를 Input 안으로 이동 */ + display: flex; + align-items: center; +`,MRe=D.button` + position: absolute; + right: 10px; /* Input 내부 우측에 위치 */ + top: 50%; + transform: translateY(-50%); + padding: 5px 10px; + border: 1px solid #007BFF; + border-radius: 4px; + cursor: pointer; + background-color:transparent; + color:#007BFF; + cursor: pointer; + font-size: 12px; +`,jRe=D.span` + font-size: 12px; + color: #E92C2C; + position: absolute; + right: 65px; /* Input 내부 우측에 위치 */ + top: 50%; + transform: translateY(-50%); +`,RRe=D.span` + font-size: 12px; + color: #007bff; + cursor: pointer; + text-decoration: none; +`,IRe=D.h5` + font-size: 12px; + color: #919eab; +`,DRe=D.div` + display: flex; + align-items: center; + justify-content: center; + gap: 5px; +`;function NRe(){const[e,t]=k.useState(""),[n,r]=k.useState(""),[i,o]=k.useState(""),[a,s]=k.useState(""),[l,u]=k.useState(""),[f,c]=k.useState(!1),[d,h]=k.useState(300),[p,m]=k.useState(!1),[g,y]=k.useState(!1),[v,b]=k.useState("인증번호 받기"),[A,w]=k.useState(!1),S="http://3.37.214.150:8080",_=zl(),C=()=>{c(!f)},P=I=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I),O=async()=>{try{(await Qe.post(`${S}/api/send-code`,{email:e})).status===200?alert("인증번호가 발송되었습니다."):alert("인증번호 발송에 실패했습니다. 다시 시도해 주세요.")}catch(I){I.response?alert(`오류: ${I.response.data.message}`):alert("인증번호 요청 중 서버 오류가 발생했습니다.")}},$=async()=>{try{(await Qe.post(`${S}/api/resend-code`,{email:e})).status===200&&alert("인증번호가 재발급되었습니다.")}catch{alert("인증번호 재발급 요청 중 오류가 발생했습니다.")}},E=async()=>{if(!P(e)){alert("올바른 이메일 주소를 입력해 주세요.");return}A?await $():await O(),m(!0),h(300),y(!0),b("인증번호 재발급"),w(!0),setTimeout(()=>{y(!1)},3e5)},M=I=>{const B=Math.floor(I/60),j=I%60;return`${B}m ${j<10?`0${j}`:j}s`};k.useEffect(()=>{let I;return p&&d>0?I=setInterval(()=>h(B=>B-1),1e3):d===0&&m(!1),()=>clearInterval(I)},[p,d]);const T=async()=>{const I=/[a-zA-Z0-9]{6,15}$/,B=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j=/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*])[a-zA-Z\d!@#$%^&*]{8,15}$/;if(!I.test(i)){alert("닉네임은 6~15자의 영문, 숫자만 입력 가능합니다.");return}if(!B.test(e)){alert("올바른 이메일 주소를 입력해 주세요.");return}if(!j.test(n)){alert("비밀번호는 8~15자 영문자/숫자/특수문자를 각각 최소 1개 포함해야 합니다.");return}try{(await Qe.post(`${S}/api/signup`,{name:a,nickName:i,email:e,password:n})).status===200&&(alert("회원가입 성공!"),_("/login"))}catch(N){N.response?alert(`회원가입 실패: ${N.response.data.message}`):alert("서버 오류가 발생했습니다. 잠시 후 다시 시도해 주세요.")}},R=async()=>{if(l.trim()===""){alert("인증코드를 입력해 주세요.");return}try{(await Qe.get(`${S}/api/verify`,{params:{email:e,code:l}})).status===200?alert("인증이 성공적으로 완료되었습니다."):alert("인증에 실패했습니다. 다시 시도해 주세요.")}catch(I){I.response?alert(`인증 실패: ${I.response.data.message}`):alert("서버 오류가 발생했습니다. 잠시 후 다시 시도해 주세요.")}};return x.jsxs(XC,{children:[x.jsx(QC,{children:"WealthTracker"}),x.jsxs(ZC,{onSubmit:I=>I.preventDefault(),children:[x.jsxs("div",{children:[x.jsx("label",{children:"이름"}),x.jsx(xd,{type:"text",placeholder:"홍길동",value:a,onChange:I=>s(I.target.value)}),x.jsx("label",{children:"닉네임"}),x.jsx(xd,{type:"text",placeholder:"닉네임을 입력해 주세요.(영어+숫자6~15자)",value:i,onChange:I=>o(I.target.value)}),x.jsx("label",{children:"이메일 주소"}),x.jsxs(TRe,{children:[x.jsx(xd,{type:"email",placeholder:"yeungnam@email.com",value:e,onChange:I=>t(I.target.value)}),x.jsxs(PRe,{type:"button",onClick:E,disabled:g,children:[v," "]})]}),x.jsx("label",{children:"인증코드"}),x.jsxs(ERe,{children:[x.jsx(xd,{type:"text",placeholder:"인증코드를 입력해 주세요.",value:l,onChange:I=>u(I.target.value)}),p&&x.jsx(jRe,{children:M(d)})," ",x.jsx(MRe,{onClick:R,children:"확인"})]})]}),x.jsxs(a_,{children:[x.jsx("label",{children:"비밀번호"}),x.jsx(xd,{type:f?"text":"password",placeholder:"비밀번호를 입력해 주세요.",value:n,onChange:I=>r(I.target.value)}),x.jsx($Re,{type:"button",onClick:C,children:f?x.jsx(CF,{}):x.jsx(kF,{})})]}),x.jsx(rc,{className:"login",type:"button",onClick:T,children:"회원가입"}),x.jsxs(DRe,{children:[x.jsx(IRe,{children:"이미 계정이 있으신가요?"}),x.jsx(RRe,{onClick:()=>_("/login"),children:"로그인하기"})]})]})]})}const ww=D.input` + width: 85%; + padding: 10px; + padding-right: 30px; + border: 1px solid #ccc; + border-radius: 4px; + margin: 10px 0 30px 0; + background: transparent; + color: #000; + outline: none; + + ::placeholder { + color: #aaa; + } + + &:focus { + border: 1px solid black; + transition: border-color 0.3s ease, box-shadow 0.3s ease; + } +`,XM=D.div` + font-size: 14px; + color: #919eab; +`,QM=D.div` + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; +`,ZM=D.div` + background: white; + padding: 20px; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + width: 90%; + max-width: 400px; + text-align: center; +`,cg=D(rc)` + margin:20px; + width:20%; + padding:20px; + border: 1px solid #007BFF; +`,LRe=D.span` + font-size: 12px; + color: #007bff; + cursor: pointer; +`;function BRe(){const[e,t]=k.useState(""),[n,r]=k.useState(!1),[i,o]=k.useState(!1),[a,s]=k.useState(""),[l,u]=k.useState(""),[f,c]=k.useState(!1),d=zl(),h="http://3.37.214.150:8080",p=v=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v),m=async()=>{if(!e||!p(e)){alert("유효한 이메일 주소를 입력해주세요!");return}try{c(!0),(await Qe.post(`${h}/api/reset-password`,{email:e})).status===200&&(alert("재설정 코드가 이메일로 발송되었습니다."),r(!0))}catch(v){console.error(v),alert("재설정 코드 요청 중 오류가 발생했습니다.")}finally{c(!1)}},g=async()=>{if(!a){alert("재설정 코드를 입력해주세요!");return}console.log("이메일:",e),console.log("재설정 코드:",a);try{c(!0),(await Qe.get(`${h}/api/verify`,{params:{email:e,code:a}})).status===200&&(alert("코드가 확인되었습니다. 새 비밀번호를 입력하세요."),r(!1),o(!0))}catch(v){console.error("Error during code verification:",v),alert("재설정 코드 확인 중 오류가 발생했습니다.")}finally{c(!1)}},y=async()=>{if(!l){alert("새 비밀번호를 입력해주세요!");return}try{c(!0),(await Qe.post(`${h}/api/confirm-reset-password`,{code:a,newPassword:l})).status===200&&(alert("비밀번호가 재설정되었습니다!"),o(!1),d("/login"))}catch(v){console.error(v),alert("비밀번호 재설정 중 오류가 발생했습니다.")}finally{c(!1)}};return x.jsxs(x.Fragment,{children:[x.jsxs(XC,{children:[x.jsx(QC,{children:"WealthTracker"}),x.jsx("h2",{children:"비밀번호를 잊으셨나요?"}),x.jsx(XM,{children:"비밀번호 재설정 코드를 받으려면"}),x.jsx(XM,{children:"이메일 주소를 입력하세요."}),x.jsxs(ZC,{children:[x.jsxs("div",{children:[x.jsx("label",{children:"이메일 주소"}),x.jsx(ww,{type:"email",placeholder:"yeungnam@email.com",value:e,onChange:v=>t(v.target.value)})]}),x.jsx(rc,{className:"login",type:"button",onClick:m,disabled:f,children:f?"처리 중...":"비밀번호 재설정"})]}),x.jsx(LRe,{onClick:()=>d("/login"),children:"로그인으로 돌아가기"})]}),n&&x.jsx(QM,{children:x.jsxs(ZM,{children:[x.jsx("h3",{children:"재설정 코드 입력"}),x.jsx(ww,{type:"text",placeholder:"재설정 코드를 입력하세요",value:a,onChange:v=>s(v.target.value)}),x.jsx(cg,{onClick:g,disabled:f,children:f?"처리 중...":"확인"}),x.jsx(cg,{onClick:()=>r(!1),children:"취소"})]})}),i&&x.jsx(QM,{children:x.jsxs(ZM,{children:[x.jsx("h3",{children:"새 비밀번호 입력"}),x.jsx(ww,{type:"password",placeholder:"새 비밀번호를 입력하세요",value:l,onChange:v=>u(v.target.value)}),x.jsx(cg,{onClick:y,disabled:f,children:f?"처리 중...":"재설정"}),x.jsx(cg,{onClick:()=>o(!1),children:"취소"})]})})]})}function FRe(){const e=zl();return x.jsxs(URe,{children:[x.jsx(zRe,{children:"404"}),x.jsx(WRe,{children:"NOT FOUND"}),x.jsx(YRe,{children:"요청하신 페이지를 찾을 수 없습니다."}),x.jsx(VRe,{type:"button",onClick:()=>e(-1),children:"홈으로"})]})}const URe=D.div` + height: 100vh; + background-color: ${({theme:e})=>e.colors.gray00}; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +`,zRe=D.h1` + font-weight: 900; + font-size: 3.5rem; + -webkit-text-stroke: 5px ${({theme:e})=>e.colors.blue}; + -webkit-text-fill-color: transparent; +`,WRe=D.h1` + font-size: 4rem; + font-weight: 700; + color: ${({theme:e})=>e.colors.blue}; +`,YRe=D.h2` + padding: 3rem 0; + font-size: 1.5rem; + color: ${({theme:e})=>e.colors.blue}; +`,VRe=D.button` + color: ${({theme:e})=>e.colors.white}; + background-color: ${({theme:e})=>e.colors.blue}; + border-radius: 0.25rem; + height: fit-content; + padding: 1rem 5rem; + border: none; + cursor: pointer; + + &:hover { + transition: 0.5s; + transform: scale(120%); + } +`;function HRe(){return x.jsxs(HW,{children:[x.jsx(Oi,{path:"/main",element:x.jsx(eje,{})}),x.jsx(Oi,{path:"/transactions",element:x.jsx(r6e,{})}),x.jsx(Oi,{path:"/scheduledpayments",element:x.jsx(k6e,{})}),x.jsx(Oi,{path:"/expenses",element:x.jsx(B6e,{})}),x.jsx(Oi,{path:"/goals",element:x.jsx(G8e,{})}),x.jsx(Oi,{path:"/settings",element:x.jsx(dRe,{})}),x.jsx(Oi,{path:"/",element:x.jsx(CRe,{})}),x.jsx(Oi,{path:"/signup",element:x.jsx(NRe,{})}),x.jsx(Oi,{path:"/findpw",element:x.jsx(BRe,{})}),x.jsx(Oi,{path:"*",element:x.jsx(FRe,{})})]})}const GRe=oV` +*{ + margin: 0; +}`,qRe={colors:{black:"#191919",blue:"#007BFF",red:"#E92C2C",white:"#FFFFFF",black01:"#525256",black02:"#191919",gray00:"#E8E8E8",gray01:"#FFFFFFB2",gray02:"#D1D1D1",gray03:"#9F9F9F",gray04:"#919EAB",gray05:"#2b2b2b",gray06:"#878787",gray07:"#C4C4C4",gray08:"#F1F1F1",gray09:"#F3F3F3",gray10:"#D2D2D240"}},KRe=new Rje;w8(document.getElementById("root")).render(x.jsx(Bje,{client:KRe,children:x.jsx(nV,{theme:qRe,children:x.jsxs(JW,{children:[x.jsx(GRe,{}),x.jsx(HRe,{})]})})}))});export default XRe(); diff --git a/dist/index.html b/dist/index.html index 6a88042..c53c62e 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,13 +1,13 @@ - - - - - - - Vite + React - - - -
- - + + + + + + + Vite + React + + + +
+ + diff --git a/dist/vite.svg b/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/env b/env new file mode 100644 index 0000000..dd008bd --- /dev/null +++ b/env @@ -0,0 +1 @@ +VITE_SERVER_URL=http://3.37.214.150:8080 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 4810137..66abda5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,11 @@ "@mui/material": "^6.1.8", "@nivo/bar": "^0.87.0", "@nivo/core": "^0.87.0", - "axios": "^1.7.7", - "express": "^4.21.1", - "http-proxy-middleware": "^3.0.3", +<<<<<<< HEAD + "@tanstack/react-query": "^5.62.3", +======= + "@tanstack/react-query": "^5.62.2", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "axios": "^1.7.7", "express": "^4.21.1", "http-proxy-middleware": "^3.0.3", @@ -24,8 +26,13 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "react-error-boundary": "^4.1.2", +<<<<<<< HEAD + "react-icons": "^5.4.0", +======= "react-icons": "^5.3.0", "react-kakao-login": "^2.1.1", + "react-query": "^3.39.3", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "react-router-dom": "^6.27.0", "react-spinners": "^0.14.1", "recharts": "^2.13.3", @@ -1874,6 +1881,47 @@ "@swc/counter": "^0.1.3" } }, + "node_modules/@tanstack/query-core": { +<<<<<<< HEAD + "version": "5.62.3", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.3.tgz", + "integrity": "sha512-Jp/nYoz8cnO7kqhOlSv8ke/0MJRJVGuZ0P/JO9KQ+f45mpN90hrerzavyTKeSoT/pOzeoOUkv1Xd0wPsxAWXfg==", +======= + "version": "5.62.2", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.2.tgz", + "integrity": "sha512-LcwVcC5qpsDpHcqlXUUL5o9SaOBwhNkGeV+B06s0GBoyBr8FqXPuXT29XzYXR36lchhnerp6XO+CWc84/vh7Zg==", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { +<<<<<<< HEAD + "version": "5.62.3", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.62.3.tgz", + "integrity": "sha512-y2zDNKuhgiuMgsKkqd4AcsLIBiCfEO8U11AdrtAUihmLbRNztPrlcZqx2lH1GacZsx+y1qRRbCcJLYTtF1vKsw==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.62.3" +======= + "version": "5.62.2", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.62.2.tgz", + "integrity": "sha512-fkTpKKfwTJtVPKVR+ag7YqFgG/7TRVVPzduPAUF9zRCiiA8Wu305u+KJl8rCrh98Qce77vzIakvtUyzWLtaPGA==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.62.2" +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, "node_modules/@types/d3-array": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz", @@ -1976,6 +2024,15 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, + "node_modules/@types/node": { + "version": "22.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.1.tgz", + "integrity": "sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } + }, "node_modules/@types/parse-json": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", @@ -2031,6 +2088,19 @@ "vite": "^4 || ^5" } }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/acorn": { "version": "8.12.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", @@ -2234,6 +2304,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", @@ -2249,6 +2325,23 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/axios": { +<<<<<<< HEAD + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", +======= + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/babel-plugin-macros": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", @@ -2284,19 +2377,153 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/big-integer": { + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", + "license": "Unlicense", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, +<<<<<<< HEAD +======= + "node_modules/broadcast-channel": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/broadcast-channel/-/broadcast-channel-3.7.0.tgz", + "integrity": "sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.7.2", + "detect-node": "^2.1.0", + "js-sha3": "0.8.0", + "microseconds": "0.2.0", + "nano-time": "1.0.0", + "oblivious-set": "1.0.0", + "rimraf": "3.0.2", + "unload": "2.2.0" + } + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", @@ -2374,16 +2601,52 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } }, "node_modules/cookie": { "version": "0.7.1", @@ -2700,6 +2963,43 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, +<<<<<<< HEAD +======= + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "license": "MIT" + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "node_modules/doctrine": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", @@ -2722,6 +3022,21 @@ "csstype": "^3.0.2" } }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -2924,6 +3239,12 @@ "@esbuild/win32-x64": "0.21.5" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -3137,11 +3458,94 @@ "node": ">=0.10.0" } }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" }, + "node_modules/express": { +<<<<<<< HEAD + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", +======= + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", +<<<<<<< HEAD + "path-to-regexp": "0.1.12", +======= + "path-to-regexp": "0.1.10", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" +<<<<<<< HEAD + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" +======= +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -3190,6 +3594,51 @@ "node": ">=16.0.0" } }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, "node_modules/find-root": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", @@ -3231,6 +3680,26 @@ "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", "dev": true }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/for-each": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", @@ -3240,6 +3709,47 @@ "is-callable": "^1.1.3" } }, + "node_modules/form-data": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, +<<<<<<< HEAD +======= + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -3324,6 +3834,27 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -3461,39 +3992,118 @@ "react-is": "^16.7.0" } }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, "engines": { - "node": ">= 4" + "node": ">= 0.8" } }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "license": "MIT", "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8.0.0" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "node_modules/http-proxy-middleware": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-3.0.3.tgz", + "integrity": "sha512-usY0HG5nyDUwtqpiZdETNbmKtw3QQ1jwYFZ9wi5iHzX2BcILwQKtYDJPo7XHTsu5Z0B2Hj3W9NNnbd+AjFWjqg==", + "license": "MIT", + "dependencies": { + "@types/http-proxy": "^1.17.15", + "debug": "^4.3.6", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.3", + "is-plain-object": "^5.0.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "engines": { "node": ">=0.8.19" } }, +<<<<<<< HEAD +======= + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, "node_modules/internal-slot": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", @@ -3517,6 +4127,15 @@ "node": ">=12" } }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, "node_modules/is-array-buffer": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", @@ -3707,6 +4326,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/is-number-object": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", @@ -3893,6 +4521,12 @@ "set-function-name": "^2.0.1" } }, + "node_modules/js-sha3": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==", + "license": "MIT" + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -4023,11 +4657,105 @@ "loose-envify": "cli.js" } }, +<<<<<<< HEAD +======= + "node_modules/match-sorter": { + "version": "6.3.4", + "resolved": "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.4.tgz", + "integrity": "sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.8", + "remove-accents": "0.5.0" + } + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, +<<<<<<< HEAD +======= + "node_modules/microseconds": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/microseconds/-/microseconds-0.2.0.tgz", + "integrity": "sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==", + "license": "MIT" + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -4048,6 +4776,15 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, + "node_modules/nano-time": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/nano-time/-/nano-time-1.0.0.tgz", + "integrity": "sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==", + "license": "ISC", + "dependencies": { + "big-integer": "^1.6.16" + } + }, "node_modules/nanoid": { "version": "3.3.7", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", @@ -4175,6 +4912,39 @@ "url": "https://github.com/sponsors/ljharb" } }, +<<<<<<< HEAD +======= + "node_modules/oblivious-set": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.0.0.tgz", + "integrity": "sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==", + "license": "MIT" + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, +<<<<<<< HEAD +======= + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", @@ -4250,6 +5020,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -4259,6 +5038,15 @@ "node": ">=8" } }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -4273,6 +5061,18 @@ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, + "node_modules/path-to-regexp": { +<<<<<<< HEAD + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", +======= + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "license": "MIT" + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -4287,6 +5087,18 @@ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==" }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/possible-typed-array-names": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", @@ -4348,6 +5160,25 @@ "react-is": "^16.13.1" } }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -4392,6 +5223,30 @@ } ] }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", @@ -4428,9 +5283,9 @@ } }, "node_modules/react-icons": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.3.0.tgz", - "integrity": "sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.4.0.tgz", + "integrity": "sha512-7eltJxgVt7X64oHh6wSWNwwbKTCtMfK35hcjvJS0yxEAhPM8oUKdS3+kqaW1vicIltw+kR2unHaa12S9pPALoQ==", "license": "MIT", "peerDependencies": { "react": "*" @@ -4441,6 +5296,8 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, +<<<<<<< HEAD +======= "node_modules/react-kakao-login": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/react-kakao-login/-/react-kakao-login-2.1.1.tgz", @@ -4450,6 +5307,33 @@ "react": ">= 15.3.0" } }, + "node_modules/react-query": { + "version": "3.39.3", + "resolved": "https://registry.npmjs.org/react-query/-/react-query-3.39.3.tgz", + "integrity": "sha512-nLfLz7GiohKTJDuT4us4X3h/8unOh+00MLb2yJoGTPjxKs2bc1iDhkNx2bd5MKklXnOD3NrVZ+J2UXujA5In4g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.5.5", + "broadcast-channel": "^3.4.1", + "match-sorter": "^6.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "node_modules/react-router": { "version": "6.28.0", "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.28.0.tgz", @@ -4603,6 +5487,21 @@ "url": "https://github.com/sponsors/ljharb" } }, +<<<<<<< HEAD +======= + "node_modules/remove-accents": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.5.0.tgz", + "integrity": "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==", + "license": "MIT" + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" + }, "node_modules/resolve": { "version": "2.0.0-next.5", "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", @@ -4638,6 +5537,22 @@ "node": ">=0.10.0" } }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/rollup": { "version": "4.22.5", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.22.5.tgz", @@ -4714,6 +5629,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/safe-regex-test": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", @@ -4731,6 +5666,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -4748,6 +5689,69 @@ "semver": "bin/semver.js" } }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/set-function-length": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", @@ -4779,6 +5783,12 @@ "node": ">= 0.4" } }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, "node_modules/shallowequal": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", @@ -4841,6 +5851,28 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/string.prototype.matchall": { "version": "4.0.11", "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz", @@ -5064,25 +6096,6 @@ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", "license": "MIT" }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -5121,6 +6134,19 @@ "node": ">= 0.8.0" } }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/typed-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", @@ -5209,6 +6235,34 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "license": "MIT" + }, +<<<<<<< HEAD +======= + "node_modules/unload": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unload/-/unload-2.2.0.tgz", + "integrity": "sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA==", + "license": "Apache-2.0", + "dependencies": { + "@babel/runtime": "^7.6.2", + "detect-node": "^2.0.4" + } + }, +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -5218,6 +6272,24 @@ "punycode": "^2.1.0" } }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/victory-vendor": { "version": "36.9.2", "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-36.9.2.tgz", @@ -5420,6 +6492,12 @@ "node": ">=0.10.0" } }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, "node_modules/yaml": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", diff --git a/package.json b/package.json index 2387290..6faf79f 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,11 @@ "@mui/material": "^6.1.8", "@nivo/bar": "^0.87.0", "@nivo/core": "^0.87.0", +<<<<<<< HEAD + "@tanstack/react-query": "^5.62.3", +======= + "@tanstack/react-query": "^5.62.2", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "axios": "^1.7.7", "express": "^4.21.1", "http-proxy-middleware": "^3.0.3", @@ -23,7 +28,13 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "react-error-boundary": "^4.1.2", +<<<<<<< HEAD + "react-icons": "^5.4.0", +======= "react-icons": "^5.3.0", + "react-kakao-login": "^2.1.1", + "react-query": "^3.39.3", +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e "react-router-dom": "^6.27.0", "react-spinners": "^0.14.1", "recharts": "^2.13.3", diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..7491eca Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/App.jsx b/src/App.jsx index 9e55445..cfa2071 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -13,13 +13,13 @@ import ErrorPage from "./pages/ErrorPage"; function App() { return ( - } /> + } /> } /> } /> } /> } /> } /> - } /> + } /> } /> } /> {/* 404 페이지 */} diff --git a/src/api/api.jsx b/src/api/api.jsx index 7d1aedc..4d87b1d 100644 --- a/src/api/api.jsx +++ b/src/api/api.jsx @@ -1,5 +1,5 @@ import axios from "axios"; - +import https from "https"; const api = axios.create({ baseURL: import.meta.env.VITE_SERVER_URL, timeout: 10000, @@ -8,13 +8,15 @@ const api = axios.create({ }, }); //임시토큰 사용 -const initialAccessToken = import.meta.env.VITE_TOKEN; -//localStorage.setItem("accessToken", initialAccessToken); + +const token = localStorage.getItem("token"); + // 요청 인터셉터 api.interceptors.request.use( (config) => { - const accessToken = initialAccessToken; + const accessToken = token; + if (accessToken) { config.headers["Authorization"] = `Bearer ${accessToken}`; } @@ -61,4 +63,4 @@ const refreshToken = async () => { return response.data.accessToken; }; -export default api; +export { api }; diff --git a/src/api/expendAPI.jsx b/src/api/expendAPI.jsx new file mode 100644 index 0000000..2d1a7d8 --- /dev/null +++ b/src/api/expendAPI.jsx @@ -0,0 +1,47 @@ +import { api } from './api'; + +export const fetchExpendList = (month) => { + if (!month || month < 1 || month > 12) { + alert("올바른 월(month) 값을 입력해주세요 (1-12)."); + return; + } + return api.get(`/api/expend/list`, { params: { month } }); +}; + +export const createExpend = (data) => { + if (!data) { + alert("지출 데이터가 필요합니다."); + return; + } + console.log("생성 요청 데이터:", data); + return api.post("/api/expend", { + expendDate: data.expendDate, + cost: Number(data.cost), + category: data.category, + expendName: data.expendName, + asset: data.asset, + }); +}; + +export const updateExpend = (id, data) => { + if (!id) { + alert("지출 ID가 필요합니다."); + return; + } + console.log("수정 요청 데이터:", { id, ...data }); + return api.put(`/api/expend/update/${id}`, { + expendDate: data.expendDate, + cost: Number(data.cost), + category: data.category, + expendName: data.expendName, + asset: data.asset, + }); +}; + +export const deleteExpend = (id) => { + if (!id) { + alert("지출 ID가 필요합니다."); + return; + } + return api.delete(`/api/expend/delete/${id}`); +}; diff --git a/src/api/incomeAPI.jsx b/src/api/incomeAPI.jsx new file mode 100644 index 0000000..66d0b1e --- /dev/null +++ b/src/api/incomeAPI.jsx @@ -0,0 +1,47 @@ +import { api } from './api'; + +export const fetchIncomeList = (month) => { + if (!month || month < 1 || month > 12) { + alert("올바른 월(month) 값을 입력해주세요 (1-12)."); + return; + } + return api.get(`/api/income/list`, { params: { month } }); +}; + +export const createIncome = (data) => { + if (!data) { + alert("수입 데이터가 필요합니다."); + return; + } + console.log("수입 생성 요청 데이터:", data); + return api.post("/api/income", { + incomeDate: data.incomeDate, + cost: Number(data.cost), + category: data.category, + incomeName: data.incomeName, + asset: data.asset, + }); +}; + +export const updateIncome = (id, data) => { + if (!id) { + alert("수입 ID가 필요합니다."); + return; + } + console.log("수입 수정 요청 데이터:", { id, ...data }); + return api.put(`/api/income/update/${id}`, { + incomeDate: data.incomeDate, + cost: Number(data.cost), + category: data.category, + incomeName: data.incomeName, + asset: data.asset, + }); +}; + +export const deleteIncome = (id) => { + if (!id) { + alert("수입 ID가 필요합니다."); + return; + } + return api.delete(`/api/income/delete/${id}`); +}; diff --git a/src/api/scheduleAPI.jsx b/src/api/scheduleAPI.jsx new file mode 100644 index 0000000..5a275af --- /dev/null +++ b/src/api/scheduleAPI.jsx @@ -0,0 +1,73 @@ +import { api } from "./api"; + +export const fetchScheduledPayments = async () => { + try { + const response = await api.get("/api/payment/list"); + console.log("GET 요청 성공:", response.data); + return response.data || []; + } catch (error) { + console.error("GET 요청 실패:", error.response?.data || error.message); + throw error; + } +}; + +export const createScheduledPayment = async (data) => { + if (!data) { + alert("결제 예정 데이터가 필요합니다."); + return; + } + try { + console.log("생성 요청 데이터:", data); + const response = await api.post("/api/payment", { + paymentDetail: data.paymentDetail, + dueDate: data.dueDate, + lastPayment: data.lastPayment, + cost: Number(data.cost), + tradeName: data.tradeName, + }); + console.log("POST 요청 성공:", response.data); + return response; + } catch (error) { + console.error("POST 요청 실패:", error.response?.data || error.message); + throw error; + } +}; + +export const updateScheduledPayment = async (id, data) => { + if (!id) { + alert("결제 예정 ID가 필요합니다."); + return; + } + try { + console.log("수정 요청 데이터:", { id, ...data }); + const formattedData = { + paymentDetail: data.paymentDetail, + dueDate: data.dueDate, + lastPayment: data.lastPayment, + cost: typeof data.cost === "string" ? Number(data.cost.replace(/[^0-9]/g, "")) : data.cost, // 문자열일 때만 replace 적용 + tradeName: data.tradeName, + }; + const response = await api.put(`/api/payment/update/${id}`, formattedData); + console.log("PUT 요청 성공:", response.data); + return response; + } catch (error) { + console.error("PUT 요청 실패:", error.response?.data || error.message); + throw error; + } +}; + +export const deleteScheduledPayment = async (id) => { + if (!id) { + alert("결제 예정 ID가 필요합니다."); + return; + } + try { + console.log("삭제 요청 ID:", id); + const response = await api.delete(`/api/payment/delete/${id}`); + console.log("DELETE 요청 성공:", response.data); + return response; + } catch (error) { + console.error("DELETE 요청 실패:", error.response?.data || error.message); + throw error; + } +}; \ No newline at end of file diff --git a/src/assets/.DS_Store b/src/assets/.DS_Store new file mode 100644 index 0000000..e12da87 Binary files /dev/null and b/src/assets/.DS_Store differ diff --git a/src/components/.DS_Store b/src/components/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/src/components/.DS_Store differ diff --git a/src/components/GoalModal.jsx b/src/components/GoalModal.jsx index cb58865..761340c 100644 --- a/src/components/GoalModal.jsx +++ b/src/components/GoalModal.jsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from "react"; import styled from "styled-components"; +import api from "../api/api"; // api.js에서 default로 export 했으므로 default import 사용 const GoalModal = ({ date, onClose, onSubmit }) => { const [goal, setGoal] = useState(""); @@ -25,54 +26,25 @@ const GoalModal = ({ date, onClose, onSubmit }) => { return; } - const requestBody = JSON.stringify({ + const requestBody = { date: formattedDate, - amount: goalAmount, - }); + amount: Number(goalAmount), + }; try { - const response = await fetch( - `${ - import.meta.env.VITE_SERVER_URL - }/api/target/savings/${fixedTargetId}`, - { - method: "POST", // POST 메서드 사용 - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${import.meta.env.VITE_TOKEN}`, - }, - body: requestBody, - } + const response = await api.post( + `/api/target/savings/${fixedTargetId}`, + requestBody ); - const responseText = await response.text(); - - if (!response.ok) { - console.error( - `서버 응답 실패: ${response.status} ${response.statusText}` - ); - console.error("서버 응답 내용:", responseText); - alert("저축 금액 설정에 실패했습니다."); - return; - } - - // 응답 본문이 비어 있으면 무시하고 성공 처리 - if (responseText.trim()) { - try { - const result = JSON.parse(responseText); - console.log("저축 금액 설정 성공:", result); - } catch (error) { - console.warn("응답 본문 파싱 실패:", responseText); - alert("서버 응답을 처리하는 중 오류가 발생했습니다."); - } - } - - console.log("저축 금액이 성공적으로 설정되었습니다."); + // 응답 본문 처리 (결과 출력) + const result = response.data; // 서버에서 응답 받은 데이터 + console.log("저축 금액 설정 성공:", result); + onSubmit(goalAmount); // goalAmount가 0일 때도 호출하여 상태를 갱신 onClose(); } catch (error) { - console.error("저축 금액 설정 실패:", error); alert("저축 금액 설정 중 오류가 발생했습니다."); } }; diff --git a/src/components/GoalModal1.jsx b/src/components/GoalModal1.jsx index b6272fa..37b2621 100644 --- a/src/components/GoalModal1.jsx +++ b/src/components/GoalModal1.jsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from "react"; import styled from "styled-components"; +import api from "../api/api"; // api.js에서 만든 axios 인스턴스 import export default function GoalModal1({ isOpen, @@ -15,63 +16,44 @@ export default function GoalModal1({ setNewTargetAmount(targetAmount); }, [targetAmount]); + // 현재 월의 첫날과 마지막 날 구하는 함수 const getFirstAndLastDayOfMonth = (year, month) => { const firstDay = new Date(year, month, 1).toISOString().split("T")[0]; const lastDay = new Date(year, month + 1, 0).toISOString().split("T")[0]; return { firstDay, lastDay }; }; + // 저장 버튼 클릭 시 실행되는 함수 const handleSave = () => { if (newTargetAmount && !isNaN(newTargetAmount)) { - const url = `${import.meta.env.VITE_SERVER_URL}/api/target/create`; - const method = "POST"; - const today = new Date(); const { firstDay, lastDay } = getFirstAndLastDayOfMonth( today.getFullYear(), today.getMonth() ); - const requestBody = JSON.stringify({ - targetAmount: parseInt(newTargetAmount, 10), // 숫자형으로 변환 + const requestBody = { + targetAmount: Number(newTargetAmount, 10), // 숫자형으로 변환 startDate: firstDay, endDate: lastDay, - }); + }; - console.log("API 요청 URL:", url); - console.log("API 요청 메소드:", method); console.log("API 요청 본문:", requestBody); - fetch(url, { - method: method, - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${import.meta.env.VITE_TOKEN}`, - }, - body: requestBody, - }) + // api 인스턴스를 사용하여 POST 요청 보내기 + api + .post("/api/target/create", requestBody) .then((response) => { - if (!response.ok) { - return response.text().then((text) => { - console.error( - `서버 응답 실패: ${response.status} ${response.statusText}` - ); - console.error("서버 응답 내용:", text); - throw new Error( - `서버 응답 실패: ${response.status} ${response.statusText}` - ); - }); - } - return response.json(); - }) - .then((result) => { - console.log("저축 목표 금액이 성공적으로 저장되었습니다.", result); - setTargetAmount(result.targetAmount); - onSave(result.targetAmount); // onSave 콜백 호출 + console.log( + "저축 목표 금액이 성공적으로 저장되었습니다.", + response.data + ); + setTargetAmount(response.data.targetAmount); + onSave(response.data.targetAmount); // onSave 콜백 호출 onClose(); // 저장 성공 시 모달 닫기 }) - .catch((error) => { - console.error("저축 목표 금액 저장 실패:", error); + .catch(() => { + alert("저축 목표 저장에 실패했습니다. 서버 관리자에게 문의해주세요."); }); } else { alert("유효한 금액을 입력해주세요."); diff --git a/src/components/Login.js b/src/components/Login.js index 0238a40..8ee984c 100644 --- a/src/components/Login.js +++ b/src/components/Login.js @@ -6,12 +6,12 @@ export const Wrapper = styled.div` align-items: center; justify-content: center; height: 100vh; - background-color: ${({theme})=>theme.colors.gray00}; , /* 회색 배경 */ + background-color: ${({ theme }) => theme.colors.gray00}; width: 100%; `; export const Title = styled.h1` - color:${({theme})=>theme.colors.blue}; /* WealthTracker 파란색 */ + color: ${({ theme }) => theme.colors.blue}; /* WealthTracker 파란색 */ margin-bottom: 40px; `; @@ -21,7 +21,7 @@ export const Form = styled.form` align-items: center; width: 300px; /* 고정된 너비 유지 */ padding: 20px; - background-color: ${({theme})=>theme.colors.gray00}; + background-color: ${({ theme }) => theme.colors.gray00}; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0); `; @@ -45,14 +45,8 @@ export const Button = styled.button` ? "black" // 카카오 버튼의 글자색을 검정색으로 변경 : "#007bff"}; `; -export const OrText = styled.div` - margin: 20px 0; - font-size: 16px; - color: ${({theme})=>theme.colors.gray04}; -`; - export const InputWrapper = styled.div` -position: relative; -width: 100%; /* 부모의 너비에 맞추어 100% 설정 */ -margin-bottom: 15px; -`; \ No newline at end of file + position: relative; + width: 100%; /* 부모의 너비에 맞추어 100% 설정 */ + margin-bottom: 15px; +`; diff --git a/src/components/ScheduledModal.jsx b/src/components/ScheduledModal.jsx index 22ce342..7dbfa61 100644 --- a/src/components/ScheduledModal.jsx +++ b/src/components/ScheduledModal.jsx @@ -1,20 +1,89 @@ -import React from "react"; +import React, { useState, useEffect } from "react"; import styled from "styled-components"; -const ScheduledModal = ({ closeModal }) => { +const ScheduledModal = ({ closeModal, editPayment, onSave }) => { + const [formData, setFormData] = useState({ + date: "", + service: "", + details: "", + lastPayment: "", + amount: "", + }); + + useEffect(() => { + if (editPayment) { + setFormData({ + date: editPayment.dueDate || "", + service: editPayment.tradeName || "", + details: editPayment.paymentDetail || "", + lastPayment: editPayment.lastPayment || "", + amount: editPayment.cost ? editPayment.cost.toString() : "", // 쉼표 없는 숫자 + }); + } else { + setFormData({ + date: "", + service: "", + details: "", + lastPayment: "", + amount: "", + }); + } + }, [editPayment]); + + const handleSubmit = (e) => { + e.preventDefault(); + + // 날짜 형식 검증 + const dateRegex = /^\d{4}-\d{2}-\d{2}$/; + if (!formData.date.match(dateRegex) || !formData.lastPayment.match(dateRegex)) { + alert("날짜 형식은 YYYY-MM-DD여야 합니다."); + return; + } + + // 금액 변환 및 검증 + const sanitizedAmount = formData.amount.replace(/[^0-9]/g, ""); + if (!sanitizedAmount || Number(sanitizedAmount) <= 0) { + alert("유효한 금액을 입력하세요."); + return; + } + + // 제출 데이터 구성 + const submitData = { + paymentDetail: formData.details, + dueDate: formData.date, + lastPayment: formData.lastPayment, + cost: Number(sanitizedAmount), + tradeName: formData.service, + }; + + onSave(submitData); + }; + + const handleChange = (e) => { + const { name, value } = e.target; + + if (name === "amount") { + const sanitizedValue = value.replace(/[^0-9]/g, ""); + setFormData((prev) => ({ ...prev, [name]: sanitizedValue })); + } else { + setFormData((prev) => ({ ...prev, [name]: value })); + } + }; + return ( - + e.stopPropagation()}> + 결제 예정일 -
+ - + (e.target.type = "date")} - onBlur={(e) => (e.target.type = "text")} + value={formData.date} + onChange={handleChange} + placeholder="YYYY-MM-DD" /> @@ -22,6 +91,8 @@ const ScheduledModal = ({ closeModal }) => { @@ -30,6 +101,8 @@ const ScheduledModal = ({ closeModal }) => { @@ -38,9 +111,9 @@ const ScheduledModal = ({ closeModal }) => { (e.target.type = "date")} - onBlur={(e) => (e.target.type = "text")} + value={formData.lastPayment} + onChange={handleChange} + placeholder="YYYY-MM-DD" /> @@ -48,86 +121,109 @@ const ScheduledModal = ({ closeModal }) => { - 저장 -
+ 저장 +
-
+ ); }; -export default ScheduledModal; - -const ModalBackground = styled.div` +const ModalOverlay = styled.div` position: fixed; top: 0; left: 0; right: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.5); + background-color: rgba(0, 0, 0, 0.2); display: flex; justify-content: center; align-items: center; + z-index: 1000; `; const ModalContent = styled.div` - background-color: #ffffff; - padding: 24px; - border-radius: 10px; + background: ${({ theme }) => theme.colors.white}; + padding: 32px; + border-radius: 12px; width: 420px; - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); position: relative; `; +const ModalTitle = styled.h2` + font-size: 20px; + font-weight: 600; + color: ${({ theme }) => theme.colors.black02}; + margin-bottom: 32px; +`; + const CloseButton = styled.button` position: absolute; - top: 16px; - right: 16px; + top: 24px; + right: 24px; background: none; border: none; - font-size: 18px; + font-size: 24px; + color: ${({ theme }) => theme.colors.gray03}; cursor: pointer; `; +const Form = styled.form` + display: flex; + flex-direction: column; + gap: 24px; +`; + const FormGroup = styled.div` display: flex; flex-direction: column; - margin-bottom: 16px; + gap: 8px; `; const Label = styled.label` font-size: 14px; - margin-bottom: 8px; - color: #333333; + font-weight: bold; + color: ${({ theme }) => theme.colors.black02}; `; const Input = styled.input` - padding: 10px; + width: 100%; + height: 48px; + padding: 0 16px; + border: 1px solid ${({ theme }) => theme.colors.gray00}; + border-radius: 8px; font-size: 14px; - border: 1px solid #d1d5db; - border-radius: 6px; - outline: none; + box-sizing: border-box; + + &::placeholder { + color: ${({ theme }) => theme.colors.gray03}; + font-style: italic; + } + &:focus { - border-color: #3b82f6; - box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); + outline: none; + border-color: ${({ theme }) => theme.colors.blue}; } `; const SaveButton = styled.button` - background-color: #3b82f6; - color: white; - padding: 12px 0; + width: 100%; + height: 48px; + background: ${({ theme }) => theme.colors.blue}; + color: ${({ theme }) => theme.colors.white}; border: none; - border-radius: 6px; + border-radius: 8px; + font-size: 14px; + font-weight: 500; cursor: pointer; - font-size: 16px; - font-weight: bold; - margin-top: 12px; - width: 100%; - text-align: center; + &:hover { - background-color: #2563eb; + opacity: 0.9; } `; + +export default ScheduledModal; \ No newline at end of file diff --git a/src/components/common/Graph.jsx b/src/components/common/Graph.jsx index 844869f..c0f55f2 100644 --- a/src/components/common/Graph.jsx +++ b/src/components/common/Graph.jsx @@ -2,6 +2,10 @@ import { ResponsiveBar } from "@nivo/bar"; const Graph = ({ data }) => { // 데이터에서 최고 금액을 찾고 5개 구간으로 나누기 + if (!Array.isArray(data)) { + console.error("Invalid data provided to Graph component", data); + return null; + } const maxNum = data && Math.max( diff --git a/src/components/common/Layout.jsx b/src/components/common/Layout.jsx index bc55c94..fcc90ba 100644 --- a/src/components/common/Layout.jsx +++ b/src/components/common/Layout.jsx @@ -1,7 +1,6 @@ import styled from "styled-components"; import BackGround from "../BackGround"; import SideMenu from "../common/SideMenu"; - //공통 레이아웃 export default function Layout({ children }) { return ( @@ -26,13 +25,11 @@ const SubContainer = styled.div` width: 100%; max-width: 1440px; height: 1024px; - box-shawdow: 0 4px 10px rgba(0, 0, 0, 0.1); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); background-color: ${({ theme }) => theme.colors.gray00}; `; + const Sub = styled.div` display: flex; flex-direction: column; - flex: 1; - overflow: auto; - padding: 1rem; -`; +`; \ No newline at end of file diff --git a/src/components/common/SideMenu.jsx b/src/components/common/SideMenu.jsx index 980b190..f323746 100644 --- a/src/components/common/SideMenu.jsx +++ b/src/components/common/SideMenu.jsx @@ -16,11 +16,13 @@ import LogoutIcon from "../../assets/images/menu_Icon/Logout.png"; import styled from "styled-components"; import React, { useEffect, useRef, useState } from "react"; import { Box, Button, List, SwipeableDrawer } from "@mui/material"; +import axios from "axios"; export default function SideMenu() { + const API_URL = import.meta.env.VITE_SERVER_URL; //경로 배열 const pageName = [ - { name: "홈", imageSrc: icon1, imageSrcWhite: icon1_white, page: "/" }, + { name: "홈", imageSrc: icon1, imageSrcWhite: icon1_white, page: "/main" }, { name: "수입/지출 내역", imageSrc: icon2, @@ -55,12 +57,13 @@ export default function SideMenu() { const nav = useNavigate(); //메뉴 버튼 클릭 시 const onClickMenuItem = (src) => { + nav(src); }; //로그아웃 const onClickLogout = () => { if (window.confirm("로그아웃 하시겠습니까?")) { - nav("/login"); + nav("/"); //토큰 삭제 localStorage.removeItem("token"); } @@ -68,7 +71,24 @@ export default function SideMenu() { //햄버거 메뉴 const [menu, setMenu] = useState({ top: false }); + const [name, setName] = useState(""); + const [nickName, setnickName] = useState(""); + useEffect(() => { + // 사용자 이름을 서버에서 가져오는 API 호출 + const fetchUserName = async () => { + try { + const response = await axios.get(`${API_URL}/api/profile`, { + headers: { Authorization: `Bearer ${localStorage.getItem("token")}` }, + }); + setName(response.data.name); // 서버에서 받은 사용자 이름으로 상태 업데이트 + setnickName(response.data.nickName); + } catch (error) { + console.error("Error fetching user info:", error); + } + }; + fetchUserName(); // 컴포넌트가 마운트될 때 API 호출 + }, []); const toggleDrawer = (anchor, open) => (e) => { if (e && e.type == "keydown" && (e.key == "Tab" || e.key == "Shift")) { return; @@ -118,13 +138,14 @@ export default function SideMenu() { }; }, [browserWidth]); + return browserWidth > 1350 ? ( WealthTracker - 홍길동 + {name} {/* 메뉴 아이템 */} {pageName.map((item, idx) => ( diff --git a/src/components/main/ConsumptionReport.jsx b/src/components/main/ConsumptionReport.jsx index bde295e..d9c06e1 100644 --- a/src/components/main/ConsumptionReport.jsx +++ b/src/components/main/ConsumptionReport.jsx @@ -37,4 +37,4 @@ const TextContainer = styled.div` const HighlightedText = styled.span` color: ${({ theme }) => theme.colors.blue}; font-weight: bold; -`; +`; \ No newline at end of file diff --git a/src/components/main/PaymentScheduled.jsx b/src/components/main/PaymentScheduled.jsx index ccd20c3..8f793a9 100644 --- a/src/components/main/PaymentScheduled.jsx +++ b/src/components/main/PaymentScheduled.jsx @@ -1,4 +1,7 @@ import styled from "styled-components"; +import useFetchData from "../../hooks/useFetch"; +import Error from "../common/Error"; +import LoadingSpinners from "../common/LoadingSpinners"; export default function PaymentScheduled() { //월 리스트 @@ -16,51 +19,44 @@ export default function PaymentScheduled() { "Nov", "Dec", ]; - const data = [ - { - id: 1, - date: "2022-11-11", - content: "Netflix-스탠다드 멤버쉽", - company: "Netflix", - cost: 20000, - }, - { - id: 2, - date: "2022-12-23", - content: "Netflix-스탠다드 멤버쉽", - company: "Netflix", - cost: 40000, - }, - ]; + + const { data, isLoading, error } = useFetchData("/api/payment/recent"); //데이터 날짜 포맷 const dateFormat = (date) => { //string -> date Format const paymentDate = new Date(date); + const convertMonth = monthName[paymentDate.getMonth()]; const convertDay = paymentDate.getDate(); return { convertMonth, convertDay }; }; - + const isValidData = Array.isArray(data) && data.length > 0; + if (error) return ; + if (isLoading) return ; return ( - {data && + {!isValidData ? ( + 결제예정 내역이 없습니다. + ) : ( data.map((item) => { - const { convertMonth, convertDay } = dateFormat(item.date); + + const { convertMonth, convertDay } = dateFormat(item?.dueDate); return ( - + {convertMonth} {convertDay} - {item.company} - {item.content} - {item.date.replaceAll("-", ".")} + {item.tradeName} + {item.paymentDetail} + {item.lastPayment.replaceAll("-", ".")} {item.cost.toLocaleString("ko-KR")}원 ); - })} + }) + )} ); } @@ -68,7 +64,7 @@ export default function PaymentScheduled() { const Container = styled.div` display: flex; flex-direction: column; - justify-content: center; + justify-content: center; width: 100%; height: 100%; `; @@ -77,7 +73,7 @@ const ContentContainer = styled.div` border-bottom: 1px solid ${({ theme }) => theme.colors.gray00}; justify-content: space-between; align-items: center; - padding:0.5rem; + padding: 0.5rem; &:last-child { border-bottom: none; @@ -120,7 +116,11 @@ const RightBox = styled.div` border-radius: 0.5rem; height: fit-content; padding: 0.5rem; - display: flex; + display: flex; align-items: center; justify-content: center; `; +const NullText = styled.a` + font-size: 1.5rem; + font-weight: 700; +`; diff --git a/src/components/transactions/Pagination.jsx b/src/components/transactions/Pagination.jsx new file mode 100644 index 0000000..f2a0dc2 --- /dev/null +++ b/src/components/transactions/Pagination.jsx @@ -0,0 +1,73 @@ +import React from "react"; +import styled from "styled-components"; + +export default function Pagination({ currentPage, totalItems, itemsPerPage, onPageChange }) { + const totalPages = Math.ceil(totalItems / itemsPerPage); + const maxPages = 5; + const startPage = Math.max(1, currentPage - Math.floor(maxPages / 2)); + const endPage = Math.min(totalPages, startPage + maxPages - 1); + + const handlePageClick = (page) => { + if (page >= 1 && page <= totalPages) onPageChange(page); + }; + + return ( + + handlePageClick(currentPage - 1)} + > + < + + + {Array.from({ length: endPage - startPage + 1 }, (_, idx) => startPage + idx).map((page) => ( + handlePageClick(page)} + > + {page} + + ))} + + handlePageClick(currentPage + 1)} + > + > + + + ); +} + +const Container = styled.div` + display: flex; + justify-content: center; + align-items: center; + gap: 8px; +`; + +const NavButton = styled.button` + width: 36px; + height: 36px; + background-color: ${({ $isDisabled, theme }) => + $isDisabled ? theme.colors.gray02 : theme.colors.white}; + border: 1px solid ${({ $isDisabled, theme }) => + $isDisabled ? theme.colors.gray02 : theme.colors.gray04}; + border-radius: 4px; + color: ${({ $isDisabled, theme }) => + $isDisabled ? theme.colors.gray03 : theme.colors.black01}; + cursor: ${({ $isDisabled }) => ($isDisabled ? "not-allowed" : "pointer")}; + display: flex; + justify-content: center; + align-items: center; +`; + +const PageButton = styled(NavButton)` + border: 1px solid ${({ $isActive, theme }) => + $isActive ? theme.colors.blue : theme.colors.gray02}; + color: ${({ $isActive, theme }) => + $isActive ? theme.colors.blue : theme.colors.black01}; + font-weight: bold; + font-size: 14px; +`; \ No newline at end of file diff --git a/src/components/transactions/Tabs.jsx b/src/components/transactions/Tabs.jsx new file mode 100644 index 0000000..78d46cb --- /dev/null +++ b/src/components/transactions/Tabs.jsx @@ -0,0 +1,54 @@ +import React from "react"; +import styled from "styled-components"; + +export default function Tabs({ activeTab, setActiveTab }) { + return ( + + setActiveTab("전체")} + $color="black02" + > + 전체 + + setActiveTab("수입")} + $color="blue" + > + 수입 + + setActiveTab("지출")} + $color="red" + > + 지출 + + + ); +} + +const TabContainer = styled.div` + display: flex; + justify-content: flex-start; + gap: 36px; + margin-bottom: 20px; + margin-left: 20px; +`; + +const Tab = styled.button` + background: none; + border: none; + font-size: 20px; + font-weight: ${({ $isActive }) => ($isActive ? "bold" : "normal")}; + color: ${({ $isActive, $color, theme }) => + $isActive ? theme.colors[$color] : theme.colors.gray03}; + border-bottom: ${({ $isActive, $color, theme }) => + $isActive ? `3px solid ${theme.colors[$color]}` : `3px solid transparent`}; + cursor: pointer; + + &:hover { + color: ${({ $color, theme }) => theme.colors[$color]}; + } +`; \ No newline at end of file diff --git a/src/components/transactions/TransactionList.jsx b/src/components/transactions/TransactionList.jsx new file mode 100644 index 0000000..dad9991 --- /dev/null +++ b/src/components/transactions/TransactionList.jsx @@ -0,0 +1,123 @@ +import React from "react"; +import styled from "styled-components"; +import { formatDate, formatAmount } from "../../utils/formatters"; + +export default function TransactionList({ + transactions, + currentPage, + itemsPerPage, + onEdit, + onDelete, +}) { + if (!transactions || transactions.length === 0) { + return

표시할 거래 내역이 없습니다.

; + } + + const startIndex = (currentPage - 1) * itemsPerPage; + const paginatedTransactions = transactions.slice(startIndex, startIndex + itemsPerPage); + + return ( + + + + + + + + + + + + + {paginatedTransactions.map((transaction) => { + const isIncome = "incomeId" in transaction; + const uniqueKey = isIncome + ? `income-${transaction.incomeId}` + : `expend-${transaction.expendId}`; + return ( + + + + + + + + + ); + })} + +
날짜금액분류자산내용편집
+ {formatDate(isIncome ? transaction.incomeDate : transaction.expendDate)} + + {formatAmount(transaction.cost)} + {transaction.category}{transaction.asset} + {isIncome ? transaction.incomeName : transaction.expendName} + + + +
+ ); +} + +const Table = styled.table` + width: 100%; + margin: 0; + border-collapse: collapse; + table-layout: fixed; + margin-bottom: 13px; +`; + +const Th = styled.th` + padding: 10px; + text-align: center; + font-weight: bold; + width: 20%; + color: ${({ theme }) => theme.colors.black02}; +`; + +const Tr = styled.tr` + height: 50px; +`; + +const Td = styled.td` + padding: 12px 8px; + text-align: center; + word-wrap: break-word; + font-weight: ${({ $isBold }) => ($isBold ? "bold" : "normal")}; + color: ${({ theme, $isIncome }) => + $isIncome + ? theme.colors.blue + : $isIncome === false + ? theme.colors.red + : theme.colors.gray05}; +`; + +const Button = styled.button` + margin: 0 5px; + padding: 5px 15px; + font-size: 10px; + border: ${({ $edit, theme }) => + $edit ? `1px solid ${theme.colors.black}` : "none"}; + background-color: ${({ $edit, theme }) => + $edit ? "transparent" : theme.colors.black}; + color: ${({ $edit, theme }) => ($edit ? theme.colors.black : theme.colors.white)}; + border-radius: 4px; + cursor: pointer; + + &:hover { + background-color: ${({ $edit, theme }) => + $edit ? "transparent" : theme.colors.gray06}; + color: ${({ $edit, theme }) => ($edit ? theme.colors.gray06 : theme.colors.white)}; + } +`; \ No newline at end of file diff --git a/src/components/transactions/TransactionModal.jsx b/src/components/transactions/TransactionModal.jsx new file mode 100644 index 0000000..a139c01 --- /dev/null +++ b/src/components/transactions/TransactionModal.jsx @@ -0,0 +1,287 @@ +import React, { useState, useEffect } from "react"; +import styled from "styled-components"; + +export default function TransactionModal({ isOpen, onClose, onSubmit, type, editData }) { + const [formData, setFormData] = useState({ + description: "", + amount: "", + category: "", + asset: "", + date: "", + }); + + useEffect(() => { + if (editData) { + setFormData({ + description: + editData.content || + (type === "income" ? editData.incomeName || "" : editData.expendName || ""), + amount: editData.cost?.toString() || "", + category: editData.category || "", + asset: editData.asset || "", + date: editData.date || (type === "income" ? editData.incomeDate || "" : editData.expendDate || ""), + }); + } else { + setFormData({ + description: "", + amount: "", + category: "", + asset: "", + date: "", + }); + } + }, [editData, type]); + + const handleChange = (e) => { + const { name, value } = e.target; + setFormData((prev) => ({ + ...prev, + [name]: value, + })); + }; + + const handleCategorySelect = (category) => { + setFormData((prev) => ({ + ...prev, + category, + })); + }; + + const handleAssetSelect = (asset) => { + setFormData((prev) => ({ + ...prev, + asset, + })); + }; + + const handleSubmit = (e) => { + e.preventDefault(); + + if (!formData.date || !formData.amount || !formData.category || !formData.asset || !formData.description) { + alert("모든 필드를 입력해주세요."); + return; + } + + const dateRegex = /^\d{4}-\d{2}-\d{2}$/; + if (!dateRegex.test(formData.date)) { + alert("날짜는 YYYY-MM-DD 형식이어야 합니다."); + return; + } + + if (isNaN(Number(formData.amount)) || Number(formData.amount) <= 0) { + alert("금액은 0보다 커야 합니다."); + return; + } + + const submitData = { + [type === "income" ? "incomeDate" : "expendDate"]: formData.date, + cost: Number(formData.amount), + category: formData.category, + [type === "income" ? "incomeName" : "expendName"]: formData.description, + asset: formData.asset, + }; + + onSubmit(submitData); + onClose(); + }; + + if (!isOpen) return null; + + const expendCategories = [ + { name: "납부", icon: "💰" }, + { name: "식비", icon: "🍕" }, + { name: "교통", icon: "🚌" }, + { name: "오락", icon: "🎮" }, + { name: "쇼핑", icon: "🛍️" }, + { name: "기타", icon: "" }, + ]; + + const incomeCategories = [ + { name: "월급", icon: "💰" }, + { name: "용돈", icon: "💵" }, + { name: "기타", icon: "" }, + ]; + + const categories = type === "income" ? incomeCategories : expendCategories; + + return ( + + e.stopPropagation()} type={type}> + × +
+
+ + +
+
+ + +
+
+ + + {categories.map((category) => ( + handleCategorySelect(category.name)} + > + {category.icon} {category.name} + + ))} + +
+
+ + + {["현금", "은행", "카드"].map((asset) => ( + handleAssetSelect(asset)} + > + {asset} + + ))} + +
+
+ + +
+ 저장 +
+
+
+ ); +} + + +const ModalOverlay = styled.div` + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.2); + display: flex; + justify-content: center; + align-items: center; + z-index: 10; +`; + +const ModalContent = styled.div` + background: white; + border-radius: 12px; + padding: 60px; + width: 350px; + height: ${({ type }) => (type === "income" ? "550px" : "620px")}; + position: relative; + z-index: 11; +`; + +const CloseButton = styled.button` + position: absolute; + right: 20px; + top: 20px; + background: none; + border: none; + font-size: 38px; + cursor: pointer; + color: ${({ theme }) => theme.colors.gray05}; +`; + +const Form = styled.form` + display: flex; + flex-direction: column; + gap: 35px; +`; + +const Label = styled.div` + font-size: 14px; + color: #333; + margin-bottom: 8px; +`; + +const Input = styled.input` + width: 100%; + height: 48px; + padding: 12px; + border: 1px solid ${({ theme }) => theme.colors.gray02}; + border-radius: 8px; + font-size: 14px; + box-sizing: border-box; + + &::placeholder { + color: ${({ theme }) => theme.colors.gray02}; + } +`; + +const ButtonGrid = styled.div` + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; +`; + +const CategoryButton = styled.button` + padding: 12px; + height: 48px; + border: 1px solid ${({ theme, $active }) => + $active ? theme.colors.blue : theme.colors.gray02}; + border-radius: 8px; + background: ${({ theme, $active }) => + $active ? theme.colors.blue : theme.colors.white}; + color: ${({ theme, $active }) => + $active ? theme.colors.white : theme.colors.gray02}; + cursor: pointer; + font-size: 14px; + font-weight: bold; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + + &:hover { + border-color: ${({ theme }) => theme.colors.gray04}; + } +`; + +const SaveButton = styled.button` + width: 180px; + height: 45px; + padding: 12px; + background-color: ${({ theme }) => theme.colors.blue}; + color: ${({ theme }) => theme.colors.white}; + border: none; + border-radius: 4px; + font-size: 14px; + font-weight: bold; + cursor: pointer; + align-self: center; + + &:hover { + background-color: ${({ theme }) => theme.colors.primaryHover}; + } +`; \ No newline at end of file diff --git a/src/hooks/useFetch.jsx b/src/hooks/useFetch.jsx index 1e09812..21ad2bd 100644 --- a/src/hooks/useFetch.jsx +++ b/src/hooks/useFetch.jsx @@ -1,12 +1,12 @@ import { useEffect, useState } from "react"; -import api from "../api/api"; +import { api } from "../api/api"; const useFetchData = (url) => { const [data, setData] = useState(null); const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); - const [arr, setArr] = useState([]); //배열형태 추가 - const [total, setTotal] = useState(0); //데이터 수 추가 + const [arr, setArr] = useState([]); + const [total, setTotal] = useState(0); useEffect(() => { const getData = async () => { setIsLoading(true); diff --git a/src/hooks/useFetchSch.jsx b/src/hooks/useFetchSch.jsx new file mode 100644 index 0000000..e332c50 --- /dev/null +++ b/src/hooks/useFetchSch.jsx @@ -0,0 +1,22 @@ +import { useQuery } from "@tanstack/react-query"; +import { fetchScheduledPayments } from "../api/scheduleAPI"; + +const useFetchSch = () => { + return useQuery({ + queryKey: ["scheduledPayments"], + queryFn: async () => { + try { + return await fetchScheduledPayments(); + } catch (error) { + if (error.response?.status === 500) { + console.error("결제 예정 목록 서버 에러:", error.response.data); + } + throw error; + } + }, + staleTime: 5000, + cacheTime: 300000, + }); +}; + +export default useFetchSch; \ No newline at end of file diff --git a/src/hooks/useFetchTrans.jsx b/src/hooks/useFetchTrans.jsx new file mode 100644 index 0000000..7307755 --- /dev/null +++ b/src/hooks/useFetchTrans.jsx @@ -0,0 +1,23 @@ +import { useQuery } from "@tanstack/react-query"; +import { api } from "../api/api"; + +const useFetchTrans = (url, params) => { + return useQuery({ + queryKey: [url.includes('expend') ? 'expend' : 'income', params?.month], + queryFn: async () => { + try { + const response = await api.get(url, { params }); + return response.data; + } catch (error) { + if (error.response?.status === 500) { + console.error("서버 에러:", error.response.data); + } + throw error; + } + }, + staleTime: 5000, + cacheTime: 300000 + }); +}; + +export default useFetchTrans; diff --git a/src/main.jsx b/src/main.jsx index c5bb2a6..c209452 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -4,12 +4,17 @@ import { BrowserRouter } from "react-router-dom"; import { ThemeProvider } from "styled-components"; import GlobalStyle from "./GlobalStyle.js"; import theme from "./theme.js"; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; + +const queryClient = new QueryClient(); createRoot(document.getElementById("root")).render( - - - - - - -); + + + + + + + + +); \ No newline at end of file diff --git a/src/pages/FindPassword.jsx b/src/pages/FindPassword.jsx index 64b5241..763a9d7 100644 --- a/src/pages/FindPassword.jsx +++ b/src/pages/FindPassword.jsx @@ -9,7 +9,7 @@ import styled from "styled-components"; import { useNavigate } from "react-router-dom"; import axios from "axios"; -const Input = styled.input` +export const Input = styled.input` width: 85%; padding: 10px; padding-right: 30px; @@ -29,13 +29,13 @@ const Input = styled.input` transition: border-color 0.3s ease, box-shadow 0.3s ease; } `; - const Findtext = styled.div` font-size: 14px; color: #919eab; `; -const PopupOverlay = styled.div` + +export const PopupOverlay = styled.div` position: fixed; top: 0; left: 0; @@ -48,7 +48,7 @@ const PopupOverlay = styled.div` z-index: 1000; `; -const Popup = styled.div` +export const Popup = styled.div` background: white; padding: 20px; border-radius: 10px; @@ -58,19 +58,27 @@ const Popup = styled.div` text-align: center; `; -const PopupButton = styled(Button)` - margin-top: 20px; +export const PopupButton = styled(Button)` + margin:20px; + width:20%; + padding:20px; + border: 1px solid #007BFF; +`; +const LoginLink = styled.span` + font-size: 12px; + color: #007bff; + cursor: pointer; `; export default function FindPassword() { - const [email, setEmail] = useState(""); - const [showCodePopup, setShowCodePopup] = useState(false); - const [showResetPopup, setShowResetPopup] = useState(false); - const [resetCode, setResetCode] = useState(""); - const [newPassword, setNewPassword] = useState(""); - const [loading, setLoading] = useState(false); // 로딩 상태 추가 - const navigate = useNavigate(); - const API_URL = import.meta.env.VITE_SERVER_URL; +const [email, setEmail] = useState(""); +const [showCodePopup, setShowCodePopup] = useState(false); +const [showResetPopup, setShowResetPopup] = useState(false); +const [code, setResetCode] = useState(""); +const [newPassword, setNewPassword] = useState(""); +const [loading, setLoading] = useState(false); // 로딩 상태 추가 +const navigate = useNavigate(); +const API_URL = import.meta.env.VITE_SERVER_URL; const validateEmail = (email) => { const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; @@ -102,28 +110,36 @@ export default function FindPassword() { // 재설정 코드 확인 API 호출 const handleVerifyCode = async () => { - if (!resetCode) { + if (!code) { alert("재설정 코드를 입력해주세요!"); return; } + console.log("이메일:", email); + console.log("재설정 코드:", code); try { setLoading(true); - const response = await axios.post(`${API_URL}/api/confirm-reset-password`, { - email, - resetCode, + + // axios.get에서 쿼리 파라미터를 전달하는 방식 + const response = await axios.get(`${API_URL}/api/verify`, { + params: { + email, + code, + }, }); + if (response.status === 200) { alert("코드가 확인되었습니다. 새 비밀번호를 입력하세요."); setShowCodePopup(false); setShowResetPopup(true); } } catch (error) { - console.error(error); + console.error("Error during code verification:", error); alert("재설정 코드 확인 중 오류가 발생했습니다."); } finally { setLoading(false); } }; + // 비밀번호 재설정 API 호출 const handleResetPassword = async () => { @@ -133,8 +149,8 @@ export default function FindPassword() { } try { setLoading(true); - const response = await axios.post(`${API_URL}/api/reset-password`, { - email, + const response = await axios.post(`${API_URL}/api/confirm-reset-password`, { + code, newPassword, }); if (response.status === 200) { @@ -176,6 +192,7 @@ export default function FindPassword() { {loading ? "처리 중..." : "비밀번호 재설정"} + navigate("/login")}>로그인으로 돌아가기 {/* 재설정 코드 팝업 */} @@ -186,12 +203,13 @@ export default function FindPassword() { setResetCode(e.target.value)} /> {loading ? "처리 중..." : "확인"} + setShowCodePopup(false)}>취소 )} @@ -208,11 +226,13 @@ export default function FindPassword() { onChange={(e) => setNewPassword(e.target.value)} /> - {loading ? "처리 중..." : "비밀번호 재설정"} + {loading ? "처리 중..." : "재설정"} + setShowResetPopup(false)}>취소 )} ); } +export function FindApi(){} \ No newline at end of file diff --git a/src/pages/Main.jsx b/src/pages/Main.jsx index 77a42bb..3bd7aad 100644 --- a/src/pages/Main.jsx +++ b/src/pages/Main.jsx @@ -1,5 +1,4 @@ //메인 페이지 - import styled from "styled-components"; import Layout from "../components/common/Layout"; import Logo from "../assets/images/Logo.png"; diff --git a/src/pages/ScheduledPayments.jsx b/src/pages/ScheduledPayments.jsx index 7ceb21f..d595748 100644 --- a/src/pages/ScheduledPayments.jsx +++ b/src/pages/ScheduledPayments.jsx @@ -1,202 +1,300 @@ import React, { useState } from "react"; -import Layout from "../components/common/Layout"; import styled from "styled-components"; +import Layout from "../components/common/Layout"; +import Pagination from "../components/transactions/Pagination"; import ScheduledModal from "../components/ScheduledModal"; +import Error from "../components/common/Error"; +import LoadingSpinners from "../components/common/LoadingSpinners"; +import { useMutation, useQueryClient } from "@tanstack/react-query"; +import useFetchSch from "../hooks/useFetchSch"; +import { + createScheduledPayment, + updateScheduledPayment, + deleteScheduledPayment, +} from "../api/scheduleAPI"; -export default function ScheduledPayments() { +function ScheduledPayments() { + const [currentPage, setCurrentPage] = useState(1); const [isModalOpen, setIsModalOpen] = useState(false); - const [payments] = useState([ - { - id: 1, - date: "2024-05-15", - service: "넷플릭스", - details: "스탠다드 멤버십", - lastPayment: "2024-05-15", - amount: "13,500원", + const [editingPayment, setEditingPayment] = useState(null); + + const queryClient = useQueryClient(); + const itemsPerPage = 5; + + const { data: payments = [], isLoading, isError, error } = useFetchSch(); + + const addPayment = useMutation({ + mutationFn: createScheduledPayment, + onSuccess: () => { + queryClient.invalidateQueries(["scheduledPayments"]); + alert("결제 예정이 성공적으로 추가되었습니다."); }, - { - id: 2, - date: "2024-06-20", - service: "유튜브 프리미엄", - details: "프리미엄 멤버십", - lastPayment: "2024-06-20", - amount: "11,000원", + onError: (error) => { + console.error("결제 예정 추가 실패:", error.response?.data || error.message); + alert("결제 예정 추가에 실패했습니다."); }, - ]); - - const monthName = [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec", - ]; - - const dateFormat = (date) => { - const paymentDate = new Date(date); - const convertMonth = monthName[paymentDate.getMonth()]; - const convertDay = paymentDate.getDate(); - return { convertMonth, convertDay }; + }); + + const updatePayment = useMutation({ + mutationFn: async ({ id, data }) => updateScheduledPayment(id, data), + onSuccess: () => { + queryClient.invalidateQueries(["scheduledPayments"]); + alert("결제 예정이 성공적으로 수정되었습니다."); + }, + onError: (error) => { + console.error("결제 예정 수정 실패:", error.response?.data || error.message); + alert("결제 예정 수정에 실패했습니다."); + }, + }); + + const deletePayment = useMutation({ + mutationFn: deleteScheduledPayment, + onSuccess: () => { + queryClient.invalidateQueries(["scheduledPayments"]); + alert("결제 예정이 성공적으로 삭제되었습니다."); + }, + onError: (error) => { + console.error("결제 예정 삭제 실패:", error.response?.data || error.message); + alert("결제 예정 삭제에 실패했습니다."); + }, + }); + + const openModal = (payment = null) => { + setEditingPayment(payment); + setIsModalOpen(true); + }; + + const closeModal = () => { + setEditingPayment(null); + setIsModalOpen(false); + }; + + const handleSave = (paymentData) => { + if ( + !paymentData.paymentDetail || + !paymentData.dueDate || + !paymentData.lastPayment || + !paymentData.cost || + !paymentData.tradeName + ) { + alert("모든 필드를 입력해야 합니다."); + return; + } + + if (editingPayment) { + updatePayment.mutate({ + id: editingPayment.paymentId, + data: paymentData, + }); + } else { + addPayment.mutate(paymentData); + } + closeModal(); + }; + + const handleDelete = (paymentId) => { + if (window.confirm("정말 삭제하시겠습니까?")) { + deletePayment.mutate(paymentId); + } }; - const openModal = () => setIsModalOpen(true); - const closeModal = () => setIsModalOpen(false); + const indexOfLastItem = currentPage * itemsPerPage; + const indexOfFirstItem = indexOfLastItem - itemsPerPage; + const currentItems = payments.slice(indexOfFirstItem, indexOfLastItem); return ( - 결제 예정 - - -
결제 예정일
-
상호
-
상세내역
-
마지막 결제
-
금액
-
편집
-
- - {payments.map((payment) => { - const { id, date, service, details, lastPayment, amount } = payment; - const { convertMonth, convertDay } = dateFormat(date); - - return ( - - - {convertMonth} - {convertDay} - -
{service}
-
{details}
-
{lastPayment}
-
{amount}
- - - - -
- ); - })} - - 작성하기 - - {isModalOpen && } -
+ + 결제 예정 + + + + + + + + + + + + + + {isLoading ? ( + + + + ) : isError ? ( + + + + ) : currentItems.length === 0 ? ( + + + + ) : ( + currentItems.map((payment) => ( + + + + + + + + + )) + )} + +
결제 예정일상호상세내역마지막 결제금액편집
+ +
서버와의 연결에 문제가 발생했습니다.
결제 예정 내역이 없습니다.
{payment.dueDate}{payment.tradeName}{payment.paymentDetail}{payment.lastPayment}{payment.cost.toLocaleString()}원 + + openModal(payment)}>수정 + handleDelete(payment.paymentId)}> + 삭제 + + +
+
+
+ + + + openModal()}>작성하기 +
+
+ {isModalOpen && ( + + )}
); } -const ScheduledPaymentsContainer = styled.div` - width: 1104px; - height: 800px; - margin-left: 15px; - margin-top: 15px; - top: 164px; - left: 304px; - padding: 24px 0px 0px 0px; - gap: 16px; - border-radius: 8px; - opacity: 0px; - background: rgba(255, 255, 255, 1); - box-shadow: 0px 20px 25px 0px rgba(76, 103, 100, 0.1); +export default ScheduledPayments; + +// Styled components +const Container = styled.div` + margin-top: 20px; `; -const ScheduledTitle = styled.h3` - margin-left: 15px; - font-family: Pretendard; - font-size: 22px; +const PageTitle = styled.h1` + font-size: 24px; font-weight: 400; - line-height: 32px; - text-align: left; - text-underline-position: from-font; - text-decoration-skip-ink: none; + margin-left: 20px; + margin-bottom: 15px; + color: ${({ theme }) => theme.colors.gray03}; `; -const PaymentHeader = styled.div` - display: grid; - grid-template-columns: 1fr 1fr 2fr 1fr 1fr 1fr; - font-weight: bold; - padding: 10px 0; - border-bottom: 1px solid #e0e0e0; - color: #666666; - text-align: center; +const ContentWrapper = styled.div` + background: ${({ theme }) => theme.colors.white}; + border-radius: 6px; + padding: 20px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + max-width: 93%; + margin: 0 auto; + min-height: 630px; + display: flex; + flex-direction: column; `; -const PaymentItem = styled.div` - display: grid; - grid-template-columns: 1fr 1fr 2fr 1fr 1fr 1fr; - align-items: center; - padding: 10px 0; - border-bottom: 1px solid #e0e0e0; +const EmptyState = styled.div` text-align: center; - font-family: Pretendard; - font-size: 14px; - font-weight: 500; - line-height: 20px; - text-underline-position: from-font; - text-decoration-skip-ink: none; + color: ${({ theme }) => theme.colors.gray03}; + font-size: 18px; + margin: 50px 0; `; -const LeftBox = styled.div` - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - width: 100px; - height: 100px; - border-radius: 8px; - background-color: #f3f4f6; - margin: 0 auto; +const Table = styled.table` + width: 100%; + border-collapse: collapse; + table-layout: fixed; `; -const MonthText = styled.div` - font-size: 14px; - color: #666666; +const Th = styled.th` + padding: 10px; + text-align: center; + font-weight: bold; + color: ${({ theme }) => theme.colors.black02}; `; -const DayText = styled.div` - font-size: 18px; - font-weight: bold; +const Tr = styled.tr` + &:hover { + background-color: #f9f9f9; + } +`; + +const Td = styled.td` + padding: 12px 8px; + text-align: center; + color: ${({ theme }) => theme.colors.gray05}; `; -const ActionButtons = styled.div` +const ButtonGroup = styled.div` display: flex; - justify-content: center; - gap: 10px; - - button { - padding: 5px 10px; - cursor: pointer; - background-color: #f3f4f6; - border: none; - border-radius: 4px; - transition: background-color 0.2s; + gap: 4px; +`; + +const EditButton = styled.button` + padding: 5px 15px; + border: 1px solid ${({ theme }) => theme.colors.black}; + background: transparent; + color: ${({ theme }) => theme.colors.black}; + border-radius: 4px; + cursor: pointer; + + &:hover { + color: ${({ theme }) => theme.colors.gray06}; } +`; - button:hover { - background-color: #ddd; +const DeleteButton = styled.button` + padding: 5px 15px; + border: none; + background: ${({ theme }) => theme.colors.black}; + color: ${({ theme }) => theme.colors.white}; + border-radius: 4px; + cursor: pointer; + + &:hover { + background: ${({ theme }) => theme.colors.gray06}; } `; -const AddPaymentButton = styled.button` - background-color: #3b82f6; - color: white; - padding: 10px 20px; +const ActionButton = styled.button` + position: absolute; + right: 30px; + height: 40px; + padding: 0 24px; + background-color: ${({ theme }) => theme.colors.blue}; + color: ${({ theme }) => theme.colors.white}; border: none; border-radius: 6px; - cursor: pointer; font-size: 14px; + cursor: pointer; + + &:hover { + background: ${({ theme }) => theme.colors.primaryHover}; + } +`; + +const Footer = styled.div` + display: flex; + justify-content: center; + align-items: center; + position: relative; margin-top: 20px; - width: 96px; - height: 40px; - box-shadow: 0px 20px 25px 0px rgba(76, 103, 100, 0.1); - position: absolute; - bottom: -100px; /* 아래쪽 여백 */ - right: 70px; /* 오른쪽 여백 */ `; + +const PaginationWrapper = styled.div` + position: absolute; + left: 50%; + transform: translateX(-50%); +`; \ No newline at end of file diff --git a/src/pages/Settings.jsx b/src/pages/Settings.jsx index 24f2adc..4096818 100644 --- a/src/pages/Settings.jsx +++ b/src/pages/Settings.jsx @@ -110,9 +110,6 @@ function AccountSettings({ name, nickName, loading, error, onEdit }) {

이름

{name} - -

유저이름

- 홍길동

유저 이름

{nickName}
@@ -269,7 +266,12 @@ function SecuritySettings() { /> - + setNewPassword(e.target.value)} + /> diff --git a/src/pages/Signup.jsx b/src/pages/Signup.jsx index a6604cc..43431c7 100644 --- a/src/pages/Signup.jsx +++ b/src/pages/Signup.jsx @@ -4,12 +4,10 @@ import { Title, Form, Button, - OrText, InputWrapper } from "../components/Login"; import styled from "styled-components"; import { FaEye, FaEyeSlash } from "react-icons/fa"; -import { BsChatFill } from "react-icons/bs"; import { useNavigate } from "react-router-dom"; import axios from "axios"; const Input = styled.input` @@ -94,7 +92,7 @@ const LoginLink = styled.span` font-size: 12px; color: #007bff; cursor: pointer; - text-decoration: underline; + text-decoration: none; `; const Alreadacc = styled.h5` @@ -111,7 +109,7 @@ const Row = styled.div` function Signup() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); - const [nickname, setNickname] = useState(""); + const [nickName, setNickname] = useState(""); const [name, setName] = useState(""); const [certification, setCertification] = useState(""); const [showPassword, setShowPassword] = useState(false); @@ -213,10 +211,10 @@ function Signup() { const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; // 비밀번호: 최소 8자, 대문자/소문자/숫자/특수문자 각각 최소 1개 - const passwordRegex = /^(?=.*[a-zA-Z])(?=.*\\d)(?=.*[!@#$%^&*])[a-zA-Z\\d!@#$%^&*]{8,15}$/; + const passwordRegex = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*])[a-zA-Z\d!@#$%^&*]{8,15}$/; // 닉네임 검증 - if (!nicknameRegex.test(nickname)) { + if (!nicknameRegex.test(nickName)) { alert("닉네임은 6~15자의 영문, 숫자만 입력 가능합니다."); return; } @@ -238,7 +236,7 @@ function Signup() { try { const response = await axios.post(`${API_URL}/api/signup`, { name, - nickname, + nickName, email, password, }); @@ -303,7 +301,7 @@ function Signup() { setNickname(e.target.value)} /> @@ -352,13 +350,6 @@ function Signup() { - - or sign up with - - - 이미 계정이 있으신가요? navigate("/login")}>로그인하기 diff --git a/src/pages/Transactions.jsx b/src/pages/Transactions.jsx index e514a3c..243da76 100644 --- a/src/pages/Transactions.jsx +++ b/src/pages/Transactions.jsx @@ -1,10 +1,310 @@ -//수입/지출 내역 페이지 +import { useState } from "react"; import Layout from "../components/common/Layout"; +import Tabs from "../components/transactions/Tabs"; +import TransactionList from "../components/transactions/TransactionList"; +import Pagination from "../components/transactions/Pagination"; +import TransactionModal from "../components/transactions/TransactionModal"; +import Error from "../components/common/Error"; +import LoadingSpinners from "../components/common/LoadingSpinners"; +import styled from "styled-components"; +import { useMutation, useQueryClient } from "@tanstack/react-query"; +import useFetchTrans from "../hooks/useFetchTrans"; +import { + createExpend, + updateExpend, + deleteExpend, +} from "../api/expendAPI"; +import { + createIncome, + updateIncome, + deleteIncome, +} from "../api/incomeAPI"; export default function Transactions() { + const [activeTab, setActiveTab] = useState("전체"); + const [currentDate, setCurrentDate] = useState(new Date()); + const [currentPage, setCurrentPage] = useState(1); + const [isModalOpen, setIsModalOpen] = useState(false); + const [modalType, setModalType] = useState("expend"); + const [editingTransaction, setEditingTransaction] = useState(null); + + const queryClient = useQueryClient(); + const itemsPerPage = 9; + const currentMonth = currentDate.getMonth() + 1; + + const { data: transactions, isLoading: isExpendLoading, error: expendError } = + useFetchTrans("/api/expend/list", { month: currentMonth }); + + const { data: incomeList, isLoading: isIncomeLoading, error: incomeError } = + useFetchTrans("/api/income/list", { month: currentMonth }); + + const addTransaction = useMutation({ + mutationFn: (data) => + modalType === "income" ? createIncome(data) : createExpend(data), + onSuccess: () => { + queryClient.invalidateQueries(["transactions"]); + alert("거래가 추가되었습니다!"); + }, + onError: (error) => { + console.error("추가 실패:", error.response?.data || error.message); + alert("거래 추가에 실패했습니다."); + }, + }); + + const updateTransaction = useMutation({ + mutationFn: ({ id, data, type }) => + type === "income" ? updateIncome(id, data) : updateExpend(id, data), + onSuccess: () => { + queryClient.invalidateQueries(["transactions"]); + alert("거래가 수정되었습니다!"); + }, + onError: (error) => { + console.error("수정 실패:", error.response?.data || error.message); + alert("거래 수정에 실패했습니다."); + }, + }); + + const deleteTransaction = useMutation({ + mutationFn: ({ id, type }) => + type === "income" ? deleteIncome(id) : deleteExpend(id), + onSuccess: () => { + queryClient.invalidateQueries(["transactions"]); + alert("거래가 삭제되었습니다!"); + }, + onError: (error) => { + console.error("삭제 실패:", error.response?.data || error.message); + alert("거래 삭제에 실패했습니다."); + }, + }); + + const displayedTransactions = (() => { + if (activeTab === "전체") { + const combinedData = [ + ...(transactions || []).map((item) => ({ + ...item, + type: "지출", + transactionDate: item.expendDate, + amount: item.cost, + })), + ...(incomeList || []).map((item) => ({ + ...item, + type: "수입", + transactionDate: item.incomeDate, + amount: item.amount, + })), + ]; + + return combinedData.sort((a, b) => { + const dateDiff = + new Date(b.transactionDate).getTime() - + new Date(a.transactionDate).getTime(); + if (dateDiff !== 0) return dateDiff; + return b.amount - a.amount; + }); + } + + return activeTab === "수입" ? incomeList || [] : transactions || []; + })(); + + const handleOpenModal = (type, transaction = null) => { + setModalType(type); + setEditingTransaction(transaction || null); + setIsModalOpen(true); + }; + + const handleCloseModal = () => { + setEditingTransaction(null); + setIsModalOpen(false); + }; + + const handleSubmitTransaction = (formData) => { + if (editingTransaction) { + const id = editingTransaction.incomeId || editingTransaction.expendId; + const type = editingTransaction.incomeId ? "income" : "expend"; + updateTransaction.mutate({ id, data: formData, type }); + } else { + addTransaction.mutate(formData); + } + handleCloseModal(); + }; + + const handleDeleteTransaction = (id, type) => { + if (window.confirm("정말 삭제하시겠습니까?")) { + deleteTransaction.mutate({ id, type }); + } + }; + return ( -

Example4

+ +
+ 최근 거래 내역 + +
+ + + + setCurrentDate( + new Date(currentDate.getFullYear(), currentDate.getMonth() - 1) + ) + } + > + ‹ + + + {currentDate.toISOString().slice(0, 7).replace("-", "년 ") + "월"} + + + setCurrentDate( + new Date(currentDate.getFullYear(), currentDate.getMonth() + 1) + ) + } + > + › + + + {expendError || incomeError ? ( + + ) : isExpendLoading || isIncomeLoading ? ( + + ) : ( + <> + + + handleOpenModal( + transaction.incomeId ? "income" : "expend", + transaction + ) + } + onDelete={handleDeleteTransaction} + /> + +
+ + + + {activeTab !== "전체" && ( + + handleOpenModal( + activeTab === "수입" ? "income" : "expend" + ) + } + > + 작성하기 + + )} +
+ + )} +
+
+
); } + +const OuterContainer = styled.div` + margin-top: 20px; +`; + +const Header = styled.div` + margin-bottom: 20px; +`; + +const Title = styled.h1` + font-size: 24px; + font-weight: 400; + margin-left: 20px; + margin-bottom: 15px; + color: ${({ theme }) => theme.colors.gray03}; +`; + +const InnerContainer = styled.div` + background: ${({ theme }) => theme.colors.white}; + border-radius: 6px; + padding: 20px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + max-width: 93%; + margin: 0 auto; + min-height: 630px; + display: flex; + flex-direction: column; +`; + +const MonthNavigation = styled.div` + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 20px; +`; + +const NavButton = styled.button` + background: none; + border: none; + font-size: 22px; + cursor: pointer; + margin: 0 16px; + color: ${({ theme }) => theme.colors.black}; +`; + +const MonthDisplay = styled.span` + font-size: 18px; + font-weight: bold; + margin: 0 90px; + color: ${({ theme }) => theme.colors.black}; +`; + +const ContentWrapper = styled.div` + flex-grow: 1; + overflow-y: auto; +`; + +const Footer = styled.div` + display: flex; + justify-content: center; + align-items: center; + position: relative; + height: 60px; + margin-top: 20px; +`; + +const PaginationWrapper = styled.div` + position: absolute; + left: 50%; + transform: translateX(-50%); +`; + +const ActionButton = styled.button` + position: absolute; + right: 30px; + height: 40px; + padding: 0 24px; + background-color: ${({ theme }) => theme.colors.blue}; + color: ${({ theme }) => theme.colors.white}; + border: none; + border-radius: 6px; + font-size: 14px; + cursor: pointer; + + &:hover { + background-color: ${({ theme }) => theme.colors.primaryHover}; + } +`; diff --git a/src/pages/login.jsx b/src/pages/login.jsx index 41b32d5..514461c 100644 --- a/src/pages/login.jsx +++ b/src/pages/login.jsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import styled from "styled-components"; import { FaEye, FaEyeSlash } from "react-icons/fa"; import { BsChatFill } from "react-icons/bs"; @@ -7,13 +7,12 @@ import { Title, Form, Button, - OrText, InputWrapper, } from "../components/Login.js"; import { Link, useNavigate } from "react-router-dom"; import axios from "axios"; const Input = styled.input` - width: 85%; + width: 85%; padding: 10px; padding-right: 30px; border: 1px solid #ccc; /* 기본 테두리 색상 */ @@ -28,9 +27,9 @@ const Input = styled.input` &:focus { border: 1px solid black; /* 클릭/포커스 시 진한 테두리 */ - + transition: border-color 0.3s ease, box-shadow 0.3s ease; /* 애니메이션 */ - + } `; const PasswordToggle = styled.button` @@ -65,7 +64,11 @@ const CheckboxLabel = styled.label` font-size: 12px; margin-left: 5px; `; - +export const OrText = styled.div` + margin: 20px 0; + font-size: 16px; + color: ${({ theme }) => theme.colors.gray04}; +`; function Login() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); @@ -86,7 +89,6 @@ function Login() { }, []); const handleLogin = async () => { - console.log(`${API_URL}`); try { const response = await axios.post(`${API_URL}/api/login`, { email, @@ -103,7 +105,7 @@ function Login() { localStorage.removeItem("email"); } alert("로그인 성공!"); - navigate("/"); // 로그인 성공 후 홈 페이지로 이동 + navigate("/main"); // 로그인 성공 후 홈 페이지로 이동 } else { alert("로그인 실패: 잘못된 이메일 또는 비밀번호입니다."); } @@ -121,15 +123,17 @@ function Login() { WealthTracker
e.preventDefault()}> -
- - setEmail(e.target.value)} - /> -
+ +
+ + setEmail(e.target.value)} + /> +
+
diff --git a/src/utils/formatters.js b/src/utils/formatters.js new file mode 100644 index 0000000..abee4be --- /dev/null +++ b/src/utils/formatters.js @@ -0,0 +1,24 @@ +export const formatDate = (date) => { + if (!date) return "날짜 없음"; + try { + const d = new Date(date); + const year = d.getFullYear(); + const month = String(d.getMonth() + 1).padStart(2, '0'); + const day = String(d.getDate()).padStart(2, '0'); + return `${year}.${month}.${day}`; + } catch (error) { + console.error('날짜 형식 변환 오류:', error); + return "날짜 형식 오류"; + } +}; + +export const formatAmount = (amount) => { + if (!amount) return "금액 없음"; + try { + const num = typeof amount === 'string' ? parseInt(amount, 10) : amount; + return num.toLocaleString('ko-KR') + '원'; + } catch (error) { + console.error('금액 형식 변환 오류:', error); + return "금액 형식 오류"; + } +}; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index bf7e3cd..0b2ed9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -47,7 +47,7 @@ dependencies: "@babel/types" "^7.26.0" -"@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.26.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7": +"@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.23.8", "@babel/runtime@^7.26.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.7": version "7.26.0" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz" integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw== @@ -208,10 +208,10 @@ resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz" integrity sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg== -"@esbuild/win32-x64@0.21.5": +"@esbuild/darwin-arm64@0.21.5": version "0.21.5" - resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz" - integrity sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw== + resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz" + integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ== "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" @@ -300,6 +300,14 @@ resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz" integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== +"@jridgewell/source-map@^0.3.3": + version "0.3.6" + resolved "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz" + integrity sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": version "1.5.0" resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz" @@ -571,15 +579,15 @@ resolved "https://registry.npmjs.org/@remix-run/router/-/router-1.21.0.tgz" integrity sha512-xfSkCAchbdG5PnbrKqFWwia4Bi61nH+wm8wLEqfHDyp7Y3dZzgqS2itV8i4gAq9pC2HsTpwyBC6Ds8VHZ96JlA== -"@rollup/rollup-win32-x64-msvc@4.22.5": +"@rollup/rollup-darwin-arm64@4.22.5": version "4.22.5" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.5.tgz" - integrity sha512-+lvL/4mQxSV8MukpkKyyvfwhH266COcWlXE/1qxwN08ajovta3459zrjLghYMgDerlzNwLAcFpvU+WWE5y6nAQ== + resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.5.tgz" + integrity sha512-250ZGg4ipTL0TGvLlfACkIxS9+KLtIbn7BCZjsZj88zSg2Lvu3Xdw6dhAhfe/FjjXPVNCtcSp+WZjVsD3a/Zlw== -"@swc/core-win32-x64-msvc@1.7.26": +"@swc/core-darwin-arm64@1.7.26": version "1.7.26" - resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.26.tgz" - integrity sha512-VR+hzg9XqucgLjXxA13MtV5O3C0bK0ywtLIBw/+a+O+Oc6mxFWHtdUeXDbIi5AiPbn0fjgVJMqYnyjGyyX8u0w== + resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.26.tgz" + integrity sha512-FF3CRYTg6a7ZVW4yT9mesxoVVZTrcSWtmZhxKCYJX9brH4CS/7PRPjAKNk6kzWgWuRoglP7hkjQcd6EpMcZEAw== "@swc/core@^1.5.7": version "1.7.26" @@ -612,6 +620,32 @@ dependencies: "@swc/counter" "^0.1.3" +<<<<<<< HEAD +"@tanstack/query-core@5.62.3": + version "5.62.3" + resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.3.tgz" + integrity sha512-Jp/nYoz8cnO7kqhOlSv8ke/0MJRJVGuZ0P/JO9KQ+f45mpN90hrerzavyTKeSoT/pOzeoOUkv1Xd0wPsxAWXfg== + +"@tanstack/react-query@^5.62.3": + version "5.62.3" + resolved "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.62.3.tgz" + integrity sha512-y2zDNKuhgiuMgsKkqd4AcsLIBiCfEO8U11AdrtAUihmLbRNztPrlcZqx2lH1GacZsx+y1qRRbCcJLYTtF1vKsw== + dependencies: + "@tanstack/query-core" "5.62.3" +======= +"@tanstack/query-core@5.62.2": + version "5.62.2" + resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.2.tgz" + integrity sha512-LcwVcC5qpsDpHcqlXUUL5o9SaOBwhNkGeV+B06s0GBoyBr8FqXPuXT29XzYXR36lchhnerp6XO+CWc84/vh7Zg== + +"@tanstack/react-query@^5.62.2": + version "5.62.2" + resolved "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.62.2.tgz" + integrity sha512-fkTpKKfwTJtVPKVR+ag7YqFgG/7TRVVPzduPAUF9zRCiiA8Wu305u+KJl8rCrh98Qce77vzIakvtUyzWLtaPGA== + dependencies: + "@tanstack/query-core" "5.62.2" +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e + "@types/d3-array@^3.0.3": version "3.2.1" resolved "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz" @@ -706,11 +740,11 @@ integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/node@*", "@types/node@^18.0.0 || >=20.0.0": - version "22.9.0" - resolved "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz" - integrity sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ== + version "22.10.1" + resolved "https://registry.npmjs.org/@types/node/-/node-22.10.1.tgz" + integrity sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ== dependencies: - undici-types "~6.19.8" + undici-types "~6.20.0" "@types/parse-json@^4.0.0": version "4.0.2" @@ -769,7 +803,7 @@ acorn-jsx@^5.3.2: resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.12.0: +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.12.0, acorn@^8.8.2: version "8.12.1" resolved "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz" integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== @@ -811,6 +845,8 @@ array-buffer-byte-length@^1.0.1: array-flatten@1.1.1: version "1.1.1" + resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== array-includes@^3.1.6, array-includes@^3.1.8: version "3.1.8" @@ -883,6 +919,8 @@ arraybuffer.prototype.slice@^1.0.3: asynckit@^0.4.0: version "0.4.0" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== available-typed-arrays@^1.0.7: version "1.0.7" @@ -892,9 +930,9 @@ available-typed-arrays@^1.0.7: possible-typed-array-names "^1.0.0" axios@^1.7.7: - version "1.7.8" - resolved "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz" - integrity sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw== + version "1.7.9" + resolved "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz" + integrity sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw== dependencies: follow-redirects "^1.15.6" form-data "^4.0.0" @@ -914,6 +952,11 @@ balanced-match@^1.0.0: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== +big-integer@^1.6.16: + version "1.6.52" + resolved "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz" + integrity sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg== + body-parser@1.20.3: version "1.20.3" resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz" @@ -947,6 +990,28 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" +<<<<<<< HEAD +======= +broadcast-channel@^3.4.1: + version "3.7.0" + resolved "https://registry.npmjs.org/broadcast-channel/-/broadcast-channel-3.7.0.tgz" + integrity sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg== + dependencies: + "@babel/runtime" "^7.7.2" + detect-node "^2.1.0" + js-sha3 "0.8.0" + microseconds "0.2.0" + nano-time "1.0.0" + oblivious-set "1.0.0" + rimraf "3.0.2" + unload "2.2.0" + +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + bytes@3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" @@ -1000,9 +1065,16 @@ color-name@~1.1.4: combined-stream@^1.0.8: version "1.0.8" + resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== dependencies: delayed-stream "~1.0.0" +commander@^2.20.0: + version "2.20.3" + resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" @@ -1021,6 +1093,9 @@ content-type@~1.0.4, content-type@~1.0.5: integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== convert-source-map@^1.5.0: + version "1.9.0" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== cookie-signature@1.0.6: version "1.0.6" @@ -1246,6 +1321,11 @@ destroy@1.2.0: resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== +detect-node@^2.0.4, detect-node@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz" + integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== + doctrine@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" @@ -1577,9 +1657,9 @@ eventemitter3@^4.0.0, eventemitter3@^4.0.1: integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== express@^4.21.1: - version "4.21.1" - resolved "https://registry.npmjs.org/express/-/express-4.21.1.tgz" - integrity sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ== + version "4.21.2" + resolved "https://registry.npmjs.org/express/-/express-4.21.2.tgz" + integrity sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA== dependencies: accepts "~1.3.8" array-flatten "1.1.1" @@ -1600,7 +1680,7 @@ express@^4.21.1: methods "~1.1.2" on-finished "2.4.1" parseurl "~1.3.3" - path-to-regexp "0.1.10" + path-to-regexp "0.1.12" proxy-addr "~2.0.7" qs "6.13.0" range-parser "~1.2.1" @@ -1707,6 +1787,8 @@ for-each@^0.3.3: form-data@^4.0.0: version "4.0.1" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz" + integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" @@ -1722,6 +1804,16 @@ fresh@0.5.2: resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@~2.3.2, fsevents@~2.3.3: + version "2.3.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" @@ -1769,6 +1861,18 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" +glob@^7.1.3: + version "7.2.3" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + globals@^11.1.0: version "11.12.0" resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" @@ -1904,7 +2008,15 @@ imurmurhash@^0.1.4: resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== -inherits@2.0.4: +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2044,6 +2156,8 @@ is-path-inside@^3.0.3: is-plain-object@^5.0.0: version "5.0.0" + resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz" + integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== is-regex@^1.1.4: version "1.1.4" @@ -2127,6 +2241,11 @@ iterator.prototype@^1.1.2: reflect.getprototypeof "^1.0.4" set-function-name "^2.0.1" +js-sha3@0.8.0: + version "0.8.0" + resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz" + integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" @@ -2218,6 +2337,14 @@ loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" +match-sorter@^6.0.2: + version "6.3.4" + resolved "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.4.tgz" + integrity sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg== + dependencies: + "@babel/runtime" "^7.23.8" + remove-accents "0.5.0" + media-typer@0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" @@ -2241,6 +2368,11 @@ micromatch@^4.0.8: braces "^3.0.3" picomatch "^2.3.1" +microseconds@0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/microseconds/-/microseconds-0.2.0.tgz" + integrity sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA== + mime-db@1.52.0: version "1.52.0" resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" @@ -2258,7 +2390,7 @@ mime@1.6.0: resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -minimatch@^3.1.2: +minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -2280,6 +2412,13 @@ ms@2.0.0: resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== +nano-time@1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/nano-time/-/nano-time-1.0.0.tgz" + integrity sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA== + dependencies: + big-integer "^1.6.16" + nanoid@^3.3.7: version "3.3.7" resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz" @@ -2292,6 +2431,8 @@ natural-compare@^1.4.0: negotiator@0.6.3: version "0.6.3" + resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== object-assign@^4.1.1: version "4.1.1" @@ -2346,6 +2487,11 @@ object.values@^1.1.6, object.values@^1.2.0: define-properties "^1.2.1" es-object-atoms "^1.0.0" +oblivious-set@1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.0.0.tgz" + integrity sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw== + on-finished@2.4.1: version "2.4.1" resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" @@ -2353,6 +2499,13 @@ on-finished@2.4.1: dependencies: ee-first "1.1.1" +once@^1.3.0: + version "1.4.0" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + optionator@^0.9.3: version "0.9.4" resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz" @@ -2406,6 +2559,11 @@ path-exists@^4.0.0: resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + path-key@^3.1.0: version "3.1.1" resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" @@ -2416,10 +2574,10 @@ path-parse@^1.0.7: resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -path-to-regexp@0.1.10: - version "0.1.10" - resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz" - integrity sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w== +path-to-regexp@0.1.12: + version "0.1.12" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz" + integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== path-type@^4.0.0: version "4.0.0" @@ -2457,6 +2615,8 @@ postcss@^8.4.43: postcss@8.4.38: version "8.4.38" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz" + integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== dependencies: nanoid "^3.3.7" picocolors "^1.0.0" @@ -2496,6 +2656,8 @@ punycode@^2.1.0: qs@6.13.0: version "6.13.0" + resolved "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz" + integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== dependencies: side-channel "^1.0.6" @@ -2534,23 +2696,37 @@ react-error-boundary@^4.1.2: dependencies: "@babel/runtime" "^7.12.5" -react-icons@^5.3.0: - version "5.3.0" - resolved "https://registry.npmjs.org/react-icons/-/react-icons-5.3.0.tgz" - integrity sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg== - -react-is@^16.13.1: - version "16.13.1" - resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== +react-icons@^5.4.0: + version "5.4.0" + resolved "https://registry.npmjs.org/react-icons/-/react-icons-5.4.0.tgz" + integrity sha512-7eltJxgVt7X64oHh6wSWNwwbKTCtMfK35hcjvJS0yxEAhPM8oUKdS3+kqaW1vicIltw+kR2unHaa12S9pPALoQ== -react-is@^16.7.0: +react-is@^16.13.1, react-is@^16.7.0: version "16.13.1" resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== react-is@^18.3.1: version "18.3.1" + resolved "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz" + integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== +<<<<<<< HEAD +======= + +react-kakao-login@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/react-kakao-login/-/react-kakao-login-2.1.1.tgz" + integrity sha512-t9htk41/i0zUY7q92mtqdqVZZ018BPi1DgbSVVrPCmuMKhZGJOnZ9OfaKLVPu3sn8QXbJc3dPwqKOiElpb44hQ== + +react-query@^3.39.3: + version "3.39.3" + resolved "https://registry.npmjs.org/react-query/-/react-query-3.39.3.tgz" + integrity sha512-nLfLz7GiohKTJDuT4us4X3h/8unOh+00MLb2yJoGTPjxKs2bc1iDhkNx2bd5MKklXnOD3NrVZ+J2UXujA5In4g== + dependencies: + "@babel/runtime" "^7.5.5" + broadcast-channel "^3.4.1" + match-sorter "^6.0.2" +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e react-router-dom@^6.27.0: version "6.28.0" @@ -2591,7 +2767,11 @@ react-transition-group@^4.4.5: loose-envify "^1.4.0" prop-types "^15.6.2" -react@*, "react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^17.0.0 || ^18.0.0 || ^19.0.0", react@^18.3.1, "react@>= 16.14.0 < 19.0.0", "react@>= 16.8.0", react@>=16.13.1, react@>=16.6.0, react@>=16.8, react@>=16.8.0: +<<<<<<< HEAD +react@*, "react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^17.0.0 || ^18.0.0 || ^19.0.0", "react@^18 || ^19", react@^18.3.1, "react@>= 16.14.0 < 19.0.0", "react@>= 16.8.0", react@>=16.13.1, react@>=16.6.0, react@>=16.8, react@>=16.8.0: +======= +react@*, "react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^17.0.0 || ^18.0.0 || ^19.0.0", "react@^18 || ^19", react@^18.3.1, "react@>= 15.3.0", "react@>= 16.14.0 < 19.0.0", "react@>= 16.8.0", react@>=16.13.1, react@>=16.6.0, react@>=16.8, react@>=16.8.0: +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e version "18.3.1" resolved "https://registry.npmjs.org/react/-/react-18.3.1.tgz" integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== @@ -2647,6 +2827,11 @@ regexp.prototype.flags@^1.5.2: es-errors "^1.3.0" set-function-name "^2.0.1" +remove-accents@0.5.0: + version "0.5.0" + resolved "https://registry.npmjs.org/remove-accents/-/remove-accents-0.5.0.tgz" + integrity sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" @@ -2680,6 +2865,13 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== +rimraf@3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + rollup@^4.20.0: version "4.22.5" resolved "https://registry.npmjs.org/rollup/-/rollup-4.22.5.tgz" @@ -2841,11 +3033,24 @@ source-map-js@^1.2.0, source-map-js@^1.2.1: resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz" integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== +source-map-support@~0.5.20: + version "0.5.21" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map@^0.5.7: version "0.5.7" resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + statuses@2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" @@ -2954,6 +3159,16 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== +terser@^5.4.0: + version "5.36.0" + resolved "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz" + integrity sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w== + dependencies: + "@jridgewell/source-map" "^0.3.3" + acorn "^8.8.2" + commander "^2.20.0" + source-map-support "~0.5.20" + text-table@^0.2.0: version "0.2.0" resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" @@ -3050,10 +3265,21 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" -undici-types@~6.19.8: - version "6.19.8" - resolved "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz" - integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== +undici-types@~6.20.0: + version "6.20.0" + resolved "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz" + integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== +<<<<<<< HEAD +======= + +unload@2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/unload/-/unload-2.2.0.tgz" + integrity sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA== + dependencies: + "@babel/runtime" "^7.6.2" + detect-node "^2.0.4" +>>>>>>> c060595e75df3729f4f3b4b13d22b6cd1eeae61e unpipe@~1.0.0, unpipe@1.0.0: version "1.0.0" @@ -3170,6 +3396,11 @@ word-wrap@^1.2.5: resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== +wrappy@1: + version "1.0.2" + resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + yaml@^1.10.0: version "1.10.2" resolved "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz"