diff --git a/.env.example b/.env.example index 074ff4835..71528b7a7 100644 --- a/.env.example +++ b/.env.example @@ -11,6 +11,7 @@ UVICORN_PORT = 8000 # UVICORN_SSL_CERTFILE = "/var/lib/marzban/certs/example.com/fullchain.pem" # UVICORN_SSL_KEYFILE = "/var/lib/marzban/certs/example.com/key.pem" +# DASHBOARD_PATH = "/dashboard/" # XRAY_JSON = "xray_config.json" # XRAY_SUBSCRIPTION_URL_PREFIX = "https://example.com" diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index c089bc1e2..6b5de84d3 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -23,7 +23,7 @@ jobs: - name: Build project working-directory: ./app/dashboard - run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --base '/dashboard/' + run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --assetsDir statics - name: Create 404.html working-directory: ./app/dashboard diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e93385a6..50449e2eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Build project working-directory: ./app/dashboard - run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --base '/dashboard/' + run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --assetsDir statics - name: Create 404.html working-directory: ./app/dashboard diff --git a/app/dashboard/__init__.py b/app/dashboard/__init__.py index 713c142d6..43032c1e4 100644 --- a/app/dashboard/__init__.py +++ b/app/dashboard/__init__.py @@ -4,17 +4,17 @@ from pathlib import Path from app import app -from config import DEBUG, VITE_BASE_API +from config import DEBUG, VITE_BASE_API, DASHBOARD_PATH from fastapi.staticfiles import StaticFiles -path = '/dashboard/' base_dir = Path(__file__).parent build_dir = base_dir / 'build' +statics_dir = build_dir / 'statics' def build(): proc = subprocess.Popen( - ['npm', 'run', 'build', '--', '--base', path, '--outDir', build_dir], + ['npm', 'run', 'build', '--', '--outDir', build_dir, '--assetsDir', 'statics'], env={**os.environ, 'VITE_BASE_API': VITE_BASE_API}, cwd=base_dir ) @@ -27,7 +27,7 @@ def build(): def run_dev(): proc = subprocess.Popen( - ['npm', 'run', 'dev', '--', '--host', '0.0.0.0', '--base', path, '--clearScreen', 'false'], + ['npm', 'run', 'dev', '--', '--host', '0.0.0.0', '--clearScreen', 'false', '--base', os.path.join(DASHBOARD_PATH, '')], env={**os.environ, 'VITE_BASE_API': VITE_BASE_API}, cwd=base_dir ) @@ -40,10 +40,15 @@ def run_build(): build() app.mount( - path, + DASHBOARD_PATH, StaticFiles(directory=build_dir, html=True), name="dashboard" ) + app.mount( + '/statics/', + StaticFiles(directory=statics_dir, html=True), + name="statics" + ) @app.on_event("startup") diff --git a/app/dashboard/build/404.html b/app/dashboard/build/404.html index 733bfd19b..8f45a83ad 100644 --- a/app/dashboard/build/404.html +++ b/app/dashboard/build/404.html @@ -8,38 +8,38 @@ - + - + - + - - - + + +
- + \ No newline at end of file diff --git a/app/dashboard/build/assets/index.876adee7.css b/app/dashboard/build/assets/index.876adee7.css deleted file mode 100644 index 2d0b46c19..000000000 --- a/app/dashboard/build/assets/index.876adee7.css +++ /dev/null @@ -1,6 +0,0 @@ -@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0;width:100%}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:white;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__month--selected,.react-datepicker__month--in-selecting-range,.react-datepicker__month--in-range,.react-datepicker__quarter--selected,.react-datepicker__quarter--in-selecting-range,.react-datepicker__quarter--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__month--selected:hover,.react-datepicker__month--in-selecting-range:hover,.react-datepicker__month--in-range:hover,.react-datepicker__quarter--selected:hover,.react-datepicker__quarter--in-selecting-range:hover,.react-datepicker__quarter--in-range:hover{background-color:#1d5d90}.react-datepicker__month--disabled,.react-datepicker__quarter--disabled{color:#ccc;pointer-events:none}.react-datepicker__month--disabled:hover,.react-datepicker__quarter--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__month-text.react-datepicker__month--selected:hover,.react-datepicker__month-text.react-datepicker__month--in-range:hover,.react-datepicker__month-text.react-datepicker__quarter--selected:hover,.react-datepicker__month-text.react-datepicker__quarter--in-range:hover,.react-datepicker__quarter-text.react-datepicker__month--selected:hover,.react-datepicker__quarter-text.react-datepicker__month--in-range:hover,.react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,.react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover{background-color:#216ba5}.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover{background-color:#f0f0f0}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"\d7"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;overflow:hidden;z-index:1}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color));transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}.jsoneditor input,.jsoneditor input:not([type]),.jsoneditor input[type=text],.jsoneditor input[type=search],.jsoneditor-modal input,.jsoneditor-modal input:not([type]),.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=search]{height:auto;border:inherit;box-shadow:none;font-size:inherit;box-sizing:inherit;padding:inherit;font-family:inherit;transition:none;line-height:inherit}.jsoneditor input:focus,.jsoneditor input:not([type]):focus,.jsoneditor input[type=text]:focus,.jsoneditor input[type=search]:focus,.jsoneditor-modal input:focus,.jsoneditor-modal input:not([type]):focus,.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal input[type=search]:focus{border:inherit;box-shadow:inherit}.jsoneditor textarea,.jsoneditor-modal textarea{height:inherit}.jsoneditor select,.jsoneditor-modal select{display:inherit;height:inherit}.jsoneditor label,.jsoneditor-modal label{font-size:inherit;font-weight:inherit;color:inherit}.jsoneditor table,.jsoneditor-modal table{border-collapse:collapse;width:auto}.jsoneditor td,.jsoneditor th,.jsoneditor-modal td,.jsoneditor-modal th{padding:0;display:table-cell;text-align:left;vertical-align:inherit;border-radius:inherit}.jsoneditor .autocomplete.dropdown{position:absolute;background:#ffffff;box-shadow:2px 2px 12px #8080804d;border:1px solid #d3d3d3;overflow-x:hidden;overflow-y:auto;cursor:default;margin:0;padding:5px;text-align:left;outline:0;font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px}.jsoneditor .autocomplete.dropdown .item{color:#1a1a1a}.jsoneditor .autocomplete.dropdown .item.hover{background-color:#ebebeb}.jsoneditor .autocomplete.hint{color:#a1a1a1;top:4px;left:4px}.jsoneditor-contextmenu-root{position:relative;width:0;height:0}.jsoneditor-contextmenu{position:absolute;box-sizing:content-box;z-index:2}.jsoneditor-contextmenu .jsoneditor-menu{position:relative;left:0;top:0;width:128px;height:auto;background:#ffffff;border:1px solid #d3d3d3;box-shadow:2px 2px 12px #8080804d;list-style:none;margin:0;padding:0}.jsoneditor-contextmenu .jsoneditor-menu button{position:relative;padding:0 8px 0 0;margin:0;width:128px;height:auto;border:none;cursor:pointer;color:#4d4d4d;background:transparent;font-size:14px;font-family:arial,sans-serif;box-sizing:border-box;text-align:left}.jsoneditor-contextmenu .jsoneditor-menu button::-moz-focus-inner{padding:0;border:0}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-default{width:96px}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-expand{float:right;width:32px;height:24px;border-left:1px solid #e5e5e5}.jsoneditor-contextmenu .jsoneditor-menu li{overflow:hidden}.jsoneditor-contextmenu .jsoneditor-menu li ul{display:none;position:relative;left:-10px;top:0;border:none;box-shadow:inset 0 0 10px #80808080;padding:0 10px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.jsoneditor-contextmenu .jsoneditor-menu li ul .jsoneditor-icon{margin-left:24px}.jsoneditor-contextmenu .jsoneditor-menu li ul li button{padding-left:24px;animation:all ease-in-out 1s}.jsoneditor-contextmenu .jsoneditor-menu li button .jsoneditor-expand{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:0 -72px}.jsoneditor-contextmenu .jsoneditor-icon{position:absolute;top:0;left:0;width:24px;height:24px;border:none;padding:0;margin:0;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg)}.jsoneditor-contextmenu .jsoneditor-text{padding:4px 0 4px 24px;word-wrap:break-word}.jsoneditor-contextmenu .jsoneditor-text.jsoneditor-right-margin{padding-right:24px}.jsoneditor-contextmenu .jsoneditor-separator{height:0;border-top:1px solid #e5e5e5;padding-top:5px;margin-top:5px}.jsoneditor-contextmenu button.jsoneditor-remove .jsoneditor-icon{background-position:-24px 0}.jsoneditor-contextmenu button.jsoneditor-append .jsoneditor-icon,.jsoneditor-contextmenu button.jsoneditor-insert .jsoneditor-icon{background-position:0 0}.jsoneditor-contextmenu button.jsoneditor-duplicate .jsoneditor-icon{background-position:-48px 0}.jsoneditor-contextmenu button.jsoneditor-sort-asc .jsoneditor-icon{background-position:-168px 0}.jsoneditor-contextmenu button.jsoneditor-sort-desc .jsoneditor-icon{background-position:-192px 0}.jsoneditor-contextmenu button.jsoneditor-transform .jsoneditor-icon{background-position:-216px 0}.jsoneditor-contextmenu button.jsoneditor-extract .jsoneditor-icon{background-position:0 -24px}.jsoneditor-contextmenu button.jsoneditor-type-string .jsoneditor-icon{background-position:-144px 0}.jsoneditor-contextmenu button.jsoneditor-type-auto .jsoneditor-icon{background-position:-120px 0}.jsoneditor-contextmenu button.jsoneditor-type-object .jsoneditor-icon{background-position:-72px 0}.jsoneditor-contextmenu button.jsoneditor-type-array .jsoneditor-icon{background-position:-96px 0}.jsoneditor-contextmenu button.jsoneditor-type-modes .jsoneditor-icon{background-image:none;width:6px}.jsoneditor-contextmenu ul,.jsoneditor-contextmenu li{box-sizing:content-box;position:relative}.jsoneditor-contextmenu .jsoneditor-menu button:hover,.jsoneditor-contextmenu .jsoneditor-menu button:focus{color:#1a1a1a;background-color:#f5f5f5;outline:none}.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus{color:#fff;background-color:#ee422e}.jsoneditor-contextmenu .jsoneditor-menu li ul li button:hover,.jsoneditor-contextmenu .jsoneditor-menu li ul li button:focus{background-color:#f5f5f5}.jsoneditor-modal{max-width:95%;border-radius:2px!important;padding:45px 15px 15px!important;box-shadow:2px 2px 12px #8080804d;color:#4d4d4d;line-height:1.3em}.jsoneditor-modal.jsoneditor-modal-transform{width:600px!important}.jsoneditor-modal .pico-modal-header{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;padding:0 10px;height:30px;line-height:30px;font-family:arial,sans-serif;font-size:11pt;background:#3883fa;color:#fff}.jsoneditor-modal table{width:100%}.jsoneditor-modal table td{padding:3px 0}.jsoneditor-modal table td.jsoneditor-modal-input{text-align:right;padding-right:0;white-space:nowrap}.jsoneditor-modal table td.jsoneditor-modal-actions{padding-top:15px}.jsoneditor-modal table th{vertical-align:middle}.jsoneditor-modal p:first-child{margin-top:0}.jsoneditor-modal a{color:#3883fa}.jsoneditor-modal .jsoneditor-jmespath-block{margin-bottom:10px}.jsoneditor-modal .pico-close{background:none!important;font-size:24px!important;top:7px!important;right:7px!important;color:#fff}.jsoneditor-modal input{padding:4px}.jsoneditor-modal input[type=text]{cursor:inherit}.jsoneditor-modal input[disabled]{background:#d3d3d3;color:gray}.jsoneditor-modal .jsoneditor-select-wrapper{position:relative;display:inline-block}.jsoneditor-modal .jsoneditor-select-wrapper:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #666;position:absolute;right:8px;top:14px;pointer-events:none}.jsoneditor-modal select{padding:3px 24px 3px 10px;min-width:180px;max-width:350px;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:0;text-overflow:"";font-size:14px;line-height:1.5em}.jsoneditor-modal select::-ms-expand{display:none}.jsoneditor-modal .jsoneditor-button-group input{padding:4px 10px;margin:0;border-radius:0;border-left-style:none}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left-style:solid}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.jsoneditor-modal .jsoneditor-transform-preview{background:#f5f5f5;height:200px}.jsoneditor-modal .jsoneditor-transform-preview.jsoneditor-error{color:#ee422e}.jsoneditor-modal .jsoneditor-jmespath-wizard{line-height:1.2em;width:100%;padding:0;border-radius:3px}.jsoneditor-modal .jsoneditor-jmespath-label{font-weight:700;color:#1e90ff;margin-top:20px;margin-bottom:5px}.jsoneditor-modal .jsoneditor-jmespath-wizard-table{width:100%;border-collapse:collapse}.jsoneditor-modal .jsoneditor-jmespath-wizard-label{font-style:italic;margin:4px 0 2px}.jsoneditor-modal .jsoneditor-inline{position:relative;display:inline-block;width:100%;padding-top:2px;padding-bottom:2px}.jsoneditor-modal .jsoneditor-inline:not(:last-child){padding-right:2px}.jsoneditor-modal .jsoneditor-jmespath-filter{display:flex;flex-wrap:wrap}.jsoneditor-modal .jsoneditor-jmespath-filter-field{width:180px}.jsoneditor-modal .jsoneditor-jmespath-filter-relation{width:100px}.jsoneditor-modal .jsoneditor-jmespath-filter-value{min-width:180px;flex:1}.jsoneditor-modal .jsoneditor-jmespath-sort-field{width:170px}.jsoneditor-modal .jsoneditor-jmespath-sort-order{width:150px}.jsoneditor-modal .jsoneditor-jmespath-select-fields{width:100%}.jsoneditor-modal .selectr-selected{border-color:#d3d3d3;padding:4px 28px 4px 8px}.jsoneditor-modal .selectr-selected .selectr-tag{background-color:#3883fa;border-radius:5px}.jsoneditor-modal table th,.jsoneditor-modal table td{text-align:left;vertical-align:middle;font-weight:400;color:#4d4d4d;border-spacing:0;border-collapse:collapse}.jsoneditor-modal select,.jsoneditor-modal textarea,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal #query{background:#ffffff;border:1px solid #d3d3d3;color:#4d4d4d;border-radius:3px;padding:4px}.jsoneditor-modal textarea,.jsoneditor-modal #query{border-radius:unset}.jsoneditor-modal,.jsoneditor-modal table td,.jsoneditor-modal table th,.jsoneditor-modal select,.jsoneditor-modal option,.jsoneditor-modal textarea,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal #query{font-size:10.5pt;font-family:arial,sans-serif}.jsoneditor-modal #query,.jsoneditor-modal .jsoneditor-transform-preview{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;width:100%;box-sizing:border-box}.jsoneditor-modal input[type=button],.jsoneditor-modal input[type=submit]{background:#f5f5f5;padding:4px 20px}.jsoneditor-modal select,.jsoneditor-modal input{cursor:pointer}.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-asc input.jsoneditor-button-asc,.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-desc input.jsoneditor-button-desc{background:#3883fa;border-color:#3883fa;color:#fff}.jsoneditor{color:#1a1a1a;border:thin solid #3883fa;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;position:relative;padding:0;line-height:100%}div.jsoneditor-field,div.jsoneditor-value,div.jsoneditor-readonly,div.jsoneditor-default{border:1px solid transparent;min-height:16px;min-width:32px;line-height:16px;padding:2px;margin:1px;word-wrap:break-word;float:left}div.jsoneditor-field p,div.jsoneditor-value p{margin:0}div.jsoneditor-value{word-break:break-word}div.jsoneditor-value.jsoneditor-empty:after{content:"value"}div.jsoneditor-value.jsoneditor-string{color:#006000}div.jsoneditor-value.jsoneditor-number{color:#ee422e}div.jsoneditor-value.jsoneditor-boolean{color:#ff8c00}div.jsoneditor-value.jsoneditor-null{color:#004ed0}div.jsoneditor-value.jsoneditor-color-value,div.jsoneditor-value.jsoneditor-invalid{color:#1a1a1a}div.jsoneditor-readonly{min-width:16px;color:gray}div.jsoneditor-empty{border-color:#d3d3d3;border-style:dashed;border-radius:2px}div.jsoneditor-field.jsoneditor-empty:after{content:"field"}div.jsoneditor td{vertical-align:top}div.jsoneditor td.jsoneditor-separator{padding:3px 0;vertical-align:top;color:gray}div.jsoneditor td.jsoneditor-tree{vertical-align:top}div.jsoneditor.busy pre.jsoneditor-preview{background:#f5f5f5;color:gray}div.jsoneditor.busy div.jsoneditor-busy{display:inherit}div.jsoneditor code.jsoneditor-preview{background:none}div.jsoneditor.jsoneditor-mode-preview pre.jsoneditor-preview{width:100%;height:100%;box-sizing:border-box;overflow:auto;padding:2px;margin:0;white-space:pre-wrap;word-break:break-all}div.jsoneditor-default{color:gray;padding-left:10px}div.jsoneditor-tree{width:100%;height:100%;position:relative;overflow:auto;background:#ffffff}div.jsoneditor-tree button.jsoneditor-button{width:24px;height:24px;padding:0;margin:0;border:none;cursor:pointer;background-color:transparent;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg)}div.jsoneditor-tree button.jsoneditor-button:focus{background-color:#f5f5f5;outline:#e5e5e5 solid 1px}div.jsoneditor-tree button.jsoneditor-collapsed{background-position:0 -48px}div.jsoneditor-tree button.jsoneditor-expanded{background-position:0 -72px}div.jsoneditor-tree button.jsoneditor-contextmenu-button{background-position:-48px -72px}div.jsoneditor-tree button.jsoneditor-invisible{visibility:hidden;background:none}div.jsoneditor-tree button.jsoneditor-dragarea{background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:-72px -72px;cursor:move}div.jsoneditor-tree *:focus{outline:none}div.jsoneditor-tree div.jsoneditor-show-more{display:inline-block;padding:3px 4px;margin:2px 0;background-color:#e5e5e5;border-radius:3px;color:gray;font-family:arial,sans-serif;font-size:14px}div.jsoneditor-tree div.jsoneditor-show-more a{display:inline-block;color:gray}div.jsoneditor-tree div.jsoneditor-color{display:inline-block;width:12px;height:12px;margin:4px;border:1px solid #808080;cursor:pointer}div.jsoneditor-tree div.jsoneditor-color.jsoneditor-color-readonly{cursor:inherit}div.jsoneditor-tree div.jsoneditor-date{background:#a1a1a1;color:#fff;font-family:arial,sans-serif;border-radius:3px;display:inline-block;padding:3px;margin:0 3px}div.jsoneditor-tree table.jsoneditor-tree{border-collapse:collapse;border-spacing:0;width:100%}div.jsoneditor-tree .jsoneditor-button{display:block}div.jsoneditor-tree .jsoneditor-button.jsoneditor-schema-error{width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:-168px -48px;background-color:transparent}div.jsoneditor-outer{position:static;width:100%;height:100%;margin:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}div.jsoneditor-outer.has-nav-bar{margin-top:-26px;padding-top:26px}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:-61px;padding-top:61px}div.jsoneditor-outer.has-status-bar{margin-bottom:-26px;padding-bottom:26px}div.jsoneditor-outer.has-main-menu-bar{margin-top:-35px;padding-top:35px}div.jsoneditor-busy{position:absolute;top:15%;left:0;box-sizing:border-box;width:100%;text-align:center;display:none}div.jsoneditor-busy span{background-color:#ffffab;border:1px solid #ffee00;border-radius:3px;padding:5px 15px;box-shadow:0 0 5px #0006}div.jsoneditor-field.jsoneditor-empty:after,div.jsoneditor-value.jsoneditor-empty:after{pointer-events:none;color:#d3d3d3;font-size:8pt}div.jsoneditor-value.jsoneditor-url,a.jsoneditor-value.jsoneditor-url{color:#006000;text-decoration:underline}a.jsoneditor-value.jsoneditor-url{display:inline-block;padding:2px;margin:2px}a.jsoneditor-value.jsoneditor-url:hover,a.jsoneditor-value.jsoneditor-url:focus{color:#ee422e}div.jsoneditor-field[contenteditable=true]:focus,div.jsoneditor-field[contenteditable=true]:hover,div.jsoneditor-value[contenteditable=true]:focus,div.jsoneditor-value[contenteditable=true]:hover,div.jsoneditor-field.jsoneditor-highlight,div.jsoneditor-value.jsoneditor-highlight{background-color:#ffffab;border:1px solid #ffee00;border-radius:2px}div.jsoneditor-field.jsoneditor-highlight-active,div.jsoneditor-field.jsoneditor-highlight-active:focus,div.jsoneditor-field.jsoneditor-highlight-active:hover,div.jsoneditor-value.jsoneditor-highlight-active,div.jsoneditor-value.jsoneditor-highlight-active:focus,div.jsoneditor-value.jsoneditor-highlight-active:hover{background-color:#fe0;border:1px solid #ffc700;border-radius:2px}div.jsoneditor-value.jsoneditor-object,div.jsoneditor-value.jsoneditor-array{min-width:16px}div.jsoneditor-tree button.jsoneditor-contextmenu-button:hover,div.jsoneditor-tree button.jsoneditor-contextmenu-button:focus,div.jsoneditor-tree button.jsoneditor-contextmenu-button.jsoneditor-selected,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{background-position:-48px -48px}div.jsoneditor-tree div.jsoneditor-show-more a:hover,div.jsoneditor-tree div.jsoneditor-show-more a:focus{color:#ee422e}textarea.jsoneditor-text,.ace-jsoneditor{min-height:150px}textarea.jsoneditor-text.ace_editor,.ace-jsoneditor.ace_editor{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace}textarea.jsoneditor-text{width:100%;height:100%;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;outline-width:0;border:none;background-color:#fff;resize:none}tr.jsoneditor-highlight,tr.jsoneditor-selected{background-color:#d3d3d3}tr.jsoneditor-selected button.jsoneditor-dragarea,tr.jsoneditor-selected button.jsoneditor-contextmenu-button{visibility:hidden}tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{visibility:visible}div.jsoneditor-tree button.jsoneditor-dragarea:hover,div.jsoneditor-tree button.jsoneditor-dragarea:focus,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{background-position:-72px -48px}div.jsoneditor tr,div.jsoneditor th,div.jsoneditor td{padding:0;margin:0}div.jsoneditor-field,div.jsoneditor-value,div.jsoneditor td,div.jsoneditor th,div.jsoneditor textarea,pre.jsoneditor-preview,.jsoneditor-schema-error,.jsoneditor-popover{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;color:#1a1a1a}.jsoneditor-schema-error{cursor:default;display:inline-block;height:24px;line-height:24px;position:relative;text-align:center;width:24px}.jsoneditor-popover{background-color:#4c4c4c;border-radius:3px;box-shadow:0 0 5px #0006;color:#fff;padding:7px 10px;position:absolute;cursor:auto;width:200px}.jsoneditor-popover.jsoneditor-above{bottom:32px;left:-98px}.jsoneditor-popover.jsoneditor-above:before{border-top:7px solid #4c4c4c;bottom:-7px}.jsoneditor-popover.jsoneditor-below{top:32px;left:-98px}.jsoneditor-popover.jsoneditor-below:before{border-bottom:7px solid #4c4c4c;top:-7px}.jsoneditor-popover.jsoneditor-left{top:-7px;right:32px}.jsoneditor-popover.jsoneditor-left:before{border-left:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;right:-14px;left:inherit;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover.jsoneditor-right{top:-7px;left:32px}.jsoneditor-popover.jsoneditor-right:before{border-right:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;left:-14px;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover:before{border-right:7px solid transparent;border-left:7px solid transparent;content:"";display:block;left:50%;margin-left:-7px;position:absolute}.jsoneditor-text-errors tr.jump-to-line:hover{text-decoration:underline;cursor:pointer}.jsoneditor-schema-error:hover .jsoneditor-popover,.jsoneditor-schema-error:focus .jsoneditor-popover{display:block;animation:fade-in .3s linear 1,move-up .3s linear 1}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.jsoneditor .jsoneditor-validation-errors-container{max-height:130px;overflow-y:auto}.jsoneditor .jsoneditor-validation-errors{width:100%;overflow:hidden}.jsoneditor .jsoneditor-additional-errors{position:absolute;margin:auto;bottom:31px;left:calc(50% - 92px);color:gray;background-color:#ebebeb;padding:7px 15px;border-radius:8px}.jsoneditor .jsoneditor-additional-errors.visible{visibility:visible;opacity:1;transition:opacity 2s linear}.jsoneditor .jsoneditor-additional-errors.hidden{visibility:hidden;opacity:0;transition:visibility 0s 2s,opacity 2s linear}.jsoneditor .jsoneditor-text-errors{width:100%;border-collapse:collapse;border-top:1px solid #ffc700}.jsoneditor .jsoneditor-text-errors td{padding:3px 6px;vertical-align:middle}.jsoneditor .jsoneditor-text-errors td pre{margin:0;white-space:pre-wrap}.jsoneditor .jsoneditor-text-errors tr{background-color:#ffffab}.jsoneditor .jsoneditor-text-errors tr.parse-error{background-color:#ee2e2e70}.jsoneditor-text-errors .jsoneditor-schema-error{border:none;width:24px;height:24px;padding:0;margin:0 4px 0 0;cursor:pointer}.jsoneditor-text-errors tr .jsoneditor-schema-error{background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:-168px -48px;background-color:transparent}.jsoneditor-text-errors tr.parse-error .jsoneditor-schema-error{background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:-25px 0px;background-color:transparent}.jsoneditor-anchor{cursor:pointer}.jsoneditor-anchor .picker_wrapper.popup.popup_bottom{top:28px;left:-10px}.fadein{-webkit-animation:fadein .3s;animation:fadein .3s;-moz-animation:fadein .3s;-o-animation:fadein .3s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.jsoneditor-modal input[type=search].selectr-input{border:1px solid #d3d3d3;width:calc(100% - 4px);margin:2px;padding:4px;box-sizing:border-box}.jsoneditor-modal button.selectr-input-clear{right:8px}.jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#3883fa;border-bottom:1px solid #3883fa}.jsoneditor-menu>button,.jsoneditor-menu>.jsoneditor-modes>button{width:26px;height:26px;margin:2px;padding:0;border-radius:2px;border:1px solid transparent;background-color:transparent;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);color:#fff;opacity:.8;font-family:arial,sans-serif;font-size:14px;float:left}.jsoneditor-menu>button:hover,.jsoneditor-menu>.jsoneditor-modes>button:hover{background-color:#fff3;border:1px solid rgba(255,255,255,.4)}.jsoneditor-menu>button:focus,.jsoneditor-menu>button:active,.jsoneditor-menu>.jsoneditor-modes>button:focus,.jsoneditor-menu>.jsoneditor-modes>button:active{background-color:#ffffff4d}.jsoneditor-menu>button:disabled,.jsoneditor-menu>.jsoneditor-modes>button:disabled{opacity:.5;background-color:transparent;border:none}.jsoneditor-menu>button.jsoneditor-collapse-all{background-position:0 -96px}.jsoneditor-menu>button.jsoneditor-expand-all{background-position:0 -120px}.jsoneditor-menu>button.jsoneditor-sort{background-position:-120px -96px}.jsoneditor-menu>button.jsoneditor-transform{background-position:-144px -96px}.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-transform,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-transform{display:none}.jsoneditor-menu>button.jsoneditor-undo{background-position:-24px -96px}.jsoneditor-menu>button.jsoneditor-undo:disabled{background-position:-24px -120px}.jsoneditor-menu>button.jsoneditor-redo{background-position:-48px -96px}.jsoneditor-menu>button.jsoneditor-redo:disabled{background-position:-48px -120px}.jsoneditor-menu>button.jsoneditor-compact{background-position:-72px -96px}.jsoneditor-menu>button.jsoneditor-format{background-position:-72px -120px}.jsoneditor-menu>button.jsoneditor-repair{background-position:-96px -96px}.jsoneditor-menu>.jsoneditor-modes{display:inline-block;float:left}.jsoneditor-menu>.jsoneditor-modes>button{background-image:none;width:auto;padding-left:6px;padding-right:6px}.jsoneditor-menu>button.jsoneditor-separator,.jsoneditor-menu>.jsoneditor-modes>button.jsoneditor-separator{margin-left:10px}.jsoneditor-menu a{font-family:arial,sans-serif;font-size:14px;color:#fff;opacity:.8;vertical-align:middle}.jsoneditor-menu a:hover{opacity:1}.jsoneditor-menu a.jsoneditor-poweredBy{font-size:8pt;position:absolute;right:0;top:0;padding:10px}.jsoneditor-navigation-bar{width:100%;height:26px;line-height:26px;padding:0;margin:0;border-bottom:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:gray;background-color:#ebebeb;overflow:hidden;font-family:arial,sans-serif;font-size:14px}.jsoneditor-search{font-family:arial,sans-serif;position:absolute;right:4px;top:4px;border-collapse:collapse;border-spacing:0;display:flex}.jsoneditor-search input{color:#1a1a1a;width:120px;border:none;outline:none;margin:1px;line-height:20px;font-family:arial,sans-serif}.jsoneditor-search button{width:16px;height:24px;padding:0;margin:0;border:none;background:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);vertical-align:top}.jsoneditor-search button:hover{background-color:transparent}.jsoneditor-search button.jsoneditor-refresh{width:18px;background-position:-99px -73px}.jsoneditor-search button.jsoneditor-next{cursor:pointer;background-position:-124px -73px}.jsoneditor-search button.jsoneditor-next:hover{background-position:-124px -49px}.jsoneditor-search button.jsoneditor-previous{cursor:pointer;background-position:-148px -73px;margin-right:2px}.jsoneditor-search button.jsoneditor-previous:hover{background-position:-148px -49px}.jsoneditor-results{font-family:arial,sans-serif;color:#fff;padding-right:5px;line-height:26px}.jsoneditor-frame{border:1px solid transparent;background-color:#fff;padding:0 2px;margin:0}.jsoneditor-statusbar{line-height:26px;height:26px;color:gray;background-color:#ebebeb;border-top:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px}.jsoneditor-statusbar>.jsoneditor-curserinfo-val{margin-right:12px}.jsoneditor-statusbar>.jsoneditor-curserinfo-count{margin-left:4px}.jsoneditor-statusbar>.jsoneditor-validation-error-icon{float:right;width:24px;height:24px;padding:0;margin-top:1px;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:-168px -48px;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-validation-error-count{float:right;margin:0 4px 0 0;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-parse-error-icon{float:right;width:24px;height:24px;padding:0;margin:1px;background-image:url(/dashboard/assets/jsoneditor-icons.45c98bf0.svg);background-position:-25px 0px}.jsoneditor-statusbar .jsoneditor-array-info a{color:inherit}div.jsoneditor-statusbar>.jsoneditor-curserinfo-label,div.jsoneditor-statusbar>.jsoneditor-size-info{margin:0 4px}.jsoneditor-treepath{padding:0 5px;overflow:hidden;white-space:nowrap;outline:none}.jsoneditor-treepath.show-all{word-wrap:break-word;white-space:normal;position:absolute;background-color:#ebebeb;z-index:1;box-shadow:2px 2px 12px #8080804d}.jsoneditor-treepath.show-all span.jsoneditor-treepath-show-all-btn{display:none}.jsoneditor-treepath div.jsoneditor-contextmenu-root{position:absolute;left:0}.jsoneditor-treepath .jsoneditor-treepath-show-all-btn{position:absolute;background-color:#ebebeb;left:0;height:20px;padding:0 3px;cursor:pointer}.jsoneditor-treepath .jsoneditor-treepath-element{margin:1px;font-family:arial,sans-serif;font-size:14px}.jsoneditor-treepath .jsoneditor-treepath-seperator{margin:2px;font-size:9pt;font-family:arial,sans-serif}.jsoneditor-treepath span.jsoneditor-treepath-element:hover,.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover{cursor:pointer;text-decoration:underline}/*! - * Selectr 2.4.13 - * http://mobius.ovh/docs/selectr - * - * Released under the MIT license - */.selectr-container{position:relative}.selectr-container li{list-style:none}.selectr-hidden{position:absolute;overflow:hidden;clip:rect(0px,0px,0px,0px);width:1px;height:1px;margin:-1px;padding:0;border:0 none}.selectr-visible{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:11}.selectr-desktop.multiple .selectr-visible{display:none}.selectr-desktop.multiple.native-open .selectr-visible{top:100%;min-height:200px!important;height:auto;opacity:1;display:block}.selectr-container.multiple.selectr-mobile .selectr-selected{z-index:0}.selectr-selected{position:relative;z-index:1;box-sizing:border-box;width:100%;padding:7px 28px 7px 14px;cursor:pointer;border:1px solid #999999;border-radius:3px;background-color:#fff}.selectr-selected:before{position:absolute;top:50%;right:10px;width:0;height:0;content:"";-o-transform:rotate(0deg) translate3d(0px,-50%,0px);-ms-transform:rotate(0deg) translate3d(0px,-50%,0px);-moz-transform:rotate(0deg) translate3d(0px,-50%,0px);-webkit-transform:rotate(0deg) translate3d(0px,-50%,0px);transform:rotate(0) translate3d(0,-50%,0);border-width:4px 4px 0 4px;border-style:solid;border-color:#6c7a86 transparent transparent}.selectr-container.open .selectr-selected:before,.selectr-container.native-open .selectr-selected:before{border-width:0 4px 4px 4px;border-style:solid;border-color:transparent transparent #6c7a86}.selectr-label{display:none;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis}.selectr-placeholder{color:#6c7a86}.selectr-tags{margin:0;padding:0;white-space:normal}.has-selected .selectr-tags{margin:0 0 -2px}.selectr-tag{list-style:none;position:relative;float:left;padding:2px 25px 2px 8px;margin:0 2px 2px 0;cursor:default;color:#fff;border:medium none;border-radius:10px;background:#acb7bf none repeat scroll 0 0}.selectr-container.multiple.has-selected .selectr-selected{padding:5px 28px 5px 5px}.selectr-options-container{position:absolute;z-index:10000;top:calc(100% - 1px);left:0;display:none;box-sizing:border-box;width:100%;border-width:0 1px 1px;border-style:solid;border-color:transparent #999999 #999999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.open .selectr-options-container{display:block}.selectr-input-container{position:relative;display:none}.selectr-clear,.selectr-input-clear,.selectr-tag-remove{position:absolute;top:50%;right:22px;width:20px;height:20px;padding:0;cursor:pointer;-o-transform:translate3d(0px,-50%,0px);-ms-transform:translate3d(0px,-50%,0px);-moz-transform:translate3d(0px,-50%,0px);-webkit-transform:translate3d(0px,-50%,0px);transform:translate3d(0,-50%,0);border:medium none;background-color:transparent;z-index:11}.selectr-clear,.selectr-input-clear{display:none}.selectr-container.has-selected .selectr-clear,.selectr-input-container.active .selectr-input-clear{display:block}.selectr-selected .selectr-tag-remove{right:2px}.selectr-clear:before,.selectr-clear:after,.selectr-input-clear:before,.selectr-input-clear:after,.selectr-tag-remove:before,.selectr-tag-remove:after{position:absolute;top:5px;left:9px;width:2px;height:10px;content:" ";background-color:#6c7a86}.selectr-tag-remove:before,.selectr-tag-remove:after{top:4px;width:3px;height:12px;background-color:#fff}.selectr-clear:before,.selectr-input-clear:before,.selectr-tag-remove:before{-o-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.selectr-clear:after,.selectr-input-clear:after,.selectr-tag-remove:after{-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.selectr-input-container.active,.selectr-input-container.active .selectr-clear{display:block}.selectr-input{top:5px;left:5px;box-sizing:border-box;width:calc(100% - 30px);margin:10px 15px;padding:7px 30px 7px 9px;border:1px solid #999999;border-radius:3px}.selectr-notice{display:none;box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #999999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.notice .selectr-notice{display:block}.selectr-container.notice .selectr-selected{border-radius:3px 3px 0 0}.selectr-options{position:relative;top:calc(100% + 2px);display:none;overflow-x:auto;overflow-y:scroll;max-height:200px;margin:0;padding:0}.selectr-container.open .selectr-options,.selectr-container.open .selectr-input-container,.selectr-container.notice .selectr-options-container{display:block}.selectr-option{position:relative;display:block;padding:5px 20px;list-style:outside none none;cursor:pointer;font-weight:400}.selectr-options.optgroups>.selectr-option{padding-left:25px}.selectr-optgroup{font-weight:700;padding:0}.selectr-optgroup--label{font-weight:700;margin-top:10px;padding:5px 15px}.selectr-match{text-decoration:underline}.selectr-option.selected{background-color:#ddd}.selectr-option.active{color:#fff;background-color:#5897fb}.selectr-option.disabled{opacity:.4}.selectr-option.excluded{display:none}.selectr-container.open .selectr-selected{border-color:#999999 #999999 transparent #999999;border-radius:3px 3px 0 0}.selectr-container.open .selectr-selected:after{-o-transform:rotate(180deg) translate3d(0px,50%,0px);-ms-transform:rotate(180deg) translate3d(0px,50%,0px);-moz-transform:rotate(180deg) translate3d(0px,50%,0px);-webkit-transform:rotate(180deg) translate3d(0px,50%,0px);transform:rotate(180deg) translate3d(0,50%,0)}.selectr-disabled{opacity:.6}.selectr-empty,.has-selected .selectr-placeholder{display:none}.has-selected .selectr-label{display:block}.taggable .selectr-selected{padding:4px 28px 4px 4px}.taggable .selectr-selected:after{display:table;content:" ";clear:both}.taggable .selectr-label{width:auto}.taggable .selectr-tags{float:left;display:block}.taggable .selectr-placeholder{display:none}.input-tag{float:left;min-width:90px;width:auto}.selectr-tag-input{border:medium none;padding:3px 10px;width:100%;font-family:inherit;font-weight:inherit;font-size:inherit}.selectr-input-container.loading:after{position:absolute;top:50%;right:20px;width:20px;height:20px;content:"";-o-transform:translate3d(0px,-50%,0px);-ms-transform:translate3d(0px,-50%,0px);-moz-transform:translate3d(0px,-50%,0px);-webkit-transform:translate3d(0px,-50%,0px);transform:translate3d(0,-50%,0);-o-transform-origin:50% 0 0;-ms-transform-origin:50% 0 0;-moz-transform-origin:50% 0 0;-webkit-transform-origin:50% 0 0;transform-origin:50% 0 0;-moz-animation:.5s linear 0s normal forwards infinite running selectr-spin;-webkit-animation:.5s linear 0s normal forwards infinite running selectr-spin;animation:.5s linear 0s normal forwards infinite running selectr-spin;border-width:3px;border-style:solid;border-color:#aaa #ddd #ddd;border-radius:50%}@-webkit-keyframes selectr-spin{0%{-webkit-transform:rotate(0deg) translate3d(0px,-50%,0px);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0px,-50%,0px);transform:rotate(360deg) translate3d(0,-50%,0)}}@keyframes selectr-spin{0%{-webkit-transform:rotate(0deg) translate3d(0px,-50%,0px);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0px,-50%,0px);transform:rotate(360deg) translate3d(0,-50%,0)}}.selectr-container.open.inverted .selectr-selected{border-color:transparent #999999 #999999;border-radius:0 0 3px 3px}.selectr-container.inverted .selectr-options-container{border-width:1px 1px 0;border-color:#999999 #999999 transparent;border-radius:3px 3px 0 0;background-color:#fff}.selectr-container.inverted .selectr-options-container{top:auto;bottom:calc(100% - 1px)}.selectr-container ::-webkit-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::-moz-placeholder{color:#6c7a86;opacity:1}.selectr-container :-ms-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::placeholder{color:#6c7a86;opacity:1}.ace_gutter-cell{padding-left:20px;padding-right:16px!important}.ace_editor,.jsoneditor{border-radius:4px}.ace_editor{min-height:300px}.jsoneditor{border:0}.ace-dawn .ace_gutter{background:#ebebeb;color:#333}.ace-dawn .ace_print-margin{width:1px;background:#e8e8e8}.ace-dawn{background-color:#f9f9f9;color:#080808}.ace-dawn .ace_cursor{color:#000}.ace-dawn .ace_marker-layer .ace_selection{background:rgba(39,95,255,.3)}.ace-dawn.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px #f9f9f9}.ace-dawn .ace_marker-layer .ace_step{background:rgb(255,255,0)}.ace-dawn .ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px;border:1px solid rgba(75,75,126,.5)}.ace-dawn .ace_marker-layer .ace_active-line{background:rgba(36,99,180,.12)}.ace-dawn .ace_gutter-active-line{background-color:#dcdcdc}.ace-dawn .ace_marker-layer .ace_selected-word{border:1px solid rgba(39,95,255,.3)}.ace-dawn .ace_invisible{color:#4b4b7e80}.ace-dawn .ace_keyword,.ace-dawn .ace_meta{color:#794938}.ace-dawn .ace_constant,.ace-dawn .ace_constant.ace_character,.ace-dawn .ace_constant.ace_character.ace_escape,.ace-dawn .ace_constant.ace_other{color:#811f24}.ace-dawn .ace_invalid.ace_illegal{text-decoration:underline;font-style:italic;color:#f8f8f8;background-color:#b52a1d}.ace-dawn .ace_invalid.ace_deprecated{text-decoration:underline;font-style:italic;color:#b52a1d}.ace-dawn .ace_support{color:#691c97}.ace-dawn .ace_support.ace_constant{color:#b4371f}.ace-dawn .ace_fold{background-color:#794938;border-color:#080808}.ace-dawn .ace_list,.ace-dawn .ace_markup.ace_list,.ace-dawn .ace_support.ace_function{color:#693a17}.ace-dawn .ace_storage{font-style:italic;color:#a71d5d}.ace-dawn .ace_string{color:#0b6125}.ace-dawn .ace_string.ace_regexp{color:#cf5628}.ace-dawn .ace_comment{font-style:italic;color:#5a525f}.ace-dawn .ace_heading,.ace-dawn .ace_markup.ace_heading{color:#19356d}.ace-dawn .ace_variable{color:#234a97}.ace-dawn .ace_indent-guide{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y}.ace-dawn .ace_indent-guide-active{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC) right repeat-y}.ace-nord-dark .ace_gutter{color:#616e88}.ace-nord-dark .ace_print-margin{width:1px;background:#4c566a}.ace-nord-dark{background-color:#2e3440;color:#d8dee9}.ace-nord-dark .ace_entity.ace_other.ace_attribute-name,.ace-nord-dark .ace_storage,.ace-nord-dark .ace_cursor{color:#d8dee9}.ace-nord-dark .ace_string.ace_regexp{color:#bf616a}.ace-nord-dark .ace_marker-layer .ace_active-line,.ace-nord-dark .ace_marker-layer .ace_selection{background:#434c5ecc}.ace-nord-dark.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px #2e3440}.ace-nord-dark .ace_marker-layer .ace_step{background:#ebcb8b}.ace-nord-dark .ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px;border:1px solid #88c0d066}.ace-nord-dark .ace_gutter-active-line{background-color:#434c5ecc}.ace-nord-dark .ace_marker-layer .ace_selected-word{border:1px solid #88c0d066}.ace-nord-dark .ace_invisible{color:#4c566a}.ace-nord-dark .ace_keyword,.ace-nord-dark .ace_meta,.ace-nord-dark .ace_support.ace_class,.ace-nord-dark .ace_support.ace_type{color:#81a1c1}.ace-nord-dark .ace_constant.ace_character,.ace-nord-dark .ace_constant.ace_other{color:#d8dee9}.ace-nord-dark .ace_constant.ace_language{color:#5e81ac}.ace-nord-dark .ace_constant.ace_escape{color:#ebcb8b}.ace-nord-dark .ace_constant.ace_numeric{color:#b48ead}.ace-nord-dark .ace_fold{background-color:#4c566a;border-color:#d8dee9}.ace-nord-dark .ace_entity.ace_name.ace_function,.ace-nord-dark .ace_entity.ace_name.ace_tag,.ace-nord-dark .ace_support.ace_function,.ace-nord-dark .ace_variable,.ace-nord-dark .ace_variable.ace_language{color:#8fbcbb}.ace-nord-dark .ace_string{color:#a3be8c}.ace-nord-dark .ace_comment{color:#616e88}.ace-nord-dark .ace_indent-guide{box-shadow:inset -1px 0 #434c5eb3}.ace-nord-dark .ace_indent-guide-active{box-shadow:inset -1px 0 #8395b8b3}.slick-loading .slick-list{background:#fff url(/dashboard/assets/ajax-loader.e7b44c86.gif) center center no-repeat}@font-face{font-family:slick;font-weight:400;font-style:normal;src:url(data:application/vnd.ms-fontobject;base64,AAgAAGQHAAABAAIAAAAAAAIABQkAAAAAAAABAJABAAAAAExQAQAAgCAAAAAAAAAAAAAAAAEAAAAAAAAATxDE8AAAAAAAAAAAAAAAAAAAAAAAAAoAcwBsAGkAYwBrAAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAKAHMAbABpAGMAawAAAAAAAAEAAAANAIAAAwBQRkZUTW3RyK8AAAdIAAAAHEdERUYANAAGAAAHKAAAACBPUy8yT/b9sgAAAVgAAABWY21hcCIPRb0AAAHIAAABYmdhc3D//wADAAAHIAAAAAhnbHlmP5u2YAAAAzwAAAIsaGVhZAABMfsAAADcAAAANmhoZWED5QIFAAABFAAAACRobXR4BkoASgAAAbAAAAAWbG9jYQD2AaIAAAMsAAAAEG1heHAASwBHAAABOAAAACBuYW1lBSeBwgAABWgAAAFucG9zdC+zMgMAAAbYAAAARQABAAAAAQAA8MQQT18PPPUACwIAAAAAAM9xeH8AAAAAz3F4fwAlACUB2wHbAAAACAACAAAAAAAAAAEAAAHbAAAALgIAAAAAAAHbAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAHAEQAAgAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIAAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQkAAAAAAACAAAABAAAAIAAAAAAAAAAAUGZFZABAAGEhkgHg/+AALgHb/9sAAAABAAAAAAAAAgAAAAAAAAACAAAAAgAAJQAlACUAJQAAAAAAAwAAAAMAAAAcAAEAAAAAAFwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAAAYSAiIZAhkv//AAAAAABhICIhkCGS//8AAP+l3+PedN5xAAEAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGAIwAsAEWAAIAJQAlAdsB2wAYACwAAD8BNjQvASYjIg8BBhUUHwEHBhUUHwEWMzI2FAcGBwYiJyYnJjQ3Njc2MhcWF/GCBgaCBQcIBR0GBldXBgYdBQgH7x0eMjB8MDIeHR0eMjB8MDIecYIGDgaCBQUeBQcJBFhYBAkHBR4F0nwwMh4dHR4yMHwwMh4dHR4yAAAAAgAlACUB2wHbABgALAAAJTc2NTQvATc2NTQvASYjIg8BBhQfARYzMjYUBwYHBiInJicmNDc2NzYyFxYXASgdBgZXVwYGHQUIBwWCBgaCBQcIuB0eMjB8MDIeHR0eMjB8MDIecR4FBwkEWFgECQcFHgUFggYOBoIF0nwwMh4dHR4yMHwwMh4dHR4yAAABACUAJQHbAdsAEwAAABQHBgcGIicmJyY0NzY3NjIXFhcB2x0eMjB8MDIeHR0eMjB8MDIeAT58MDIeHR0eMjB8MDIeHR0eMgABACUAJQHbAdsAQwAAARUUBisBIicmPwEmIyIHBgcGBwYUFxYXFhcWMzI3Njc2MzIfARYVFAcGBwYjIicmJyYnJjQ3Njc2NzYzMhcWFzc2FxYB2woIgAsGBQkoKjodHBwSFAwLCwwUEhwcHSIeIBMGAQQDJwMCISspNC8mLBobFBERFBsaLCYvKicpHSUIDAsBt4AICgsLCScnCwwUEhwcOhwcEhQMCw8OHAMDJwMDAgQnFBQRFBsaLCZeJiwaGxQRDxEcJQgEBgAAAAAAAAwAlgABAAAAAAABAAUADAABAAAAAAACAAcAIgABAAAAAAADACEAbgABAAAAAAAEAAUAnAABAAAAAAAFAAsAugABAAAAAAAGAAUA0gADAAEECQABAAoAAAADAAEECQACAA4AEgADAAEECQADAEIAKgADAAEECQAEAAoAkAADAAEECQAFABYAogADAAEECQAGAAoAxgBzAGwAaQBjAGsAAHNsaWNrAABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAHMAbABpAGMAawAgADoAIAAxADQALQA0AC0AMgAwADEANAAARm9udEZvcmdlIDIuMCA6IHNsaWNrIDogMTQtNC0yMDE0AABzAGwAaQBjAGsAAHNsaWNrAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABzAGwAaQBjAGsAAHNsaWNrAAAAAAIAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAgECAQMAhwBECmFycm93cmlnaHQJYXJyb3dsZWZ0AAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzu7XsAAAAADPcXh/AAAAAM9xeH8=);src:url(data:application/vnd.ms-fontobject;base64,AAgAAGQHAAABAAIAAAAAAAIABQkAAAAAAAABAJABAAAAAExQAQAAgCAAAAAAAAAAAAAAAAEAAAAAAAAATxDE8AAAAAAAAAAAAAAAAAAAAAAAAAoAcwBsAGkAYwBrAAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAKAHMAbABpAGMAawAAAAAAAAEAAAANAIAAAwBQRkZUTW3RyK8AAAdIAAAAHEdERUYANAAGAAAHKAAAACBPUy8yT/b9sgAAAVgAAABWY21hcCIPRb0AAAHIAAABYmdhc3D//wADAAAHIAAAAAhnbHlmP5u2YAAAAzwAAAIsaGVhZAABMfsAAADcAAAANmhoZWED5QIFAAABFAAAACRobXR4BkoASgAAAbAAAAAWbG9jYQD2AaIAAAMsAAAAEG1heHAASwBHAAABOAAAACBuYW1lBSeBwgAABWgAAAFucG9zdC+zMgMAAAbYAAAARQABAAAAAQAA8MQQT18PPPUACwIAAAAAAM9xeH8AAAAAz3F4fwAlACUB2wHbAAAACAACAAAAAAAAAAEAAAHbAAAALgIAAAAAAAHbAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAHAEQAAgAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIAAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQkAAAAAAACAAAABAAAAIAAAAAAAAAAAUGZFZABAAGEhkgHg/+AALgHb/9sAAAABAAAAAAAAAgAAAAAAAAACAAAAAgAAJQAlACUAJQAAAAAAAwAAAAMAAAAcAAEAAAAAAFwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAAAYSAiIZAhkv//AAAAAABhICIhkCGS//8AAP+l3+PedN5xAAEAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGAIwAsAEWAAIAJQAlAdsB2wAYACwAAD8BNjQvASYjIg8BBhUUHwEHBhUUHwEWMzI2FAcGBwYiJyYnJjQ3Njc2MhcWF/GCBgaCBQcIBR0GBldXBgYdBQgH7x0eMjB8MDIeHR0eMjB8MDIecYIGDgaCBQUeBQcJBFhYBAkHBR4F0nwwMh4dHR4yMHwwMh4dHR4yAAAAAgAlACUB2wHbABgALAAAJTc2NTQvATc2NTQvASYjIg8BBhQfARYzMjYUBwYHBiInJicmNDc2NzYyFxYXASgdBgZXVwYGHQUIBwWCBgaCBQcIuB0eMjB8MDIeHR0eMjB8MDIecR4FBwkEWFgECQcFHgUFggYOBoIF0nwwMh4dHR4yMHwwMh4dHR4yAAABACUAJQHbAdsAEwAAABQHBgcGIicmJyY0NzY3NjIXFhcB2x0eMjB8MDIeHR0eMjB8MDIeAT58MDIeHR0eMjB8MDIeHR0eMgABACUAJQHbAdsAQwAAARUUBisBIicmPwEmIyIHBgcGBwYUFxYXFhcWMzI3Njc2MzIfARYVFAcGBwYjIicmJyYnJjQ3Njc2NzYzMhcWFzc2FxYB2woIgAsGBQkoKjodHBwSFAwLCwwUEhwcHSIeIBMGAQQDJwMCISspNC8mLBobFBERFBsaLCYvKicpHSUIDAsBt4AICgsLCScnCwwUEhwcOhwcEhQMCw8OHAMDJwMDAgQnFBQRFBsaLCZeJiwaGxQRDxEcJQgEBgAAAAAAAAwAlgABAAAAAAABAAUADAABAAAAAAACAAcAIgABAAAAAAADACEAbgABAAAAAAAEAAUAnAABAAAAAAAFAAsAugABAAAAAAAGAAUA0gADAAEECQABAAoAAAADAAEECQACAA4AEgADAAEECQADAEIAKgADAAEECQAEAAoAkAADAAEECQAFABYAogADAAEECQAGAAoAxgBzAGwAaQBjAGsAAHNsaWNrAABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAHMAbABpAGMAawAgADoAIAAxADQALQA0AC0AMgAwADEANAAARm9udEZvcmdlIDIuMCA6IHNsaWNrIDogMTQtNC0yMDE0AABzAGwAaQBjAGsAAHNsaWNrAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABzAGwAaQBjAGsAAHNsaWNrAAAAAAIAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAgECAQMAhwBECmFycm93cmlnaHQJYXJyb3dsZWZ0AAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzu7XsAAAAADPcXh/AAAAAM9xeH8=) format("embedded-opentype"),url(data:font/woff;base64,d09GRk9UVE8AAAVkAAsAAAAAB1wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAAi4AAAKbH/pWDkZGVE0AAAM4AAAAGgAAABxt0civR0RFRgAAA1QAAAAcAAAAIAAyAARPUy8yAAADcAAAAFIAAABgUBj/rmNtYXAAAAPEAAAAUAAAAWIiC0SwaGVhZAAABBQAAAAuAAAANgABMftoaGVhAAAERAAAABwAAAAkA+UCA2htdHgAAARgAAAADgAAAA4ESgBKbWF4cAAABHAAAAAGAAAABgAFUABuYW1lAAAEeAAAANwAAAFuBSeBwnBvc3QAAAVUAAAAEAAAACAAAwABeJw9ks9vEkEUx2cpWyeUoFYgNkHi2Wt7N3rVm3cTs3UVLC4LxIWEQvi1P3i7O1tYLJDAmlgKGEhQrsajf0j7J3jYTXrQWUrMJG+++b55n5e8NwwKBhHDMLv5kxT3ATEBxKBn3qOAl9zxHgb1MAPhHQgHkyF08Gr/L8B/Eb6zWnmCJ7AJVLubQOheArXvJ1A4EXi6j4I+Zg9F0QFKvsnlBCmXeve+sFEnb/nCptdtQ4QYhVFRAT1HrF8UQK/RL/SbmUbclsvGVFXRZKDHUE38cc4qpkbAAsuwiImvro+ufcfaOIQ6szlrmjRJDaKZKnbjN3GWKIbiIzRFUfCffuxxKOL+3LDlDVvx2TdxN84qZEsnhNBa6pgm2dAsnzbLsETdsmRFxUeHV4e+I2/ptN8TyqV8T3Dt29t7EYOuajVIw2y1Wy3M86w0zg/Fz2IvawmQAUHOVrPVfLkoScVynsqsTG0MGUs4z55nh3mnOJa+li+rl9WpPIcFfDubDeaDC+fLBdYN3QADzLauGfj4B6sZmq6CCpqmtSvF0qlUl2qf5AJIUCSlTqlb7lUG+LRfGzZGzZEyBgccMu6MuqPecNDvD4Y9Kjtj4gD+DsvKVMTcMdtqtZtmkzQstQvYje7Syep0PDSAhSOeHYXYWThEF//A/0YvYV1fSQtpKU5STtrhbQ444OtpKSWJIg3pOg8cBs7maTY1EZf07aq+hjWs7IWzdCYTGhb2CtZ47x+Uhx28AAB4nGNgYGBkAIJz765vANHnCyvqYTQAWnkHswAAeJxjYGRgYOADYgkGEGBiYARCFjAG8RgABHYAN3icY2BmYmCcwMDKwMHow5jGwMDgDqW/MkgytDAwMDGwcjKAQQMDAyOQUmCAgoA01xQGB4ZExUmMD/4/YNBjvP3/NgNEDQPjbbBKBQZGADfLDgsAAHicY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQzMCQqKClOUJz0/z9YHRLv/+L7D+8V3cuHmgAHjGwM6ELUByxUMIOZCmbgAAA5LQ8XeJxjYGRgYABiO68w73h+m68M3EwMIHC+sKIeTqsyqDLeZrwN5HIwgKUB/aYJUgAAeJxjYGRgYLzNwMCgx8QAAkA2IwMqYAIAMGIB7QIAAAACAAAlACUAJQAlAAAAAFAAAAUAAHicbY49asNAEIU/2ZJDfkiRIvXapUFCEqpcptABUrg3ZhEiQoKVfY9UqVLlGDlADpAT5e16IUWysMz3hjfzBrjjjQT/EjKpCy+4YhN5yZoxcirPe+SMWz4jr6S+5UzSa3VuwpTnBfc8RF7yxDZyKs9r5IxHPiKv1P9iZqDnyAvMQ39UecbScVb/gJO03Xk4CFom3XYK1clhMdQUlKo7/d9NF13RkIdfy+MV7TSe2sl11tRFaXYmJKpWTd7kdVnJ8veevZKc+n3I93t9Jnvr5n4aTVWU/0z9AI2qMkV4nGNgZkAGjAxoAAAAjgAF) format("woff"),url(data:font/ttf;base64,AAEAAAANAIAAAwBQRkZUTW3RyK8AAAdIAAAAHEdERUYANAAGAAAHKAAAACBPUy8yT/b9sgAAAVgAAABWY21hcCIPRb0AAAHIAAABYmdhc3D//wADAAAHIAAAAAhnbHlmP5u2YAAAAzwAAAIsaGVhZAABMfsAAADcAAAANmhoZWED5QIFAAABFAAAACRobXR4BkoASgAAAbAAAAAWbG9jYQD2AaIAAAMsAAAAEG1heHAASwBHAAABOAAAACBuYW1lBSeBwgAABWgAAAFucG9zdC+zMgMAAAbYAAAARQABAAAAAQAA8MQQT18PPPUACwIAAAAAAM9xeH8AAAAAz3F4fwAlACUB2wHbAAAACAACAAAAAAAAAAEAAAHbAAAALgIAAAAAAAHbAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAHAEQAAgAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIAAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQkAAAAAAACAAAABAAAAIAAAAAAAAAAAUGZFZABAAGEhkgHg/+AALgHb/9sAAAABAAAAAAAAAgAAAAAAAAACAAAAAgAAJQAlACUAJQAAAAAAAwAAAAMAAAAcAAEAAAAAAFwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAAAYSAiIZAhkv//AAAAAABhICIhkCGS//8AAP+l3+PedN5xAAEAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGAIwAsAEWAAIAJQAlAdsB2wAYACwAAD8BNjQvASYjIg8BBhUUHwEHBhUUHwEWMzI2FAcGBwYiJyYnJjQ3Njc2MhcWF/GCBgaCBQcIBR0GBldXBgYdBQgH7x0eMjB8MDIeHR0eMjB8MDIecYIGDgaCBQUeBQcJBFhYBAkHBR4F0nwwMh4dHR4yMHwwMh4dHR4yAAAAAgAlACUB2wHbABgALAAAJTc2NTQvATc2NTQvASYjIg8BBhQfARYzMjYUBwYHBiInJicmNDc2NzYyFxYXASgdBgZXVwYGHQUIBwWCBgaCBQcIuB0eMjB8MDIeHR0eMjB8MDIecR4FBwkEWFgECQcFHgUFggYOBoIF0nwwMh4dHR4yMHwwMh4dHR4yAAABACUAJQHbAdsAEwAAABQHBgcGIicmJyY0NzY3NjIXFhcB2x0eMjB8MDIeHR0eMjB8MDIeAT58MDIeHR0eMjB8MDIeHR0eMgABACUAJQHbAdsAQwAAARUUBisBIicmPwEmIyIHBgcGBwYUFxYXFhcWMzI3Njc2MzIfARYVFAcGBwYjIicmJyYnJjQ3Njc2NzYzMhcWFzc2FxYB2woIgAsGBQkoKjodHBwSFAwLCwwUEhwcHSIeIBMGAQQDJwMCISspNC8mLBobFBERFBsaLCYvKicpHSUIDAsBt4AICgsLCScnCwwUEhwcOhwcEhQMCw8OHAMDJwMDAgQnFBQRFBsaLCZeJiwaGxQRDxEcJQgEBgAAAAAAAAwAlgABAAAAAAABAAUADAABAAAAAAACAAcAIgABAAAAAAADACEAbgABAAAAAAAEAAUAnAABAAAAAAAFAAsAugABAAAAAAAGAAUA0gADAAEECQABAAoAAAADAAEECQACAA4AEgADAAEECQADAEIAKgADAAEECQAEAAoAkAADAAEECQAFABYAogADAAEECQAGAAoAxgBzAGwAaQBjAGsAAHNsaWNrAABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAHMAbABpAGMAawAgADoAIAAxADQALQA0AC0AMgAwADEANAAARm9udEZvcmdlIDIuMCA6IHNsaWNrIDogMTQtNC0yMDE0AABzAGwAaQBjAGsAAHNsaWNrAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABzAGwAaQBjAGsAAHNsaWNrAAAAAAIAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAgECAQMAhwBECmFycm93cmlnaHQJYXJyb3dsZWZ0AAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzu7XsAAAAADPcXh/AAAAAM9xeH8=) format("truetype"),url(/dashboard/assets/slick.12459f22.svg#slick) format("svg")}.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:20px;height:20px;padding:0;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translateY(-50%);cursor:pointer;color:transparent;border:none;outline:none;background:transparent}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:.25}.slick-prev:before,.slick-next:before{font-family:slick;font-size:20px;line-height:1;opacity:.75;color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-prev{left:-25px}[dir=rtl] .slick-prev{right:-25px;left:auto}.slick-prev:before{content:"\2190"}[dir=rtl] .slick-prev:before{content:"\2192"}.slick-next{right:-25px}[dir=rtl] .slick-next{right:auto;left:-25px}.slick-next:before{content:"\2192"}[dir=rtl] .slick-next:before{content:"\2190"}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{position:absolute;bottom:-25px;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center}.slick-dots li{position:relative;display:inline-block;width:20px;height:20px;margin:0 5px;padding:0;cursor:pointer}.slick-dots li button{font-size:0;line-height:0;display:block;width:20px;height:20px;padding:5px;cursor:pointer;color:transparent;border:0;outline:none;background:transparent}.slick-dots li button:hover,.slick-dots li button:focus{outline:none}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1}.slick-dots li button:before{font-family:slick;font-size:6px;line-height:20px;position:absolute;top:0;left:0;width:20px;height:20px;content:"\2022";text-align:center;opacity:.25;color:#000;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-dots li.slick-active button:before{opacity:.75;color:#000}.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translateZ(0)}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto}.slick-track:before,.slick-track:after{display:table;content:""}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir=rtl] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}.bg-blue-animate{animation:blur-animate .2s ease-in;backdrop-filter:blur(10px)}@keyframes blur-animate{0%{backdrop-filter:blur(1px)}to{backdrop-filter:blur(10px)}}.animate-spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}table thead th:first-of-type{border-top-left-radius:8px}table thead th:last-of-type{border-top-right-radius:8px}.last-row td:first-of-type{border-bottom-left-radius:8px}.last-row td:last-of-type{border-bottom-right-radius:8px}.slick-prev{left:-40px}.slick-next{right:-40px}.slick-prev,.slick-next{z-index:100}.chakra-popover__popper{z-index:9999!important}.inbound-item .chakra-checkbox__label{max-width:100%;width:100%}.react-datepicker__navigation.react-datepicker__navigation--previous,.react-datepicker__navigation.react-datepicker__navigation--next{padding-top:6px}.react-datepicker{background-color:var(--chakra-colors-white)!important;border:1px solid var(--chakra-colors-gray-200);border-radius:var(--chakra-radii-md)!important;position:relative}.chakra-ui-dark .react-datepicker{background-color:var(--chakra-colors-gray-700)!important;border:1px solid var(--chakra-colors-gray-600);border-radius:var(--chakra-radii-md)!important;position:relative}.react-datepicker__header{text-align:center;background-color:unset;position:relative;border-bottom:1px solid var(--chakra-colors-gray-200)}.chakra-ui-dark .react-datepicker__header{border-bottom:1px solid var(--chakra-colors-gray-600)}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:var(--chakra-colors-white)}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:var(--chakra-colors-gray-200)}.chakra-ui-dark .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:var(--chakra-colors-gray-700)}.chakra-ui-dark .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:var(--chakra-colors-gray-600)}.react-datepicker__current-month,.react-datepicker__day-name,.react-datepicker__day{color:var(--chakra-colors-chakra-body-text)!important}.chakra-ui-dark .react-datepicker__current-month,.chakra-ui-dark .react-datepicker__day-name,.chakra-ui-dark .react-datepicker__day{color:var(--chakra-colors-gray-300)!important}.react-datepicker__day:hover{border-radius:.3rem;background-color:var(--chakra-colors-primary-300)!important;color:var(--chakra-colors-white)!important}.chakra-ui-dark .react-datepicker__day:hover{border-radius:.3rem;background-color:var(--chakra-colors-primary-500)!important;color:var(--chakra-colors-gray-800)!important}.react-datepicker__day--disabled{color:var(--chakra-colors-gray-400)!important}.react-datepicker__day--disabled:hover{background-color:transparent!important;color:var(--chakra-colors-gray-400)!important}.chakra-ui-dark .react-datepicker__day--disabled{color:var(--chakra-colors-gray-500)!important}.chakra-ui-dark .react-datepicker__day--disabled:hover{background-color:transparent!important;color:var(--chakra-colors-gray-500)!important}.react-datepicker__day--keyboard-selected,.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range{border-radius:.3rem;background-color:var(--chakra-colors-primary-500)!important;color:var(--chakra-colors-white)!important}.chakra-ui-dark .react-datepicker__day--keyboard-selected,.chakra-ui-dark .react-datepicker__day--selected,.chakra-ui-dark .react-datepicker__day--in-selecting-range,.chakra-ui-dark .react-datepicker__day--in-range{border-radius:.3rem;background-color:var(--chakra-colors-primary-200)!important;color:var(--chakra-colors-gray-800)!important}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range){border-radius:.3rem;background-color:var(--chakra-colors-primary-400)!important}.chakra-ui-dark .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range){border-radius:.3rem;background-color:var(--chakra-colors-primary-400)!important}.react-datepicker__day--outside-month{visibility:hidden}.datepicker-panel .react-datepicker{background-color:unset;border:unset;border-radius:unset;display:inline-block;position:relative}.green{background:#66ff99}.red{background:#e53e3e}.orange{background:#fbd38d}.bx-shadow{box-shadow:0 0 8px 3px #e6dddd1a}.circle{min-width:10px;min-height:10px;border-radius:50%;box-shadow:0 0 1px 1px #0000001a}.pulse{animation:pulse-animation 3s infinite}.pulse.green{animation:green-pulse-animation 3s infinite}.pulse.red{animation:red-pulse-animation 3s infinite}.pulse.orange{animation:orange-pulse-animation 3s infinite}@keyframes pulse-animation{0%{box-shadow:0 0 #0006}to{box-shadow:0 0 0 10px #0000}}@keyframes green-pulse-animation{0%{box-shadow:0 0 #66ff9975}to{box-shadow:0 0 0 10px #6f90}}@keyframes red-pulse-animation{0%{box-shadow:0 0 #e53e3e8c}to{box-shadow:0 0 0 10px #e53e3e00}}@keyframes orange-pulse-animation{0%{box-shadow:0 0 #fbd38d85}to{box-shadow:0 0 0 10px #fbd38d00}}.flex-status{display:flex;align-items:center;justify-content:start;gap:.7rem} diff --git a/app/dashboard/build/assets/index.de0b6a8b.js b/app/dashboard/build/assets/index.de0b6a8b.js deleted file mode 100644 index e9c70f455..000000000 --- a/app/dashboard/build/assets/index.de0b6a8b.js +++ /dev/null @@ -1,14 +0,0 @@ -import{i as jt,B as hn,a as un,b as pn,j as Er,d as $,U as Zt,z as mn,r as gn,f as fn,Q as bn,e as xn,$ as yn,c as Rt,g as S,h as Sn,C as wn,k as Lt,u as Tt,l as H,m as r,H as _,n as e,T as d,o as Cn,p as v,s as _n,q as f,t as Ye,J as kn,v as y,w as Rr,A as At,x as In,y as vn,M as ce,D as de,E as he,F as ue,G as pe,I as Se,K as Ze,L as Lr,N as Dn,O as pt,P as me,R as L,S as B,V as Tr,W as re,X as E,Y as xe,Z as V,_ as Me,a0 as Ne,a1 as P,a2 as ft,a3 as it,a4 as zn,a5 as Te,a6 as He,a7 as Un,a8 as Ar,a9 as Mr,aa as ht,ab as kt,ac as En,ad as Be,ae as It,af as or,ag as Rn,ah as Nr,ai as Pr,aj as Fr,ak as ye,al as Ln,am as Tn,an as An,ao as Mn,ap as Nn,aq as Qt,ar as Wr,as as Or,at as ie,au as sr,av as Pn,aw as Fn,ax as Wn,ay as Bt,az as On,aA as Hn,aB as jn,aC as Bn,aD as $n,aE as Vn,aF as vt,aG as Gn,aH as Yn,aI as Zn,aJ as Qn,aK as qn,aL as bt,aM as Hr,aN as xt,aO as N,aP as qt,aQ as Xn,aR as $e,aS as Ve,aT as $t,aU as Ge,aV as Jn,aW as Ie,aX as ve,aY as De,aZ as ze,a_ as Ue,a$ as Ee,b0 as ar,b1 as Kn,b2 as Dt,b3 as ut,b4 as Xt,b5 as eo,b6 as to,b7 as ro,b8 as jr,b9 as no,ba as mt,bb as zt,bc as Br,bd as oo,be as so,bf as $r,bg as We,bh as ao,bi as io,bj as lo,bk as Jt,bl as Nt,bm as ir,bn as Vr,bo as co,bp as ho,bq as lr,br as uo,bs as cr,bt as Gr,bu as po,bv as Yr,bw as mo,bx as go,by as Zr,bz as fo,bA as bo,bB as Qr,bC as qr,bD as Xr,bE as X,bF as xo,bG as Jr,bH as Pt,bI as yo,bJ as So,bK as wo,bL as Co,bM as _o,bN as ko,bO as Kr,bP as Io,bQ as dr,bR as hr,bS as je,bT as Re,bU as ur,bV as be,bW as pr,bX as vo,bY as Do,bZ as zo,b_ as Uo,b$ as Eo,c0 as Ro,c1 as Lo,c2 as To,c3 as Ao,c4 as Mo,c5 as No,c6 as Po,c7 as Fo,c8 as Wo,c9 as Oo,ca as Ho,cb as jo}from"./vendor.108888cb.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerpolicy&&(i.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?i.credentials="include":a.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(a){if(a.ep)return;a.ep=!0;const i=o(a);fetch(a.href,i)}})();jt.use(hn).use(un).use(pn).init({debug:{}.NODE_ENV==="development",returnNull:!1,fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1},load:"languageOnly",detection:{caches:["localStorage","sessionStorage","cookie"]},backend:{loadPath:Er(["/dashboard/","locales/{{lng}}.json"])}},function(t,n){$.locale(jt.language)});jt.on("languageChanged",t=>{$.locale(t)});Zt("zh-cn",mn);Zt("ru",gn);Zt("fa",fn);const Vt=new bn,en=t=>{const n=document.querySelector('meta[name="theme-color"]');n==null||n.setAttribute("content",t=="dark"?"#1A202C":"#3B81F6")},Bo=xn({shadows:{outline:"0 0 0 2px var(--chakra-colors-primary-200)"},fonts:{body:"Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif"},colors:{"light-border":"#d2d2d4",primary:{50:"#9cb7f2",100:"#88a9ef",200:"#749aec",300:"#618ce9",400:"#4d7de7",500:"#396fe4",600:"#3364cd",700:"#2e59b6",800:"#284ea0",900:"#224389"},gray:{750:"#222C3B"}},components:{Alert:{baseStyle:{container:{borderRadius:"6px",fontSize:"sm"}}},Select:{baseStyle:{field:{_dark:{borderColor:"gray.600",borderRadius:"6px"},_light:{borderRadius:"6px"}}}},FormHelperText:{baseStyle:{fontSize:"xs"}},FormLabel:{baseStyle:{fontSize:"sm",fontWeight:"medium",mb:"1",_dark:{color:"gray.300"}}},Input:{baseStyle:{addon:{_dark:{borderColor:"gray.600",_placeholder:{color:"gray.500"}}},field:{_focusVisible:{boxShadow:"none",borderColor:"primary.200",outlineColor:"primary.200"},_dark:{borderColor:"gray.600",_disabled:{color:"gray.400",borderColor:"gray.500"},_placeholder:{color:"gray.500"}}}}},Table:{baseStyle:{table:{borderCollapse:"separate",borderSpacing:0},thead:{borderBottomColor:"light-border"},th:{background:"#F9FAFB",borderColor:"light-border !important",borderBottomColor:"light-border !important",borderTop:"1px solid ",borderTopColor:"light-border !important",_first:{borderLeft:"1px solid",borderColor:"light-border !important"},_last:{borderRight:"1px solid",borderColor:"light-border !important"},_dark:{borderColor:"gray.600 !important",background:"gray.750"}},td:{transition:"all .1s ease-out",borderColor:"light-border",borderBottomColor:"light-border !important",_first:{borderLeft:"1px solid",borderColor:"light-border",_dark:{borderColor:"gray.600"}},_last:{borderRight:"1px solid",borderColor:"light-border",_dark:{borderColor:"gray.600"}},_dark:{borderColor:"gray.600",borderBottomColor:"gray.600 !important"}},tr:{"&.interactive":{cursor:"pointer",_hover:{"& > td":{bg:"gray.200"},_dark:{"& > td":{bg:"gray.750"}}}},_last:{"& > td":{_first:{borderBottomLeftRadius:"8px"},_last:{borderBottomRightRadius:"8px"}}}}}}}});const Ut=()=>localStorage.getItem("token"),$o=t=>{localStorage.setItem("token",t)},Vo=()=>{localStorage.removeItem("token")},Go=yn.create({baseURL:"/api/"}),Yo=(t,n={})=>(Ut()&&(n.headers={...(n==null?void 0:n.headers)||{},Authorization:`Bearer ${Ut()}`}),Go(t,n)),O=Yo,Zo=Rt(t=>({isLoading:!0,isPostLoading:!1,version:null,started:!1,logs_websocket:null,config:"",fetchCoreSettings:()=>{t({isLoading:!0}),Promise.all([O("/core").then(({version:n,started:o,logs_websocket:s})=>t({version:n,started:o,logs_websocket:s})),O("/core/config").then(n=>t({config:n}))]).finally(()=>t({isLoading:!1}))},updateConfig:n=>(t({isPostLoading:!0}),O("/core/config",{method:"PUT",body:n}).finally(()=>{t({isPostLoading:!1})})),restartCore:()=>O("/core/restart",{method:"POST"})}));function ae(t,n=2,o=!1){if(!+t)return"0 B";const s=1024,a=n<0?0:n,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(t)/Math.log(s));return o?[parseFloat((t/Math.pow(s,l)).toFixed(a)),i[l]]:`${parseFloat((t/Math.pow(s,l)).toFixed(a))} ${i[l]}`}const mr=t=>{if(t!==null)return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},Qo=S(Sn,{baseStyle:{w:5,h:5,position:"relative",zIndex:"2"}}),qo=S(wn,{baseStyle:{w:5,h:5,position:"relative",zIndex:"2"}}),Xo=S(Lt,{baseStyle:{w:5,h:5,position:"relative",zIndex:"2"}}),Ft=({title:t,content:n,icon:o})=>r(Cn,{p:6,borderWidth:"1px",borderColor:"light-border",bg:"#F9FAFB",_dark:{borderColor:"gray.600",bg:"gray.750"},borderStyle:"solid",boxShadow:"none",borderRadius:"12px",width:"full",display:"flex",justifyContent:"space-between",flexDirection:"row",children:[r(_,{alignItems:"center",columnGap:"4",children:[e(v,{p:"2",position:"relative",color:"white",_before:{content:'""',position:"absolute",top:0,left:0,bg:"primary.400",display:"block",w:"full",h:"full",borderRadius:"5px",opacity:".5",z:"1"},_after:{content:'""',position:"absolute",top:"-5px",left:"-5px",bg:"primary.400",display:"block",w:"calc(100% + 10px)",h:"calc(100% + 10px)",borderRadius:"8px",opacity:".4",z:"1"},children:o}),e(d,{color:"gray.600",_dark:{color:"gray.300"},fontWeight:"medium",textTransform:"capitalize",fontSize:"sm",children:t})]}),e(v,{fontSize:"3xl",fontWeight:"semibold",mt:"2",children:n})]}),Gt="statistics-query-key",Jo=t=>{const{version:n}=z(),{data:o}=Tt({queryKey:Gt,queryFn:()=>O("/system"),refetchInterval:5e3,onSuccess:({version:a})=>{n!==a&&z.setState({version:a})}}),{t:s}=H();return r(_,{justifyContent:"space-between",gap:0,columnGap:{lg:4,md:0},rowGap:{lg:0,base:4},display:"flex",flexDirection:{lg:"row",base:"column"},...t,children:[e(Ft,{title:s("activeUsers"),content:o&&r(_,{alignItems:"flex-end",children:[e(d,{children:mr(o.users_active)}),r(d,{fontWeight:"normal",fontSize:"lg",as:"span",display:"inline-block",pb:"5px",children:["/ ",mr(o.total_user)]})]}),icon:e(Qo,{})}),e(Ft,{title:s("dataUsage"),content:o&&ae(o.incoming_bandwidth+o.outgoing_bandwidth),icon:e(qo,{})}),e(Ft,{title:s("memoryUsage"),content:o&&r(_,{alignItems:"flex-end",children:[e(d,{children:ae(o.mem_used,1,!0)[0]}),r(d,{fontWeight:"normal",fontSize:"lg",as:"span",display:"inline-block",pb:"5px",children:[ae(o.mem_used,1,!0)[1]," /"," ",ae(o.mem_total,1)]})]}),icon:e(Xo,{})})]})},tn="marzban-num-users-per-page",gr=10,Ko=()=>{const t=localStorage.getItem(tn)||gr.toString();return parseInt(t)||gr},es=t=>localStorage.setItem(tn,t),ts=t=>{for(const n in t)t[n]||delete t[n];return z.setState({loading:!0}),O("/users",{query:t}).then(n=>(z.setState({users:n}),n)).finally(()=>{z.setState({loading:!1})})},rs=()=>O("/inbounds").then(t=>{z.setState({inbounds:new Map(Object.entries(t))})}).finally(()=>{z.setState({loading:!1})}),z=Rt(_n((t,n)=>({version:null,editingUser:null,deletingUser:null,isCreatingNewUser:!1,QRcodeLinks:null,subscribeUrl:null,users:{users:[],total:0},loading:!0,isResetingAllUsage:!1,isEditingHosts:!1,isEditingNodes:!1,isShowingNodesUsage:!1,resetUsageUser:null,revokeSubscriptionUser:null,filters:{username:"",limit:Ko(),sort:"-created_at"},inbounds:new Map,isEditingCore:!1,refetchUsers:()=>{ts(n().filters)},resetAllUsage:()=>O("/users/reset",{method:"POST"}).then(()=>{n().onResetAllUsage(!1),n().refetchUsers()}),onResetAllUsage:o=>t({isResetingAllUsage:o}),onCreateUser:o=>t({isCreatingNewUser:o}),onEditingUser:o=>{t({editingUser:o})},onDeletingUser:o=>{t({deletingUser:o})},onFilterChange:o=>{t({filters:{...n().filters,...o}}),n().refetchUsers()},setQRCode:o=>{t({QRcodeLinks:o})},deleteUser:o=>(t({editingUser:null}),O(`/user/${o.username}`,{method:"DELETE"}).then(()=>{t({deletingUser:null}),n().refetchUsers(),Vt.invalidateQueries(Gt)})),createUser:o=>O("/user",{method:"POST",body:o}).then(()=>{t({editingUser:null}),n().refetchUsers(),Vt.invalidateQueries(Gt)}),editUser:o=>O(`/user/${o.username}`,{method:"PUT",body:o}).then(()=>{n().onEditingUser(null),n().refetchUsers()}),fetchUserUsage:(o,s)=>{for(const a in s)s[a]||delete s[a];return O(`/user/${o.username}/usage`,{method:"GET",query:s})},onEditingHosts:o=>{t({isEditingHosts:o})},onEditingNodes:o=>{t({isEditingNodes:o})},onShowingNodesUsage:o=>{t({isShowingNodesUsage:o})},setSubLink:o=>{t({subscribeUrl:o})},resetDataUsage:o=>O(`/user/${o.username}/reset`,{method:"POST"}).then(()=>{t({resetUsageUser:null}),n().refetchUsers()}),revokeSubscription:o=>O(`/user/${o.username}/revoke_sub`,{method:"POST"}).then(s=>{t({revokeSubscriptionUser:null,editingUser:s}),n().refetchUsers()})}))),ge=({children:t,color:n})=>e(v,{position:"relative",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center",_before:{content:'""',display:"block",position:"absolute",top:"0",left:"0",width:"calc(100%)",height:"calc(100%)",bg:`${n}.400`,opacity:".5",borderRadius:"5px",zIndex:"1",_dark:{bg:`${n}.400`}},_after:{content:'""',display:"block",position:"absolute",top:"0",left:"0",width:"calc(100% + 10px)",height:"calc(100% + 10px)",transform:"translate(-5px, -5px)",bg:`${n}.400`,opacity:".4",borderRadius:"8px",zIndex:"1",_dark:{bg:`${n}.400`}},children:e(d,{color:`${n}.500`,_dark:{color:`${n}.900`},position:"relative",zIndex:"2",children:t})});window.ace.define("ace/theme/nord_dark",["require","exports","module","ace/lib/dom"],(t,n,o)=>{n.isDark=!0,n.cssClass="ace-nord-dark",t("../lib/dom").importCssString(n.cssText,n.cssClass)});window.ace.define("ace/theme/dawn",["require","exports","module","ace/lib/dom"],(t,n,o)=>{n.isDark=!1,n.cssClass="ace-dawn",t("../lib/dom").importCssString(n.cssText,n.cssClass)});const ns=f.exports.forwardRef(({json:t,onChange:n,mode:o="code"},s)=>{const{colorMode:a}=Ye(),i={mode:o,onChangeText:n,statusBar:!1,mainMenuBar:!1,theme:a==="dark"?"ace/theme/nord_dark":"ace/theme/dawn"},l=f.exports.useRef(null),p=f.exports.useRef(null);return f.exports.useEffect(()=>(p.current=new kn(l.current,i),()=>{p.current&&p.current.destroy()}),[]),f.exports.useEffect(()=>{p.current&&p.current.update(t)},[t]),e(v,{ref:s,border:"1px solid",borderColor:"gray.300",_dark:{borderColor:"gray.500"},borderRadius:5,h:"full",children:e(v,{height:"full",ref:l})})}),rn=y.object({name:y.string().min(1),address:y.string().min(1),port:y.number().min(1).or(y.string().transform(t=>parseFloat(t))),api_port:y.number().min(1).or(y.string().transform(t=>parseFloat(t))),xray_version:y.string().nullable().optional(),id:y.number().nullable().optional(),status:y.enum(["connected","connecting","error","disabled"]).nullable().optional(),message:y.string().nullable().optional(),add_as_new_host:y.boolean().optional(),usage_coefficient:y.number().or(y.string().transform(t=>parseFloat(t)))}),os=()=>({name:"",address:"",port:62050,api_port:62051,xray_version:"",usage_coefficient:1}),gt="fetch-nodes-query-key",nn=()=>{const{isEditingNodes:t}=z();return Tt({queryKey:gt,queryFn:yt.getState().fetchNodes,refetchInterval:t?3e3:void 0,refetchOnWindowFocus:!1})},yt=Rt((t,n)=>({nodes:[],addNode(o){return O("/node",{method:"POST",body:o})},fetchNodes(){return O("/nodes")},fetchNodesUsage(o){return O("/nodes/usage",{query:o})},updateNode(o){return O(`/node/${o.id}`,{method:"PUT",body:o})},setDeletingNode(o){t({deletingNode:o})},reconnectNode(o){return O(`/node/${o.id}/reconnect`,{method:"POST"})},deleteNode:()=>{var o;return O(`/node/${(o=n().deletingNode)==null?void 0:o.id}`,{method:"DELETE"})}})),fr=500,ss=S(Rr,{baseStyle:{w:5,h:5}}),as=S(At,{baseStyle:{w:4,h:4}}),is=S(In,{baseStyle:{w:4,h:4}}),ls=S(vn,{baseStyle:{w:3,h:3}}),cs=t=>({[it.ReadyState.CONNECTING]:"connecting",[it.ReadyState.OPEN]:"connected",[it.ReadyState.CLOSING]:"closed",[it.ReadyState.CLOSED]:"closed",[it.ReadyState.UNINSTANTIATED]:"closed"})[t],ds=t=>{try{let n=new URL("/api/".startsWith("/")?window.location.origin+"/api/":"/api/");return(n.protocol==="https:"?"wss://":"ws://")+Er([n.host+n.pathname,t?`/node/${t}/logs`:"/core/logs"])+"?interval=1&token="+Ut()}catch(n){return console.error("Unable to generate websocket url"),console.error(n),null}};let Pe=[];const hs=()=>{const{colorMode:t}=Ye(),{data:n}=nn(),o=!1,[s,a]=f.exports.useState(""),i=(R,ee)=>{R!==s&&(R==="host"?(a(""),T([])):(a(R),T([])))},{isEditingCore:l}=z(),{fetchCoreSettings:p,updateConfig:g,isLoading:w,config:x,isPostLoading:b,version:u,restartCore:m}=Zo(),I=f.exports.useRef(null),[C,T]=f.exports.useState([]),{t:h}=H(),c=Se(),F=Ze({defaultValues:{config:x||{}}});f.exports.useEffect(()=>{x&&F.setValue("config",x)},[x]),f.exports.useEffect(()=>{l&&p()},[l]);const j=f.exports.useRef(!0),D=f.exports.useCallback(Lr(R=>{var le,K,Ce;const ee=Math.abs((((le=I.current)==null?void 0:le.scrollTop)||0)-(((K=I.current)==null?void 0:K.scrollHeight)||0)+(((Ce=I.current)==null?void 0:Ce.offsetHeight)||0))<10;I.current&&ee?j.current=!0:j.current=!1,R.length<40&&T(R)},300),[]),{readyState:M}=Dn(ds(s),{onMessage:R=>{Pe.push(R.data),Pe.length>fr&&(Pe=Pe.splice(0,Pe.length-fr)),D([...Pe])},shouldReconnect:()=>!0,reconnectAttempts:10,reconnectInterval:1e3});f.exports.useEffect(()=>{var R;I.current&&j.current&&(I.current.scrollTop=(R=I.current)==null?void 0:R.scrollHeight)},[C]),f.exports.useEffect(()=>()=>{Pe=[]},[]);const Z=cs(M.toString()),{mutate:Q,isLoading:q}=pt(m),ne=({config:R})=>{g(R).then(()=>{c({title:h("core.successMessage"),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(ee=>{let le=h("core.generalErrorMessage");typeof ee.response._data.detail=="object"&&(le=ee.response._data.detail[Object.keys(ee.response._data.detail)[0]]),typeof ee.response._data.detail=="string"&&(le=ee.response._data.detail),c({title:le,status:"error",isClosable:!0,position:"top",duration:3e3})})},oe=f.exports.useRef(null),[U,W]=f.exports.useState(!1),J=()=>{var R;document.fullscreenElement?(document.exitFullscreen(),W(!1)):((R=oe.current)==null||R.requestFullscreen(),W(!0))};return r("form",{onSubmit:F.handleSubmit(ne),children:[r(me,{children:[r(L,{children:[r(_,{justifyContent:"space-between",alignItems:"flex-start",children:[r(B,{children:[h("core.configuration")," ",w&&e(Tr,{isIndeterminate:!0,size:"15px"})]}),e(_,{gap:0,children:e(re,{label:"Xray Version",placement:"top",children:e(E,{height:"100%",textTransform:"lowercase",children:u&&`v${u}`})})})]}),r(v,{position:"relative",ref:oe,minHeight:"300px",children:[e(xe,{control:F.control,name:"config",render:({field:R})=>e(ns,{json:x,onChange:R.onChange})}),e(V,{size:"xs","aria-label":"full screen",variant:"ghost",position:"absolute",top:"2",right:"4",onClick:J,children:U?e(ls,{}):e(is,{})})]})]}),r(L,{mt:"4",children:[r(_,{justifyContent:"space-between",style:{paddingBottom:"1rem"},children:[r(_,{children:[(n==null?void 0:n[0])&&r(Me,{size:"sm",style:{width:"auto"},disabled:o,bg:"transparent",_dark:{bg:"transparent"},sx:{option:{backgroundColor:t==="dark"?"#222C3B":"white"}},onChange:R=>i(R.currentTarget.value,R.currentTarget.selectedOptions[0].text),children:[e("option",{value:"host",defaultChecked:!0,children:"Master"},"host"),n&&n.map(R=>e("option",{value:String(R.id),children:h(R.name)},R.address))]}),e(B,{className:"w-au",children:h("core.logs")})]}),e(d,{as:B,children:h(`core.socket.${Z}`)})]}),e(v,{border:"1px solid",borderColor:"gray.300",bg:"#F9F9F9",_dark:{borderColor:"gray.500",bg:"#2e3440"},borderRadius:5,minHeight:"200px",maxHeight:"250px",p:2,overflowY:"auto",ref:I,children:C.map((R,ee)=>e(d,{fontSize:"xs",opacity:.8,whiteSpace:"pre-line",children:R},ee))})]})]}),e(Ne,{children:r(_,{w:"full",justifyContent:"space-between",children:[e(_,{children:e(v,{children:e(P,{size:"sm",leftIcon:e(as,{className:ft({"animate-spin":q})}),onClick:()=>Q(),children:h(q?"core.restarting":"core.restartCore")})})}),e(_,{children:e(P,{size:"sm",variant:"solid",colorScheme:"primary",px:"5",type:"submit",isDisabled:w||b,isLoading:b,children:h("core.save")})})]})})]})},us=()=>{const{isEditingCore:t}=z(),n=z.setState.bind(null,{isEditingCore:!1}),{t:o}=H();return r(ce,{isOpen:t,onClose:n,size:"3xl",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"full",children:[e(ue,{pt:6,children:r(_,{gap:2,children:[e(ge,{color:"primary",children:e(ss,{color:"white"})}),e(d,{fontWeight:"semibold",fontSize:"lg",children:o("core.title")})]})}),e(pe,{mt:3}),e(hs,{})]})]})},St=S(zn,{baseStyle:{w:5,h:5}}),ps=()=>{const[t,n]=f.exports.useState(!1),{deletingUser:o,onDeletingUser:s,deleteUser:a}=z(),{t:i}=H(),l=Se(),p=()=>{s(null)},g=()=>{o&&(n(!0),a(o).then(()=>{l({title:i("deleteUser.deleteSuccess",{username:o.username}),status:"success",isClosable:!0,position:"top",duration:3e3})}).then(p).finally(n.bind(null,!1)))};return r(ce,{isCentered:!0,isOpen:!!o,onClose:p,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"red",children:e(St,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:i("deleteUser.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:i("deleteUser.prompt",{username:o.username})})})]}),r(Ne,{display:"flex",children:[e(P,{size:"sm",onClick:p,mr:3,w:"full",variant:"outline",children:i("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"red",onClick:g,leftIcon:t?e(He,{size:"xs"}):void 0,children:i("delete")})]})]})]})},Kt={baseStyle:{w:4,h:4}},ms=S(Un,Kt),gs=S(Ar,Kt),er=S(At,Kt),fs=Lr(t=>{z.getState().onFilterChange({...z.getState().filters,offset:0,search:t})},300),bs=({...t})=>{const{loading:n,filters:o,onFilterChange:s,refetchUsers:a,onCreateUser:i}=z(),{t:l}=H(),[p,g]=f.exports.useState(""),w=b=>{g(b.target.value),fs(b.target.value)},x=()=>{g(""),s({...o,offset:0,search:""})};return r(Mr,{id:"filters",templateColumns:{lg:"repeat(3, 1fr)",md:"repeat(4, 1fr)",base:"repeat(1, 1fr)"},position:"sticky",top:0,mx:"-6",px:"6",rowGap:4,gap:{lg:4,base:0},bg:"var(--chakra-colors-chakra-body-bg)",py:4,zIndex:"docked",...t,children:[e(ht,{colSpan:{base:1,md:2,lg:1},order:{base:2,md:1},children:r(kt,{children:[e(En,{pointerEvents:"none",children:e(ms,{})}),e(Be,{placeholder:l("search"),value:p,borderColor:"light-border",onChange:w}),r(It,{children:[n&&e(He,{size:"xs"}),o.search&&o.search.length>0&&e(V,{onClick:x,"aria-label":"clear",size:"xs",variant:"ghost",children:e(gs,{})})]})]})}),e(ht,{colSpan:2,order:{base:1,md:2},children:r(_,{justifyContent:"flex-end",alignItems:"center",h:"full",children:[e(V,{"aria-label":"refresh users",disabled:n,onClick:a,size:"sm",variant:"outline",children:e(er,{className:ft({"animate-spin":n})})}),e(P,{colorScheme:"primary",size:"sm",onClick:()=>i(!0),px:5,children:l("createUser")})]})})]})},on="https://github.com/Gozargah/Marzban",xs="https://github.com/Gozargah",ys="https://github.com/Gozargah/Marzban#donation",sn=t=>{const{version:n}=z();return e(_,{w:"full",py:"0",position:"relative",...t,children:r(d,{display:"inline-block",flexGrow:1,textAlign:"center",color:"gray.500",fontSize:"xs",children:[e(or,{color:"blue.400",href:on,children:"Marzban"}),n?` (v${n}), `:", ","Made with \u2764\uFE0F in"," ",e(or,{color:"blue.400",href:xs,children:"Gozargah"})]})})},Ss=S(Rn,{baseStyle:{w:4,h:4}}),an=({actions:t})=>{const{i18n:n}=H();var o=s=>{n.changeLanguage(s)};return r(Nr,{placement:"bottom-end",children:[e(Pr,{as:V,size:"sm",variant:"outline",icon:e(Ss,{}),position:"relative"}),r(Fr,{minW:"100px",zIndex:9999,children:[e(ye,{maxW:"100px",fontSize:"sm",onClick:()=>o("en"),children:"English"}),e(ye,{maxW:"100px",fontSize:"sm",onClick:()=>o("fa"),children:"\u0641\u0627\u0631\u0633\u06CC"}),e(ye,{maxW:"100px",fontSize:"sm",onClick:()=>o("zh-cn"),children:"\u7B80\u4F53\u4E2D\u6587"}),e(ye,{maxW:"100px",fontSize:"sm",onClick:()=>o("ru"),children:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"})]})]})},ws=async()=>await O("/admin"),Cs=()=>{const{data:t,isError:n,isLoading:o,isSuccess:s,error:a}=Tt({queryFn:()=>ws()});return{userData:t||{discord_webook:"",is_sudo:!1,telegram_id:"",username:""},getUserIsPending:o,getUserIsSuccess:s,getUserIsError:n,getUserError:a}},we={baseStyle:{w:4,h:4}},_s=S(Ln,we),ks=S(Tn,we),Is=S(Rr,we),vs=S(An,we),Ds=S(Mn,we),zs=S(Nn,we),Us=S(Qt,we),Es=S(Wr,we),Rs=S(Lt,we),Ls=S(Or,we),br=S(v,{baseStyle:{bg:"yellow.500",w:"2",h:"2",rounded:"full",position:"absolute"}}),ln="marzban-menu-notification",Ts=()=>{const t=localStorage.getItem(ln);if(!t)return!0;try{return t&&Fn(parseInt(t))?Wn(new Date,new Date(parseInt(t)))>=7:!0}catch{return!0}},As=({actions:t})=>{const{userData:n,getUserIsSuccess:o,getUserIsPending:s}=Cs(),a=()=>!s&&o?n.is_sudo:!1,{onEditingHosts:i,onResetAllUsage:l,onEditingNodes:p,onShowingNodesUsage:g}=z(),{t:w}=H(),{colorMode:x,toggleColorMode:b}=Ye(),[u,m]=f.exports.useState(Ts()),I=x==="dark"?"dark_dimmed":x,C=()=>{localStorage.setItem(ln,new Date().getTime().toString()),m(!1)};return r(_,{gap:2,justifyContent:"space-between",__css:{"& .menuList":{direction:"ltr"}},position:"relative",children:[e(d,{as:"h1",fontWeight:"semibold",fontSize:"2xl",children:w("users")}),u&&e(br,{top:"0",right:"0",zIndex:9999}),e(v,{overflow:"auto",css:{direction:"rtl"},children:r(_,{alignItems:"center",children:[r(Nr,{children:[e(Pr,{as:V,size:"sm",variant:"outline",icon:e(ie,{children:e(vs,{})}),position:"relative"}),r(Fr,{minW:"170px",zIndex:99999,className:"menuList",children:[a()&&r(ie,{children:[e(ye,{maxW:"170px",fontSize:"sm",icon:e(Us,{}),onClick:i.bind(null,!0),children:w("header.hostSettings")}),e(ye,{maxW:"170px",fontSize:"sm",icon:e(Es,{}),onClick:p.bind(null,!0),children:w("header.nodeSettings")}),e(ye,{maxW:"170px",fontSize:"sm",icon:e(Rs,{}),onClick:g.bind(null,!0),children:w("header.nodesUsage")}),e(ye,{maxW:"170px",fontSize:"sm",icon:e(Ls,{}),onClick:l.bind(null,!0),children:w("resetAllUsage")})]}),e(sr,{to:ys,target:"_blank",children:r(ye,{maxW:"170px",fontSize:"sm",icon:e(zs,{}),position:"relative",onClick:C,children:[w("header.donation")," ",u&&e(br,{top:"3",right:"2"})]})}),e(sr,{to:"/login",children:e(ye,{maxW:"170px",fontSize:"sm",icon:e(Ds,{}),children:w("header.logout")})})]})]}),a()&&e(V,{size:"sm",variant:"outline","aria-label":"core settings",onClick:()=>{z.setState({isEditingCore:!0})},children:e(Is,{})}),e(an,{}),e(V,{size:"sm",variant:"outline","aria-label":"switch theme",onClick:()=>{en(x=="dark"?"light":"dark"),b()},children:x==="light"?e(_s,{}):e(ks,{})}),e(v,{css:{direction:"ltr"},display:"flex",alignItems:"center",pr:"2",__css:{"& span":{display:"inline-flex"}},children:e(Pn,{href:on,"data-color-scheme":`no-preference: ${I}; light: ${I}; dark: ${I};`,"data-size":"large","data-show-count":"true","aria-label":"Star Marzban on GitHub",children:"Star"})})]})})]})},Ms=[{title:"Inbound's default",value:"inbound_default"},{title:"TLS",value:"tls"},{title:"None",value:"none"}],Ns=[{title:"",value:""},{title:"h3",value:"h3"},{title:"h2",value:"h2"},{title:"http/1.1",value:"http/1.1"},{title:"h3,h2,http/1.1",value:"h3,h2,http/1.1"},{title:"h3,h2",value:"h3,h2"},{title:"h2,http/1.1",value:"h2,http/1.1"}],Ps=[{title:"",value:""},...["chrome","firefox","safari","ios","android","edge","360","qq","random","randomized"].map(t=>({title:t,value:t}))],Fs=[{title:"none",value:""},{title:"xtls-rprx-vision",value:"xtls-rprx-vision"}],Ws=["aes-128-gcm","aes-256-gcm","chacha20-ietf-poly1305"],Os=Rt(t=>({isLoading:!1,isPostLoading:!1,hosts:{},fetchHosts:()=>{t({isLoading:!0}),O("/hosts").then(n=>t({hosts:n})).finally(()=>t({isLoading:!1}))},setHosts:n=>(t({isPostLoading:!0}),O("/hosts",{method:"PUT",body:n}).finally(()=>{t({isPostLoading:!1})}))}));const Hs=S(Ar,{baseStyle:{w:4,h:4}}),Ae=Bt.forwardRef(({disabled:t,step:n,label:o,className:s,startAdornment:a,endAdornment:i,type:l="text",placeholder:p,onChange:g,onBlur:w,name:x,value:b,onClick:u,error:m,clearable:I=!1,...C},T)=>{const h=()=>{g&&g({target:{value:"",name:x}})},{size:c="md"}=C,F=l=="number"?Gn:Be,j=l=="number"?On:Bt.Fragment,D=l=="number"?{keepWithinRange:!0,precision:5,format:M=>isNaN(parseFloat(String(M)))||Number(parseFloat(String(M)).toFixed(5))===0?M:Number(parseFloat(String(M)).toFixed(5)),min:0,step:n,name:x,type:l,placeholder:p,onChange:M=>{g&&g(M)},onBlur:w,value:b,onClick:u,disabled:t,flexGrow:1,size:c}:{};return r(L,{isInvalid:!!m,children:[o&&e(B,{children:o}),r(kt,{size:c,w:"full",rounded:"md",_focusWithin:{outline:"2px solid",outlineColor:"primary.200"},bg:t?"gray.100":"transparent",_dark:{bg:t?"gray.600":"transparent"},children:[a&&e(Hn,{children:a}),r(j,{...D,children:[e(F,{name:x,ref:T,step:n,className:ft(s),type:l,placeholder:p,onChange:g,onBlur:w,value:b,onClick:u,disabled:t,flexGrow:1,_focusVisible:{outline:"none",borderTopColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent"},_disabled:{cursor:"not-allowed"},...C,roundedLeft:a?"0":"md",roundedRight:i?"0":"md"}),l=="number"&&e(ie,{children:r(jn,{children:[e(Bn,{}),e($n,{})]})})]}),i&&e(Vn,{borderLeftRadius:0,borderRightRadius:"6px",bg:"transparent",children:i}),I&&b&&b.length&&e(It,{borderLeftRadius:0,borderRightRadius:"6px",bg:"transparent",onClick:h,cursor:"pointer",children:e(Hs,{})})]}),!!m&&e(vt,{children:m})]})}),js=S(Yn,{baseStyle:{w:5,h:5}}),Bs=S(Zn,{baseStyle:{w:5,h:5}}),$s=S(Qn,{baseStyle:{w:5,h:5}}),Wt=S(Me,{baseStyle:{bg:"white",_dark:{bg:"gray.700"}}}),Fe=S(Ae,{baseStyle:{bg:"white",_dark:{bg:"gray.700"}}}),Vs=S(Qt,{baseStyle:{w:5,h:5}}),Le=S(qn,{baseStyle:{w:4,h:4,color:"gray.400",cursor:"pointer"}}),Gs=y.record(y.string().min(1),y.array(y.object({remark:y.string().min(1,"Remark is required"),address:y.string().min(1,"Address is required"),port:y.string().or(y.number()).nullable().transform(t=>typeof t=="number"?t:t!==null&&!isNaN(parseInt(t))?Number(parseInt(t)):null),path:y.string().nullable(),sni:y.string().nullable(),host:y.string().nullable(),mux_enable:y.boolean().default(!1),allowinsecure:y.boolean().nullable().default(!1),is_disabled:y.boolean().default(!0),fragment_setting:y.string().nullable(),random_user_agent:y.boolean().default(!1),security:y.string(),alpn:y.string(),fingerprint:y.string()}))),ke=S(vt,{baseStyle:{color:"red.400",display:"block",textAlign:"left",w:"100%"}}),Ys=({hostKey:t,isOpen:n,toggleAccordion:o})=>{const{inbounds:s}=z(),a=[...s.values()].flat().filter(h=>h.tag===t)[0],i=qt(),{fields:l,append:p,remove:g,insert:w,move:x}=Xn({control:i.control,name:t}),{errors:b}=i.formState,{t:u}=H(),m=b[t],I=()=>{p({host:"",sni:"",port:null,path:null,address:"",remark:"",mux_enable:!1,allowinsecure:!1,is_disabled:!1,fragment_setting:"",random_user_agent:!1,security:"inbound_default",alpn:"",fingerprint:""})},C=h=>{if(h<0||h>=l.length)return;const c=l[h];w(h+1,c)};f.exports.useEffect(()=>{m&&!n&&o()},[m]);const T=(h,c)=>{c==="up"&&h>0?x(h,h-1):c==="down"&&h{var F,j,D,M,Z,Q,q,ne,oe,U,W,J,R,ee,le,K,Ce,Ct,qe,_t,Xe,Je,Ke,et,tt,k,A,te,se,fe,_e,G,rt,nt,ot,st,at;return e(Jn.div,{layout:!0,initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{layout:{type:"spring",stiffness:500,damping:30},opacity:{duration:.1}},id:h.id,whileDrag:{scale:1.05,zIndex:10},style:{width:"100%"},children:r(N,{id:h.id,border:"1px solid",_dark:{borderColor:"gray.600",bg:"#273142"},_light:{borderColor:"gray.200",bg:"#fcfbfb"},p:2,w:"full",borderRadius:"4px",children:[e(_,{w:"100%",alignItems:"flex-start",children:r(L,{position:"relative",zIndex:10,isInvalid:!!(m&&((F=m[c])==null?void 0:F.remark)),children:[r(kt,{children:[e(Fe,{...i.register(t+"."+c+".remark"),size:"sm",borderRadius:"4px",placeholder:"Remark"}),e(It,{children:r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(v,{mt:"-8px",children:e(Le,{})})}),e(De,{children:r(ze,{children:[e(Ue,{}),e(Ee,{}),e(ar,{children:r(v,{fontSize:"xs",children:[e(d,{pr:"20px",children:u("hostsDialog.desc")}),r(d,{children:[r(E,{children:["{","SERVER_IP","}"]})," ",u("hostsDialog.currentServer")]}),r(d,{mt:1,children:[r(E,{children:["{","SERVER_IPV6","}"]})," ",u("hostsDialog.currentServerv6")]}),r(d,{mt:1,children:[r(E,{children:["{","USERNAME","}"]})," ",u("hostsDialog.username")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_USAGE","}"]})," ",u("hostsDialog.dataUsage")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LEFT","}"]})," ",u("hostsDialog.remainingData")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LIMIT","}"]})," ",u("hostsDialog.dataLimit")]}),r(d,{mt:1,children:[r(E,{children:["{","DAYS_LEFT","}"]})," ",u("hostsDialog.remainingDays")]}),r(d,{mt:1,children:[r(E,{children:["{","EXPIRE_DATE","}"]})," ",u("hostsDialog.expireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","JALALI_EXPIRE_DATE","}"]})," ",u("hostsDialog.jalaliExpireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","TIME_LEFT","}"]})," ",u("hostsDialog.remainingTime")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_TEXT","}"]})," ",u("hostsDialog.statusText")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_EMOJI","}"]})," ",u("hostsDialog.statusEmoji")]}),r(d,{mt:1,children:[r(E,{children:["{","PROTOCOL","}"]})," ",u("hostsDialog.proxyProtocol")]}),r(d,{mt:1,children:[r(E,{children:["{","TRANSPORT","}"]})," ",u("hostsDialog.proxyMethod")]})]})})]})})]})})]}),m&&((j=m[c])==null?void 0:j.remark)&&e(ke,{children:(M=(D=m[c])==null?void 0:D.remark)==null?void 0:M.message})]})}),r(L,{isInvalid:!!(m&&((Z=m[c])==null?void 0:Z.address)),children:[r(kt,{children:[e(Fe,{size:"sm",borderRadius:"4px",placeholder:"Address (e.g. example.com)",...i.register(t+"."+c+".address")}),e(It,{children:r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(v,{mt:"-8px",children:e(Le,{})})}),e(De,{children:r(ze,{children:[e(Ue,{}),e(Ee,{}),e(ar,{children:r(v,{fontSize:"xs",children:[e(d,{pr:"20px",children:u("hostsDialog.desc")}),r(d,{children:[r(E,{children:["{","SERVER_IP","}"]})," ",u("hostsDialog.currentServer")]}),r(d,{mt:1,children:[r(E,{children:["{","SERVER_IPV6","}"]})," ",u("hostsDialog.currentServerv6")]}),r(d,{mt:1,children:[r(E,{children:["{","USERNAME","}"]})," ",u("hostsDialog.username")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_USAGE","}"]})," ",u("hostsDialog.dataUsage")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LEFT","}"]})," ",u("hostsDialog.remainingData")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LIMIT","}"]})," ",u("hostsDialog.dataLimit")]}),r(d,{mt:1,children:[r(E,{children:["{","DAYS_LEFT","}"]})," ",u("hostsDialog.remainingDays")]}),r(d,{mt:1,children:[r(E,{children:["{","EXPIRE_DATE","}"]})," ",u("hostsDialog.expireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","JALALI_EXPIRE_DATE","}"]})," ",u("hostsDialog.jalaliExpireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","TIME_LEFT","}"]})," ",u("hostsDialog.remainingTime")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_TEXT","}"]})," ",u("hostsDialog.statusText")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_EMOJI","}"]})," ",u("hostsDialog.statusEmoji")]}),r(d,{mt:1,children:[r(E,{children:["{","PROTOCOL","}"]})," ",u("hostsDialog.proxyProtocol")]}),r(d,{mt:1,children:[r(E,{children:["{","TRANSPORT","}"]})," ",u("hostsDialog.proxyMethod")]})]})})]})})]})})]}),m&&((Q=m[c])==null?void 0:Q.address)&&e(ke,{children:(ne=(q=m[c])==null?void 0:q.address)==null?void 0:ne.message})]}),e(xt,{w:"full",allowToggle:!0,children:r($e,{border:"0",children:[r("div",{style:{display:"flex",alignItems:"center"},children:[r(Ve,{display:"flex",px:0,py:1,borderRadius:3,_hover:{bg:"transparent"},children:[r(d,{flex:"3",align:"start",fontSize:"xs",color:"gray.600",_dark:{color:"gray.500"},pl:1,children:[u("hostsDialog.advancedOptions"),e($t,{fontSize:"sm",ml:1})]}),r(Kn,{flex:"1",px:"0",display:"contents",children:[e(xe,{control:i.control,name:`${t}.${c}.is_disabled`,render:({field:Y})=>e(Dt,{mx:"1.5",colorScheme:"primary",...Y,value:void 0,isChecked:!Y.value,onChange:nr=>{console.log(nr.target.checked),Y.onChange(!nr.target.checked)}})}),e(re,{label:"Delete",placement:"top",children:e(V,{"aria-label":"Delete",size:"sm",colorScheme:"red",variant:"ghost",onClick:g.bind(null,c),children:e(St,{})})})]})]}),e(re,{label:"Dublicate",placement:"top",children:e(V,{"aria-label":"Dublicate",size:"sm",colorScheme:"white",variant:"ghost",onClick:()=>C(c),children:e(js,{})})}),cT(c,"down"),children:e($s,{})})}),c>0&&e(re,{label:"Move Up",placement:"top",children:e(V,{"aria-label":"UpIcon",size:"sm",colorScheme:"white",variant:"ghost",onClick:()=>T(c,"up"),children:e(Bs,{})})})]}),e(Ge,{w:"full",p:1,children:r(N,{w:"full",borderRadius:"4px",children:[r(L,{isInvalid:!!(m&&((oe=m[c])==null?void 0:oe.port)),children:[r(B,{display:"flex",pb:1,alignItems:"center",justifyContent:"space-between",gap:1,m:"0",children:[e("span",{children:u("hostsDialog.port")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Le,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:u("hostsDialog.port.info")})]})})]})]}),e(Fe,{size:"sm",borderRadius:"4px",placeholder:String(a.port||"8080"),type:"number",...i.register(t+"."+c+".port")})]}),r(L,{isInvalid:!!(m&&((U=m[c])==null?void 0:U.sni)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:u("hostsDialog.sni")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Le,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:u("hostsDialog.sni.info")}),e(d,{fontSize:"xs",mt:"2",children:e(Te,{i18nKey:"hostsDialog.host.wildcard",components:{badge:e(E,{})}})}),e(d,{fontSize:"xs",children:e(Te,{i18nKey:"hostsDialog.host.multiHost",components:{badge:e(E,{})}})})]})})]})]}),e(Fe,{size:"sm",borderRadius:"4px",placeholder:"SNI (e.g. example.com)",...i.register(t+"."+c+".sni")}),m&&((W=m[c])==null?void 0:W.sni)&&e(ke,{children:(R=(J=m[c])==null?void 0:J.sni)==null?void 0:R.message})]}),r(L,{isInvalid:!!(m&&((ee=m[c])==null?void 0:ee.host)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:u("hostsDialog.host")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Le,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:u("hostsDialog.host.info")}),e(d,{fontSize:"xs",mt:"2",children:e(Te,{i18nKey:"hostsDialog.host.wildcard",components:{badge:e(E,{})}})}),e(d,{fontSize:"xs",children:e(Te,{i18nKey:"hostsDialog.host.multiHost",components:{badge:e(E,{})}})})]})})]})]}),e(Fe,{size:"sm",borderRadius:"4px",placeholder:"Host (e.g. example.com)",...i.register(t+"."+c+".host")}),m&&((le=m[c])==null?void 0:le.host)&&e(ke,{children:(Ce=(K=m[c])==null?void 0:K.host)==null?void 0:Ce.message})]}),r(L,{isInvalid:!!(m&&((Ct=m[c])==null?void 0:Ct.path)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:u("hostsDialog.path")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Le,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:u("hostsDialog.path.info")})]})})]})]}),e(Fe,{size:"sm",borderRadius:"4px",placeholder:"path (e.g. /vless)",...i.register(t+"."+c+".path")}),m&&((qe=m[c])==null?void 0:qe.path)&&e(ke,{children:(Xe=(_t=m[c])==null?void 0:_t.path)==null?void 0:Xe.message})]}),r(L,{height:"66px",children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:u("hostsDialog.security")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Le,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:u("hostsDialog.security.info")})]})})]})]}),e(Wt,{size:"sm",...i.register(t+"."+c+".security"),children:Ms.map(Y=>e("option",{value:Y.value,children:Y.title},Y.value))})]}),r(L,{height:"66px",children:[e(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:e("span",{children:u("hostsDialog.alpn")})}),e(Wt,{size:"sm",...i.register(t+"."+c+".alpn"),children:Ns.map(Y=>e("option",{value:Y.value,children:Y.title},Y.value))})]}),r(L,{height:"66px",children:[e(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:e("span",{children:u("hostsDialog.fingerprint")})}),e(Wt,{size:"sm",...i.register(t+"."+c+".fingerprint"),children:Ps.map(Y=>e("option",{value:Y.value,children:Y.title},Y.value))})]}),r(L,{isInvalid:!!(m&&((Je=m[c])==null?void 0:Je.fragment_setting)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:u("hostsDialog.fragment")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Le,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:u("hostsDialog.fragment.info")}),e(d,{fontSize:"xs",pr:5,pt:2,pb:1,children:u("hostsDialog.fragment.info.examples")}),e(d,{fontSize:"xs",pr:5,children:"100-200,10-20,tlshello"}),e(d,{fontSize:"xs",pr:5,children:"100-200,10-20,1-3"}),e(d,{fontSize:"xs",pr:5,pt:"3",children:u("hostsDialog.fragment.info.attention")})]})})]})]}),e(Fe,{size:"sm",borderRadius:"4px",placeholder:"Fragment settings by pattern",...i.register(t+"."+c+".fragment_setting")}),m&&((Ke=m[c])==null?void 0:Ke.fragment_setting)&&e(ke,{children:(tt=(et=m[c])==null?void 0:et.fragment_setting)==null?void 0:tt.message})]}),e(L,{isInvalid:!!(m&&((k=m[c])==null?void 0:k.allowinsecure)),children:r(ut,{...i.register(t+"."+c+".allowinsecure"),name:t+"."+c+".allowinsecure",children:[e(B,{children:u("hostsDialog.allowinsecure")}),m&&((A=m[c])==null?void 0:A.allowinsecure)&&e(ke,{children:(se=(te=m[c])==null?void 0:te.allowinsecure)==null?void 0:se.message})]})}),r(L,{isInvalid:!!(m&&((fe=m[c])==null?void 0:fe.mux_enable)),children:[e(ut,{...i.register(t+"."+c+".mux_enable"),children:e(B,{children:u("hostsDialog.muxEnable")})}),m&&((_e=m[c])==null?void 0:_e.mux_enable)&&e(ke,{children:(rt=(G=m[c])==null?void 0:G.mux_enable)==null?void 0:rt.message})]}),r(L,{isInvalid:!!(m&&((nt=m[c])==null?void 0:nt.random_user_agent)),children:[e(ut,{...i.register(t+"."+c+".random_user_agent"),children:e(B,{children:u("hostsDialog.randomUserAgent")})}),m&&((ot=m[c])==null?void 0:ot.random_user_agent)&&e(ke,{children:(at=(st=m[c])==null?void 0:st.random_user_agent)==null?void 0:at.message})]})]},c)})]})})]},h.id)},h.id)}),e(P,{variant:"outline",w:"full",size:"sm",color:"",fontWeight:"normal",onClick:I,children:u("hostsDialog.addHost")})]})})]})},Zs=()=>{const{isEditingHosts:t,onEditingHosts:n,refetchUsers:o,inbounds:s}=z(),{isLoading:a,hosts:i,fetchHosts:l,isPostLoading:p,setHosts:g}=Os(),w=Se(),{t:x}=H(),[b,u]=f.exports.useState({});f.exports.useEffect(()=>{t&&l()},[t]);const m=Ze({resolver:bt(Gs)});f.exports.useEffect(()=>{i&&t&&m.reset(i)},[i]);const I=()=>{u({}),n(!1)},C=h=>{g(h).then(()=>{w({title:x("hostsDialog.savedSuccess"),status:"success",isClosable:!0,position:"top",duration:3e3}),o()}).catch(c=>{var F,j,D,M,Z;(((F=c==null?void 0:c.response)==null?void 0:F.status)===409||((j=c==null?void 0:c.response)==null?void 0:j.status)===400)&&w({title:(M=(D=c.response)==null?void 0:D._data)==null?void 0:M.detail,status:"error",isClosable:!0,position:"top",duration:3e3}),((Z=c==null?void 0:c.response)==null?void 0:Z.status)===422&&Object.keys(c.response._data.detail).forEach(Q=>{w({title:c.response._data.detail[Q]+" ("+Q+")",status:"error",isClosable:!0,position:"top",duration:3e3})})})},T=h=>{b[String(h)]?delete b[String(h)]:b[String(h)]={},u({...b})};return r(ce,{isOpen:t,onClose:I,children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"fit-content",maxW:"3xl",children:[e(ue,{pt:6,children:e(ge,{color:"primary",children:e(Vs,{color:"white"})})}),e(pe,{mt:3}),e(me,{w:"440px",pb:3,pt:3,children:e(Hr,{...m,children:r("form",{onSubmit:m.handleSubmit(C),children:[e(d,{mb:3,opacity:.8,fontSize:"sm",children:x("hostsDialog.title")}),a&&x("hostsDialog.loading"),!a&&i&&(Object.keys(i).length>0?e(xt,{w:"full",allowToggle:!0,allowMultiple:!0,index:Object.keys(b).map(h=>parseInt(h)),children:e(N,{w:"full",children:Object.keys(i).map((h,c)=>e(Ys,{toggleAccordion:()=>T(c),isOpen:b[String(c)],hostKey:h},h))})}):"No inbound found. Please check your Xray config file."),e(_,{justifyContent:"flex-end",py:2,children:e(P,{variant:"solid",mt:"2",type:"submit",colorScheme:"primary",size:"sm",px:5,isLoading:p,disabled:p,children:x("hostsDialog.apply")})})]})})})]})]})},tr=(t,n,o)=>{if(t.response&&t.response._data){if(typeof t.response._data.detail=="string")return n({title:t.response._data.detail,status:"error",isClosable:!0,position:"top",duration:3e3});if(typeof t.response._data.detail=="object"&&o){Object.keys(t.response._data.detail).forEach(s=>o.setError(s,{message:t.response._data.detail[s]}));return}}return n({title:"Something went wrong!",status:"error",isClosable:!0,position:"top",duration:3e3})},rr=(t,n)=>n({title:t,status:"success",isClosable:!0,position:"top",duration:3e3}),Qs=({deleteCallback:t})=>{const{deleteNode:n,deletingNode:o,setDeletingNode:s}=yt(),{t:a}=H(),i=Se(),l=Xt(),p=()=>{s(null)},{isLoading:g,mutate:w}=pt(n,{onSuccess:()=>{rr(a("deleteNode.deleteSuccess",{name:o&&o.name}),i),s(null),l.invalidateQueries(gt),t&&t()},onError:x=>{tr(x,i)}});return r(ce,{isCentered:!0,isOpen:!!o,onClose:p,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"red",children:e(St,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:a("deleteNode.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:a("deleteNode.prompt",{name:o.name})})})]}),r(Ne,{display:"flex",children:[e(P,{size:"sm",onClick:p,mr:3,w:"full",variant:"outline",children:a("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"red",onClick:()=>w(),leftIcon:g?e(He,{size:"xs"}):void 0,children:a("delete")})]})]})]})},wt={baseStyle:{strokeWidth:"2px",w:4,h:4}},xr=S(eo,wt),qs=S(to,wt),yr=S(ro,wt),Sr=S(jr,wt),Xs=S(jr,wt),Yt=[{title:"No",value:"no_reset"},{title:"Daily",value:"day"},{title:"Weekly",value:"week"},{title:"Monthly",value:"month"},{title:"Annually",value:"year"}],Oe={active:{statusColor:"green",bandWidthColor:"primary",icon:xr},connected:{statusColor:"green",bandWidthColor:"primary",icon:xr},disabled:{statusColor:"gray",bandWidthColor:"gray",icon:qs},expired:{statusColor:"orange",bandWidthColor:"orange",icon:Sr},on_hold:{statusColor:"purple",bandWidthColor:"purple",icon:Xs},connecting:{statusColor:"orange",bandWidthColor:"orange",icon:Sr},limited:{statusColor:"red",bandWidthColor:"red",icon:yr},error:{statusColor:"red",bandWidthColor:"red",icon:yr}},Mt=t=>{let n={status:"",time:""};if(t){$(t*1e3).utc().isAfter($().utc())?n.status="expires":n.status="expired";const o=[],s=$.duration($(t*1e3).utc().diff($()));s.years()!=0&&o.push(Math.abs(s.years())+" year"+(Math.abs(s.years())!=1?"s":"")),s.months()!=0&&o.push(Math.abs(s.months())+" month"+(Math.abs(s.months())!=1?"s":"")),s.days()!=0&&o.push(Math.abs(s.days())+" day"+(Math.abs(s.days())!=1?"s":"")),o.length===0&&(s.hours()!=0&&o.push(Math.abs(s.hours())+" hour"+(Math.abs(s.hours())!=1?"s":"")),s.minutes()!=0&&o.push(Math.abs(s.minutes())+" min"+(Math.abs(s.minutes())!=1?"s":""))),n.time=o.join(", ")}return n},Js=({expiryDate:t,status:n,compact:o=!1,showDetail:s=!0,extraText:a})=>{const{t:i}=H(),l=Mt(t),p=Oe[n].icon;return r(ie,{children:[r(E,{colorScheme:Oe[n].statusColor,rounded:"full",display:"inline-flex",px:3,py:1,columnGap:o?1:2,alignItems:"center",children:[e(p,{w:o?3:4}),s&&r(d,{textTransform:"capitalize",fontSize:o?".7rem":".875rem",lineHeight:o?"1rem":"1.25rem",fontWeight:"medium",letterSpacing:"tighter",children:[n&&i(`nodeModal.status.${n}`),a&&`: ${a}`]})]}),s&&t&&e(d,{display:"inline-block",fontSize:"xs",fontWeight:"medium",ml:"2",color:"gray.600",_dark:{color:"gray.400"},children:i(l.status,{time:l.time})})]})},lt=S(Ae,{baseStyle:{bg:"white",_dark:{bg:"gray.700"}}}),Ks=S(Wr,{baseStyle:{w:5,h:5}}),ea=S(no,{baseStyle:{w:5,h:5,strokeWidth:2}}),ta=({toggleAccordion:t,node:n})=>{const{updateNode:o,reconnectNode:s,setDeletingNode:a}=yt(),{t:i}=H(),l=Xt(),p=Se(),g=Ze({defaultValues:n,resolver:bt(rn)}),w=a.bind(null,n),{isLoading:x,mutate:b}=pt(o,{onSuccess:()=>{rr("Node updated successfully",p),l.invalidateQueries(gt)},onError:C=>{tr(C,p,g)}}),{isLoading:u,mutate:m}=pt(s.bind(null,n),{onSuccess:()=>{l.invalidateQueries(gt)}}),I=u?"connecting":n.status?n.status:"error";return r($e,{border:"1px solid",_dark:{borderColor:"gray.600"},_light:{borderColor:"gray.200"},borderRadius:"4px",p:1,w:"full",children:[r(Ve,{px:2,borderRadius:"3px",onClick:t,children:[r(_,{w:"full",justifyContent:"space-between",pr:2,children:[e(d,{as:"span",fontWeight:"medium",fontSize:"sm",flex:"1",textAlign:"left",color:"gray.700",_dark:{color:"gray.300"},children:n.name}),r(_,{children:[n.xray_version&&e(E,{colorScheme:"blue",rounded:"full",display:"inline-flex",px:3,py:1,children:r(d,{textTransform:"capitalize",fontSize:"0.7rem",fontWeight:"medium",letterSpacing:"tighter",children:["Xray ",n.xray_version]})}),n.status&&e(Js,{status:I,compact:!0})]})]}),e($t,{})]}),r(Ge,{px:2,pb:2,children:[e(N,{pb:3,alignItems:"flex-start",children:I==="error"&&e(mt,{status:"error",size:"xs",children:r(v,{children:[r(_,{w:"full",children:[e(zt,{w:4}),e(d,{marginInlineEnd:0,children:n.message})]}),e(_,{justifyContent:"flex-end",w:"full",children:e(P,{size:"sm","aria-label":"reconnect node",leftIcon:e(er,{}),onClick:()=>m(),disabled:u,children:i(u?"nodes.reconnecting":"nodes.reconnect")})})]})})}),e(cn,{form:g,mutate:b,isLoading:x,submitBtnText:i("nodes.editNode"),btnLeftAdornment:e(re,{label:i("delete"),placement:"top",children:e(V,{colorScheme:"red",variant:"ghost",size:"sm","aria-label":"delete node",onClick:w,children:e(St,{})})})})]})]})},ra=({toggleAccordion:t,resetAccordions:n})=>{const o=Se(),{t:s}=H(),a=Xt(),{addNode:i}=yt(),l=Ze({resolver:bt(rn),defaultValues:{...os(),add_as_new_host:!1}}),{isLoading:p,mutate:g}=pt(i,{onSuccess:()=>{rr(s("nodes.addNodeSuccess",{name:l.getValues("name")}),o),a.invalidateQueries(gt),l.reset(),n()},onError:w=>{tr(w,o,l)}});return r($e,{border:"1px solid",_dark:{borderColor:"gray.600"},_light:{borderColor:"gray.200"},borderRadius:"4px",p:1,w:"full",children:[e(Ve,{px:2,borderRadius:"3px",onClick:t,children:r(d,{as:"span",fontWeight:"medium",fontSize:"sm",flex:"1",textAlign:"left",color:"gray.700",_dark:{color:"gray.300"},display:"flex",gap:1,children:[e(ea,{display:"inline-block"})," ",e("span",{children:s("nodes.addNewMarzbanNode")})]})}),e(Ge,{px:2,py:4,children:e(cn,{form:l,mutate:g,isLoading:p,submitBtnText:s("nodes.addNode"),btnProps:{variant:"solid"},addAsHost:!0})})]})},cn=({form:t,mutate:n,isLoading:o,submitBtnText:s,btnProps:a={},btnLeftAdornment:i,addAsHost:l=!1})=>{var m,I,C,T,h,c,F,j,D,M,Z,Q,q,ne,oe;const{t:p}=H(),[g,w]=f.exports.useState(!1),{data:x,isLoading:b}=Tt({queryKey:"node-settings",queryFn:()=>O("/node/settings")});function u(U){if(document.body.createTextRange){const W=document.body.createTextRange();W.moveToElementText(U),W.select()}else if(window.getSelection){const W=window.getSelection(),J=document.createRange();J.selectNodeContents(U),W.removeAllRanges(),W.addRange(J)}else console.warn("Could not select text in node: Unsupported browser.")}return e("form",{onSubmit:t.handleSubmit(U=>n(U)),children:r(N,{children:[x&&x.certificate&&e(mt,{status:"info",alignItems:"start",children:r(Br,{display:"flex",flexDirection:"column",overflow:"hidden",children:[e("span",{children:p("nodes.connection-hint")}),r(_,{justify:"end",py:2,children:[e(P,{as:"a",colorScheme:"primary",size:"xs",download:"ssl_client_cert.pem",href:URL.createObjectURL(new Blob([x.certificate],{type:"text/plain"})),children:p("nodes.download-certificate")}),e(re,{placement:"top",label:p("nodes.show-certificate"),children:e(V,{"aria-label":p("nodes.show-certificate"),onClick:w.bind(null,!g),colorScheme:"whiteAlpha",color:"primary",size:"xs",children:g?e(so,{width:"15px"}):e(oo,{width:"15px"})})})]}),e($r,{in:g,animateOpacity:!0,children:e(d,{bg:"rgba(255,255,255,.5)",_dark:{bg:"rgba(255,255,255,.2)"},rounded:"md",p:"2",lineHeight:"1.2",fontSize:"10px",fontFamily:"Courier",whiteSpace:"pre",overflow:"auto",onClick:U=>{u(U.target)},children:x.certificate})})]})}),r(_,{w:"full",children:[e(L,{children:e(lt,{label:p("nodes.nodeName"),size:"sm",placeholder:"Marzban-S2",...t.register("name"),error:(C=(I=(m=t.formState)==null?void 0:m.errors)==null?void 0:I.name)==null?void 0:C.message})}),e(_,{px:1,children:e(xe,{name:"status",control:t.control,render:({field:U})=>e(re,{placement:"top",label:`${p("usersTable.status")}: `+(U.value!=="disabled"?p("active"):p("disabled")),textTransform:"capitalize",children:e(v,{mt:"6",children:e(Dt,{colorScheme:"primary",isChecked:U.value!=="disabled",onChange:W=>{W.target.checked?U.onChange("connecting"):U.onChange("disabled")}})})},U.value)})})]}),e(_,{alignItems:"flex-start",w:"100%",children:e(v,{w:"100%",children:e(lt,{label:p("nodes.nodeAddress"),size:"sm",placeholder:"51.20.12.13",...t.register("address"),error:(c=(h=(T=t.formState)==null?void 0:T.errors)==null?void 0:h.address)==null?void 0:c.message})})}),r(_,{alignItems:"flex-start",w:"100%",children:[e(v,{children:e(lt,{label:p("nodes.nodePort"),size:"sm",placeholder:"62050",...t.register("port"),error:(D=(j=(F=t.formState)==null?void 0:F.errors)==null?void 0:j.port)==null?void 0:D.message})}),e(v,{children:e(lt,{label:p("nodes.nodeAPIPort"),size:"sm",placeholder:"62051",...t.register("api_port"),error:(Q=(Z=(M=t.formState)==null?void 0:M.errors)==null?void 0:Z.api_port)==null?void 0:Q.message})}),e(v,{children:e(lt,{label:p("nodes.usageCoefficient"),size:"sm",placeholder:"1",...t.register("usage_coefficient"),error:(oe=(ne=(q=t.formState)==null?void 0:q.errors)==null?void 0:ne.usage_coefficient)==null?void 0:oe.message})})]}),l&&e(L,{py:1,children:e(ut,{...t.register("add_as_new_host"),children:e(B,{m:0,children:p("nodes.addHostForEveryInbound")})})}),r(_,{w:"full",children:[i,e(P,{flexGrow:1,type:"submit",colorScheme:"primary",size:"sm",px:5,w:"full",isLoading:o,...a,children:s})]})]})})},na=()=>{const{isEditingNodes:t,onEditingNodes:n}=z(),{t:o}=H(),[s,a]=f.exports.useState({}),{data:i,isLoading:l}=nn(),p=()=>{a({}),n(!1)},g=w=>{s[String(w)]?delete s[String(w)]:s[String(w)]={},a({...s})};return r(ie,{children:[r(ce,{isOpen:t,onClose:p,children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"fit-content",maxW:"3xl",children:[e(ue,{pt:6,children:e(ge,{color:"primary",children:e(Ks,{color:"white"})})}),e(pe,{mt:3}),r(me,{w:"440px",pb:6,pt:3,children:[e(d,{mb:3,opacity:.8,fontSize:"sm",children:o("nodes.title")}),l&&"loading...",e(xt,{w:"full",allowToggle:!0,index:Object.keys(s).map(w=>parseInt(w)),children:r(N,{w:"full",children:[!l&&i&&i.map((w,x)=>e(ta,{toggleAccordion:()=>g(x),node:w},w.name)),e(ra,{toggleAccordion:()=>g((i||[]).length),resetAccordions:()=>a({})})]})})]})]})]}),e(Qs,{deleteCallback:()=>a({})})]})};function oa(t){const n=360/t,o=90,s=47,a=[];for(let i=0;i(u<0&&(u+=1),u>1&&(u-=1),u<.16666666666666666?x+(b-x)*6*u:u<.5?b:u<.6666666666666666?x+(b-x)*(.6666666666666666-u)*6:x),g=o<.5?o*(1+n):o+n-o*n,w=2*o-g;s=Math.round(p(w,g,t+1/3)*255),a=Math.round(p(w,g,t)*255),i=Math.round(p(w,g,t-1/3)*255)}const l=p=>{const g=p.toString(16);return g.length===1?"0"+g:g};return`#${l(s)}${l(a)}${l(i)}`}const wr=({border:t,...n})=>{const{getInputProps:o,getRadioProps:s}=po(n),a=We({base:"xs",md:"sm"});return r(v,{as:"label",children:[e("input",{...o()}),e(v,{...s(),minW:"48px",w:"full",h:"full",textAlign:"center",cursor:"pointer",fontSize:a,borderWidth:t?"1px":"0px",borderRadius:"md",_checked:{bg:"primary.500",color:"white",borderColor:"primary.500"},_focus:{boxShadow:"outline"},px:3,py:1,children:n.children})]})},dn=({onChange:t,defaultValue:n,...o})=>{const{t:s,i18n:a}=H();Ye();const i=We({base:["7h","1d","3d","1w"],md:["7h","1d","3d","1w","1m","3m"]}),l={h:"hour",d:"day",w:"week",m:"month",y:"year"},p=We({base:[{title:"hours",options:["1h","3h","6h","12h"]},{title:"days",options:["1d","2d","3d","4d"]},{title:"weeks",options:["1w","2w","3w","4w"]},{title:"months",options:["1m","2m","3m","6m"]}],md:[{title:"hours",options:["1h","2h","3h","6h","8h","12h"]},{title:"days",options:["1d","2d","3d","4d","5d","6d"]},{title:"weeks",options:["1w","2w","3w","4w"]},{title:"months",options:["1m","2m","3m","6m","8m"]}]}),{getRootProps:g,getRadioProps:w,setValue:x}=ao({name:"filter",defaultValue:n,onChange:U=>{if(U==="custom")return;m(),i.indexOf(U)>=0?(T(s("userDialog.custom")),c(!1)):(T(s("userDialog.custom")+` (${U})`),c(!0));const W=Number(U.substring(0,U.length-1)),J=l[U[U.length-1]];t(U,{start:$().utc().subtract(W,J).format("YYYY-MM-DDTHH:00:00")})}}),{isOpen:b,onOpen:u,onClose:m}=io(),I=f.exports.useRef(null);lo({ref:I,handler:m});const[C,T]=f.exports.useState(s("userDialog.custom")),[h,c]=f.exports.useState(!1),[F,j]=f.exports.useState(0),D=We({base:1,md:2}),M=We({base:"xs",md:"sm"}),[Z,Q]=f.exports.useState(null),[q,ne]=f.exports.useState(null),oe=U=>{const[W,J]=U;q&&!J?(Q(null),ne(null)):(Q(W),ne(J),W&&J&&(m(),t("custom",{start:$(W).format("YYYY-MM-DDT00:00:00"),end:$(J).format("YYYY-MM-DDT23:59:59")})))};return r(N,{...o,children:[F==0&&r(Jt,{...g(),gap:0,display:"flex",borderWidth:"1px",borderRadius:"md",minW:{base:"320px",md:"400px"},children:[i.map(U=>e(wr,{...w({value:U}),children:U},U)),e(v,{onClick:()=>{Q(null),ne(null),u()},cursor:"pointer",borderRadius:"md",w:"full",fontSize:M,px:3,py:1,bg:h?"primary.500":"unset",color:h?"white":"unset",borderColor:h?"primary.500":"unset",children:r(_,{children:[e(d,{children:C}),e(Nt,{as:ir,boxSize:"18px"})]})})]}),F==1&&r(_,{onClick:u,cursor:"pointer",fontSize:M,borderRadius:"md",px:3,py:1,minW:{base:"320px",md:"400px"},borderWidth:"1px",children:[e(d,{w:"full",color:Z?"unset":"gray.500",children:Z?$(Z).format("YYYY-MM-DD (00:00)"):s("userDialog.startDate")}),e(Nt,{as:Vr,boxSize:"18px"}),e(d,{w:"full",color:q?"unset":"gray.500",children:q?$(q).format("YYYY-MM-DD (23:59)"):s("userDialog.endDate")}),e(Nt,{as:ir,boxSize:"18px"})]}),e(N,{ref:I,marginTop:"40px !important",borderRadius:"md",borderWidth:"1px",position:"absolute",zIndex:"1",backgroundColor:"white",_dark:{backgroundColor:"gray.700"},display:b?"unset":"none",children:r(co,{onChange:U=>j(U),children:[r(ho,{children:[e(lr,{fontSize:M,children:s("userDialog.relative")}),e(lr,{fontSize:M,children:s("userDialog.absolute")})]}),r(uo,{children:[e(cr,{children:p.map(U=>e(N,{alignItems:"start",pl:2,pr:2,children:r(_,{justifyItems:"flex-start",mb:4,children:[e(d,{fontSize:M,minW:"60px",children:s("userDialog."+U.title)}),U.options.map(W=>e(wr,{border:!0,...w({value:W}),children:W},W+".custom"))]})},U.title))}),e(cr,{className:"datepicker-panel",children:e(N,{children:e(Gr,{locale:a.language.toLocaleLowerCase(),selected:Z,onChange:oe,startDate:Z,endDate:q,selectsRange:!0,maxDate:new Date,monthsShown:D,peekNextMonth:!1,inline:!0})})})]})]})})]})};function Et(t,n,o=[],s=[]){const a=ae(o.reduce((i,l)=>i+=l,0));return{series:o,options:{labels:s,chart:{width:"100%",height:"100%",type:"donut",animations:{enabled:!1}},title:{text:`${n}${a}`,align:"center",style:{fontWeight:"var(--chakra-fontWeights-medium)",color:t==="dark"?"var(--chakra-colors-gray-300)":void 0}},legend:{position:"bottom",labels:{colors:t==="dark"?"#CBD5E0":void 0,useSeriesColors:!1}},stroke:{width:1,colors:void 0},dataLabels:{formatter:(i,{seriesIndex:l,w:p})=>ae(p.config.series[l],1)},tooltip:{custom:({series:i,seriesIndex:l,dataPointIndex:p,w:g})=>{const w=ae(i[l],1),x=Math.max(i.reduce((u,m)=>u+=m),1),b=Math.round(i[l]/x*1e3)/10+"%";return` -
- ${g.config.labels[l]}: ${b}, ${w} -
- `}},colors:oa(o.length)}}}const aa=S(Lt,{baseStyle:{w:5,h:5}}),ia=()=>{const{isShowingNodesUsage:t,onShowingNodesUsage:n}=z(),{fetchNodesUsage:o}=yt(),{t:s}=H(),[a,i]=f.exports.useState(!1),{colorMode:l}=Ye(),p=s("userDialog.total"),[g,w]=f.exports.useState(Et(l,p)),[x,b]=f.exports.useState("1m"),u=C=>{o(C).then(T=>{const h=[],c=[];for(const F in T.usages){const j=T.usages[F];c.push(j.uplink+j.downlink),h.push(j.node_name)}w(Et(l,p,c,h))})};f.exports.useEffect(()=>{t&&u({start:$().utc().subtract(30,"day").format("YYYY-MM-DDTHH:00:00")})},[t]);const m=()=>{n(!1),b("1m")},I=a;return r(ce,{isOpen:t,onClose:m,size:"2xl",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"full",children:[e(ue,{pt:6,children:r(_,{gap:2,children:[e(ge,{color:"primary",children:e(aa,{color:"white"})}),e(d,{fontWeight:"semibold",fontSize:"lg",children:s("header.nodesUsage")})]})}),e(pe,{mt:3,disabled:I}),e(me,{children:r(N,{gap:4,children:[e(dn,{defaultValue:x,onChange:(C,T)=>{b(C),u(T)}}),e(v,{justifySelf:"center",w:"full",maxW:"300px",mt:"4",children:e(f.exports.Suspense,{fallback:e(Tr,{isIndeterminate:!0}),children:e(Yr,{options:g.options,series:g.series,type:"donut",height:"500px"})})})]})}),e(Ne,{mt:"3"})]})]})},Cr=S(mo),la=S(Vr,{baseStyle:{w:6,h:6,color:"gray.600",_dark:{color:"white"}}}),ca=S(go,{baseStyle:{w:6,h:6,color:"gray.600",_dark:{color:"white"}}}),da=S(Zr,{baseStyle:{w:5,h:5}}),ha=()=>{const{QRcodeLinks:t,setQRCode:n,setSubLink:o,subscribeUrl:s}=z(),a=t!==null,[i,l]=f.exports.useState(0),{t:p}=H(),g=()=>{n(null),o(null)},w=String(s).startsWith("/")?window.location.origin+s:String(s);return r(ce,{isOpen:a,onClose:g,children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"fit-content",maxW:"3xl",children:[e(ue,{pt:6,children:e(ge,{color:"primary",children:e(da,{color:"white"})})}),e(pe,{mt:3}),t&&r(me,{gap:{base:"20px",lg:"50px"},pr:{lg:"60px"},px:{base:"50px"},display:"flex",justifyContent:"center",flexDirection:{base:"column",lg:"row"},children:[s&&r(N,{children:[e(Cr,{mx:"auto",size:300,p:"2",level:"L",includeMargin:!1,value:w,bg:"white"}),e(d,{display:"block",textAlign:"center",pb:3,mt:1,children:p("qrcodeDialog.sublink")})]}),r(v,{w:"300px",children:[e(fo,{centerPadding:"0px",centerMode:!0,slidesToShow:1,slidesToScroll:1,dots:!1,afterChange:l,onInit:()=>l(0),nextArrow:e(V,{size:"sm",position:"absolute",display:"flex !important",_before:{content:'""'},"aria-label":"next",mr:"-4",children:e(la,{})}),prevArrow:e(V,{size:"sm",position:"absolute",display:"flex !important",_before:{content:'""'},"aria-label":"prev",ml:"-4",children:e(ca,{})}),children:t.map((x,b)=>e(_,{children:e(Cr,{mx:"auto",size:300,p:"2",level:"L",includeMargin:!1,value:x,bg:"white"})},b))}),r(d,{display:"block",textAlign:"center",pb:3,mt:1,children:[i+1," / ",t.length]})]})]})]})]})},ua=S(Or,{baseStyle:{w:5,h:5}}),pa=()=>{const[t,n]=f.exports.useState(!1),{isResetingAllUsage:o,onResetAllUsage:s,resetAllUsage:a}=z(),{t:i}=H(),l=Se(),p=()=>{s(!1)},g=()=>{n(!0),a().then(()=>{l({title:i("resetAllUsage.success"),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(()=>{l({title:i("resetAllUsage.error"),status:"error",isClosable:!0,position:"top",duration:3e3})}).finally(()=>{n(!1)})};return r(ce,{isCentered:!0,isOpen:o,onClose:p,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"red",children:e(ua,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:i("resetAllUsage.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:i("resetAllUsage.prompt")})]}),r(Ne,{display:"flex",children:[e(P,{size:"sm",onClick:p,mr:3,w:"full",variant:"outline",children:i("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"red",onClick:g,leftIcon:t?e(He,{size:"xs"}):void 0,children:i("reset")})]})]})]})},ma=S(At,{baseStyle:{w:5,h:5}}),ga=()=>{const[t,n]=f.exports.useState(!1),{resetUsageUser:o,resetDataUsage:s}=z(),{t:a}=H(),i=Se(),l=()=>{z.setState({resetUsageUser:null})},p=()=>{o&&(n(!0),s(o).then(()=>{i({title:a("resetUserUsage.success",{username:o.username}),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(()=>{i({title:a("resetUserUsage.error"),status:"error",isClosable:!0,position:"top",duration:3e3})}).finally(()=>{n(!1)}))};return r(ce,{isCentered:!0,isOpen:!!o,onClose:l,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"blue",children:e(ma,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:a("resetUserUsage.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:a("resetUserUsage.prompt",{username:o.username})})})]}),r(Ne,{display:"flex",children:[e(P,{size:"sm",onClick:l,mr:3,w:"full",variant:"outline",children:a("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"blue",onClick:p,leftIcon:t?e(He,{size:"xs"}):void 0,children:a("reset")})]})]})]})},fa=S(At,{baseStyle:{w:5,h:5}}),ba=()=>{const[t,n]=f.exports.useState(!1),{revokeSubscriptionUser:o,revokeSubscription:s}=z(),{t:a}=H(),i=Se(),l=()=>{z.setState({revokeSubscriptionUser:null})},p=()=>{o&&(n(!0),s(o).then(()=>{i({title:a("revokeUserSub.success",{username:o.username}),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(()=>{i({title:a("revokeUserSub.error"),status:"error",isClosable:!0,position:"top",duration:3e3})}).finally(()=>{n(!1)}))};return r(ce,{isCentered:!0,isOpen:!!o,onClose:l,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"blue",children:e(fa,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:a("revokeUserSub.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:a("revokeUserSub.prompt",{username:o.username})})})]}),r(Ne,{display:"flex",children:[e(P,{size:"sm",onClick:l,mr:3,w:"full",variant:"outline",children:a("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"blue",onClick:p,leftIcon:t?e(He,{size:"xs"}):void 0,children:a("revoke")})]})]})]})},xa=S(bo,{baseStyle:{strokeWidth:"2px",w:5,h:5}}),ya=({inbound:t,...n})=>{const{getCheckboxProps:o,getInputProps:s,getLabelProps:a,htmlProps:i}=qr(n),l=s();return r(v,{as:"label",children:[e("input",{...l}),r(v,{w:"fll",position:"relative",...i,cursor:"pointer",borderRadius:"sm",border:"1px solid",borderColor:"gray.200",_dark:{borderColor:"gray.600"},display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden",_checked:{bg:"gray.50",outline:"2px",boxShadow:"outline",outlineColor:"primary.500",borderColor:"transparent",fontWeight:"medium",_dark:{bg:"gray.750",borderColor:"transparent"},"& p":{opacity:1}},__css:{"& p":{opacity:.8}},textTransform:"capitalize",px:3,py:2,fontWeight:"medium",...o(),children:[e(ut,{size:"sm",w:"full",maxW:"full",color:"gray.700",_dark:{color:"gray.300"},textTransform:"uppercase",colorScheme:"primary",className:"inbound-item",isChecked:l.checked,pointerEvents:"none",flexGrow:1,children:e(_,{justify:"space-between",w:"full",maxW:"calc(100% - 20px)",spacing:0,gap:2,overflow:"hidden",children:r(d,{isTruncated:!0,...a(),fontSize:"xs",children:[t.tag," ",r(d,{as:"span",children:["(",t.network,")"]})]})})}),t.tls&&t.tls!="none"&&e(E,{fontSize:"xs",opacity:".8",size:"xs",children:t.tls})]})]})},Sa=({disabled:t,title:n,description:o,toggleAccordion:s,isSelected:a,...i})=>{const l=qt(),{inbounds:p}=z(),{getCheckboxProps:g,getInputProps:w,getLabelProps:x,htmlProps:b}=qr(i),u=w(),[m]=Xr({name:[`inbounds.${n}`],control:l.control}),{getCheckboxProps:I}=Qr({value:m,onChange:c=>{if(l.setValue(`inbounds.${n}`,c),c.length===0){const F=l.getValues("selected_proxies");l.setValue("selected_proxies",F.filter(j=>j!==n)),s()}}}),C=m&&a&&(z.getState().inbounds.get(n)||[]).length!==m.length,T=(z.getState().inbounds.get(n)||[]).length>0,h=!a&&!T;return r($e,{isDisabled:!T,borderRadius:"md",borderStyle:"solid",border:"1px",borderColor:"gray.200",bg:h?"gray.100":"transparent",_dark:{borderColor:"gray.600",bg:h?"#364154":"transparent"},_checked:{bg:"gray.50",outline:"2px",boxShadow:"outline",outlineColor:"primary.500",borderColor:"transparent"},...g(),children:[r(v,{as:h?"span":"label",position:"relative",children:[C&&e(v,{position:"absolute",w:"2",h:"2",bg:"yellow.500",top:"-1",right:"-1",rounded:"full",zIndex:999}),e("input",{...u}),r(v,{w:"fll",position:"relative",...b,borderRadius:"md",cursor:h?"not-allowed":"pointer",_checked:{fontWeight:"medium",_dark:{bg:"gray.750",borderColor:"transparent"},"& > svg":{opacity:1,"&.checked":{display:"block"},"&.unchecked":{display:"none"}},"& p":{opacity:1}},__css:{"& > svg":{opacity:.3,"&.checked":{display:"none"},"&.unchecked":{display:"block"}},"& p":{opacity:.8}},textTransform:"capitalize",px:3,py:2,fontWeight:"medium",...g(),children:[e(Ve,{display:u.checked&&T?"block":"none",as:"span",className:"checked",color:"primary.200",position:"absolute",right:"3",top:"3",w:"auto",p:0,onClick:s,children:e(V,{size:"sm","aria-label":"inbound settings",children:e(xa,{})})}),e(d,{fontSize:"sm",color:h?"gray.400":"gray.700",_dark:{color:h?"gray.500":"gray.300"},...x(),children:n}),e(d,{fontWeight:"medium",color:h?"gray.400":"gray.600",_dark:{color:h?"gray.500":"gray.400"},fontSize:"xs",children:o})]})]}),e(Ge,{px:2,pb:3,roundedBottom:"5px",pt:3,_dark:{bg:u.checked&&"gray.750"},children:r(N,{w:"full",rowGap:2,borderStyle:"solid",borderWidth:"1px",borderRadius:"md",pl:3,pr:3,pt:1.5,_dark:{bg:"gray.700"},children:[r(N,{alignItems:"flex-start",w:"full",children:[e(d,{fontSize:"sm",children:X("inbound")}),e(Jt,{gap:2,alignItems:"flex-start",w:"full",columns:1,spacing:1,children:(p.get(n)||[]).map(c=>e(ya,{...I({value:c.tag}),inbound:c},c.tag))})]}),n==="vmess"&&a&&e(N,{alignItems:"flex-start",w:"full",children:r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:"ID"}),e(Be,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:X("userDialog.generatedByDefault"),...l.register("proxies.vmess.id")})]})}),n==="vless"&&a&&r(N,{alignItems:"flex-start",w:"full",children:[r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:"ID"}),e(Be,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:X("userDialog.generatedByDefault"),...l.register("proxies.vless.id")})]}),r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:"Flow"}),e(Me,{fontSize:"xs",size:"sm",borderRadius:"6px",...l.register("proxies.vless.flow"),children:Fs.map(c=>e("option",{value:c.value,children:c.title},c.title))})]})]}),n==="trojan"&&a&&e(N,{alignItems:"flex-start",w:"full",children:r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:X("password")}),e(Be,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:X("userDialog.generatedByDefault"),...l.register("proxies.trojan.password")})]})}),n==="shadowsocks"&&a&&r(N,{alignItems:"flex-start",w:"full",children:[r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:X("password")}),e(Be,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:X("userDialog.generatedByDefault"),...l.register("proxies.shadowsocks.password")})]}),r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:X("userDialog.method")}),e(Me,{fontSize:"xs",size:"sm",borderRadius:"6px",...l.register("proxies.shadowsocks.method"),children:Ws.map(c=>e("option",{value:c,children:c},c))})]})]})]})})]})},wa=f.exports.forwardRef(({name:t,list:n,onChange:o,disabled:s,...a},i)=>{const l=qt(),[p,g]=f.exports.useState([]),w=b=>{p.includes(b)?p.splice(p.indexOf(b),1):p.push(b),g([...p])},{getCheckboxProps:x}=Qr({value:a.value,onChange:b=>{var m;const u=b.filter(I=>!a.value.includes(I));u[0]&&l.setValue(`inbounds.${u[0]}`,(m=z.getState().inbounds.get(u[0]))==null?void 0:m.map(I=>I.tag)),g(p.filter(I=>b.find(C=>C===n[I].title))),o({target:{value:b,name:t}})}});return e(xt,{allowToggle:!0,index:p,children:e(Jt,{ref:i,gap:2,alignItems:"flex-start",columns:1,spacing:1,children:n.map((b,u)=>e(Sa,{toggleAccordion:w.bind(null,u),disabled:s,title:b.title,description:b.description,isSelected:!!a.value.find(m=>m===b.title),...x({value:b.title})},b.title))})})}),Ca=S(xo,{baseStyle:{w:5,h:5}}),_a=S(Jr,{baseStyle:{w:5,h:5}}),ka=S(Lt,{baseStyle:{w:5,h:5}}),Ia=t=>({...t,data_limit:t.data_limit?Number((t.data_limit/1073741824).toFixed(5)):t.data_limit,on_hold_expire_duration:t.on_hold_expire_duration?Number(t.on_hold_expire_duration/(24*60*60)):t.on_hold_expire_duration,selected_proxies:Object.keys(t.proxies)}),Ot=()=>{const t=Object.fromEntries(z.getState().inbounds),n={};for(const o in t)n[o]=t[o].map(s=>s.tag);return{selected_proxies:Object.keys(t),data_limit:null,expire:null,username:"",data_limit_reset_strategy:"no_reset",status:"active",on_hold_expire_duration:null,note:"",inbounds:n,proxies:{vless:{id:"",flow:""},vmess:{id:""},trojan:{password:""},shadowsocks:{password:"",method:"chacha20-ietf-poly1305"}}}},va=(t,n)=>{const o=t.reduce((s,a)=>({...s,[a]:{}}),{});return n&&t.forEach(s=>{n[s]&&(o[s]=n[s])}),o},ct={username:y.string().min(1,{message:"Required"}),selected_proxies:y.array(y.string()).refine(t=>t.length>0,{message:"userDialog.selectOneProtocol"}),note:y.string().nullable(),proxies:y.record(y.string(),y.record(y.string(),y.any())).transform(t=>{const n=(o,s)=>{o&&o[s]===""&&delete o[s]};return n(t.vmess,"id"),n(t.vless,"id"),n(t.trojan,"password"),n(t.shadowsocks,"password"),n(t.shadowsocks,"method"),t}),data_limit:y.string().min(0).or(y.number()).nullable().transform(t=>t?Number((parseFloat(String(t))*1073741824).toFixed(5)):0),expire:y.number().nullable(),data_limit_reset_strategy:y.string(),inbounds:y.record(y.string(),y.array(y.string())).transform(t=>(Object.keys(t).forEach(n=>{var o;Array.isArray(t[n])&&!((o=t[n])!=null&&o.length)&&delete t[n]}),t))},Da=y.discriminatedUnion("status",[y.object({status:y.literal("active"),...ct}),y.object({status:y.literal("disabled"),...ct}),y.object({status:y.literal("limited"),...ct}),y.object({status:y.literal("expired"),...ct}),y.object({status:y.literal("on_hold"),on_hold_expire_duration:y.coerce.number().min(.1,"Required").transform(t=>t*(24*60*60)),...ct})]),za=()=>{var Xe,Je,Ke,et,tt;const{editingUser:t,isCreatingNewUser:n,onCreateUser:o,editUser:s,fetchUserUsage:a,onEditingUser:i,createUser:l,onDeletingUser:p}=z(),g=!!t,w=n||g,[x,b]=f.exports.useState(!1),[u,m]=f.exports.useState(""),I=Se(),{t:C,i18n:T}=H(),{colorMode:h}=Ye(),[c,F]=f.exports.useState(!1),j=()=>{F(k=>!k)},D=Ze({defaultValues:Ot(),resolver:bt(Da)});f.exports.useEffect(()=>z.subscribe(k=>k.inbounds,()=>{D.reset(Ot())}),[]);const[M,Z]=Xr({control:D.control,name:["data_limit","status"]}),Q=C("userDialog.total"),[q,ne]=f.exports.useState(Et(h,Q)),[oe,U]=f.exports.useState("1m"),W=k=>{a(t,k).then(A=>{const te=[],se=[];for(const fe in A.usages)se.push(A.usages[fe].used_traffic),te.push(A.usages[fe].node_name);ne(Et(h,Q,se,te))})};f.exports.useEffect(()=>{t&&(D.reset(Ia(t)),W({start:$().utc().subtract(30,"day").format("YYYY-MM-DDTHH:00:00")}))},[t]);const J=k=>{b(!0);const A={edited:s,created:l},te=g?"edited":"created";m(null);const{selected_proxies:se,...fe}=k;let _e={...fe,data_limit:k.data_limit,proxies:va(se,k.proxies),data_limit_reset_strategy:k.data_limit&&k.data_limit>0?k.data_limit_reset_strategy:"no_reset",status:k.status==="active"||k.status==="disabled"||k.status==="on_hold"?k.status:"active"};A[te](_e).then(()=>{I({title:C(g?"userDialog.userEdited":"userDialog.userCreated",{username:k.username}),status:"success",isClosable:!0,position:"top",duration:3e3}),R()}).catch(G=>{var rt,nt,ot,st,at;(((rt=G==null?void 0:G.response)==null?void 0:rt.status)===409||((nt=G==null?void 0:G.response)==null?void 0:nt.status)===400)&&m((st=(ot=G==null?void 0:G.response)==null?void 0:ot._data)==null?void 0:st.detail),((at=G==null?void 0:G.response)==null?void 0:at.status)===422&&Object.keys(G.response._data.detail).forEach(Y=>{m(G==null?void 0:G.response._data.detail[Y]),D.setError(Y,{type:"custom",message:G.response._data.detail[Y]})})}).finally(()=>{b(!1)})},R=()=>{D.reset(Ot()),o(!1),i(null),m(null),F(!1),U("1m")},ee=()=>{z.setState({resetUsageUser:t})},le=()=>{z.setState({revokeSubscriptionUser:t})},K=x,Ce=Z==="on_hold",[Ct,qe]=f.exports.useState(!1),_t=()=>{qe(!0);let k="";const A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",te=A.length;let se=0;for(;se<6;)k+=A.charAt(Math.floor(Math.random()*te)),se+=1;return k};return r(ce,{isOpen:w,onClose:R,size:"2xl",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),e(Hr,{...D,children:e(he,{mx:"3",children:r("form",{onSubmit:D.handleSubmit(J),children:[e(ue,{pt:6,children:r(_,{gap:2,children:[e(ge,{color:"primary",children:g?e(_a,{color:"white"}):e(Ca,{color:"white"})}),e(d,{fontWeight:"semibold",fontSize:"lg",children:C(g?"userDialog.editUserTitle":"createNewUser")})]})}),e(pe,{mt:3,disabled:K}),r(me,{children:[r(Mr,{templateColumns:{base:"repeat(1, 1fr)",md:"repeat(2, 1fr)"},gap:3,children:[e(ht,{children:r(N,{justifyContent:"space-between",children:[r(Pt,{flexDirection:"column",gridAutoRows:"min-content",w:"full",children:[r(Pt,{flexDirection:"row",w:"full",gap:2,children:[r(L,{mb:"10px",children:[e(B,{children:r(Pt,{gap:2,alignItems:"center",children:[C("username"),!g&&e(er,{cursor:"pointer",className:ft({"animate-spin":Ct}),onClick:()=>{const k=_t();D.setValue("username",k),setTimeout(()=>{qe(!1)},350)}})]})}),r(_,{children:[e(Ae,{size:"sm",type:"text",borderRadius:"6px",error:(Xe=D.formState.errors.username)==null?void 0:Xe.message,disabled:K||g,...D.register("username")}),g&&e(_,{px:1,children:e(xe,{name:"status",control:D.control,render:({field:k})=>e(re,{placement:"top",label:"status: "+C(`status.${k.value}`),textTransform:"capitalize",children:e(v,{children:e(Dt,{colorScheme:"primary",isChecked:k.value==="active",onChange:A=>{A.target.checked?k.onChange("active"):k.onChange("disabled")}})})})})})]})]}),!g&&r(L,{flex:"1",children:[e(B,{whiteSpace:"nowrap",children:C("userDialog.onHold")}),e(xe,{name:"status",control:D.control,render:({field:k})=>{const A=k.value;return e(ie,{children:A?e(Dt,{colorScheme:"primary",isChecked:A==="on_hold",onChange:te=>{te.target.checked?k.onChange("on_hold"):k.onChange("active")}}):""})}})]})]}),r(L,{mb:"10px",children:[e(B,{children:C("userDialog.dataLimit")}),e(xe,{control:D.control,name:"data_limit",render:({field:k})=>{var A;return e(Ae,{endAdornment:"GB",type:"number",size:"sm",borderRadius:"6px",onChange:k.onChange,disabled:K,error:(A=D.formState.errors.data_limit)==null?void 0:A.message,value:k.value?String(k.value):""})}})]}),e($r,{in:!!(M&&M>0),animateOpacity:!0,style:{width:"100%"},children:r(L,{height:"66px",children:[e(B,{children:C("userDialog.periodicUsageReset")}),e(xe,{control:D.control,name:"data_limit_reset_strategy",render:({field:k})=>e(Me,{size:"sm",...k,disabled:K,bg:K?"gray.100":"transparent",_dark:{bg:K?"gray.600":"transparent"},sx:{option:{backgroundColor:h==="dark"?"#222C3B":"white"}},children:Yt.map(A=>e("option",{value:A.value,children:C("userDialog.resetStrategy"+A.title)},A.value))})})]})}),r(L,{mb:"10px",children:[e(B,{children:C(Ce?"userDialog.onHoldExpireDuration":"userDialog.expiryDate")}),Ce&&e(xe,{control:D.control,name:"on_hold_expire_duration",render:({field:k})=>{var A;return e(Ae,{endAdornment:"Days",type:"number",size:"sm",borderRadius:"6px",onChange:te=>{D.setValue("expire",null),k.onChange({target:{value:te}})},disabled:K,error:(A=D.formState.errors.on_hold_expire_duration)==null?void 0:A.message,value:k.value?String(k.value):""})}}),!Ce&&e(xe,{name:"expire",control:D.control,render:({field:k})=>{var fe;function A(_e){return $($(_e*1e3).utc()).toDate()}const{status:te,time:se}=Mt(k.value);return r(ie,{children:[e(Gr,{locale:T.language.toLocaleLowerCase(),dateFormat:C("dateFormat"),minDate:new Date,selected:k.value?A(k.value):void 0,onChange:_e=>{D.setValue("on_hold_expire_duration",null),k.onChange({target:{value:_e?$($(_e).set("hour",23).set("minute",59).set("second",59)).utc().valueOf()/1e3:0,name:"expire"}})},customInput:e(Ae,{size:"sm",type:"text",borderRadius:"6px",clearable:!0,disabled:K,error:(fe=D.formState.errors.expire)==null?void 0:fe.message})}),k.value?e(yo,{children:C(te,{time:se})}):""]})}})]}),r(L,{mb:"10px",isInvalid:!!D.formState.errors.note,children:[e(B,{children:C("userDialog.note")}),e(So,{...D.register("note")}),e(vt,{children:(Ke=(Je=D.formState.errors)==null?void 0:Je.note)==null?void 0:Ke.message})]})]}),u&&r(mt,{status:"error",display:{base:"none",md:"flex"},children:[e(zt,{}),u]})]})}),e(ht,{children:r(L,{isInvalid:!!((et=D.formState.errors.selected_proxies)!=null&&et.message),children:[e(B,{children:C("userDialog.protocols")}),e(xe,{control:D.control,name:"selected_proxies",render:({field:k})=>e(wa,{list:[{title:"vmess",description:C("userDialog.vmessDesc")},{title:"vless",description:C("userDialog.vlessDesc")},{title:"trojan",description:C("userDialog.trojanDesc")},{title:"shadowsocks",description:C("userDialog.shadowsocksDesc")}],disabled:K,...k})}),e(vt,{children:C((tt=D.formState.errors.selected_proxies)==null?void 0:tt.message)})]})}),g&&c&&e(ht,{pt:6,colSpan:{base:1,md:2},children:r(N,{gap:4,children:[e(dn,{defaultValue:oe,onChange:(k,A)=>{U(k),W(A)}}),e(v,{width:{base:"100%",md:"70%"},justifySelf:"center",children:e(Yr,{options:q.options,series:q.series,type:"donut"})})]})})]}),u&&r(mt,{mt:"3",status:"error",display:{base:"flex",md:"none"},children:[e(zt,{}),u]})]}),e(Ne,{mt:"3",children:r(_,{justifyContent:"space-between",w:"full",gap:3,flexDirection:{base:"column",sm:"row"},children:[e(_,{justifyContent:"flex-start",w:{base:"full",sm:"unset"},children:g&&r(ie,{children:[e(re,{label:C("delete"),placement:"top",children:e(V,{"aria-label":"Delete",size:"sm",onClick:()=>{p(t),R()},children:e(St,{})})}),e(re,{label:C("userDialog.usage"),placement:"top",children:e(V,{"aria-label":"usage",size:"sm",onClick:j,children:e(ka,{})})}),e(P,{onClick:ee,size:"sm",children:C("userDialog.resetUsage")}),e(P,{onClick:le,size:"sm",children:C("userDialog.revokeSubscription")})]})}),e(_,{w:"full",maxW:{md:"50%",base:"full"},justify:"end",children:e(P,{type:"submit",size:"sm",px:"8",colorScheme:"primary",leftIcon:x?e(He,{size:"xs"}):void 0,disabled:K,children:C(g?"userDialog.editUser":"createUser")})})]})})]})})})]})},Ua=t=>f.exports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",width:782.04441,height:701.88002,viewBox:"0 0 782.04441 701.88002",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},f.exports.createElement("path",{d:"M609.48783,100.59015l-25.44631,6.56209L270.53735,187.9987,245.091,194.56079A48.17927,48.17927,0,0,0,210.508,253.17865L320.849,681.05606a48.17924,48.17924,0,0,0,58.61776,34.58317l.06572-.01695,364.26536-93.93675.06572-.01695a48.17923,48.17923,0,0,0,34.58309-58.6178l-110.341-427.87741A48.17928,48.17928,0,0,0,609.48783,100.59015Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M612.94784,114.00532l-30.13945,7.77236L278.68955,200.20385l-30.139,7.77223a34.30949,34.30949,0,0,0-24.6275,41.74308l110.341,427.87741a34.30946,34.30946,0,0,0,41.7431,24.62736l.06572-.01695,364.26536-93.93674.06619-.01707a34.30935,34.30935,0,0,0,24.627-41.7429l-110.341-427.87741A34.30938,34.30938,0,0,0,612.94784,114.00532Z",transform:"translate(-208.9778 -99.05999)",fill:"#fff"}),f.exports.createElement("path",{d:"M590.19,252.56327,405.917,300.08359a8.01411,8.01411,0,0,1-4.00241-15.52046l184.273-47.52033A8.01412,8.01412,0,0,1,590.19,252.56327Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M628.955,270.49906,412.671,326.27437a8.01411,8.01411,0,1,1-4.00241-15.52046l216.284-55.77531a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M620.45825,369.93676l-184.273,47.52032a8.01411,8.01411,0,1,1-4.00242-15.52046l184.273-47.52032a8.01411,8.01411,0,1,1,4.00241,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M659.22329,387.87255l-216.284,55.77531a8.01411,8.01411,0,1,1-4.00242-15.52046l216.284-55.77531a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M650.72653,487.31025l-184.273,47.52033a8.01412,8.01412,0,0,1-4.00242-15.52047l184.273-47.52032a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M689.49156,505.246l-216.284,55.77532a8.01412,8.01412,0,1,1-4.00241-15.52047l216.284-55.77531a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M374.45884,348.80871l-65.21246,16.817a3.847,3.847,0,0,1-4.68062-2.76146L289.5963,304.81607a3.847,3.847,0,0,1,2.76145-4.68061l65.21247-16.817a3.847,3.847,0,0,1,4.68061,2.76145l14.96947,58.04817A3.847,3.847,0,0,1,374.45884,348.80871Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M404.72712,466.1822l-65.21247,16.817a3.847,3.847,0,0,1-4.68062-2.76146l-14.96946-58.04816A3.847,3.847,0,0,1,322.626,417.509l65.21246-16.817a3.847,3.847,0,0,1,4.68062,2.76145l14.96946,58.04817A3.847,3.847,0,0,1,404.72712,466.1822Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M434.99539,583.55569l-65.21246,16.817a3.847,3.847,0,0,1-4.68062-2.76145l-14.96946-58.04817a3.847,3.847,0,0,1,2.76145-4.68062l65.21247-16.817a3.847,3.847,0,0,1,4.68061,2.76146l14.96947,58.04816A3.847,3.847,0,0,1,434.99539,583.55569Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M863.63647,209.0517H487.31811a48.17928,48.17928,0,0,0-48.125,48.12512V699.05261a48.17924,48.17924,0,0,0,48.125,48.12507H863.63647a48.17924,48.17924,0,0,0,48.125-48.12507V257.17682A48.17928,48.17928,0,0,0,863.63647,209.0517Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M863.637,222.90589H487.31811a34.30948,34.30948,0,0,0-34.271,34.27093V699.05261a34.30947,34.30947,0,0,0,34.271,34.27088H863.637a34.30936,34.30936,0,0,0,34.27051-34.27088V257.17682A34.30937,34.30937,0,0,0,863.637,222.90589Z",transform:"translate(-208.9778 -99.05999)",fill:"#fff"}),f.exports.createElement("circle",{cx:694.19401,cy:614.02963,r:87.85039,fill:"#3182CE"}),f.exports.createElement("path",{d:"M945.18722,701.63087H914.63056V671.07421a11.45875,11.45875,0,0,0-22.9175,0v30.55666H861.1564a11.45875,11.45875,0,0,0,0,22.9175h30.55666V755.105a11.45875,11.45875,0,1,0,22.9175,0V724.54837h30.55666a11.45875,11.45875,0,0,0,0-22.9175Z",transform:"translate(-208.9778 -99.05999)",fill:"#fff"}),f.exports.createElement("path",{d:"M807.00068,465.71551H616.699a8.01412,8.01412,0,1,1,0-16.02823H807.00068a8.01412,8.01412,0,0,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M840.05889,492.76314H616.699a8.01412,8.01412,0,1,1,0-16.02823H840.05889a8.01411,8.01411,0,1,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M807.00068,586.929H616.699a8.01412,8.01412,0,1,1,0-16.02823H807.00068a8.01411,8.01411,0,0,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M840.05889,613.97661H616.699a8.01412,8.01412,0,1,1,0-16.02823H840.05889a8.01412,8.01412,0,1,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M574.07028,505.04162H506.72434a3.847,3.847,0,0,1-3.84278-3.84278V441.25158a3.847,3.847,0,0,1,3.84278-3.84278h67.34594a3.847,3.847,0,0,1,3.84278,3.84278v59.94726A3.847,3.847,0,0,1,574.07028,505.04162Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M574.07028,626.25509H506.72434a3.847,3.847,0,0,1-3.84278-3.84278V562.46505a3.847,3.847,0,0,1,3.84278-3.84278h67.34594a3.847,3.847,0,0,1,3.84278,3.84278v59.94726A3.847,3.847,0,0,1,574.07028,626.25509Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M807.21185,330.781H666.91017a8.01411,8.01411,0,0,1,0-16.02823H807.21185a8.01411,8.01411,0,0,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#ccc"}),f.exports.createElement("path",{d:"M840.27007,357.82862H666.91017a8.01411,8.01411,0,1,1,0-16.02822h173.3599a8.01411,8.01411,0,0,1,0,16.02822Z",transform:"translate(-208.9778 -99.05999)",fill:"#ccc"}),f.exports.createElement("path",{d:"M635.85911,390.6071H506.51316a3.847,3.847,0,0,1-3.84277-3.84277V285.81706a3.847,3.847,0,0,1,3.84277-3.84277H635.85911a3.847,3.847,0,0,1,3.84277,3.84277V386.76433A3.847,3.847,0,0,1,635.85911,390.6071Z",transform:"translate(-208.9778 -99.05999)",fill:"#ccc"})),Ea=t=>{if(!t)return null;const n=new Date(`${t}Z`);return Math.floor(n.getTime()/1e3)},_r=({lastOnline:t})=>{const n=Math.floor(Date.now()/1e3),o=Ea(t);return!t||o===null?e(v,{border:"1px solid",borderColor:"gray.400",_dark:{borderColor:"gray.600"},className:"circle"}):n-o<=60?e(v,{bg:"green.300",_dark:{bg:"green.500"},className:"circle pulse green"}):e(v,{bg:"gray.400",_dark:{bg:"gray.600"},className:"circle"})},Ra=t=>{if(!t)return null;const n=new Date(t+"Z");return Math.floor(n.getTime()/1e3)},kr=({lastOnline:t})=>{const n=Math.floor(Date.now()/1e3),o=Ra(t),s=o?n-o:null,a=o?Mt(o):{status:"",time:"Not Connected Yet"};return e(d,{display:"inline-block",fontSize:"xs",fontWeight:"medium",ml:"2",color:"gray.600",_dark:{color:"gray.400"},children:s&&s<=60?"Online":s?`${a.time} ago`:a.time})},La=S(wo,{baseStyle:{w:4,h:4}}),Ta=S(Co,{baseStyle:{w:4,h:4}}),Ir=5;function Aa(t,n,o){if(o0&&(a[0]=0,a[1]="prev-more"),a[a.length-1]{const{filters:t,onFilterChange:n,users:{total:o}}=z(),{limit:s,offset:a}=t,i=(a||0)/(s||1),l=Math.ceil(o/(s||1)),p=Aa(l,i,7),g=b=>{n({...t,offset:b*s})},w=b=>{n({...t,limit:parseInt(b.target.value)}),es(b.target.value)},{t:x}=H();return r(_,{justifyContent:"space-between",mt:4,w:"full",display:"flex",columnGap:{lg:4,md:0},rowGap:{md:0,base:4},flexDirection:{md:"row",base:"column"},children:[e(v,{order:{base:2,md:1},children:r(_,{children:[r(Me,{minW:"60px",value:s,onChange:w,size:"sm",rounded:"md",children:[e("option",{children:"10"}),e("option",{children:"20"}),e("option",{children:"30"})]}),e(d,{whiteSpace:"nowrap",fontSize:"sm",children:x("itemsPerPage")})]})}),r(_o,{size:"sm",isAttached:!0,variant:"outline",order:{base:1,md:2},children:[e(P,{leftIcon:e(La,{}),onClick:g.bind(null,i-1),isDisabled:i===0||l===0,children:x("previous")}),p.map(b=>typeof b=="string"?e(P,{children:"..."},b):e(P,{variant:b===i?"solid":"outline",onClick:g.bind(null,b),children:b+1},b)),e(P,{rightIcon:e(Ta,{}),onClick:g.bind(null,i+1),isDisabled:i+1===l||l===0,children:x("next")})]})]})},Ht=({expiryDate:t,status:n,compact:o=!1,showDetail:s=!0,extraText:a})=>{const{t:i}=H(),l=Mt(t),p=Oe[n].icon;return r(ie,{children:[r(E,{colorScheme:Oe[n].statusColor,rounded:"full",display:"inline-flex",px:3,py:1,columnGap:o?1:2,alignItems:"center",children:[e(p,{w:o?3:4}),s&&r(d,{textTransform:"capitalize",fontSize:o?".7rem":".875rem",lineHeight:o?"1rem":"1.25rem",fontWeight:"medium",letterSpacing:"tighter",children:[n&&i(`status.${n}`),a&&`: ${a}`]})]}),s&&t&&e(d,{display:"inline-block",fontSize:"xs",fontWeight:"medium",ml:"2",color:"gray.600",_dark:{color:"gray.400"},children:i(l.status,{time:l.time})})]})},Na=S(Ua),Qe={baseStyle:{w:{base:4,md:5},h:{base:4,md:5}}},Pa=S(ko,Qe),Fa=S(Kr,Qe),vr=S(Io,Qe),Wa=S(Qt,Qe),Oa=S(Zr,Qe),Ha=S(Jr,Qe),ja=S(Kr,{baseStyle:{width:"15px",height:"15px"}}),Ba=t=>{for(var n=0;n{const{used:n,total:o,dataLimitResetStrategy:s,totalUsedTraffic:a}=t,i=o===0||o===null;return e(_,{justifyContent:"space-between",fontSize:"xs",fontWeight:"medium",color:"gray.600",_dark:{color:"gray.400"},children:r(d,{children:[ae(n)," /"," ",i?e(d,{as:"span",fontFamily:"system-ui",children:"\u221E"}):ae(o)]})})},Dr=t=>{const{used:n,total:o,dataLimitResetStrategy:s,totalUsedTraffic:a,...i}=t,l=o===0||o===null,p=!l&&n/o*100>=100;return r(ie,{children:[e(vo,{orientation:"horizontal",value:l?100:Math.min(n/o*100,100),colorScheme:p?"red":"primary",...i,children:e(Do,{h:"6px",borderRadius:"full",children:e(zo,{borderRadius:"full"})})}),r(_,{justifyContent:"space-between",fontSize:"xs",fontWeight:"medium",color:"gray.600",_dark:{color:"gray.400"},children:[r(d,{children:[ae(n)," /"," ",l?e(d,{as:"span",fontFamily:"system-ui",children:"\u221E"}):ae(o)+(s&&s!=="no_reset"?" "+X("userDialog.resetStrategy"+Ba(s)):"")]}),r(d,{children:[X("usersTable.total"),": ",ae(a)]})]})]})},dt=({sort:t,column:n})=>t.includes(n)?e(ja,{transform:t.startsWith("-")?void 0:"rotate(180deg)"}):null,Va=t=>{const{filters:n,users:{users:o},users:s,onEditingUser:a,onFilterChange:i}=z(),{t:l}=H(),[p,g]=f.exports.useState(void 0),w=We({base:120,lg:72})||72,[x,b]=f.exports.useState(`${w}px`),u=We({base:!1,md:!0});f.exports.useEffect(()=>{const h=()=>{const c=document.querySelectorAll("#filters")[0];b(`${c.offsetHeight}px`)};window.addEventListener("scroll",h)},[]);const m=o.length!==s.total,I=h=>{let c=n.sort;c.includes(h)?c.startsWith("-")?c="-created_at":c="-"+h:c=h,i({sort:c})},C=h=>{i({status:h.target.value.length>0?h.target.value:void 0})},T=h=>{g(h===p?void 0:h)};return r(v,{id:"users-table",overflowX:{base:"unset",md:"unset"},children:[e(xt,{allowMultiple:!0,display:{base:"block",md:"none"},index:p,children:r(dr,{orientation:"vertical",zIndex:"docked",...t,children:[e(hr,{zIndex:"docked",position:"relative",children:r(je,{children:[e(Re,{position:"sticky",top:x,minW:"120px",pl:4,pr:4,cursor:"pointer",onClick:I.bind(null,"username"),children:r(_,{children:[e("span",{children:l("users")}),e(dt,{sort:n.sort,column:"username"})]})}),e(Re,{position:"sticky",top:x,minW:"50px",pl:0,pr:0,w:"140px",cursor:"pointer",children:r(_,{spacing:0,position:"relative",children:[r(d,{position:"absolute",_dark:{bg:"gray.750"},_light:{bg:"#F9FAFB"},userSelect:"none",pointerEvents:"none",zIndex:1,w:"100%",children:[l("usersTable.status"),n.status?": "+n.status:""]}),r(Me,{value:n.sort,fontSize:"xs",fontWeight:"extrabold",textTransform:"uppercase",cursor:"pointer",p:0,border:0,h:"auto",w:"auto",icon:e(ie,{}),_focusVisible:{border:"0 !important"},onChange:C,children:[e("option",{}),e("option",{children:"active"}),e("option",{children:"on_hold"}),e("option",{children:"disabled"}),e("option",{children:"limited"}),e("option",{children:"expired"})]})]})}),e(Re,{position:"sticky",top:x,minW:"100px",cursor:"pointer",pr:0,onClick:I.bind(null,"used_traffic"),children:r(_,{children:[e("span",{children:l("usersTable.dataUsage")}),e(dt,{sort:n.sort,column:"used_traffic"})]})}),e(Re,{position:"sticky",top:x,minW:"32px",w:"32px",p:0,cursor:"pointer"})]})}),e(ur,{children:!u&&(o==null?void 0:o.map((h,c)=>r(f.exports.Fragment,{children:[r(je,{onClick:T.bind(null,c),cursor:"pointer",children:[e(be,{borderBottom:0,minW:"100px",pl:4,pr:4,maxW:"calc(100vw - 50px - 32px - 100px - 48px)",children:r("div",{className:"flex-status",children:[e(_r,{lastOnline:h.online_at}),e(d,{isTruncated:!0,children:h.username})]})}),e(be,{borderBottom:0,minW:"50px",pl:0,pr:0,children:e(Ht,{compact:!0,showDetail:!1,expiryDate:h.expire,status:h.status})}),e(be,{borderBottom:0,minW:"100px",pr:0,children:e($a,{totalUsedTraffic:h.lifetime_used_traffic,dataLimitResetStrategy:h.data_limit_reset_strategy,used:h.used_traffic,total:h.data_limit,colorScheme:Oe[h.status].bandWidthColor})}),e(be,{p:0,borderBottom:0,w:"32px",minW:"32px",children:e(Fa,{color:"gray.600",_dark:{color:"gray.400"},transition:"transform .2s ease-out",transform:p===c?"rotate(180deg)":"0deg"})})]}),e(je,{className:"collapsible",onClick:T.bind(null,c),children:e(be,{p:0,colSpan:4,children:r($e,{border:0,children:[e(Ve,{display:"none"}),e(Ge,{border:0,cursor:"pointer",px:6,py:3,children:r(N,{justifyContent:"space-between",spacing:"4",children:[r(N,{alignItems:"flex-start",w:"full",spacing:-1,children:[e(d,{textTransform:"capitalize",fontSize:"xs",fontWeight:"bold",color:"gray.600",_dark:{color:"gray.400"},children:l("usersTable.dataUsage")}),e(v,{width:"full",minW:"230px",children:e(Dr,{totalUsedTraffic:h.lifetime_used_traffic,dataLimitResetStrategy:h.data_limit_reset_strategy,used:h.used_traffic,total:h.data_limit,colorScheme:Oe[h.status].bandWidthColor})})]}),r(_,{w:"full",justifyContent:"space-between",children:[r(v,{width:"full",children:[e(Ht,{compact:!0,expiryDate:h.expire,status:h.status}),e(kr,{lastOnline:h.online_at})]}),r(_,{children:[e(zr,{user:h}),e(re,{label:l("userDialog.editUser"),placement:"top",children:e(V,{p:"0 !important","aria-label":"Edit user",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},onClick:F=>{F.stopPropagation(),a(h)},children:e(Ha,{})})})]})]})]})})]})})})]},h.username)))})]})}),r(dr,{orientation:"vertical",display:{base:"none",md:"table"},...t,children:[e(hr,{zIndex:"docked",position:"relative",children:r(je,{children:[e(Re,{position:"sticky",top:{base:"unset",md:x},minW:"140px",cursor:"pointer",onClick:I.bind(null,"username"),children:r(_,{children:[e("span",{children:l("username")}),e(dt,{sort:n.sort,column:"username"})]})}),e(Re,{position:"sticky",top:{base:"unset",md:x},width:"400px",minW:"150px",cursor:"pointer",children:r(_,{position:"relative",gap:"5px",children:[r(d,{_dark:{bg:"gray.750"},_light:{bg:"#F9FAFB"},userSelect:"none",pointerEvents:"none",zIndex:1,children:[l("usersTable.status"),n.status?": "+n.status:""]}),e(d,{children:"/"}),e(dt,{sort:n.sort,column:"expire"}),e(_,{onClick:I.bind(null,"expire"),children:e(d,{children:"Sort by expire"})}),r(Me,{fontSize:"xs",fontWeight:"extrabold",textTransform:"uppercase",cursor:"pointer",position:"absolute",p:0,left:"-40px",border:0,h:"auto",w:"auto",icon:e(ie,{}),_focusVisible:{border:"0 !important"},value:n.sort,onChange:C,children:[e("option",{}),e("option",{children:"active"}),e("option",{children:"on_hold"}),e("option",{children:"disabled"}),e("option",{children:"limited"}),e("option",{children:"expired"})]})]})}),e(Re,{position:"sticky",top:{base:"unset",md:x},width:"350px",minW:"230px",cursor:"pointer",onClick:I.bind(null,"used_traffic"),children:r(_,{children:[e("span",{children:l("usersTable.dataUsage")}),e(dt,{sort:n.sort,column:"used_traffic"})]})}),e(Re,{position:"sticky",top:{base:"unset",md:x},width:"200px",minW:"180px"})]})}),r(ur,{children:[u&&(o==null?void 0:o.map((h,c)=>r(je,{className:ft("interactive",{"last-row":c===o.length-1}),onClick:()=>a(h),children:[e(be,{minW:"140px",children:r("div",{className:"flex-status",children:[e(_r,{lastOnline:h.online_at}),h.username,e(kr,{lastOnline:h.online_at})]})}),e(be,{width:"400px",minW:"150px",children:e(Ht,{expiryDate:h.expire,status:h.status})}),e(be,{width:"350px",minW:"230px",children:e(Dr,{totalUsedTraffic:h.lifetime_used_traffic,dataLimitResetStrategy:h.data_limit_reset_strategy,used:h.used_traffic,total:h.data_limit,colorScheme:Oe[h.status].bandWidthColor})}),e(be,{width:"200px",minW:"180px",children:e(zr,{user:h})})]},h.username))),o.length==0&&e(je,{children:e(be,{colSpan:4,children:e(Ga,{isFiltered:m})})})]})]}),e(Ma,{})]})},zr=({user:t})=>{const{setQRCode:n,setSubLink:o}=z(),s=t.links.join(`\r -`),[a,i]=f.exports.useState([-1,!1]);return f.exports.useEffect(()=>{a[1]&&setTimeout(()=>{i([-1,!1])},1e3)},[a]),r(_,{justifyContent:"flex-end",onClick:l=>{l.preventDefault(),l.stopPropagation()},children:[e(pr,{text:t.subscription_url.startsWith("/")?window.location.origin+t.subscription_url:t.subscription_url,onCopy:()=>{i([0,!0])},children:e("div",{children:e(re,{label:a[0]==0&&a[1]?X("usersTable.copied"):X("usersTable.copyLink"),placement:"top",children:e(V,{p:"0 !important","aria-label":"copy subscription link",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},children:a[0]==0&&a[1]?e(vr,{}):e(Wa,{})})})})}),e(pr,{text:s,onCopy:()=>{i([1,!0])},children:e("div",{children:e(re,{label:a[0]==1&&a[1]?X("usersTable.copied"):X("usersTable.copyConfigs"),placement:"top",children:e(V,{p:"0 !important","aria-label":"copy configs",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},children:a[0]==1&&a[1]?e(vr,{}):e(Pa,{})})})})}),e(re,{label:"QR Code",placement:"top",children:e(V,{p:"0 !important","aria-label":"qr code",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},onClick:()=>{n(t.links),o(t.subscription_url)},children:e(Oa,{})})})]})},Ga=({isFiltered:t})=>{const{onCreateUser:n}=z();return r(v,{padding:"5",py:"8",display:"flex",alignItems:"center",flexDirection:"column",gap:4,w:"full",children:[e(Na,{maxHeight:"200px",maxWidth:"200px",_dark:{'path[fill="#fff"]':{fill:"gray.800"},'path[fill="#f2f2f2"], path[fill="#e6e6e6"], path[fill="#ccc"]':{fill:"gray.700"},'circle[fill="#3182CE"]':{fill:"primary.300"}},_light:{'path[fill="#f2f2f2"], path[fill="#e6e6e6"], path[fill="#ccc"]':{fill:"gray.300"},'circle[fill="#3182CE"]':{fill:"primary.500"}}}),e(d,{fontWeight:"medium",color:"gray.600",_dark:{color:"gray.400"},children:t?X("usersTable.noUserMatched"):X("usersTable.noUser")}),!t&&e(P,{size:"sm",colorScheme:"primary",onClick:()=>n(!0),children:X("createUser")})]})},Ya=()=>(f.exports.useEffect(()=>{z.getState().refetchUsers(),rs()},[]),r(N,{justifyContent:"space-between",minH:"100vh",p:"6",rowGap:4,children:[r(v,{w:"full",children:[e(As,{}),e(Jo,{mt:"4"}),e(bs,{}),e(Va,{}),e(za,{}),e(ps,{}),e(ha,{}),e(Zs,{}),e(ga,{}),e(ba,{}),e(na,{}),e(ia,{}),e(pa,{}),e(us,{})]}),e(sn,{})]})),Za=t=>f.exports.createElement("svg",{viewBox:"0 0 747 747",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},f.exports.createElement("path",{d:"M746.671 209.652V77.6572C746.671 72.9384 743.827 68.6832 739.468 66.8811C735.108 65.0738 730.093 66.0739 726.754 69.4072L579.354 216.807C577.453 202.386 570.203 189.203 559.037 179.87C547.875 170.542 533.615 165.744 519.083 166.432C504.551 167.12 490.807 173.24 480.573 183.583L414.375 249.776C412.417 235.391 405.141 222.25 393.985 212.959C382.823 203.662 368.594 198.88 354.083 199.552C339.578 200.224 325.849 206.302 315.594 216.588L274.343 257.828L19.9167 3.41515C16.5781 0.0818157 11.5625 -0.918184 7.20306 0.889149C2.84373 2.69648 0 6.94648 0 11.6651V143.649C0 146.743 1.22917 149.712 3.41667 151.899L191.843 340.339L3.41667 528.753C1.2292 530.94 0 533.909 0 537.003V668.997C0 673.716 2.84373 677.971 7.20306 679.773C11.5624 681.581 16.578 680.58 19.9167 677.247L167.317 529.847C169.285 544.233 176.561 557.358 187.718 566.65C198.869 575.947 213.098 580.728 227.603 580.066C242.103 579.404 255.838 573.342 266.098 563.071L332.295 496.874V496.879C334.259 511.264 341.535 524.395 352.691 533.686C363.853 542.977 378.082 547.759 392.587 547.092C407.093 546.421 420.822 540.348 431.077 530.066L472.327 488.826L726.754 743.239C728.941 745.427 731.91 746.656 735.004 746.656C736.535 746.661 738.056 746.359 739.473 745.77C743.832 743.963 746.671 739.708 746.671 734.989V602.994C746.671 599.901 745.442 596.932 743.254 594.744L554.827 406.318L743.254 217.904H743.259C745.447 215.717 746.676 212.748 746.676 209.654L746.671 209.652ZM23.3373 39.8118L257.844 274.318L208.328 323.818L23.3413 138.818L23.3373 39.8118ZM723.337 706.825L488.831 472.318L538.347 422.818L723.333 607.818L723.337 706.825ZM23.3373 541.825L332.097 233.078C338.764 226.719 347.624 223.172 356.843 223.172C366.056 223.172 374.916 226.719 381.588 233.078C388.151 239.641 391.838 248.548 391.838 257.828C391.838 267.114 388.151 276.016 381.588 282.577L23.3347 640.831L23.3373 541.825ZM249.604 546.575C240.755 555.419 227.864 558.872 215.781 555.638C203.703 552.398 194.265 542.961 191.027 530.883C187.792 518.8 191.245 505.91 200.089 497.06L497.076 200.074C505.92 191.23 518.811 187.772 530.893 191.011C542.971 194.246 552.409 203.678 555.648 215.76C558.888 227.839 555.434 240.73 546.591 249.572L249.604 546.575ZM723.337 204.815L414.577 513.562C407.911 519.926 399.051 523.473 389.832 523.473C380.618 523.473 371.753 519.926 365.087 513.562C358.529 506.999 354.842 498.098 354.842 488.816C354.842 479.535 358.529 470.634 365.087 464.071L723.34 105.818L723.337 204.815Z",fill:"currentColor"})),Qa=y.object({username:y.string().min(1,"login.fieldRequired"),password:y.string().min(1,"login.fieldRequired")}),qa=S(Za,{baseStyle:{strokeWidth:"10px",w:12,h:12}}),Xa=S(Uo,{baseStyle:{w:5,h:5,strokeWidth:"2px"}}),Ur=()=>{var b,u;const[t,n]=f.exports.useState(""),[o,s]=f.exports.useState(!1),a=Eo(),{t:i}=H();let l=Ro();const{register:p,formState:{errors:g},handleSubmit:w}=Ze({resolver:bt(Qa)});f.exports.useEffect(()=>{Vo(),l.pathname!=="/login"&&a("/login",{replace:!0})},[]);const x=m=>{n("");const I=new FormData;I.append("username",m.username),I.append("password",m.password),I.append("grant_type","password"),s(!0),O("/admin/token",{method:"post",body:I}).then(({access_token:C})=>{$o(C),a("/")}).catch(C=>{n(C.response._data.detail)}).finally(s.bind(null,!1))};return r(N,{justifyContent:"space-between",minH:"100vh",p:"6",w:"full",children:[r(v,{w:"full",children:[e(_,{justifyContent:"end",w:"full",children:e(an,{})}),e(_,{w:"full",justifyContent:"center",alignItems:"center",children:r(v,{w:"full",maxW:"340px",mt:"6",children:[r(N,{alignItems:"center",w:"full",children:[e(qa,{}),e(d,{fontSize:"2xl",fontWeight:"semibold",children:i("login.loginYourAccount")}),e(d,{color:"gray.600",_dark:{color:"gray.400"},children:i("login.welcomeBack")})]}),e(v,{w:"full",maxW:"300px",m:"auto",pt:"4",children:e("form",{onSubmit:w(x),children:r(N,{mt:4,rowGap:2,children:[e(L,{children:e(Ae,{w:"full",placeholder:i("username"),...p("username"),error:i((b=g==null?void 0:g.username)==null?void 0:b.message)})}),e(L,{children:e(Ae,{w:"full",type:"password",placeholder:i("password"),...p("password"),error:i((u=g==null?void 0:g.password)==null?void 0:u.message)})}),t&&r(mt,{status:"error",rounded:"md",children:[e(zt,{}),e(Br,{children:t})]}),r(P,{isLoading:o,type:"submit",w:"full",colorScheme:"primary",children:[e(Xa,{marginRight:1}),i("login")]})]})})})]})})]}),e(sn,{})]})},Ja=()=>O("/admin",{headers:{Authorization:`Bearer ${Ut()}`}}),Ka=Lo([{path:"/",element:e(Ya,{}),errorElement:e(Ur,{}),loader:Ja},{path:"/login/",element:e(Ur,{})}],{basename:"/dashboard/"});function ei(){return e("main",{className:"p-8",children:e(To,{router:Ka})})}$.extend(Ao);$.extend(Mo);$.extend(No);$.extend(Po);$.extend(Fo);en(Wo.get()||"light");Oo.createRoot(document.getElementById("root")).render(e(Bt.StrictMode,{children:e(Ho,{theme:Bo,children:e(jo,{client:Vt,children:e(ei,{})})})})); diff --git a/app/dashboard/build/index.html b/app/dashboard/build/index.html index 733bfd19b..8f45a83ad 100644 --- a/app/dashboard/build/index.html +++ b/app/dashboard/build/index.html @@ -8,38 +8,38 @@ - + - + - + - - - + + +
- + \ No newline at end of file diff --git a/app/dashboard/build/assets/add_file.2cd9a851.svg b/app/dashboard/build/statics/add_file.2cd9a851.svg similarity index 100% rename from app/dashboard/build/assets/add_file.2cd9a851.svg rename to app/dashboard/build/statics/add_file.2cd9a851.svg diff --git a/app/dashboard/build/assets/ajax-loader.e7b44c86.gif b/app/dashboard/build/statics/ajax-loader.e7b44c86.gif similarity index 100% rename from app/dashboard/build/assets/ajax-loader.e7b44c86.gif rename to app/dashboard/build/statics/ajax-loader.e7b44c86.gif diff --git a/app/dashboard/build/assets/buttons.esm.a2fb4f3c.js b/app/dashboard/build/statics/buttons.esm.8cc4448a.js similarity index 100% rename from app/dashboard/build/assets/buttons.esm.a2fb4f3c.js rename to app/dashboard/build/statics/buttons.esm.8cc4448a.js diff --git a/app/dashboard/build/favicon/android-chrome-192x192.png b/app/dashboard/build/statics/favicon/android-chrome-192x192.png similarity index 100% rename from app/dashboard/build/favicon/android-chrome-192x192.png rename to app/dashboard/build/statics/favicon/android-chrome-192x192.png diff --git a/app/dashboard/build/favicon/android-chrome-512x512.png b/app/dashboard/build/statics/favicon/android-chrome-512x512.png similarity index 100% rename from app/dashboard/build/favicon/android-chrome-512x512.png rename to app/dashboard/build/statics/favicon/android-chrome-512x512.png diff --git a/app/dashboard/build/favicon/apple-touch-icon.png b/app/dashboard/build/statics/favicon/apple-touch-icon.png similarity index 100% rename from app/dashboard/build/favicon/apple-touch-icon.png rename to app/dashboard/build/statics/favicon/apple-touch-icon.png diff --git a/app/dashboard/build/favicon/browserconfig.xml b/app/dashboard/build/statics/favicon/browserconfig.xml similarity index 100% rename from app/dashboard/build/favicon/browserconfig.xml rename to app/dashboard/build/statics/favicon/browserconfig.xml diff --git a/app/dashboard/build/favicon/favicon-16x16.png b/app/dashboard/build/statics/favicon/favicon-16x16.png similarity index 100% rename from app/dashboard/build/favicon/favicon-16x16.png rename to app/dashboard/build/statics/favicon/favicon-16x16.png diff --git a/app/dashboard/build/favicon/favicon-32x32.png b/app/dashboard/build/statics/favicon/favicon-32x32.png similarity index 100% rename from app/dashboard/build/favicon/favicon-32x32.png rename to app/dashboard/build/statics/favicon/favicon-32x32.png diff --git a/app/dashboard/build/favicon/favicon.ico b/app/dashboard/build/statics/favicon/favicon.ico similarity index 100% rename from app/dashboard/build/favicon/favicon.ico rename to app/dashboard/build/statics/favicon/favicon.ico diff --git a/app/dashboard/build/favicon/mstile-150x150.png b/app/dashboard/build/statics/favicon/mstile-150x150.png similarity index 100% rename from app/dashboard/build/favicon/mstile-150x150.png rename to app/dashboard/build/statics/favicon/mstile-150x150.png diff --git a/app/dashboard/build/favicon/safari-pinned-tab.svg b/app/dashboard/build/statics/favicon/safari-pinned-tab.svg similarity index 100% rename from app/dashboard/build/favicon/safari-pinned-tab.svg rename to app/dashboard/build/statics/favicon/safari-pinned-tab.svg diff --git a/app/dashboard/build/favicon/site.webmanifest b/app/dashboard/build/statics/favicon/site.webmanifest similarity index 100% rename from app/dashboard/build/favicon/site.webmanifest rename to app/dashboard/build/statics/favicon/site.webmanifest diff --git a/app/dashboard/build/statics/index.8d48a3d3.js b/app/dashboard/build/statics/index.8d48a3d3.js new file mode 100644 index 000000000..77712d401 --- /dev/null +++ b/app/dashboard/build/statics/index.8d48a3d3.js @@ -0,0 +1,14 @@ +import{i as Bt,B as gn,a as fn,b as bn,j as Tr,d as $,U as Qt,z as xn,r as yn,f as Sn,Q as wn,e as Cn,$ as _n,c as Lt,g as S,h as kn,C as In,k as At,u as Tt,l as H,m as r,H as _,n as e,T as d,o as vn,p as v,s as Dn,q as f,t as Ze,J as zn,v as y,w as Mr,A as Mt,x as Un,y as En,M as ce,D as de,E as he,F as ue,G as pe,I as we,K as Qe,L as Nr,N as Rn,O as mt,P as me,R as L,S as B,V as Pr,W as re,X as E,Y as ye,Z as V,_ as Ne,a0 as Pe,a1 as P,a2 as bt,a3 as lt,a4 as Ln,a5 as Te,a6 as He,a7 as An,a8 as Fr,a9 as Wr,aa as ut,ab as It,ac as Tn,ad as $e,ae as vt,af as lr,ag as Mn,ah as Or,ai as Hr,aj as jr,ak as Se,al as Nn,am as Pn,an as Fn,ao as Wn,ap as On,aq as qt,ar as Br,as as $r,at as ie,au as cr,av as Hn,aw as jn,ax as Bn,ay as $t,az as $n,aA as Vn,aB as Gn,aC as Yn,aD as Zn,aE as Qn,aF as Dt,aG as qn,aH as Xn,aI as Jn,aJ as Kn,aK as eo,aL as xt,aM as Vr,aN as yt,aO as N,aP as Xt,aQ as to,aR as Ve,aS as Ge,aT as Vt,aU as Ye,aV as ro,aW as Ie,aX as ve,aY as De,aZ as ze,a_ as Ue,a$ as Ee,b0 as dr,b1 as no,b2 as zt,b3 as pt,b4 as Jt,b5 as oo,b6 as so,b7 as ao,b8 as Gr,b9 as io,ba as gt,bb as Ut,bc as Yr,bd as lo,be as co,bf as Zr,bg as We,bh as ho,bi as uo,bj as po,bk as Kt,bl as Pt,bm as hr,bn as Qr,bo as mo,bp as go,bq as ur,br as fo,bs as pr,bt as qr,bu as bo,bv as Xr,bw as xo,bx as yo,by as Jr,bz as So,bA as wo,bB as Kr,bC as en,bD as tn,bE as q,bF as Co,bG as rn,bH as Ft,bI as _o,bJ as ko,bK as Io,bL as vo,bM as Do,bN as zo,bO as nn,bP as Uo,bQ as mr,bR as gr,bS as Be,bT as Le,bU as fr,bV as be,bW as br,bX as Eo,bY as Ro,bZ as Lo,b_ as Ao,b$ as To,c0 as Mo,c1 as No,c2 as Po,c3 as Fo,c4 as Wo,c5 as Oo,c6 as Ho,c7 as jo,c8 as Bo,c9 as $o,ca as Vo,cb as Go}from"./vendor.3f3f0bc0.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerpolicy&&(i.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?i.credentials="include":a.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(a){if(a.ep)return;a.ep=!0;const i=o(a);fetch(a.href,i)}})();Bt.use(gn).use(fn).use(bn).init({debug:{}.NODE_ENV==="development",returnNull:!1,fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1},load:"languageOnly",detection:{caches:["localStorage","sessionStorage","cookie"]},backend:{loadPath:Tr(["/","statics/locales/{{lng}}.json"])}},function(t,n){$.locale(Bt.language)});Bt.on("languageChanged",t=>{$.locale(t)});Qt("zh-cn",xn);Qt("ru",yn);Qt("fa",Sn);const Gt=new wn,on=t=>{const n=document.querySelector('meta[name="theme-color"]');n==null||n.setAttribute("content",t=="dark"?"#1A202C":"#3B81F6")},Yo=Cn({shadows:{outline:"0 0 0 2px var(--chakra-colors-primary-200)"},fonts:{body:"Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif"},colors:{"light-border":"#d2d2d4",primary:{50:"#9cb7f2",100:"#88a9ef",200:"#749aec",300:"#618ce9",400:"#4d7de7",500:"#396fe4",600:"#3364cd",700:"#2e59b6",800:"#284ea0",900:"#224389"},gray:{750:"#222C3B"}},components:{Alert:{baseStyle:{container:{borderRadius:"6px",fontSize:"sm"}}},Select:{baseStyle:{field:{_dark:{borderColor:"gray.600",borderRadius:"6px"},_light:{borderRadius:"6px"}}}},FormHelperText:{baseStyle:{fontSize:"xs"}},FormLabel:{baseStyle:{fontSize:"sm",fontWeight:"medium",mb:"1",_dark:{color:"gray.300"}}},Input:{baseStyle:{addon:{_dark:{borderColor:"gray.600",_placeholder:{color:"gray.500"}}},field:{_focusVisible:{boxShadow:"none",borderColor:"primary.200",outlineColor:"primary.200"},_dark:{borderColor:"gray.600",_disabled:{color:"gray.400",borderColor:"gray.500"},_placeholder:{color:"gray.500"}}}}},Table:{baseStyle:{table:{borderCollapse:"separate",borderSpacing:0},thead:{borderBottomColor:"light-border"},th:{background:"#F9FAFB",borderColor:"light-border !important",borderBottomColor:"light-border !important",borderTop:"1px solid ",borderTopColor:"light-border !important",_first:{borderLeft:"1px solid",borderColor:"light-border !important"},_last:{borderRight:"1px solid",borderColor:"light-border !important"},_dark:{borderColor:"gray.600 !important",background:"gray.750"}},td:{transition:"all .1s ease-out",borderColor:"light-border",borderBottomColor:"light-border !important",_first:{borderLeft:"1px solid",borderColor:"light-border",_dark:{borderColor:"gray.600"}},_last:{borderRight:"1px solid",borderColor:"light-border",_dark:{borderColor:"gray.600"}},_dark:{borderColor:"gray.600",borderBottomColor:"gray.600 !important"}},tr:{"&.interactive":{cursor:"pointer",_hover:{"& > td":{bg:"gray.200"},_dark:{"& > td":{bg:"gray.750"}}}},_last:{"& > td":{_first:{borderBottomLeftRadius:"8px"},_last:{borderBottomRightRadius:"8px"}}}}}}}});const Et=()=>localStorage.getItem("token"),Zo=t=>{localStorage.setItem("token",t)},Qo=()=>{localStorage.removeItem("token")},qo=_n.create({baseURL:"/api/"}),Xo=(t,n={})=>(Et()&&(n.headers={...(n==null?void 0:n.headers)||{},Authorization:`Bearer ${Et()}`}),qo(t,n)),O=Xo,Jo=Lt(t=>({isLoading:!0,isPostLoading:!1,version:null,started:!1,logs_websocket:null,config:"",fetchCoreSettings:()=>{t({isLoading:!0}),Promise.all([O("/core").then(({version:n,started:o,logs_websocket:s})=>t({version:n,started:o,logs_websocket:s})),O("/core/config").then(n=>t({config:n}))]).finally(()=>t({isLoading:!1}))},updateConfig:n=>(t({isPostLoading:!0}),O("/core/config",{method:"PUT",body:n}).finally(()=>{t({isPostLoading:!1})})),restartCore:()=>O("/core/restart",{method:"POST"})}));function ae(t,n=2,o=!1){if(!+t)return"0 B";const s=1024,a=n<0?0:n,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(t)/Math.log(s));return o?[parseFloat((t/Math.pow(s,l)).toFixed(a)),i[l]]:`${parseFloat((t/Math.pow(s,l)).toFixed(a))} ${i[l]}`}const xr=t=>{if(t!==null)return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},Ko=S(kn,{baseStyle:{w:5,h:5,position:"relative",zIndex:"2"}}),es=S(In,{baseStyle:{w:5,h:5,position:"relative",zIndex:"2"}}),ts=S(At,{baseStyle:{w:5,h:5,position:"relative",zIndex:"2"}}),Wt=({title:t,content:n,icon:o})=>r(vn,{p:6,borderWidth:"1px",borderColor:"light-border",bg:"#F9FAFB",_dark:{borderColor:"gray.600",bg:"gray.750"},borderStyle:"solid",boxShadow:"none",borderRadius:"12px",width:"full",display:"flex",justifyContent:"space-between",flexDirection:"row",children:[r(_,{alignItems:"center",columnGap:"4",children:[e(v,{p:"2",position:"relative",color:"white",_before:{content:'""',position:"absolute",top:0,left:0,bg:"primary.400",display:"block",w:"full",h:"full",borderRadius:"5px",opacity:".5",z:"1"},_after:{content:'""',position:"absolute",top:"-5px",left:"-5px",bg:"primary.400",display:"block",w:"calc(100% + 10px)",h:"calc(100% + 10px)",borderRadius:"8px",opacity:".4",z:"1"},children:o}),e(d,{color:"gray.600",_dark:{color:"gray.300"},fontWeight:"medium",textTransform:"capitalize",fontSize:"sm",children:t})]}),e(v,{fontSize:"3xl",fontWeight:"semibold",mt:"2",children:n})]}),Yt="statistics-query-key",rs=t=>{const{version:n}=z(),{data:o}=Tt({queryKey:Yt,queryFn:()=>O("/system"),refetchInterval:5e3,onSuccess:({version:a})=>{n!==a&&z.setState({version:a})}}),{t:s}=H();return r(_,{justifyContent:"space-between",gap:0,columnGap:{lg:4,md:0},rowGap:{lg:0,base:4},display:"flex",flexDirection:{lg:"row",base:"column"},...t,children:[e(Wt,{title:s("activeUsers"),content:o&&r(_,{alignItems:"flex-end",children:[e(d,{children:xr(o.users_active)}),r(d,{fontWeight:"normal",fontSize:"lg",as:"span",display:"inline-block",pb:"5px",children:["/ ",xr(o.total_user)]})]}),icon:e(Ko,{})}),e(Wt,{title:s("dataUsage"),content:o&&ae(o.incoming_bandwidth+o.outgoing_bandwidth),icon:e(es,{})}),e(Wt,{title:s("memoryUsage"),content:o&&r(_,{alignItems:"flex-end",children:[e(d,{children:ae(o.mem_used,1,!0)[0]}),r(d,{fontWeight:"normal",fontSize:"lg",as:"span",display:"inline-block",pb:"5px",children:[ae(o.mem_used,1,!0)[1]," /"," ",ae(o.mem_total,1)]})]}),icon:e(ts,{})})]})},sn="marzban-num-users-per-page",yr=10,ns=()=>{const t=localStorage.getItem(sn)||yr.toString();return parseInt(t)||yr},os=t=>localStorage.setItem(sn,t),ss=t=>{for(const n in t)t[n]||delete t[n];return z.setState({loading:!0}),O("/users",{query:t}).then(n=>(z.setState({users:n}),n)).finally(()=>{z.setState({loading:!1})})},as=()=>O("/inbounds").then(t=>{z.setState({inbounds:new Map(Object.entries(t))})}).finally(()=>{z.setState({loading:!1})}),z=Lt(Dn((t,n)=>({version:null,editingUser:null,deletingUser:null,isCreatingNewUser:!1,QRcodeLinks:null,subscribeUrl:null,users:{users:[],total:0},loading:!0,isResetingAllUsage:!1,isEditingHosts:!1,isEditingNodes:!1,isShowingNodesUsage:!1,resetUsageUser:null,revokeSubscriptionUser:null,filters:{username:"",limit:ns(),sort:"-created_at"},inbounds:new Map,isEditingCore:!1,refetchUsers:()=>{ss(n().filters)},resetAllUsage:()=>O("/users/reset",{method:"POST"}).then(()=>{n().onResetAllUsage(!1),n().refetchUsers()}),onResetAllUsage:o=>t({isResetingAllUsage:o}),onCreateUser:o=>t({isCreatingNewUser:o}),onEditingUser:o=>{t({editingUser:o})},onDeletingUser:o=>{t({deletingUser:o})},onFilterChange:o=>{t({filters:{...n().filters,...o}}),n().refetchUsers()},setQRCode:o=>{t({QRcodeLinks:o})},deleteUser:o=>(t({editingUser:null}),O(`/user/${o.username}`,{method:"DELETE"}).then(()=>{t({deletingUser:null}),n().refetchUsers(),Gt.invalidateQueries(Yt)})),createUser:o=>O("/user",{method:"POST",body:o}).then(()=>{t({editingUser:null}),n().refetchUsers(),Gt.invalidateQueries(Yt)}),editUser:o=>O(`/user/${o.username}`,{method:"PUT",body:o}).then(()=>{n().onEditingUser(null),n().refetchUsers()}),fetchUserUsage:(o,s)=>{for(const a in s)s[a]||delete s[a];return O(`/user/${o.username}/usage`,{method:"GET",query:s})},onEditingHosts:o=>{t({isEditingHosts:o})},onEditingNodes:o=>{t({isEditingNodes:o})},onShowingNodesUsage:o=>{t({isShowingNodesUsage:o})},setSubLink:o=>{t({subscribeUrl:o})},resetDataUsage:o=>O(`/user/${o.username}/reset`,{method:"POST"}).then(()=>{t({resetUsageUser:null}),n().refetchUsers()}),revokeSubscription:o=>O(`/user/${o.username}/revoke_sub`,{method:"POST"}).then(s=>{t({revokeSubscriptionUser:null,editingUser:s}),n().refetchUsers()})}))),ge=({children:t,color:n})=>e(v,{position:"relative",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center",_before:{content:'""',display:"block",position:"absolute",top:"0",left:"0",width:"calc(100%)",height:"calc(100%)",bg:`${n}.400`,opacity:".5",borderRadius:"5px",zIndex:"1",_dark:{bg:`${n}.400`}},_after:{content:'""',display:"block",position:"absolute",top:"0",left:"0",width:"calc(100% + 10px)",height:"calc(100% + 10px)",transform:"translate(-5px, -5px)",bg:`${n}.400`,opacity:".4",borderRadius:"8px",zIndex:"1",_dark:{bg:`${n}.400`}},children:e(d,{color:`${n}.500`,_dark:{color:`${n}.900`},position:"relative",zIndex:"2",children:t})});window.ace.define("ace/theme/nord_dark",["require","exports","module","ace/lib/dom"],(t,n,o)=>{n.isDark=!0,n.cssClass="ace-nord-dark",t("../lib/dom").importCssString(n.cssText,n.cssClass)});window.ace.define("ace/theme/dawn",["require","exports","module","ace/lib/dom"],(t,n,o)=>{n.isDark=!1,n.cssClass="ace-dawn",t("../lib/dom").importCssString(n.cssText,n.cssClass)});const is=f.exports.forwardRef(({json:t,onChange:n,mode:o="code"},s)=>{const{colorMode:a}=Ze(),i={mode:o,onChangeText:n,statusBar:!1,mainMenuBar:!1,theme:a==="dark"?"ace/theme/nord_dark":"ace/theme/dawn"},l=f.exports.useRef(null),p=f.exports.useRef(null);return f.exports.useEffect(()=>(p.current=new zn(l.current,i),()=>{p.current&&p.current.destroy()}),[]),f.exports.useEffect(()=>{p.current&&p.current.update(t)},[t]),e(v,{ref:s,border:"1px solid",borderColor:"gray.300",_dark:{borderColor:"gray.500"},borderRadius:5,h:"full",children:e(v,{height:"full",ref:l})})}),an=y.object({name:y.string().min(1),address:y.string().min(1),port:y.number().min(1).or(y.string().transform(t=>parseFloat(t))),api_port:y.number().min(1).or(y.string().transform(t=>parseFloat(t))),xray_version:y.string().nullable().optional(),id:y.number().nullable().optional(),status:y.enum(["connected","connecting","error","disabled"]).nullable().optional(),message:y.string().nullable().optional(),add_as_new_host:y.boolean().optional(),usage_coefficient:y.number().or(y.string().transform(t=>parseFloat(t)))}),ls=()=>({name:"",address:"",port:62050,api_port:62051,xray_version:"",usage_coefficient:1}),ft="fetch-nodes-query-key",ln=()=>{const{isEditingNodes:t}=z();return Tt({queryKey:ft,queryFn:St.getState().fetchNodes,refetchInterval:t?3e3:void 0,refetchOnWindowFocus:!1})},St=Lt((t,n)=>({nodes:[],addNode(o){return O("/node",{method:"POST",body:o})},fetchNodes(){return O("/nodes")},fetchNodesUsage(o){return O("/nodes/usage",{query:o})},updateNode(o){return O(`/node/${o.id}`,{method:"PUT",body:o})},setDeletingNode(o){t({deletingNode:o})},reconnectNode(o){return O(`/node/${o.id}/reconnect`,{method:"POST"})},deleteNode:()=>{var o;return O(`/node/${(o=n().deletingNode)==null?void 0:o.id}`,{method:"DELETE"})}})),Sr=500,cs=S(Mr,{baseStyle:{w:5,h:5}}),ds=S(Mt,{baseStyle:{w:4,h:4}}),hs=S(Un,{baseStyle:{w:4,h:4}}),us=S(En,{baseStyle:{w:3,h:3}}),ps=t=>({[lt.ReadyState.CONNECTING]:"connecting",[lt.ReadyState.OPEN]:"connected",[lt.ReadyState.CLOSING]:"closed",[lt.ReadyState.CLOSED]:"closed",[lt.ReadyState.UNINSTANTIATED]:"closed"})[t],ms=t=>{try{let n=new URL("/api/".startsWith("/")?window.location.origin+"/api/":"/api/");return(n.protocol==="https:"?"wss://":"ws://")+Tr([n.host+n.pathname,t?`/node/${t}/logs`:"/core/logs"])+"?interval=1&token="+Et()}catch(n){return console.error("Unable to generate websocket url"),console.error(n),null}};let Fe=[];const gs=()=>{const{colorMode:t}=Ze(),{data:n}=ln(),o=!1,[s,a]=f.exports.useState(""),i=(R,K)=>{R!==s&&(R==="host"?(a(""),A([])):(a(R),A([])))},{isEditingCore:l}=z(),{fetchCoreSettings:p,updateConfig:g,isLoading:w,config:x,isPostLoading:b,version:h,restartCore:m}=Jo(),I=f.exports.useRef(null),[C,A]=f.exports.useState([]),{t:u}=H(),c=we(),F=Qe({defaultValues:{config:x||{}}});f.exports.useEffect(()=>{x&&F.setValue("config",x)},[x]),f.exports.useEffect(()=>{l&&p()},[l]);const j=f.exports.useRef(!0),D=f.exports.useCallback(Nr(R=>{var le,J,_e;const K=Math.abs((((le=I.current)==null?void 0:le.scrollTop)||0)-(((J=I.current)==null?void 0:J.scrollHeight)||0)+(((_e=I.current)==null?void 0:_e.offsetHeight)||0))<10;I.current&&K?j.current=!0:j.current=!1,R.length<40&&A(R)},300),[]),{readyState:M}=Rn(ms(s),{onMessage:R=>{Fe.push(R.data),Fe.length>Sr&&(Fe=Fe.splice(0,Fe.length-Sr)),D([...Fe])},shouldReconnect:()=>!0,reconnectAttempts:10,reconnectInterval:1e3});f.exports.useEffect(()=>{var R;I.current&&j.current&&(I.current.scrollTop=(R=I.current)==null?void 0:R.scrollHeight)},[C]),f.exports.useEffect(()=>()=>{Fe=[]},[]);const Y=ps(M.toString()),{mutate:Z,isLoading:Q}=mt(m),ne=({config:R})=>{g(R).then(()=>{c({title:u("core.successMessage"),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(K=>{let le=u("core.generalErrorMessage");typeof K.response._data.detail=="object"&&(le=K.response._data.detail[Object.keys(K.response._data.detail)[0]]),typeof K.response._data.detail=="string"&&(le=K.response._data.detail),c({title:le,status:"error",isClosable:!0,position:"top",duration:3e3})})},oe=f.exports.useRef(null),[U,W]=f.exports.useState(!1),X=()=>{var R;document.fullscreenElement?(document.exitFullscreen(),W(!1)):((R=oe.current)==null||R.requestFullscreen(),W(!0))};return r("form",{onSubmit:F.handleSubmit(ne),children:[r(me,{children:[r(L,{children:[r(_,{justifyContent:"space-between",alignItems:"flex-start",children:[r(B,{children:[u("core.configuration")," ",w&&e(Pr,{isIndeterminate:!0,size:"15px"})]}),e(_,{gap:0,children:e(re,{label:"Xray Version",placement:"top",children:e(E,{height:"100%",textTransform:"lowercase",children:h&&`v${h}`})})})]}),r(v,{position:"relative",ref:oe,minHeight:"300px",children:[e(ye,{control:F.control,name:"config",render:({field:R})=>e(is,{json:x,onChange:R.onChange})}),e(V,{size:"xs","aria-label":"full screen",variant:"ghost",position:"absolute",top:"2",right:"4",onClick:X,children:U?e(us,{}):e(hs,{})})]})]}),r(L,{mt:"4",children:[r(_,{justifyContent:"space-between",style:{paddingBottom:"1rem"},children:[r(_,{children:[(n==null?void 0:n[0])&&r(Ne,{size:"sm",style:{width:"auto"},disabled:o,bg:"transparent",_dark:{bg:"transparent"},sx:{option:{backgroundColor:t==="dark"?"#222C3B":"white"}},onChange:R=>i(R.currentTarget.value,R.currentTarget.selectedOptions[0].text),children:[e("option",{value:"host",defaultChecked:!0,children:"Master"},"host"),n&&n.map(R=>e("option",{value:String(R.id),children:u(R.name)},R.address))]}),e(B,{className:"w-au",children:u("core.logs")})]}),e(d,{as:B,children:u(`core.socket.${Y}`)})]}),e(v,{border:"1px solid",borderColor:"gray.300",bg:"#F9F9F9",_dark:{borderColor:"gray.500",bg:"#2e3440"},borderRadius:5,minHeight:"200px",maxHeight:"250px",p:2,overflowY:"auto",ref:I,children:C.map((R,K)=>e(d,{fontSize:"xs",opacity:.8,whiteSpace:"pre-line",children:R},K))})]})]}),e(Pe,{children:r(_,{w:"full",justifyContent:"space-between",children:[e(_,{children:e(v,{children:e(P,{size:"sm",leftIcon:e(ds,{className:bt({"animate-spin":Q})}),onClick:()=>Z(),children:u(Q?"core.restarting":"core.restartCore")})})}),e(_,{children:e(P,{size:"sm",variant:"solid",colorScheme:"primary",px:"5",type:"submit",isDisabled:w||b,isLoading:b,children:u("core.save")})})]})})]})},fs=()=>{const{isEditingCore:t}=z(),n=z.setState.bind(null,{isEditingCore:!1}),{t:o}=H();return r(ce,{isOpen:t,onClose:n,size:"3xl",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"full",children:[e(ue,{pt:6,children:r(_,{gap:2,children:[e(ge,{color:"primary",children:e(cs,{color:"white"})}),e(d,{fontWeight:"semibold",fontSize:"lg",children:o("core.title")})]})}),e(pe,{mt:3}),e(gs,{})]})]})},wt=S(Ln,{baseStyle:{w:5,h:5}}),bs=()=>{const[t,n]=f.exports.useState(!1),{deletingUser:o,onDeletingUser:s,deleteUser:a}=z(),{t:i}=H(),l=we(),p=()=>{s(null)},g=()=>{o&&(n(!0),a(o).then(()=>{l({title:i("deleteUser.deleteSuccess",{username:o.username}),status:"success",isClosable:!0,position:"top",duration:3e3})}).then(p).finally(n.bind(null,!1)))};return r(ce,{isCentered:!0,isOpen:!!o,onClose:p,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"red",children:e(wt,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:i("deleteUser.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:i("deleteUser.prompt",{username:o.username})})})]}),r(Pe,{display:"flex",children:[e(P,{size:"sm",onClick:p,mr:3,w:"full",variant:"outline",children:i("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"red",onClick:g,leftIcon:t?e(He,{size:"xs"}):void 0,children:i("delete")})]})]})]})},er={baseStyle:{w:4,h:4}},xs=S(An,er),ys=S(Fr,er),tr=S(Mt,er),Ss=Nr(t=>{z.getState().onFilterChange({...z.getState().filters,offset:0,search:t})},300),ws=({...t})=>{const{loading:n,filters:o,onFilterChange:s,refetchUsers:a,onCreateUser:i}=z(),{t:l}=H(),[p,g]=f.exports.useState(""),w=b=>{g(b.target.value),Ss(b.target.value)},x=()=>{g(""),s({...o,offset:0,search:""})};return r(Wr,{id:"filters",templateColumns:{lg:"repeat(3, 1fr)",md:"repeat(4, 1fr)",base:"repeat(1, 1fr)"},position:"sticky",top:0,mx:"-6",px:"6",rowGap:4,gap:{lg:4,base:0},bg:"var(--chakra-colors-chakra-body-bg)",py:4,zIndex:"docked",...t,children:[e(ut,{colSpan:{base:1,md:2,lg:1},order:{base:2,md:1},children:r(It,{children:[e(Tn,{pointerEvents:"none",children:e(xs,{})}),e($e,{placeholder:l("search"),value:p,borderColor:"light-border",onChange:w}),r(vt,{children:[n&&e(He,{size:"xs"}),o.search&&o.search.length>0&&e(V,{onClick:x,"aria-label":"clear",size:"xs",variant:"ghost",children:e(ys,{})})]})]})}),e(ut,{colSpan:2,order:{base:1,md:2},children:r(_,{justifyContent:"flex-end",alignItems:"center",h:"full",children:[e(V,{"aria-label":"refresh users",disabled:n,onClick:a,size:"sm",variant:"outline",children:e(tr,{className:bt({"animate-spin":n})})}),e(P,{colorScheme:"primary",size:"sm",onClick:()=>i(!0),px:5,children:l("createUser")})]})})]})},cn="https://github.com/Gozargah/Marzban",Cs="https://github.com/Gozargah",_s="https://github.com/Gozargah/Marzban#donation",dn=t=>{const{version:n}=z();return e(_,{w:"full",py:"0",position:"relative",...t,children:r(d,{display:"inline-block",flexGrow:1,textAlign:"center",color:"gray.500",fontSize:"xs",children:[e(lr,{color:"blue.400",href:cn,children:"Marzban"}),n?` (v${n}), `:", ","Made with \u2764\uFE0F in"," ",e(lr,{color:"blue.400",href:Cs,children:"Gozargah"})]})})},ks=S(Mn,{baseStyle:{w:4,h:4}}),hn=({actions:t})=>{const{i18n:n}=H();var o=s=>{n.changeLanguage(s)};return r(Or,{placement:"bottom-end",children:[e(Hr,{as:V,size:"sm",variant:"outline",icon:e(ks,{}),position:"relative"}),r(jr,{minW:"100px",zIndex:9999,children:[e(Se,{maxW:"100px",fontSize:"sm",onClick:()=>o("en"),children:"English"}),e(Se,{maxW:"100px",fontSize:"sm",onClick:()=>o("fa"),children:"\u0641\u0627\u0631\u0633\u06CC"}),e(Se,{maxW:"100px",fontSize:"sm",onClick:()=>o("zh-cn"),children:"\u7B80\u4F53\u4E2D\u6587"}),e(Se,{maxW:"100px",fontSize:"sm",onClick:()=>o("ru"),children:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"})]})]})},Is=async()=>await O("/admin"),vs=()=>{const{data:t,isError:n,isLoading:o,isSuccess:s,error:a}=Tt({queryFn:()=>Is()});return{userData:t||{discord_webook:"",is_sudo:!1,telegram_id:"",username:""},getUserIsPending:o,getUserIsSuccess:s,getUserIsError:n,getUserError:a}},Ce={baseStyle:{w:4,h:4}},Ds=S(Nn,Ce),zs=S(Pn,Ce),Us=S(Mr,Ce),Es=S(Fn,Ce),Rs=S(Wn,Ce),Ls=S(On,Ce),As=S(qt,Ce),Ts=S(Br,Ce),Ms=S(At,Ce),Ns=S($r,Ce),wr=S(v,{baseStyle:{bg:"yellow.500",w:"2",h:"2",rounded:"full",position:"absolute"}}),un="marzban-menu-notification",Ps=()=>{const t=localStorage.getItem(un);if(!t)return!0;try{return t&&jn(parseInt(t))?Bn(new Date,new Date(parseInt(t)))>=7:!0}catch{return!0}},Fs=({actions:t})=>{const{userData:n,getUserIsSuccess:o,getUserIsPending:s}=vs(),a=()=>!s&&o?n.is_sudo:!1,{onEditingHosts:i,onResetAllUsage:l,onEditingNodes:p,onShowingNodesUsage:g}=z(),{t:w}=H(),{colorMode:x,toggleColorMode:b}=Ze(),[h,m]=f.exports.useState(Ps()),I=x==="dark"?"dark_dimmed":x,C=()=>{localStorage.setItem(un,new Date().getTime().toString()),m(!1)};return r(_,{gap:2,justifyContent:"space-between",__css:{"& .menuList":{direction:"ltr"}},position:"relative",children:[e(d,{as:"h1",fontWeight:"semibold",fontSize:"2xl",children:w("users")}),h&&e(wr,{top:"0",right:"0",zIndex:9999}),e(v,{overflow:"auto",css:{direction:"rtl"},children:r(_,{alignItems:"center",children:[r(Or,{children:[e(Hr,{as:V,size:"sm",variant:"outline",icon:e(ie,{children:e(Es,{})}),position:"relative"}),r(jr,{minW:"170px",zIndex:99999,className:"menuList",children:[a()&&r(ie,{children:[e(Se,{maxW:"170px",fontSize:"sm",icon:e(As,{}),onClick:i.bind(null,!0),children:w("header.hostSettings")}),e(Se,{maxW:"170px",fontSize:"sm",icon:e(Ts,{}),onClick:p.bind(null,!0),children:w("header.nodeSettings")}),e(Se,{maxW:"170px",fontSize:"sm",icon:e(Ms,{}),onClick:g.bind(null,!0),children:w("header.nodesUsage")}),e(Se,{maxW:"170px",fontSize:"sm",icon:e(Ns,{}),onClick:l.bind(null,!0),children:w("resetAllUsage")})]}),e(cr,{to:_s,target:"_blank",children:r(Se,{maxW:"170px",fontSize:"sm",icon:e(Ls,{}),position:"relative",onClick:C,children:[w("header.donation")," ",h&&e(wr,{top:"3",right:"2"})]})}),e(cr,{to:"/login",children:e(Se,{maxW:"170px",fontSize:"sm",icon:e(Rs,{}),children:w("header.logout")})})]})]}),a()&&e(V,{size:"sm",variant:"outline","aria-label":"core settings",onClick:()=>{z.setState({isEditingCore:!0})},children:e(Us,{})}),e(hn,{}),e(V,{size:"sm",variant:"outline","aria-label":"switch theme",onClick:()=>{on(x=="dark"?"light":"dark"),b()},children:x==="light"?e(Ds,{}):e(zs,{})}),e(v,{css:{direction:"ltr"},display:"flex",alignItems:"center",pr:"2",__css:{"& span":{display:"inline-flex"}},children:e(Hn,{href:cn,"data-color-scheme":`no-preference: ${I}; light: ${I}; dark: ${I};`,"data-size":"large","data-show-count":"true","aria-label":"Star Marzban on GitHub",children:"Star"})})]})})]})},Ws=[{title:"Inbound's default",value:"inbound_default"},{title:"TLS",value:"tls"},{title:"None",value:"none"}],Os=[{title:"",value:""},{title:"h3",value:"h3"},{title:"h2",value:"h2"},{title:"http/1.1",value:"http/1.1"},{title:"h3,h2,http/1.1",value:"h3,h2,http/1.1"},{title:"h3,h2",value:"h3,h2"},{title:"h2,http/1.1",value:"h2,http/1.1"}],Hs=[{title:"",value:""},...["chrome","firefox","safari","ios","android","edge","360","qq","random","randomized"].map(t=>({title:t,value:t}))],js=[{title:"none",value:""},{title:"xtls-rprx-vision",value:"xtls-rprx-vision"}],Bs=["aes-128-gcm","aes-256-gcm","chacha20-ietf-poly1305"],$s=Lt(t=>({isLoading:!1,isPostLoading:!1,hosts:{},fetchHosts:()=>{t({isLoading:!0}),O("/hosts").then(n=>t({hosts:n})).finally(()=>t({isLoading:!1}))},setHosts:n=>(t({isPostLoading:!0}),O("/hosts",{method:"PUT",body:n}).finally(()=>{t({isPostLoading:!1})}))}));const Vs=S(Fr,{baseStyle:{w:4,h:4}}),Me=$t.forwardRef(({disabled:t,step:n,label:o,className:s,startAdornment:a,endAdornment:i,type:l="text",placeholder:p,onChange:g,onBlur:w,name:x,value:b,onClick:h,error:m,clearable:I=!1,...C},A)=>{const u=()=>{g&&g({target:{value:"",name:x}})},{size:c="md"}=C,F=l=="number"?qn:$e,j=l=="number"?$n:$t.Fragment,D=l=="number"?{keepWithinRange:!0,precision:5,format:M=>isNaN(parseFloat(String(M)))||Number(parseFloat(String(M)).toFixed(5))===0?M:Number(parseFloat(String(M)).toFixed(5)),min:0,step:n,name:x,type:l,placeholder:p,onChange:M=>{g&&g(M)},onBlur:w,value:b,onClick:h,disabled:t,flexGrow:1,size:c}:{};return r(L,{isInvalid:!!m,children:[o&&e(B,{children:o}),r(It,{size:c,w:"full",rounded:"md",_focusWithin:{outline:"2px solid",outlineColor:"primary.200"},bg:t?"gray.100":"transparent",_dark:{bg:t?"gray.600":"transparent"},children:[a&&e(Vn,{children:a}),r(j,{...D,children:[e(F,{name:x,ref:A,step:n,className:bt(s),type:l,placeholder:p,onChange:g,onBlur:w,value:b,onClick:h,disabled:t,flexGrow:1,_focusVisible:{outline:"none",borderTopColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent"},_disabled:{cursor:"not-allowed"},...C,roundedLeft:a?"0":"md",roundedRight:i?"0":"md"}),l=="number"&&e(ie,{children:r(Gn,{children:[e(Yn,{}),e(Zn,{})]})})]}),i&&e(Qn,{borderLeftRadius:0,borderRightRadius:"6px",bg:"transparent",children:i}),I&&b&&b.length&&e(vt,{borderLeftRadius:0,borderRightRadius:"6px",bg:"transparent",onClick:u,cursor:"pointer",children:e(Vs,{})})]}),!!m&&e(Dt,{children:m})]})}),Gs=S(Xn,{baseStyle:{w:5,h:5}}),Ys=S(Jn,{baseStyle:{w:5,h:5}}),Zs=S(Kn,{baseStyle:{w:5,h:5}}),Ot=S(Ne,{baseStyle:{bg:"white",_dark:{bg:"gray.700"}}}),Ae=S(Me,{baseStyle:{bg:"white",_dark:{bg:"gray.700"}}}),Qs=S(qt,{baseStyle:{w:5,h:5}}),Re=S(eo,{baseStyle:{w:4,h:4,color:"gray.400",cursor:"pointer"}}),qs=y.record(y.string().min(1),y.array(y.object({remark:y.string().min(1,"Remark is required"),address:y.string().min(1,"Address is required"),port:y.string().or(y.number()).nullable().transform(t=>typeof t=="number"?t:t!==null&&!isNaN(parseInt(t))?Number(parseInt(t)):null),path:y.string().nullable(),sni:y.string().nullable(),host:y.string().nullable(),mux_enable:y.boolean().default(!1),allowinsecure:y.boolean().nullable().default(!1),is_disabled:y.boolean().default(!0),fragment_setting:y.string().nullable(),noise_setting:y.string().nullable(),random_user_agent:y.boolean().default(!1),security:y.string(),alpn:y.string(),fingerprint:y.string()}))),xe=S(Dt,{baseStyle:{color:"red.400",display:"block",textAlign:"left",w:"100%"}}),Xs=({hostKey:t,isOpen:n,toggleAccordion:o})=>{const{inbounds:s}=z(),a=[...s.values()].flat().filter(u=>u.tag===t)[0],i=Xt(),{fields:l,append:p,remove:g,insert:w,move:x}=to({control:i.control,name:t}),{errors:b}=i.formState,{t:h}=H(),m=b[t],I=()=>{p({host:"",sni:"",port:null,path:null,address:"",remark:"",mux_enable:!1,allowinsecure:!1,is_disabled:!1,fragment_setting:"",noise_setting:"",random_user_agent:!1,security:"inbound_default",alpn:"",fingerprint:""})},C=u=>{if(u<0||u>=l.length)return;const c=l[u];w(u+1,c)};f.exports.useEffect(()=>{m&&!n&&o()},[m]);const A=(u,c)=>{c==="up"&&u>0?x(u,u-1):c==="down"&&u{var F,j,D,M,Y,Z,Q,ne,oe,U,W,X,R,K,le,J,_e,_t,Xe,kt,Je,Ke,et,tt,rt,k,T,ee,se,fe,ke,G,nt,ot,st,at,it,je,or,sr,ar;return e(ro.div,{layout:!0,initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{layout:{type:"spring",stiffness:500,damping:30},opacity:{duration:.1}},id:u.id,whileDrag:{scale:1.05,zIndex:10},style:{width:"100%"},children:r(N,{id:u.id,border:"1px solid",_dark:{borderColor:"gray.600",bg:"#273142"},_light:{borderColor:"gray.200",bg:"#fcfbfb"},p:2,w:"full",borderRadius:"4px",children:[e(_,{w:"100%",alignItems:"flex-start",children:r(L,{position:"relative",zIndex:10,isInvalid:!!(m&&((F=m[c])==null?void 0:F.remark)),children:[r(It,{children:[e(Ae,{...i.register(t+"."+c+".remark"),size:"sm",borderRadius:"4px",placeholder:"Remark"}),e(vt,{children:r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(v,{mt:"-8px",children:e(Re,{})})}),e(De,{children:r(ze,{children:[e(Ue,{}),e(Ee,{}),e(dr,{children:r(v,{fontSize:"xs",children:[e(d,{pr:"20px",children:h("hostsDialog.desc")}),r(d,{children:[r(E,{children:["{","SERVER_IP","}"]})," ",h("hostsDialog.currentServer")]}),r(d,{mt:1,children:[r(E,{children:["{","SERVER_IPV6","}"]})," ",h("hostsDialog.currentServerv6")]}),r(d,{mt:1,children:[r(E,{children:["{","USERNAME","}"]})," ",h("hostsDialog.username")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_USAGE","}"]})," ",h("hostsDialog.dataUsage")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LEFT","}"]})," ",h("hostsDialog.remainingData")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LIMIT","}"]})," ",h("hostsDialog.dataLimit")]}),r(d,{mt:1,children:[r(E,{children:["{","DAYS_LEFT","}"]})," ",h("hostsDialog.remainingDays")]}),r(d,{mt:1,children:[r(E,{children:["{","EXPIRE_DATE","}"]})," ",h("hostsDialog.expireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","JALALI_EXPIRE_DATE","}"]})," ",h("hostsDialog.jalaliExpireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","TIME_LEFT","}"]})," ",h("hostsDialog.remainingTime")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_TEXT","}"]})," ",h("hostsDialog.statusText")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_EMOJI","}"]})," ",h("hostsDialog.statusEmoji")]}),r(d,{mt:1,children:[r(E,{children:["{","PROTOCOL","}"]})," ",h("hostsDialog.proxyProtocol")]}),r(d,{mt:1,children:[r(E,{children:["{","TRANSPORT","}"]})," ",h("hostsDialog.proxyMethod")]})]})})]})})]})})]}),m&&((j=m[c])==null?void 0:j.remark)&&e(xe,{children:(M=(D=m[c])==null?void 0:D.remark)==null?void 0:M.message})]})}),r(L,{isInvalid:!!(m&&((Y=m[c])==null?void 0:Y.address)),children:[r(It,{children:[e(Ae,{size:"sm",borderRadius:"4px",placeholder:"Address (e.g. example.com)",...i.register(t+"."+c+".address")}),e(vt,{children:r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(v,{mt:"-8px",children:e(Re,{})})}),e(De,{children:r(ze,{children:[e(Ue,{}),e(Ee,{}),e(dr,{children:r(v,{fontSize:"xs",children:[e(d,{pr:"20px",children:h("hostsDialog.desc")}),r(d,{children:[r(E,{children:["{","SERVER_IP","}"]})," ",h("hostsDialog.currentServer")]}),r(d,{mt:1,children:[r(E,{children:["{","SERVER_IPV6","}"]})," ",h("hostsDialog.currentServerv6")]}),r(d,{mt:1,children:[r(E,{children:["{","USERNAME","}"]})," ",h("hostsDialog.username")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_USAGE","}"]})," ",h("hostsDialog.dataUsage")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LEFT","}"]})," ",h("hostsDialog.remainingData")]}),r(d,{mt:1,children:[r(E,{children:["{","DATA_LIMIT","}"]})," ",h("hostsDialog.dataLimit")]}),r(d,{mt:1,children:[r(E,{children:["{","DAYS_LEFT","}"]})," ",h("hostsDialog.remainingDays")]}),r(d,{mt:1,children:[r(E,{children:["{","EXPIRE_DATE","}"]})," ",h("hostsDialog.expireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","JALALI_EXPIRE_DATE","}"]})," ",h("hostsDialog.jalaliExpireDate")]}),r(d,{mt:1,children:[r(E,{children:["{","TIME_LEFT","}"]})," ",h("hostsDialog.remainingTime")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_TEXT","}"]})," ",h("hostsDialog.statusText")]}),r(d,{mt:1,children:[r(E,{children:["{","STATUS_EMOJI","}"]})," ",h("hostsDialog.statusEmoji")]}),r(d,{mt:1,children:[r(E,{children:["{","PROTOCOL","}"]})," ",h("hostsDialog.proxyProtocol")]}),r(d,{mt:1,children:[r(E,{children:["{","TRANSPORT","}"]})," ",h("hostsDialog.proxyMethod")]})]})})]})})]})})]}),m&&((Z=m[c])==null?void 0:Z.address)&&e(xe,{children:(ne=(Q=m[c])==null?void 0:Q.address)==null?void 0:ne.message})]}),e(yt,{w:"full",allowToggle:!0,children:r(Ve,{border:"0",children:[r("div",{style:{display:"flex",alignItems:"center"},children:[r(Ge,{display:"flex",px:0,py:1,borderRadius:3,_hover:{bg:"transparent"},children:[r(d,{flex:"3",align:"start",fontSize:"xs",color:"gray.600",_dark:{color:"gray.500"},pl:1,children:[h("hostsDialog.advancedOptions"),e(Vt,{fontSize:"sm",ml:1})]}),r(no,{flex:"1",px:"0",display:"contents",children:[e(ye,{control:i.control,name:`${t}.${c}.is_disabled`,render:({field:te})=>e(zt,{mx:"1.5",colorScheme:"primary",...te,value:void 0,isChecked:!te.value,onChange:ir=>{console.log(ir.target.checked),te.onChange(!ir.target.checked)}})}),e(re,{label:"Delete",placement:"top",children:e(V,{"aria-label":"Delete",size:"sm",colorScheme:"red",variant:"ghost",onClick:g.bind(null,c),children:e(wt,{})})})]})]}),e(re,{label:"Dublicate",placement:"top",children:e(V,{"aria-label":"Dublicate",size:"sm",colorScheme:"white",variant:"ghost",onClick:()=>C(c),children:e(Gs,{})})}),cA(c,"down"),children:e(Zs,{})})}),c>0&&e(re,{label:"Move Up",placement:"top",children:e(V,{"aria-label":"UpIcon",size:"sm",colorScheme:"white",variant:"ghost",onClick:()=>A(c,"up"),children:e(Ys,{})})})]}),e(Ye,{w:"full",p:1,children:r(N,{w:"full",borderRadius:"4px",children:[r(L,{isInvalid:!!(m&&((oe=m[c])==null?void 0:oe.port)),children:[r(B,{display:"flex",pb:1,alignItems:"center",justifyContent:"space-between",gap:1,m:"0",children:[e("span",{children:h("hostsDialog.port")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.port.info")})]})})]})]}),e(Ae,{size:"sm",borderRadius:"4px",placeholder:String(a.port||"8080"),type:"number",...i.register(t+"."+c+".port")})]}),r(L,{isInvalid:!!(m&&((U=m[c])==null?void 0:U.sni)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:h("hostsDialog.sni")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.sni.info")}),e(d,{fontSize:"xs",mt:"2",children:e(Te,{i18nKey:"hostsDialog.host.wildcard",components:{badge:e(E,{})}})}),e(d,{fontSize:"xs",children:e(Te,{i18nKey:"hostsDialog.host.multiHost",components:{badge:e(E,{})}})})]})})]})]}),e(Ae,{size:"sm",borderRadius:"4px",placeholder:"SNI (e.g. example.com)",...i.register(t+"."+c+".sni")}),m&&((W=m[c])==null?void 0:W.sni)&&e(xe,{children:(R=(X=m[c])==null?void 0:X.sni)==null?void 0:R.message})]}),r(L,{isInvalid:!!(m&&((K=m[c])==null?void 0:K.host)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:h("hostsDialog.host")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.host.info")}),e(d,{fontSize:"xs",mt:"2",children:e(Te,{i18nKey:"hostsDialog.host.wildcard",components:{badge:e(E,{})}})}),e(d,{fontSize:"xs",children:e(Te,{i18nKey:"hostsDialog.host.multiHost",components:{badge:e(E,{})}})})]})})]})]}),e(Ae,{size:"sm",borderRadius:"4px",placeholder:"Host (e.g. example.com)",...i.register(t+"."+c+".host")}),m&&((le=m[c])==null?void 0:le.host)&&e(xe,{children:(_e=(J=m[c])==null?void 0:J.host)==null?void 0:_e.message})]}),r(L,{isInvalid:!!(m&&((_t=m[c])==null?void 0:_t.path)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:h("hostsDialog.path")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.path.info")})]})})]})]}),e(Ae,{size:"sm",borderRadius:"4px",placeholder:"path (e.g. /vless)",...i.register(t+"."+c+".path")}),m&&((Xe=m[c])==null?void 0:Xe.path)&&e(xe,{children:(Je=(kt=m[c])==null?void 0:kt.path)==null?void 0:Je.message})]}),r(L,{height:"66px",children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:h("hostsDialog.security")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.security.info")})]})})]})]}),e(Ot,{size:"sm",...i.register(t+"."+c+".security"),children:Ws.map(te=>e("option",{value:te.value,children:te.title},te.value))})]}),r(L,{height:"66px",children:[e(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:e("span",{children:h("hostsDialog.alpn")})}),e(Ot,{size:"sm",...i.register(t+"."+c+".alpn"),children:Os.map(te=>e("option",{value:te.value,children:te.title},te.value))})]}),r(L,{height:"66px",children:[e(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:e("span",{children:h("hostsDialog.fingerprint")})}),e(Ot,{size:"sm",...i.register(t+"."+c+".fingerprint"),children:Hs.map(te=>e("option",{value:te.value,children:te.title},te.value))})]}),r(L,{isInvalid:!!(m&&((Ke=m[c])==null?void 0:Ke.fragment_setting)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:h("hostsDialog.fragment")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.fragment.info")}),e(d,{fontSize:"xs",pr:5,pt:2,pb:1,children:h("hostsDialog.fragment.info.examples")}),e(d,{fontSize:"xs",pr:5,children:"100-200,10-20,tlshello"}),e(d,{fontSize:"xs",pr:5,children:"100-200,10-20,1-3"}),e(d,{fontSize:"xs",pr:5,pt:"3",children:h("hostsDialog.fragment.info.attention")})]})})]})]}),e(Ae,{size:"sm",borderRadius:"4px",placeholder:"Fragment settings by pattern",...i.register(t+"."+c+".fragment_setting")}),m&&((et=m[c])==null?void 0:et.fragment_setting)&&e(xe,{children:(rt=(tt=m[c])==null?void 0:tt.fragment_setting)==null?void 0:rt.message})]}),r(L,{isInvalid:!!(m&&((k=m[c])==null?void 0:k.noise_setting)),children:[r(B,{display:"flex",pb:1,alignItems:"center",gap:1,justifyContent:"space-between",m:"0",children:[e("span",{children:h("hostsDialog.noise")}),r(Ie,{isLazy:!0,placement:"right",children:[e(ve,{children:e(Re,{})}),e(De,{children:r(ze,{p:2,children:[e(Ue,{}),e(Ee,{}),e(d,{fontSize:"xs",pr:5,children:h("hostsDialog.noise.info")}),e(d,{fontSize:"xs",pr:5,pt:2,pb:1,children:h("hostsDialog.noise.info.examples")}),e(d,{fontSize:"xs",pr:5,children:"rand:10-20,10-20"}),e(d,{fontSize:"xs",pr:5,children:"rand:10-20,10-20&base64:7nQBAAABAAAAAAAABnQtcmluZwZtc2VkZ2UDbmV0AAABAAE=,10-25"}),e(d,{fontSize:"xs",pr:5,pt:"3",children:h("hostsDialog.noise.info.attention")})]})})]})]}),e(Ae,{size:"sm",borderRadius:"4px",placeholder:"Noise settings by pattern",...i.register(t+"."+c+".noise_setting")}),m&&((T=m[c])==null?void 0:T.noise_setting)&&e(xe,{children:(se=(ee=m[c])==null?void 0:ee.noise_setting)==null?void 0:se.message})]}),e(L,{isInvalid:!!(m&&((fe=m[c])==null?void 0:fe.allowinsecure)),children:r(pt,{...i.register(t+"."+c+".allowinsecure"),name:t+"."+c+".allowinsecure",children:[e(B,{children:h("hostsDialog.allowinsecure")}),m&&((ke=m[c])==null?void 0:ke.allowinsecure)&&e(xe,{children:(nt=(G=m[c])==null?void 0:G.allowinsecure)==null?void 0:nt.message})]})}),r(L,{isInvalid:!!(m&&((ot=m[c])==null?void 0:ot.mux_enable)),children:[e(pt,{...i.register(t+"."+c+".mux_enable"),children:e(B,{children:h("hostsDialog.muxEnable")})}),m&&((st=m[c])==null?void 0:st.mux_enable)&&e(xe,{children:(it=(at=m[c])==null?void 0:at.mux_enable)==null?void 0:it.message})]}),r(L,{isInvalid:!!(m&&((je=m[c])==null?void 0:je.random_user_agent)),children:[e(pt,{...i.register(t+"."+c+".random_user_agent"),children:e(B,{children:h("hostsDialog.randomUserAgent")})}),m&&((or=m[c])==null?void 0:or.random_user_agent)&&e(xe,{children:(ar=(sr=m[c])==null?void 0:sr.random_user_agent)==null?void 0:ar.message})]})]},c)})]})})]},u.id)},u.id)}),e(P,{variant:"outline",w:"full",size:"sm",color:"",fontWeight:"normal",onClick:I,children:h("hostsDialog.addHost")})]})})]})},Js=()=>{const{isEditingHosts:t,onEditingHosts:n,refetchUsers:o,inbounds:s}=z(),{isLoading:a,hosts:i,fetchHosts:l,isPostLoading:p,setHosts:g}=$s(),w=we(),{t:x}=H(),[b,h]=f.exports.useState({});f.exports.useEffect(()=>{t&&l()},[t]);const m=Qe({resolver:xt(qs)});f.exports.useEffect(()=>{i&&t&&m.reset(i)},[i]);const I=()=>{h({}),n(!1)},C=u=>{g(u).then(()=>{w({title:x("hostsDialog.savedSuccess"),status:"success",isClosable:!0,position:"top",duration:3e3}),o()}).catch(c=>{var F,j,D,M,Y;(((F=c==null?void 0:c.response)==null?void 0:F.status)===409||((j=c==null?void 0:c.response)==null?void 0:j.status)===400)&&w({title:(M=(D=c.response)==null?void 0:D._data)==null?void 0:M.detail,status:"error",isClosable:!0,position:"top",duration:3e3}),((Y=c==null?void 0:c.response)==null?void 0:Y.status)===422&&Object.keys(c.response._data.detail).forEach(Z=>{w({title:c.response._data.detail[Z]+" ("+Z+")",status:"error",isClosable:!0,position:"top",duration:3e3})})})},A=u=>{b[String(u)]?delete b[String(u)]:b[String(u)]={},h({...b})};return r(ce,{isOpen:t,onClose:I,children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"fit-content",maxW:"3xl",children:[e(ue,{pt:6,children:e(ge,{color:"primary",children:e(Qs,{color:"white"})})}),e(pe,{mt:3}),e(me,{w:"440px",pb:3,pt:3,children:e(Vr,{...m,children:r("form",{onSubmit:m.handleSubmit(C),children:[e(d,{mb:3,opacity:.8,fontSize:"sm",children:x("hostsDialog.title")}),a&&x("hostsDialog.loading"),!a&&i&&(Object.keys(i).length>0?e(yt,{w:"full",allowToggle:!0,allowMultiple:!0,index:Object.keys(b).map(u=>parseInt(u)),children:e(N,{w:"full",children:Object.keys(i).map((u,c)=>e(Xs,{toggleAccordion:()=>A(c),isOpen:b[String(c)],hostKey:u},u))})}):"No inbound found. Please check your Xray config file."),e(_,{justifyContent:"flex-end",py:2,children:e(P,{variant:"solid",mt:"2",type:"submit",colorScheme:"primary",size:"sm",px:5,isLoading:p,disabled:p,children:x("hostsDialog.apply")})})]})})})]})]})},rr=(t,n,o)=>{if(t.response&&t.response._data){if(typeof t.response._data.detail=="string")return n({title:t.response._data.detail,status:"error",isClosable:!0,position:"top",duration:3e3});if(typeof t.response._data.detail=="object"&&o){Object.keys(t.response._data.detail).forEach(s=>o.setError(s,{message:t.response._data.detail[s]}));return}}return n({title:"Something went wrong!",status:"error",isClosable:!0,position:"top",duration:3e3})},nr=(t,n)=>n({title:t,status:"success",isClosable:!0,position:"top",duration:3e3}),Ks=({deleteCallback:t})=>{const{deleteNode:n,deletingNode:o,setDeletingNode:s}=St(),{t:a}=H(),i=we(),l=Jt(),p=()=>{s(null)},{isLoading:g,mutate:w}=mt(n,{onSuccess:()=>{nr(a("deleteNode.deleteSuccess",{name:o&&o.name}),i),s(null),l.invalidateQueries(ft),t&&t()},onError:x=>{rr(x,i)}});return r(ce,{isCentered:!0,isOpen:!!o,onClose:p,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"red",children:e(wt,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:a("deleteNode.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:a("deleteNode.prompt",{name:o.name})})})]}),r(Pe,{display:"flex",children:[e(P,{size:"sm",onClick:p,mr:3,w:"full",variant:"outline",children:a("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"red",onClick:()=>w(),leftIcon:g?e(He,{size:"xs"}):void 0,children:a("delete")})]})]})]})},Ct={baseStyle:{strokeWidth:"2px",w:4,h:4}},Cr=S(oo,Ct),ea=S(so,Ct),_r=S(ao,Ct),kr=S(Gr,Ct),ta=S(Gr,Ct),Zt=[{title:"No",value:"no_reset"},{title:"Daily",value:"day"},{title:"Weekly",value:"week"},{title:"Monthly",value:"month"},{title:"Annually",value:"year"}],Oe={active:{statusColor:"green",bandWidthColor:"primary",icon:Cr},connected:{statusColor:"green",bandWidthColor:"primary",icon:Cr},disabled:{statusColor:"gray",bandWidthColor:"gray",icon:ea},expired:{statusColor:"orange",bandWidthColor:"orange",icon:kr},on_hold:{statusColor:"purple",bandWidthColor:"purple",icon:ta},connecting:{statusColor:"orange",bandWidthColor:"orange",icon:kr},limited:{statusColor:"red",bandWidthColor:"red",icon:_r},error:{statusColor:"red",bandWidthColor:"red",icon:_r}},Nt=t=>{let n={status:"",time:""};if(t){$(t*1e3).utc().isAfter($().utc())?n.status="expires":n.status="expired";const o=[],s=$.duration($(t*1e3).utc().diff($()));s.years()!=0&&o.push(Math.abs(s.years())+" year"+(Math.abs(s.years())!=1?"s":"")),s.months()!=0&&o.push(Math.abs(s.months())+" month"+(Math.abs(s.months())!=1?"s":"")),s.days()!=0&&o.push(Math.abs(s.days())+" day"+(Math.abs(s.days())!=1?"s":"")),o.length===0&&(s.hours()!=0&&o.push(Math.abs(s.hours())+" hour"+(Math.abs(s.hours())!=1?"s":"")),s.minutes()!=0&&o.push(Math.abs(s.minutes())+" min"+(Math.abs(s.minutes())!=1?"s":""))),n.time=o.join(", ")}return n},ra=({expiryDate:t,status:n,compact:o=!1,showDetail:s=!0,extraText:a})=>{const{t:i}=H(),l=Nt(t),p=Oe[n].icon;return r(ie,{children:[r(E,{colorScheme:Oe[n].statusColor,rounded:"full",display:"inline-flex",px:3,py:1,columnGap:o?1:2,alignItems:"center",children:[e(p,{w:o?3:4}),s&&r(d,{textTransform:"capitalize",fontSize:o?".7rem":".875rem",lineHeight:o?"1rem":"1.25rem",fontWeight:"medium",letterSpacing:"tighter",children:[n&&i(`nodeModal.status.${n}`),a&&`: ${a}`]})]}),s&&t&&e(d,{display:"inline-block",fontSize:"xs",fontWeight:"medium",ml:"2",color:"gray.600",_dark:{color:"gray.400"},children:i(l.status,{time:l.time})})]})},ct=S(Me,{baseStyle:{bg:"white",_dark:{bg:"gray.700"}}}),na=S(Br,{baseStyle:{w:5,h:5}}),oa=S(io,{baseStyle:{w:5,h:5,strokeWidth:2}}),sa=({toggleAccordion:t,node:n})=>{const{updateNode:o,reconnectNode:s,setDeletingNode:a}=St(),{t:i}=H(),l=Jt(),p=we(),g=Qe({defaultValues:n,resolver:xt(an)}),w=a.bind(null,n),{isLoading:x,mutate:b}=mt(o,{onSuccess:()=>{nr("Node updated successfully",p),l.invalidateQueries(ft)},onError:C=>{rr(C,p,g)}}),{isLoading:h,mutate:m}=mt(s.bind(null,n),{onSuccess:()=>{l.invalidateQueries(ft)}}),I=h?"connecting":n.status?n.status:"error";return r(Ve,{border:"1px solid",_dark:{borderColor:"gray.600"},_light:{borderColor:"gray.200"},borderRadius:"4px",p:1,w:"full",children:[r(Ge,{px:2,borderRadius:"3px",onClick:t,children:[r(_,{w:"full",justifyContent:"space-between",pr:2,children:[e(d,{as:"span",fontWeight:"medium",fontSize:"sm",flex:"1",textAlign:"left",color:"gray.700",_dark:{color:"gray.300"},children:n.name}),r(_,{children:[n.xray_version&&e(E,{colorScheme:"blue",rounded:"full",display:"inline-flex",px:3,py:1,children:r(d,{textTransform:"capitalize",fontSize:"0.7rem",fontWeight:"medium",letterSpacing:"tighter",children:["Xray ",n.xray_version]})}),n.status&&e(ra,{status:I,compact:!0})]})]}),e(Vt,{})]}),r(Ye,{px:2,pb:2,children:[e(N,{pb:3,alignItems:"flex-start",children:I==="error"&&e(gt,{status:"error",size:"xs",children:r(v,{children:[r(_,{w:"full",children:[e(Ut,{w:4}),e(d,{marginInlineEnd:0,children:n.message})]}),e(_,{justifyContent:"flex-end",w:"full",children:e(P,{size:"sm","aria-label":"reconnect node",leftIcon:e(tr,{}),onClick:()=>m(),disabled:h,children:i(h?"nodes.reconnecting":"nodes.reconnect")})})]})})}),e(pn,{form:g,mutate:b,isLoading:x,submitBtnText:i("nodes.editNode"),btnLeftAdornment:e(re,{label:i("delete"),placement:"top",children:e(V,{colorScheme:"red",variant:"ghost",size:"sm","aria-label":"delete node",onClick:w,children:e(wt,{})})})})]})]})},aa=({toggleAccordion:t,resetAccordions:n})=>{const o=we(),{t:s}=H(),a=Jt(),{addNode:i}=St(),l=Qe({resolver:xt(an),defaultValues:{...ls(),add_as_new_host:!1}}),{isLoading:p,mutate:g}=mt(i,{onSuccess:()=>{nr(s("nodes.addNodeSuccess",{name:l.getValues("name")}),o),a.invalidateQueries(ft),l.reset(),n()},onError:w=>{rr(w,o,l)}});return r(Ve,{border:"1px solid",_dark:{borderColor:"gray.600"},_light:{borderColor:"gray.200"},borderRadius:"4px",p:1,w:"full",children:[e(Ge,{px:2,borderRadius:"3px",onClick:t,children:r(d,{as:"span",fontWeight:"medium",fontSize:"sm",flex:"1",textAlign:"left",color:"gray.700",_dark:{color:"gray.300"},display:"flex",gap:1,children:[e(oa,{display:"inline-block"})," ",e("span",{children:s("nodes.addNewMarzbanNode")})]})}),e(Ye,{px:2,py:4,children:e(pn,{form:l,mutate:g,isLoading:p,submitBtnText:s("nodes.addNode"),btnProps:{variant:"solid"},addAsHost:!0})})]})},pn=({form:t,mutate:n,isLoading:o,submitBtnText:s,btnProps:a={},btnLeftAdornment:i,addAsHost:l=!1})=>{var m,I,C,A,u,c,F,j,D,M,Y,Z,Q,ne,oe;const{t:p}=H(),[g,w]=f.exports.useState(!1),{data:x,isLoading:b}=Tt({queryKey:"node-settings",queryFn:()=>O("/node/settings")});function h(U){if(document.body.createTextRange){const W=document.body.createTextRange();W.moveToElementText(U),W.select()}else if(window.getSelection){const W=window.getSelection(),X=document.createRange();X.selectNodeContents(U),W.removeAllRanges(),W.addRange(X)}else console.warn("Could not select text in node: Unsupported browser.")}return e("form",{onSubmit:t.handleSubmit(U=>n(U)),children:r(N,{children:[x&&x.certificate&&e(gt,{status:"info",alignItems:"start",children:r(Yr,{display:"flex",flexDirection:"column",overflow:"hidden",children:[e("span",{children:p("nodes.connection-hint")}),r(_,{justify:"end",py:2,children:[e(P,{as:"a",colorScheme:"primary",size:"xs",download:"ssl_client_cert.pem",href:URL.createObjectURL(new Blob([x.certificate],{type:"text/plain"})),children:p("nodes.download-certificate")}),e(re,{placement:"top",label:p("nodes.show-certificate"),children:e(V,{"aria-label":p("nodes.show-certificate"),onClick:w.bind(null,!g),colorScheme:"whiteAlpha",color:"primary",size:"xs",children:g?e(co,{width:"15px"}):e(lo,{width:"15px"})})})]}),e(Zr,{in:g,animateOpacity:!0,children:e(d,{bg:"rgba(255,255,255,.5)",_dark:{bg:"rgba(255,255,255,.2)"},rounded:"md",p:"2",lineHeight:"1.2",fontSize:"10px",fontFamily:"Courier",whiteSpace:"pre",overflow:"auto",onClick:U=>{h(U.target)},children:x.certificate})})]})}),r(_,{w:"full",children:[e(L,{children:e(ct,{label:p("nodes.nodeName"),size:"sm",placeholder:"Marzban-S2",...t.register("name"),error:(C=(I=(m=t.formState)==null?void 0:m.errors)==null?void 0:I.name)==null?void 0:C.message})}),e(_,{px:1,children:e(ye,{name:"status",control:t.control,render:({field:U})=>e(re,{placement:"top",label:`${p("usersTable.status")}: `+(U.value!=="disabled"?p("active"):p("disabled")),textTransform:"capitalize",children:e(v,{mt:"6",children:e(zt,{colorScheme:"primary",isChecked:U.value!=="disabled",onChange:W=>{W.target.checked?U.onChange("connecting"):U.onChange("disabled")}})})},U.value)})})]}),e(_,{alignItems:"flex-start",w:"100%",children:e(v,{w:"100%",children:e(ct,{label:p("nodes.nodeAddress"),size:"sm",placeholder:"51.20.12.13",...t.register("address"),error:(c=(u=(A=t.formState)==null?void 0:A.errors)==null?void 0:u.address)==null?void 0:c.message})})}),r(_,{alignItems:"flex-start",w:"100%",children:[e(v,{children:e(ct,{label:p("nodes.nodePort"),size:"sm",placeholder:"62050",...t.register("port"),error:(D=(j=(F=t.formState)==null?void 0:F.errors)==null?void 0:j.port)==null?void 0:D.message})}),e(v,{children:e(ct,{label:p("nodes.nodeAPIPort"),size:"sm",placeholder:"62051",...t.register("api_port"),error:(Z=(Y=(M=t.formState)==null?void 0:M.errors)==null?void 0:Y.api_port)==null?void 0:Z.message})}),e(v,{children:e(ct,{label:p("nodes.usageCoefficient"),size:"sm",placeholder:"1",...t.register("usage_coefficient"),error:(oe=(ne=(Q=t.formState)==null?void 0:Q.errors)==null?void 0:ne.usage_coefficient)==null?void 0:oe.message})})]}),l&&e(L,{py:1,children:e(pt,{...t.register("add_as_new_host"),children:e(B,{m:0,children:p("nodes.addHostForEveryInbound")})})}),r(_,{w:"full",children:[i,e(P,{flexGrow:1,type:"submit",colorScheme:"primary",size:"sm",px:5,w:"full",isLoading:o,...a,children:s})]})]})})},ia=()=>{const{isEditingNodes:t,onEditingNodes:n}=z(),{t:o}=H(),[s,a]=f.exports.useState({}),{data:i,isLoading:l}=ln(),p=()=>{a({}),n(!1)},g=w=>{s[String(w)]?delete s[String(w)]:s[String(w)]={},a({...s})};return r(ie,{children:[r(ce,{isOpen:t,onClose:p,children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"fit-content",maxW:"3xl",children:[e(ue,{pt:6,children:e(ge,{color:"primary",children:e(na,{color:"white"})})}),e(pe,{mt:3}),r(me,{w:"440px",pb:6,pt:3,children:[e(d,{mb:3,opacity:.8,fontSize:"sm",children:o("nodes.title")}),l&&"loading...",e(yt,{w:"full",allowToggle:!0,index:Object.keys(s).map(w=>parseInt(w)),children:r(N,{w:"full",children:[!l&&i&&i.map((w,x)=>e(sa,{toggleAccordion:()=>g(x),node:w},w.name)),e(aa,{toggleAccordion:()=>g((i||[]).length),resetAccordions:()=>a({})})]})})]})]})]}),e(Ks,{deleteCallback:()=>a({})})]})};function la(t){const n=360/t,o=90,s=47,a=[];for(let i=0;i(h<0&&(h+=1),h>1&&(h-=1),h<.16666666666666666?x+(b-x)*6*h:h<.5?b:h<.6666666666666666?x+(b-x)*(.6666666666666666-h)*6:x),g=o<.5?o*(1+n):o+n-o*n,w=2*o-g;s=Math.round(p(w,g,t+1/3)*255),a=Math.round(p(w,g,t)*255),i=Math.round(p(w,g,t-1/3)*255)}const l=p=>{const g=p.toString(16);return g.length===1?"0"+g:g};return`#${l(s)}${l(a)}${l(i)}`}const Ir=({border:t,...n})=>{const{getInputProps:o,getRadioProps:s}=bo(n),a=We({base:"xs",md:"sm"});return r(v,{as:"label",children:[e("input",{...o()}),e(v,{...s(),minW:"48px",w:"full",h:"full",textAlign:"center",cursor:"pointer",fontSize:a,borderWidth:t?"1px":"0px",borderRadius:"md",_checked:{bg:"primary.500",color:"white",borderColor:"primary.500"},_focus:{boxShadow:"outline"},px:3,py:1,children:n.children})]})},mn=({onChange:t,defaultValue:n,...o})=>{const{t:s,i18n:a}=H();Ze();const i=We({base:["7h","1d","3d","1w"],md:["7h","1d","3d","1w","1m","3m"]}),l={h:"hour",d:"day",w:"week",m:"month",y:"year"},p=We({base:[{title:"hours",options:["1h","3h","6h","12h"]},{title:"days",options:["1d","2d","3d","4d"]},{title:"weeks",options:["1w","2w","3w","4w"]},{title:"months",options:["1m","2m","3m","6m"]}],md:[{title:"hours",options:["1h","2h","3h","6h","8h","12h"]},{title:"days",options:["1d","2d","3d","4d","5d","6d"]},{title:"weeks",options:["1w","2w","3w","4w"]},{title:"months",options:["1m","2m","3m","6m","8m"]}]}),{getRootProps:g,getRadioProps:w,setValue:x}=ho({name:"filter",defaultValue:n,onChange:U=>{if(U==="custom")return;m(),i.indexOf(U)>=0?(A(s("userDialog.custom")),c(!1)):(A(s("userDialog.custom")+` (${U})`),c(!0));const W=Number(U.substring(0,U.length-1)),X=l[U[U.length-1]];t(U,{start:$().utc().subtract(W,X).format("YYYY-MM-DDTHH:00:00")})}}),{isOpen:b,onOpen:h,onClose:m}=uo(),I=f.exports.useRef(null);po({ref:I,handler:m});const[C,A]=f.exports.useState(s("userDialog.custom")),[u,c]=f.exports.useState(!1),[F,j]=f.exports.useState(0),D=We({base:1,md:2}),M=We({base:"xs",md:"sm"}),[Y,Z]=f.exports.useState(null),[Q,ne]=f.exports.useState(null),oe=U=>{const[W,X]=U;Q&&!X?(Z(null),ne(null)):(Z(W),ne(X),W&&X&&(m(),t("custom",{start:$(W).format("YYYY-MM-DDT00:00:00"),end:$(X).format("YYYY-MM-DDT23:59:59")})))};return r(N,{...o,children:[F==0&&r(Kt,{...g(),gap:0,display:"flex",borderWidth:"1px",borderRadius:"md",minW:{base:"320px",md:"400px"},children:[i.map(U=>e(Ir,{...w({value:U}),children:U},U)),e(v,{onClick:()=>{Z(null),ne(null),h()},cursor:"pointer",borderRadius:"md",w:"full",fontSize:M,px:3,py:1,bg:u?"primary.500":"unset",color:u?"white":"unset",borderColor:u?"primary.500":"unset",children:r(_,{children:[e(d,{children:C}),e(Pt,{as:hr,boxSize:"18px"})]})})]}),F==1&&r(_,{onClick:h,cursor:"pointer",fontSize:M,borderRadius:"md",px:3,py:1,minW:{base:"320px",md:"400px"},borderWidth:"1px",children:[e(d,{w:"full",color:Y?"unset":"gray.500",children:Y?$(Y).format("YYYY-MM-DD (00:00)"):s("userDialog.startDate")}),e(Pt,{as:Qr,boxSize:"18px"}),e(d,{w:"full",color:Q?"unset":"gray.500",children:Q?$(Q).format("YYYY-MM-DD (23:59)"):s("userDialog.endDate")}),e(Pt,{as:hr,boxSize:"18px"})]}),e(N,{ref:I,marginTop:"40px !important",borderRadius:"md",borderWidth:"1px",position:"absolute",zIndex:"1",backgroundColor:"white",_dark:{backgroundColor:"gray.700"},display:b?"unset":"none",children:r(mo,{onChange:U=>j(U),children:[r(go,{children:[e(ur,{fontSize:M,children:s("userDialog.relative")}),e(ur,{fontSize:M,children:s("userDialog.absolute")})]}),r(fo,{children:[e(pr,{children:p.map(U=>e(N,{alignItems:"start",pl:2,pr:2,children:r(_,{justifyItems:"flex-start",mb:4,children:[e(d,{fontSize:M,minW:"60px",children:s("userDialog."+U.title)}),U.options.map(W=>e(Ir,{border:!0,...w({value:W}),children:W},W+".custom"))]})},U.title))}),e(pr,{className:"datepicker-panel",children:e(N,{children:e(qr,{locale:a.language.toLocaleLowerCase(),selected:Y,onChange:oe,startDate:Y,endDate:Q,selectsRange:!0,maxDate:new Date,monthsShown:D,peekNextMonth:!1,inline:!0})})})]})]})})]})};function Rt(t,n,o=[],s=[]){const a=ae(o.reduce((i,l)=>i+=l,0));return{series:o,options:{labels:s,chart:{width:"100%",height:"100%",type:"donut",animations:{enabled:!1}},title:{text:`${n}${a}`,align:"center",style:{fontWeight:"var(--chakra-fontWeights-medium)",color:t==="dark"?"var(--chakra-colors-gray-300)":void 0}},legend:{position:"bottom",labels:{colors:t==="dark"?"#CBD5E0":void 0,useSeriesColors:!1}},stroke:{width:1,colors:void 0},dataLabels:{formatter:(i,{seriesIndex:l,w:p})=>ae(p.config.series[l],1)},tooltip:{custom:({series:i,seriesIndex:l,dataPointIndex:p,w:g})=>{const w=ae(i[l],1),x=Math.max(i.reduce((h,m)=>h+=m),1),b=Math.round(i[l]/x*1e3)/10+"%";return` +
+ ${g.config.labels[l]}: ${b}, ${w} +
+ `}},colors:la(o.length)}}}const da=S(At,{baseStyle:{w:5,h:5}}),ha=()=>{const{isShowingNodesUsage:t,onShowingNodesUsage:n}=z(),{fetchNodesUsage:o}=St(),{t:s}=H(),[a,i]=f.exports.useState(!1),{colorMode:l}=Ze(),p=s("userDialog.total"),[g,w]=f.exports.useState(Rt(l,p)),[x,b]=f.exports.useState("1m"),h=C=>{o(C).then(A=>{const u=[],c=[];for(const F in A.usages){const j=A.usages[F];c.push(j.uplink+j.downlink),u.push(j.node_name)}w(Rt(l,p,c,u))})};f.exports.useEffect(()=>{t&&h({start:$().utc().subtract(30,"day").format("YYYY-MM-DDTHH:00:00")})},[t]);const m=()=>{n(!1),b("1m")},I=a;return r(ce,{isOpen:t,onClose:m,size:"2xl",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"full",children:[e(ue,{pt:6,children:r(_,{gap:2,children:[e(ge,{color:"primary",children:e(da,{color:"white"})}),e(d,{fontWeight:"semibold",fontSize:"lg",children:s("header.nodesUsage")})]})}),e(pe,{mt:3,disabled:I}),e(me,{children:r(N,{gap:4,children:[e(mn,{defaultValue:x,onChange:(C,A)=>{b(C),h(A)}}),e(v,{justifySelf:"center",w:"full",maxW:"300px",mt:"4",children:e(f.exports.Suspense,{fallback:e(Pr,{isIndeterminate:!0}),children:e(Xr,{options:g.options,series:g.series,type:"donut",height:"500px"})})})]})}),e(Pe,{mt:"3"})]})]})},vr=S(xo),ua=S(Qr,{baseStyle:{w:6,h:6,color:"gray.600",_dark:{color:"white"}}}),pa=S(yo,{baseStyle:{w:6,h:6,color:"gray.600",_dark:{color:"white"}}}),ma=S(Jr,{baseStyle:{w:5,h:5}}),ga=()=>{const{QRcodeLinks:t,setQRCode:n,setSubLink:o,subscribeUrl:s}=z(),a=t!==null,[i,l]=f.exports.useState(0),{t:p}=H(),g=()=>{n(null),o(null)},w=String(s).startsWith("/")?window.location.origin+s:String(s);return r(ce,{isOpen:a,onClose:g,children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",w:"fit-content",maxW:"3xl",children:[e(ue,{pt:6,children:e(ge,{color:"primary",children:e(ma,{color:"white"})})}),e(pe,{mt:3}),t&&r(me,{gap:{base:"20px",lg:"50px"},pr:{lg:"60px"},px:{base:"50px"},display:"flex",justifyContent:"center",flexDirection:{base:"column",lg:"row"},children:[s&&r(N,{children:[e(vr,{mx:"auto",size:300,p:"2",level:"L",includeMargin:!1,value:w,bg:"white"}),e(d,{display:"block",textAlign:"center",pb:3,mt:1,children:p("qrcodeDialog.sublink")})]}),r(v,{w:"300px",children:[e(So,{centerPadding:"0px",centerMode:!0,slidesToShow:1,slidesToScroll:1,dots:!1,afterChange:l,onInit:()=>l(0),nextArrow:e(V,{size:"sm",position:"absolute",display:"flex !important",_before:{content:'""'},"aria-label":"next",mr:"-4",children:e(ua,{})}),prevArrow:e(V,{size:"sm",position:"absolute",display:"flex !important",_before:{content:'""'},"aria-label":"prev",ml:"-4",children:e(pa,{})}),children:t.map((x,b)=>e(_,{children:e(vr,{mx:"auto",size:300,p:"2",level:"L",includeMargin:!1,value:x,bg:"white"})},b))}),r(d,{display:"block",textAlign:"center",pb:3,mt:1,children:[i+1," / ",t.length]})]})]})]})]})},fa=S($r,{baseStyle:{w:5,h:5}}),ba=()=>{const[t,n]=f.exports.useState(!1),{isResetingAllUsage:o,onResetAllUsage:s,resetAllUsage:a}=z(),{t:i}=H(),l=we(),p=()=>{s(!1)},g=()=>{n(!0),a().then(()=>{l({title:i("resetAllUsage.success"),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(()=>{l({title:i("resetAllUsage.error"),status:"error",isClosable:!0,position:"top",duration:3e3})}).finally(()=>{n(!1)})};return r(ce,{isCentered:!0,isOpen:o,onClose:p,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"red",children:e(fa,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:i("resetAllUsage.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:i("resetAllUsage.prompt")})]}),r(Pe,{display:"flex",children:[e(P,{size:"sm",onClick:p,mr:3,w:"full",variant:"outline",children:i("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"red",onClick:g,leftIcon:t?e(He,{size:"xs"}):void 0,children:i("reset")})]})]})]})},xa=S(Mt,{baseStyle:{w:5,h:5}}),ya=()=>{const[t,n]=f.exports.useState(!1),{resetUsageUser:o,resetDataUsage:s}=z(),{t:a}=H(),i=we(),l=()=>{z.setState({resetUsageUser:null})},p=()=>{o&&(n(!0),s(o).then(()=>{i({title:a("resetUserUsage.success",{username:o.username}),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(()=>{i({title:a("resetUserUsage.error"),status:"error",isClosable:!0,position:"top",duration:3e3})}).finally(()=>{n(!1)}))};return r(ce,{isCentered:!0,isOpen:!!o,onClose:l,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"blue",children:e(xa,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:a("resetUserUsage.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:a("resetUserUsage.prompt",{username:o.username})})})]}),r(Pe,{display:"flex",children:[e(P,{size:"sm",onClick:l,mr:3,w:"full",variant:"outline",children:a("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"blue",onClick:p,leftIcon:t?e(He,{size:"xs"}):void 0,children:a("reset")})]})]})]})},Sa=S(Mt,{baseStyle:{w:5,h:5}}),wa=()=>{const[t,n]=f.exports.useState(!1),{revokeSubscriptionUser:o,revokeSubscription:s}=z(),{t:a}=H(),i=we(),l=()=>{z.setState({revokeSubscriptionUser:null})},p=()=>{o&&(n(!0),s(o).then(()=>{i({title:a("revokeUserSub.success",{username:o.username}),status:"success",isClosable:!0,position:"top",duration:3e3})}).catch(()=>{i({title:a("revokeUserSub.error"),status:"error",isClosable:!0,position:"top",duration:3e3})}).finally(()=>{n(!1)}))};return r(ce,{isCentered:!0,isOpen:!!o,onClose:l,size:"sm",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),r(he,{mx:"3",children:[e(ue,{pt:6,children:e(ge,{color:"blue",children:e(Sa,{})})}),e(pe,{mt:3}),r(me,{children:[e(d,{fontWeight:"semibold",fontSize:"lg",children:a("revokeUserSub.title")}),o&&e(d,{mt:1,fontSize:"sm",_dark:{color:"gray.400"},color:"gray.600",children:e(Te,{components:{b:e("b",{})},children:a("revokeUserSub.prompt",{username:o.username})})})]}),r(Pe,{display:"flex",children:[e(P,{size:"sm",onClick:l,mr:3,w:"full",variant:"outline",children:a("cancel")}),e(P,{size:"sm",w:"full",colorScheme:"blue",onClick:p,leftIcon:t?e(He,{size:"xs"}):void 0,children:a("revoke")})]})]})]})},Ca=S(wo,{baseStyle:{strokeWidth:"2px",w:5,h:5}}),_a=({inbound:t,...n})=>{const{getCheckboxProps:o,getInputProps:s,getLabelProps:a,htmlProps:i}=en(n),l=s();return r(v,{as:"label",children:[e("input",{...l}),r(v,{w:"fll",position:"relative",...i,cursor:"pointer",borderRadius:"sm",border:"1px solid",borderColor:"gray.200",_dark:{borderColor:"gray.600"},display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden",_checked:{bg:"gray.50",outline:"2px",boxShadow:"outline",outlineColor:"primary.500",borderColor:"transparent",fontWeight:"medium",_dark:{bg:"gray.750",borderColor:"transparent"},"& p":{opacity:1}},__css:{"& p":{opacity:.8}},textTransform:"capitalize",px:3,py:2,fontWeight:"medium",...o(),children:[e(pt,{size:"sm",w:"full",maxW:"full",color:"gray.700",_dark:{color:"gray.300"},textTransform:"uppercase",colorScheme:"primary",className:"inbound-item",isChecked:l.checked,pointerEvents:"none",flexGrow:1,children:e(_,{justify:"space-between",w:"full",maxW:"calc(100% - 20px)",spacing:0,gap:2,overflow:"hidden",children:r(d,{isTruncated:!0,...a(),fontSize:"xs",children:[t.tag," ",r(d,{as:"span",children:["(",t.network,")"]})]})})}),t.tls&&t.tls!="none"&&e(E,{fontSize:"xs",opacity:".8",size:"xs",children:t.tls})]})]})},ka=({disabled:t,title:n,description:o,toggleAccordion:s,isSelected:a,...i})=>{const l=Xt(),{inbounds:p}=z(),{getCheckboxProps:g,getInputProps:w,getLabelProps:x,htmlProps:b}=en(i),h=w(),[m]=tn({name:[`inbounds.${n}`],control:l.control}),{getCheckboxProps:I}=Kr({value:m,onChange:c=>{if(l.setValue(`inbounds.${n}`,c),c.length===0){const F=l.getValues("selected_proxies");l.setValue("selected_proxies",F.filter(j=>j!==n)),s()}}}),C=m&&a&&(z.getState().inbounds.get(n)||[]).length!==m.length,A=(z.getState().inbounds.get(n)||[]).length>0,u=!a&&!A;return r(Ve,{isDisabled:!A,borderRadius:"md",borderStyle:"solid",border:"1px",borderColor:"gray.200",bg:u?"gray.100":"transparent",_dark:{borderColor:"gray.600",bg:u?"#364154":"transparent"},_checked:{bg:"gray.50",outline:"2px",boxShadow:"outline",outlineColor:"primary.500",borderColor:"transparent"},...g(),children:[r(v,{as:u?"span":"label",position:"relative",children:[C&&e(v,{position:"absolute",w:"2",h:"2",bg:"yellow.500",top:"-1",right:"-1",rounded:"full",zIndex:999}),e("input",{...h}),r(v,{w:"fll",position:"relative",...b,borderRadius:"md",cursor:u?"not-allowed":"pointer",_checked:{fontWeight:"medium",_dark:{bg:"gray.750",borderColor:"transparent"},"& > svg":{opacity:1,"&.checked":{display:"block"},"&.unchecked":{display:"none"}},"& p":{opacity:1}},__css:{"& > svg":{opacity:.3,"&.checked":{display:"none"},"&.unchecked":{display:"block"}},"& p":{opacity:.8}},textTransform:"capitalize",px:3,py:2,fontWeight:"medium",...g(),children:[e(Ge,{display:h.checked&&A?"block":"none",as:"span",className:"checked",color:"primary.200",position:"absolute",right:"3",top:"3",w:"auto",p:0,onClick:s,children:e(V,{size:"sm","aria-label":"inbound settings",children:e(Ca,{})})}),e(d,{fontSize:"sm",color:u?"gray.400":"gray.700",_dark:{color:u?"gray.500":"gray.300"},...x(),children:n}),e(d,{fontWeight:"medium",color:u?"gray.400":"gray.600",_dark:{color:u?"gray.500":"gray.400"},fontSize:"xs",children:o})]})]}),e(Ye,{px:2,pb:3,roundedBottom:"5px",pt:3,_dark:{bg:h.checked&&"gray.750"},children:r(N,{w:"full",rowGap:2,borderStyle:"solid",borderWidth:"1px",borderRadius:"md",pl:3,pr:3,pt:1.5,_dark:{bg:"gray.700"},children:[r(N,{alignItems:"flex-start",w:"full",children:[e(d,{fontSize:"sm",children:q("inbound")}),e(Kt,{gap:2,alignItems:"flex-start",w:"full",columns:1,spacing:1,children:(p.get(n)||[]).map(c=>e(_a,{...I({value:c.tag}),inbound:c},c.tag))})]}),n==="vmess"&&a&&e(N,{alignItems:"flex-start",w:"full",children:r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:"ID"}),e($e,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:q("userDialog.generatedByDefault"),...l.register("proxies.vmess.id")})]})}),n==="vless"&&a&&r(N,{alignItems:"flex-start",w:"full",children:[r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:"ID"}),e($e,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:q("userDialog.generatedByDefault"),...l.register("proxies.vless.id")})]}),r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:"Flow"}),e(Ne,{fontSize:"xs",size:"sm",borderRadius:"6px",...l.register("proxies.vless.flow"),children:js.map(c=>e("option",{value:c.value,children:c.title},c.title))})]})]}),n==="trojan"&&a&&e(N,{alignItems:"flex-start",w:"full",children:r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:q("password")}),e($e,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:q("userDialog.generatedByDefault"),...l.register("proxies.trojan.password")})]})}),n==="shadowsocks"&&a&&r(N,{alignItems:"flex-start",w:"full",children:[r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:q("password")}),e($e,{fontSize:"xs",size:"sm",borderRadius:"6px",pl:2,pr:2,placeholder:q("userDialog.generatedByDefault"),...l.register("proxies.shadowsocks.password")})]}),r(L,{height:"66px",children:[e(d,{fontSize:"sm",pb:1,children:q("userDialog.method")}),e(Ne,{fontSize:"xs",size:"sm",borderRadius:"6px",...l.register("proxies.shadowsocks.method"),children:Bs.map(c=>e("option",{value:c,children:c},c))})]})]})]})})]})},Ia=f.exports.forwardRef(({name:t,list:n,onChange:o,disabled:s,...a},i)=>{const l=Xt(),[p,g]=f.exports.useState([]),w=b=>{p.includes(b)?p.splice(p.indexOf(b),1):p.push(b),g([...p])},{getCheckboxProps:x}=Kr({value:a.value,onChange:b=>{var m;const h=b.filter(I=>!a.value.includes(I));h[0]&&l.setValue(`inbounds.${h[0]}`,(m=z.getState().inbounds.get(h[0]))==null?void 0:m.map(I=>I.tag)),g(p.filter(I=>b.find(C=>C===n[I].title))),o({target:{value:b,name:t}})}});return e(yt,{allowToggle:!0,index:p,children:e(Kt,{ref:i,gap:2,alignItems:"flex-start",columns:1,spacing:1,children:n.map((b,h)=>e(ka,{toggleAccordion:w.bind(null,h),disabled:s,title:b.title,description:b.description,isSelected:!!a.value.find(m=>m===b.title),...x({value:b.title})},b.title))})})}),va=S(Co,{baseStyle:{w:5,h:5}}),Da=S(rn,{baseStyle:{w:5,h:5}}),za=S(At,{baseStyle:{w:5,h:5}}),Ua=t=>({...t,data_limit:t.data_limit?Number((t.data_limit/1073741824).toFixed(5)):t.data_limit,on_hold_expire_duration:t.on_hold_expire_duration?Number(t.on_hold_expire_duration/(24*60*60)):t.on_hold_expire_duration,selected_proxies:Object.keys(t.proxies)}),Ht=()=>{const t=Object.fromEntries(z.getState().inbounds),n={};for(const o in t)n[o]=t[o].map(s=>s.tag);return{selected_proxies:Object.keys(t),data_limit:null,expire:null,username:"",data_limit_reset_strategy:"no_reset",status:"active",on_hold_expire_duration:null,note:"",inbounds:n,proxies:{vless:{id:"",flow:""},vmess:{id:""},trojan:{password:""},shadowsocks:{password:"",method:"chacha20-ietf-poly1305"}}}},Ea=(t,n)=>{const o=t.reduce((s,a)=>({...s,[a]:{}}),{});return n&&t.forEach(s=>{n[s]&&(o[s]=n[s])}),o},dt={username:y.string().min(1,{message:"Required"}),selected_proxies:y.array(y.string()).refine(t=>t.length>0,{message:"userDialog.selectOneProtocol"}),note:y.string().nullable(),proxies:y.record(y.string(),y.record(y.string(),y.any())).transform(t=>{const n=(o,s)=>{o&&o[s]===""&&delete o[s]};return n(t.vmess,"id"),n(t.vless,"id"),n(t.trojan,"password"),n(t.shadowsocks,"password"),n(t.shadowsocks,"method"),t}),data_limit:y.string().min(0).or(y.number()).nullable().transform(t=>t?Number((parseFloat(String(t))*1073741824).toFixed(5)):0),expire:y.number().nullable(),data_limit_reset_strategy:y.string(),inbounds:y.record(y.string(),y.array(y.string())).transform(t=>(Object.keys(t).forEach(n=>{var o;Array.isArray(t[n])&&!((o=t[n])!=null&&o.length)&&delete t[n]}),t))},Ra=y.discriminatedUnion("status",[y.object({status:y.literal("active"),...dt}),y.object({status:y.literal("disabled"),...dt}),y.object({status:y.literal("limited"),...dt}),y.object({status:y.literal("expired"),...dt}),y.object({status:y.literal("on_hold"),on_hold_expire_duration:y.coerce.number().min(.1,"Required").transform(t=>t*(24*60*60)),...dt})]),La=()=>{var Je,Ke,et,tt,rt;const{editingUser:t,isCreatingNewUser:n,onCreateUser:o,editUser:s,fetchUserUsage:a,onEditingUser:i,createUser:l,onDeletingUser:p}=z(),g=!!t,w=n||g,[x,b]=f.exports.useState(!1),[h,m]=f.exports.useState(""),I=we(),{t:C,i18n:A}=H(),{colorMode:u}=Ze(),[c,F]=f.exports.useState(!1),j=()=>{F(k=>!k)},D=Qe({defaultValues:Ht(),resolver:xt(Ra)});f.exports.useEffect(()=>z.subscribe(k=>k.inbounds,()=>{D.reset(Ht())}),[]);const[M,Y]=tn({control:D.control,name:["data_limit","status"]}),Z=C("userDialog.total"),[Q,ne]=f.exports.useState(Rt(u,Z)),[oe,U]=f.exports.useState("1m"),W=k=>{a(t,k).then(T=>{const ee=[],se=[];for(const fe in T.usages)se.push(T.usages[fe].used_traffic),ee.push(T.usages[fe].node_name);ne(Rt(u,Z,se,ee))})};f.exports.useEffect(()=>{t&&(D.reset(Ua(t)),W({start:$().utc().subtract(30,"day").format("YYYY-MM-DDTHH:00:00")}))},[t]);const X=k=>{b(!0);const T={edited:s,created:l},ee=g?"edited":"created";m(null);const{selected_proxies:se,...fe}=k;let ke={...fe,data_limit:k.data_limit,proxies:Ea(se,k.proxies),data_limit_reset_strategy:k.data_limit&&k.data_limit>0?k.data_limit_reset_strategy:"no_reset",status:k.status==="active"||k.status==="disabled"||k.status==="on_hold"?k.status:"active"};T[ee](ke).then(()=>{I({title:C(g?"userDialog.userEdited":"userDialog.userCreated",{username:k.username}),status:"success",isClosable:!0,position:"top",duration:3e3}),R()}).catch(G=>{var nt,ot,st,at,it;(((nt=G==null?void 0:G.response)==null?void 0:nt.status)===409||((ot=G==null?void 0:G.response)==null?void 0:ot.status)===400)&&m((at=(st=G==null?void 0:G.response)==null?void 0:st._data)==null?void 0:at.detail),((it=G==null?void 0:G.response)==null?void 0:it.status)===422&&Object.keys(G.response._data.detail).forEach(je=>{m(G==null?void 0:G.response._data.detail[je]),D.setError(je,{type:"custom",message:G.response._data.detail[je]})})}).finally(()=>{b(!1)})},R=()=>{D.reset(Ht()),o(!1),i(null),m(null),F(!1),U("1m")},K=()=>{z.setState({resetUsageUser:t})},le=()=>{z.setState({revokeSubscriptionUser:t})},J=x,_e=Y==="on_hold",[_t,Xe]=f.exports.useState(!1),kt=()=>{Xe(!0);let k="";const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ee=T.length;let se=0;for(;se<6;)k+=T.charAt(Math.floor(Math.random()*ee)),se+=1;return k};return r(ce,{isOpen:w,onClose:R,size:"2xl",children:[e(de,{bg:"blackAlpha.300",backdropFilter:"blur(10px)"}),e(Vr,{...D,children:e(he,{mx:"3",children:r("form",{onSubmit:D.handleSubmit(X),children:[e(ue,{pt:6,children:r(_,{gap:2,children:[e(ge,{color:"primary",children:g?e(Da,{color:"white"}):e(va,{color:"white"})}),e(d,{fontWeight:"semibold",fontSize:"lg",children:C(g?"userDialog.editUserTitle":"createNewUser")})]})}),e(pe,{mt:3,disabled:J}),r(me,{children:[r(Wr,{templateColumns:{base:"repeat(1, 1fr)",md:"repeat(2, 1fr)"},gap:3,children:[e(ut,{children:r(N,{justifyContent:"space-between",children:[r(Ft,{flexDirection:"column",gridAutoRows:"min-content",w:"full",children:[r(Ft,{flexDirection:"row",w:"full",gap:2,children:[r(L,{mb:"10px",children:[e(B,{children:r(Ft,{gap:2,alignItems:"center",children:[C("username"),!g&&e(tr,{cursor:"pointer",className:bt({"animate-spin":_t}),onClick:()=>{const k=kt();D.setValue("username",k),setTimeout(()=>{Xe(!1)},350)}})]})}),r(_,{children:[e(Me,{size:"sm",type:"text",borderRadius:"6px",error:(Je=D.formState.errors.username)==null?void 0:Je.message,disabled:J||g,...D.register("username")}),g&&e(_,{px:1,children:e(ye,{name:"status",control:D.control,render:({field:k})=>e(re,{placement:"top",label:"status: "+C(`status.${k.value}`),textTransform:"capitalize",children:e(v,{children:e(zt,{colorScheme:"primary",isChecked:k.value==="active",onChange:T=>{T.target.checked?k.onChange("active"):k.onChange("disabled")}})})})})})]})]}),!g&&r(L,{flex:"1",children:[e(B,{whiteSpace:"nowrap",children:C("userDialog.onHold")}),e(ye,{name:"status",control:D.control,render:({field:k})=>{const T=k.value;return e(ie,{children:T?e(zt,{colorScheme:"primary",isChecked:T==="on_hold",onChange:ee=>{ee.target.checked?k.onChange("on_hold"):k.onChange("active")}}):""})}})]})]}),r(L,{mb:"10px",children:[e(B,{children:C("userDialog.dataLimit")}),e(ye,{control:D.control,name:"data_limit",render:({field:k})=>{var T;return e(Me,{endAdornment:"GB",type:"number",size:"sm",borderRadius:"6px",onChange:k.onChange,disabled:J,error:(T=D.formState.errors.data_limit)==null?void 0:T.message,value:k.value?String(k.value):""})}})]}),e(Zr,{in:!!(M&&M>0),animateOpacity:!0,style:{width:"100%"},children:r(L,{height:"66px",children:[e(B,{children:C("userDialog.periodicUsageReset")}),e(ye,{control:D.control,name:"data_limit_reset_strategy",render:({field:k})=>e(Ne,{size:"sm",...k,disabled:J,bg:J?"gray.100":"transparent",_dark:{bg:J?"gray.600":"transparent"},sx:{option:{backgroundColor:u==="dark"?"#222C3B":"white"}},children:Zt.map(T=>e("option",{value:T.value,children:C("userDialog.resetStrategy"+T.title)},T.value))})})]})}),r(L,{mb:"10px",children:[e(B,{children:C(_e?"userDialog.onHoldExpireDuration":"userDialog.expiryDate")}),_e&&e(ye,{control:D.control,name:"on_hold_expire_duration",render:({field:k})=>{var T;return e(Me,{endAdornment:"Days",type:"number",size:"sm",borderRadius:"6px",onChange:ee=>{D.setValue("expire",null),k.onChange({target:{value:ee}})},disabled:J,error:(T=D.formState.errors.on_hold_expire_duration)==null?void 0:T.message,value:k.value?String(k.value):""})}}),!_e&&e(ye,{name:"expire",control:D.control,render:({field:k})=>{var fe;function T(ke){return $($(ke*1e3).utc()).toDate()}const{status:ee,time:se}=Nt(k.value);return r(ie,{children:[e(qr,{locale:A.language.toLocaleLowerCase(),dateFormat:C("dateFormat"),minDate:new Date,selected:k.value?T(k.value):void 0,onChange:ke=>{D.setValue("on_hold_expire_duration",null),k.onChange({target:{value:ke?$($(ke).set("hour",23).set("minute",59).set("second",59)).utc().valueOf()/1e3:0,name:"expire"}})},customInput:e(Me,{size:"sm",type:"text",borderRadius:"6px",clearable:!0,disabled:J,error:(fe=D.formState.errors.expire)==null?void 0:fe.message})}),k.value?e(_o,{children:C(ee,{time:se})}):""]})}})]}),r(L,{mb:"10px",isInvalid:!!D.formState.errors.note,children:[e(B,{children:C("userDialog.note")}),e(ko,{...D.register("note")}),e(Dt,{children:(et=(Ke=D.formState.errors)==null?void 0:Ke.note)==null?void 0:et.message})]})]}),h&&r(gt,{status:"error",display:{base:"none",md:"flex"},children:[e(Ut,{}),h]})]})}),e(ut,{children:r(L,{isInvalid:!!((tt=D.formState.errors.selected_proxies)!=null&&tt.message),children:[e(B,{children:C("userDialog.protocols")}),e(ye,{control:D.control,name:"selected_proxies",render:({field:k})=>e(Ia,{list:[{title:"vmess",description:C("userDialog.vmessDesc")},{title:"vless",description:C("userDialog.vlessDesc")},{title:"trojan",description:C("userDialog.trojanDesc")},{title:"shadowsocks",description:C("userDialog.shadowsocksDesc")}],disabled:J,...k})}),e(Dt,{children:C((rt=D.formState.errors.selected_proxies)==null?void 0:rt.message)})]})}),g&&c&&e(ut,{pt:6,colSpan:{base:1,md:2},children:r(N,{gap:4,children:[e(mn,{defaultValue:oe,onChange:(k,T)=>{U(k),W(T)}}),e(v,{width:{base:"100%",md:"70%"},justifySelf:"center",children:e(Xr,{options:Q.options,series:Q.series,type:"donut"})})]})})]}),h&&r(gt,{mt:"3",status:"error",display:{base:"flex",md:"none"},children:[e(Ut,{}),h]})]}),e(Pe,{mt:"3",children:r(_,{justifyContent:"space-between",w:"full",gap:3,flexDirection:{base:"column",sm:"row"},children:[e(_,{justifyContent:"flex-start",w:{base:"full",sm:"unset"},children:g&&r(ie,{children:[e(re,{label:C("delete"),placement:"top",children:e(V,{"aria-label":"Delete",size:"sm",onClick:()=>{p(t),R()},children:e(wt,{})})}),e(re,{label:C("userDialog.usage"),placement:"top",children:e(V,{"aria-label":"usage",size:"sm",onClick:j,children:e(za,{})})}),e(P,{onClick:K,size:"sm",children:C("userDialog.resetUsage")}),e(P,{onClick:le,size:"sm",children:C("userDialog.revokeSubscription")})]})}),e(_,{w:"full",maxW:{md:"50%",base:"full"},justify:"end",children:e(P,{type:"submit",size:"sm",px:"8",colorScheme:"primary",leftIcon:x?e(He,{size:"xs"}):void 0,disabled:J,children:C(g?"userDialog.editUser":"createUser")})})]})})]})})})]})},Aa=t=>f.exports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",width:782.04441,height:701.88002,viewBox:"0 0 782.04441 701.88002",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},f.exports.createElement("path",{d:"M609.48783,100.59015l-25.44631,6.56209L270.53735,187.9987,245.091,194.56079A48.17927,48.17927,0,0,0,210.508,253.17865L320.849,681.05606a48.17924,48.17924,0,0,0,58.61776,34.58317l.06572-.01695,364.26536-93.93675.06572-.01695a48.17923,48.17923,0,0,0,34.58309-58.6178l-110.341-427.87741A48.17928,48.17928,0,0,0,609.48783,100.59015Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M612.94784,114.00532l-30.13945,7.77236L278.68955,200.20385l-30.139,7.77223a34.30949,34.30949,0,0,0-24.6275,41.74308l110.341,427.87741a34.30946,34.30946,0,0,0,41.7431,24.62736l.06572-.01695,364.26536-93.93674.06619-.01707a34.30935,34.30935,0,0,0,24.627-41.7429l-110.341-427.87741A34.30938,34.30938,0,0,0,612.94784,114.00532Z",transform:"translate(-208.9778 -99.05999)",fill:"#fff"}),f.exports.createElement("path",{d:"M590.19,252.56327,405.917,300.08359a8.01411,8.01411,0,0,1-4.00241-15.52046l184.273-47.52033A8.01412,8.01412,0,0,1,590.19,252.56327Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M628.955,270.49906,412.671,326.27437a8.01411,8.01411,0,1,1-4.00241-15.52046l216.284-55.77531a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M620.45825,369.93676l-184.273,47.52032a8.01411,8.01411,0,1,1-4.00242-15.52046l184.273-47.52032a8.01411,8.01411,0,1,1,4.00241,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M659.22329,387.87255l-216.284,55.77531a8.01411,8.01411,0,1,1-4.00242-15.52046l216.284-55.77531a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M650.72653,487.31025l-184.273,47.52033a8.01412,8.01412,0,0,1-4.00242-15.52047l184.273-47.52032a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M689.49156,505.246l-216.284,55.77532a8.01412,8.01412,0,1,1-4.00241-15.52047l216.284-55.77531a8.01411,8.01411,0,0,1,4.00242,15.52046Z",transform:"translate(-208.9778 -99.05999)",fill:"#f2f2f2"}),f.exports.createElement("path",{d:"M374.45884,348.80871l-65.21246,16.817a3.847,3.847,0,0,1-4.68062-2.76146L289.5963,304.81607a3.847,3.847,0,0,1,2.76145-4.68061l65.21247-16.817a3.847,3.847,0,0,1,4.68061,2.76145l14.96947,58.04817A3.847,3.847,0,0,1,374.45884,348.80871Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M404.72712,466.1822l-65.21247,16.817a3.847,3.847,0,0,1-4.68062-2.76146l-14.96946-58.04816A3.847,3.847,0,0,1,322.626,417.509l65.21246-16.817a3.847,3.847,0,0,1,4.68062,2.76145l14.96946,58.04817A3.847,3.847,0,0,1,404.72712,466.1822Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M434.99539,583.55569l-65.21246,16.817a3.847,3.847,0,0,1-4.68062-2.76145l-14.96946-58.04817a3.847,3.847,0,0,1,2.76145-4.68062l65.21247-16.817a3.847,3.847,0,0,1,4.68061,2.76146l14.96947,58.04816A3.847,3.847,0,0,1,434.99539,583.55569Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M863.63647,209.0517H487.31811a48.17928,48.17928,0,0,0-48.125,48.12512V699.05261a48.17924,48.17924,0,0,0,48.125,48.12507H863.63647a48.17924,48.17924,0,0,0,48.125-48.12507V257.17682A48.17928,48.17928,0,0,0,863.63647,209.0517Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M863.637,222.90589H487.31811a34.30948,34.30948,0,0,0-34.271,34.27093V699.05261a34.30947,34.30947,0,0,0,34.271,34.27088H863.637a34.30936,34.30936,0,0,0,34.27051-34.27088V257.17682A34.30937,34.30937,0,0,0,863.637,222.90589Z",transform:"translate(-208.9778 -99.05999)",fill:"#fff"}),f.exports.createElement("circle",{cx:694.19401,cy:614.02963,r:87.85039,fill:"#3182CE"}),f.exports.createElement("path",{d:"M945.18722,701.63087H914.63056V671.07421a11.45875,11.45875,0,0,0-22.9175,0v30.55666H861.1564a11.45875,11.45875,0,0,0,0,22.9175h30.55666V755.105a11.45875,11.45875,0,1,0,22.9175,0V724.54837h30.55666a11.45875,11.45875,0,0,0,0-22.9175Z",transform:"translate(-208.9778 -99.05999)",fill:"#fff"}),f.exports.createElement("path",{d:"M807.00068,465.71551H616.699a8.01412,8.01412,0,1,1,0-16.02823H807.00068a8.01412,8.01412,0,0,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M840.05889,492.76314H616.699a8.01412,8.01412,0,1,1,0-16.02823H840.05889a8.01411,8.01411,0,1,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M807.00068,586.929H616.699a8.01412,8.01412,0,1,1,0-16.02823H807.00068a8.01411,8.01411,0,0,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M840.05889,613.97661H616.699a8.01412,8.01412,0,1,1,0-16.02823H840.05889a8.01412,8.01412,0,1,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M574.07028,505.04162H506.72434a3.847,3.847,0,0,1-3.84278-3.84278V441.25158a3.847,3.847,0,0,1,3.84278-3.84278h67.34594a3.847,3.847,0,0,1,3.84278,3.84278v59.94726A3.847,3.847,0,0,1,574.07028,505.04162Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M574.07028,626.25509H506.72434a3.847,3.847,0,0,1-3.84278-3.84278V562.46505a3.847,3.847,0,0,1,3.84278-3.84278h67.34594a3.847,3.847,0,0,1,3.84278,3.84278v59.94726A3.847,3.847,0,0,1,574.07028,626.25509Z",transform:"translate(-208.9778 -99.05999)",fill:"#e6e6e6"}),f.exports.createElement("path",{d:"M807.21185,330.781H666.91017a8.01411,8.01411,0,0,1,0-16.02823H807.21185a8.01411,8.01411,0,0,1,0,16.02823Z",transform:"translate(-208.9778 -99.05999)",fill:"#ccc"}),f.exports.createElement("path",{d:"M840.27007,357.82862H666.91017a8.01411,8.01411,0,1,1,0-16.02822h173.3599a8.01411,8.01411,0,0,1,0,16.02822Z",transform:"translate(-208.9778 -99.05999)",fill:"#ccc"}),f.exports.createElement("path",{d:"M635.85911,390.6071H506.51316a3.847,3.847,0,0,1-3.84277-3.84277V285.81706a3.847,3.847,0,0,1,3.84277-3.84277H635.85911a3.847,3.847,0,0,1,3.84277,3.84277V386.76433A3.847,3.847,0,0,1,635.85911,390.6071Z",transform:"translate(-208.9778 -99.05999)",fill:"#ccc"})),Ta=t=>{if(!t)return null;const n=new Date(`${t}Z`);return Math.floor(n.getTime()/1e3)},Dr=({lastOnline:t})=>{const n=Math.floor(Date.now()/1e3),o=Ta(t);return!t||o===null?e(v,{border:"1px solid",borderColor:"gray.400",_dark:{borderColor:"gray.600"},className:"circle"}):n-o<=60?e(v,{bg:"green.300",_dark:{bg:"green.500"},className:"circle pulse green"}):e(v,{bg:"gray.400",_dark:{bg:"gray.600"},className:"circle"})},Ma=t=>{if(!t)return null;const n=new Date(t+"Z");return Math.floor(n.getTime()/1e3)},zr=({lastOnline:t})=>{const n=Math.floor(Date.now()/1e3),o=Ma(t),s=o?n-o:null,a=o?Nt(o):{status:"",time:"Not Connected Yet"};return e(d,{display:"inline-block",fontSize:"xs",fontWeight:"medium",ml:"2",color:"gray.600",_dark:{color:"gray.400"},children:s&&s<=60?"Online":s?`${a.time} ago`:a.time})},Na=S(Io,{baseStyle:{w:4,h:4}}),Pa=S(vo,{baseStyle:{w:4,h:4}}),Ur=5;function Fa(t,n,o){if(o0&&(a[0]=0,a[1]="prev-more"),a[a.length-1]{const{filters:t,onFilterChange:n,users:{total:o}}=z(),{limit:s,offset:a}=t,i=(a||0)/(s||1),l=Math.ceil(o/(s||1)),p=Fa(l,i,7),g=b=>{n({...t,offset:b*s})},w=b=>{n({...t,limit:parseInt(b.target.value)}),os(b.target.value)},{t:x}=H();return r(_,{justifyContent:"space-between",mt:4,w:"full",display:"flex",columnGap:{lg:4,md:0},rowGap:{md:0,base:4},flexDirection:{md:"row",base:"column"},children:[e(v,{order:{base:2,md:1},children:r(_,{children:[r(Ne,{minW:"60px",value:s,onChange:w,size:"sm",rounded:"md",children:[e("option",{children:"10"}),e("option",{children:"20"}),e("option",{children:"30"})]}),e(d,{whiteSpace:"nowrap",fontSize:"sm",children:x("itemsPerPage")})]})}),r(Do,{size:"sm",isAttached:!0,variant:"outline",order:{base:1,md:2},children:[e(P,{leftIcon:e(Na,{}),onClick:g.bind(null,i-1),isDisabled:i===0||l===0,children:x("previous")}),p.map(b=>typeof b=="string"?e(P,{children:"..."},b):e(P,{variant:b===i?"solid":"outline",onClick:g.bind(null,b),children:b+1},b)),e(P,{rightIcon:e(Pa,{}),onClick:g.bind(null,i+1),isDisabled:i+1===l||l===0,children:x("next")})]})]})},jt=({expiryDate:t,status:n,compact:o=!1,showDetail:s=!0,extraText:a})=>{const{t:i}=H(),l=Nt(t),p=Oe[n].icon;return r(ie,{children:[r(E,{colorScheme:Oe[n].statusColor,rounded:"full",display:"inline-flex",px:3,py:1,columnGap:o?1:2,alignItems:"center",children:[e(p,{w:o?3:4}),s&&r(d,{textTransform:"capitalize",fontSize:o?".7rem":".875rem",lineHeight:o?"1rem":"1.25rem",fontWeight:"medium",letterSpacing:"tighter",children:[n&&i(`status.${n}`),a&&`: ${a}`]})]}),s&&t&&e(d,{display:"inline-block",fontSize:"xs",fontWeight:"medium",ml:"2",color:"gray.600",_dark:{color:"gray.400"},children:i(l.status,{time:l.time})})]})},Oa=S(Aa),qe={baseStyle:{w:{base:4,md:5},h:{base:4,md:5}}},Ha=S(zo,qe),ja=S(nn,qe),Er=S(Uo,qe),Ba=S(qt,qe),$a=S(Jr,qe),Va=S(rn,qe),Ga=S(nn,{baseStyle:{width:"15px",height:"15px"}}),Ya=t=>{for(var n=0;n{const{used:n,total:o,dataLimitResetStrategy:s,totalUsedTraffic:a}=t,i=o===0||o===null;return e(_,{justifyContent:"space-between",fontSize:"xs",fontWeight:"medium",color:"gray.600",_dark:{color:"gray.400"},children:r(d,{children:[ae(n)," /"," ",i?e(d,{as:"span",fontFamily:"system-ui",children:"\u221E"}):ae(o)]})})},Rr=t=>{const{used:n,total:o,dataLimitResetStrategy:s,totalUsedTraffic:a,...i}=t,l=o===0||o===null,p=!l&&n/o*100>=100;return r(ie,{children:[e(Eo,{orientation:"horizontal",value:l?100:Math.min(n/o*100,100),colorScheme:p?"red":"primary",...i,children:e(Ro,{h:"6px",borderRadius:"full",children:e(Lo,{borderRadius:"full"})})}),r(_,{justifyContent:"space-between",fontSize:"xs",fontWeight:"medium",color:"gray.600",_dark:{color:"gray.400"},children:[r(d,{children:[ae(n)," /"," ",l?e(d,{as:"span",fontFamily:"system-ui",children:"\u221E"}):ae(o)+(s&&s!=="no_reset"?" "+q("userDialog.resetStrategy"+Ya(s)):"")]}),r(d,{children:[q("usersTable.total"),": ",ae(a)]})]})]})},ht=({sort:t,column:n})=>t.includes(n)?e(Ga,{transform:t.startsWith("-")?void 0:"rotate(180deg)"}):null,Qa=t=>{const{filters:n,users:{users:o},users:s,onEditingUser:a,onFilterChange:i}=z(),{t:l}=H(),[p,g]=f.exports.useState(void 0),w=We({base:120,lg:72})||72,[x,b]=f.exports.useState(`${w}px`),h=We({base:!1,md:!0});f.exports.useEffect(()=>{const u=()=>{const c=document.querySelectorAll("#filters")[0];b(`${c.offsetHeight}px`)};window.addEventListener("scroll",u)},[]);const m=o.length!==s.total,I=u=>{let c=n.sort;c.includes(u)?c.startsWith("-")?c="-created_at":c="-"+u:c=u,i({sort:c})},C=u=>{i({status:u.target.value.length>0?u.target.value:void 0})},A=u=>{g(u===p?void 0:u)};return r(v,{id:"users-table",overflowX:{base:"unset",md:"unset"},children:[e(yt,{allowMultiple:!0,display:{base:"block",md:"none"},index:p,children:r(mr,{orientation:"vertical",zIndex:"docked",...t,children:[e(gr,{zIndex:"docked",position:"relative",children:r(Be,{children:[e(Le,{position:"sticky",top:x,minW:"120px",pl:4,pr:4,cursor:"pointer",onClick:I.bind(null,"username"),children:r(_,{children:[e("span",{children:l("users")}),e(ht,{sort:n.sort,column:"username"})]})}),e(Le,{position:"sticky",top:x,minW:"50px",pl:0,pr:0,w:"140px",cursor:"pointer",children:r(_,{spacing:0,position:"relative",children:[r(d,{position:"absolute",_dark:{bg:"gray.750"},_light:{bg:"#F9FAFB"},userSelect:"none",pointerEvents:"none",zIndex:1,w:"100%",children:[l("usersTable.status"),n.status?": "+n.status:""]}),r(Ne,{value:n.sort,fontSize:"xs",fontWeight:"extrabold",textTransform:"uppercase",cursor:"pointer",p:0,border:0,h:"auto",w:"auto",icon:e(ie,{}),_focusVisible:{border:"0 !important"},onChange:C,children:[e("option",{}),e("option",{children:"active"}),e("option",{children:"on_hold"}),e("option",{children:"disabled"}),e("option",{children:"limited"}),e("option",{children:"expired"})]})]})}),e(Le,{position:"sticky",top:x,minW:"100px",cursor:"pointer",pr:0,onClick:I.bind(null,"used_traffic"),children:r(_,{children:[e("span",{children:l("usersTable.dataUsage")}),e(ht,{sort:n.sort,column:"used_traffic"})]})}),e(Le,{position:"sticky",top:x,minW:"32px",w:"32px",p:0,cursor:"pointer"})]})}),e(fr,{children:!h&&(o==null?void 0:o.map((u,c)=>r(f.exports.Fragment,{children:[r(Be,{onClick:A.bind(null,c),cursor:"pointer",children:[e(be,{borderBottom:0,minW:"100px",pl:4,pr:4,maxW:"calc(100vw - 50px - 32px - 100px - 48px)",children:r("div",{className:"flex-status",children:[e(Dr,{lastOnline:u.online_at}),e(d,{isTruncated:!0,children:u.username})]})}),e(be,{borderBottom:0,minW:"50px",pl:0,pr:0,children:e(jt,{compact:!0,showDetail:!1,expiryDate:u.expire,status:u.status})}),e(be,{borderBottom:0,minW:"100px",pr:0,children:e(Za,{totalUsedTraffic:u.lifetime_used_traffic,dataLimitResetStrategy:u.data_limit_reset_strategy,used:u.used_traffic,total:u.data_limit,colorScheme:Oe[u.status].bandWidthColor})}),e(be,{p:0,borderBottom:0,w:"32px",minW:"32px",children:e(ja,{color:"gray.600",_dark:{color:"gray.400"},transition:"transform .2s ease-out",transform:p===c?"rotate(180deg)":"0deg"})})]}),e(Be,{className:"collapsible",onClick:A.bind(null,c),children:e(be,{p:0,colSpan:4,children:r(Ve,{border:0,children:[e(Ge,{display:"none"}),e(Ye,{border:0,cursor:"pointer",px:6,py:3,children:r(N,{justifyContent:"space-between",spacing:"4",children:[r(N,{alignItems:"flex-start",w:"full",spacing:-1,children:[e(d,{textTransform:"capitalize",fontSize:"xs",fontWeight:"bold",color:"gray.600",_dark:{color:"gray.400"},children:l("usersTable.dataUsage")}),e(v,{width:"full",minW:"230px",children:e(Rr,{totalUsedTraffic:u.lifetime_used_traffic,dataLimitResetStrategy:u.data_limit_reset_strategy,used:u.used_traffic,total:u.data_limit,colorScheme:Oe[u.status].bandWidthColor})})]}),r(_,{w:"full",justifyContent:"space-between",children:[r(v,{width:"full",children:[e(jt,{compact:!0,expiryDate:u.expire,status:u.status}),e(zr,{lastOnline:u.online_at})]}),r(_,{children:[e(Lr,{user:u}),e(re,{label:l("userDialog.editUser"),placement:"top",children:e(V,{p:"0 !important","aria-label":"Edit user",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},onClick:F=>{F.stopPropagation(),a(u)},children:e(Va,{})})})]})]})]})})]})})})]},u.username)))})]})}),r(mr,{orientation:"vertical",display:{base:"none",md:"table"},...t,children:[e(gr,{zIndex:"docked",position:"relative",children:r(Be,{children:[e(Le,{position:"sticky",top:{base:"unset",md:x},minW:"140px",cursor:"pointer",onClick:I.bind(null,"username"),children:r(_,{children:[e("span",{children:l("username")}),e(ht,{sort:n.sort,column:"username"})]})}),e(Le,{position:"sticky",top:{base:"unset",md:x},width:"400px",minW:"150px",cursor:"pointer",children:r(_,{position:"relative",gap:"5px",children:[r(d,{_dark:{bg:"gray.750"},_light:{bg:"#F9FAFB"},userSelect:"none",pointerEvents:"none",zIndex:1,children:[l("usersTable.status"),n.status?": "+n.status:""]}),e(d,{children:"/"}),e(ht,{sort:n.sort,column:"expire"}),e(_,{onClick:I.bind(null,"expire"),children:e(d,{children:"Sort by expire"})}),r(Ne,{fontSize:"xs",fontWeight:"extrabold",textTransform:"uppercase",cursor:"pointer",position:"absolute",p:0,left:"-40px",border:0,h:"auto",w:"auto",icon:e(ie,{}),_focusVisible:{border:"0 !important"},value:n.sort,onChange:C,children:[e("option",{}),e("option",{children:"active"}),e("option",{children:"on_hold"}),e("option",{children:"disabled"}),e("option",{children:"limited"}),e("option",{children:"expired"})]})]})}),e(Le,{position:"sticky",top:{base:"unset",md:x},width:"350px",minW:"230px",cursor:"pointer",onClick:I.bind(null,"used_traffic"),children:r(_,{children:[e("span",{children:l("usersTable.dataUsage")}),e(ht,{sort:n.sort,column:"used_traffic"})]})}),e(Le,{position:"sticky",top:{base:"unset",md:x},width:"200px",minW:"180px"})]})}),r(fr,{children:[h&&(o==null?void 0:o.map((u,c)=>r(Be,{className:bt("interactive",{"last-row":c===o.length-1}),onClick:()=>a(u),children:[e(be,{minW:"140px",children:r("div",{className:"flex-status",children:[e(Dr,{lastOnline:u.online_at}),u.username,e(zr,{lastOnline:u.online_at})]})}),e(be,{width:"400px",minW:"150px",children:e(jt,{expiryDate:u.expire,status:u.status})}),e(be,{width:"350px",minW:"230px",children:e(Rr,{totalUsedTraffic:u.lifetime_used_traffic,dataLimitResetStrategy:u.data_limit_reset_strategy,used:u.used_traffic,total:u.data_limit,colorScheme:Oe[u.status].bandWidthColor})}),e(be,{width:"200px",minW:"180px",children:e(Lr,{user:u})})]},u.username))),o.length==0&&e(Be,{children:e(be,{colSpan:4,children:e(qa,{isFiltered:m})})})]})]}),e(Wa,{})]})},Lr=({user:t})=>{const{setQRCode:n,setSubLink:o}=z(),s=t.links.join(`\r +`),[a,i]=f.exports.useState([-1,!1]);return f.exports.useEffect(()=>{a[1]&&setTimeout(()=>{i([-1,!1])},1e3)},[a]),r(_,{justifyContent:"flex-end",onClick:l=>{l.preventDefault(),l.stopPropagation()},children:[e(br,{text:t.subscription_url.startsWith("/")?window.location.origin+t.subscription_url:t.subscription_url,onCopy:()=>{i([0,!0])},children:e("div",{children:e(re,{label:a[0]==0&&a[1]?q("usersTable.copied"):q("usersTable.copyLink"),placement:"top",children:e(V,{p:"0 !important","aria-label":"copy subscription link",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},children:a[0]==0&&a[1]?e(Er,{}):e(Ba,{})})})})}),e(br,{text:s,onCopy:()=>{i([1,!0])},children:e("div",{children:e(re,{label:a[0]==1&&a[1]?q("usersTable.copied"):q("usersTable.copyConfigs"),placement:"top",children:e(V,{p:"0 !important","aria-label":"copy configs",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},children:a[0]==1&&a[1]?e(Er,{}):e(Ha,{})})})})}),e(re,{label:"QR Code",placement:"top",children:e(V,{p:"0 !important","aria-label":"qr code",bg:"transparent",_dark:{_hover:{bg:"gray.700"}},size:{base:"sm",md:"md"},onClick:()=>{n(t.links),o(t.subscription_url)},children:e($a,{})})})]})},qa=({isFiltered:t})=>{const{onCreateUser:n}=z();return r(v,{padding:"5",py:"8",display:"flex",alignItems:"center",flexDirection:"column",gap:4,w:"full",children:[e(Oa,{maxHeight:"200px",maxWidth:"200px",_dark:{'path[fill="#fff"]':{fill:"gray.800"},'path[fill="#f2f2f2"], path[fill="#e6e6e6"], path[fill="#ccc"]':{fill:"gray.700"},'circle[fill="#3182CE"]':{fill:"primary.300"}},_light:{'path[fill="#f2f2f2"], path[fill="#e6e6e6"], path[fill="#ccc"]':{fill:"gray.300"},'circle[fill="#3182CE"]':{fill:"primary.500"}}}),e(d,{fontWeight:"medium",color:"gray.600",_dark:{color:"gray.400"},children:t?q("usersTable.noUserMatched"):q("usersTable.noUser")}),!t&&e(P,{size:"sm",colorScheme:"primary",onClick:()=>n(!0),children:q("createUser")})]})},Xa=()=>(f.exports.useEffect(()=>{z.getState().refetchUsers(),as()},[]),r(N,{justifyContent:"space-between",minH:"100vh",p:"6",rowGap:4,children:[r(v,{w:"full",children:[e(Fs,{}),e(rs,{mt:"4"}),e(ws,{}),e(Qa,{}),e(La,{}),e(bs,{}),e(ga,{}),e(Js,{}),e(ya,{}),e(wa,{}),e(ia,{}),e(ha,{}),e(ba,{}),e(fs,{})]}),e(dn,{})]})),Ja=t=>f.exports.createElement("svg",{viewBox:"0 0 747 747",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},f.exports.createElement("path",{d:"M746.671 209.652V77.6572C746.671 72.9384 743.827 68.6832 739.468 66.8811C735.108 65.0738 730.093 66.0739 726.754 69.4072L579.354 216.807C577.453 202.386 570.203 189.203 559.037 179.87C547.875 170.542 533.615 165.744 519.083 166.432C504.551 167.12 490.807 173.24 480.573 183.583L414.375 249.776C412.417 235.391 405.141 222.25 393.985 212.959C382.823 203.662 368.594 198.88 354.083 199.552C339.578 200.224 325.849 206.302 315.594 216.588L274.343 257.828L19.9167 3.41515C16.5781 0.0818157 11.5625 -0.918184 7.20306 0.889149C2.84373 2.69648 0 6.94648 0 11.6651V143.649C0 146.743 1.22917 149.712 3.41667 151.899L191.843 340.339L3.41667 528.753C1.2292 530.94 0 533.909 0 537.003V668.997C0 673.716 2.84373 677.971 7.20306 679.773C11.5624 681.581 16.578 680.58 19.9167 677.247L167.317 529.847C169.285 544.233 176.561 557.358 187.718 566.65C198.869 575.947 213.098 580.728 227.603 580.066C242.103 579.404 255.838 573.342 266.098 563.071L332.295 496.874V496.879C334.259 511.264 341.535 524.395 352.691 533.686C363.853 542.977 378.082 547.759 392.587 547.092C407.093 546.421 420.822 540.348 431.077 530.066L472.327 488.826L726.754 743.239C728.941 745.427 731.91 746.656 735.004 746.656C736.535 746.661 738.056 746.359 739.473 745.77C743.832 743.963 746.671 739.708 746.671 734.989V602.994C746.671 599.901 745.442 596.932 743.254 594.744L554.827 406.318L743.254 217.904H743.259C745.447 215.717 746.676 212.748 746.676 209.654L746.671 209.652ZM23.3373 39.8118L257.844 274.318L208.328 323.818L23.3413 138.818L23.3373 39.8118ZM723.337 706.825L488.831 472.318L538.347 422.818L723.333 607.818L723.337 706.825ZM23.3373 541.825L332.097 233.078C338.764 226.719 347.624 223.172 356.843 223.172C366.056 223.172 374.916 226.719 381.588 233.078C388.151 239.641 391.838 248.548 391.838 257.828C391.838 267.114 388.151 276.016 381.588 282.577L23.3347 640.831L23.3373 541.825ZM249.604 546.575C240.755 555.419 227.864 558.872 215.781 555.638C203.703 552.398 194.265 542.961 191.027 530.883C187.792 518.8 191.245 505.91 200.089 497.06L497.076 200.074C505.92 191.23 518.811 187.772 530.893 191.011C542.971 194.246 552.409 203.678 555.648 215.76C558.888 227.839 555.434 240.73 546.591 249.572L249.604 546.575ZM723.337 204.815L414.577 513.562C407.911 519.926 399.051 523.473 389.832 523.473C380.618 523.473 371.753 519.926 365.087 513.562C358.529 506.999 354.842 498.098 354.842 488.816C354.842 479.535 358.529 470.634 365.087 464.071L723.34 105.818L723.337 204.815Z",fill:"currentColor"})),Ka=y.object({username:y.string().min(1,"login.fieldRequired"),password:y.string().min(1,"login.fieldRequired")}),ei=S(Ja,{baseStyle:{strokeWidth:"10px",w:12,h:12}}),ti=S(Ao,{baseStyle:{w:5,h:5,strokeWidth:"2px"}}),Ar=()=>{var b,h;const[t,n]=f.exports.useState(""),[o,s]=f.exports.useState(!1),a=To(),{t:i}=H();let l=Mo();const{register:p,formState:{errors:g},handleSubmit:w}=Qe({resolver:xt(Ka)});f.exports.useEffect(()=>{Qo(),l.pathname!=="/login"&&a("/login",{replace:!0})},[]);const x=m=>{n("");const I=new FormData;I.append("username",m.username),I.append("password",m.password),I.append("grant_type","password"),s(!0),O("/admin/token",{method:"post",body:I}).then(({access_token:C})=>{Zo(C),a("/")}).catch(C=>{n(C.response._data.detail)}).finally(s.bind(null,!1))};return r(N,{justifyContent:"space-between",minH:"100vh",p:"6",w:"full",children:[r(v,{w:"full",children:[e(_,{justifyContent:"end",w:"full",children:e(hn,{})}),e(_,{w:"full",justifyContent:"center",alignItems:"center",children:r(v,{w:"full",maxW:"340px",mt:"6",children:[r(N,{alignItems:"center",w:"full",children:[e(ei,{}),e(d,{fontSize:"2xl",fontWeight:"semibold",children:i("login.loginYourAccount")}),e(d,{color:"gray.600",_dark:{color:"gray.400"},children:i("login.welcomeBack")})]}),e(v,{w:"full",maxW:"300px",m:"auto",pt:"4",children:e("form",{onSubmit:w(x),children:r(N,{mt:4,rowGap:2,children:[e(L,{children:e(Me,{w:"full",placeholder:i("username"),...p("username"),error:i((b=g==null?void 0:g.username)==null?void 0:b.message)})}),e(L,{children:e(Me,{w:"full",type:"password",placeholder:i("password"),...p("password"),error:i((h=g==null?void 0:g.password)==null?void 0:h.message)})}),t&&r(gt,{status:"error",rounded:"md",children:[e(Ut,{}),e(Yr,{children:t})]}),r(P,{isLoading:o,type:"submit",w:"full",colorScheme:"primary",children:[e(ti,{marginRight:1}),i("login")]})]})})})]})})]}),e(dn,{})]})},ri=()=>O("/admin",{headers:{Authorization:`Bearer ${Et()}`}}),ni=No([{path:"/",element:e(Xa,{}),errorElement:e(Ar,{}),loader:ri},{path:"/login/",element:e(Ar,{})}]);function oi(){return e("main",{className:"p-8",children:e(Po,{router:ni})})}$.extend(Fo);$.extend(Wo);$.extend(Oo);$.extend(Ho);$.extend(jo);on(Bo.get()||"light");$o.createRoot(document.getElementById("root")).render(e($t.StrictMode,{children:e(Vo,{theme:Yo,children:e(Go,{client:Gt,children:e(oi,{})})})})); diff --git a/app/dashboard/build/statics/index.9b97897c.css b/app/dashboard/build/statics/index.9b97897c.css new file mode 100644 index 000000000..38224be59 --- /dev/null +++ b/app/dashboard/build/statics/index.9b97897c.css @@ -0,0 +1,6 @@ +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0;width:100%}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:white;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__month--selected,.react-datepicker__month--in-selecting-range,.react-datepicker__month--in-range,.react-datepicker__quarter--selected,.react-datepicker__quarter--in-selecting-range,.react-datepicker__quarter--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__month--selected:hover,.react-datepicker__month--in-selecting-range:hover,.react-datepicker__month--in-range:hover,.react-datepicker__quarter--selected:hover,.react-datepicker__quarter--in-selecting-range:hover,.react-datepicker__quarter--in-range:hover{background-color:#1d5d90}.react-datepicker__month--disabled,.react-datepicker__quarter--disabled{color:#ccc;pointer-events:none}.react-datepicker__month--disabled:hover,.react-datepicker__quarter--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__month-text.react-datepicker__month--selected:hover,.react-datepicker__month-text.react-datepicker__month--in-range:hover,.react-datepicker__month-text.react-datepicker__quarter--selected:hover,.react-datepicker__month-text.react-datepicker__quarter--in-range:hover,.react-datepicker__quarter-text.react-datepicker__month--selected:hover,.react-datepicker__quarter-text.react-datepicker__month--in-range:hover,.react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,.react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover{background-color:#216ba5}.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover{background-color:#f0f0f0}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"\d7"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;overflow:hidden;z-index:1}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color));transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}.jsoneditor input,.jsoneditor input:not([type]),.jsoneditor input[type=text],.jsoneditor input[type=search],.jsoneditor-modal input,.jsoneditor-modal input:not([type]),.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=search]{height:auto;border:inherit;box-shadow:none;font-size:inherit;box-sizing:inherit;padding:inherit;font-family:inherit;transition:none;line-height:inherit}.jsoneditor input:focus,.jsoneditor input:not([type]):focus,.jsoneditor input[type=text]:focus,.jsoneditor input[type=search]:focus,.jsoneditor-modal input:focus,.jsoneditor-modal input:not([type]):focus,.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal input[type=search]:focus{border:inherit;box-shadow:inherit}.jsoneditor textarea,.jsoneditor-modal textarea{height:inherit}.jsoneditor select,.jsoneditor-modal select{display:inherit;height:inherit}.jsoneditor label,.jsoneditor-modal label{font-size:inherit;font-weight:inherit;color:inherit}.jsoneditor table,.jsoneditor-modal table{border-collapse:collapse;width:auto}.jsoneditor td,.jsoneditor th,.jsoneditor-modal td,.jsoneditor-modal th{padding:0;display:table-cell;text-align:left;vertical-align:inherit;border-radius:inherit}.jsoneditor .autocomplete.dropdown{position:absolute;background:#ffffff;box-shadow:2px 2px 12px #8080804d;border:1px solid #d3d3d3;overflow-x:hidden;overflow-y:auto;cursor:default;margin:0;padding:5px;text-align:left;outline:0;font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px}.jsoneditor .autocomplete.dropdown .item{color:#1a1a1a}.jsoneditor .autocomplete.dropdown .item.hover{background-color:#ebebeb}.jsoneditor .autocomplete.hint{color:#a1a1a1;top:4px;left:4px}.jsoneditor-contextmenu-root{position:relative;width:0;height:0}.jsoneditor-contextmenu{position:absolute;box-sizing:content-box;z-index:2}.jsoneditor-contextmenu .jsoneditor-menu{position:relative;left:0;top:0;width:128px;height:auto;background:#ffffff;border:1px solid #d3d3d3;box-shadow:2px 2px 12px #8080804d;list-style:none;margin:0;padding:0}.jsoneditor-contextmenu .jsoneditor-menu button{position:relative;padding:0 8px 0 0;margin:0;width:128px;height:auto;border:none;cursor:pointer;color:#4d4d4d;background:transparent;font-size:14px;font-family:arial,sans-serif;box-sizing:border-box;text-align:left}.jsoneditor-contextmenu .jsoneditor-menu button::-moz-focus-inner{padding:0;border:0}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-default{width:96px}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-expand{float:right;width:32px;height:24px;border-left:1px solid #e5e5e5}.jsoneditor-contextmenu .jsoneditor-menu li{overflow:hidden}.jsoneditor-contextmenu .jsoneditor-menu li ul{display:none;position:relative;left:-10px;top:0;border:none;box-shadow:inset 0 0 10px #80808080;padding:0 10px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.jsoneditor-contextmenu .jsoneditor-menu li ul .jsoneditor-icon{margin-left:24px}.jsoneditor-contextmenu .jsoneditor-menu li ul li button{padding-left:24px;animation:all ease-in-out 1s}.jsoneditor-contextmenu .jsoneditor-menu li button .jsoneditor-expand{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:0 -72px}.jsoneditor-contextmenu .jsoneditor-icon{position:absolute;top:0;left:0;width:24px;height:24px;border:none;padding:0;margin:0;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg)}.jsoneditor-contextmenu .jsoneditor-text{padding:4px 0 4px 24px;word-wrap:break-word}.jsoneditor-contextmenu .jsoneditor-text.jsoneditor-right-margin{padding-right:24px}.jsoneditor-contextmenu .jsoneditor-separator{height:0;border-top:1px solid #e5e5e5;padding-top:5px;margin-top:5px}.jsoneditor-contextmenu button.jsoneditor-remove .jsoneditor-icon{background-position:-24px 0}.jsoneditor-contextmenu button.jsoneditor-append .jsoneditor-icon,.jsoneditor-contextmenu button.jsoneditor-insert .jsoneditor-icon{background-position:0 0}.jsoneditor-contextmenu button.jsoneditor-duplicate .jsoneditor-icon{background-position:-48px 0}.jsoneditor-contextmenu button.jsoneditor-sort-asc .jsoneditor-icon{background-position:-168px 0}.jsoneditor-contextmenu button.jsoneditor-sort-desc .jsoneditor-icon{background-position:-192px 0}.jsoneditor-contextmenu button.jsoneditor-transform .jsoneditor-icon{background-position:-216px 0}.jsoneditor-contextmenu button.jsoneditor-extract .jsoneditor-icon{background-position:0 -24px}.jsoneditor-contextmenu button.jsoneditor-type-string .jsoneditor-icon{background-position:-144px 0}.jsoneditor-contextmenu button.jsoneditor-type-auto .jsoneditor-icon{background-position:-120px 0}.jsoneditor-contextmenu button.jsoneditor-type-object .jsoneditor-icon{background-position:-72px 0}.jsoneditor-contextmenu button.jsoneditor-type-array .jsoneditor-icon{background-position:-96px 0}.jsoneditor-contextmenu button.jsoneditor-type-modes .jsoneditor-icon{background-image:none;width:6px}.jsoneditor-contextmenu ul,.jsoneditor-contextmenu li{box-sizing:content-box;position:relative}.jsoneditor-contextmenu .jsoneditor-menu button:hover,.jsoneditor-contextmenu .jsoneditor-menu button:focus{color:#1a1a1a;background-color:#f5f5f5;outline:none}.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus{color:#fff;background-color:#ee422e}.jsoneditor-contextmenu .jsoneditor-menu li ul li button:hover,.jsoneditor-contextmenu .jsoneditor-menu li ul li button:focus{background-color:#f5f5f5}.jsoneditor-modal{max-width:95%;border-radius:2px!important;padding:45px 15px 15px!important;box-shadow:2px 2px 12px #8080804d;color:#4d4d4d;line-height:1.3em}.jsoneditor-modal.jsoneditor-modal-transform{width:600px!important}.jsoneditor-modal .pico-modal-header{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;padding:0 10px;height:30px;line-height:30px;font-family:arial,sans-serif;font-size:11pt;background:#3883fa;color:#fff}.jsoneditor-modal table{width:100%}.jsoneditor-modal table td{padding:3px 0}.jsoneditor-modal table td.jsoneditor-modal-input{text-align:right;padding-right:0;white-space:nowrap}.jsoneditor-modal table td.jsoneditor-modal-actions{padding-top:15px}.jsoneditor-modal table th{vertical-align:middle}.jsoneditor-modal p:first-child{margin-top:0}.jsoneditor-modal a{color:#3883fa}.jsoneditor-modal .jsoneditor-jmespath-block{margin-bottom:10px}.jsoneditor-modal .pico-close{background:none!important;font-size:24px!important;top:7px!important;right:7px!important;color:#fff}.jsoneditor-modal input{padding:4px}.jsoneditor-modal input[type=text]{cursor:inherit}.jsoneditor-modal input[disabled]{background:#d3d3d3;color:gray}.jsoneditor-modal .jsoneditor-select-wrapper{position:relative;display:inline-block}.jsoneditor-modal .jsoneditor-select-wrapper:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #666;position:absolute;right:8px;top:14px;pointer-events:none}.jsoneditor-modal select{padding:3px 24px 3px 10px;min-width:180px;max-width:350px;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:0;text-overflow:"";font-size:14px;line-height:1.5em}.jsoneditor-modal select::-ms-expand{display:none}.jsoneditor-modal .jsoneditor-button-group input{padding:4px 10px;margin:0;border-radius:0;border-left-style:none}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left-style:solid}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.jsoneditor-modal .jsoneditor-transform-preview{background:#f5f5f5;height:200px}.jsoneditor-modal .jsoneditor-transform-preview.jsoneditor-error{color:#ee422e}.jsoneditor-modal .jsoneditor-jmespath-wizard{line-height:1.2em;width:100%;padding:0;border-radius:3px}.jsoneditor-modal .jsoneditor-jmespath-label{font-weight:700;color:#1e90ff;margin-top:20px;margin-bottom:5px}.jsoneditor-modal .jsoneditor-jmespath-wizard-table{width:100%;border-collapse:collapse}.jsoneditor-modal .jsoneditor-jmespath-wizard-label{font-style:italic;margin:4px 0 2px}.jsoneditor-modal .jsoneditor-inline{position:relative;display:inline-block;width:100%;padding-top:2px;padding-bottom:2px}.jsoneditor-modal .jsoneditor-inline:not(:last-child){padding-right:2px}.jsoneditor-modal .jsoneditor-jmespath-filter{display:flex;flex-wrap:wrap}.jsoneditor-modal .jsoneditor-jmespath-filter-field{width:180px}.jsoneditor-modal .jsoneditor-jmespath-filter-relation{width:100px}.jsoneditor-modal .jsoneditor-jmespath-filter-value{min-width:180px;flex:1}.jsoneditor-modal .jsoneditor-jmespath-sort-field{width:170px}.jsoneditor-modal .jsoneditor-jmespath-sort-order{width:150px}.jsoneditor-modal .jsoneditor-jmespath-select-fields{width:100%}.jsoneditor-modal .selectr-selected{border-color:#d3d3d3;padding:4px 28px 4px 8px}.jsoneditor-modal .selectr-selected .selectr-tag{background-color:#3883fa;border-radius:5px}.jsoneditor-modal table th,.jsoneditor-modal table td{text-align:left;vertical-align:middle;font-weight:400;color:#4d4d4d;border-spacing:0;border-collapse:collapse}.jsoneditor-modal select,.jsoneditor-modal textarea,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal #query{background:#ffffff;border:1px solid #d3d3d3;color:#4d4d4d;border-radius:3px;padding:4px}.jsoneditor-modal textarea,.jsoneditor-modal #query{border-radius:unset}.jsoneditor-modal,.jsoneditor-modal table td,.jsoneditor-modal table th,.jsoneditor-modal select,.jsoneditor-modal option,.jsoneditor-modal textarea,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal #query{font-size:10.5pt;font-family:arial,sans-serif}.jsoneditor-modal #query,.jsoneditor-modal .jsoneditor-transform-preview{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;width:100%;box-sizing:border-box}.jsoneditor-modal input[type=button],.jsoneditor-modal input[type=submit]{background:#f5f5f5;padding:4px 20px}.jsoneditor-modal select,.jsoneditor-modal input{cursor:pointer}.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-asc input.jsoneditor-button-asc,.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-desc input.jsoneditor-button-desc{background:#3883fa;border-color:#3883fa;color:#fff}.jsoneditor{color:#1a1a1a;border:thin solid #3883fa;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;position:relative;padding:0;line-height:100%}div.jsoneditor-field,div.jsoneditor-value,div.jsoneditor-readonly,div.jsoneditor-default{border:1px solid transparent;min-height:16px;min-width:32px;line-height:16px;padding:2px;margin:1px;word-wrap:break-word;float:left}div.jsoneditor-field p,div.jsoneditor-value p{margin:0}div.jsoneditor-value{word-break:break-word}div.jsoneditor-value.jsoneditor-empty:after{content:"value"}div.jsoneditor-value.jsoneditor-string{color:#006000}div.jsoneditor-value.jsoneditor-number{color:#ee422e}div.jsoneditor-value.jsoneditor-boolean{color:#ff8c00}div.jsoneditor-value.jsoneditor-null{color:#004ed0}div.jsoneditor-value.jsoneditor-color-value,div.jsoneditor-value.jsoneditor-invalid{color:#1a1a1a}div.jsoneditor-readonly{min-width:16px;color:gray}div.jsoneditor-empty{border-color:#d3d3d3;border-style:dashed;border-radius:2px}div.jsoneditor-field.jsoneditor-empty:after{content:"field"}div.jsoneditor td{vertical-align:top}div.jsoneditor td.jsoneditor-separator{padding:3px 0;vertical-align:top;color:gray}div.jsoneditor td.jsoneditor-tree{vertical-align:top}div.jsoneditor.busy pre.jsoneditor-preview{background:#f5f5f5;color:gray}div.jsoneditor.busy div.jsoneditor-busy{display:inherit}div.jsoneditor code.jsoneditor-preview{background:none}div.jsoneditor.jsoneditor-mode-preview pre.jsoneditor-preview{width:100%;height:100%;box-sizing:border-box;overflow:auto;padding:2px;margin:0;white-space:pre-wrap;word-break:break-all}div.jsoneditor-default{color:gray;padding-left:10px}div.jsoneditor-tree{width:100%;height:100%;position:relative;overflow:auto;background:#ffffff}div.jsoneditor-tree button.jsoneditor-button{width:24px;height:24px;padding:0;margin:0;border:none;cursor:pointer;background-color:transparent;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg)}div.jsoneditor-tree button.jsoneditor-button:focus{background-color:#f5f5f5;outline:#e5e5e5 solid 1px}div.jsoneditor-tree button.jsoneditor-collapsed{background-position:0 -48px}div.jsoneditor-tree button.jsoneditor-expanded{background-position:0 -72px}div.jsoneditor-tree button.jsoneditor-contextmenu-button{background-position:-48px -72px}div.jsoneditor-tree button.jsoneditor-invisible{visibility:hidden;background:none}div.jsoneditor-tree button.jsoneditor-dragarea{background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:-72px -72px;cursor:move}div.jsoneditor-tree *:focus{outline:none}div.jsoneditor-tree div.jsoneditor-show-more{display:inline-block;padding:3px 4px;margin:2px 0;background-color:#e5e5e5;border-radius:3px;color:gray;font-family:arial,sans-serif;font-size:14px}div.jsoneditor-tree div.jsoneditor-show-more a{display:inline-block;color:gray}div.jsoneditor-tree div.jsoneditor-color{display:inline-block;width:12px;height:12px;margin:4px;border:1px solid #808080;cursor:pointer}div.jsoneditor-tree div.jsoneditor-color.jsoneditor-color-readonly{cursor:inherit}div.jsoneditor-tree div.jsoneditor-date{background:#a1a1a1;color:#fff;font-family:arial,sans-serif;border-radius:3px;display:inline-block;padding:3px;margin:0 3px}div.jsoneditor-tree table.jsoneditor-tree{border-collapse:collapse;border-spacing:0;width:100%}div.jsoneditor-tree .jsoneditor-button{display:block}div.jsoneditor-tree .jsoneditor-button.jsoneditor-schema-error{width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:-168px -48px;background-color:transparent}div.jsoneditor-outer{position:static;width:100%;height:100%;margin:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}div.jsoneditor-outer.has-nav-bar{margin-top:-26px;padding-top:26px}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:-61px;padding-top:61px}div.jsoneditor-outer.has-status-bar{margin-bottom:-26px;padding-bottom:26px}div.jsoneditor-outer.has-main-menu-bar{margin-top:-35px;padding-top:35px}div.jsoneditor-busy{position:absolute;top:15%;left:0;box-sizing:border-box;width:100%;text-align:center;display:none}div.jsoneditor-busy span{background-color:#ffffab;border:1px solid #ffee00;border-radius:3px;padding:5px 15px;box-shadow:0 0 5px #0006}div.jsoneditor-field.jsoneditor-empty:after,div.jsoneditor-value.jsoneditor-empty:after{pointer-events:none;color:#d3d3d3;font-size:8pt}div.jsoneditor-value.jsoneditor-url,a.jsoneditor-value.jsoneditor-url{color:#006000;text-decoration:underline}a.jsoneditor-value.jsoneditor-url{display:inline-block;padding:2px;margin:2px}a.jsoneditor-value.jsoneditor-url:hover,a.jsoneditor-value.jsoneditor-url:focus{color:#ee422e}div.jsoneditor-field[contenteditable=true]:focus,div.jsoneditor-field[contenteditable=true]:hover,div.jsoneditor-value[contenteditable=true]:focus,div.jsoneditor-value[contenteditable=true]:hover,div.jsoneditor-field.jsoneditor-highlight,div.jsoneditor-value.jsoneditor-highlight{background-color:#ffffab;border:1px solid #ffee00;border-radius:2px}div.jsoneditor-field.jsoneditor-highlight-active,div.jsoneditor-field.jsoneditor-highlight-active:focus,div.jsoneditor-field.jsoneditor-highlight-active:hover,div.jsoneditor-value.jsoneditor-highlight-active,div.jsoneditor-value.jsoneditor-highlight-active:focus,div.jsoneditor-value.jsoneditor-highlight-active:hover{background-color:#fe0;border:1px solid #ffc700;border-radius:2px}div.jsoneditor-value.jsoneditor-object,div.jsoneditor-value.jsoneditor-array{min-width:16px}div.jsoneditor-tree button.jsoneditor-contextmenu-button:hover,div.jsoneditor-tree button.jsoneditor-contextmenu-button:focus,div.jsoneditor-tree button.jsoneditor-contextmenu-button.jsoneditor-selected,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{background-position:-48px -48px}div.jsoneditor-tree div.jsoneditor-show-more a:hover,div.jsoneditor-tree div.jsoneditor-show-more a:focus{color:#ee422e}textarea.jsoneditor-text,.ace-jsoneditor{min-height:150px}textarea.jsoneditor-text.ace_editor,.ace-jsoneditor.ace_editor{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace}textarea.jsoneditor-text{width:100%;height:100%;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;outline-width:0;border:none;background-color:#fff;resize:none}tr.jsoneditor-highlight,tr.jsoneditor-selected{background-color:#d3d3d3}tr.jsoneditor-selected button.jsoneditor-dragarea,tr.jsoneditor-selected button.jsoneditor-contextmenu-button{visibility:hidden}tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{visibility:visible}div.jsoneditor-tree button.jsoneditor-dragarea:hover,div.jsoneditor-tree button.jsoneditor-dragarea:focus,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{background-position:-72px -48px}div.jsoneditor tr,div.jsoneditor th,div.jsoneditor td{padding:0;margin:0}div.jsoneditor-field,div.jsoneditor-value,div.jsoneditor td,div.jsoneditor th,div.jsoneditor textarea,pre.jsoneditor-preview,.jsoneditor-schema-error,.jsoneditor-popover{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;color:#1a1a1a}.jsoneditor-schema-error{cursor:default;display:inline-block;height:24px;line-height:24px;position:relative;text-align:center;width:24px}.jsoneditor-popover{background-color:#4c4c4c;border-radius:3px;box-shadow:0 0 5px #0006;color:#fff;padding:7px 10px;position:absolute;cursor:auto;width:200px}.jsoneditor-popover.jsoneditor-above{bottom:32px;left:-98px}.jsoneditor-popover.jsoneditor-above:before{border-top:7px solid #4c4c4c;bottom:-7px}.jsoneditor-popover.jsoneditor-below{top:32px;left:-98px}.jsoneditor-popover.jsoneditor-below:before{border-bottom:7px solid #4c4c4c;top:-7px}.jsoneditor-popover.jsoneditor-left{top:-7px;right:32px}.jsoneditor-popover.jsoneditor-left:before{border-left:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;right:-14px;left:inherit;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover.jsoneditor-right{top:-7px;left:32px}.jsoneditor-popover.jsoneditor-right:before{border-right:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;left:-14px;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover:before{border-right:7px solid transparent;border-left:7px solid transparent;content:"";display:block;left:50%;margin-left:-7px;position:absolute}.jsoneditor-text-errors tr.jump-to-line:hover{text-decoration:underline;cursor:pointer}.jsoneditor-schema-error:hover .jsoneditor-popover,.jsoneditor-schema-error:focus .jsoneditor-popover{display:block;animation:fade-in .3s linear 1,move-up .3s linear 1}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.jsoneditor .jsoneditor-validation-errors-container{max-height:130px;overflow-y:auto}.jsoneditor .jsoneditor-validation-errors{width:100%;overflow:hidden}.jsoneditor .jsoneditor-additional-errors{position:absolute;margin:auto;bottom:31px;left:calc(50% - 92px);color:gray;background-color:#ebebeb;padding:7px 15px;border-radius:8px}.jsoneditor .jsoneditor-additional-errors.visible{visibility:visible;opacity:1;transition:opacity 2s linear}.jsoneditor .jsoneditor-additional-errors.hidden{visibility:hidden;opacity:0;transition:visibility 0s 2s,opacity 2s linear}.jsoneditor .jsoneditor-text-errors{width:100%;border-collapse:collapse;border-top:1px solid #ffc700}.jsoneditor .jsoneditor-text-errors td{padding:3px 6px;vertical-align:middle}.jsoneditor .jsoneditor-text-errors td pre{margin:0;white-space:pre-wrap}.jsoneditor .jsoneditor-text-errors tr{background-color:#ffffab}.jsoneditor .jsoneditor-text-errors tr.parse-error{background-color:#ee2e2e70}.jsoneditor-text-errors .jsoneditor-schema-error{border:none;width:24px;height:24px;padding:0;margin:0 4px 0 0;cursor:pointer}.jsoneditor-text-errors tr .jsoneditor-schema-error{background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:-168px -48px;background-color:transparent}.jsoneditor-text-errors tr.parse-error .jsoneditor-schema-error{background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:-25px 0px;background-color:transparent}.jsoneditor-anchor{cursor:pointer}.jsoneditor-anchor .picker_wrapper.popup.popup_bottom{top:28px;left:-10px}.fadein{-webkit-animation:fadein .3s;animation:fadein .3s;-moz-animation:fadein .3s;-o-animation:fadein .3s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.jsoneditor-modal input[type=search].selectr-input{border:1px solid #d3d3d3;width:calc(100% - 4px);margin:2px;padding:4px;box-sizing:border-box}.jsoneditor-modal button.selectr-input-clear{right:8px}.jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#3883fa;border-bottom:1px solid #3883fa}.jsoneditor-menu>button,.jsoneditor-menu>.jsoneditor-modes>button{width:26px;height:26px;margin:2px;padding:0;border-radius:2px;border:1px solid transparent;background-color:transparent;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);color:#fff;opacity:.8;font-family:arial,sans-serif;font-size:14px;float:left}.jsoneditor-menu>button:hover,.jsoneditor-menu>.jsoneditor-modes>button:hover{background-color:#fff3;border:1px solid rgba(255,255,255,.4)}.jsoneditor-menu>button:focus,.jsoneditor-menu>button:active,.jsoneditor-menu>.jsoneditor-modes>button:focus,.jsoneditor-menu>.jsoneditor-modes>button:active{background-color:#ffffff4d}.jsoneditor-menu>button:disabled,.jsoneditor-menu>.jsoneditor-modes>button:disabled{opacity:.5;background-color:transparent;border:none}.jsoneditor-menu>button.jsoneditor-collapse-all{background-position:0 -96px}.jsoneditor-menu>button.jsoneditor-expand-all{background-position:0 -120px}.jsoneditor-menu>button.jsoneditor-sort{background-position:-120px -96px}.jsoneditor-menu>button.jsoneditor-transform{background-position:-144px -96px}.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-transform,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-transform{display:none}.jsoneditor-menu>button.jsoneditor-undo{background-position:-24px -96px}.jsoneditor-menu>button.jsoneditor-undo:disabled{background-position:-24px -120px}.jsoneditor-menu>button.jsoneditor-redo{background-position:-48px -96px}.jsoneditor-menu>button.jsoneditor-redo:disabled{background-position:-48px -120px}.jsoneditor-menu>button.jsoneditor-compact{background-position:-72px -96px}.jsoneditor-menu>button.jsoneditor-format{background-position:-72px -120px}.jsoneditor-menu>button.jsoneditor-repair{background-position:-96px -96px}.jsoneditor-menu>.jsoneditor-modes{display:inline-block;float:left}.jsoneditor-menu>.jsoneditor-modes>button{background-image:none;width:auto;padding-left:6px;padding-right:6px}.jsoneditor-menu>button.jsoneditor-separator,.jsoneditor-menu>.jsoneditor-modes>button.jsoneditor-separator{margin-left:10px}.jsoneditor-menu a{font-family:arial,sans-serif;font-size:14px;color:#fff;opacity:.8;vertical-align:middle}.jsoneditor-menu a:hover{opacity:1}.jsoneditor-menu a.jsoneditor-poweredBy{font-size:8pt;position:absolute;right:0;top:0;padding:10px}.jsoneditor-navigation-bar{width:100%;height:26px;line-height:26px;padding:0;margin:0;border-bottom:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:gray;background-color:#ebebeb;overflow:hidden;font-family:arial,sans-serif;font-size:14px}.jsoneditor-search{font-family:arial,sans-serif;position:absolute;right:4px;top:4px;border-collapse:collapse;border-spacing:0;display:flex}.jsoneditor-search input{color:#1a1a1a;width:120px;border:none;outline:none;margin:1px;line-height:20px;font-family:arial,sans-serif}.jsoneditor-search button{width:16px;height:24px;padding:0;margin:0;border:none;background:url(/statics/jsoneditor-icons.45c98bf0.svg);vertical-align:top}.jsoneditor-search button:hover{background-color:transparent}.jsoneditor-search button.jsoneditor-refresh{width:18px;background-position:-99px -73px}.jsoneditor-search button.jsoneditor-next{cursor:pointer;background-position:-124px -73px}.jsoneditor-search button.jsoneditor-next:hover{background-position:-124px -49px}.jsoneditor-search button.jsoneditor-previous{cursor:pointer;background-position:-148px -73px;margin-right:2px}.jsoneditor-search button.jsoneditor-previous:hover{background-position:-148px -49px}.jsoneditor-results{font-family:arial,sans-serif;color:#fff;padding-right:5px;line-height:26px}.jsoneditor-frame{border:1px solid transparent;background-color:#fff;padding:0 2px;margin:0}.jsoneditor-statusbar{line-height:26px;height:26px;color:gray;background-color:#ebebeb;border-top:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px}.jsoneditor-statusbar>.jsoneditor-curserinfo-val{margin-right:12px}.jsoneditor-statusbar>.jsoneditor-curserinfo-count{margin-left:4px}.jsoneditor-statusbar>.jsoneditor-validation-error-icon{float:right;width:24px;height:24px;padding:0;margin-top:1px;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:-168px -48px;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-validation-error-count{float:right;margin:0 4px 0 0;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-parse-error-icon{float:right;width:24px;height:24px;padding:0;margin:1px;background-image:url(/statics/jsoneditor-icons.45c98bf0.svg);background-position:-25px 0px}.jsoneditor-statusbar .jsoneditor-array-info a{color:inherit}div.jsoneditor-statusbar>.jsoneditor-curserinfo-label,div.jsoneditor-statusbar>.jsoneditor-size-info{margin:0 4px}.jsoneditor-treepath{padding:0 5px;overflow:hidden;white-space:nowrap;outline:none}.jsoneditor-treepath.show-all{word-wrap:break-word;white-space:normal;position:absolute;background-color:#ebebeb;z-index:1;box-shadow:2px 2px 12px #8080804d}.jsoneditor-treepath.show-all span.jsoneditor-treepath-show-all-btn{display:none}.jsoneditor-treepath div.jsoneditor-contextmenu-root{position:absolute;left:0}.jsoneditor-treepath .jsoneditor-treepath-show-all-btn{position:absolute;background-color:#ebebeb;left:0;height:20px;padding:0 3px;cursor:pointer}.jsoneditor-treepath .jsoneditor-treepath-element{margin:1px;font-family:arial,sans-serif;font-size:14px}.jsoneditor-treepath .jsoneditor-treepath-seperator{margin:2px;font-size:9pt;font-family:arial,sans-serif}.jsoneditor-treepath span.jsoneditor-treepath-element:hover,.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover{cursor:pointer;text-decoration:underline}/*! + * Selectr 2.4.13 + * http://mobius.ovh/docs/selectr + * + * Released under the MIT license + */.selectr-container{position:relative}.selectr-container li{list-style:none}.selectr-hidden{position:absolute;overflow:hidden;clip:rect(0px,0px,0px,0px);width:1px;height:1px;margin:-1px;padding:0;border:0 none}.selectr-visible{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:11}.selectr-desktop.multiple .selectr-visible{display:none}.selectr-desktop.multiple.native-open .selectr-visible{top:100%;min-height:200px!important;height:auto;opacity:1;display:block}.selectr-container.multiple.selectr-mobile .selectr-selected{z-index:0}.selectr-selected{position:relative;z-index:1;box-sizing:border-box;width:100%;padding:7px 28px 7px 14px;cursor:pointer;border:1px solid #999999;border-radius:3px;background-color:#fff}.selectr-selected:before{position:absolute;top:50%;right:10px;width:0;height:0;content:"";-o-transform:rotate(0deg) translate3d(0px,-50%,0px);-ms-transform:rotate(0deg) translate3d(0px,-50%,0px);-moz-transform:rotate(0deg) translate3d(0px,-50%,0px);-webkit-transform:rotate(0deg) translate3d(0px,-50%,0px);transform:rotate(0) translate3d(0,-50%,0);border-width:4px 4px 0 4px;border-style:solid;border-color:#6c7a86 transparent transparent}.selectr-container.open .selectr-selected:before,.selectr-container.native-open .selectr-selected:before{border-width:0 4px 4px 4px;border-style:solid;border-color:transparent transparent #6c7a86}.selectr-label{display:none;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis}.selectr-placeholder{color:#6c7a86}.selectr-tags{margin:0;padding:0;white-space:normal}.has-selected .selectr-tags{margin:0 0 -2px}.selectr-tag{list-style:none;position:relative;float:left;padding:2px 25px 2px 8px;margin:0 2px 2px 0;cursor:default;color:#fff;border:medium none;border-radius:10px;background:#acb7bf none repeat scroll 0 0}.selectr-container.multiple.has-selected .selectr-selected{padding:5px 28px 5px 5px}.selectr-options-container{position:absolute;z-index:10000;top:calc(100% - 1px);left:0;display:none;box-sizing:border-box;width:100%;border-width:0 1px 1px;border-style:solid;border-color:transparent #999999 #999999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.open .selectr-options-container{display:block}.selectr-input-container{position:relative;display:none}.selectr-clear,.selectr-input-clear,.selectr-tag-remove{position:absolute;top:50%;right:22px;width:20px;height:20px;padding:0;cursor:pointer;-o-transform:translate3d(0px,-50%,0px);-ms-transform:translate3d(0px,-50%,0px);-moz-transform:translate3d(0px,-50%,0px);-webkit-transform:translate3d(0px,-50%,0px);transform:translate3d(0,-50%,0);border:medium none;background-color:transparent;z-index:11}.selectr-clear,.selectr-input-clear{display:none}.selectr-container.has-selected .selectr-clear,.selectr-input-container.active .selectr-input-clear{display:block}.selectr-selected .selectr-tag-remove{right:2px}.selectr-clear:before,.selectr-clear:after,.selectr-input-clear:before,.selectr-input-clear:after,.selectr-tag-remove:before,.selectr-tag-remove:after{position:absolute;top:5px;left:9px;width:2px;height:10px;content:" ";background-color:#6c7a86}.selectr-tag-remove:before,.selectr-tag-remove:after{top:4px;width:3px;height:12px;background-color:#fff}.selectr-clear:before,.selectr-input-clear:before,.selectr-tag-remove:before{-o-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.selectr-clear:after,.selectr-input-clear:after,.selectr-tag-remove:after{-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.selectr-input-container.active,.selectr-input-container.active .selectr-clear{display:block}.selectr-input{top:5px;left:5px;box-sizing:border-box;width:calc(100% - 30px);margin:10px 15px;padding:7px 30px 7px 9px;border:1px solid #999999;border-radius:3px}.selectr-notice{display:none;box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #999999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.notice .selectr-notice{display:block}.selectr-container.notice .selectr-selected{border-radius:3px 3px 0 0}.selectr-options{position:relative;top:calc(100% + 2px);display:none;overflow-x:auto;overflow-y:scroll;max-height:200px;margin:0;padding:0}.selectr-container.open .selectr-options,.selectr-container.open .selectr-input-container,.selectr-container.notice .selectr-options-container{display:block}.selectr-option{position:relative;display:block;padding:5px 20px;list-style:outside none none;cursor:pointer;font-weight:400}.selectr-options.optgroups>.selectr-option{padding-left:25px}.selectr-optgroup{font-weight:700;padding:0}.selectr-optgroup--label{font-weight:700;margin-top:10px;padding:5px 15px}.selectr-match{text-decoration:underline}.selectr-option.selected{background-color:#ddd}.selectr-option.active{color:#fff;background-color:#5897fb}.selectr-option.disabled{opacity:.4}.selectr-option.excluded{display:none}.selectr-container.open .selectr-selected{border-color:#999999 #999999 transparent #999999;border-radius:3px 3px 0 0}.selectr-container.open .selectr-selected:after{-o-transform:rotate(180deg) translate3d(0px,50%,0px);-ms-transform:rotate(180deg) translate3d(0px,50%,0px);-moz-transform:rotate(180deg) translate3d(0px,50%,0px);-webkit-transform:rotate(180deg) translate3d(0px,50%,0px);transform:rotate(180deg) translate3d(0,50%,0)}.selectr-disabled{opacity:.6}.selectr-empty,.has-selected .selectr-placeholder{display:none}.has-selected .selectr-label{display:block}.taggable .selectr-selected{padding:4px 28px 4px 4px}.taggable .selectr-selected:after{display:table;content:" ";clear:both}.taggable .selectr-label{width:auto}.taggable .selectr-tags{float:left;display:block}.taggable .selectr-placeholder{display:none}.input-tag{float:left;min-width:90px;width:auto}.selectr-tag-input{border:medium none;padding:3px 10px;width:100%;font-family:inherit;font-weight:inherit;font-size:inherit}.selectr-input-container.loading:after{position:absolute;top:50%;right:20px;width:20px;height:20px;content:"";-o-transform:translate3d(0px,-50%,0px);-ms-transform:translate3d(0px,-50%,0px);-moz-transform:translate3d(0px,-50%,0px);-webkit-transform:translate3d(0px,-50%,0px);transform:translate3d(0,-50%,0);-o-transform-origin:50% 0 0;-ms-transform-origin:50% 0 0;-moz-transform-origin:50% 0 0;-webkit-transform-origin:50% 0 0;transform-origin:50% 0 0;-moz-animation:.5s linear 0s normal forwards infinite running selectr-spin;-webkit-animation:.5s linear 0s normal forwards infinite running selectr-spin;animation:.5s linear 0s normal forwards infinite running selectr-spin;border-width:3px;border-style:solid;border-color:#aaa #ddd #ddd;border-radius:50%}@-webkit-keyframes selectr-spin{0%{-webkit-transform:rotate(0deg) translate3d(0px,-50%,0px);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0px,-50%,0px);transform:rotate(360deg) translate3d(0,-50%,0)}}@keyframes selectr-spin{0%{-webkit-transform:rotate(0deg) translate3d(0px,-50%,0px);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0px,-50%,0px);transform:rotate(360deg) translate3d(0,-50%,0)}}.selectr-container.open.inverted .selectr-selected{border-color:transparent #999999 #999999;border-radius:0 0 3px 3px}.selectr-container.inverted .selectr-options-container{border-width:1px 1px 0;border-color:#999999 #999999 transparent;border-radius:3px 3px 0 0;background-color:#fff}.selectr-container.inverted .selectr-options-container{top:auto;bottom:calc(100% - 1px)}.selectr-container ::-webkit-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::-moz-placeholder{color:#6c7a86;opacity:1}.selectr-container :-ms-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::placeholder{color:#6c7a86;opacity:1}.ace_gutter-cell{padding-left:20px;padding-right:16px!important}.ace_editor,.jsoneditor{border-radius:4px}.ace_editor{min-height:300px}.jsoneditor{border:0}.ace-dawn .ace_gutter{background:#ebebeb;color:#333}.ace-dawn .ace_print-margin{width:1px;background:#e8e8e8}.ace-dawn{background-color:#f9f9f9;color:#080808}.ace-dawn .ace_cursor{color:#000}.ace-dawn .ace_marker-layer .ace_selection{background:rgba(39,95,255,.3)}.ace-dawn.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px #f9f9f9}.ace-dawn .ace_marker-layer .ace_step{background:rgb(255,255,0)}.ace-dawn .ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px;border:1px solid rgba(75,75,126,.5)}.ace-dawn .ace_marker-layer .ace_active-line{background:rgba(36,99,180,.12)}.ace-dawn .ace_gutter-active-line{background-color:#dcdcdc}.ace-dawn .ace_marker-layer .ace_selected-word{border:1px solid rgba(39,95,255,.3)}.ace-dawn .ace_invisible{color:#4b4b7e80}.ace-dawn .ace_keyword,.ace-dawn .ace_meta{color:#794938}.ace-dawn .ace_constant,.ace-dawn .ace_constant.ace_character,.ace-dawn .ace_constant.ace_character.ace_escape,.ace-dawn .ace_constant.ace_other{color:#811f24}.ace-dawn .ace_invalid.ace_illegal{text-decoration:underline;font-style:italic;color:#f8f8f8;background-color:#b52a1d}.ace-dawn .ace_invalid.ace_deprecated{text-decoration:underline;font-style:italic;color:#b52a1d}.ace-dawn .ace_support{color:#691c97}.ace-dawn .ace_support.ace_constant{color:#b4371f}.ace-dawn .ace_fold{background-color:#794938;border-color:#080808}.ace-dawn .ace_list,.ace-dawn .ace_markup.ace_list,.ace-dawn .ace_support.ace_function{color:#693a17}.ace-dawn .ace_storage{font-style:italic;color:#a71d5d}.ace-dawn .ace_string{color:#0b6125}.ace-dawn .ace_string.ace_regexp{color:#cf5628}.ace-dawn .ace_comment{font-style:italic;color:#5a525f}.ace-dawn .ace_heading,.ace-dawn .ace_markup.ace_heading{color:#19356d}.ace-dawn .ace_variable{color:#234a97}.ace-dawn .ace_indent-guide{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y}.ace-dawn .ace_indent-guide-active{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC) right repeat-y}.ace-nord-dark .ace_gutter{color:#616e88}.ace-nord-dark .ace_print-margin{width:1px;background:#4c566a}.ace-nord-dark{background-color:#2e3440;color:#d8dee9}.ace-nord-dark .ace_entity.ace_other.ace_attribute-name,.ace-nord-dark .ace_storage,.ace-nord-dark .ace_cursor{color:#d8dee9}.ace-nord-dark .ace_string.ace_regexp{color:#bf616a}.ace-nord-dark .ace_marker-layer .ace_active-line,.ace-nord-dark .ace_marker-layer .ace_selection{background:#434c5ecc}.ace-nord-dark.ace_multiselect .ace_selection.ace_start{box-shadow:0 0 3px #2e3440}.ace-nord-dark .ace_marker-layer .ace_step{background:#ebcb8b}.ace-nord-dark .ace_marker-layer .ace_bracket{margin:-1px 0 0 -1px;border:1px solid #88c0d066}.ace-nord-dark .ace_gutter-active-line{background-color:#434c5ecc}.ace-nord-dark .ace_marker-layer .ace_selected-word{border:1px solid #88c0d066}.ace-nord-dark .ace_invisible{color:#4c566a}.ace-nord-dark .ace_keyword,.ace-nord-dark .ace_meta,.ace-nord-dark .ace_support.ace_class,.ace-nord-dark .ace_support.ace_type{color:#81a1c1}.ace-nord-dark .ace_constant.ace_character,.ace-nord-dark .ace_constant.ace_other{color:#d8dee9}.ace-nord-dark .ace_constant.ace_language{color:#5e81ac}.ace-nord-dark .ace_constant.ace_escape{color:#ebcb8b}.ace-nord-dark .ace_constant.ace_numeric{color:#b48ead}.ace-nord-dark .ace_fold{background-color:#4c566a;border-color:#d8dee9}.ace-nord-dark .ace_entity.ace_name.ace_function,.ace-nord-dark .ace_entity.ace_name.ace_tag,.ace-nord-dark .ace_support.ace_function,.ace-nord-dark .ace_variable,.ace-nord-dark .ace_variable.ace_language{color:#8fbcbb}.ace-nord-dark .ace_string{color:#a3be8c}.ace-nord-dark .ace_comment{color:#616e88}.ace-nord-dark .ace_indent-guide{box-shadow:inset -1px 0 #434c5eb3}.ace-nord-dark .ace_indent-guide-active{box-shadow:inset -1px 0 #8395b8b3}.slick-loading .slick-list{background:#fff url(/statics/ajax-loader.e7b44c86.gif) center center no-repeat}@font-face{font-family:slick;font-weight:400;font-style:normal;src:url(data:application/vnd.ms-fontobject;base64,AAgAAGQHAAABAAIAAAAAAAIABQkAAAAAAAABAJABAAAAAExQAQAAgCAAAAAAAAAAAAAAAAEAAAAAAAAATxDE8AAAAAAAAAAAAAAAAAAAAAAAAAoAcwBsAGkAYwBrAAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAKAHMAbABpAGMAawAAAAAAAAEAAAANAIAAAwBQRkZUTW3RyK8AAAdIAAAAHEdERUYANAAGAAAHKAAAACBPUy8yT/b9sgAAAVgAAABWY21hcCIPRb0AAAHIAAABYmdhc3D//wADAAAHIAAAAAhnbHlmP5u2YAAAAzwAAAIsaGVhZAABMfsAAADcAAAANmhoZWED5QIFAAABFAAAACRobXR4BkoASgAAAbAAAAAWbG9jYQD2AaIAAAMsAAAAEG1heHAASwBHAAABOAAAACBuYW1lBSeBwgAABWgAAAFucG9zdC+zMgMAAAbYAAAARQABAAAAAQAA8MQQT18PPPUACwIAAAAAAM9xeH8AAAAAz3F4fwAlACUB2wHbAAAACAACAAAAAAAAAAEAAAHbAAAALgIAAAAAAAHbAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAHAEQAAgAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIAAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQkAAAAAAACAAAABAAAAIAAAAAAAAAAAUGZFZABAAGEhkgHg/+AALgHb/9sAAAABAAAAAAAAAgAAAAAAAAACAAAAAgAAJQAlACUAJQAAAAAAAwAAAAMAAAAcAAEAAAAAAFwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAAAYSAiIZAhkv//AAAAAABhICIhkCGS//8AAP+l3+PedN5xAAEAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGAIwAsAEWAAIAJQAlAdsB2wAYACwAAD8BNjQvASYjIg8BBhUUHwEHBhUUHwEWMzI2FAcGBwYiJyYnJjQ3Njc2MhcWF/GCBgaCBQcIBR0GBldXBgYdBQgH7x0eMjB8MDIeHR0eMjB8MDIecYIGDgaCBQUeBQcJBFhYBAkHBR4F0nwwMh4dHR4yMHwwMh4dHR4yAAAAAgAlACUB2wHbABgALAAAJTc2NTQvATc2NTQvASYjIg8BBhQfARYzMjYUBwYHBiInJicmNDc2NzYyFxYXASgdBgZXVwYGHQUIBwWCBgaCBQcIuB0eMjB8MDIeHR0eMjB8MDIecR4FBwkEWFgECQcFHgUFggYOBoIF0nwwMh4dHR4yMHwwMh4dHR4yAAABACUAJQHbAdsAEwAAABQHBgcGIicmJyY0NzY3NjIXFhcB2x0eMjB8MDIeHR0eMjB8MDIeAT58MDIeHR0eMjB8MDIeHR0eMgABACUAJQHbAdsAQwAAARUUBisBIicmPwEmIyIHBgcGBwYUFxYXFhcWMzI3Njc2MzIfARYVFAcGBwYjIicmJyYnJjQ3Njc2NzYzMhcWFzc2FxYB2woIgAsGBQkoKjodHBwSFAwLCwwUEhwcHSIeIBMGAQQDJwMCISspNC8mLBobFBERFBsaLCYvKicpHSUIDAsBt4AICgsLCScnCwwUEhwcOhwcEhQMCw8OHAMDJwMDAgQnFBQRFBsaLCZeJiwaGxQRDxEcJQgEBgAAAAAAAAwAlgABAAAAAAABAAUADAABAAAAAAACAAcAIgABAAAAAAADACEAbgABAAAAAAAEAAUAnAABAAAAAAAFAAsAugABAAAAAAAGAAUA0gADAAEECQABAAoAAAADAAEECQACAA4AEgADAAEECQADAEIAKgADAAEECQAEAAoAkAADAAEECQAFABYAogADAAEECQAGAAoAxgBzAGwAaQBjAGsAAHNsaWNrAABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAHMAbABpAGMAawAgADoAIAAxADQALQA0AC0AMgAwADEANAAARm9udEZvcmdlIDIuMCA6IHNsaWNrIDogMTQtNC0yMDE0AABzAGwAaQBjAGsAAHNsaWNrAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABzAGwAaQBjAGsAAHNsaWNrAAAAAAIAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAgECAQMAhwBECmFycm93cmlnaHQJYXJyb3dsZWZ0AAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzu7XsAAAAADPcXh/AAAAAM9xeH8=);src:url(data:application/vnd.ms-fontobject;base64,AAgAAGQHAAABAAIAAAAAAAIABQkAAAAAAAABAJABAAAAAExQAQAAgCAAAAAAAAAAAAAAAAEAAAAAAAAATxDE8AAAAAAAAAAAAAAAAAAAAAAAAAoAcwBsAGkAYwBrAAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAKAHMAbABpAGMAawAAAAAAAAEAAAANAIAAAwBQRkZUTW3RyK8AAAdIAAAAHEdERUYANAAGAAAHKAAAACBPUy8yT/b9sgAAAVgAAABWY21hcCIPRb0AAAHIAAABYmdhc3D//wADAAAHIAAAAAhnbHlmP5u2YAAAAzwAAAIsaGVhZAABMfsAAADcAAAANmhoZWED5QIFAAABFAAAACRobXR4BkoASgAAAbAAAAAWbG9jYQD2AaIAAAMsAAAAEG1heHAASwBHAAABOAAAACBuYW1lBSeBwgAABWgAAAFucG9zdC+zMgMAAAbYAAAARQABAAAAAQAA8MQQT18PPPUACwIAAAAAAM9xeH8AAAAAz3F4fwAlACUB2wHbAAAACAACAAAAAAAAAAEAAAHbAAAALgIAAAAAAAHbAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAHAEQAAgAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIAAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQkAAAAAAACAAAABAAAAIAAAAAAAAAAAUGZFZABAAGEhkgHg/+AALgHb/9sAAAABAAAAAAAAAgAAAAAAAAACAAAAAgAAJQAlACUAJQAAAAAAAwAAAAMAAAAcAAEAAAAAAFwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAAAYSAiIZAhkv//AAAAAABhICIhkCGS//8AAP+l3+PedN5xAAEAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGAIwAsAEWAAIAJQAlAdsB2wAYACwAAD8BNjQvASYjIg8BBhUUHwEHBhUUHwEWMzI2FAcGBwYiJyYnJjQ3Njc2MhcWF/GCBgaCBQcIBR0GBldXBgYdBQgH7x0eMjB8MDIeHR0eMjB8MDIecYIGDgaCBQUeBQcJBFhYBAkHBR4F0nwwMh4dHR4yMHwwMh4dHR4yAAAAAgAlACUB2wHbABgALAAAJTc2NTQvATc2NTQvASYjIg8BBhQfARYzMjYUBwYHBiInJicmNDc2NzYyFxYXASgdBgZXVwYGHQUIBwWCBgaCBQcIuB0eMjB8MDIeHR0eMjB8MDIecR4FBwkEWFgECQcFHgUFggYOBoIF0nwwMh4dHR4yMHwwMh4dHR4yAAABACUAJQHbAdsAEwAAABQHBgcGIicmJyY0NzY3NjIXFhcB2x0eMjB8MDIeHR0eMjB8MDIeAT58MDIeHR0eMjB8MDIeHR0eMgABACUAJQHbAdsAQwAAARUUBisBIicmPwEmIyIHBgcGBwYUFxYXFhcWMzI3Njc2MzIfARYVFAcGBwYjIicmJyYnJjQ3Njc2NzYzMhcWFzc2FxYB2woIgAsGBQkoKjodHBwSFAwLCwwUEhwcHSIeIBMGAQQDJwMCISspNC8mLBobFBERFBsaLCYvKicpHSUIDAsBt4AICgsLCScnCwwUEhwcOhwcEhQMCw8OHAMDJwMDAgQnFBQRFBsaLCZeJiwaGxQRDxEcJQgEBgAAAAAAAAwAlgABAAAAAAABAAUADAABAAAAAAACAAcAIgABAAAAAAADACEAbgABAAAAAAAEAAUAnAABAAAAAAAFAAsAugABAAAAAAAGAAUA0gADAAEECQABAAoAAAADAAEECQACAA4AEgADAAEECQADAEIAKgADAAEECQAEAAoAkAADAAEECQAFABYAogADAAEECQAGAAoAxgBzAGwAaQBjAGsAAHNsaWNrAABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAHMAbABpAGMAawAgADoAIAAxADQALQA0AC0AMgAwADEANAAARm9udEZvcmdlIDIuMCA6IHNsaWNrIDogMTQtNC0yMDE0AABzAGwAaQBjAGsAAHNsaWNrAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABzAGwAaQBjAGsAAHNsaWNrAAAAAAIAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAgECAQMAhwBECmFycm93cmlnaHQJYXJyb3dsZWZ0AAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzu7XsAAAAADPcXh/AAAAAM9xeH8=) format("embedded-opentype"),url(data:font/woff;base64,d09GRk9UVE8AAAVkAAsAAAAAB1wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAAi4AAAKbH/pWDkZGVE0AAAM4AAAAGgAAABxt0civR0RFRgAAA1QAAAAcAAAAIAAyAARPUy8yAAADcAAAAFIAAABgUBj/rmNtYXAAAAPEAAAAUAAAAWIiC0SwaGVhZAAABBQAAAAuAAAANgABMftoaGVhAAAERAAAABwAAAAkA+UCA2htdHgAAARgAAAADgAAAA4ESgBKbWF4cAAABHAAAAAGAAAABgAFUABuYW1lAAAEeAAAANwAAAFuBSeBwnBvc3QAAAVUAAAAEAAAACAAAwABeJw9ks9vEkEUx2cpWyeUoFYgNkHi2Wt7N3rVm3cTs3UVLC4LxIWEQvi1P3i7O1tYLJDAmlgKGEhQrsajf0j7J3jYTXrQWUrMJG+++b55n5e8NwwKBhHDMLv5kxT3ATEBxKBn3qOAl9zxHgb1MAPhHQgHkyF08Gr/L8B/Eb6zWnmCJ7AJVLubQOheArXvJ1A4EXi6j4I+Zg9F0QFKvsnlBCmXeve+sFEnb/nCptdtQ4QYhVFRAT1HrF8UQK/RL/SbmUbclsvGVFXRZKDHUE38cc4qpkbAAsuwiImvro+ufcfaOIQ6szlrmjRJDaKZKnbjN3GWKIbiIzRFUfCffuxxKOL+3LDlDVvx2TdxN84qZEsnhNBa6pgm2dAsnzbLsETdsmRFxUeHV4e+I2/ptN8TyqV8T3Dt29t7EYOuajVIw2y1Wy3M86w0zg/Fz2IvawmQAUHOVrPVfLkoScVynsqsTG0MGUs4z55nh3mnOJa+li+rl9WpPIcFfDubDeaDC+fLBdYN3QADzLauGfj4B6sZmq6CCpqmtSvF0qlUl2qf5AJIUCSlTqlb7lUG+LRfGzZGzZEyBgccMu6MuqPecNDvD4Y9Kjtj4gD+DsvKVMTcMdtqtZtmkzQstQvYje7Syep0PDSAhSOeHYXYWThEF//A/0YvYV1fSQtpKU5STtrhbQ444OtpKSWJIg3pOg8cBs7maTY1EZf07aq+hjWs7IWzdCYTGhb2CtZ47x+Uhx28AAB4nGNgYGBkAIJz765vANHnCyvqYTQAWnkHswAAeJxjYGRgYOADYgkGEGBiYARCFjAG8RgABHYAN3icY2BmYmCcwMDKwMHow5jGwMDgDqW/MkgytDAwMDGwcjKAQQMDAyOQUmCAgoA01xQGB4ZExUmMD/4/YNBjvP3/NgNEDQPjbbBKBQZGADfLDgsAAHicY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQzMCQqKClOUJz0/z9YHRLv/+L7D+8V3cuHmgAHjGwM6ELUByxUMIOZCmbgAAA5LQ8XeJxjYGRgYABiO68w73h+m68M3EwMIHC+sKIeTqsyqDLeZrwN5HIwgKUB/aYJUgAAeJxjYGRgYLzNwMCgx8QAAkA2IwMqYAIAMGIB7QIAAAACAAAlACUAJQAlAAAAAFAAAAUAAHicbY49asNAEIU/2ZJDfkiRIvXapUFCEqpcptABUrg3ZhEiQoKVfY9UqVLlGDlADpAT5e16IUWysMz3hjfzBrjjjQT/EjKpCy+4YhN5yZoxcirPe+SMWz4jr6S+5UzSa3VuwpTnBfc8RF7yxDZyKs9r5IxHPiKv1P9iZqDnyAvMQ39UecbScVb/gJO03Xk4CFom3XYK1clhMdQUlKo7/d9NF13RkIdfy+MV7TSe2sl11tRFaXYmJKpWTd7kdVnJ8veevZKc+n3I93t9Jnvr5n4aTVWU/0z9AI2qMkV4nGNgZkAGjAxoAAAAjgAF) format("woff"),url(data:font/ttf;base64,AAEAAAANAIAAAwBQRkZUTW3RyK8AAAdIAAAAHEdERUYANAAGAAAHKAAAACBPUy8yT/b9sgAAAVgAAABWY21hcCIPRb0AAAHIAAABYmdhc3D//wADAAAHIAAAAAhnbHlmP5u2YAAAAzwAAAIsaGVhZAABMfsAAADcAAAANmhoZWED5QIFAAABFAAAACRobXR4BkoASgAAAbAAAAAWbG9jYQD2AaIAAAMsAAAAEG1heHAASwBHAAABOAAAACBuYW1lBSeBwgAABWgAAAFucG9zdC+zMgMAAAbYAAAARQABAAAAAQAA8MQQT18PPPUACwIAAAAAAM9xeH8AAAAAz3F4fwAlACUB2wHbAAAACAACAAAAAAAAAAEAAAHbAAAALgIAAAAAAAHbAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAHAEQAAgAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAQIAAZAABQAIAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAIABQkAAAAAAACAAAABAAAAIAAAAAAAAAAAUGZFZABAAGEhkgHg/+AALgHb/9sAAAABAAAAAAAAAgAAAAAAAAACAAAAAgAAJQAlACUAJQAAAAAAAwAAAAMAAAAcAAEAAAAAAFwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAAAYSAiIZAhkv//AAAAAABhICIhkCGS//8AAP+l3+PedN5xAAEAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGAIwAsAEWAAIAJQAlAdsB2wAYACwAAD8BNjQvASYjIg8BBhUUHwEHBhUUHwEWMzI2FAcGBwYiJyYnJjQ3Njc2MhcWF/GCBgaCBQcIBR0GBldXBgYdBQgH7x0eMjB8MDIeHR0eMjB8MDIecYIGDgaCBQUeBQcJBFhYBAkHBR4F0nwwMh4dHR4yMHwwMh4dHR4yAAAAAgAlACUB2wHbABgALAAAJTc2NTQvATc2NTQvASYjIg8BBhQfARYzMjYUBwYHBiInJicmNDc2NzYyFxYXASgdBgZXVwYGHQUIBwWCBgaCBQcIuB0eMjB8MDIeHR0eMjB8MDIecR4FBwkEWFgECQcFHgUFggYOBoIF0nwwMh4dHR4yMHwwMh4dHR4yAAABACUAJQHbAdsAEwAAABQHBgcGIicmJyY0NzY3NjIXFhcB2x0eMjB8MDIeHR0eMjB8MDIeAT58MDIeHR0eMjB8MDIeHR0eMgABACUAJQHbAdsAQwAAARUUBisBIicmPwEmIyIHBgcGBwYUFxYXFhcWMzI3Njc2MzIfARYVFAcGBwYjIicmJyYnJjQ3Njc2NzYzMhcWFzc2FxYB2woIgAsGBQkoKjodHBwSFAwLCwwUEhwcHSIeIBMGAQQDJwMCISspNC8mLBobFBERFBsaLCYvKicpHSUIDAsBt4AICgsLCScnCwwUEhwcOhwcEhQMCw8OHAMDJwMDAgQnFBQRFBsaLCZeJiwaGxQRDxEcJQgEBgAAAAAAAAwAlgABAAAAAAABAAUADAABAAAAAAACAAcAIgABAAAAAAADACEAbgABAAAAAAAEAAUAnAABAAAAAAAFAAsAugABAAAAAAAGAAUA0gADAAEECQABAAoAAAADAAEECQACAA4AEgADAAEECQADAEIAKgADAAEECQAEAAoAkAADAAEECQAFABYAogADAAEECQAGAAoAxgBzAGwAaQBjAGsAAHNsaWNrAABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABGAG8AbgB0AEYAbwByAGcAZQAgADIALgAwACAAOgAgAHMAbABpAGMAawAgADoAIAAxADQALQA0AC0AMgAwADEANAAARm9udEZvcmdlIDIuMCA6IHNsaWNrIDogMTQtNC0yMDE0AABzAGwAaQBjAGsAAHNsaWNrAABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABzAGwAaQBjAGsAAHNsaWNrAAAAAAIAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAgECAQMAhwBECmFycm93cmlnaHQJYXJyb3dsZWZ0AAAAAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzu7XsAAAAADPcXh/AAAAAM9xeH8=) format("truetype"),url(/statics/slick.12459f22.svg#slick) format("svg")}.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:20px;height:20px;padding:0;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translateY(-50%);cursor:pointer;color:transparent;border:none;outline:none;background:transparent}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:.25}.slick-prev:before,.slick-next:before{font-family:slick;font-size:20px;line-height:1;opacity:.75;color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-prev{left:-25px}[dir=rtl] .slick-prev{right:-25px;left:auto}.slick-prev:before{content:"\2190"}[dir=rtl] .slick-prev:before{content:"\2192"}.slick-next{right:-25px}[dir=rtl] .slick-next{right:auto;left:-25px}.slick-next:before{content:"\2192"}[dir=rtl] .slick-next:before{content:"\2190"}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{position:absolute;bottom:-25px;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center}.slick-dots li{position:relative;display:inline-block;width:20px;height:20px;margin:0 5px;padding:0;cursor:pointer}.slick-dots li button{font-size:0;line-height:0;display:block;width:20px;height:20px;padding:5px;cursor:pointer;color:transparent;border:0;outline:none;background:transparent}.slick-dots li button:hover,.slick-dots li button:focus{outline:none}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1}.slick-dots li button:before{font-family:slick;font-size:6px;line-height:20px;position:absolute;top:0;left:0;width:20px;height:20px;content:"\2022";text-align:center;opacity:.25;color:#000;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-dots li.slick-active button:before{opacity:.75;color:#000}.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translateZ(0)}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto}.slick-track:before,.slick-track:after{display:table;content:""}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir=rtl] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}.bg-blue-animate{animation:blur-animate .2s ease-in;backdrop-filter:blur(10px)}@keyframes blur-animate{0%{backdrop-filter:blur(1px)}to{backdrop-filter:blur(10px)}}.animate-spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}table thead th:first-of-type{border-top-left-radius:8px}table thead th:last-of-type{border-top-right-radius:8px}.last-row td:first-of-type{border-bottom-left-radius:8px}.last-row td:last-of-type{border-bottom-right-radius:8px}.slick-prev{left:-40px}.slick-next{right:-40px}.slick-prev,.slick-next{z-index:100}.chakra-popover__popper{z-index:9999!important}.inbound-item .chakra-checkbox__label{max-width:100%;width:100%}.react-datepicker__navigation.react-datepicker__navigation--previous,.react-datepicker__navigation.react-datepicker__navigation--next{padding-top:6px}.react-datepicker{background-color:var(--chakra-colors-white)!important;border:1px solid var(--chakra-colors-gray-200);border-radius:var(--chakra-radii-md)!important;position:relative}.chakra-ui-dark .react-datepicker{background-color:var(--chakra-colors-gray-700)!important;border:1px solid var(--chakra-colors-gray-600);border-radius:var(--chakra-radii-md)!important;position:relative}.react-datepicker__header{text-align:center;background-color:unset;position:relative;border-bottom:1px solid var(--chakra-colors-gray-200)}.chakra-ui-dark .react-datepicker__header{border-bottom:1px solid var(--chakra-colors-gray-600)}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:var(--chakra-colors-white)}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:var(--chakra-colors-gray-200)}.chakra-ui-dark .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:var(--chakra-colors-gray-700)}.chakra-ui-dark .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:var(--chakra-colors-gray-600)}.react-datepicker__current-month,.react-datepicker__day-name,.react-datepicker__day{color:var(--chakra-colors-chakra-body-text)!important}.chakra-ui-dark .react-datepicker__current-month,.chakra-ui-dark .react-datepicker__day-name,.chakra-ui-dark .react-datepicker__day{color:var(--chakra-colors-gray-300)!important}.react-datepicker__day:hover{border-radius:.3rem;background-color:var(--chakra-colors-primary-300)!important;color:var(--chakra-colors-white)!important}.chakra-ui-dark .react-datepicker__day:hover{border-radius:.3rem;background-color:var(--chakra-colors-primary-500)!important;color:var(--chakra-colors-gray-800)!important}.react-datepicker__day--disabled{color:var(--chakra-colors-gray-400)!important}.react-datepicker__day--disabled:hover{background-color:transparent!important;color:var(--chakra-colors-gray-400)!important}.chakra-ui-dark .react-datepicker__day--disabled{color:var(--chakra-colors-gray-500)!important}.chakra-ui-dark .react-datepicker__day--disabled:hover{background-color:transparent!important;color:var(--chakra-colors-gray-500)!important}.react-datepicker__day--keyboard-selected,.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range{border-radius:.3rem;background-color:var(--chakra-colors-primary-500)!important;color:var(--chakra-colors-white)!important}.chakra-ui-dark .react-datepicker__day--keyboard-selected,.chakra-ui-dark .react-datepicker__day--selected,.chakra-ui-dark .react-datepicker__day--in-selecting-range,.chakra-ui-dark .react-datepicker__day--in-range{border-radius:.3rem;background-color:var(--chakra-colors-primary-200)!important;color:var(--chakra-colors-gray-800)!important}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range){border-radius:.3rem;background-color:var(--chakra-colors-primary-400)!important}.chakra-ui-dark .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range){border-radius:.3rem;background-color:var(--chakra-colors-primary-400)!important}.react-datepicker__day--outside-month{visibility:hidden}.datepicker-panel .react-datepicker{background-color:unset;border:unset;border-radius:unset;display:inline-block;position:relative}.green{background:#66ff99}.red{background:#e53e3e}.orange{background:#fbd38d}.bx-shadow{box-shadow:0 0 8px 3px #e6dddd1a}.circle{min-width:10px;min-height:10px;border-radius:50%;box-shadow:0 0 1px 1px #0000001a}.pulse{animation:pulse-animation 3s infinite}.pulse.green{animation:green-pulse-animation 3s infinite}.pulse.red{animation:red-pulse-animation 3s infinite}.pulse.orange{animation:orange-pulse-animation 3s infinite}@keyframes pulse-animation{0%{box-shadow:0 0 #0006}to{box-shadow:0 0 0 10px #0000}}@keyframes green-pulse-animation{0%{box-shadow:0 0 #66ff9975}to{box-shadow:0 0 0 10px #6f90}}@keyframes red-pulse-animation{0%{box-shadow:0 0 #e53e3e8c}to{box-shadow:0 0 0 10px #e53e3e00}}@keyframes orange-pulse-animation{0%{box-shadow:0 0 #fbd38d85}to{box-shadow:0 0 0 10px #fbd38d00}}.flex-status{display:flex;align-items:center;justify-content:start;gap:.7rem} diff --git a/app/dashboard/build/assets/jsoneditor-icons.45c98bf0.svg b/app/dashboard/build/statics/jsoneditor-icons.45c98bf0.svg similarity index 100% rename from app/dashboard/build/assets/jsoneditor-icons.45c98bf0.svg rename to app/dashboard/build/statics/jsoneditor-icons.45c98bf0.svg diff --git a/app/dashboard/public/locales/en.json b/app/dashboard/build/statics/locales/en.json similarity index 100% rename from app/dashboard/public/locales/en.json rename to app/dashboard/build/statics/locales/en.json diff --git a/app/dashboard/public/locales/fa.json b/app/dashboard/build/statics/locales/fa.json similarity index 100% rename from app/dashboard/public/locales/fa.json rename to app/dashboard/build/statics/locales/fa.json diff --git a/app/dashboard/public/locales/ru.json b/app/dashboard/build/statics/locales/ru.json similarity index 100% rename from app/dashboard/public/locales/ru.json rename to app/dashboard/build/statics/locales/ru.json diff --git a/app/dashboard/public/locales/zh.json b/app/dashboard/build/statics/locales/zh.json similarity index 100% rename from app/dashboard/public/locales/zh.json rename to app/dashboard/build/statics/locales/zh.json diff --git a/app/dashboard/build/assets/logo.2507bd68.svg b/app/dashboard/build/statics/logo.2507bd68.svg similarity index 100% rename from app/dashboard/build/assets/logo.2507bd68.svg rename to app/dashboard/build/statics/logo.2507bd68.svg diff --git a/app/dashboard/build/assets/slick.12459f22.svg b/app/dashboard/build/statics/slick.12459f22.svg similarity index 100% rename from app/dashboard/build/assets/slick.12459f22.svg rename to app/dashboard/build/statics/slick.12459f22.svg diff --git a/app/dashboard/build/assets/vendor.108888cb.js b/app/dashboard/build/statics/vendor.3f3f0bc0.js similarity index 92% rename from app/dashboard/build/assets/vendor.108888cb.js rename to app/dashboard/build/statics/vendor.3f3f0bc0.js index 5cf9783cc..8f819b949 100644 --- a/app/dashboard/build/assets/vendor.108888cb.js +++ b/app/dashboard/build/statics/vendor.3f3f0bc0.js @@ -316,14 +316,14 @@ function YM(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qx=Object.prototype.hasOwnProperty,KV=/^[: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]*$/,f_={},p_={};function JV(e){return Qx.call(p_,e)?!0:Qx.call(f_,e)?!1:KV.test(e)?p_[e]=!0:(f_[e]=!0,!1)}function QV(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 qV(e,t,n,r){if(t===null||typeof t>"u"||QV(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 di(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 Vr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vr[e]=new di(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vr[t]=new di(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vr[e]=new di(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vr[e]=new di(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){Vr[e]=new di(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vr[e]=new di(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vr[e]=new di(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vr[e]=new di(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vr[e]=new di(e,5,!1,e.toLowerCase(),null,!1,!1)});var eA=/[\-:]([a-z])/g;function tA(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(eA,tA);Vr[t]=new di(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(eA,tA);Vr[t]=new di(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(eA,tA);Vr[t]=new di(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vr[e]=new di(e,1,!1,e.toLowerCase(),null,!1,!1)});Vr.xlinkHref=new di("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vr[e]=new di(e,1,!1,e.toLowerCase(),null,!0,!0)});function nA(e,t,n,r){var i=Vr.hasOwnProperty(t)?Vr[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qx=Object.prototype.hasOwnProperty,KV=/^[: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]*$/,f_={},p_={};function JV(e){return Qx.call(p_,e)?!0:Qx.call(f_,e)?!1:KV.test(e)?p_[e]=!0:(f_[e]=!0,!1)}function QV(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 qV(e,t,n,r){if(t===null||typeof t>"u"||QV(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 di(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 Vr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vr[e]=new di(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vr[t]=new di(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vr[e]=new di(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vr[e]=new di(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){Vr[e]=new di(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vr[e]=new di(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vr[e]=new di(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vr[e]=new di(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vr[e]=new di(e,5,!1,e.toLowerCase(),null,!1,!1)});var eA=/[\-:]([a-z])/g;function tA(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(eA,tA);Vr[t]=new di(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(eA,tA);Vr[t]=new di(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(eA,tA);Vr[t]=new di(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vr[e]=new di(e,1,!1,e.toLowerCase(),null,!1,!1)});Vr.xlinkHref=new di("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vr[e]=new di(e,1,!1,e.toLowerCase(),null,!0,!0)});function nA(e,t,n,r){var i=Vr.hasOwnProperty(t)?Vr[t]:null;(i!==null?i.type!==0:r||!(2c||i[a]!==o[c]){var u=` -`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=c);break}}}finally{Zb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qu(e):""}function ez(e){switch(e.tag){case 5:return qu(e.type);case 16:return qu("Lazy");case 13:return qu("Suspense");case 19:return qu("SuspenseList");case 0:case 2:case 15:return e=Xb(e.type,!1),e;case 11:return e=Xb(e.type.render,!1),e;case 1:return e=Xb(e.type,!0),e;default:return""}}function nw(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 ec:return"Fragment";case ql:return"Portal";case qx:return"Profiler";case rA:return"StrictMode";case ew:return"Suspense";case tw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _L:return(e.displayName||"Context")+".Consumer";case kL:return(e._context.displayName||"Context")+".Provider";case iA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oA:return t=e.displayName||null,t!==null?t:nw(e.type)||"Memo";case qa:t=e._payload,e=e._init;try{return nw(e(t))}catch{}}return null}function tz(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 nw(t);case 8:return t===rA?"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 Ss(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nz(e){var t=TL(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 wf(e){e._valueTracker||(e._valueTracker=nz(e))}function PL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=TL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rg(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 rw(e,t){var n=t.checked;return qn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function m_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ss(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 RL(e,t){t=t.checked,t!=null&&nA(e,"checked",t,!1)}function iw(e,t){RL(e,t);var n=Ss(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")?ow(e,t.type,n):t.hasOwnProperty("defaultValue")&&ow(e,t.type,Ss(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function v_(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 ow(e,t,n){(t!=="number"||Rg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ed=Array.isArray;function Cc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Cf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pd={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},rz=["Webkit","ms","Moz","O"];Object.keys(pd).forEach(function(e){rz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pd[t]=pd[e]})});function DL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pd.hasOwnProperty(e)&&pd[e]?(""+t).trim():t+"px"}function $L(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=DL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var iz=qn({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 lw(e,t){if(t){if(iz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(bt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(bt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(bt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(bt(62))}}function cw(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 uw=null;function aA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dw=null,Sc=null,Ac=null;function x_(e){if(e=Kh(e)){if(typeof dw!="function")throw Error(bt(280));var t=e.stateNode;t&&(t=ky(t),dw(e.stateNode,e.type,t))}}function NL(e){Sc?Ac?Ac.push(e):Ac=[e]:Sc=e}function FL(){if(Sc){var e=Sc,t=Ac;if(Ac=Sc=null,x_(e),t)for(e=0;e>>=0,e===0?32:31-(gz(e)/mz|0)|0}var Sf=64,Af=4194304;function td(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 Dg(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 c=a&~i;c!==0?r=td(c):(o&=a,o!==0&&(r=td(o)))}else a=n&~i,a!==0?r=td(a):o!==0&&(r=td(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Xh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xo(t),e[t]=n}function xz(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=md),T_=String.fromCharCode(32),P_=!1;function iD(e,t){switch(e){case"keyup":return Xz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tc=!1;function Kz(e,t){switch(e){case"compositionend":return oD(t);case"keypress":return t.which!==32?null:(P_=!0,T_);case"textInput":return e=t.data,e===T_&&P_?null:e;default:return null}}function Jz(e,t){if(tc)return e==="compositionend"||!pA&&iD(e,t)?(e=nD(),pp=dA=cs=null,tc=!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=L_(n)}}function cD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uD(){for(var e=window,t=Rg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rg(e.document)}return t}function gA(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 aj(e){var t=uD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cD(n.ownerDocument.documentElement,n)){if(r!==null&&gA(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=D_(n,o);var a=D_(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,nc=null,vw=null,yd=null,yw=!1;function $_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yw||nc==null||nc!==Rg(r)||(r=nc,"selectionStart"in r&&gA(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}),yd&&eh(yd,r)||(yd=r,r=Fg(vw,"onSelect"),0oc||(e.current=Aw[oc],Aw[oc]=null,oc--)}function Ln(e,t){oc++,Aw[oc]=e.current,e.current=t}var As={},Jr=$s(As),vi=$s(!1),gl=As;function jc(e,t){var n=e.type.contextTypes;if(!n)return As;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 yi(e){return e=e.childContextTypes,e!=null}function Wg(){Fn(vi),Fn(Jr)}function z_(e,t,n){if(Jr.current!==As)throw Error(bt(168));Ln(Jr,t),Ln(vi,n)}function bD(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(bt(108,tz(e)||"Unknown",i));return qn({},n,r)}function Hg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||As,gl=Jr.current,Ln(Jr,e),Ln(vi,vi.current),!0}function j_(e,t,n){var r=e.stateNode;if(!r)throw Error(bt(169));n?(e=bD(e,t,gl),r.__reactInternalMemoizedMergedChildContext=e,Fn(vi),Fn(Jr),Ln(Jr,e)):Fn(vi),Ln(vi,n)}var ga=null,_y=!1,l0=!1;function xD(e){ga===null?ga=[e]:ga.push(e)}function yj(e){_y=!0,xD(e)}function Ns(){if(!l0&&ga!==null){l0=!0;var e=0,t=En;try{var n=ga;for(En=1;e>=a,i-=a,va=1<<32-xo(t)+i|n<g?(w=C,C=null):w=C.sibling;var f=P(T,C,O[g],L);if(f===null){C===null&&(C=w);break}e&&C&&f.alternate===null&&t(T,C),M=o(f,M,g),b===null?x=f:b.sibling=f,b=f,C=w}if(g===O.length)return n(T,C),Gn&&zs(T,g),x;if(C===null){for(;gg?(w=C,C=null):w=C.sibling;var m=P(T,C,f.value,L);if(m===null){C===null&&(C=w);break}e&&C&&m.alternate===null&&t(T,C),M=o(m,M,g),b===null?x=m:b.sibling=m,b=m,C=w}if(f.done)return n(T,C),Gn&&zs(T,g),x;if(C===null){for(;!f.done;g++,f=O.next())f=I(T,f.value,L),f!==null&&(M=o(f,M,g),b===null?x=f:b.sibling=f,b=f);return Gn&&zs(T,g),x}for(C=r(T,C);!f.done;g++,f=O.next())f=F(C,T,g,f.value,L),f!==null&&(e&&f.alternate!==null&&C.delete(f.key===null?g:f.key),M=o(f,M,g),b===null?x=f:b.sibling=f,b=f);return e&&C.forEach(function(E){return t(T,E)}),Gn&&zs(T,g),x}function D(T,M,O,L){if(typeof O=="object"&&O!==null&&O.type===ec&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case xf:e:{for(var x=O.key,b=M;b!==null;){if(b.key===x){if(x=O.type,x===ec){if(b.tag===7){n(T,b.sibling),M=i(b,O.props.children),M.return=T,T=M;break e}}else if(b.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===qa&&J_(x)===b.type){n(T,b.sibling),M=i(b,O.props),M.ref=Du(T,b,O),M.return=T,T=M;break e}n(T,b);break}else t(T,b);b=b.sibling}O.type===ec?(M=il(O.props.children,T.mode,L,O.key),M.return=T,T=M):(L=Cp(O.type,O.key,O.props,null,T.mode,L),L.ref=Du(T,M,O),L.return=T,T=L)}return a(T);case ql:e:{for(b=O.key;M!==null;){if(M.key===b)if(M.tag===4&&M.stateNode.containerInfo===O.containerInfo&&M.stateNode.implementation===O.implementation){n(T,M.sibling),M=i(M,O.children||[]),M.return=T,T=M;break e}else{n(T,M);break}else t(T,M);M=M.sibling}M=m0(O,T.mode,L),M.return=T,T=M}return a(T);case qa:return b=O._init,D(T,M,b(O._payload),L)}if(ed(O))return B(T,M,O,L);if(Pu(O))return N(T,M,O,L);Rf(T,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,M!==null&&M.tag===6?(n(T,M.sibling),M=i(M,O),M.return=T,T=M):(n(T,M),M=g0(O,T.mode,L),M.return=T,T=M),a(T)):n(T,M)}return D}var Yc=ED(!0),TD=ED(!1),Jh={},Uo=$s(Jh),ih=$s(Jh),oh=$s(Jh);function Js(e){if(e===Jh)throw Error(bt(174));return e}function AA(e,t){switch(Ln(oh,t),Ln(ih,e),Ln(Uo,Jh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sw(t,e)}Fn(Uo),Ln(Uo,t)}function Zc(){Fn(Uo),Fn(ih),Fn(oh)}function PD(e){Js(oh.current);var t=Js(Uo.current),n=sw(t,e.type);t!==n&&(Ln(ih,e),Ln(Uo,n))}function IA(e){ih.current===e&&(Fn(Uo),Fn(ih))}var Kn=$s(0);function Zg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var c0=[];function kA(){for(var e=0;en?n:4,e(!0);var r=u0.transition;u0.transition={};try{e(!1),t()}finally{En=n,u0.transition=r}}function YD(){return no().memoizedState}function Cj(e,t,n){var r=xs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ZD(e))XD(t,n);else if(n=AD(e,t,n,r),n!==null){var i=si();wo(n,e,r,i),UD(n,t,r)}}function Sj(e,t,n){var r=xs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ZD(e))XD(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,c=o(a,n);if(i.hasEagerState=!0,i.eagerState=c,Io(c,a)){var u=t.interleaved;u===null?(i.next=i,CA(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=AD(e,t,i,r),n!==null&&(i=si(),wo(n,e,r,i),UD(n,t,r))}}function ZD(e){var t=e.alternate;return e===Qn||t!==null&&t===Qn}function XD(e,t){bd=Xg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function UD(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lA(e,n)}}var Ug={readContext:to,useCallback:Gr,useContext:Gr,useEffect:Gr,useImperativeHandle:Gr,useInsertionEffect:Gr,useLayoutEffect:Gr,useMemo:Gr,useReducer:Gr,useRef:Gr,useState:Gr,useDebugValue:Gr,useDeferredValue:Gr,useTransition:Gr,useMutableSource:Gr,useSyncExternalStore:Gr,useId:Gr,unstable_isNewReconciler:!1},Aj={readContext:to,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:to,useEffect:q_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yp(4194308,4,HD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yp(4194308,4,e,t)},useInsertionEffect:function(e,t){return yp(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();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=Cj.bind(null,Qn,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:Q_,useDebugValue:RA,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=Q_(!1),t=e[0];return e=wj.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qn,i=Mo();if(Gn){if(n===void 0)throw Error(bt(407));n=n()}else{if(n=t(),Tr===null)throw Error(bt(349));(vl&30)!==0||MD(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,q_(DD.bind(null,r,o,e),[e]),r.flags|=2048,lh(9,LD.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Tr.identifierPrefix;if(Gn){var n=ya,r=va;n=(r&~(1<<32-xo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ah++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=c);break}}}finally{Zb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qu(e):""}function ez(e){switch(e.tag){case 5:return qu(e.type);case 16:return qu("Lazy");case 13:return qu("Suspense");case 19:return qu("SuspenseList");case 0:case 2:case 15:return e=Xb(e.type,!1),e;case 11:return e=Xb(e.type.render,!1),e;case 1:return e=Xb(e.type,!0),e;default:return""}}function nw(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 ec:return"Fragment";case ql:return"Portal";case qx:return"Profiler";case rA:return"StrictMode";case ew:return"Suspense";case tw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _L:return(e.displayName||"Context")+".Consumer";case kL:return(e._context.displayName||"Context")+".Provider";case iA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oA:return t=e.displayName||null,t!==null?t:nw(e.type)||"Memo";case qa:t=e._payload,e=e._init;try{return nw(e(t))}catch{}}return null}function tz(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 nw(t);case 8:return t===rA?"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 Ss(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nz(e){var t=TL(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 wf(e){e._valueTracker||(e._valueTracker=nz(e))}function PL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=TL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rg(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 rw(e,t){var n=t.checked;return qn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function m_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ss(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 RL(e,t){t=t.checked,t!=null&&nA(e,"checked",t,!1)}function iw(e,t){RL(e,t);var n=Ss(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")?ow(e,t.type,n):t.hasOwnProperty("defaultValue")&&ow(e,t.type,Ss(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function v_(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 ow(e,t,n){(t!=="number"||Rg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ed=Array.isArray;function Cc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Cf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pd={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},rz=["Webkit","ms","Moz","O"];Object.keys(pd).forEach(function(e){rz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pd[t]=pd[e]})});function DL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pd.hasOwnProperty(e)&&pd[e]?(""+t).trim():t+"px"}function $L(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=DL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var iz=qn({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 lw(e,t){if(t){if(iz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(bt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(bt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(bt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(bt(62))}}function cw(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 uw=null;function aA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dw=null,Sc=null,Ac=null;function x_(e){if(e=Kh(e)){if(typeof dw!="function")throw Error(bt(280));var t=e.stateNode;t&&(t=ky(t),dw(e.stateNode,e.type,t))}}function NL(e){Sc?Ac?Ac.push(e):Ac=[e]:Sc=e}function FL(){if(Sc){var e=Sc,t=Ac;if(Ac=Sc=null,x_(e),t)for(e=0;e>>=0,e===0?32:31-(gz(e)/mz|0)|0}var Sf=64,Af=4194304;function td(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 Dg(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 c=a&~i;c!==0?r=td(c):(o&=a,o!==0&&(r=td(o)))}else a=n&~i,a!==0?r=td(a):o!==0&&(r=td(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Xh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xo(t),e[t]=n}function xz(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=md),T_=String.fromCharCode(32),P_=!1;function iD(e,t){switch(e){case"keyup":return Xz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tc=!1;function Kz(e,t){switch(e){case"compositionend":return oD(t);case"keypress":return t.which!==32?null:(P_=!0,T_);case"textInput":return e=t.data,e===T_&&P_?null:e;default:return null}}function Jz(e,t){if(tc)return e==="compositionend"||!pA&&iD(e,t)?(e=nD(),pp=dA=cs=null,tc=!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=L_(n)}}function cD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uD(){for(var e=window,t=Rg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rg(e.document)}return t}function gA(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 aj(e){var t=uD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cD(n.ownerDocument.documentElement,n)){if(r!==null&&gA(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=D_(n,o);var a=D_(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,nc=null,vw=null,yd=null,yw=!1;function $_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yw||nc==null||nc!==Rg(r)||(r=nc,"selectionStart"in r&&gA(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}),yd&&eh(yd,r)||(yd=r,r=Fg(vw,"onSelect"),0oc||(e.current=Aw[oc],Aw[oc]=null,oc--)}function Ln(e,t){oc++,Aw[oc]=e.current,e.current=t}var As={},Jr=$s(As),vi=$s(!1),gl=As;function jc(e,t){var n=e.type.contextTypes;if(!n)return As;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 yi(e){return e=e.childContextTypes,e!=null}function Wg(){Fn(vi),Fn(Jr)}function z_(e,t,n){if(Jr.current!==As)throw Error(bt(168));Ln(Jr,t),Ln(vi,n)}function bD(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(bt(108,tz(e)||"Unknown",i));return qn({},n,r)}function Hg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||As,gl=Jr.current,Ln(Jr,e),Ln(vi,vi.current),!0}function j_(e,t,n){var r=e.stateNode;if(!r)throw Error(bt(169));n?(e=bD(e,t,gl),r.__reactInternalMemoizedMergedChildContext=e,Fn(vi),Fn(Jr),Ln(Jr,e)):Fn(vi),Ln(vi,n)}var ma=null,_y=!1,l0=!1;function xD(e){ma===null?ma=[e]:ma.push(e)}function yj(e){_y=!0,xD(e)}function Ns(){if(!l0&&ma!==null){l0=!0;var e=0,t=En;try{var n=ma;for(En=1;e>=a,i-=a,ya=1<<32-xo(t)+i|n<g?(w=C,C=null):w=C.sibling;var f=P(T,C,O[g],L);if(f===null){C===null&&(C=w);break}e&&C&&f.alternate===null&&t(T,C),M=o(f,M,g),b===null?x=f:b.sibling=f,b=f,C=w}if(g===O.length)return n(T,C),Gn&&zs(T,g),x;if(C===null){for(;gg?(w=C,C=null):w=C.sibling;var m=P(T,C,f.value,L);if(m===null){C===null&&(C=w);break}e&&C&&m.alternate===null&&t(T,C),M=o(m,M,g),b===null?x=m:b.sibling=m,b=m,C=w}if(f.done)return n(T,C),Gn&&zs(T,g),x;if(C===null){for(;!f.done;g++,f=O.next())f=I(T,f.value,L),f!==null&&(M=o(f,M,g),b===null?x=f:b.sibling=f,b=f);return Gn&&zs(T,g),x}for(C=r(T,C);!f.done;g++,f=O.next())f=F(C,T,g,f.value,L),f!==null&&(e&&f.alternate!==null&&C.delete(f.key===null?g:f.key),M=o(f,M,g),b===null?x=f:b.sibling=f,b=f);return e&&C.forEach(function(E){return t(T,E)}),Gn&&zs(T,g),x}function D(T,M,O,L){if(typeof O=="object"&&O!==null&&O.type===ec&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case xf:e:{for(var x=O.key,b=M;b!==null;){if(b.key===x){if(x=O.type,x===ec){if(b.tag===7){n(T,b.sibling),M=i(b,O.props.children),M.return=T,T=M;break e}}else if(b.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===qa&&J_(x)===b.type){n(T,b.sibling),M=i(b,O.props),M.ref=Du(T,b,O),M.return=T,T=M;break e}n(T,b);break}else t(T,b);b=b.sibling}O.type===ec?(M=il(O.props.children,T.mode,L,O.key),M.return=T,T=M):(L=Cp(O.type,O.key,O.props,null,T.mode,L),L.ref=Du(T,M,O),L.return=T,T=L)}return a(T);case ql:e:{for(b=O.key;M!==null;){if(M.key===b)if(M.tag===4&&M.stateNode.containerInfo===O.containerInfo&&M.stateNode.implementation===O.implementation){n(T,M.sibling),M=i(M,O.children||[]),M.return=T,T=M;break e}else{n(T,M);break}else t(T,M);M=M.sibling}M=m0(O,T.mode,L),M.return=T,T=M}return a(T);case qa:return b=O._init,D(T,M,b(O._payload),L)}if(ed(O))return B(T,M,O,L);if(Pu(O))return N(T,M,O,L);Rf(T,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,M!==null&&M.tag===6?(n(T,M.sibling),M=i(M,O),M.return=T,T=M):(n(T,M),M=g0(O,T.mode,L),M.return=T,T=M),a(T)):n(T,M)}return D}var Yc=ED(!0),TD=ED(!1),Jh={},Uo=$s(Jh),ih=$s(Jh),oh=$s(Jh);function Js(e){if(e===Jh)throw Error(bt(174));return e}function AA(e,t){switch(Ln(oh,t),Ln(ih,e),Ln(Uo,Jh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sw(t,e)}Fn(Uo),Ln(Uo,t)}function Zc(){Fn(Uo),Fn(ih),Fn(oh)}function PD(e){Js(oh.current);var t=Js(Uo.current),n=sw(t,e.type);t!==n&&(Ln(ih,e),Ln(Uo,n))}function IA(e){ih.current===e&&(Fn(Uo),Fn(ih))}var Kn=$s(0);function Zg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var c0=[];function kA(){for(var e=0;en?n:4,e(!0);var r=u0.transition;u0.transition={};try{e(!1),t()}finally{En=n,u0.transition=r}}function YD(){return no().memoizedState}function Cj(e,t,n){var r=xs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ZD(e))XD(t,n);else if(n=AD(e,t,n,r),n!==null){var i=si();wo(n,e,r,i),UD(n,t,r)}}function Sj(e,t,n){var r=xs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ZD(e))XD(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,c=o(a,n);if(i.hasEagerState=!0,i.eagerState=c,Io(c,a)){var u=t.interleaved;u===null?(i.next=i,CA(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=AD(e,t,i,r),n!==null&&(i=si(),wo(n,e,r,i),UD(n,t,r))}}function ZD(e){var t=e.alternate;return e===Qn||t!==null&&t===Qn}function XD(e,t){bd=Xg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function UD(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lA(e,n)}}var Ug={readContext:to,useCallback:Gr,useContext:Gr,useEffect:Gr,useImperativeHandle:Gr,useInsertionEffect:Gr,useLayoutEffect:Gr,useMemo:Gr,useReducer:Gr,useRef:Gr,useState:Gr,useDebugValue:Gr,useDeferredValue:Gr,useTransition:Gr,useMutableSource:Gr,useSyncExternalStore:Gr,useId:Gr,unstable_isNewReconciler:!1},Aj={readContext:to,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:to,useEffect:q_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yp(4194308,4,HD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yp(4194308,4,e,t)},useInsertionEffect:function(e,t){return yp(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();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=Cj.bind(null,Qn,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:Q_,useDebugValue:RA,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=Q_(!1),t=e[0];return e=wj.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qn,i=Mo();if(Gn){if(n===void 0)throw Error(bt(407));n=n()}else{if(n=t(),Tr===null)throw Error(bt(349));(vl&30)!==0||MD(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,q_(DD.bind(null,r,o,e),[e]),r.flags|=2048,lh(9,LD.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Tr.identifierPrefix;if(Gn){var n=ba,r=ya;n=(r&~(1<<32-xo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ah++,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[Fo]=t,e[rh]=r,i$(e,t,!1,!1),t.stateNode=e;e:{switch(a=cw(n,r),n){case"dialog":$n("cancel",e),$n("close",e),i=r;break;case"iframe":case"object":case"embed":$n("load",e),i=r;break;case"video":case"audio":for(i=0;iUc&&(t.flags|=128,r=!0,$u(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Gn)return Yr(t),null}else 2*sr()-o.renderingStartTime>Uc&&n!==1073741824&&(t.flags|=128,r=!0,$u(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=sr(),t.sibling=null,n=Kn.current,Ln(Kn,r?n&1|2:n&1),t):(Yr(t),null);case 22:case 23:return NA(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ki&1073741824)!==0&&(Yr(t),t.subtreeFlags&6&&(t.flags|=8192)):Yr(t),null;case 24:return null;case 25:return null}throw Error(bt(156,t.tag))}function Oj(e,t){switch(vA(t),t.tag){case 1:return yi(t.type)&&Wg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zc(),Fn(vi),Fn(Jr),kA(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return IA(t),null;case 13:if(Fn(Kn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(bt(340));Gc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fn(Kn),null;case 4:return Zc(),null;case 10:return wA(t.type._context),null;case 22:case 23:return NA(),null;case 24:return null;default:return null}}var Mf=!1,Ur=!1,Mj=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function cc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function $w(e,t,n){try{n()}catch(r){tr(e,t,r)}}var lE=!1;function Lj(e,t){if(bw=$g,e=uD(),gA(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,c=-1,u=-1,d=0,p=0,I=e,P=null;t:for(;;){for(var F;I!==n||i!==0&&I.nodeType!==3||(c=a+i),I!==o||r!==0&&I.nodeType!==3||(u=a+r),I.nodeType===3&&(a+=I.nodeValue.length),(F=I.firstChild)!==null;)P=I,I=F;for(;;){if(I===e)break t;if(P===n&&++d===i&&(c=a),P===o&&++p===r&&(u=a),(F=I.nextSibling)!==null)break;I=P,P=I.parentNode}I=F}n=c===-1||u===-1?null:{start:c,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(xw={focusedElem:e,selectionRange:n},$g=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){t=Nt;try{var B=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var N=B.memoizedProps,D=B.memoizedState,T=t.stateNode,M=T.getSnapshotBeforeUpdate(t.elementType===t.type?N:go(t.type,N),D);T.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var O=t.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(bt(163))}}catch(L){tr(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}return B=lE,lE=!1,B}function xd(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&&$w(t,n,o)}i=i.next}while(i!==r)}}function Py(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 Nw(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 s$(e){var t=e.alternate;t!==null&&(e.alternate=null,s$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fo],delete t[rh],delete t[Sw],delete t[mj],delete t[vj])),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 l$(e){return e.tag===5||e.tag===3||e.tag===4}function cE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||l$(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 Fw(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=Bg));else if(r!==4&&(e=e.child,e!==null))for(Fw(e,t,n),e=e.sibling;e!==null;)Fw(e,t,n),e=e.sibling}function Bw(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(Bw(e,t,n),e=e.sibling;e!==null;)Bw(e,t,n),e=e.sibling}var Nr=null,mo=!1;function ja(e,t,n){for(n=n.child;n!==null;)c$(e,t,n),n=n.sibling}function c$(e,t,n){if(Xo&&typeof Xo.onCommitFiberUnmount=="function")try{Xo.onCommitFiberUnmount(Cy,n)}catch{}switch(n.tag){case 5:Ur||cc(n,t);case 6:var r=Nr,i=mo;Nr=null,ja(e,t,n),Nr=r,mo=i,Nr!==null&&(mo?(e=Nr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nr.removeChild(n.stateNode));break;case 18:Nr!==null&&(mo?(e=Nr,n=n.stateNode,e.nodeType===8?s0(e.parentNode,n):e.nodeType===1&&s0(e,n),Qd(e)):s0(Nr,n.stateNode));break;case 4:r=Nr,i=mo,Nr=n.stateNode.containerInfo,mo=!0,ja(e,t,n),Nr=r,mo=i;break;case 0:case 11:case 14:case 15:if(!Ur&&(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)!==0||(o&4)!==0)&&$w(n,t,a),i=i.next}while(i!==r)}ja(e,t,n);break;case 1:if(!Ur&&(cc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){tr(n,t,c)}ja(e,t,n);break;case 21:ja(e,t,n);break;case 22:n.mode&1?(Ur=(r=Ur)||n.memoizedState!==null,ja(e,t,n),Ur=r):ja(e,t,n);break;default:ja(e,t,n)}}function uE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mj),t.forEach(function(r){var i=zj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function co(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$j(r/1960))-r,10e?16:e,us===null)var r=!1;else{if(e=us,us=null,Qg=0,(gn&6)!==0)throw Error(bt(331));var i=gn;for(gn|=4,Nt=e.current;Nt!==null;){var o=Nt,a=o.child;if((Nt.flags&16)!==0){var c=o.deletions;if(c!==null){for(var u=0;usr()-DA?rl(e,0):LA|=n),bi(e,t)}function v$(e,t){t===0&&((e.mode&1)===0?t=1:(t=Af,Af<<=1,(Af&130023424)===0&&(Af=4194304)));var n=si();e=Ra(e,t),e!==null&&(Xh(e,t,n),bi(e,n))}function Vj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),v$(e,n)}function zj(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(bt(314))}r!==null&&r.delete(t),v$(e,n)}var y$;y$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vi.current)mi=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return mi=!1,Pj(e,t,n);mi=(e.flags&131072)!==0}else mi=!1,Gn&&(t.flags&1048576)!==0&&wD(t,zg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bp(e,t),e=t.pendingProps;var i=jc(t,Jr.current);kc(t,n),i=EA(null,t,r,e,i,n);var o=TA();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,yi(r)?(o=!0,Hg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,SA(t),i.updater=Ey,t.stateNode=i,i._reactInternals=t,Tw(t,r,e,n),t=Ow(null,t,r,!0,o,n)):(t.tag=0,Gn&&o&&mA(t),ri(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Gj(r),e=go(r,e),i){case 0:t=Rw(null,t,r,e,n);break e;case 1:t=oE(null,t,r,e,n);break e;case 11:t=rE(null,t,r,e,n);break e;case 14:t=iE(null,t,r,go(r.type,e),n);break e}throw Error(bt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),Rw(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),oE(e,t,r,i,n);case 3:e:{if(t$(t),e===null)throw Error(bt(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ID(e,t),Yg(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=Xc(Error(bt(423)),t),t=aE(e,t,r,n,i);break e}else if(r!==i){i=Xc(Error(bt(424)),t),t=aE(e,t,r,n,i);break e}else for(Ti=vs(t.stateNode.containerInfo.firstChild),Li=t,Gn=!0,vo=null,n=TD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gc(),r===i){t=Oa(e,t,n);break e}ri(e,t,r,n)}t=t.child}return t;case 5:return PD(t),e===null&&kw(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ww(r,i)?a=null:o!==null&&ww(r,o)&&(t.flags|=32),e$(e,t),ri(e,t,a,n),t.child;case 6:return e===null&&kw(t),null;case 13:return n$(e,t,n);case 4:return AA(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yc(t,null,r,n):ri(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),rE(e,t,r,i,n);case 7:return ri(e,t,t.pendingProps,n),t.child;case 8:return ri(e,t,t.pendingProps.children,n),t.child;case 12:return ri(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,Ln(jg,r._currentValue),r._currentValue=a,o!==null)if(Io(o.value,a)){if(o.children===i.children&&!vi.current){t=Oa(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){a=o.child;for(var u=c.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wa(-1,n&-n),u.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?u.next=u:(u.next=p.next,p.next=u),d.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),_w(o.return,n,t),c.lanes|=n;break}u=u.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(bt(341));a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),_w(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}ri(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,kc(t,n),i=to(i),r=r(i),t.flags|=1,ri(e,t,r,n),t.child;case 14:return r=t.type,i=go(r,t.pendingProps),i=go(r.type,i),iE(e,t,r,i,n);case 15:return QD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),bp(e,t),t.tag=1,yi(r)?(e=!0,Hg(t)):e=!1,kc(t,n),_D(t,r,i),Tw(t,r,i,n),Ow(null,t,r,!0,e,n);case 19:return r$(e,t,n);case 22:return qD(e,t,n)}throw Error(bt(156,t.tag))};function b$(e,t){return GL(e,t)}function jj(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 Ui(e,t,n,r){return new jj(e,t,n,r)}function BA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gj(e){if(typeof e=="function")return BA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iA)return 11;if(e===oA)return 14}return 2}function ws(e,t){var n=e.alternate;return n===null?(n=Ui(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 Cp(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")BA(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ec:return il(n.children,i,o,t);case rA:a=8,i|=8;break;case qx:return e=Ui(12,n,t,i|2),e.elementType=qx,e.lanes=o,e;case ew:return e=Ui(13,n,t,i),e.elementType=ew,e.lanes=o,e;case tw:return e=Ui(19,n,t,i),e.elementType=tw,e.lanes=o,e;case EL:return Oy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kL:a=10;break e;case _L:a=9;break e;case iA:a=11;break e;case oA:a=14;break e;case qa:a=16,r=null;break e}throw Error(bt(130,e==null?e:typeof e,""))}return t=Ui(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function il(e,t,n,r){return e=Ui(7,e,r,t),e.lanes=n,e}function Oy(e,t,n,r){return e=Ui(22,e,r,t),e.elementType=EL,e.lanes=n,e.stateNode={isHidden:!1},e}function g0(e,t,n){return e=Ui(6,e,null,t),e.lanes=n,e}function m0(e,t,n){return t=Ui(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yj(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=Kb(0),this.expirationTimes=Kb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kb(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function WA(e,t,n,r,i,o,a,c,u){return e=new Yj(e,t,n,c,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ui(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},SA(o),e}function Zj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Bi})(Ls);const S$=Gh(Ls.exports);var[A$,Qj]=In({strict:!1,name:"PortalContext"}),jA="chakra-portal",qj=".chakra-portal",eG=e=>Se("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),tG=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=de.exports.useState(null),o=de.exports.useRef(null),[,a]=de.exports.useState({});de.exports.useEffect(()=>a({}),[]);const c=Qj(),u=UV();Zo(()=>{if(!r)return;const p=r.ownerDocument,I=t&&c!=null?c:p.body;if(!I)return;o.current=p.createElement("div"),o.current.className=jA,I.appendChild(o.current),a({});const P=o.current;return()=>{I.contains(P)&&I.removeChild(P)}},[r]);const d=u!=null&&u.zIndex?Se(eG,{zIndex:u==null?void 0:u.zIndex,children:n}):n;return o.current?Ls.exports.createPortal(Se(A$,{value:o.current,children:d}),o.current):Se("span",{ref:p=>{p&&i(p)}})},nG=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i!=null?i:typeof window<"u"?document.body:void 0,a=de.exports.useMemo(()=>{const u=i==null?void 0:i.ownerDocument.createElement("div");return u&&(u.className=jA),u},[i]),[,c]=de.exports.useState({});return Zo(()=>c({}),[]),Zo(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?Ls.exports.createPortal(Se(A$,{value:r?a:null,children:t}),a):null};function gu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?Se(nG,{containerRef:n,...r}):Se(tG,{...r})}gu.className=jA;gu.selector=qj;gu.displayName="Portal";function Fs(){const e=de.exports.useContext(Yd);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var GA=de.exports.createContext({});GA.displayName="ColorModeContext";function YA(){const e=de.exports.useContext(GA);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var $f={light:"chakra-ui-light",dark:"chakra-ui-dark"};function rG(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?$f.dark:$f.light),document.body.classList.remove(r?$f.light:$f.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var iG="chakra-ui-color-mode";function oG(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var aG=oG(iG),yE=()=>{};function bE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function I$(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=aG}=e,c=i==="dark"?"dark":"light",[u,d]=de.exports.useState(()=>bE(a,c)),[p,I]=de.exports.useState(()=>bE(a)),{getSystemTheme:P,setClassName:F,setDataset:B,addListener:N}=de.exports.useMemo(()=>rG({preventTransition:o}),[o]),D=i==="system"&&!u?p:u,T=de.exports.useCallback(L=>{const x=L==="system"?P():L;d(x),F(x==="dark"),B(x),a.set(x)},[a,P,F,B]);Zo(()=>{i==="system"&&I(P())},[]),de.exports.useEffect(()=>{const L=a.get();if(L){T(L);return}if(i==="system"){T("system");return}T(c)},[a,c,i,T]);const M=de.exports.useCallback(()=>{T(D==="dark"?"light":"dark")},[D,T]);de.exports.useEffect(()=>{if(!!r)return N(T)},[r,N,T]);const O=de.exports.useMemo(()=>({colorMode:t!=null?t:D,toggleColorMode:t?yE:M,setColorMode:t?yE:T,forced:t!==void 0}),[D,M,T,t]);return Se(GA.Provider,{value:O,children:n})}I$.displayName="ColorModeProvider";function k$(){const e=YA(),t=Fs();return{...e,theme:t}}function sG(e,t,n){var r,i;if(t==null)return t;const o=a=>{var c,u;return(u=(c=e.__breakpoints)==null?void 0:c.asArray)==null?void 0:u[a]};return(i=(r=o(t))!=null?r:o(n))!=null?i:n}function lG(e,t,n){var r,i;if(t==null)return t;const o=a=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[a])==null?void 0:u.value};return(i=(r=o(t))!=null?r:o(n))!=null?i:n}function cG(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),c=r.map((u,d)=>{var p,I;if(e==="breakpoints")return sG(o,u,(p=a[d])!=null?p:u);const P=`${e}.${u}`;return lG(o,P,(I=a[d])!=null?I:u)});return Array.isArray(t)?c:c[0]}}var Bt=(...e)=>e.filter(Boolean).join(" ");function uG(){return!1}function yr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Qh=e=>{const{condition:t,message:n}=e;t&&uG()&&console.warn(n)};function Ki(e,...t){return dG(e)?e(...t):e}var dG=e=>typeof e=="function",Qt=e=>e?"":void 0,Ca=e=>e?!0:void 0;function Wt(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function ZA(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var jw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,c="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",I="[object Date]",P="[object Error]",F="[object Function]",B="[object GeneratorFunction]",N="[object Map]",D="[object Number]",T="[object Null]",M="[object Object]",O="[object Proxy]",L="[object RegExp]",x="[object Set]",b="[object String]",C="[object Undefined]",g="[object WeakMap]",w="[object ArrayBuffer]",f="[object DataView]",m="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",y="[object Int16Array]",_="[object Int32Array]",$="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",X="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,re=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,le={};le[m]=le[E]=le[S]=le[y]=le[_]=le[$]=le[z]=le[H]=le[X]=!0,le[c]=le[u]=le[w]=le[p]=le[f]=le[I]=le[P]=le[F]=le[N]=le[D]=le[M]=le[L]=le[x]=le[b]=le[g]=!1;var ve=typeof tn=="object"&&tn&&tn.Object===Object&&tn,V=typeof self=="object"&&self&&self.Object===Object&&self,Z=ve||V||Function("return this")(),ce=t&&!t.nodeType&&t,Y=ce&&!0&&e&&!e.nodeType&&e,ie=Y&&Y.exports===ce,he=ie&&ve.process,fe=function(){try{var Fe=Y&&Y.require&&Y.require("util").types;return Fe||he&&he.binding&&he.binding("util")}catch{}}(),Ce=fe&&fe.isTypedArray;function Pe(Fe,Ke,at){switch(at.length){case 0:return Fe.call(Ke);case 1:return Fe.call(Ke,at[0]);case 2:return Fe.call(Ke,at[0],at[1]);case 3:return Fe.call(Ke,at[0],at[1],at[2])}return Fe.apply(Ke,at)}function we(Fe,Ke){for(var at=-1,Mt=Array(Fe);++at-1}function je(Fe,Ke){var at=this.__data__,Mt=W(at,Fe);return Mt<0?(++this.size,at.push([Fe,Ke])):at[Mt][1]=Ke,this}wt.prototype.clear=Ht,wt.prototype.delete=rn,wt.prototype.get=Pn,wt.prototype.has=Dr,wt.prototype.set=je;function Le(Fe){var Ke=-1,at=Fe==null?0:Fe.length;for(this.clear();++Ke1?at[hn-1]:void 0,Wn=hn>2?at[2]:void 0;for(Rn=Fe.length>3&&typeof Rn=="function"?(hn--,Rn):void 0,Wn&&Jt(at[0],at[1],Wn)&&(Rn=hn<3?void 0:Rn,hn=1),Ke=Object(Ke);++Mt-1&&Fe%1==0&&Fe0){if(++Ke>=i)return arguments[0]}else Ke=0;return Fe.apply(void 0,arguments)}}function jr(Fe){if(Fe!=null){try{return xe.call(Fe)}catch{}try{return Fe+""}catch{}}return""}function ar(Fe,Ke){return Fe===Ke||Fe!==Fe&&Ke!==Ke}var Nl=te(function(){return arguments}())?te:function(Fe){return _u(Fe)&&ke.call(Fe,"callee")&&!dt.call(Fe,"callee")},Bb=Array.isArray;function Wb(Fe){return Fe!=null&&Jk(Fe.length)&&!Hb(Fe)}function SH(Fe){return _u(Fe)&&Wb(Fe)}var Kk=yt||EH;function Hb(Fe){if(!Ws(Fe))return!1;var Ke=J(Fe);return Ke==F||Ke==B||Ke==d||Ke==O}function Jk(Fe){return typeof Fe=="number"&&Fe>-1&&Fe%1==0&&Fe<=a}function Ws(Fe){var Ke=typeof Fe;return Fe!=null&&(Ke=="object"||Ke=="function")}function _u(Fe){return Fe!=null&&typeof Fe=="object"}function AH(Fe){if(!_u(Fe)||J(Fe)!=M)return!1;var Ke=Qe(Fe);if(Ke===null)return!0;var at=ke.call(Ke,"constructor")&&Ke.constructor;return typeof at=="function"&&at instanceof at&&xe.call(at)==Ge}var Qk=Ce?be(Ce):pe;function IH(Fe){return Me(Fe,qk(Fe))}function qk(Fe){return Wb(Fe)?A(Fe,!0):ye(Fe)}var kH=Ye(function(Fe,Ke,at,Mt){Ie(Fe,Ke,at,Mt)});function _H(Fe){return function(){return Fe}}function e_(Fe){return Fe}function EH(){return!1}e.exports=kH})(jw,jw.exports);const Ji=jw.exports;var hG=e=>/!(important)?$/.test(e),xE=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,fG=(e,t)=>n=>{const r=String(t),i=hG(r),o=xE(r),a=e?`${e}.${o}`:o;let c=yr(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return c=xE(c),i?`${c} !important`:c};function XA(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{var c;const u=fG(t,o)(a);let d=(c=n==null?void 0:n(u,a))!=null?c:u;return r&&(d=r(d,a)),d}}var Nf=(...e)=>t=>e.reduce((n,r)=>r(n),t);function zi(e,t){return n=>{const r={property:n,scale:e};return r.transform=XA({scale:e,transform:t}),r}}var pG=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function gG(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:pG(t),transform:n?XA({scale:n,compose:r}):r}}var _$=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function mG(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",..._$].join(" ")}function vG(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",..._$].join(" ")}var yG={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},bG={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function xG(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var wG={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Gw={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},CG=new Set(Object.values(Gw)),Yw=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),SG=e=>e.trim();function AG(e,t){if(e==null||Yw.has(e))return e;if(!(Zw(e)||Yw.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const c=o.includes("-gradient")?o:`${o}-gradient`,[u,...d]=a.split(",").map(SG).filter(Boolean);if((d==null?void 0:d.length)===0)return e;const p=u in Gw?Gw[u]:u;d.unshift(p);const I=d.map(P=>{if(CG.has(P))return P;const F=P.indexOf(" "),[B,N]=F!==-1?[P.substr(0,F),P.substr(F+1)]:[P],D=Zw(N)?N:N&&N.split(" "),T=`colors.${B}`,M=T in t.__cssMap?t.__cssMap[T].varRef:B;return D?[M,...Array.isArray(D)?D:[D]].join(" "):M});return`${c}(${I.join(", ")})`}var Zw=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),IG=(e,t)=>AG(e,t!=null?t:{});function kG(e){return/^var\(--.+\)$/.test(e)}var _G=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Po=e=>t=>`${e}(${t})`,mn={filter(e){return e!=="auto"?e:yG},backdropFilter(e){return e!=="auto"?e:bG},ring(e){return xG(mn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?mG():e==="auto-gpu"?vG():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=_G(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(kG(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:IG,blur:Po("blur"),opacity:Po("opacity"),brightness:Po("brightness"),contrast:Po("contrast"),dropShadow:Po("drop-shadow"),grayscale:Po("grayscale"),hueRotate:Po("hue-rotate"),invert:Po("invert"),saturate:Po("saturate"),sepia:Po("sepia"),bgImage(e){return e==null||Zw(e)||Yw.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=wG[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},Je={borderWidths:zi("borderWidths"),borderStyles:zi("borderStyles"),colors:zi("colors"),borders:zi("borders"),gradients:zi("gradients",mn.gradient),radii:zi("radii",mn.px),space:zi("space",Nf(mn.vh,mn.px)),spaceT:zi("space",Nf(mn.vh,mn.px)),degreeT(e){return{property:e,transform:mn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:XA({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:zi("sizes",Nf(mn.vh,mn.px)),sizesT:zi("sizes",Nf(mn.vh,mn.fraction)),shadows:zi("shadows"),logical:gG,blur:zi("blur",mn.blur)},Sp={background:Je.colors("background"),backgroundColor:Je.colors("backgroundColor"),backgroundImage:Je.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:mn.bgClip},bgSize:Je.prop("backgroundSize"),bgPosition:Je.prop("backgroundPosition"),bg:Je.colors("background"),bgColor:Je.colors("backgroundColor"),bgPos:Je.prop("backgroundPosition"),bgRepeat:Je.prop("backgroundRepeat"),bgAttachment:Je.prop("backgroundAttachment"),bgGradient:Je.gradients("backgroundImage"),bgClip:{transform:mn.bgClip}};Object.assign(Sp,{bgImage:Sp.backgroundImage,bgImg:Sp.backgroundImage});var yn={border:Je.borders("border"),borderWidth:Je.borderWidths("borderWidth"),borderStyle:Je.borderStyles("borderStyle"),borderColor:Je.colors("borderColor"),borderRadius:Je.radii("borderRadius"),borderTop:Je.borders("borderTop"),borderBlockStart:Je.borders("borderBlockStart"),borderTopLeftRadius:Je.radii("borderTopLeftRadius"),borderStartStartRadius:Je.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Je.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Je.radii("borderTopRightRadius"),borderStartEndRadius:Je.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Je.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Je.borders("borderRight"),borderInlineEnd:Je.borders("borderInlineEnd"),borderBottom:Je.borders("borderBottom"),borderBlockEnd:Je.borders("borderBlockEnd"),borderBottomLeftRadius:Je.radii("borderBottomLeftRadius"),borderBottomRightRadius:Je.radii("borderBottomRightRadius"),borderLeft:Je.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Je.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Je.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Je.borders(["borderLeft","borderRight"]),borderInline:Je.borders("borderInline"),borderY:Je.borders(["borderTop","borderBottom"]),borderBlock:Je.borders("borderBlock"),borderTopWidth:Je.borderWidths("borderTopWidth"),borderBlockStartWidth:Je.borderWidths("borderBlockStartWidth"),borderTopColor:Je.colors("borderTopColor"),borderBlockStartColor:Je.colors("borderBlockStartColor"),borderTopStyle:Je.borderStyles("borderTopStyle"),borderBlockStartStyle:Je.borderStyles("borderBlockStartStyle"),borderBottomWidth:Je.borderWidths("borderBottomWidth"),borderBlockEndWidth:Je.borderWidths("borderBlockEndWidth"),borderBottomColor:Je.colors("borderBottomColor"),borderBlockEndColor:Je.colors("borderBlockEndColor"),borderBottomStyle:Je.borderStyles("borderBottomStyle"),borderBlockEndStyle:Je.borderStyles("borderBlockEndStyle"),borderLeftWidth:Je.borderWidths("borderLeftWidth"),borderInlineStartWidth:Je.borderWidths("borderInlineStartWidth"),borderLeftColor:Je.colors("borderLeftColor"),borderInlineStartColor:Je.colors("borderInlineStartColor"),borderLeftStyle:Je.borderStyles("borderLeftStyle"),borderInlineStartStyle:Je.borderStyles("borderInlineStartStyle"),borderRightWidth:Je.borderWidths("borderRightWidth"),borderInlineEndWidth:Je.borderWidths("borderInlineEndWidth"),borderRightColor:Je.colors("borderRightColor"),borderInlineEndColor:Je.colors("borderInlineEndColor"),borderRightStyle:Je.borderStyles("borderRightStyle"),borderInlineEndStyle:Je.borderStyles("borderInlineEndStyle"),borderTopRadius:Je.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Je.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Je.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Je.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(yn,{rounded:yn.borderRadius,roundedTop:yn.borderTopRadius,roundedTopLeft:yn.borderTopLeftRadius,roundedTopRight:yn.borderTopRightRadius,roundedTopStart:yn.borderStartStartRadius,roundedTopEnd:yn.borderStartEndRadius,roundedBottom:yn.borderBottomRadius,roundedBottomLeft:yn.borderBottomLeftRadius,roundedBottomRight:yn.borderBottomRightRadius,roundedBottomStart:yn.borderEndStartRadius,roundedBottomEnd:yn.borderEndEndRadius,roundedLeft:yn.borderLeftRadius,roundedRight:yn.borderRightRadius,roundedStart:yn.borderInlineStartRadius,roundedEnd:yn.borderInlineEndRadius,borderStart:yn.borderInlineStart,borderEnd:yn.borderInlineEnd,borderTopStartRadius:yn.borderStartStartRadius,borderTopEndRadius:yn.borderStartEndRadius,borderBottomStartRadius:yn.borderEndStartRadius,borderBottomEndRadius:yn.borderEndEndRadius,borderStartRadius:yn.borderInlineStartRadius,borderEndRadius:yn.borderInlineEndRadius,borderStartWidth:yn.borderInlineStartWidth,borderEndWidth:yn.borderInlineEndWidth,borderStartColor:yn.borderInlineStartColor,borderEndColor:yn.borderInlineEndColor,borderStartStyle:yn.borderInlineStartStyle,borderEndStyle:yn.borderInlineEndStyle});var EG={color:Je.colors("color"),textColor:Je.colors("color"),fill:Je.colors("fill"),stroke:Je.colors("stroke")},Xw={boxShadow:Je.shadows("boxShadow"),mixBlendMode:!0,blendMode:Je.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Je.prop("backgroundBlendMode"),opacity:!0};Object.assign(Xw,{shadow:Xw.boxShadow});var TG={filter:{transform:mn.filter},blur:Je.blur("--chakra-blur"),brightness:Je.propT("--chakra-brightness",mn.brightness),contrast:Je.propT("--chakra-contrast",mn.contrast),hueRotate:Je.degreeT("--chakra-hue-rotate"),invert:Je.propT("--chakra-invert",mn.invert),saturate:Je.propT("--chakra-saturate",mn.saturate),dropShadow:Je.propT("--chakra-drop-shadow",mn.dropShadow),backdropFilter:{transform:mn.backdropFilter},backdropBlur:Je.blur("--chakra-backdrop-blur"),backdropBrightness:Je.propT("--chakra-backdrop-brightness",mn.brightness),backdropContrast:Je.propT("--chakra-backdrop-contrast",mn.contrast),backdropHueRotate:Je.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Je.propT("--chakra-backdrop-invert",mn.invert),backdropSaturate:Je.propT("--chakra-backdrop-saturate",mn.saturate)},tm={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:mn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Je.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Je.space("gap"),rowGap:Je.space("rowGap"),columnGap:Je.space("columnGap")};Object.assign(tm,{flexDir:tm.flexDirection});var E$={gridGap:Je.space("gridGap"),gridColumnGap:Je.space("gridColumnGap"),gridRowGap:Je.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},PG={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:mn.outline},outlineOffset:!0,outlineColor:Je.colors("outlineColor")},ji={width:Je.sizesT("width"),inlineSize:Je.sizesT("inlineSize"),height:Je.sizes("height"),blockSize:Je.sizes("blockSize"),boxSize:Je.sizes(["width","height"]),minWidth:Je.sizes("minWidth"),minInlineSize:Je.sizes("minInlineSize"),minHeight:Je.sizes("minHeight"),minBlockSize:Je.sizes("minBlockSize"),maxWidth:Je.sizes("maxWidth"),maxInlineSize:Je.sizes("maxInlineSize"),maxHeight:Je.sizes("maxHeight"),maxBlockSize:Je.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Je.propT("float",mn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ji,{w:ji.width,h:ji.height,minW:ji.minWidth,maxW:ji.maxWidth,minH:ji.minHeight,maxH:ji.maxHeight,overscroll:ji.overscrollBehavior,overscrollX:ji.overscrollBehaviorX,overscrollY:ji.overscrollBehaviorY});var RG={listStyleType:!0,listStylePosition:!0,listStylePos:Je.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Je.prop("listStyleImage")};function OG(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const c=t.get(r);if(c.has(i))return c.get(i);const u=e(r,i,o,a);return c.set(i,u),u}},LG=MG(OG),DG={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},$G={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},v0=(e,t,n)=>{const r={},i=LG(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},NG={srOnly:{transform(e){return e===!0?DG:e==="focusable"?$G:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>v0(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>v0(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>v0(t,e,n)}},Sd={position:!0,pos:Je.prop("position"),zIndex:Je.prop("zIndex","zIndices"),inset:Je.spaceT("inset"),insetX:Je.spaceT(["left","right"]),insetInline:Je.spaceT("insetInline"),insetY:Je.spaceT(["top","bottom"]),insetBlock:Je.spaceT("insetBlock"),top:Je.spaceT("top"),insetBlockStart:Je.spaceT("insetBlockStart"),bottom:Je.spaceT("bottom"),insetBlockEnd:Je.spaceT("insetBlockEnd"),left:Je.spaceT("left"),insetInlineStart:Je.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Je.spaceT("right"),insetInlineEnd:Je.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Sd,{insetStart:Sd.insetInlineStart,insetEnd:Sd.insetInlineEnd});var FG={ring:{transform:mn.ring},ringColor:Je.colors("--chakra-ring-color"),ringOffset:Je.prop("--chakra-ring-offset-width"),ringOffsetColor:Je.colors("--chakra-ring-offset-color"),ringInset:Je.prop("--chakra-ring-inset")},Nn={margin:Je.spaceT("margin"),marginTop:Je.spaceT("marginTop"),marginBlockStart:Je.spaceT("marginBlockStart"),marginRight:Je.spaceT("marginRight"),marginInlineEnd:Je.spaceT("marginInlineEnd"),marginBottom:Je.spaceT("marginBottom"),marginBlockEnd:Je.spaceT("marginBlockEnd"),marginLeft:Je.spaceT("marginLeft"),marginInlineStart:Je.spaceT("marginInlineStart"),marginX:Je.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Je.spaceT("marginInline"),marginY:Je.spaceT(["marginTop","marginBottom"]),marginBlock:Je.spaceT("marginBlock"),padding:Je.space("padding"),paddingTop:Je.space("paddingTop"),paddingBlockStart:Je.space("paddingBlockStart"),paddingRight:Je.space("paddingRight"),paddingBottom:Je.space("paddingBottom"),paddingBlockEnd:Je.space("paddingBlockEnd"),paddingLeft:Je.space("paddingLeft"),paddingInlineStart:Je.space("paddingInlineStart"),paddingInlineEnd:Je.space("paddingInlineEnd"),paddingX:Je.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Je.space("paddingInline"),paddingY:Je.space(["paddingTop","paddingBottom"]),paddingBlock:Je.space("paddingBlock")};Object.assign(Nn,{m:Nn.margin,mt:Nn.marginTop,mr:Nn.marginRight,me:Nn.marginInlineEnd,marginEnd:Nn.marginInlineEnd,mb:Nn.marginBottom,ml:Nn.marginLeft,ms:Nn.marginInlineStart,marginStart:Nn.marginInlineStart,mx:Nn.marginX,my:Nn.marginY,p:Nn.padding,pt:Nn.paddingTop,py:Nn.paddingY,px:Nn.paddingX,pb:Nn.paddingBottom,pl:Nn.paddingLeft,ps:Nn.paddingInlineStart,paddingStart:Nn.paddingInlineStart,pr:Nn.paddingRight,pe:Nn.paddingInlineEnd,paddingEnd:Nn.paddingInlineEnd});var BG={textDecorationColor:Je.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Je.shadows("textShadow")},WG={clipPath:!0,transform:Je.propT("transform",mn.transform),transformOrigin:!0,translateX:Je.spaceT("--chakra-translate-x"),translateY:Je.spaceT("--chakra-translate-y"),skewX:Je.degreeT("--chakra-skew-x"),skewY:Je.degreeT("--chakra-skew-y"),scaleX:Je.prop("--chakra-scale-x"),scaleY:Je.prop("--chakra-scale-y"),scale:Je.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Je.degreeT("--chakra-rotate")},HG={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Je.prop("transitionDuration","transition.duration"),transitionProperty:Je.prop("transitionProperty","transition.property"),transitionTimingFunction:Je.prop("transitionTimingFunction","transition.easing")},VG={fontFamily:Je.prop("fontFamily","fonts"),fontSize:Je.prop("fontSize","fontSizes",mn.px),fontWeight:Je.prop("fontWeight","fontWeights"),lineHeight:Je.prop("lineHeight","lineHeights"),letterSpacing:Je.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},zG={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Je.spaceT("scrollMargin"),scrollMarginTop:Je.spaceT("scrollMarginTop"),scrollMarginBottom:Je.spaceT("scrollMarginBottom"),scrollMarginLeft:Je.spaceT("scrollMarginLeft"),scrollMarginRight:Je.spaceT("scrollMarginRight"),scrollMarginX:Je.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Je.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Je.spaceT("scrollPadding"),scrollPaddingTop:Je.spaceT("scrollPaddingTop"),scrollPaddingBottom:Je.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Je.spaceT("scrollPaddingLeft"),scrollPaddingRight:Je.spaceT("scrollPaddingRight"),scrollPaddingX:Je.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Je.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function T$(e){return yr(e)&&e.reference?e.reference:String(e)}var Ny=(e,...t)=>t.map(T$).join(` ${e} `).replace(/calc/g,""),wE=(...e)=>`calc(${Ny("+",...e)})`,CE=(...e)=>`calc(${Ny("-",...e)})`,Uw=(...e)=>`calc(${Ny("*",...e)})`,SE=(...e)=>`calc(${Ny("/",...e)})`,AE=e=>{const t=T$(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Uw(t,-1)},Zs=Object.assign(e=>({add:(...t)=>Zs(wE(e,...t)),subtract:(...t)=>Zs(CE(e,...t)),multiply:(...t)=>Zs(Uw(e,...t)),divide:(...t)=>Zs(SE(e,...t)),negate:()=>Zs(AE(e)),toString:()=>e.toString()}),{add:wE,subtract:CE,multiply:Uw,divide:SE,negate:AE});function jG(e,t="-"){return e.replace(/\s+/g,t)}function GG(e){const t=jG(e.toString());return ZG(YG(t))}function YG(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function ZG(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function XG(e,t=""){return[t,e].filter(Boolean).join("-")}function UG(e,t){return`var(${e}${t?`, ${t}`:""})`}function KG(e,t=""){return GG(`--${XG(e,t)}`)}function fn(e,t,n){const r=KG(e,n);return{variable:r,reference:UG(r,t)}}function JG(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=fn(`${e}-${i}`,o);continue}n[r]=fn(`${e}-${r}`)}return n}function QG(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function qG(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Kw(e){if(e==null)return e;const{unitless:t}=qG(e);return t||typeof e=="number"?`${e}px`:e}var P$=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,UA=e=>Object.fromEntries(Object.entries(e).sort(P$));function IE(e){const t=UA(e);return Object.assign(Object.values(t),t)}function e4(e){const t=Object.keys(UA(e));return new Set(t)}function kE(e){var t;if(!e)return e;e=(t=Kw(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function rd(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Kw(e)})`),t&&n.push("and",`(max-width: ${Kw(t)})`),n.join(" ")}function t4(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=IE(e),r=Object.entries(e).sort(P$).map(([a,c],u,d)=>{var p;let[,I]=(p=d[u+1])!=null?p:[];return I=parseFloat(I)>0?kE(I):void 0,{_minW:kE(c),breakpoint:a,minW:c,maxW:I,maxWQuery:rd(null,I),minWQuery:rd(c),minMaxQuery:rd(c,I)}}),i=e4(e),o=Array.from(i.values());return{keys:i,normalized:n,isResponsive(a){const c=Object.keys(a);return c.length>0&&c.every(u=>i.has(u))},asObject:UA(e),asArray:IE(e),details:r,get(a){return r.find(c=>c.breakpoint===a)},media:[null,...n.map(a=>rd(a)).slice(1)],toArrayValue(a){if(!yr(a))throw new Error("toArrayValue: value must be an object");const c=o.map(u=>{var d;return(d=a[u])!=null?d:null});for(;QG(c)===null;)c.pop();return c},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((c,u,d)=>{const p=o[d];return p!=null&&u!=null&&(c[p]=u),c},{})}}}var $r={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ga=e=>R$(t=>e(t,"&"),"[role=group]","[data-group]",".group"),la=e=>R$(t=>e(t,"~ &"),"[data-peer]",".peer"),R$=(e,...t)=>t.map(e).join(", "),Fy={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ga($r.hover),_peerHover:la($r.hover),_groupFocus:Ga($r.focus),_peerFocus:la($r.focus),_groupFocusVisible:Ga($r.focusVisible),_peerFocusVisible:la($r.focusVisible),_groupActive:Ga($r.active),_peerActive:la($r.active),_groupDisabled:Ga($r.disabled),_peerDisabled:la($r.disabled),_groupInvalid:Ga($r.invalid),_peerInvalid:la($r.invalid),_groupChecked:Ga($r.checked),_peerChecked:la($r.checked),_groupFocusWithin:Ga($r.focusWithin),_peerFocusWithin:la($r.focusWithin),_peerPlaceholderShown:la($r.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},n4=Object.keys(Fy);function _E(e,t){return fn(String(e).replace(/\./g,"-"),void 0,t)}function r4(e,t){let n={};const r={};for(const[i,o]of Object.entries(e)){const{isSemantic:a,value:c}=o,{variable:u,reference:d}=_E(i,t==null?void 0:t.cssVarPrefix);if(!a){if(i.startsWith("space")){const P=i.split("."),[F,...B]=P,N=`${F}.-${B.join(".")}`,D=Zs.negate(c),T=Zs.negate(d);r[N]={value:D,var:u,varRef:T}}n[u]=c,r[i]={value:c,var:u,varRef:d};continue}const p=P=>{const B=[String(i).split(".")[0],P].join(".");if(!e[B])return P;const{reference:D}=_E(B,t==null?void 0:t.cssVarPrefix);return D},I=yr(c)?c:{default:c};n=Ji(n,Object.entries(I).reduce((P,[F,B])=>{var N,D;const T=p(B.toString());if(F==="default")return P[u]=T,P;const M=(D=(N=Fy)==null?void 0:N[F])!=null?D:F;return P[M]={[u]:T},P},{})),r[i]={value:d,var:u,varRef:d}}return{cssVars:n,cssMap:r}}function i4(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function o4(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var a4=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function s4(e){return o4(e,a4)}function l4(e){return e.semanticTokens}function c4(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function u4({tokens:e,semanticTokens:t}){var n,r;const i=Object.entries((n=Jw(e))!=null?n:{}).map(([a,c])=>[a,{isSemantic:!1,value:c}]),o=Object.entries((r=Jw(t,1))!=null?r:{}).map(([a,c])=>[a,{isSemantic:!0,value:c}]);return Object.fromEntries([...i,...o])}function Jw(e,t=1/0){return!yr(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,i])=>(yr(i)||Array.isArray(i)?Object.entries(Jw(i,t-1)).forEach(([o,a])=>{n[`${r}.${o}`]=a}):n[r]=i,n),{})}function d4(e){var t;const n=c4(e),r=s4(n),i=l4(n),o=u4({tokens:r,semanticTokens:i}),a=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:c,cssVars:u}=r4(o,{cssVarPrefix:a});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:c,__breakpoints:t4(n.breakpoints)}),n}var KA=Ji({},Sp,yn,EG,tm,ji,TG,FG,PG,E$,NG,Sd,Xw,Nn,zG,VG,BG,WG,RG,HG),h4=Object.assign({},Nn,ji,tm,E$,Sd),f4=Object.keys(h4),p4=[...Object.keys(KA),...n4],g4={...KA,...Fy},m4=e=>e in g4,v4=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let c=Ki(e[a],t);if(c==null)continue;if(c=yr(c)&&n(c)?r(c):c,!Array.isArray(c)){o[a]=c;continue}const u=c.slice(0,i.length).length;for(let d=0;de.startsWith("--")&&typeof t=="string"&&!b4(t),w4=(e,t)=>{var n,r;if(t==null)return t;const i=u=>{var d,p;return(p=(d=e.__cssMap)==null?void 0:d[u])==null?void 0:p.varRef},o=u=>{var d;return(d=i(u))!=null?d:u},[a,c]=y4(t);return t=(r=(n=i(a))!=null?n:o(c))!=null?r:o(t),t};function C4(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var c,u,d;const p=Ki(o,r),I=v4(p)(r);let P={};for(let F in I){const B=I[F];let N=Ki(B,r);F in n&&(F=n[F]),x4(F,N)&&(N=w4(r,N));let D=t[F];if(D===!0&&(D={property:F}),yr(N)){P[F]=(c=P[F])!=null?c:{},P[F]=Ji({},P[F],i(N,!0));continue}let T=(d=(u=D==null?void 0:D.transform)==null?void 0:u.call(D,N,r,p))!=null?d:N;T=D!=null&&D.processResult?i(T,!0):T;const M=Ki(D==null?void 0:D.property,r);if(!a&&(D==null?void 0:D.static)){const O=Ki(D.static,r);P=Ji({},P,O)}if(M&&Array.isArray(M)){for(const O of M)P[O]=T;continue}if(M){M==="&"&&yr(T)?P=Ji({},P,T):P[M]=T;continue}if(yr(T)){P=Ji({},P,T);continue}P[F]=T}return P};return i}var O$=e=>t=>C4({theme:t,pseudos:Fy,configs:KA})(e);function Bn(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function S4(e,t){if(Array.isArray(e))return e;if(yr(e))return t(e);if(e!=null)return[e]}function A4(e,t){for(let n=t+1;n{Ji(d,{[O]:P?M[O]:{[T]:M[O]}})});continue}if(!F){P?Ji(d,M):d[T]=M;continue}d[T]=M}}return d}}function k4(e){return t=>{var n;const{variant:r,size:i,theme:o}=t,a=I4(o);return Ji({},Ki((n=e.baseStyle)!=null?n:{},t),a(e,"sizes",i,t),a(e,"variants",r,t))}}function _4(e,t,n){var r,i,o;return(o=(i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)!=null?o:n}function Dn(e){return i4(e,["styleConfig","size","variant","colorScheme"])}var E4=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function T4(e){return yr(e)?E4.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var P4={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},R4=P4,O4={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},M4=O4,L4={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},D4=L4,$4={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},N4=$4,F4={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},B4=F4,W4={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},H4={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},V4={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},z4={property:W4,easing:H4,duration:V4},j4=z4,G4={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Y4=G4,Z4={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},X4=Z4,U4={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},M$=U4,L$={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},K4={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},J4={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Q4={...L$,...K4,container:J4},D$=Q4,$$={breakpoints:M4,zIndices:R4,radii:N4,blur:Y4,colors:D4,...M$,sizes:D$,shadows:B4,space:L$,borders:X4,transition:j4};function An(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...p){r();for(const I of p)t[I]=u(I);return An(e,t)}function o(...p){for(const I of p)I in t||(t[I]=u(I));return An(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([I,P])=>[I,P.selector]))}function c(){return Object.fromEntries(Object.entries(t).map(([I,P])=>[I,P.className]))}function u(p){const F=`chakra-${(["container","root"].includes(p!=null?p:"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:F,selector:`.${F}`,toString:()=>p}}return{parts:i,toPart:u,extend:o,selectors:a,classnames:c,get keys(){return Object.keys(t)},__type:{}}}var q4=An("accordion").parts("root","container","button","panel").extend("icon"),e9=An("alert").parts("title","description","container").extend("icon","spinner"),t9=An("avatar").parts("label","badge","container").extend("excessLabel","group"),n9=An("breadcrumb").parts("link","item","container").extend("separator");An("button").parts();var r9=An("checkbox").parts("control","icon","container").extend("label");An("progress").parts("track","filledTrack").extend("label");var i9=An("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),o9=An("editable").parts("preview","input","textarea"),a9=An("form").parts("container","requiredIndicator","helperText"),s9=An("formError").parts("text","icon"),l9=An("input").parts("addon","field","element"),c9=An("list").parts("container","item","icon"),u9=An("menu").parts("button","list","item").extend("groupTitle","command","divider"),d9=An("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),h9=An("numberinput").parts("root","field","stepperGroup","stepper");An("pininput").parts("field");var f9=An("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),p9=An("progress").parts("label","filledTrack","track"),g9=An("radio").parts("container","control","label"),m9=An("select").parts("field","icon"),v9=An("slider").parts("container","track","thumb","filledTrack","mark"),y9=An("stat").parts("container","label","helpText","number","icon"),b9=An("switch").parts("container","track","thumb"),x9=An("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),w9=An("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),C9=An("tag").parts("container","label","closeButton"),S9=An("card").parts("container","header","body","footer");function Qs(e,t,n){return Math.min(Math.max(e,n),t)}class A9 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var id=A9;function JA(e){if(typeof e!="string")throw new id(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=O9.test(e)?_9(e):e;const n=E9.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(c=>parseInt(uh(c,2),16)),parseInt(uh(a[3]||"f",2),16)/255]}const r=T9.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(c=>parseInt(c,16)),parseInt(a[3]||"ff",16)/255]}const i=P9.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(c=>parseInt(c,10)),parseFloat(a[3]||"1")]}const o=R9.exec(t);if(o){const[a,c,u,d]=Array.from(o).slice(1).map(parseFloat);if(Qs(0,100,c)!==c)throw new id(e);if(Qs(0,100,u)!==u)throw new id(e);return[...M9(a,c,u),Number.isNaN(d)?1:d]}throw new id(e)}function I9(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const EE=e=>parseInt(e.replace(/_/g,""),36),k9="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=EE(t.substring(0,3)),r=EE(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function _9(e){const t=e.toLowerCase().trim(),n=k9[I9(t)];if(!n)throw new id(e);return`#${n}`}const uh=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),E9=new RegExp(`^#${uh("([a-f0-9])",3)}([a-f0-9])?$`,"i"),T9=new RegExp(`^#${uh("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),P9=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${uh(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),R9=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,O9=/^[a-z]+$/i,TE=e=>Math.round(e*255),M9=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(TE);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let c=0,u=0,d=0;i>=0&&i<1?(c=o,u=a):i>=1&&i<2?(c=a,u=o):i>=2&&i<3?(u=o,d=a):i>=3&&i<4?(u=a,d=o):i>=4&&i<5?(c=a,d=o):i>=5&&i<6&&(c=o,d=a);const p=r-o/2,I=c+p,P=u+p,F=d+p;return[I,P,F].map(TE)};function L9(e,t,n,r){return`rgba(${Qs(0,255,e).toFixed()}, ${Qs(0,255,t).toFixed()}, ${Qs(0,255,n).toFixed()}, ${parseFloat(Qs(0,1,r).toFixed(3))})`}function D9(e,t){const[n,r,i,o]=JA(e);return L9(n,r,i,o-t)}function $9(e){const[t,n,r,i]=JA(e);let o=a=>{const c=Qs(0,255,a).toString(16);return c.length===1?`0${c}`:c};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}function N9(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ai=(e,t,n)=>{const r=N9(e,`colors.${t}`,t);try{return $9(r),r}catch{return n!=null?n:"#000000"}},B9=e=>{const[t,n,r]=JA(e);return(t*299+n*587+r*114)/1e3},W9=e=>t=>{const n=ai(t,e);return B9(n)<128?"dark":"light"},H9=e=>t=>W9(e)(t)==="dark",Kc=(e,t)=>n=>{const r=ai(n,e);return D9(r,1-t)};function PE(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function f0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Pw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _j=typeof WeakMap=="function"?WeakMap:Map;function KD(e,t,n){n=Ca(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jg||(Jg=!0,Ww=r),Pw(e,t)},n}function JD(e,t,n){n=Ca(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Pw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Pw(e,t),typeof r!="function"&&(bs===null?bs=new Set([this]):bs.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function eE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _j;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Hj.bind(null,e,t,n),t.then(e,e))}function tE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function nE(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ca(-1,1),t.tag=2,ys(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Ej=Wa.ReactCurrentOwner,mi=!1;function ri(e,t,n,r){t.child=e===null?TD(t,null,n,r):Yc(t,e.child,n,r)}function rE(e,t,n,r,i){n=n.render;var o=t.ref;return kc(t,i),r=EA(e,t,n,r,o,i),n=TA(),e!==null&&!mi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ma(e,t,i)):(Gn&&n&&mA(t),t.flags|=1,ri(e,t,r,i),t.child)}function iE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!BA(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,QD(e,t,o,r,i)):(e=Cp(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:eh,n(a,r)&&e.ref===t.ref)return Ma(e,t,i)}return t.flags|=1,e=ws(o,r),e.ref=t.ref,e.return=t,t.child=e}function QD(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(eh(o,r)&&e.ref===t.ref)if(mi=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(mi=!0);else return t.lanes=e.lanes,Ma(e,t,i)}return Rw(e,t,n,r,i)}function qD(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ln(uc,ki),ki|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ln(uc,ki),ki|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ln(uc,ki),ki|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ln(uc,ki),ki|=r;return ri(e,t,i,n),t.child}function e$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rw(e,t,n,r,i){var o=yi(n)?gl:Jr.current;return o=jc(t,o),kc(t,i),n=EA(e,t,n,r,o,i),r=TA(),e!==null&&!mi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ma(e,t,i)):(Gn&&r&&mA(t),t.flags|=1,ri(e,t,n,i),t.child)}function oE(e,t,n,r,i){if(yi(n)){var o=!0;Hg(t)}else o=!1;if(kc(t,i),t.stateNode===null)bp(e,t),_D(t,n,r),Tw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,c=t.memoizedProps;a.props=c;var u=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=to(d):(d=yi(n)?gl:Jr.current,d=jc(t,d));var p=n.getDerivedStateFromProps,I=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";I||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(c!==r||u!==d)&&K_(t,a,r,d),es=!1;var P=t.memoizedState;a.state=P,Yg(t,r,a,i),u=t.memoizedState,c!==r||P!==u||vi.current||es?(typeof p=="function"&&(Ew(t,n,p,r),u=t.memoizedState),(c=es||U_(t,n,c,r,P,u,d))?(I||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=d,r=c):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ID(e,t),c=t.memoizedProps,d=t.type===t.elementType?c:go(t.type,c),a.props=d,I=t.pendingProps,P=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=to(u):(u=yi(n)?gl:Jr.current,u=jc(t,u));var F=n.getDerivedStateFromProps;(p=typeof F=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(c!==I||P!==u)&&K_(t,a,r,u),es=!1,P=t.memoizedState,a.state=P,Yg(t,r,a,i);var B=t.memoizedState;c!==I||P!==B||vi.current||es?(typeof F=="function"&&(Ew(t,n,F,r),B=t.memoizedState),(d=es||U_(t,n,d,r,P,B,u)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,B,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,B,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||c===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=B),a.props=r,a.state=B,a.context=u,r=d):(typeof a.componentDidUpdate!="function"||c===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),r=!1)}return Ow(e,t,n,r,o,i)}function Ow(e,t,n,r,i,o){e$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&j_(t,n,!1),Ma(e,t,o);r=t.stateNode,Ej.current=t;var c=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Yc(t,e.child,null,o),t.child=Yc(t,null,c,o)):ri(e,t,c,o),t.memoizedState=r.state,i&&j_(t,n,!0),t.child}function t$(e){var t=e.stateNode;t.pendingContext?z_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&z_(e,t.context,!1),AA(e,t.containerInfo)}function aE(e,t,n,r,i){return Gc(),yA(i),t.flags|=256,ri(e,t,n,r),t.child}var Mw={dehydrated:null,treeContext:null,retryLane:0};function Lw(e){return{baseLanes:e,cachePool:null,transitions:null}}function n$(e,t,n){var r=t.pendingProps,i=Kn.current,o=!1,a=(t.flags&128)!==0,c;if((c=a)||(c=e!==null&&e.memoizedState===null?!1:(i&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ln(Kn,i&1),e===null)return kw(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Oy(a,r,0,null),e=il(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Lw(n),t.memoizedState=Mw,e):OA(t,a));if(i=e.memoizedState,i!==null&&(c=i.dehydrated,c!==null))return Tj(e,t,a,r,c,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,c=i.sibling;var u={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ws(i,u),r.subtreeFlags=i.subtreeFlags&14680064),c!==null?o=ws(c,o):(o=il(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Lw(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Mw,r}return o=e.child,e=o.sibling,r=ws(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function OA(e,t){return t=Oy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Of(e,t,n,r){return r!==null&&yA(r),Yc(t,e.child,null,n),e=OA(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tj(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=f0(Error(bt(422))),Of(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Oy({mode:"visible",children:r.children},i,0,null),o=il(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&Yc(t,e.child,null,a),t.child.memoizedState=Lw(a),t.memoizedState=Mw,o);if((t.mode&1)===0)return Of(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var c=r.dgst;return r=c,o=Error(bt(419)),r=f0(o,r,void 0),Of(e,t,a,r)}if(c=(a&e.childLanes)!==0,mi||c){if(r=Tr,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|a))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Oa(e,i),wo(r,e,i,-1))}return FA(),r=f0(Error(bt(421))),Of(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Vj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ti=vs(i.nextSibling),Li=t,Gn=!0,vo=null,e!==null&&(Gi[Yi++]=ya,Gi[Yi++]=ba,Gi[Yi++]=ml,ya=e.id,ba=e.overflow,ml=t),t=OA(t,r.children),t.flags|=4096,t)}function sE(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_w(e.return,t,n)}function p0(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function r$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ri(e,t,r.children,n),r=Kn.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sE(e,n,t);else if(e.tag===19)sE(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ln(Kn,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Zg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),p0(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}p0(t,!0,n,null,o);break;case"together":p0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bp(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(bt(153));if(t.child!==null){for(e=t.child,n=ws(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ws(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pj(e,t,n){switch(t.tag){case 3:t$(t),Gc();break;case 5:PD(t);break;case 1:yi(t.type)&&Hg(t);break;case 4:AA(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ln(jg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ln(Kn,Kn.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?n$(e,t,n):(Ln(Kn,Kn.current&1),e=Ma(e,t,n),e!==null?e.sibling:null);Ln(Kn,Kn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return r$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ln(Kn,Kn.current),r)break;return null;case 22:case 23:return t.lanes=0,qD(e,t,n)}return Ma(e,t,n)}var i$,Dw,o$,a$;i$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Dw=function(){};o$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Js(Uo.current);var o=null;switch(n){case"input":i=rw(e,i),r=rw(e,r),o=[];break;case"select":i=qn({},i,{value:void 0}),r=qn({},r,{value:void 0}),o=[];break;case"textarea":i=aw(e,i),r=aw(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bg)}lw(n,r);var a;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Zd.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var u=r[d];if(c=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(u!=null||c!=null))if(d==="style")if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,c=c?c.__html:void 0,u!=null&&c!==u&&(o=o||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Zd.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&$n("scroll",e),o||c===u||(o=[])):(o=o||[]).push(d,u))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};a$=function(e,t,n,r){n!==r&&(t.flags|=4)};function $u(e,t){if(!Gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Rj(e,t,n){var r=t.pendingProps;switch(vA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(t),null;case 1:return yi(t.type)&&Wg(),Yr(t),null;case 3:return r=t.stateNode,Zc(),Fn(vi),Fn(Jr),kA(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,vo!==null&&(zw(vo),vo=null))),Dw(e,t),Yr(t),null;case 5:IA(t);var i=Js(oh.current);if(n=t.type,e!==null&&t.stateNode!=null)o$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(bt(166));return Yr(t),null}if(e=Js(Uo.current),Pf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Fo]=t,r[rh]=o,e=(t.mode&1)!==0,n){case"dialog":$n("cancel",r),$n("close",r);break;case"iframe":case"object":case"embed":$n("load",r);break;case"video":case"audio":for(i=0;i<\/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[Fo]=t,e[rh]=r,i$(e,t,!1,!1),t.stateNode=e;e:{switch(a=cw(n,r),n){case"dialog":$n("cancel",e),$n("close",e),i=r;break;case"iframe":case"object":case"embed":$n("load",e),i=r;break;case"video":case"audio":for(i=0;iUc&&(t.flags|=128,r=!0,$u(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Gn)return Yr(t),null}else 2*sr()-o.renderingStartTime>Uc&&n!==1073741824&&(t.flags|=128,r=!0,$u(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=sr(),t.sibling=null,n=Kn.current,Ln(Kn,r?n&1|2:n&1),t):(Yr(t),null);case 22:case 23:return NA(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ki&1073741824)!==0&&(Yr(t),t.subtreeFlags&6&&(t.flags|=8192)):Yr(t),null;case 24:return null;case 25:return null}throw Error(bt(156,t.tag))}function Oj(e,t){switch(vA(t),t.tag){case 1:return yi(t.type)&&Wg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zc(),Fn(vi),Fn(Jr),kA(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return IA(t),null;case 13:if(Fn(Kn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(bt(340));Gc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fn(Kn),null;case 4:return Zc(),null;case 10:return wA(t.type._context),null;case 22:case 23:return NA(),null;case 24:return null;default:return null}}var Mf=!1,Ur=!1,Mj=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function cc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function $w(e,t,n){try{n()}catch(r){tr(e,t,r)}}var lE=!1;function Lj(e,t){if(bw=$g,e=uD(),gA(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,c=-1,u=-1,d=0,p=0,I=e,P=null;t:for(;;){for(var F;I!==n||i!==0&&I.nodeType!==3||(c=a+i),I!==o||r!==0&&I.nodeType!==3||(u=a+r),I.nodeType===3&&(a+=I.nodeValue.length),(F=I.firstChild)!==null;)P=I,I=F;for(;;){if(I===e)break t;if(P===n&&++d===i&&(c=a),P===o&&++p===r&&(u=a),(F=I.nextSibling)!==null)break;I=P,P=I.parentNode}I=F}n=c===-1||u===-1?null:{start:c,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(xw={focusedElem:e,selectionRange:n},$g=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){t=Nt;try{var B=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var N=B.memoizedProps,D=B.memoizedState,T=t.stateNode,M=T.getSnapshotBeforeUpdate(t.elementType===t.type?N:go(t.type,N),D);T.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var O=t.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(bt(163))}}catch(L){tr(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}return B=lE,lE=!1,B}function xd(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&&$w(t,n,o)}i=i.next}while(i!==r)}}function Py(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 Nw(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 s$(e){var t=e.alternate;t!==null&&(e.alternate=null,s$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fo],delete t[rh],delete t[Sw],delete t[mj],delete t[vj])),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 l$(e){return e.tag===5||e.tag===3||e.tag===4}function cE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||l$(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 Fw(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=Bg));else if(r!==4&&(e=e.child,e!==null))for(Fw(e,t,n),e=e.sibling;e!==null;)Fw(e,t,n),e=e.sibling}function Bw(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(Bw(e,t,n),e=e.sibling;e!==null;)Bw(e,t,n),e=e.sibling}var Nr=null,mo=!1;function ja(e,t,n){for(n=n.child;n!==null;)c$(e,t,n),n=n.sibling}function c$(e,t,n){if(Xo&&typeof Xo.onCommitFiberUnmount=="function")try{Xo.onCommitFiberUnmount(Cy,n)}catch{}switch(n.tag){case 5:Ur||cc(n,t);case 6:var r=Nr,i=mo;Nr=null,ja(e,t,n),Nr=r,mo=i,Nr!==null&&(mo?(e=Nr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nr.removeChild(n.stateNode));break;case 18:Nr!==null&&(mo?(e=Nr,n=n.stateNode,e.nodeType===8?s0(e.parentNode,n):e.nodeType===1&&s0(e,n),Qd(e)):s0(Nr,n.stateNode));break;case 4:r=Nr,i=mo,Nr=n.stateNode.containerInfo,mo=!0,ja(e,t,n),Nr=r,mo=i;break;case 0:case 11:case 14:case 15:if(!Ur&&(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)!==0||(o&4)!==0)&&$w(n,t,a),i=i.next}while(i!==r)}ja(e,t,n);break;case 1:if(!Ur&&(cc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){tr(n,t,c)}ja(e,t,n);break;case 21:ja(e,t,n);break;case 22:n.mode&1?(Ur=(r=Ur)||n.memoizedState!==null,ja(e,t,n),Ur=r):ja(e,t,n);break;default:ja(e,t,n)}}function uE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mj),t.forEach(function(r){var i=zj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function co(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$j(r/1960))-r,10e?16:e,us===null)var r=!1;else{if(e=us,us=null,Qg=0,(gn&6)!==0)throw Error(bt(331));var i=gn;for(gn|=4,Nt=e.current;Nt!==null;){var o=Nt,a=o.child;if((Nt.flags&16)!==0){var c=o.deletions;if(c!==null){for(var u=0;usr()-DA?rl(e,0):LA|=n),bi(e,t)}function v$(e,t){t===0&&((e.mode&1)===0?t=1:(t=Af,Af<<=1,(Af&130023424)===0&&(Af=4194304)));var n=si();e=Oa(e,t),e!==null&&(Xh(e,t,n),bi(e,n))}function Vj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),v$(e,n)}function zj(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(bt(314))}r!==null&&r.delete(t),v$(e,n)}var y$;y$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vi.current)mi=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return mi=!1,Pj(e,t,n);mi=(e.flags&131072)!==0}else mi=!1,Gn&&(t.flags&1048576)!==0&&wD(t,zg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bp(e,t),e=t.pendingProps;var i=jc(t,Jr.current);kc(t,n),i=EA(null,t,r,e,i,n);var o=TA();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,yi(r)?(o=!0,Hg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,SA(t),i.updater=Ey,t.stateNode=i,i._reactInternals=t,Tw(t,r,e,n),t=Ow(null,t,r,!0,o,n)):(t.tag=0,Gn&&o&&mA(t),ri(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Gj(r),e=go(r,e),i){case 0:t=Rw(null,t,r,e,n);break e;case 1:t=oE(null,t,r,e,n);break e;case 11:t=rE(null,t,r,e,n);break e;case 14:t=iE(null,t,r,go(r.type,e),n);break e}throw Error(bt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),Rw(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),oE(e,t,r,i,n);case 3:e:{if(t$(t),e===null)throw Error(bt(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ID(e,t),Yg(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=Xc(Error(bt(423)),t),t=aE(e,t,r,n,i);break e}else if(r!==i){i=Xc(Error(bt(424)),t),t=aE(e,t,r,n,i);break e}else for(Ti=vs(t.stateNode.containerInfo.firstChild),Li=t,Gn=!0,vo=null,n=TD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gc(),r===i){t=Ma(e,t,n);break e}ri(e,t,r,n)}t=t.child}return t;case 5:return PD(t),e===null&&kw(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ww(r,i)?a=null:o!==null&&ww(r,o)&&(t.flags|=32),e$(e,t),ri(e,t,a,n),t.child;case 6:return e===null&&kw(t),null;case 13:return n$(e,t,n);case 4:return AA(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yc(t,null,r,n):ri(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),rE(e,t,r,i,n);case 7:return ri(e,t,t.pendingProps,n),t.child;case 8:return ri(e,t,t.pendingProps.children,n),t.child;case 12:return ri(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,Ln(jg,r._currentValue),r._currentValue=a,o!==null)if(Io(o.value,a)){if(o.children===i.children&&!vi.current){t=Ma(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){a=o.child;for(var u=c.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Ca(-1,n&-n),u.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?u.next=u:(u.next=p.next,p.next=u),d.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),_w(o.return,n,t),c.lanes|=n;break}u=u.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(bt(341));a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),_w(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}ri(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,kc(t,n),i=to(i),r=r(i),t.flags|=1,ri(e,t,r,n),t.child;case 14:return r=t.type,i=go(r,t.pendingProps),i=go(r.type,i),iE(e,t,r,i,n);case 15:return QD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),bp(e,t),t.tag=1,yi(r)?(e=!0,Hg(t)):e=!1,kc(t,n),_D(t,r,i),Tw(t,r,i,n),Ow(null,t,r,!0,e,n);case 19:return r$(e,t,n);case 22:return qD(e,t,n)}throw Error(bt(156,t.tag))};function b$(e,t){return GL(e,t)}function jj(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 Ui(e,t,n,r){return new jj(e,t,n,r)}function BA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gj(e){if(typeof e=="function")return BA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iA)return 11;if(e===oA)return 14}return 2}function ws(e,t){var n=e.alternate;return n===null?(n=Ui(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 Cp(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")BA(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ec:return il(n.children,i,o,t);case rA:a=8,i|=8;break;case qx:return e=Ui(12,n,t,i|2),e.elementType=qx,e.lanes=o,e;case ew:return e=Ui(13,n,t,i),e.elementType=ew,e.lanes=o,e;case tw:return e=Ui(19,n,t,i),e.elementType=tw,e.lanes=o,e;case EL:return Oy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kL:a=10;break e;case _L:a=9;break e;case iA:a=11;break e;case oA:a=14;break e;case qa:a=16,r=null;break e}throw Error(bt(130,e==null?e:typeof e,""))}return t=Ui(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function il(e,t,n,r){return e=Ui(7,e,r,t),e.lanes=n,e}function Oy(e,t,n,r){return e=Ui(22,e,r,t),e.elementType=EL,e.lanes=n,e.stateNode={isHidden:!1},e}function g0(e,t,n){return e=Ui(6,e,null,t),e.lanes=n,e}function m0(e,t,n){return t=Ui(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yj(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=Kb(0),this.expirationTimes=Kb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kb(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function WA(e,t,n,r,i,o,a,c,u){return e=new Yj(e,t,n,c,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ui(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},SA(o),e}function Zj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Bi})(Ls);const S$=Gh(Ls.exports);var[A$,Qj]=In({strict:!1,name:"PortalContext"}),jA="chakra-portal",qj=".chakra-portal",eG=e=>Se("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),tG=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=de.exports.useState(null),o=de.exports.useRef(null),[,a]=de.exports.useState({});de.exports.useEffect(()=>a({}),[]);const c=Qj(),u=UV();Zo(()=>{if(!r)return;const p=r.ownerDocument,I=t&&c!=null?c:p.body;if(!I)return;o.current=p.createElement("div"),o.current.className=jA,I.appendChild(o.current),a({});const P=o.current;return()=>{I.contains(P)&&I.removeChild(P)}},[r]);const d=u!=null&&u.zIndex?Se(eG,{zIndex:u==null?void 0:u.zIndex,children:n}):n;return o.current?Ls.exports.createPortal(Se(A$,{value:o.current,children:d}),o.current):Se("span",{ref:p=>{p&&i(p)}})},nG=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i!=null?i:typeof window<"u"?document.body:void 0,a=de.exports.useMemo(()=>{const u=i==null?void 0:i.ownerDocument.createElement("div");return u&&(u.className=jA),u},[i]),[,c]=de.exports.useState({});return Zo(()=>c({}),[]),Zo(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?Ls.exports.createPortal(Se(A$,{value:r?a:null,children:t}),a):null};function gu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?Se(nG,{containerRef:n,...r}):Se(tG,{...r})}gu.className=jA;gu.selector=qj;gu.displayName="Portal";function Fs(){const e=de.exports.useContext(Yd);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var GA=de.exports.createContext({});GA.displayName="ColorModeContext";function YA(){const e=de.exports.useContext(GA);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var $f={light:"chakra-ui-light",dark:"chakra-ui-dark"};function rG(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?$f.dark:$f.light),document.body.classList.remove(r?$f.light:$f.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var iG="chakra-ui-color-mode";function oG(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var aG=oG(iG),yE=()=>{};function bE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function I$(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=aG}=e,c=i==="dark"?"dark":"light",[u,d]=de.exports.useState(()=>bE(a,c)),[p,I]=de.exports.useState(()=>bE(a)),{getSystemTheme:P,setClassName:F,setDataset:B,addListener:N}=de.exports.useMemo(()=>rG({preventTransition:o}),[o]),D=i==="system"&&!u?p:u,T=de.exports.useCallback(L=>{const x=L==="system"?P():L;d(x),F(x==="dark"),B(x),a.set(x)},[a,P,F,B]);Zo(()=>{i==="system"&&I(P())},[]),de.exports.useEffect(()=>{const L=a.get();if(L){T(L);return}if(i==="system"){T("system");return}T(c)},[a,c,i,T]);const M=de.exports.useCallback(()=>{T(D==="dark"?"light":"dark")},[D,T]);de.exports.useEffect(()=>{if(!!r)return N(T)},[r,N,T]);const O=de.exports.useMemo(()=>({colorMode:t!=null?t:D,toggleColorMode:t?yE:M,setColorMode:t?yE:T,forced:t!==void 0}),[D,M,T,t]);return Se(GA.Provider,{value:O,children:n})}I$.displayName="ColorModeProvider";function k$(){const e=YA(),t=Fs();return{...e,theme:t}}function sG(e,t,n){var r,i;if(t==null)return t;const o=a=>{var c,u;return(u=(c=e.__breakpoints)==null?void 0:c.asArray)==null?void 0:u[a]};return(i=(r=o(t))!=null?r:o(n))!=null?i:n}function lG(e,t,n){var r,i;if(t==null)return t;const o=a=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[a])==null?void 0:u.value};return(i=(r=o(t))!=null?r:o(n))!=null?i:n}function cG(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),c=r.map((u,d)=>{var p,I;if(e==="breakpoints")return sG(o,u,(p=a[d])!=null?p:u);const P=`${e}.${u}`;return lG(o,P,(I=a[d])!=null?I:u)});return Array.isArray(t)?c:c[0]}}var Bt=(...e)=>e.filter(Boolean).join(" ");function uG(){return!1}function yr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Qh=e=>{const{condition:t,message:n}=e;t&&uG()&&console.warn(n)};function Ki(e,...t){return dG(e)?e(...t):e}var dG=e=>typeof e=="function",Qt=e=>e?"":void 0,Sa=e=>e?!0:void 0;function Wt(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function ZA(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var jw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,c="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",I="[object Date]",P="[object Error]",F="[object Function]",B="[object GeneratorFunction]",N="[object Map]",D="[object Number]",T="[object Null]",M="[object Object]",O="[object Proxy]",L="[object RegExp]",x="[object Set]",b="[object String]",C="[object Undefined]",g="[object WeakMap]",w="[object ArrayBuffer]",f="[object DataView]",m="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",y="[object Int16Array]",_="[object Int32Array]",$="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",X="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,re=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,le={};le[m]=le[E]=le[S]=le[y]=le[_]=le[$]=le[z]=le[H]=le[X]=!0,le[c]=le[u]=le[w]=le[p]=le[f]=le[I]=le[P]=le[F]=le[N]=le[D]=le[M]=le[L]=le[x]=le[b]=le[g]=!1;var ve=typeof tn=="object"&&tn&&tn.Object===Object&&tn,V=typeof self=="object"&&self&&self.Object===Object&&self,Z=ve||V||Function("return this")(),ce=t&&!t.nodeType&&t,Y=ce&&!0&&e&&!e.nodeType&&e,ie=Y&&Y.exports===ce,he=ie&&ve.process,fe=function(){try{var Fe=Y&&Y.require&&Y.require("util").types;return Fe||he&&he.binding&&he.binding("util")}catch{}}(),Ce=fe&&fe.isTypedArray;function Pe(Fe,Ke,at){switch(at.length){case 0:return Fe.call(Ke);case 1:return Fe.call(Ke,at[0]);case 2:return Fe.call(Ke,at[0],at[1]);case 3:return Fe.call(Ke,at[0],at[1],at[2])}return Fe.apply(Ke,at)}function we(Fe,Ke){for(var at=-1,Mt=Array(Fe);++at-1}function je(Fe,Ke){var at=this.__data__,Mt=W(at,Fe);return Mt<0?(++this.size,at.push([Fe,Ke])):at[Mt][1]=Ke,this}wt.prototype.clear=Ht,wt.prototype.delete=rn,wt.prototype.get=Pn,wt.prototype.has=Dr,wt.prototype.set=je;function Le(Fe){var Ke=-1,at=Fe==null?0:Fe.length;for(this.clear();++Ke1?at[hn-1]:void 0,Wn=hn>2?at[2]:void 0;for(Rn=Fe.length>3&&typeof Rn=="function"?(hn--,Rn):void 0,Wn&&Jt(at[0],at[1],Wn)&&(Rn=hn<3?void 0:Rn,hn=1),Ke=Object(Ke);++Mt-1&&Fe%1==0&&Fe0){if(++Ke>=i)return arguments[0]}else Ke=0;return Fe.apply(void 0,arguments)}}function jr(Fe){if(Fe!=null){try{return xe.call(Fe)}catch{}try{return Fe+""}catch{}}return""}function ar(Fe,Ke){return Fe===Ke||Fe!==Fe&&Ke!==Ke}var Nl=te(function(){return arguments}())?te:function(Fe){return _u(Fe)&&ke.call(Fe,"callee")&&!dt.call(Fe,"callee")},Bb=Array.isArray;function Wb(Fe){return Fe!=null&&Jk(Fe.length)&&!Hb(Fe)}function SH(Fe){return _u(Fe)&&Wb(Fe)}var Kk=yt||EH;function Hb(Fe){if(!Ws(Fe))return!1;var Ke=J(Fe);return Ke==F||Ke==B||Ke==d||Ke==O}function Jk(Fe){return typeof Fe=="number"&&Fe>-1&&Fe%1==0&&Fe<=a}function Ws(Fe){var Ke=typeof Fe;return Fe!=null&&(Ke=="object"||Ke=="function")}function _u(Fe){return Fe!=null&&typeof Fe=="object"}function AH(Fe){if(!_u(Fe)||J(Fe)!=M)return!1;var Ke=Qe(Fe);if(Ke===null)return!0;var at=ke.call(Ke,"constructor")&&Ke.constructor;return typeof at=="function"&&at instanceof at&&xe.call(at)==Ge}var Qk=Ce?be(Ce):pe;function IH(Fe){return Me(Fe,qk(Fe))}function qk(Fe){return Wb(Fe)?A(Fe,!0):ye(Fe)}var kH=Ye(function(Fe,Ke,at,Mt){Ie(Fe,Ke,at,Mt)});function _H(Fe){return function(){return Fe}}function e_(Fe){return Fe}function EH(){return!1}e.exports=kH})(jw,jw.exports);const Ji=jw.exports;var hG=e=>/!(important)?$/.test(e),xE=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,fG=(e,t)=>n=>{const r=String(t),i=hG(r),o=xE(r),a=e?`${e}.${o}`:o;let c=yr(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return c=xE(c),i?`${c} !important`:c};function XA(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{var c;const u=fG(t,o)(a);let d=(c=n==null?void 0:n(u,a))!=null?c:u;return r&&(d=r(d,a)),d}}var Nf=(...e)=>t=>e.reduce((n,r)=>r(n),t);function zi(e,t){return n=>{const r={property:n,scale:e};return r.transform=XA({scale:e,transform:t}),r}}var pG=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function gG(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:pG(t),transform:n?XA({scale:n,compose:r}):r}}var _$=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function mG(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",..._$].join(" ")}function vG(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",..._$].join(" ")}var yG={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},bG={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function xG(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var wG={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Gw={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},CG=new Set(Object.values(Gw)),Yw=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),SG=e=>e.trim();function AG(e,t){if(e==null||Yw.has(e))return e;if(!(Zw(e)||Yw.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const c=o.includes("-gradient")?o:`${o}-gradient`,[u,...d]=a.split(",").map(SG).filter(Boolean);if((d==null?void 0:d.length)===0)return e;const p=u in Gw?Gw[u]:u;d.unshift(p);const I=d.map(P=>{if(CG.has(P))return P;const F=P.indexOf(" "),[B,N]=F!==-1?[P.substr(0,F),P.substr(F+1)]:[P],D=Zw(N)?N:N&&N.split(" "),T=`colors.${B}`,M=T in t.__cssMap?t.__cssMap[T].varRef:B;return D?[M,...Array.isArray(D)?D:[D]].join(" "):M});return`${c}(${I.join(", ")})`}var Zw=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),IG=(e,t)=>AG(e,t!=null?t:{});function kG(e){return/^var\(--.+\)$/.test(e)}var _G=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Po=e=>t=>`${e}(${t})`,mn={filter(e){return e!=="auto"?e:yG},backdropFilter(e){return e!=="auto"?e:bG},ring(e){return xG(mn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?mG():e==="auto-gpu"?vG():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=_G(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(kG(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:IG,blur:Po("blur"),opacity:Po("opacity"),brightness:Po("brightness"),contrast:Po("contrast"),dropShadow:Po("drop-shadow"),grayscale:Po("grayscale"),hueRotate:Po("hue-rotate"),invert:Po("invert"),saturate:Po("saturate"),sepia:Po("sepia"),bgImage(e){return e==null||Zw(e)||Yw.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=wG[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},Je={borderWidths:zi("borderWidths"),borderStyles:zi("borderStyles"),colors:zi("colors"),borders:zi("borders"),gradients:zi("gradients",mn.gradient),radii:zi("radii",mn.px),space:zi("space",Nf(mn.vh,mn.px)),spaceT:zi("space",Nf(mn.vh,mn.px)),degreeT(e){return{property:e,transform:mn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:XA({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:zi("sizes",Nf(mn.vh,mn.px)),sizesT:zi("sizes",Nf(mn.vh,mn.fraction)),shadows:zi("shadows"),logical:gG,blur:zi("blur",mn.blur)},Sp={background:Je.colors("background"),backgroundColor:Je.colors("backgroundColor"),backgroundImage:Je.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:mn.bgClip},bgSize:Je.prop("backgroundSize"),bgPosition:Je.prop("backgroundPosition"),bg:Je.colors("background"),bgColor:Je.colors("backgroundColor"),bgPos:Je.prop("backgroundPosition"),bgRepeat:Je.prop("backgroundRepeat"),bgAttachment:Je.prop("backgroundAttachment"),bgGradient:Je.gradients("backgroundImage"),bgClip:{transform:mn.bgClip}};Object.assign(Sp,{bgImage:Sp.backgroundImage,bgImg:Sp.backgroundImage});var yn={border:Je.borders("border"),borderWidth:Je.borderWidths("borderWidth"),borderStyle:Je.borderStyles("borderStyle"),borderColor:Je.colors("borderColor"),borderRadius:Je.radii("borderRadius"),borderTop:Je.borders("borderTop"),borderBlockStart:Je.borders("borderBlockStart"),borderTopLeftRadius:Je.radii("borderTopLeftRadius"),borderStartStartRadius:Je.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Je.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Je.radii("borderTopRightRadius"),borderStartEndRadius:Je.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Je.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Je.borders("borderRight"),borderInlineEnd:Je.borders("borderInlineEnd"),borderBottom:Je.borders("borderBottom"),borderBlockEnd:Je.borders("borderBlockEnd"),borderBottomLeftRadius:Je.radii("borderBottomLeftRadius"),borderBottomRightRadius:Je.radii("borderBottomRightRadius"),borderLeft:Je.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Je.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Je.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Je.borders(["borderLeft","borderRight"]),borderInline:Je.borders("borderInline"),borderY:Je.borders(["borderTop","borderBottom"]),borderBlock:Je.borders("borderBlock"),borderTopWidth:Je.borderWidths("borderTopWidth"),borderBlockStartWidth:Je.borderWidths("borderBlockStartWidth"),borderTopColor:Je.colors("borderTopColor"),borderBlockStartColor:Je.colors("borderBlockStartColor"),borderTopStyle:Je.borderStyles("borderTopStyle"),borderBlockStartStyle:Je.borderStyles("borderBlockStartStyle"),borderBottomWidth:Je.borderWidths("borderBottomWidth"),borderBlockEndWidth:Je.borderWidths("borderBlockEndWidth"),borderBottomColor:Je.colors("borderBottomColor"),borderBlockEndColor:Je.colors("borderBlockEndColor"),borderBottomStyle:Je.borderStyles("borderBottomStyle"),borderBlockEndStyle:Je.borderStyles("borderBlockEndStyle"),borderLeftWidth:Je.borderWidths("borderLeftWidth"),borderInlineStartWidth:Je.borderWidths("borderInlineStartWidth"),borderLeftColor:Je.colors("borderLeftColor"),borderInlineStartColor:Je.colors("borderInlineStartColor"),borderLeftStyle:Je.borderStyles("borderLeftStyle"),borderInlineStartStyle:Je.borderStyles("borderInlineStartStyle"),borderRightWidth:Je.borderWidths("borderRightWidth"),borderInlineEndWidth:Je.borderWidths("borderInlineEndWidth"),borderRightColor:Je.colors("borderRightColor"),borderInlineEndColor:Je.colors("borderInlineEndColor"),borderRightStyle:Je.borderStyles("borderRightStyle"),borderInlineEndStyle:Je.borderStyles("borderInlineEndStyle"),borderTopRadius:Je.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Je.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Je.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Je.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(yn,{rounded:yn.borderRadius,roundedTop:yn.borderTopRadius,roundedTopLeft:yn.borderTopLeftRadius,roundedTopRight:yn.borderTopRightRadius,roundedTopStart:yn.borderStartStartRadius,roundedTopEnd:yn.borderStartEndRadius,roundedBottom:yn.borderBottomRadius,roundedBottomLeft:yn.borderBottomLeftRadius,roundedBottomRight:yn.borderBottomRightRadius,roundedBottomStart:yn.borderEndStartRadius,roundedBottomEnd:yn.borderEndEndRadius,roundedLeft:yn.borderLeftRadius,roundedRight:yn.borderRightRadius,roundedStart:yn.borderInlineStartRadius,roundedEnd:yn.borderInlineEndRadius,borderStart:yn.borderInlineStart,borderEnd:yn.borderInlineEnd,borderTopStartRadius:yn.borderStartStartRadius,borderTopEndRadius:yn.borderStartEndRadius,borderBottomStartRadius:yn.borderEndStartRadius,borderBottomEndRadius:yn.borderEndEndRadius,borderStartRadius:yn.borderInlineStartRadius,borderEndRadius:yn.borderInlineEndRadius,borderStartWidth:yn.borderInlineStartWidth,borderEndWidth:yn.borderInlineEndWidth,borderStartColor:yn.borderInlineStartColor,borderEndColor:yn.borderInlineEndColor,borderStartStyle:yn.borderInlineStartStyle,borderEndStyle:yn.borderInlineEndStyle});var EG={color:Je.colors("color"),textColor:Je.colors("color"),fill:Je.colors("fill"),stroke:Je.colors("stroke")},Xw={boxShadow:Je.shadows("boxShadow"),mixBlendMode:!0,blendMode:Je.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Je.prop("backgroundBlendMode"),opacity:!0};Object.assign(Xw,{shadow:Xw.boxShadow});var TG={filter:{transform:mn.filter},blur:Je.blur("--chakra-blur"),brightness:Je.propT("--chakra-brightness",mn.brightness),contrast:Je.propT("--chakra-contrast",mn.contrast),hueRotate:Je.degreeT("--chakra-hue-rotate"),invert:Je.propT("--chakra-invert",mn.invert),saturate:Je.propT("--chakra-saturate",mn.saturate),dropShadow:Je.propT("--chakra-drop-shadow",mn.dropShadow),backdropFilter:{transform:mn.backdropFilter},backdropBlur:Je.blur("--chakra-backdrop-blur"),backdropBrightness:Je.propT("--chakra-backdrop-brightness",mn.brightness),backdropContrast:Je.propT("--chakra-backdrop-contrast",mn.contrast),backdropHueRotate:Je.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Je.propT("--chakra-backdrop-invert",mn.invert),backdropSaturate:Je.propT("--chakra-backdrop-saturate",mn.saturate)},tm={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:mn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Je.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Je.space("gap"),rowGap:Je.space("rowGap"),columnGap:Je.space("columnGap")};Object.assign(tm,{flexDir:tm.flexDirection});var E$={gridGap:Je.space("gridGap"),gridColumnGap:Je.space("gridColumnGap"),gridRowGap:Je.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},PG={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:mn.outline},outlineOffset:!0,outlineColor:Je.colors("outlineColor")},ji={width:Je.sizesT("width"),inlineSize:Je.sizesT("inlineSize"),height:Je.sizes("height"),blockSize:Je.sizes("blockSize"),boxSize:Je.sizes(["width","height"]),minWidth:Je.sizes("minWidth"),minInlineSize:Je.sizes("minInlineSize"),minHeight:Je.sizes("minHeight"),minBlockSize:Je.sizes("minBlockSize"),maxWidth:Je.sizes("maxWidth"),maxInlineSize:Je.sizes("maxInlineSize"),maxHeight:Je.sizes("maxHeight"),maxBlockSize:Je.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Je.propT("float",mn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ji,{w:ji.width,h:ji.height,minW:ji.minWidth,maxW:ji.maxWidth,minH:ji.minHeight,maxH:ji.maxHeight,overscroll:ji.overscrollBehavior,overscrollX:ji.overscrollBehaviorX,overscrollY:ji.overscrollBehaviorY});var RG={listStyleType:!0,listStylePosition:!0,listStylePos:Je.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Je.prop("listStyleImage")};function OG(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const c=t.get(r);if(c.has(i))return c.get(i);const u=e(r,i,o,a);return c.set(i,u),u}},LG=MG(OG),DG={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},$G={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},v0=(e,t,n)=>{const r={},i=LG(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},NG={srOnly:{transform(e){return e===!0?DG:e==="focusable"?$G:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>v0(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>v0(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>v0(t,e,n)}},Sd={position:!0,pos:Je.prop("position"),zIndex:Je.prop("zIndex","zIndices"),inset:Je.spaceT("inset"),insetX:Je.spaceT(["left","right"]),insetInline:Je.spaceT("insetInline"),insetY:Je.spaceT(["top","bottom"]),insetBlock:Je.spaceT("insetBlock"),top:Je.spaceT("top"),insetBlockStart:Je.spaceT("insetBlockStart"),bottom:Je.spaceT("bottom"),insetBlockEnd:Je.spaceT("insetBlockEnd"),left:Je.spaceT("left"),insetInlineStart:Je.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Je.spaceT("right"),insetInlineEnd:Je.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Sd,{insetStart:Sd.insetInlineStart,insetEnd:Sd.insetInlineEnd});var FG={ring:{transform:mn.ring},ringColor:Je.colors("--chakra-ring-color"),ringOffset:Je.prop("--chakra-ring-offset-width"),ringOffsetColor:Je.colors("--chakra-ring-offset-color"),ringInset:Je.prop("--chakra-ring-inset")},Nn={margin:Je.spaceT("margin"),marginTop:Je.spaceT("marginTop"),marginBlockStart:Je.spaceT("marginBlockStart"),marginRight:Je.spaceT("marginRight"),marginInlineEnd:Je.spaceT("marginInlineEnd"),marginBottom:Je.spaceT("marginBottom"),marginBlockEnd:Je.spaceT("marginBlockEnd"),marginLeft:Je.spaceT("marginLeft"),marginInlineStart:Je.spaceT("marginInlineStart"),marginX:Je.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Je.spaceT("marginInline"),marginY:Je.spaceT(["marginTop","marginBottom"]),marginBlock:Je.spaceT("marginBlock"),padding:Je.space("padding"),paddingTop:Je.space("paddingTop"),paddingBlockStart:Je.space("paddingBlockStart"),paddingRight:Je.space("paddingRight"),paddingBottom:Je.space("paddingBottom"),paddingBlockEnd:Je.space("paddingBlockEnd"),paddingLeft:Je.space("paddingLeft"),paddingInlineStart:Je.space("paddingInlineStart"),paddingInlineEnd:Je.space("paddingInlineEnd"),paddingX:Je.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Je.space("paddingInline"),paddingY:Je.space(["paddingTop","paddingBottom"]),paddingBlock:Je.space("paddingBlock")};Object.assign(Nn,{m:Nn.margin,mt:Nn.marginTop,mr:Nn.marginRight,me:Nn.marginInlineEnd,marginEnd:Nn.marginInlineEnd,mb:Nn.marginBottom,ml:Nn.marginLeft,ms:Nn.marginInlineStart,marginStart:Nn.marginInlineStart,mx:Nn.marginX,my:Nn.marginY,p:Nn.padding,pt:Nn.paddingTop,py:Nn.paddingY,px:Nn.paddingX,pb:Nn.paddingBottom,pl:Nn.paddingLeft,ps:Nn.paddingInlineStart,paddingStart:Nn.paddingInlineStart,pr:Nn.paddingRight,pe:Nn.paddingInlineEnd,paddingEnd:Nn.paddingInlineEnd});var BG={textDecorationColor:Je.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Je.shadows("textShadow")},WG={clipPath:!0,transform:Je.propT("transform",mn.transform),transformOrigin:!0,translateX:Je.spaceT("--chakra-translate-x"),translateY:Je.spaceT("--chakra-translate-y"),skewX:Je.degreeT("--chakra-skew-x"),skewY:Je.degreeT("--chakra-skew-y"),scaleX:Je.prop("--chakra-scale-x"),scaleY:Je.prop("--chakra-scale-y"),scale:Je.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Je.degreeT("--chakra-rotate")},HG={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Je.prop("transitionDuration","transition.duration"),transitionProperty:Je.prop("transitionProperty","transition.property"),transitionTimingFunction:Je.prop("transitionTimingFunction","transition.easing")},VG={fontFamily:Je.prop("fontFamily","fonts"),fontSize:Je.prop("fontSize","fontSizes",mn.px),fontWeight:Je.prop("fontWeight","fontWeights"),lineHeight:Je.prop("lineHeight","lineHeights"),letterSpacing:Je.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},zG={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Je.spaceT("scrollMargin"),scrollMarginTop:Je.spaceT("scrollMarginTop"),scrollMarginBottom:Je.spaceT("scrollMarginBottom"),scrollMarginLeft:Je.spaceT("scrollMarginLeft"),scrollMarginRight:Je.spaceT("scrollMarginRight"),scrollMarginX:Je.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Je.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Je.spaceT("scrollPadding"),scrollPaddingTop:Je.spaceT("scrollPaddingTop"),scrollPaddingBottom:Je.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Je.spaceT("scrollPaddingLeft"),scrollPaddingRight:Je.spaceT("scrollPaddingRight"),scrollPaddingX:Je.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Je.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function T$(e){return yr(e)&&e.reference?e.reference:String(e)}var Ny=(e,...t)=>t.map(T$).join(` ${e} `).replace(/calc/g,""),wE=(...e)=>`calc(${Ny("+",...e)})`,CE=(...e)=>`calc(${Ny("-",...e)})`,Uw=(...e)=>`calc(${Ny("*",...e)})`,SE=(...e)=>`calc(${Ny("/",...e)})`,AE=e=>{const t=T$(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Uw(t,-1)},Zs=Object.assign(e=>({add:(...t)=>Zs(wE(e,...t)),subtract:(...t)=>Zs(CE(e,...t)),multiply:(...t)=>Zs(Uw(e,...t)),divide:(...t)=>Zs(SE(e,...t)),negate:()=>Zs(AE(e)),toString:()=>e.toString()}),{add:wE,subtract:CE,multiply:Uw,divide:SE,negate:AE});function jG(e,t="-"){return e.replace(/\s+/g,t)}function GG(e){const t=jG(e.toString());return ZG(YG(t))}function YG(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function ZG(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function XG(e,t=""){return[t,e].filter(Boolean).join("-")}function UG(e,t){return`var(${e}${t?`, ${t}`:""})`}function KG(e,t=""){return GG(`--${XG(e,t)}`)}function fn(e,t,n){const r=KG(e,n);return{variable:r,reference:UG(r,t)}}function JG(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=fn(`${e}-${i}`,o);continue}n[r]=fn(`${e}-${r}`)}return n}function QG(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function qG(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Kw(e){if(e==null)return e;const{unitless:t}=qG(e);return t||typeof e=="number"?`${e}px`:e}var P$=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,UA=e=>Object.fromEntries(Object.entries(e).sort(P$));function IE(e){const t=UA(e);return Object.assign(Object.values(t),t)}function e4(e){const t=Object.keys(UA(e));return new Set(t)}function kE(e){var t;if(!e)return e;e=(t=Kw(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function rd(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Kw(e)})`),t&&n.push("and",`(max-width: ${Kw(t)})`),n.join(" ")}function t4(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=IE(e),r=Object.entries(e).sort(P$).map(([a,c],u,d)=>{var p;let[,I]=(p=d[u+1])!=null?p:[];return I=parseFloat(I)>0?kE(I):void 0,{_minW:kE(c),breakpoint:a,minW:c,maxW:I,maxWQuery:rd(null,I),minWQuery:rd(c),minMaxQuery:rd(c,I)}}),i=e4(e),o=Array.from(i.values());return{keys:i,normalized:n,isResponsive(a){const c=Object.keys(a);return c.length>0&&c.every(u=>i.has(u))},asObject:UA(e),asArray:IE(e),details:r,get(a){return r.find(c=>c.breakpoint===a)},media:[null,...n.map(a=>rd(a)).slice(1)],toArrayValue(a){if(!yr(a))throw new Error("toArrayValue: value must be an object");const c=o.map(u=>{var d;return(d=a[u])!=null?d:null});for(;QG(c)===null;)c.pop();return c},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((c,u,d)=>{const p=o[d];return p!=null&&u!=null&&(c[p]=u),c},{})}}}var $r={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ga=e=>R$(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ca=e=>R$(t=>e(t,"~ &"),"[data-peer]",".peer"),R$=(e,...t)=>t.map(e).join(", "),Fy={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ga($r.hover),_peerHover:ca($r.hover),_groupFocus:Ga($r.focus),_peerFocus:ca($r.focus),_groupFocusVisible:Ga($r.focusVisible),_peerFocusVisible:ca($r.focusVisible),_groupActive:Ga($r.active),_peerActive:ca($r.active),_groupDisabled:Ga($r.disabled),_peerDisabled:ca($r.disabled),_groupInvalid:Ga($r.invalid),_peerInvalid:ca($r.invalid),_groupChecked:Ga($r.checked),_peerChecked:ca($r.checked),_groupFocusWithin:Ga($r.focusWithin),_peerFocusWithin:ca($r.focusWithin),_peerPlaceholderShown:ca($r.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},n4=Object.keys(Fy);function _E(e,t){return fn(String(e).replace(/\./g,"-"),void 0,t)}function r4(e,t){let n={};const r={};for(const[i,o]of Object.entries(e)){const{isSemantic:a,value:c}=o,{variable:u,reference:d}=_E(i,t==null?void 0:t.cssVarPrefix);if(!a){if(i.startsWith("space")){const P=i.split("."),[F,...B]=P,N=`${F}.-${B.join(".")}`,D=Zs.negate(c),T=Zs.negate(d);r[N]={value:D,var:u,varRef:T}}n[u]=c,r[i]={value:c,var:u,varRef:d};continue}const p=P=>{const B=[String(i).split(".")[0],P].join(".");if(!e[B])return P;const{reference:D}=_E(B,t==null?void 0:t.cssVarPrefix);return D},I=yr(c)?c:{default:c};n=Ji(n,Object.entries(I).reduce((P,[F,B])=>{var N,D;const T=p(B.toString());if(F==="default")return P[u]=T,P;const M=(D=(N=Fy)==null?void 0:N[F])!=null?D:F;return P[M]={[u]:T},P},{})),r[i]={value:d,var:u,varRef:d}}return{cssVars:n,cssMap:r}}function i4(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function o4(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var a4=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function s4(e){return o4(e,a4)}function l4(e){return e.semanticTokens}function c4(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function u4({tokens:e,semanticTokens:t}){var n,r;const i=Object.entries((n=Jw(e))!=null?n:{}).map(([a,c])=>[a,{isSemantic:!1,value:c}]),o=Object.entries((r=Jw(t,1))!=null?r:{}).map(([a,c])=>[a,{isSemantic:!0,value:c}]);return Object.fromEntries([...i,...o])}function Jw(e,t=1/0){return!yr(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,i])=>(yr(i)||Array.isArray(i)?Object.entries(Jw(i,t-1)).forEach(([o,a])=>{n[`${r}.${o}`]=a}):n[r]=i,n),{})}function d4(e){var t;const n=c4(e),r=s4(n),i=l4(n),o=u4({tokens:r,semanticTokens:i}),a=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:c,cssVars:u}=r4(o,{cssVarPrefix:a});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:c,__breakpoints:t4(n.breakpoints)}),n}var KA=Ji({},Sp,yn,EG,tm,ji,TG,FG,PG,E$,NG,Sd,Xw,Nn,zG,VG,BG,WG,RG,HG),h4=Object.assign({},Nn,ji,tm,E$,Sd),f4=Object.keys(h4),p4=[...Object.keys(KA),...n4],g4={...KA,...Fy},m4=e=>e in g4,v4=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let c=Ki(e[a],t);if(c==null)continue;if(c=yr(c)&&n(c)?r(c):c,!Array.isArray(c)){o[a]=c;continue}const u=c.slice(0,i.length).length;for(let d=0;de.startsWith("--")&&typeof t=="string"&&!b4(t),w4=(e,t)=>{var n,r;if(t==null)return t;const i=u=>{var d,p;return(p=(d=e.__cssMap)==null?void 0:d[u])==null?void 0:p.varRef},o=u=>{var d;return(d=i(u))!=null?d:u},[a,c]=y4(t);return t=(r=(n=i(a))!=null?n:o(c))!=null?r:o(t),t};function C4(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var c,u,d;const p=Ki(o,r),I=v4(p)(r);let P={};for(let F in I){const B=I[F];let N=Ki(B,r);F in n&&(F=n[F]),x4(F,N)&&(N=w4(r,N));let D=t[F];if(D===!0&&(D={property:F}),yr(N)){P[F]=(c=P[F])!=null?c:{},P[F]=Ji({},P[F],i(N,!0));continue}let T=(d=(u=D==null?void 0:D.transform)==null?void 0:u.call(D,N,r,p))!=null?d:N;T=D!=null&&D.processResult?i(T,!0):T;const M=Ki(D==null?void 0:D.property,r);if(!a&&(D==null?void 0:D.static)){const O=Ki(D.static,r);P=Ji({},P,O)}if(M&&Array.isArray(M)){for(const O of M)P[O]=T;continue}if(M){M==="&"&&yr(T)?P=Ji({},P,T):P[M]=T;continue}if(yr(T)){P=Ji({},P,T);continue}P[F]=T}return P};return i}var O$=e=>t=>C4({theme:t,pseudos:Fy,configs:KA})(e);function Bn(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function S4(e,t){if(Array.isArray(e))return e;if(yr(e))return t(e);if(e!=null)return[e]}function A4(e,t){for(let n=t+1;n{Ji(d,{[O]:P?M[O]:{[T]:M[O]}})});continue}if(!F){P?Ji(d,M):d[T]=M;continue}d[T]=M}}return d}}function k4(e){return t=>{var n;const{variant:r,size:i,theme:o}=t,a=I4(o);return Ji({},Ki((n=e.baseStyle)!=null?n:{},t),a(e,"sizes",i,t),a(e,"variants",r,t))}}function _4(e,t,n){var r,i,o;return(o=(i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)!=null?o:n}function Dn(e){return i4(e,["styleConfig","size","variant","colorScheme"])}var E4=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function T4(e){return yr(e)?E4.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var P4={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},R4=P4,O4={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},M4=O4,L4={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},D4=L4,$4={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},N4=$4,F4={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},B4=F4,W4={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},H4={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},V4={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},z4={property:W4,easing:H4,duration:V4},j4=z4,G4={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Y4=G4,Z4={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},X4=Z4,U4={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},M$=U4,L$={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},K4={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},J4={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Q4={...L$,...K4,container:J4},D$=Q4,$$={breakpoints:M4,zIndices:R4,radii:N4,blur:Y4,colors:D4,...M$,sizes:D$,shadows:B4,space:L$,borders:X4,transition:j4};function An(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...p){r();for(const I of p)t[I]=u(I);return An(e,t)}function o(...p){for(const I of p)I in t||(t[I]=u(I));return An(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([I,P])=>[I,P.selector]))}function c(){return Object.fromEntries(Object.entries(t).map(([I,P])=>[I,P.className]))}function u(p){const F=`chakra-${(["container","root"].includes(p!=null?p:"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:F,selector:`.${F}`,toString:()=>p}}return{parts:i,toPart:u,extend:o,selectors:a,classnames:c,get keys(){return Object.keys(t)},__type:{}}}var q4=An("accordion").parts("root","container","button","panel").extend("icon"),e9=An("alert").parts("title","description","container").extend("icon","spinner"),t9=An("avatar").parts("label","badge","container").extend("excessLabel","group"),n9=An("breadcrumb").parts("link","item","container").extend("separator");An("button").parts();var r9=An("checkbox").parts("control","icon","container").extend("label");An("progress").parts("track","filledTrack").extend("label");var i9=An("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),o9=An("editable").parts("preview","input","textarea"),a9=An("form").parts("container","requiredIndicator","helperText"),s9=An("formError").parts("text","icon"),l9=An("input").parts("addon","field","element"),c9=An("list").parts("container","item","icon"),u9=An("menu").parts("button","list","item").extend("groupTitle","command","divider"),d9=An("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),h9=An("numberinput").parts("root","field","stepperGroup","stepper");An("pininput").parts("field");var f9=An("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),p9=An("progress").parts("label","filledTrack","track"),g9=An("radio").parts("container","control","label"),m9=An("select").parts("field","icon"),v9=An("slider").parts("container","track","thumb","filledTrack","mark"),y9=An("stat").parts("container","label","helpText","number","icon"),b9=An("switch").parts("container","track","thumb"),x9=An("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),w9=An("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),C9=An("tag").parts("container","label","closeButton"),S9=An("card").parts("container","header","body","footer");function Qs(e,t,n){return Math.min(Math.max(e,n),t)}class A9 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var id=A9;function JA(e){if(typeof e!="string")throw new id(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=O9.test(e)?_9(e):e;const n=E9.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(c=>parseInt(uh(c,2),16)),parseInt(uh(a[3]||"f",2),16)/255]}const r=T9.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(c=>parseInt(c,16)),parseInt(a[3]||"ff",16)/255]}const i=P9.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(c=>parseInt(c,10)),parseFloat(a[3]||"1")]}const o=R9.exec(t);if(o){const[a,c,u,d]=Array.from(o).slice(1).map(parseFloat);if(Qs(0,100,c)!==c)throw new id(e);if(Qs(0,100,u)!==u)throw new id(e);return[...M9(a,c,u),Number.isNaN(d)?1:d]}throw new id(e)}function I9(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const EE=e=>parseInt(e.replace(/_/g,""),36),k9="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=EE(t.substring(0,3)),r=EE(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function _9(e){const t=e.toLowerCase().trim(),n=k9[I9(t)];if(!n)throw new id(e);return`#${n}`}const uh=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),E9=new RegExp(`^#${uh("([a-f0-9])",3)}([a-f0-9])?$`,"i"),T9=new RegExp(`^#${uh("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),P9=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${uh(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),R9=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,O9=/^[a-z]+$/i,TE=e=>Math.round(e*255),M9=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(TE);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let c=0,u=0,d=0;i>=0&&i<1?(c=o,u=a):i>=1&&i<2?(c=a,u=o):i>=2&&i<3?(u=o,d=a):i>=3&&i<4?(u=a,d=o):i>=4&&i<5?(c=a,d=o):i>=5&&i<6&&(c=o,d=a);const p=r-o/2,I=c+p,P=u+p,F=d+p;return[I,P,F].map(TE)};function L9(e,t,n,r){return`rgba(${Qs(0,255,e).toFixed()}, ${Qs(0,255,t).toFixed()}, ${Qs(0,255,n).toFixed()}, ${parseFloat(Qs(0,1,r).toFixed(3))})`}function D9(e,t){const[n,r,i,o]=JA(e);return L9(n,r,i,o-t)}function $9(e){const[t,n,r,i]=JA(e);let o=a=>{const c=Qs(0,255,a).toString(16);return c.length===1?`0${c}`:c};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}function N9(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ai=(e,t,n)=>{const r=N9(e,`colors.${t}`,t);try{return $9(r),r}catch{return n!=null?n:"#000000"}},B9=e=>{const[t,n,r]=JA(e);return(t*299+n*587+r*114)/1e3},W9=e=>t=>{const n=ai(t,e);return B9(n)<128?"dark":"light"},H9=e=>t=>W9(e)(t)==="dark",Kc=(e,t)=>n=>{const r=ai(n,e);return D9(r,1-t)};function PE(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -332,12 +332,12 @@ Error generating stack: `+o.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var V9=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function z9(e){const t=V9();return!e||F9(e)?t:e.string&&e.colors?G9(e.string,e.colors):e.string&&!e.colors?j9(e.string):e.colors&&!e.string?Y9(e.colors):t}function j9(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function G9(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function QA(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function N$(e){return yr(e)&&e.reference?e.reference:String(e)}var By=(e,...t)=>t.map(N$).join(` ${e} `).replace(/calc/g,""),RE=(...e)=>`calc(${By("+",...e)})`,OE=(...e)=>`calc(${By("-",...e)})`,Qw=(...e)=>`calc(${By("*",...e)})`,ME=(...e)=>`calc(${By("/",...e)})`,LE=e=>{const t=N$(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Qw(t,-1)},ma=Object.assign(e=>({add:(...t)=>ma(RE(e,...t)),subtract:(...t)=>ma(OE(e,...t)),multiply:(...t)=>ma(Qw(e,...t)),divide:(...t)=>ma(ME(e,...t)),negate:()=>ma(LE(e)),toString:()=>e.toString()}),{add:RE,subtract:OE,multiply:Qw,divide:ME,negate:LE});function Z9(e){return!Number.isInteger(parseFloat(e.toString()))}function X9(e,t="-"){return e.replace(/\s+/g,t)}function F$(e){const t=X9(e.toString());return t.includes("\\.")?e:Z9(e)?t.replace(".","\\."):e}function U9(e,t=""){return[t,F$(e)].filter(Boolean).join("-")}function K9(e,t){return`var(${F$(e)}${t?`, ${t}`:""})`}function J9(e,t=""){return`--${U9(e,t)}`}function Ir(e,t){const n=J9(e,t==null?void 0:t.prefix);return{variable:n,reference:K9(n,Q9(t==null?void 0:t.fallback))}}function Q9(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:q9,definePartsStyle:Ap}=Bn(b9.keys),Ad=Ir("switch-track-width"),ol=Ir("switch-track-height"),y0=Ir("switch-track-diff"),eY=ma.subtract(Ad,ol),qw=Ir("switch-thumb-x"),Fu=Ir("switch-bg"),tY=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ad.reference],height:[ol.reference],transitionProperty:"common",transitionDuration:"fast",[Fu.variable]:"colors.gray.300",_dark:{[Fu.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Fu.variable]:`colors.${t}.500`,_dark:{[Fu.variable]:`colors.${t}.200`}},bg:Fu.reference}},nY={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ol.reference],height:[ol.reference],_checked:{transform:`translateX(${qw.reference})`}},rY=Ap(e=>({container:{[y0.variable]:eY,[qw.variable]:y0.reference,_rtl:{[qw.variable]:ma(y0).negate().toString()}},track:tY(e),thumb:nY})),iY={sm:Ap({container:{[Ad.variable]:"1.375rem",[ol.variable]:"sizes.3"}}),md:Ap({container:{[Ad.variable]:"1.875rem",[ol.variable]:"sizes.4"}}),lg:Ap({container:{[Ad.variable]:"2.875rem",[ol.variable]:"sizes.6"}})},oY=q9({baseStyle:rY,sizes:iY,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aY,definePartsStyle:Ec}=Bn(x9.keys),sY=Ec({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),nm={"&[data-is-numeric=true]":{textAlign:"end"}},lY=Ec(e=>{const{colorScheme:t}=e;return{th:{color:jt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},td:{borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},caption:{color:jt("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),cY=Ec(e=>{const{colorScheme:t}=e;return{th:{color:jt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},td:{borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},caption:{color:jt("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e)},td:{background:jt(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),uY={simple:lY,striped:cY,unstyled:{}},dY={sm:Ec({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Ec({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ec({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},hY=aY({baseStyle:sY,variants:uY,sizes:dY,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),gi=fn("tabs-color"),yo=fn("tabs-bg"),Ff=fn("tabs-border-color"),{defineMultiStyleConfig:fY,definePartsStyle:Ko}=Bn(w9.keys),pY=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},gY=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},mY=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},vY={p:4},yY=Ko(e=>({root:pY(e),tab:gY(e),tablist:mY(e),tabpanel:vY})),bY={sm:Ko({tab:{py:1,px:4,fontSize:"sm"}}),md:Ko({tab:{fontSize:"md",py:2,px:4}}),lg:Ko({tab:{fontSize:"lg",py:3,px:4}})},xY=Ko(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=n==="vertical"?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[gi.variable]:`colors.${t}.600`,_dark:{[gi.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yo.variable]:"colors.gray.200",_dark:{[yo.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:gi.reference,bg:yo.reference}}}),wY=Ko(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ff.variable]:"transparent",_selected:{[gi.variable]:`colors.${t}.600`,[Ff.variable]:"colors.white",_dark:{[gi.variable]:`colors.${t}.300`,[Ff.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ff.reference},color:gi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CY=Ko(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yo.variable]:"colors.gray.50",_dark:{[yo.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yo.variable]:"colors.white",[gi.variable]:`colors.${t}.600`,_dark:{[yo.variable]:"colors.gray.800",[gi.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:gi.reference,bg:yo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),SY=Ko(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ai(n,`${t}.700`),bg:ai(n,`${t}.100`)}}}}),AY=Ko(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[gi.variable]:"colors.gray.600",_dark:{[gi.variable]:"inherit"},_selected:{[gi.variable]:"colors.white",[yo.variable]:`colors.${t}.600`,_dark:{[gi.variable]:"colors.gray.800",[yo.variable]:`colors.${t}.300`}},color:gi.reference,bg:yo.reference}}}),IY=Ko({}),kY={line:xY,enclosed:wY,"enclosed-colored":CY,"soft-rounded":SY,"solid-rounded":AY,unstyled:IY},_Y=fY({baseStyle:yY,sizes:bY,variants:kY,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),lr=JG("badge",["bg","color","shadow"]),EY={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:lr.bg.reference,color:lr.color.reference,boxShadow:lr.shadow.reference},TY=e=>{const{colorScheme:t,theme:n}=e,r=Kc(`${t}.500`,.6)(n);return{[lr.bg.variable]:`colors.${t}.500`,[lr.color.variable]:"colors.white",_dark:{[lr.bg.variable]:r,[lr.color.variable]:"colors.whiteAlpha.800"}}},PY=e=>{const{colorScheme:t,theme:n}=e,r=Kc(`${t}.200`,.16)(n);return{[lr.bg.variable]:`colors.${t}.100`,[lr.color.variable]:`colors.${t}.800`,_dark:{[lr.bg.variable]:r,[lr.color.variable]:`colors.${t}.200`}}},RY=e=>{const{colorScheme:t,theme:n}=e,r=Kc(`${t}.200`,.8)(n);return{[lr.color.variable]:`colors.${t}.500`,_dark:{[lr.color.variable]:r},[lr.shadow.variable]:`inset 0 0 0px 1px ${lr.color.reference}`}},OY={solid:TY,subtle:PY,outline:RY},Id={baseStyle:EY,variants:OY,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:MY,definePartsStyle:al}=Bn(C9.keys),LY={fontWeight:"medium",lineHeight:1.2,outline:0,color:lr.color.reference,bg:lr.bg.reference,boxShadow:lr.shadow.reference,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},DY={lineHeight:1.2,overflow:"visible"},$Y={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},NY=al({container:LY,label:DY,closeButton:$Y}),FY={sm:al({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:al({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:al({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},BY={subtle:al(e=>{var t;return{container:(t=Id.variants)==null?void 0:t.subtle(e)}}),solid:al(e=>{var t;return{container:(t=Id.variants)==null?void 0:t.solid(e)}}),outline:al(e=>{var t;return{container:(t=Id.variants)==null?void 0:t.outline(e)}})},WY=MY({variants:BY,baseStyle:NY,sizes:FY,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ba,defineMultiStyleConfig:HY}=Bn(l9.keys),VY=ba({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ya={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},zY={lg:ba({field:Ya.lg,addon:Ya.lg}),md:ba({field:Ya.md,addon:Ya.md}),sm:ba({field:Ya.sm,addon:Ya.sm}),xs:ba({field:Ya.xs,addon:Ya.xs})};function qA(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||jt("blue.500","blue.300")(e),errorBorderColor:n||jt("red.500","red.300")(e)}}var jY=ba(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qA(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:jt("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ai(t,r),boxShadow:`0 0 0 1px ${ai(t,r)}`},_focusVisible:{zIndex:1,borderColor:ai(t,n),boxShadow:`0 0 0 1px ${ai(t,n)}`}},addon:{border:"1px solid",borderColor:jt("inherit","whiteAlpha.50")(e),bg:jt("gray.100","whiteAlpha.300")(e)}}}),GY=ba(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qA(e);return{field:{border:"2px solid",borderColor:"transparent",bg:jt("gray.100","whiteAlpha.50")(e),_hover:{bg:jt("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ai(t,r)},_focusVisible:{bg:"transparent",borderColor:ai(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:jt("gray.100","whiteAlpha.50")(e)}}}),YY=ba(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qA(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ai(t,r),boxShadow:`0px 1px 0px 0px ${ai(t,r)}`},_focusVisible:{borderColor:ai(t,n),boxShadow:`0px 1px 0px 0px ${ai(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),ZY=ba({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),XY={outline:jY,filled:GY,flushed:YY,unstyled:ZY},wn=HY({baseStyle:VY,sizes:zY,variants:XY,defaultProps:{size:"md",variant:"outline"}}),DE,UY={...(DE=wn.baseStyle)==null?void 0:DE.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},$E,NE,KY={outline:e=>{var t,n;return(n=(t=wn.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=wn.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=wn.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(NE=($E=wn.variants)==null?void 0:$E.unstyled.field)!=null?NE:{}},FE,BE,WE,HE,VE,zE,jE,GE,JY={xs:(BE=(FE=wn.sizes)==null?void 0:FE.xs.field)!=null?BE:{},sm:(HE=(WE=wn.sizes)==null?void 0:WE.sm.field)!=null?HE:{},md:(zE=(VE=wn.sizes)==null?void 0:VE.md.field)!=null?zE:{},lg:(GE=(jE=wn.sizes)==null?void 0:jE.lg.field)!=null?GE:{}},QY={baseStyle:UY,sizes:JY,variants:KY,defaultProps:{size:"md",variant:"outline"}},Bf=Ir("tooltip-bg"),b0=Ir("tooltip-fg"),qY=Ir("popper-arrow-bg"),eZ={bg:Bf.reference,color:b0.reference,[Bf.variable]:"colors.gray.700",[b0.variable]:"colors.whiteAlpha.900",_dark:{[Bf.variable]:"colors.gray.300",[b0.variable]:"colors.gray.900"},[qY.variable]:Bf.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},tZ={baseStyle:eZ},{defineMultiStyleConfig:nZ,definePartsStyle:od}=Bn(p9.keys),rZ=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=jt(PE(),PE("1rem","rgba(0,0,0,0.1)"))(e),a=jt(`${t}.500`,`${t}.200`)(e),c=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var V9=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function z9(e){const t=V9();return!e||F9(e)?t:e.string&&e.colors?G9(e.string,e.colors):e.string&&!e.colors?j9(e.string):e.colors&&!e.string?Y9(e.colors):t}function j9(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function G9(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function QA(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function N$(e){return yr(e)&&e.reference?e.reference:String(e)}var By=(e,...t)=>t.map(N$).join(` ${e} `).replace(/calc/g,""),RE=(...e)=>`calc(${By("+",...e)})`,OE=(...e)=>`calc(${By("-",...e)})`,Qw=(...e)=>`calc(${By("*",...e)})`,ME=(...e)=>`calc(${By("/",...e)})`,LE=e=>{const t=N$(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Qw(t,-1)},va=Object.assign(e=>({add:(...t)=>va(RE(e,...t)),subtract:(...t)=>va(OE(e,...t)),multiply:(...t)=>va(Qw(e,...t)),divide:(...t)=>va(ME(e,...t)),negate:()=>va(LE(e)),toString:()=>e.toString()}),{add:RE,subtract:OE,multiply:Qw,divide:ME,negate:LE});function Z9(e){return!Number.isInteger(parseFloat(e.toString()))}function X9(e,t="-"){return e.replace(/\s+/g,t)}function F$(e){const t=X9(e.toString());return t.includes("\\.")?e:Z9(e)?t.replace(".","\\."):e}function U9(e,t=""){return[t,F$(e)].filter(Boolean).join("-")}function K9(e,t){return`var(${F$(e)}${t?`, ${t}`:""})`}function J9(e,t=""){return`--${U9(e,t)}`}function Ir(e,t){const n=J9(e,t==null?void 0:t.prefix);return{variable:n,reference:K9(n,Q9(t==null?void 0:t.fallback))}}function Q9(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:q9,definePartsStyle:Ap}=Bn(b9.keys),Ad=Ir("switch-track-width"),ol=Ir("switch-track-height"),y0=Ir("switch-track-diff"),eY=va.subtract(Ad,ol),qw=Ir("switch-thumb-x"),Fu=Ir("switch-bg"),tY=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ad.reference],height:[ol.reference],transitionProperty:"common",transitionDuration:"fast",[Fu.variable]:"colors.gray.300",_dark:{[Fu.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Fu.variable]:`colors.${t}.500`,_dark:{[Fu.variable]:`colors.${t}.200`}},bg:Fu.reference}},nY={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ol.reference],height:[ol.reference],_checked:{transform:`translateX(${qw.reference})`}},rY=Ap(e=>({container:{[y0.variable]:eY,[qw.variable]:y0.reference,_rtl:{[qw.variable]:va(y0).negate().toString()}},track:tY(e),thumb:nY})),iY={sm:Ap({container:{[Ad.variable]:"1.375rem",[ol.variable]:"sizes.3"}}),md:Ap({container:{[Ad.variable]:"1.875rem",[ol.variable]:"sizes.4"}}),lg:Ap({container:{[Ad.variable]:"2.875rem",[ol.variable]:"sizes.6"}})},oY=q9({baseStyle:rY,sizes:iY,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aY,definePartsStyle:Ec}=Bn(x9.keys),sY=Ec({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),nm={"&[data-is-numeric=true]":{textAlign:"end"}},lY=Ec(e=>{const{colorScheme:t}=e;return{th:{color:jt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},td:{borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},caption:{color:jt("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),cY=Ec(e=>{const{colorScheme:t}=e;return{th:{color:jt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},td:{borderBottom:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e),...nm},caption:{color:jt("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:jt(`${t}.100`,`${t}.700`)(e)},td:{background:jt(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),uY={simple:lY,striped:cY,unstyled:{}},dY={sm:Ec({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Ec({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ec({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},hY=aY({baseStyle:sY,variants:uY,sizes:dY,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),gi=fn("tabs-color"),yo=fn("tabs-bg"),Ff=fn("tabs-border-color"),{defineMultiStyleConfig:fY,definePartsStyle:Ko}=Bn(w9.keys),pY=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},gY=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},mY=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},vY={p:4},yY=Ko(e=>({root:pY(e),tab:gY(e),tablist:mY(e),tabpanel:vY})),bY={sm:Ko({tab:{py:1,px:4,fontSize:"sm"}}),md:Ko({tab:{fontSize:"md",py:2,px:4}}),lg:Ko({tab:{fontSize:"lg",py:3,px:4}})},xY=Ko(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=n==="vertical"?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[gi.variable]:`colors.${t}.600`,_dark:{[gi.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yo.variable]:"colors.gray.200",_dark:{[yo.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:gi.reference,bg:yo.reference}}}),wY=Ko(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ff.variable]:"transparent",_selected:{[gi.variable]:`colors.${t}.600`,[Ff.variable]:"colors.white",_dark:{[gi.variable]:`colors.${t}.300`,[Ff.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ff.reference},color:gi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CY=Ko(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yo.variable]:"colors.gray.50",_dark:{[yo.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yo.variable]:"colors.white",[gi.variable]:`colors.${t}.600`,_dark:{[yo.variable]:"colors.gray.800",[gi.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:gi.reference,bg:yo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),SY=Ko(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ai(n,`${t}.700`),bg:ai(n,`${t}.100`)}}}}),AY=Ko(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[gi.variable]:"colors.gray.600",_dark:{[gi.variable]:"inherit"},_selected:{[gi.variable]:"colors.white",[yo.variable]:`colors.${t}.600`,_dark:{[gi.variable]:"colors.gray.800",[yo.variable]:`colors.${t}.300`}},color:gi.reference,bg:yo.reference}}}),IY=Ko({}),kY={line:xY,enclosed:wY,"enclosed-colored":CY,"soft-rounded":SY,"solid-rounded":AY,unstyled:IY},_Y=fY({baseStyle:yY,sizes:bY,variants:kY,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),lr=JG("badge",["bg","color","shadow"]),EY={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:lr.bg.reference,color:lr.color.reference,boxShadow:lr.shadow.reference},TY=e=>{const{colorScheme:t,theme:n}=e,r=Kc(`${t}.500`,.6)(n);return{[lr.bg.variable]:`colors.${t}.500`,[lr.color.variable]:"colors.white",_dark:{[lr.bg.variable]:r,[lr.color.variable]:"colors.whiteAlpha.800"}}},PY=e=>{const{colorScheme:t,theme:n}=e,r=Kc(`${t}.200`,.16)(n);return{[lr.bg.variable]:`colors.${t}.100`,[lr.color.variable]:`colors.${t}.800`,_dark:{[lr.bg.variable]:r,[lr.color.variable]:`colors.${t}.200`}}},RY=e=>{const{colorScheme:t,theme:n}=e,r=Kc(`${t}.200`,.8)(n);return{[lr.color.variable]:`colors.${t}.500`,_dark:{[lr.color.variable]:r},[lr.shadow.variable]:`inset 0 0 0px 1px ${lr.color.reference}`}},OY={solid:TY,subtle:PY,outline:RY},Id={baseStyle:EY,variants:OY,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:MY,definePartsStyle:al}=Bn(C9.keys),LY={fontWeight:"medium",lineHeight:1.2,outline:0,color:lr.color.reference,bg:lr.bg.reference,boxShadow:lr.shadow.reference,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},DY={lineHeight:1.2,overflow:"visible"},$Y={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},NY=al({container:LY,label:DY,closeButton:$Y}),FY={sm:al({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:al({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:al({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},BY={subtle:al(e=>{var t;return{container:(t=Id.variants)==null?void 0:t.subtle(e)}}),solid:al(e=>{var t;return{container:(t=Id.variants)==null?void 0:t.solid(e)}}),outline:al(e=>{var t;return{container:(t=Id.variants)==null?void 0:t.outline(e)}})},WY=MY({variants:BY,baseStyle:NY,sizes:FY,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:xa,defineMultiStyleConfig:HY}=Bn(l9.keys),VY=xa({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ya={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},zY={lg:xa({field:Ya.lg,addon:Ya.lg}),md:xa({field:Ya.md,addon:Ya.md}),sm:xa({field:Ya.sm,addon:Ya.sm}),xs:xa({field:Ya.xs,addon:Ya.xs})};function qA(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||jt("blue.500","blue.300")(e),errorBorderColor:n||jt("red.500","red.300")(e)}}var jY=xa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qA(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:jt("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ai(t,r),boxShadow:`0 0 0 1px ${ai(t,r)}`},_focusVisible:{zIndex:1,borderColor:ai(t,n),boxShadow:`0 0 0 1px ${ai(t,n)}`}},addon:{border:"1px solid",borderColor:jt("inherit","whiteAlpha.50")(e),bg:jt("gray.100","whiteAlpha.300")(e)}}}),GY=xa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qA(e);return{field:{border:"2px solid",borderColor:"transparent",bg:jt("gray.100","whiteAlpha.50")(e),_hover:{bg:jt("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ai(t,r)},_focusVisible:{bg:"transparent",borderColor:ai(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:jt("gray.100","whiteAlpha.50")(e)}}}),YY=xa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=qA(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ai(t,r),boxShadow:`0px 1px 0px 0px ${ai(t,r)}`},_focusVisible:{borderColor:ai(t,n),boxShadow:`0px 1px 0px 0px ${ai(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),ZY=xa({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),XY={outline:jY,filled:GY,flushed:YY,unstyled:ZY},wn=HY({baseStyle:VY,sizes:zY,variants:XY,defaultProps:{size:"md",variant:"outline"}}),DE,UY={...(DE=wn.baseStyle)==null?void 0:DE.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},$E,NE,KY={outline:e=>{var t,n;return(n=(t=wn.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=wn.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=wn.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(NE=($E=wn.variants)==null?void 0:$E.unstyled.field)!=null?NE:{}},FE,BE,WE,HE,VE,zE,jE,GE,JY={xs:(BE=(FE=wn.sizes)==null?void 0:FE.xs.field)!=null?BE:{},sm:(HE=(WE=wn.sizes)==null?void 0:WE.sm.field)!=null?HE:{},md:(zE=(VE=wn.sizes)==null?void 0:VE.md.field)!=null?zE:{},lg:(GE=(jE=wn.sizes)==null?void 0:jE.lg.field)!=null?GE:{}},QY={baseStyle:UY,sizes:JY,variants:KY,defaultProps:{size:"md",variant:"outline"}},Bf=Ir("tooltip-bg"),b0=Ir("tooltip-fg"),qY=Ir("popper-arrow-bg"),eZ={bg:Bf.reference,color:b0.reference,[Bf.variable]:"colors.gray.700",[b0.variable]:"colors.whiteAlpha.900",_dark:{[Bf.variable]:"colors.gray.300",[b0.variable]:"colors.gray.900"},[qY.variable]:Bf.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},tZ={baseStyle:eZ},{defineMultiStyleConfig:nZ,definePartsStyle:od}=Bn(p9.keys),rZ=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=jt(PE(),PE("1rem","rgba(0,0,0,0.1)"))(e),a=jt(`${t}.500`,`${t}.200`)(e),c=`linear-gradient( to right, transparent 0%, ${ai(n,a)} 50%, transparent 100% - )`;return{...!r&&i&&o,...r?{bgImage:c}:{bgColor:a}}},iZ={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},oZ=e=>({bg:jt("gray.100","whiteAlpha.300")(e)}),aZ=e=>({transitionProperty:"common",transitionDuration:"slow",...rZ(e)}),sZ=od(e=>({label:iZ,filledTrack:aZ(e),track:oZ(e)})),lZ={xs:od({track:{h:"1"}}),sm:od({track:{h:"2"}}),md:od({track:{h:"3"}}),lg:od({track:{h:"4"}})},cZ=nZ({sizes:lZ,baseStyle:sZ,defaultProps:{size:"md",colorScheme:"blue"}}),uZ=e=>typeof e=="function";function li(e,...t){return uZ(e)?e(...t):e}var{definePartsStyle:Ip,defineMultiStyleConfig:dZ}=Bn(r9.keys),kd=fn("checkbox-size"),hZ=e=>{const{colorScheme:t}=e;return{w:kd.reference,h:kd.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:jt(`${t}.500`,`${t}.200`)(e),borderColor:jt(`${t}.500`,`${t}.200`)(e),color:jt("white","gray.900")(e),_hover:{bg:jt(`${t}.600`,`${t}.300`)(e),borderColor:jt(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:jt("gray.200","transparent")(e),bg:jt("gray.200","whiteAlpha.300")(e),color:jt("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:jt(`${t}.500`,`${t}.200`)(e),borderColor:jt(`${t}.500`,`${t}.200`)(e),color:jt("white","gray.900")(e)},_disabled:{bg:jt("gray.100","whiteAlpha.100")(e),borderColor:jt("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:jt("red.500","red.300")(e)}}},fZ={_disabled:{cursor:"not-allowed"}},pZ={userSelect:"none",_disabled:{opacity:.4}},gZ={transitionProperty:"transform",transitionDuration:"normal"},mZ=Ip(e=>({icon:gZ,container:fZ,control:li(hZ,e),label:pZ})),vZ={sm:Ip({control:{[kd.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ip({control:{[kd.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ip({control:{[kd.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},rm=dZ({baseStyle:mZ,sizes:vZ,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yZ,definePartsStyle:kp}=Bn(g9.keys),bZ=e=>{var t;const n=(t=li(rm.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},xZ=kp(e=>{var t,n,r,i;return{label:(n=(t=rm).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=rm).baseStyle)==null?void 0:i.call(r,e).container,control:bZ(e)}}),wZ={md:kp({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:kp({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:kp({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},CZ=yZ({baseStyle:xZ,sizes:wZ,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:SZ,definePartsStyle:AZ}=Bn(m9.keys),Wf=fn("select-bg"),YE,IZ={...(YE=wn.baseStyle)==null?void 0:YE.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Wf.reference,[Wf.variable]:"colors.white",_dark:{[Wf.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Wf.reference}},kZ={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},_Z=AZ({field:IZ,icon:kZ}),Hf={paddingInlineEnd:"8"},ZE,XE,UE,KE,JE,QE,qE,eT,EZ={lg:{...(ZE=wn.sizes)==null?void 0:ZE.lg,field:{...(XE=wn.sizes)==null?void 0:XE.lg.field,...Hf}},md:{...(UE=wn.sizes)==null?void 0:UE.md,field:{...(KE=wn.sizes)==null?void 0:KE.md.field,...Hf}},sm:{...(JE=wn.sizes)==null?void 0:JE.sm,field:{...(QE=wn.sizes)==null?void 0:QE.sm.field,...Hf}},xs:{...(qE=wn.sizes)==null?void 0:qE.xs,field:{...(eT=wn.sizes)==null?void 0:eT.xs.field,...Hf},icon:{insetEnd:"1"}}},TZ=SZ({baseStyle:_Z,sizes:EZ,variants:wn.variants,defaultProps:wn.defaultProps}),x0=fn("skeleton-start-color"),w0=fn("skeleton-end-color"),PZ={[x0.variable]:"colors.gray.100",[w0.variable]:"colors.gray.400",_dark:{[x0.variable]:"colors.gray.800",[w0.variable]:"colors.gray.600"},background:x0.reference,borderColor:w0.reference,opacity:.7,borderRadius:"sm"},RZ={baseStyle:PZ},C0=fn("skip-link-bg"),OZ={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[C0.variable]:"colors.white",_dark:{[C0.variable]:"colors.gray.700"},bg:C0.reference}},MZ={baseStyle:OZ},{defineMultiStyleConfig:LZ,definePartsStyle:Wy}=Bn(v9.keys),dh=fn("slider-thumb-size"),hh=fn("slider-track-size"),ss=fn("slider-bg"),DZ=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...QA({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},$Z=e=>({...QA({orientation:e.orientation,horizontal:{h:hh.reference},vertical:{w:hh.reference}}),overflow:"hidden",borderRadius:"sm",[ss.variable]:"colors.gray.200",_dark:{[ss.variable]:"colors.whiteAlpha.200"},_disabled:{[ss.variable]:"colors.gray.300",_dark:{[ss.variable]:"colors.whiteAlpha.300"}},bg:ss.reference}),NZ=e=>{const{orientation:t}=e;return{...QA({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:dh.reference,h:dh.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},FZ=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ss.variable]:`colors.${t}.500`,_dark:{[ss.variable]:`colors.${t}.200`},bg:ss.reference}},BZ=Wy(e=>({container:DZ(e),track:$Z(e),thumb:NZ(e),filledTrack:FZ(e)})),WZ=Wy({container:{[dh.variable]:"sizes.4",[hh.variable]:"sizes.1"}}),HZ=Wy({container:{[dh.variable]:"sizes.3.5",[hh.variable]:"sizes.1"}}),VZ=Wy({container:{[dh.variable]:"sizes.2.5",[hh.variable]:"sizes.0.5"}}),zZ={lg:WZ,md:HZ,sm:VZ},jZ=LZ({baseStyle:BZ,sizes:zZ,defaultProps:{size:"md",colorScheme:"blue"}}),Xs=Ir("spinner-size"),GZ={width:[Xs.reference],height:[Xs.reference]},YZ={xs:{[Xs.variable]:"sizes.3"},sm:{[Xs.variable]:"sizes.4"},md:{[Xs.variable]:"sizes.6"},lg:{[Xs.variable]:"sizes.8"},xl:{[Xs.variable]:"sizes.12"}},ZZ={baseStyle:GZ,sizes:YZ,defaultProps:{size:"md"}},{defineMultiStyleConfig:XZ,definePartsStyle:B$}=Bn(y9.keys),UZ={fontWeight:"medium"},KZ={opacity:.8,marginBottom:"2"},JZ={verticalAlign:"baseline",fontWeight:"semibold"},QZ={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},qZ=B$({container:{},label:UZ,helpText:KZ,number:JZ,icon:QZ}),eX={md:B$({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},tX=XZ({baseStyle:qZ,sizes:eX,defaultProps:{size:"md"}}),S0=fn("kbd-bg"),nX={[S0.variable]:"colors.gray.100",_dark:{[S0.variable]:"colors.whiteAlpha.100"},bg:S0.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},rX={baseStyle:nX},iX={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},oX={baseStyle:iX},{defineMultiStyleConfig:aX,definePartsStyle:sX}=Bn(c9.keys),lX={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},cX=sX({icon:lX}),uX=aX({baseStyle:cX}),{defineMultiStyleConfig:dX,definePartsStyle:hX}=Bn(u9.keys),Do=fn("menu-bg"),A0=fn("menu-shadow"),fX={[Do.variable]:"#fff",[A0.variable]:"shadows.sm",_dark:{[Do.variable]:"colors.gray.700",[A0.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Do.reference,boxShadow:A0.reference},pX={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Do.variable]:"colors.gray.100",_dark:{[Do.variable]:"colors.whiteAlpha.100"}},_active:{[Do.variable]:"colors.gray.200",_dark:{[Do.variable]:"colors.whiteAlpha.200"}},_expanded:{[Do.variable]:"colors.gray.100",_dark:{[Do.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Do.reference},gX={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},mX={opacity:.6},vX={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},yX={transitionProperty:"common",transitionDuration:"normal"},bX=hX({button:yX,list:fX,item:pX,groupTitle:gX,command:mX,divider:vX}),xX=dX({baseStyle:bX}),{defineMultiStyleConfig:wX,definePartsStyle:eC}=Bn(d9.keys),I0=fn("modal-bg"),k0=fn("modal-shadow"),CX={bg:"blackAlpha.600",zIndex:"modal"},SX=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},AX=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,[I0.variable]:"colors.white",[k0.variable]:"shadows.lg",_dark:{[I0.variable]:"colors.gray.700",[k0.variable]:"shadows.dark-lg"},bg:I0.reference,boxShadow:k0.reference}},IX={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},kX={position:"absolute",top:"2",insetEnd:"3"},_X=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},EX={px:"6",py:"4"},TX=eC(e=>({overlay:CX,dialogContainer:li(SX,e),dialog:li(AX,e),header:IX,closeButton:kX,body:li(_X,e),footer:EX}));function uo(e){return eC(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var PX={xs:uo("xs"),sm:uo("sm"),md:uo("md"),lg:uo("lg"),xl:uo("xl"),"2xl":uo("2xl"),"3xl":uo("3xl"),"4xl":uo("4xl"),"5xl":uo("5xl"),"6xl":uo("6xl"),full:uo("full")},RX=wX({baseStyle:TX,sizes:PX,defaultProps:{size:"md"}}),{defineMultiStyleConfig:OX,definePartsStyle:W$}=Bn(h9.keys),eI=Ir("number-input-stepper-width"),H$=Ir("number-input-input-padding"),MX=ma(eI).add("0.5rem").toString(),_0=Ir("number-input-bg"),E0=Ir("number-input-color"),T0=Ir("number-input-border-color"),LX={[eI.variable]:"sizes.6",[H$.variable]:MX},DX=e=>{var t,n;return(n=(t=li(wn.baseStyle,e))==null?void 0:t.field)!=null?n:{}},$X={width:eI.reference},NX={borderStart:"1px solid",borderStartColor:T0.reference,color:E0.reference,bg:_0.reference,[E0.variable]:"colors.chakra-body-text",[T0.variable]:"colors.chakra-border-color",_dark:{[E0.variable]:"colors.whiteAlpha.800",[T0.variable]:"colors.whiteAlpha.300"},_active:{[_0.variable]:"colors.gray.200",_dark:{[_0.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},FX=W$(e=>{var t;return{root:LX,field:(t=li(DX,e))!=null?t:{},stepperGroup:$X,stepper:NX}});function Vf(e){var t,n,r;const i=(t=wn.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",c=M$.fontSizes[a];return W$({field:{...i.field,paddingInlineEnd:H$.reference,verticalAlign:"top"},stepper:{fontSize:ma(c).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var BX={xs:Vf("xs"),sm:Vf("sm"),md:Vf("md"),lg:Vf("lg")},WX=OX({baseStyle:FX,sizes:BX,variants:wn.variants,defaultProps:wn.defaultProps}),tT,HX={...(tT=wn.baseStyle)==null?void 0:tT.field,textAlign:"center"},VX={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},nT,rT,zX={outline:e=>{var t,n,r;return(r=(n=li((t=wn.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=li((t=wn.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=li((t=wn.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(rT=(nT=wn.variants)==null?void 0:nT.unstyled.field)!=null?rT:{}},jX={baseStyle:HX,sizes:VX,variants:zX,defaultProps:wn.defaultProps},{defineMultiStyleConfig:GX,definePartsStyle:YX}=Bn(f9.keys),zf=Ir("popper-bg"),ZX=Ir("popper-arrow-bg"),iT=Ir("popper-arrow-shadow-color"),XX={zIndex:10},UX={[zf.variable]:"colors.white",bg:zf.reference,[ZX.variable]:zf.reference,[iT.variable]:"colors.gray.200",_dark:{[zf.variable]:"colors.gray.700",[iT.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},KX={px:3,py:2,borderBottomWidth:"1px"},JX={px:3,py:2},QX={px:3,py:2,borderTopWidth:"1px"},qX={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},eU=YX({popper:XX,content:UX,header:KX,body:JX,footer:QX,closeButton:qX}),tU=GX({baseStyle:eU}),{definePartsStyle:tC,defineMultiStyleConfig:nU}=Bn(i9.keys),P0=fn("drawer-bg"),R0=fn("drawer-box-shadow");function Bl(e){return tC(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var rU={bg:"blackAlpha.600",zIndex:"overlay"},iU={display:"flex",zIndex:"modal",justifyContent:"center"},oU=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[P0.variable]:"colors.white",[R0.variable]:"shadows.lg",_dark:{[P0.variable]:"colors.gray.700",[R0.variable]:"shadows.dark-lg"},bg:P0.reference,boxShadow:R0.reference}},aU={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},sU={position:"absolute",top:"2",insetEnd:"3"},lU={px:"6",py:"2",flex:"1",overflow:"auto"},cU={px:"6",py:"4"},uU=tC(e=>({overlay:rU,dialogContainer:iU,dialog:li(oU,e),header:aU,closeButton:sU,body:lU,footer:cU})),dU={xs:Bl("xs"),sm:Bl("md"),md:Bl("lg"),lg:Bl("2xl"),xl:Bl("4xl"),full:Bl("full")},hU=nU({baseStyle:uU,sizes:dU,defaultProps:{size:"xs"}}),{definePartsStyle:fU,defineMultiStyleConfig:pU}=Bn(o9.keys),gU={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mU={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},vU={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},yU=fU({preview:gU,input:mU,textarea:vU}),bU=pU({baseStyle:yU}),{definePartsStyle:xU,defineMultiStyleConfig:wU}=Bn(a9.keys),Tc=fn("form-control-color"),CU={marginStart:"1",[Tc.variable]:"colors.red.500",_dark:{[Tc.variable]:"colors.red.300"},color:Tc.reference},SU={mt:"2",[Tc.variable]:"colors.gray.600",_dark:{[Tc.variable]:"colors.whiteAlpha.600"},color:Tc.reference,lineHeight:"normal",fontSize:"sm"},AU=xU({container:{width:"100%",position:"relative"},requiredIndicator:CU,helperText:SU}),IU=wU({baseStyle:AU}),{definePartsStyle:kU,defineMultiStyleConfig:_U}=Bn(s9.keys),Pc=fn("form-error-color"),EU={[Pc.variable]:"colors.red.500",_dark:{[Pc.variable]:"colors.red.300"},color:Pc.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},TU={marginEnd:"0.5em",[Pc.variable]:"colors.red.500",_dark:{[Pc.variable]:"colors.red.300"},color:Pc.reference},PU=kU({text:EU,icon:TU}),RU=_U({baseStyle:PU}),OU={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},MU={baseStyle:OU},LU={fontFamily:"heading",fontWeight:"bold"},DU={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},$U={baseStyle:LU,sizes:DU,defaultProps:{size:"xl"}},{defineMultiStyleConfig:NU,definePartsStyle:FU}=Bn(n9.keys),BU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},WU=FU({link:BU}),HU=NU({baseStyle:WU}),VU={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},V$=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:jt("inherit","whiteAlpha.900")(e),_hover:{bg:jt("gray.100","whiteAlpha.200")(e)},_active:{bg:jt("gray.200","whiteAlpha.300")(e)}};const r=Kc(`${t}.200`,.12)(n),i=Kc(`${t}.200`,.24)(n);return{color:jt(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:jt(`${t}.50`,r)(e)},_active:{bg:jt(`${t}.100`,i)(e)}}},zU=e=>{const{colorScheme:t}=e,n=jt("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...li(V$,e)}},jU={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},GU=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const u=jt("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:jt("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:jt("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:a=`${n}.700`}=(t=jU[n])!=null?t:{},c=jt(r,`${n}.200`)(e);return{bg:c,color:jt(i,"gray.800")(e),_hover:{bg:jt(o,`${n}.300`)(e),_disabled:{bg:c}},_active:{bg:jt(a,`${n}.400`)(e)}}},YU=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:jt(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:jt(`${t}.700`,`${t}.500`)(e)}}},ZU={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},XU={ghost:V$,outline:zU,solid:GU,link:YU,unstyled:ZU},UU={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},KU={baseStyle:VU,variants:XU,sizes:UU,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:sl,defineMultiStyleConfig:JU}=Bn(S9.keys),im=fn("card-bg"),Sa=fn("card-padding"),z$=fn("card-shadow"),_p=fn("card-radius"),j$=fn("card-border-width","0"),G$=fn("card-border-color"),QU=sl({container:{[im.variable]:"colors.chakra-body-bg",backgroundColor:im.reference,boxShadow:z$.reference,borderRadius:_p.reference,color:"chakra-body-text",borderWidth:j$.reference,borderColor:G$.reference},body:{padding:Sa.reference,flex:"1 1 0%"},header:{padding:Sa.reference},footer:{padding:Sa.reference}}),qU={sm:sl({container:{[_p.variable]:"radii.base",[Sa.variable]:"space.3"}}),md:sl({container:{[_p.variable]:"radii.md",[Sa.variable]:"space.5"}}),lg:sl({container:{[_p.variable]:"radii.xl",[Sa.variable]:"space.7"}})},eK={elevated:sl({container:{[z$.variable]:"shadows.base",_dark:{[im.variable]:"colors.gray.700"}}}),outline:sl({container:{[j$.variable]:"1px",[G$.variable]:"colors.chakra-border-color"}}),filled:sl({container:{[im.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Sa.variable]:0},header:{[Sa.variable]:0},footer:{[Sa.variable]:0}}},tK=JU({baseStyle:QU,variants:eK,sizes:qU,defaultProps:{variant:"elevated",size:"md"}}),_d=Ir("close-button-size"),Bu=Ir("close-button-bg"),nK={w:[_d.reference],h:[_d.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Bu.variable]:"colors.blackAlpha.100",_dark:{[Bu.variable]:"colors.whiteAlpha.100"}},_active:{[Bu.variable]:"colors.blackAlpha.200",_dark:{[Bu.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Bu.reference},rK={lg:{[_d.variable]:"sizes.10",fontSize:"md"},md:{[_d.variable]:"sizes.8",fontSize:"xs"},sm:{[_d.variable]:"sizes.6",fontSize:"2xs"}},iK={baseStyle:nK,sizes:rK,defaultProps:{size:"md"}},{variants:oK,defaultProps:aK}=Id,sK={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:lr.bg.reference,color:lr.color.reference,boxShadow:lr.shadow.reference},lK={baseStyle:sK,variants:oK,defaultProps:aK},cK={w:"100%",mx:"auto",maxW:"prose",px:"4"},uK={baseStyle:cK},dK={opacity:.6,borderColor:"inherit"},hK={borderStyle:"solid"},fK={borderStyle:"dashed"},pK={solid:hK,dashed:fK},gK={baseStyle:dK,variants:pK,defaultProps:{variant:"solid"}},{definePartsStyle:mK,defineMultiStyleConfig:vK}=Bn(q4.keys),yK={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},bK={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},xK={pt:"2",px:"4",pb:"5"},wK={fontSize:"1.25em"},CK=mK({container:yK,button:bK,panel:xK,icon:wK}),SK=vK({baseStyle:CK}),{definePartsStyle:qh,defineMultiStyleConfig:AK}=Bn(e9.keys),Di=fn("alert-fg"),Ma=fn("alert-bg"),IK=qh({container:{bg:Ma.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Di.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Di.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function tI(e){const{theme:t,colorScheme:n}=e,r=Kc(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var kK=qh(e=>{const{colorScheme:t}=e,n=tI(e);return{container:{[Di.variable]:`colors.${t}.500`,[Ma.variable]:n.light,_dark:{[Di.variable]:`colors.${t}.200`,[Ma.variable]:n.dark}}}}),_K=qh(e=>{const{colorScheme:t}=e,n=tI(e);return{container:{[Di.variable]:`colors.${t}.500`,[Ma.variable]:n.light,_dark:{[Di.variable]:`colors.${t}.200`,[Ma.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Di.reference}}}),EK=qh(e=>{const{colorScheme:t}=e,n=tI(e);return{container:{[Di.variable]:`colors.${t}.500`,[Ma.variable]:n.light,_dark:{[Di.variable]:`colors.${t}.200`,[Ma.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Di.reference}}}),TK=qh(e=>{const{colorScheme:t}=e;return{container:{[Di.variable]:"colors.white",[Ma.variable]:`colors.${t}.500`,_dark:{[Di.variable]:"colors.gray.900",[Ma.variable]:`colors.${t}.200`},color:Di.reference}}}),PK={subtle:kK,"left-accent":_K,"top-accent":EK,solid:TK},RK=AK({baseStyle:IK,variants:PK,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Y$,defineMultiStyleConfig:OK}=Bn(t9.keys),Rc=fn("avatar-border-color"),O0=fn("avatar-bg"),MK={borderRadius:"full",border:"0.2em solid",[Rc.variable]:"white",_dark:{[Rc.variable]:"colors.gray.800"},borderColor:Rc.reference},LK={[O0.variable]:"colors.gray.200",_dark:{[O0.variable]:"colors.whiteAlpha.400"},bgColor:O0.reference},oT=fn("avatar-background"),DK=e=>{const{name:t,theme:n}=e,r=t?z9({string:t}):"colors.gray.400",i=H9(r)(n);let o="white";return i||(o="gray.800"),{bg:oT.reference,"&:not([data-loaded])":{[oT.variable]:r},color:o,[Rc.variable]:"colors.white",_dark:{[Rc.variable]:"colors.gray.800"},borderColor:Rc.reference,verticalAlign:"top"}},$K=Y$(e=>({badge:li(MK,e),excessLabel:li(LK,e),container:li(DK,e)}));function Za(e){const t=e!=="100%"?D$[e]:void 0;return Y$({container:{width:e,height:e,fontSize:`calc(${t!=null?t:e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t!=null?t:e} / 2.5)`,lineHeight:e!=="100%"?t!=null?t:e:void 0}})}var NK={"2xs":Za(4),xs:Za(6),sm:Za(8),md:Za(12),lg:Za(16),xl:Za(24),"2xl":Za(32),full:Za("100%")},FK=OK({baseStyle:$K,sizes:NK,defaultProps:{size:"md"}}),BK={Accordion:SK,Alert:RK,Avatar:FK,Badge:Id,Breadcrumb:HU,Button:KU,Checkbox:rm,CloseButton:iK,Code:lK,Container:uK,Divider:gK,Drawer:hU,Editable:bU,Form:IU,FormError:RU,FormLabel:MU,Heading:$U,Input:wn,Kbd:rX,Link:oX,List:uX,Menu:xX,Modal:RX,NumberInput:WX,PinInput:jX,Popover:tU,Progress:cZ,Radio:CZ,Select:TZ,Skeleton:RZ,SkipLink:MZ,Slider:jZ,Spinner:ZZ,Stat:tX,Switch:oY,Table:hY,Tabs:_Y,Tag:WY,Textarea:QY,Tooltip:tZ,Card:tK},Z$={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},X$={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},U$="ltr",K$={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},J$={semanticTokens:Z$,direction:U$,...$$,components:BK,styles:X$,config:K$};({...$$});function ad(e){return typeof e=="function"}function WK(...e){return t=>e.reduce((n,r)=>r(n),t)}var HK=e=>function(...n){let r=[...n],i=n[n.length-1];return T4(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,WK(...r.map(o=>a=>ad(o)?o(a):VK(a,o)))(i)},oke=HK(J$);function VK(...e){return Ji({},...e,Q$)}function Q$(e,t,n,r){if((ad(e)||ad(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=ad(e)?e(...i):e,a=ad(t)?t(...i):t;return Ji({},o,a,Q$)}}function zK(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function q$(e){var t;return zK(e)&&(t=e.ownerDocument)!=null?t:document}function jK(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var GK=jK();function YK(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function ZK(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const c=t.get(r);if(c.has(i))return c.get(i);const u=e(r,i,o,a);return c.set(i,u),u}},eN=XK(ZK);function tN(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var nN=e=>tN(e,t=>t!=null);function UK(e){return typeof e=="function"}function rN(e,...t){return UK(e)?e(...t):e}function KK(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}const iN=1/60*1e3,JK=typeof performance<"u"?()=>performance.now():()=>Date.now(),oN=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(JK()),iN);function QK(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const I=p&&i,P=I?t:n;return d&&a.add(u),P.indexOf(u)===-1&&(P.push(u),I&&i&&(r=t.length)),u},cancel:u=>{const d=n.indexOf(u);d!==-1&&n.splice(d,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d(e[t]=QK(()=>fh=!0),e),{}),e6=ef.reduce((e,t)=>{const n=Hy[t];return e[t]=(r,i=!1,o=!1)=>(fh||r6(),n.schedule(r,i,o)),e},{}),t6=ef.reduce((e,t)=>(e[t]=Hy[t].cancel,e),{});ef.reduce((e,t)=>(e[t]=()=>Hy[t].process(Oc),e),{});const n6=e=>Hy[e].process(Oc),aN=e=>{fh=!1,Oc.delta=nC?iN:Math.max(Math.min(e-Oc.timestamp,qK),1),Oc.timestamp=e,rC=!0,ef.forEach(n6),rC=!1,fh&&(nC=!1,oN(aN))},r6=()=>{fh=!0,nC=!0,rC||oN(aN)},aT=()=>Oc;var i6=typeof Element<"u",o6=typeof Map=="function",a6=typeof Set=="function",s6=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ep(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ep(e[r],t[r]))return!1;return!0}var o;if(o6&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ep(r.value[1],t.get(r.value[0])))return!1;return!0}if(a6&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(s6&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(i6&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ep(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var sN=function(t,n){try{return Ep(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};function lN(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:o,colorMode:a}=k$(),c=e?eN(o,`components.${e}`):void 0,u=r||c,d=Ji({theme:o,colorMode:a},(n=u==null?void 0:u.defaultProps)!=null?n:{},nN(YK(i,["children"]))),p=de.exports.useRef({});if(u){const P=k4(u)(d);sN(p.current,P)||(p.current=P)}return p.current}function Eo(e,t={}){return lN(e,t)}function zr(e,t={}){return lN(e,t)}var l6=new Set([...p4,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),c6=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function u6(e){return c6.has(e)||!l6.has(e)}function nI(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function d6(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)!Object.prototype.hasOwnProperty.call(r,i)||(i in n&&delete n[i],n[i]=r[i]);return n}var h6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,f6=aL(function(e){return h6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),p6=f6,g6=function(t){return t!=="theme"},sT=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?p6:g6},lT=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},m6=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hL(n,r,i),LV(function(){return fL(n,r,i)}),null},v6=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 c=lT(t,n,r),u=c||sT(i),d=!u("as");return function(){var p=arguments,I=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&I.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)I.push.apply(I,p);else{I.push(p[0][0]);for(var P=p.length,F=1;Ft=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,c=tN(a,(I,P)=>m4(P)),u=rN(e,t),d=d6({},i,u,nN(c),o),p=O$(d)(t.theme);return r?[p,r]:p};function M0(e,t){const{baseStyle:n,...r}=t!=null?t:{};r.shouldForwardProp||(r.shouldForwardProp=u6);const i=x6({baseStyle:n}),o=b6(e,r)(i);return vt.forwardRef(function(u,d){const{colorMode:p,forced:I}=YA();return Se(o,{ref:d,"data-theme":I?p:void 0,...u})})}function w6(){const e=new Map;return new Proxy(M0,{apply(t,n,r){return M0(...r)},get(t,n){return e.has(n)||e.set(n,M0(n)),e.get(n)}})}var pt=w6();function It(e){return de.exports.forwardRef(e)}function cN(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=de.exports.createContext(void 0);i.displayName=r;function o(){var a;const c=de.exports.useContext(i);if(!c&&t){const u=new Error(n);throw u.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,u,o),u}return c}return[i.Provider,o,i]}function C6(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=de.exports.useMemo(()=>d4(n),[n]);return At(NV,{theme:i,children:[Se(S6,{root:t}),r]})}function S6({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return Se(by,{styles:n=>({[t]:n.__cssVars})})}cN({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function A6(e){return cN({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function I6(){const{colorMode:e}=YA();return Se(by,{styles:t=>{const n=eN(t,"styles.global"),r=rN(n,{theme:t,colorMode:e});return r?O$(r)(t):void 0}})}var rI=de.exports.createContext({getDocument(){return document},getWindow(){return window}});rI.displayName="EnvironmentContext";function k6({defer:e}={}){const[,t]=de.exports.useReducer(n=>n+1,0);return Zo(()=>{!e||t()},[e]),de.exports.useContext(rI)}function uN(e){const{children:t,environment:n,disabled:r}=e,i=de.exports.useRef(null),o=de.exports.useMemo(()=>n||{getDocument:()=>{var c,u;return(u=(c=i.current)==null?void 0:c.ownerDocument)!=null?u:document},getWindow:()=>{var c,u;return(u=(c=i.current)==null?void 0:c.ownerDocument.defaultView)!=null?u:window}},[n]),a=!r||!n;return At(rI.Provider,{value:o,children:[t,a&&Se("span",{id:"__chakra_env",hidden:!0,ref:i})]})}uN.displayName="EnvironmentProvider";var _6=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:c,cssVarsRoot:u,disableEnvironment:d}=e,p=Se(uN,{environment:c,disabled:d,children:t});return Se(C6,{theme:a,cssVarsRoot:u,children:At(I$,{colorModeManager:n,options:a.config,children:[o?Se(YV,{scope:i}):Se(GV,{}),Se(I6,{}),r?Se(wL,{zIndex:r,children:p}):p]})})},E6=(e,t)=>e.find(n=>n.id===t);function uT(e,t){const n=dN(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function dN(e,t){for(const[n,r]of Object.entries(e))if(E6(r,t))return n}function T6(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function P6(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:a}}function nr(e,t=[]){const n=de.exports.useRef(e);return de.exports.useEffect(()=>{n.current=e}),de.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function R6(e,t){const n=nr(e);de.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function La(e,t){const n=de.exports.useRef(!1),r=de.exports.useRef(!1);de.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),de.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const iI=de.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vy=de.exports.createContext({});function O6(){return de.exports.useContext(Vy).visualElement}const mu=de.exports.createContext(null),Pl=typeof document<"u",Ed=Pl?de.exports.useLayoutEffect:de.exports.useEffect,hN=de.exports.createContext({strict:!1});function M6(e,t,n,r){const i=O6(),o=de.exports.useContext(hN),a=de.exports.useContext(mu),c=de.exports.useContext(iI).reducedMotion,u=de.exports.useRef();r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current;return Ed(()=>{d&&d.render()}),Ed(()=>{d&&d.animationState&&d.animationState.animateChanges()}),Ed(()=>()=>d&&d.notify("Unmount"),[]),d}function dc(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function L6(e,t,n){return de.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):dc(n)&&(n.current=r))},[t])}function ph(e){return typeof e=="string"||Array.isArray(e)}function zy(e){return typeof e=="object"&&typeof e.start=="function"}const D6=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function jy(e){return zy(e.animate)||D6.some(t=>ph(e[t]))}function fN(e){return Boolean(jy(e)||e.variants)}function $6(e,t){if(jy(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ph(n)?n:void 0,animate:ph(r)?r:void 0}}return e.inherit!==!1?t:{}}function N6(e){const{initial:t,animate:n}=$6(e,de.exports.useContext(Vy));return de.exports.useMemo(()=>({initial:t,animate:n}),[dT(t),dT(n)])}function dT(e){return Array.isArray(e)?e.join(" "):e}const ca=e=>({isEnabled:t=>e.some(n=>!!t[n])}),gh={measureLayout:ca(["layout","layoutId","drag"]),animation:ca(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ca(["exit"]),drag:ca(["drag","dragControls"]),focus:ca(["whileFocus"]),hover:ca(["whileHover","onHoverStart","onHoverEnd"]),tap:ca(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ca(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ca(["whileInView","onViewportEnter","onViewportLeave"])};function F6(e){for(const t in e)t==="projectionNodeConstructor"?gh.projectionNodeConstructor=e[t]:gh[t].Component=e[t]}function Gy(e){const t=de.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Td={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let B6=1;function W6(){return Gy(()=>{if(Td.hasEverUpdated)return B6++})}const oI=de.exports.createContext({});class H6 extends vt.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const pN=de.exports.createContext({}),V6=Symbol.for("motionComponentSymbol");function z6({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&F6(e);function a(u,d){const p={...de.exports.useContext(iI),...u,layoutId:j6(u)},{isStatic:I}=p;let P=null;const F=N6(u),B=I?void 0:W6(),N=i(u,I);if(!I&&Pl){F.visualElement=M6(o,N,p,t);const D=de.exports.useContext(hN).strict,T=de.exports.useContext(pN);F.visualElement&&(P=F.visualElement.loadFeatures(p,D,e,B,n||gh.projectionNodeConstructor,T))}return At(H6,{visualElement:F.visualElement,props:p,children:[P,Se(Vy.Provider,{value:F,children:r(o,u,B,L6(N,F.visualElement,d),N,I,F.visualElement)})]})}const c=de.exports.forwardRef(a);return c[V6]=o,c}function j6({layoutId:e}){const t=de.exports.useContext(oI).id;return t&&e!==void 0?t+"-"+e:e}function G6(e){function t(r,i={}){return z6(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Y6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function aI(e){return typeof e!="string"||e.includes("-")?!1:!!(Y6.indexOf(e)>-1||/[A-Z]/.test(e))}const am={};function Z6(e){Object.assign(am,e)}const sm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rl=new Set(sm);function gN(e,{layout:t,layoutId:n}){return Rl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!am[e]||e==="opacity")}const ta=e=>!!(e!=null&&e.getVelocity),X6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U6=(e,t)=>sm.indexOf(e)-sm.indexOf(t);function K6({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";t.sort(U6);for(const c of t)a+=`${X6[c]||c}(${e[c]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}function mN(e){return e.startsWith("--")}const J6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jc=(e,t,n)=>Math.min(Math.max(n,e),t),Ol={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pd={...Ol,transform:e=>Jc(0,1,e)},jf={...Ol,default:1},Rd=e=>Math.round(e*1e5)/1e5,mh=/(-)?([\d]*\.?[\d])+/g,iC=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Q6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tf(e){return typeof e=="string"}const nf=e=>({test:t=>tf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ka=nf("deg"),Jo=nf("%"),Yt=nf("px"),q6=nf("vh"),e7=nf("vw"),hT={...Jo,parse:e=>Jo.parse(e)/100,transform:e=>Jo.transform(e*100)},fT={...Ol,transform:Math.round},vN={borderWidth:Yt,borderTopWidth:Yt,borderRightWidth:Yt,borderBottomWidth:Yt,borderLeftWidth:Yt,borderRadius:Yt,radius:Yt,borderTopLeftRadius:Yt,borderTopRightRadius:Yt,borderBottomRightRadius:Yt,borderBottomLeftRadius:Yt,width:Yt,maxWidth:Yt,height:Yt,maxHeight:Yt,size:Yt,top:Yt,right:Yt,bottom:Yt,left:Yt,padding:Yt,paddingTop:Yt,paddingRight:Yt,paddingBottom:Yt,paddingLeft:Yt,margin:Yt,marginTop:Yt,marginRight:Yt,marginBottom:Yt,marginLeft:Yt,rotate:Ka,rotateX:Ka,rotateY:Ka,rotateZ:Ka,scale:jf,scaleX:jf,scaleY:jf,scaleZ:jf,skew:Ka,skewX:Ka,skewY:Ka,distance:Yt,translateX:Yt,translateY:Yt,translateZ:Yt,x:Yt,y:Yt,z:Yt,perspective:Yt,transformPerspective:Yt,opacity:Pd,originX:hT,originY:hT,originZ:Yt,zIndex:fT,fillOpacity:Pd,strokeOpacity:Pd,numOctaves:fT};function sI(e,t,n,r){const{style:i,vars:o,transform:a,transformKeys:c,transformOrigin:u}=e;c.length=0;let d=!1,p=!1,I=!0;for(const P in t){const F=t[P];if(mN(P)){o[P]=F;continue}const B=vN[P],N=J6(F,B);if(Rl.has(P)){if(d=!0,a[P]=N,c.push(P),!I)continue;F!==(B.default||0)&&(I=!1)}else P.startsWith("origin")?(p=!0,u[P]=N):i[P]=N}if(t.transform||(d||r?i.transform=K6(e,n,I,r):i.transform&&(i.transform="none")),p){const{originX:P="50%",originY:F="50%",originZ:B=0}=u;i.transformOrigin=`${P} ${F} ${B}`}}const lI=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function yN(e,t,n){for(const r in t)!ta(t[r])&&!gN(r,n)&&(e[r]=t[r])}function t7({transformTemplate:e},t,n){return de.exports.useMemo(()=>{const r=lI();return sI(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function n7(e,t,n){const r=e.style||{},i={};return yN(i,r,e),Object.assign(i,t7(e,t,n)),e.transformValues?e.transformValues(i):i}function r7(e,t,n){const r={},i=n7(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=i,r}const i7=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],o7=["whileTap","onTap","onTapStart","onTapCancel"],a7=["onPan","onPanStart","onPanSessionStart","onPanEnd"],s7=["whileInView","onViewportEnter","onViewportLeave","viewport"],l7=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...s7,...o7,...i7,...a7]);function lm(e){return l7.has(e)}let bN=e=>!lm(e);function c7(e){!e||(bN=t=>t.startsWith("on")?!lm(t):e(t))}try{c7(require("@emotion/is-prop-valid").default)}catch{}function u7(e,t,n){const r={};for(const i in e)(bN(i)||n===!0&&lm(i)||!t&&!lm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function pT(e,t,n){return typeof e=="string"?e:Yt.transform(t+n*e)}function d7(e,t,n){const r=pT(t,e.x,e.width),i=pT(n,e.y,e.height);return`${r} ${i}`}const h7={offset:"stroke-dashoffset",array:"stroke-dasharray"},f7={offset:"strokeDashoffset",array:"strokeDasharray"};function p7(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?h7:f7;e[o.offset]=Yt.transform(-r);const a=Yt.transform(t),c=Yt.transform(n);e[o.array]=`${a} ${c}`}function cI(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...u},d,p,I){if(sI(e,u,d,I),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:P,style:F,dimensions:B}=e;P.transform&&(B&&(F.transform=P.transform),delete P.transform),B&&(r!==void 0||i!==void 0||F.transform)&&(F.transformOrigin=d7(B,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(P.x=t),n!==void 0&&(P.y=n),o!==void 0&&p7(P,o,a,c,!1)}const xN=()=>({...lI(),attrs:{}}),uI=e=>typeof e=="string"&&e.toLowerCase()==="svg";function g7(e,t,n,r){const i=de.exports.useMemo(()=>{const o=xN();return cI(o,t,{enableHardwareAcceleration:!1},uI(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};yN(o,e.style,e),i.style={...o,...i.style}}return i}function m7(e=!1){return(n,r,i,o,{latestValues:a},c)=>{const d=(aI(n)?g7:r7)(r,a,c,n),I={...u7(r,typeof n=="string",e),...d,ref:o};return i&&(I["data-projection-id"]=i),de.exports.createElement(n,I)}}const dI=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function wN(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const CN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function SN(e,t,n,r){wN(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(CN.has(i)?i:dI(i),t.attrs[i])}function hI(e){const{style:t}=e,n={};for(const r in t)(ta(t[r])||gN(r,e))&&(n[r]=t[r]);return n}function AN(e){const t=hI(e);for(const n in e)if(ta(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function fI(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}const cm=e=>Array.isArray(e),v7=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),y7=e=>cm(e)?e[e.length-1]||0:e;function Tp(e){const t=ta(e)?e.get():e;return v7(t)?t.toValue():t}function b7({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:x7(r,i,o,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const IN=e=>(t,n)=>{const r=de.exports.useContext(Vy),i=de.exports.useContext(mu),o=()=>b7(e,t,r,i);return n?o():Gy(o)};function x7(e,t,n,r){const i={},o=r(e);for(const P in o)i[P]=Tp(o[P]);let{initial:a,animate:c}=e;const u=jy(e),d=fN(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const I=p?c:a;return I&&typeof I!="boolean"&&!zy(I)&&(Array.isArray(I)?I:[I]).forEach(F=>{const B=fI(e,F);if(!B)return;const{transitionEnd:N,transition:D,...T}=B;for(const M in T){let O=T[M];if(Array.isArray(O)){const L=p?O.length-1:0;O=O[L]}O!==null&&(i[M]=O)}for(const M in N)i[M]=N[M]}),i}const w7={useVisualState:IN({scrapeMotionValuesFromProps:AN,createRenderState:xN,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}cI(n,r,{enableHardwareAcceleration:!1},uI(t.tagName),e.transformTemplate),SN(t,n)}})},C7={useVisualState:IN({scrapeMotionValuesFromProps:hI,createRenderState:lI})};function S7(e,{forwardMotionProps:t=!1},n,r,i){return{...aI(e)?w7:C7,preloadedFeatures:n,useRender:m7(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}}var Mn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Mn||(Mn={}));function Yy(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function oC(e,t,n,r){de.exports.useEffect(()=>{const i=e.current;if(n&&i)return Yy(i,t,n,r)},[e,t,n,r])}function A7({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(Mn.Focus,!0)},i=()=>{n&&n.setActive(Mn.Focus,!1)};oC(t,"focus",e?r:void 0),oC(t,"blur",e?i:void 0)}function kN(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function _N(e){return!!e.touches}function I7(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const k7={pageX:0,pageY:0};function _7(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||k7;return{x:r[t+"X"],y:r[t+"Y"]}}function E7(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function pI(e,t="page"){return{point:_N(e)?_7(e,t):E7(e,t)}}const EN=(e,t=!1)=>{const n=r=>e(r,pI(r));return t?I7(n):n},T7=()=>Pl&&window.onpointerdown===null,P7=()=>Pl&&window.ontouchstart===null,R7=()=>Pl&&window.onmousedown===null,O7={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},M7={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function TN(e){return T7()?e:P7()?M7[e]:R7()?O7[e]:e}function Mc(e,t,n,r){return Yy(e,TN(t),EN(n,t==="pointerdown"),r)}function um(e,t,n,r){return oC(e,TN(t),n&&EN(n,t==="pointerdown"),r)}function PN(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const gT=PN("dragHorizontal"),mT=PN("dragVertical");function RN(e){let t=!1;if(e==="y")t=mT();else if(e==="x")t=gT();else{const n=gT(),r=mT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ON(){const e=RN(!0);return e?(e(),!1):!0}function vT(e,t,n){return(r,i)=>{!kN(r)||ON()||(e.animationState&&e.animationState.setActive(Mn.Hover,t),n&&n(r,i))}}function L7({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){um(r,"pointerenter",e||n?vT(r,!0,e):void 0,{passive:!e}),um(r,"pointerleave",t||n?vT(r,!1,t):void 0,{passive:!t})}const MN=(e,t)=>t?e===t?!0:MN(e,t.parentElement):!1;function gI(e){return de.exports.useEffect(()=>()=>e(),[])}const D7=(e,t)=>n=>t(e(n)),Zy=(...e)=>e.reduce(D7);function $7({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){const o=e||t||n||r,a=de.exports.useRef(!1),c=de.exports.useRef(null),u={passive:!(t||e||n||F)};function d(){c.current&&c.current(),c.current=null}function p(){return d(),a.current=!1,i.animationState&&i.animationState.setActive(Mn.Tap,!1),!ON()}function I(B,N){!p()||(MN(i.current,B.target)?e&&e(B,N):n&&n(B,N))}function P(B,N){!p()||n&&n(B,N)}function F(B,N){d(),!a.current&&(a.current=!0,c.current=Zy(Mc(window,"pointerup",I,u),Mc(window,"pointercancel",P,u)),i.animationState&&i.animationState.setActive(Mn.Tap,!0),t&&t(B,N))}um(i,"pointerdown",o?F:void 0,u),gI(d)}const N7="production",LN=typeof process>"u"||process.env===void 0?N7:"production",yT=new Set;function DN(e,t,n){e||yT.has(t)||(console.warn(t),n&&console.warn(n),yT.add(t))}const aC=new WeakMap,L0=new WeakMap,F7=e=>{const t=aC.get(e.target);t&&t(e)},B7=e=>{e.forEach(F7)};function W7({root:e,...t}){const n=e||document;L0.has(n)||L0.set(n,{});const r=L0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(B7,{root:e,...t})),r[i]}function H7(e,t,n){const r=W7(t);return aC.set(e,n),r.observe(e),()=>{aC.delete(e),r.unobserve(e)}}function V7({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){const o=de.exports.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?G7:j7)(a,o.current,e,i)}const z7={some:0,all:1};function j7(e,t,n,{root:r,margin:i,amount:o="some",once:a}){de.exports.useEffect(()=>{if(!e||!n.current)return;const c={root:r==null?void 0:r.current,rootMargin:i,threshold:typeof o=="number"?o:z7[o]},u=d=>{const{isIntersecting:p}=d;if(t.isInView===p||(t.isInView=p,a&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Mn.InView,p);const I=n.getProps(),P=p?I.onViewportEnter:I.onViewportLeave;P&&P(d)};return H7(n.current,c,u)},[e,r,i,o])}function G7(e,t,n,{fallback:r=!0}){de.exports.useEffect(()=>{!e||!r||(LN!=="production"&&DN(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();i&&i(null),n.animationState&&n.animationState.setActive(Mn.InView,!0)}))},[e])}const ds=e=>t=>(e(t),null),Y7={inView:ds(V7),tap:ds($7),focus:ds(A7),hover:ds(L7)};function mI(){const e=de.exports.useContext(mu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=de.exports.useId();return de.exports.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function Z7(){return X7(de.exports.useContext(mu))}function X7(e){return e===null?!0:e.isPresent}function $N(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(e),K7=e=>/^0[^.\s]+$/.test(e),Aa={delta:0,timestamp:0},NN=1/60*1e3,J7=typeof performance<"u"?()=>performance.now():()=>Date.now(),FN=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(J7()),NN);function Q7(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const I=p&&i,P=I?t:n;return d&&a.add(u),P.indexOf(u)===-1&&(P.push(u),I&&i&&(r=t.length)),u},cancel:u=>{const d=n.indexOf(u);d!==-1&&n.splice(d,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d(e[t]=Q7(()=>vh=!0),e),{}),xi=rf.reduce((e,t)=>{const n=Xy[t];return e[t]=(r,i=!1,o=!1)=>(vh||t8(),n.schedule(r,i,o)),e},{}),Is=rf.reduce((e,t)=>(e[t]=Xy[t].cancel,e),{}),D0=rf.reduce((e,t)=>(e[t]=()=>Xy[t].process(Aa),e),{}),e8=e=>Xy[e].process(Aa),BN=e=>{vh=!1,Aa.delta=sC?NN:Math.max(Math.min(e-Aa.timestamp,q7),1),Aa.timestamp=e,lC=!0,rf.forEach(e8),lC=!1,vh&&(sC=!1,FN(BN))},t8=()=>{vh=!0,sC=!0,lC||FN(BN)};function vI(e,t){e.indexOf(t)===-1&&e.push(t)}function yI(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bI{constructor(){this.subscriptions=[]}add(t){return vI(this.subscriptions,t),()=>yI(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class r8{constructor(t,n={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Aa;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,xi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>xi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=n8(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){return this.events[t]||(this.events[t]=new bI),this.events[t].add(n)}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xI(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function Qc(e,t){return new r8(e,t)}const wI=(e,t)=>n=>Boolean(tf(n)&&Q6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),WN=(e,t,n)=>r=>{if(!tf(r))return r;const[i,o,a,c]=r.match(mh);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},i8=e=>Jc(0,255,e),$0={...Ol,transform:e=>Math.round(i8(e))},qs={test:wI("rgb","red"),parse:WN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$0.transform(e)+", "+$0.transform(t)+", "+$0.transform(n)+", "+Rd(Pd.transform(r))+")"};function o8(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const cC={test:wI("#"),parse:o8,transform:qs.transform},hc={test:wI("hsl","hue"),parse:WN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Jo.transform(Rd(t))+", "+Jo.transform(Rd(n))+", "+Rd(Pd.transform(r))+")"},ni={test:e=>qs.test(e)||cC.test(e)||hc.test(e),parse:e=>qs.test(e)?qs.parse(e):hc.test(e)?hc.parse(e):cC.parse(e),transform:e=>tf(e)?e:e.hasOwnProperty("red")?qs.transform(e):hc.transform(e)},HN="${c}",VN="${n}";function a8(e){var t,n;return isNaN(e)&&tf(e)&&(((t=e.match(mh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(iC))===null||n===void 0?void 0:n.length)||0)>0}function dm(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const i=e.match(iC);i&&(n=i.length,e=e.replace(iC,HN),t.push(...i.map(ni.parse)));const o=e.match(mh);return o&&(r=o.length,e=e.replace(mh,VN),t.push(...o.map(Ol.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function zN(e){return dm(e).values}function jN(e){const{values:t,numColors:n,tokenised:r}=dm(e),i=t.length;return o=>{let a=r;for(let c=0;ctypeof e=="number"?0:e;function l8(e){const t=zN(e);return jN(e)(t.map(s8))}const ks={test:a8,parse:zN,createTransformer:jN,getAnimatableNone:l8},c8=new Set(["brightness","contrast","saturate","opacity"]);function u8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mh)||[];if(!r)return e;const i=n.replace(r,"");let o=c8.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const d8=/([a-z-]*)\(.*?\)/g,uC={...ks,getAnimatableNone:e=>{const t=e.match(d8);return t?t.map(u8).join(" "):e}},h8={...vN,color:ni,backgroundColor:ni,outlineColor:ni,fill:ni,stroke:ni,borderColor:ni,borderTopColor:ni,borderRightColor:ni,borderBottomColor:ni,borderLeftColor:ni,filter:uC,WebkitFilter:uC},CI=e=>h8[e];function SI(e,t){var n;let r=CI(e);return r!==uC&&(r=ks),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const GN=e=>t=>t.test(e),f8={test:e=>e==="auto",parse:e=>e},YN=[Ol,Yt,Jo,Ka,e7,q6,f8],Wu=e=>YN.find(GN(e)),p8=[...YN,ni,ks],g8=e=>p8.find(GN(e));function m8(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function v8(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Uy(e,t,n){const r=e.getProps();return fI(r,t,n!==void 0?n:r.custom,m8(e),v8(e))}function y8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qc(n))}function b8(e,t){const n=Uy(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=y7(o[a]);y8(e,a,c)}}function x8(e,t,n){var r,i;const o=Object.keys(t).filter(c=>!e.hasValue(c)),a=o.length;if(!!a)for(let c=0;c`${e}: ${t}`;function A8(e,t){const{MotionAppearAnimations:n}=window,r=S8(e,Rl.has(t)?"transform":t),i=n&&n.get(r);return i?(xi.render(()=>{try{i.cancel(),n.delete(r)}catch{}}),i.currentTime||0):0}const I8="framerAppearId",k8="data-"+dI(I8);var _8=function(){},fm=function(){};const Pp=e=>e*1e3,E8={current:!1},AI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,II=e=>t=>1-e(1-t),kI=e=>e*e,T8=II(kI),_I=AI(kI),rr=(e,t,n)=>-n*e+n*t+e;function N0(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 P8({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=N0(u,c,e+1/3),o=N0(u,c,e),a=N0(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const F0=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},R8=[cC,qs,hc],O8=e=>R8.find(t=>t.test(e));function bT(e){const t=O8(e);let n=t.parse(e);return t===hc&&(n=P8(n)),n}const ZN=(e,t)=>{const n=bT(e),r=bT(t),i={...n};return o=>(i.red=F0(n.red,r.red,o),i.green=F0(n.green,r.green,o),i.blue=F0(n.blue,r.blue,o),i.alpha=rr(n.alpha,r.alpha,o),qs.transform(i))};function XN(e,t){return typeof e=="number"?n=>rr(e,t,n):ni.test(e)?ZN(e,t):KN(e,t)}const UN=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>XN(o,t[a]));return o=>{for(let a=0;a{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=XN(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},KN=(e,t)=>{const n=ks.createTransformer(t),r=dm(e),i=dm(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Zy(UN(r.values,i.values),n):a=>`${a>0?t:e}`},pm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xT=(e,t)=>n=>rr(e,t,n);function L8(e){return typeof e=="number"?xT:typeof e=="string"?ni.test(e)?ZN:KN:Array.isArray(e)?UN:typeof e=="object"?M8:xT}function D8(e,t,n){const r=[],i=n||L8(e[0]),o=e.length-1;for(let a=0;ae[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=D8(t,r,i),c=a.length,u=d=>{let p=0;if(c>1)for(;pu(Jc(e[0],e[o-1],d)):u}const EI=e=>e,QN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$8=1e-7,N8=12;function F8(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=QN(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>$8&&++cF8(o,0,1,e,n);return o=>o===0||o===1?o:QN(i(o),t,r)}const eF=e=>1-Math.sin(Math.acos(e)),TI=II(eF),B8=AI(TI),tF=qN(.33,1.53,.69,.99),PI=II(tF),W8=AI(PI),H8=e=>(e*=2)<1?.5*PI(e):.5*(2-Math.pow(2,-10*(e-1))),V8={linear:EI,easeIn:kI,easeInOut:_I,easeOut:T8,circIn:eF,circInOut:B8,circOut:TI,backIn:PI,backInOut:W8,backOut:tF,anticipate:H8},wT=e=>{if(Array.isArray(e)){fm(e.length===4);const[t,n,r,i]=e;return qN(t,n,r,i)}else if(typeof e=="string")return V8[e];return e},z8=e=>Array.isArray(e)&&typeof e[0]!="number";function j8(e,t){return e.map(()=>t||_I).splice(0,e.length-1)}function G8(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function Y8(e,t){return e.map(n=>n*t)}function gm({keyframes:e,ease:t=_I,times:n,duration:r=300}){e=[...e];const i=gm[0],o=z8(t)?t.map(wT):wT(t),a={done:!1,value:i},c=Y8(n&&n.length===gm.length?n:G8(e),r);function u(){return JN(c,e,{ease:Array.isArray(o)?o:j8(e,o)})}let d=u();return{next:p=>(a.value=d(p),a.done=p>=r,a),flipTarget:()=>{e.reverse(),d=u()}}}const B0=.001,Z8=.01,CT=10,X8=.05,U8=1;function K8({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;_8(e<=CT*1e3);let a=1-t;a=Jc(X8,U8,a),e=Jc(Z8,CT,e/1e3),a<1?(i=d=>{const p=d*a,I=p*e,P=p-n,F=dC(d,a),B=Math.exp(-I);return B0-P/F*B},o=d=>{const I=d*a*e,P=I*n+n,F=Math.pow(a,2)*Math.pow(d,2)*e,B=Math.exp(-I),N=dC(Math.pow(d,2),a);return(-i(d)+B0>0?-1:1)*((P-F)*B)/N}):(i=d=>{const p=Math.exp(-d*e),I=(d-n)*e+1;return-B0+p*I},o=d=>{const p=Math.exp(-d*e),I=(n-d)*(e*e);return p*I});const c=5/e,u=Q8(i,o,c);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const J8=12;function Q8(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function tJ(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ST(e,eJ)&&ST(e,q8)){const n=K8(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const nJ=5;function nF({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let i=e[0],o=e[e.length-1];const a={done:!1,value:i},{stiffness:c,damping:u,mass:d,velocity:p,duration:I,isResolvedFromDuration:P}=tJ(r);let F=rJ,B=p?-(p/1e3):0;const N=u/(2*Math.sqrt(c*d));function D(){const T=o-i,M=Math.sqrt(c/d)/1e3;if(n===void 0&&(n=Math.min(Math.abs(o-i)/100,.4)),N<1){const O=dC(M,N);F=L=>{const x=Math.exp(-N*M*L);return o-x*((B+N*M*T)/O*Math.sin(O*L)+T*Math.cos(O*L))}}else if(N===1)F=O=>o-Math.exp(-M*O)*(T+(B+M*T)*O);else{const O=M*Math.sqrt(N*N-1);F=L=>{const x=Math.exp(-N*M*L),b=Math.min(O*L,300);return o-x*((B+N*M*T)*Math.sinh(b)+O*T*Math.cosh(b))/O}}}return D(),{next:T=>{const M=F(T);if(P)a.done=T>=I;else{let O=B;if(T!==0)if(N<1){const b=Math.max(0,T-nJ);O=xI(M-F(b),T-b)}else O=0;const L=Math.abs(O)<=t,x=Math.abs(o-M)<=n;a.done=L&&x}return a.value=a.done?o:M,a},flipTarget:()=>{B=-B,[i,o]=[o,i],D()}}}nF.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const rJ=e=>0;function iJ({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a=e[0],c={done:!1,value:a};let u=n*t;const d=a+u,p=o===void 0?d:o(d);return p!==d&&(u=p-a),{next:I=>{const P=-u*Math.exp(-I/r);return c.done=!(P>i||P<-i),c.value=c.done?p:p+P,c},flipTarget:()=>{}}}const oJ={decay:iJ,keyframes:gm,tween:gm,spring:nF};function rF(e,t,n=0){return e-t-n}function aJ(e,t=0,n=0,r=!0){return r?rF(t+-e,t,n):t-(e-t)+n}function sJ(e,t,n,r){return r?e>=t+n:e<=-n}const lJ=e=>{const t=({delta:n})=>e(n);return{start:()=>xi.update(t,!0),stop:()=>Is.update(t)}};function mm({duration:e,driver:t=lJ,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:c=!0,onPlay:u,onStop:d,onComplete:p,onRepeat:I,onUpdate:P,type:F="keyframes",...B}){var N,D;let T,M=0,O=e,L,x=!1,b=!0,C;const g=oJ[a.length>2?"keyframes":F],w=a[0],f=a[a.length-1];!((D=(N=g).needsInterpolation)===null||D===void 0)&&D.call(N,w,f)&&(C=JN([0,100],[w,f],{clamp:!1}),a=[0,100]);const m=g({...B,duration:e,keyframes:a});function E(){M++,i==="reverse"?(b=M%2===0,n=aJ(n,O,o,b)):(n=rF(n,O,o),i==="mirror"&&m.flipTarget()),x=!1,I&&I()}function S(){T.stop(),p&&p()}function y($){if(b||($=-$),n+=$,!x){const z=m.next(Math.max(0,n));L=z.value,C&&(L=C(L)),x=b?z.done:n<=0}P&&P(L),x&&(M===0&&(O=O!==void 0?O:n),M{d&&d(),T.stop()},sample:$=>m.next(Math.max(0,$))}}function cJ(e){return!e||Array.isArray(e)||typeof e=="string"&&iF[e]}const sd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,iF={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sd([0,.65,.55,1]),circOut:sd([.55,0,1,.45]),backIn:sd([.31,.01,.66,-.59]),backOut:sd([.33,1.53,.69,.99])};function uJ(e){if(!!e)return Array.isArray(e)?sd(e):iF[e]}function dJ(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:u}={}){return e.animate({[t]:n,offset:u},{delay:r,duration:i,easing:uJ(c),fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Gf=10;function hJ(e,t,{onUpdate:n,onComplete:r,...i}){let{keyframes:o,duration:a=.3,elapsed:c=0,ease:u}=i;if(i.type==="spring"||!cJ(i.ease)){const p=mm(i);let I={done:!1,value:o[0]};const P=[];let F=0;for(;!I.done;)I=p.sample(F),P.push(I.value),F+=Gf;o=P,a=F-Gf,u="linear"}const d=dJ(e.owner.current,t,o,{...i,delay:-c,duration:a,ease:u});return d.onfinish=()=>{e.set(o[o.length-1]),r&&r()},()=>{const{currentTime:p}=d;if(p){const I=mm(i);e.setWithVelocity(I.sample(p-Gf).value,I.sample(p).value,Gf)}xi.update(()=>d.cancel())}}function oF(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Is.read(r),e(o-t))};return xi.read(r,!0),()=>Is.read(r)}function fJ({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),()=>{});return t?oF(i,-t):i()}function pJ({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:c=10,restDelta:u=1,modifyTarget:d,driver:p,onUpdate:I,onComplete:P,onStop:F}){const B=e[0];let N;function D(L){return n!==void 0&&Lr}function T(L){return n===void 0?r:r===void 0||Math.abs(n-L){var b;I==null||I(x),(b=L.onUpdate)===null||b===void 0||b.call(L,x)},onComplete:P,onStop:F})}function O(L){M({type:"spring",stiffness:a,damping:c,restDelta:u,...L})}if(D(B))O({velocity:t,keyframes:[B,T(B)]});else{let L=i*t+B;typeof d<"u"&&(L=d(L));const x=T(L),b=x===n?-1:1;let C,g;const w=f=>{C=g,g=f,t=xI(f-C,Aa.delta),(b===1&&f>x||b===-1&&fN==null?void 0:N.stop()}}const Hs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Yf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),W0=()=>({type:"keyframes",ease:"linear",duration:.3}),gJ={type:"keyframes",duration:.8},AT={x:Hs,y:Hs,z:Hs,rotate:Hs,rotateX:Hs,rotateY:Hs,rotateZ:Hs,scaleX:Yf,scaleY:Yf,scale:Yf,opacity:W0,backgroundColor:W0,color:W0,default:Yf},mJ=(e,{keyframes:t})=>t.length>2?gJ:(AT[e]||AT.default)(t[1]),hC=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&ks.test(t)&&!t.startsWith("url("));function vJ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,...d}){return!!Object.keys(d).length}function IT(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function kT(e){return typeof e=="number"?0:SI("",e)}function aF(e,t){return e[t]||e.default||e}function yJ(e,t,n,r){const i=hC(t,n);let o=r.from!==void 0?r.from:e.get();return o==="none"&&i&&typeof n=="string"?o=SI(t,n):IT(o)&&typeof n=="string"?o=kT(n):!Array.isArray(n)&&IT(n)&&typeof o=="string"&&(n=kT(o)),Array.isArray(n)?(n[0]===null&&(n[0]=o),n):[o,n]}const _T={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},H0={},sF={};for(const e in _T)sF[e]=()=>(H0[e]===void 0&&(H0[e]=_T[e]()),H0[e]);const bJ=new Set(["opacity"]),RI=(e,t,n,r={})=>i=>{const o=aF(r,e)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Pp(a);const u=yJ(t,e,n,o),d=u[0],p=u[u.length-1],I=hC(e,d),P=hC(e,p);let F={keyframes:u,velocity:t.getVelocity(),...o,elapsed:c,onUpdate:T=>{t.set(T),o.onUpdate&&o.onUpdate(T)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!I||!P||E8.current||o.type===!1)return fJ(F);if(o.type==="inertia"){const T=pJ(F);return()=>T.stop()}vJ(o)||(F={...F,...mJ(e,F)}),F.duration&&(F.duration=Pp(F.duration)),F.repeatDelay&&(F.repeatDelay=Pp(F.repeatDelay));const B=t.owner,N=B&&B.current;if(sF.waapi()&&bJ.has(e)&&!F.repeatDelay&&F.repeatType!=="mirror"&&F.damping!==0&&B&&N instanceof HTMLElement&&!B.getProps().onUpdate)return hJ(t,e,F);{const T=mm(F);return()=>T.stop()}};function xJ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>fC(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=fC(e,t,n);else{const i=typeof t=="function"?Uy(e,t,n.custom):t;r=lF(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))}function fC(e,t,n={}){var r;const i=Uy(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>lF(e,i,n):()=>Promise.resolve(),c=!((r=e.variantChildren)===null||r===void 0)&&r.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:I,staggerDirection:P}=o;return wJ(e,t,p+d,I,P,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,p]=u==="beforeChildren"?[a,c]:[c,a];return d().then(p)}else return Promise.all([a(),c(n.delay)])}function lF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=e.makeTargetAnimatable(t);const d=e.getValue("willChange");r&&(a=r);const p=[],I=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(const P in u){const F=e.getValue(P),B=u[P];if(!F||B===void 0||I&&SJ(I,P))continue;let N={delay:n,elapsed:0,...a};if(e.shouldReduceMotion&&Rl.has(P)&&(N={...N,type:!1,delay:0}),!F.hasAnimated){const T=e.getProps()[k8];T&&(N.elapsed=A8(T,P))}let D=F.start(RI(P,F,B,N));hm(d)&&(d.add(P),D=D.then(()=>d.remove(P))),p.push(D)}return Promise.all(p).then(()=>{c&&b8(e,c)})}function wJ(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(CJ).forEach((d,p)=>{a.push(fC(d,t,{...o,delay:n+u(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function CJ(e,t){return e.sortNodePosition(t)}function SJ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const OI=[Mn.Animate,Mn.InView,Mn.Focus,Mn.Hover,Mn.Tap,Mn.Drag,Mn.Exit],AJ=[...OI].reverse(),IJ=OI.length;function kJ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xJ(e,n,r)))}function _J(e){let t=kJ(e);const n=TJ();let r=!0;const i=(u,d)=>{const p=Uy(e,d);if(p){const{transition:I,transitionEnd:P,...F}=p;u={...u,...F,...P}}return u};function o(u){t=u(e)}function a(u,d){const p=e.getProps(),I=e.getVariantContext(!0)||{},P=[],F=new Set;let B={},N=1/0;for(let T=0;TN&&x;const f=Array.isArray(L)?L:[L];let m=f.reduce(i,{});b===!1&&(m={});const{prevResolvedValues:E={}}=O,S={...E,...m},y=_=>{w=!0,F.delete(_),O.needsAnimating[_]=!0};for(const _ in S){const $=m[_],z=E[_];B.hasOwnProperty(_)||($!==z?cm($)&&cm(z)?!$N($,z)||g?y(_):O.protectedKeys[_]=!0:$!==void 0?y(_):F.add(_):$!==void 0&&F.has(_)?y(_):O.protectedKeys[_]=!0)}O.prevProp=L,O.prevResolvedValues=m,O.isActive&&(B={...B,...m}),r&&e.blockInitialAnimation&&(w=!1),w&&!C&&P.push(...f.map(_=>({animation:_,options:{type:M,...u}})))}if(F.size){const T={};F.forEach(M=>{const O=e.getBaseTarget(M);O!==void 0&&(T[M]=O)}),P.push({animation:T})}let D=Boolean(P.length);return r&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),r=!1,D?t(P):Promise.resolve()}function c(u,d,p){var I;if(n[u].isActive===d)return Promise.resolve();(I=e.variantChildren)===null||I===void 0||I.forEach(F=>{var B;return(B=F.animationState)===null||B===void 0?void 0:B.setActive(u,d)}),n[u].isActive=d;const P=a(p,u);for(const F in n)n[F].protectedKeys={};return P}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function EJ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$N(t,e):!1}function Vs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TJ(){return{[Mn.Animate]:Vs(!0),[Mn.InView]:Vs(),[Mn.Hover]:Vs(),[Mn.Tap]:Vs(),[Mn.Drag]:Vs(),[Mn.Focus]:Vs(),[Mn.Exit]:Vs()}}const PJ={animation:ds(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=_J(e)),zy(t)&&de.exports.useEffect(()=>t.subscribe(e),[t])}),exit:ds(e=>{const{custom:t,visualElement:n}=e,[r,i]=mI(),o=de.exports.useContext(mu);de.exports.useEffect(()=>{n.isPresent=r;const a=n.animationState&&n.animationState.setActive(Mn.Exit,!r,{custom:o&&o.custom||t});a&&!r&&a.then(i)},[r])})},ET=(e,t)=>Math.abs(e-t);function RJ(e,t){const n=ET(e.x,t.x),r=ET(e.y,t.y);return Math.sqrt(n**2+r**2)}class cF{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=z0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,I=RJ(d.offset,{x:0,y:0})>=3;if(!p&&!I)return;const{point:P}=d,{timestamp:F}=Aa;this.history.push({...P,timestamp:F});const{onStart:B,onMove:N}=this.handlers;p||(B&&B(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{if(this.lastMoveEvent=d,this.lastMoveEventInfo=V0(p,this.transformPagePoint),kN(d)&&d.buttons===0){this.handlePointerUp(d,p);return}xi.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:I,onSessionEnd:P}=this.handlers,F=z0(V0(p,this.transformPagePoint),this.history);this.startEvent&&I&&I(d,F),P&&P(d,F)},_N(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const i=pI(t),o=V0(i,this.transformPagePoint),{point:a}=o,{timestamp:c}=Aa;this.history=[{...a,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,z0(o,this.history)),this.removeListeners=Zy(Mc(window,"pointermove",this.handlePointerMove),Mc(window,"pointerup",this.handlePointerUp),Mc(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Is.update(this.updatePoint)}}function V0(e,t){return t?{point:t(e.point)}:e}function TT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function z0({point:e},t){return{point:e,delta:TT(e,uF(t)),offset:TT(e,OJ(t)),velocity:MJ(t,.1)}}function OJ(e){return e[0]}function uF(e){return e[e.length-1]}function MJ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=uF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Pp(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ni(e){return e.max-e.min}function pC(e,t=0,n=.01){return Math.abs(e-t)<=n}function PT(e,t,n,r=.5){e.origin=r,e.originPoint=rr(t.min,t.max,e.origin),e.scale=Ni(n)/Ni(t),(pC(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=rr(n.min,n.max,e.origin)-e.originPoint,(pC(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Od(e,t,n,r){PT(e.x,t.x,n.x,r==null?void 0:r.originX),PT(e.y,t.y,n.y,r==null?void 0:r.originY)}function RT(e,t,n){e.min=n.min+t.min,e.max=e.min+Ni(t)}function LJ(e,t,n){RT(e.x,t.x,n.x),RT(e.y,t.y,n.y)}function OT(e,t,n){e.min=t.min-n.min,e.max=e.min+Ni(t)}function Md(e,t,n){OT(e.x,t.x,n.x),OT(e.y,t.y,n.y)}function DJ(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?rr(n,e,r.max):Math.min(e,n)),e}function MT(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $J(e,{top:t,left:n,bottom:r,right:i}){return{x:MT(e.x,n,i),y:MT(e.y,t,r)}}function LT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=pm(t.min,t.max-r,e.min):r>i&&(n=pm(e.min,e.max-i,t.min)),Jc(0,1,n)}function BJ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const gC=.35;function WJ(e=gC){return e===!1?e=0:e===!0&&(e=gC),{x:DT(e,"left","right"),y:DT(e,"top","bottom")}}function DT(e,t,n){return{min:$T(e,t),max:$T(e,n)}}function $T(e,t){return typeof e=="number"?e:e[t]||0}const NT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ld=()=>({x:NT(),y:NT()}),FT=()=>({min:0,max:0}),xr=()=>({x:FT(),y:FT()});function Lo(e){return[e("x"),e("y")]}function dF({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HJ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VJ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function j0(e){return e===void 0||e===1}function mC({scale:e,scaleX:t,scaleY:n}){return!j0(e)||!j0(t)||!j0(n)}function Gs(e){return mC(e)||hF(e)||e.z||e.rotate||e.rotateX||e.rotateY}function hF(e){return BT(e.x)||BT(e.y)}function BT(e){return e&&e!=="0%"}function vm(e,t,n){const r=e-n,i=t*r;return n+i}function WT(e,t,n,r,i){return i!==void 0&&(e=vm(e,i,r)),vm(e,n,r)+t}function vC(e,t=0,n=1,r,i){e.min=WT(e.min,t,n,r,i),e.max=WT(e.max,t,n,r,i)}function fF(e,{x:t,y:n}){vC(e.x,t.translate,t.scale,t.originPoint),vC(e.y,n.translate,n.scale,n.originPoint)}function zJ(e,t,n,r=!1){var i,o;const a=n.length;if(!a)return;t.x=t.y=1;let c,u;for(let d=0;d1.0000000000001||e<.999999999999?e:1}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function VT(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=rr(e.min,e.max,o);vC(e,t[n],t[r],a,t.scale)}const jJ=["x","scaleX","originX"],GJ=["y","scaleY","originY"];function fc(e,t){VT(e.x,t,jJ),VT(e.y,t,GJ)}function pF(e,t){return dF(VJ(e.getBoundingClientRect(),t))}function YJ(e,t,n){const r=pF(e,n),{scroll:i}=t;return i&&(ts(r.x,i.offset.x),ts(r.y,i.offset.y)),r}const ZJ=new WeakMap;class XJ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=c=>{this.stopAnimation(),n&&this.snapToCursor(pI(c,"page").point)},i=(c,u)=>{var d;const{drag:p,dragPropagation:I,onDragStart:P}=this.getProps();p&&!I&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=RN(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lo(F=>{var B,N;let D=this.getAxisMotionValue(F).get()||0;if(Jo.test(D)){const T=(N=(B=this.visualElement.projection)===null||B===void 0?void 0:B.layout)===null||N===void 0?void 0:N.layoutBox[F];T&&(D=Ni(T)*(parseFloat(D)/100))}this.originPoint[F]=D}),P==null||P(c,u),(d=this.visualElement.animationState)===null||d===void 0||d.setActive(Mn.Drag,!0))},o=(c,u)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:I,onDrag:P}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:F}=u;if(p&&this.currentDirection===null){this.currentDirection=UJ(F),this.currentDirection!==null&&(I==null||I(this.currentDirection));return}this.updateAxis("x",u.point,F),this.updateAxis("y",u.point,F),this.visualElement.render(),P==null||P(c,u)},a=(c,u)=>this.stop(c,u);this.panSession=new cF(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o==null||o(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Mn.Drag,!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Zf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=DJ(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&dc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=$J(r.layoutBox,t):this.constraints=!1,this.elastic=WJ(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lo(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=BJ(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dc(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=YJ(r,i.root,this.visualElement.getTransformPagePoint());let a=NJ(i.layout.layoutBox,o);if(n){const c=n(HJ(a));this.hasMutatedConstraints=!!c,c&&(a=dF(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=Lo(p=>{if(!Zf(p,n,this.currentDirection))return;let I=(u==null?void 0:u[p])||{};a&&(I={min:0,max:0});const P=i?200:1e6,F=i?40:1e7,B={type:"inertia",velocity:r?t[p]:0,bounceStiffness:P,bounceDamping:F,timeConstant:750,restDelta:1,restSpeed:10,...o,...I};return this.startAxisValueAnimation(p,B)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(RI(t,r,0,n))}stopAnimation(){Lo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n;const r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,((n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])||0)}snapToCursor(t){Lo(n=>{const{drag:r}=this.getProps();if(!Zf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rr(a,c,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!dc(r)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Lo(c=>{const u=this.getAxisMotionValue(c);if(u){const d=u.get();o[c]=FJ({min:d,max:d},this.constraints[c])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Lo(c=>{if(!Zf(c,n,null))return;const u=this.getAxisMotionValue(c),{min:d,max:p}=this.constraints[c];u.set(rr(d,p,o[c]))})}addListeners(){var t;if(!this.visualElement.current)return;ZJ.set(this.visualElement,this);const n=this.visualElement.current,r=Mc(n,"pointerdown",d=>{const{drag:p,dragListener:I=!0}=this.getProps();p&&I&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();dc(d)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();const c=Yy(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Lo(I=>{const P=this.getAxisMotionValue(I);!P||(this.originPoint[I]+=d[I].translate,P.set(P.get()+d[I].translate))}),this.visualElement.render())});return()=>{c(),r(),a(),u==null||u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=gC,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Zf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UJ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function KJ(e){const{dragControls:t,visualElement:n}=e,r=Gy(()=>new XJ(n));de.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),de.exports.useEffect(()=>r.addListeners(),[r])}function JJ({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){const o=e||t||n||r,a=de.exports.useRef(null),{transformPagePoint:c}=de.exports.useContext(iI),u={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,I)=>{a.current=null,n&&n(p,I)}};de.exports.useEffect(()=>{a.current!==null&&a.current.updateHandlers(u)});function d(p){a.current=new cF(p,u,{transformPagePoint:c})}um(i,"pointerdown",o&&d),gI(()=>a.current&&a.current.end())}const QJ={pan:ds(JJ),drag:ds(KJ)};function yC(e){return typeof e=="string"&&e.startsWith("var(--")}const gF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function qJ(e){const t=gF.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function bC(e,t,n=1){const[r,i]=qJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():yC(i)?bC(i,t,n+1):i}function eQ(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!yC(o))return;const a=bC(o,r);a&&i.set(a)});for(const i in t){const o=t[i];if(!yC(o))continue;const a=bC(o,r);!a||(t[i]=a,n&&n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const tQ=new Set(["width","height","top","left","right","bottom","x","y"]),mF=e=>tQ.has(e),nQ=e=>Object.keys(e).some(mF),vF=(e,t)=>{e.set(t,!1),e.set(t)},zT=e=>e===Ol||e===Yt;var jT;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(jT||(jT={}));const GT=(e,t)=>parseFloat(e.split(", ")[t]),YT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return GT(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?GT(o[1],e):0}},rQ=new Set(["x","y","z"]),iQ=sm.filter(e=>!rQ.has(e));function oQ(e){const t=[];return iQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ZT={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:YT(4,13),y:YT(5,14)},aQ=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{c[d]=ZT[d](r,o)}),t.render();const u=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);vF(p,c[d]),e[d]=ZT[d](u,o)}),e},sQ=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(mF);let o=[],a=!1;const c=[];if(i.forEach(u=>{const d=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],I=Wu(p);const P=t[u];let F;if(cm(P)){const B=P.length,N=P[0]===null?1:0;p=P[N],I=Wu(p);for(let D=N;D=0?window.pageYOffset:null,d=aQ(t,e,c);return o.length&&o.forEach(([p,I])=>{e.getValue(p).set(I)}),e.render(),Pl&&u!==null&&window.scrollTo({top:u}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function lQ(e,t,n,r){return nQ(t)?sQ(e,t,n,r):{target:t,transitionEnd:r}}const cQ=(e,t,n,r)=>{const i=eQ(e,t,r);return t=i.target,r=i.transitionEnd,lQ(e,t,n,r)},xC={current:null},yF={current:!1};function uQ(){if(yF.current=!0,!!Pl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xC.current=e.matches;e.addListener(t),t()}else xC.current=!1}function dQ(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(ta(o))e.addValue(i,o),hm(r)&&r.add(i);else if(ta(a))e.addValue(i,Qc(o,{owner:e})),hm(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const c=e.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=e.getStaticValue(i);e.addValue(i,Qc(c!==void 0?c:o))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const bF=Object.keys(gh),hQ=bF.length,XT=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fQ{constructor({parent:t,props:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>xi.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=c,this.parent=t,this.props=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=jy(n),this.isVariantNode=fN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n);for(const p in d){const I=d[p];a[p]!==void 0&&ta(I)&&(I.set(a[p],!1),hm(u)&&u.add(p))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var n;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(n=this.parent)===null||n===void 0?void 0:n.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),yF.current||uQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xC.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,n,r;(t=this.projection)===null||t===void 0||t.unmount(),Is.update(this.notifyUpdate),Is.render(this.render),this.valueSubscriptions.forEach(i=>i()),(n=this.removeFromVariantTree)===null||n===void 0||n.call(this),(r=this.parent)===null||r===void 0||r.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,n){const r=Rl.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&xi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,n,r,i,o,a){const c=[];for(let u=0;uthis.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:P})}return c}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let n=0;nr.variantChildren.delete(t)}addValue(t,n){this.hasValue(t)&&this.removeValue(t),this.values.set(t,n),this.latestValues[t]=n.get(),this.bindToMotionValue(t,n)}removeValue(t){var n;this.values.delete(t),(n=this.valueSubscriptions.get(t))===null||n===void 0||n(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Qc(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=fI(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ta(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bI),this.events[t].add(n)}notify(t,...n){var r;(r=this.events[t])===null||r===void 0||r.notify(...n)}}const xF=["initial",...OI],pQ=xF.length;class wF extends fQ{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){var r;return(r=t.style)===null||r===void 0?void 0:r[n]}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let a=C8(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){x8(this,r,a);const c=cQ(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function gQ(e){return window.getComputedStyle(e)}class mQ extends wF{readValueFromInstance(t,n){if(Rl.has(n)){const r=CI(n);return r&&r.default||0}else{const r=gQ(t),i=(mN(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pF(t,n)}build(t,n,r,i){sI(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t){return hI(t)}renderInstance(t,n,r,i){wN(t,n,r,i)}}class vQ extends wF{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){var r;return Rl.has(n)?((r=CI(n))===null||r===void 0?void 0:r.default)||0:(n=CN.has(n)?n:dI(n),t.getAttribute(n))}measureInstanceViewportBox(){return xr()}scrapeMotionValuesFromProps(t){return AN(t)}build(t,n,r,i){cI(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){SN(t,n,r,i)}mount(t){this.isSVGTag=uI(t.tagName),super.mount(t)}}const yQ=(e,t)=>aI(e)?new vQ(t,{enableHardwareAcceleration:!1}):new mQ(t,{enableHardwareAcceleration:!0});function UT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Yt.test(e))e=parseFloat(e);else return e;const n=UT(e,t.target.x),r=UT(e,t.target.y);return`${n}% ${r}%`}},KT="_$css",bQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),o=[];i&&(e=e.replace(gF,F=>(o.push(F),KT)));const a=ks.parse(e);if(a.length>5)return r;const c=ks.createTransformer(e),u=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,p=n.y.scale*t.y;a[0+u]/=d,a[1+u]/=p;const I=rr(d,p,.5);typeof a[2+u]=="number"&&(a[2+u]/=I),typeof a[3+u]=="number"&&(a[3+u]/=I);let P=c(a);if(i){let F=0;P=P.replace(KT,()=>{const B=o[F];return F++,B})}return P}};class xQ extends vt.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Z6(CQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Td.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||xi.postRender(()=>{var c;!((c=a.getStack())===null||c===void 0)&&c.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n!=null&&n.group&&n.group.remove(i),r!=null&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function wQ(e){const[t,n]=mI(),r=de.exports.useContext(oI);return Se(xQ,{...e,layoutGroup:r,switchLayoutGroup:de.exports.useContext(pN),isPresent:t,safeToRemove:n})}const CQ={borderRadius:{...Hu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:bQ},SQ={measureLayout:wQ};function AQ(e,t,n={}){const r=ta(e)?e:Qc(e);return r.start(RI("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const CF=["TopLeft","TopRight","BottomLeft","BottomRight"],IQ=CF.length,JT=e=>typeof e=="string"?parseFloat(e):e,QT=e=>typeof e=="number"||Yt.test(e);function kQ(e,t,n,r,i,o){i?(e.opacity=rr(0,n.opacity!==void 0?n.opacity:1,_Q(r)),e.opacityExit=rr(t.opacity!==void 0?t.opacity:1,0,EQ(r))):o&&(e.opacity=rr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(pm(e,t,r))}function e2(e,t){e.min=t.min,e.max=t.max}function ho(e,t){e2(e.x,t.x),e2(e.y,t.y)}function t2(e,t,n,r,i){return e-=t,e=vm(e,1/n,r),i!==void 0&&(e=vm(e,1/i,r)),e}function TQ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Jo.test(t)&&(t=parseFloat(t),t=rr(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rr(o.min,o.max,r);e===o&&(c-=t),e.min=t2(e.min,t,n,c,i),e.max=t2(e.max,t,n,c,i)}function n2(e,t,[n,r,i],o,a){TQ(e,t[n],t[r],t[i],t.scale,o,a)}const PQ=["x","scaleX","originX"],RQ=["y","scaleY","originY"];function r2(e,t,n,r){n2(e.x,t,PQ,n==null?void 0:n.x,r==null?void 0:r.x),n2(e.y,t,RQ,n==null?void 0:n.y,r==null?void 0:r.y)}function i2(e){return e.translate===0&&e.scale===1}function AF(e){return i2(e.x)&&i2(e.y)}function IF(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function o2(e){return Ni(e.x)/Ni(e.y)}class OQ{constructor(){this.members=[]}add(t){vI(this.members,t),t.scheduleRender()}remove(t){if(yI(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function a2(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:d,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const MQ=(e,t)=>e.depth-t.depth;class LQ{constructor(){this.children=[],this.isDirty=!1}add(t){vI(this.children,t),this.isDirty=!0}remove(t){yI(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(MQ),this.isDirty=!1,this.children.forEach(t)}}const s2=["","X","Y","Z"],l2=1e3;let DQ=0;function kF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a,c={},u=t==null?void 0:t()){this.id=DQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(FQ),this.nodes.forEach(HQ),this.nodes.forEach(VQ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=c,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let d=0;dthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,P&&P(),P=oF(F,250),Td.hasAnimatedSinceResize&&(Td.hasAnimatedSinceResize=!1,this.nodes.forEach(u2))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&I&&(d||p)&&this.addEventListener("didUpdate",({delta:P,hasLayoutChanged:F,hasRelativeTargetChanged:B,layout:N})=>{var D,T,M,O,L;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=(T=(D=this.options.transition)!==null&&D!==void 0?D:I.getDefaultTransition())!==null&&T!==void 0?T:ZQ,{onLayoutAnimationStart:b,onLayoutAnimationComplete:C}=I.getProps(),g=!this.targetLayout||!IF(this.targetLayout,N)||B,w=!F&&B;if(((M=this.resumeFrom)===null||M===void 0?void 0:M.instance)||w||F&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(P,w);const f={...aF(x,"layout"),onPlay:b,onComplete:C};I.shouldReduceMotion&&(f.delay=0,f.type=!1),this.startAnimation(f)}else!F&&this.animationProgress===0&&u2(this),this.isLead()&&((L=(O=this.options).onExitComplete)===null||L===void 0||L.call(O));this.targetLayout=N})}unmount(){var a,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Is.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(zQ),this.animationId++)}willUpdate(a=!0){var c,u,d;if(this.root.isUpdateBlocked()){(u=(c=this.options).onExitComplete)===null||u===void 0||u.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let F=0;F{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{var O;const L=M/1e3;d2(F.x,a.x,L),d2(F.y,a.y,L),this.setTargetDelta(F),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((O=this.relativeParent)===null||O===void 0?void 0:O.layout)&&(Md(B,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GQ(this.relativeTarget,this.relativeTargetOrigin,B,L)),N&&(this.animationValues=P,kQ(P,I,this.latestValues,L,T,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(0)}startAnimation(a){var c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(Is.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xi.update(()=>{Td.hasAnimatedSinceResize=!0,this.currentAnimation=AQ(0,l2,{...a,onUpdate:d=>{var p;this.mixTargetDelta(d),(p=a.onUpdate)===null||p===void 0||p.call(a,d)},onComplete:()=>{var d;(d=a.onComplete)===null||d===void 0||d.call(a),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,l2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&_F(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||xr();const I=Ni(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+I;const P=Ni(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+P}ho(c,u),fc(c,p),Od(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){var u,d,p;this.sharedNodes.has(a)||this.sharedNodes.set(a,new OQ),this.sharedNodes.get(a).add(c),c.promote({transition:(u=c.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(d,c)})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const d={};for(let p=0;p{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(c2),this.root.sharedNodes.clear()}}}function $Q(e){e.updateLayout()}function NQ(e){var t,n,r;const i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=e.layout,{animationType:c}=e.options,u=i.source!==e.layout.source;c==="size"?Lo(F=>{const B=u?i.measuredBox[F]:i.layoutBox[F],N=Ni(B);B.min=o[F].min,B.max=B.min+N}):_F(c,i.layoutBox,o)&&Lo(F=>{const B=u?i.measuredBox[F]:i.layoutBox[F],N=Ni(o[F]);B.max=B.min+N});const d=Ld();Od(d,o,i.layoutBox);const p=Ld();u?Od(p,e.applyTransform(a,!0),i.measuredBox):Od(p,o,i.layoutBox);const I=!AF(d);let P=!1;if(!e.resumeFrom){const F=e.getClosestProjectingParent();if(F&&!F.resumeFrom){const{snapshot:B,layout:N}=F;if(B&&N){const D=xr();Md(D,i.layoutBox,B.layoutBox);const T=xr();Md(T,o,N.layoutBox),IF(D,T)||(P=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:d,hasLayoutChanged:I,hasRelativeTargetChanged:P})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function FQ(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function BQ(e){e.clearSnapshot()}function c2(e){e.clearMeasurements()}function WQ(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function u2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function HQ(e){e.resolveTargetDelta()}function VQ(e){e.calcProjection()}function zQ(e){e.resetRotation()}function jQ(e){e.removeLeadSnapshot()}function d2(e,t,n){e.translate=rr(t.translate,0,n),e.scale=rr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function h2(e,t,n,r){e.min=rr(t.min,n.min,r),e.max=rr(t.max,n.max,r)}function GQ(e,t,n,r){h2(e.x,t.x,n.x,r),h2(e.y,t.y,n.y,r)}function YQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZQ={duration:.45,ease:[.4,0,.1,1]};function XQ(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function f2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function UQ(e){f2(e.x),f2(e.y)}function _F(e,t,n){return e==="position"||e==="preserve-aspect"&&!pC(o2(t),o2(n),.2)}const KQ=kF({attachResizeListener:(e,t)=>Yy(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),G0={current:void 0},JQ=kF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!G0.current){const e=new KQ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),G0.current=e}return G0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),QQ={...PJ,...Y7,...QJ,...SQ},aa=G6((e,t)=>S7(e,t,QQ,yQ,JQ));function EF(){const e=de.exports.useRef(!1);return Ed(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qQ(){const e=EF(),[t,n]=de.exports.useState(0),r=de.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[de.exports.useCallback(()=>xi.postRender(r),[r]),t]}class eq extends de.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function tq({children:e,isPresent:t}){const n=de.exports.useId(),r=de.exports.useRef(null),i=de.exports.useRef({width:0,height:0,top:0,left:0});return de.exports.useInsertionEffect(()=>{const{width:o,height:a,top:c,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + )`;return{...!r&&i&&o,...r?{bgImage:c}:{bgColor:a}}},iZ={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},oZ=e=>({bg:jt("gray.100","whiteAlpha.300")(e)}),aZ=e=>({transitionProperty:"common",transitionDuration:"slow",...rZ(e)}),sZ=od(e=>({label:iZ,filledTrack:aZ(e),track:oZ(e)})),lZ={xs:od({track:{h:"1"}}),sm:od({track:{h:"2"}}),md:od({track:{h:"3"}}),lg:od({track:{h:"4"}})},cZ=nZ({sizes:lZ,baseStyle:sZ,defaultProps:{size:"md",colorScheme:"blue"}}),uZ=e=>typeof e=="function";function li(e,...t){return uZ(e)?e(...t):e}var{definePartsStyle:Ip,defineMultiStyleConfig:dZ}=Bn(r9.keys),kd=fn("checkbox-size"),hZ=e=>{const{colorScheme:t}=e;return{w:kd.reference,h:kd.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:jt(`${t}.500`,`${t}.200`)(e),borderColor:jt(`${t}.500`,`${t}.200`)(e),color:jt("white","gray.900")(e),_hover:{bg:jt(`${t}.600`,`${t}.300`)(e),borderColor:jt(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:jt("gray.200","transparent")(e),bg:jt("gray.200","whiteAlpha.300")(e),color:jt("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:jt(`${t}.500`,`${t}.200`)(e),borderColor:jt(`${t}.500`,`${t}.200`)(e),color:jt("white","gray.900")(e)},_disabled:{bg:jt("gray.100","whiteAlpha.100")(e),borderColor:jt("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:jt("red.500","red.300")(e)}}},fZ={_disabled:{cursor:"not-allowed"}},pZ={userSelect:"none",_disabled:{opacity:.4}},gZ={transitionProperty:"transform",transitionDuration:"normal"},mZ=Ip(e=>({icon:gZ,container:fZ,control:li(hZ,e),label:pZ})),vZ={sm:Ip({control:{[kd.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ip({control:{[kd.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ip({control:{[kd.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},rm=dZ({baseStyle:mZ,sizes:vZ,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yZ,definePartsStyle:kp}=Bn(g9.keys),bZ=e=>{var t;const n=(t=li(rm.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},xZ=kp(e=>{var t,n,r,i;return{label:(n=(t=rm).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=rm).baseStyle)==null?void 0:i.call(r,e).container,control:bZ(e)}}),wZ={md:kp({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:kp({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:kp({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},CZ=yZ({baseStyle:xZ,sizes:wZ,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:SZ,definePartsStyle:AZ}=Bn(m9.keys),Wf=fn("select-bg"),YE,IZ={...(YE=wn.baseStyle)==null?void 0:YE.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Wf.reference,[Wf.variable]:"colors.white",_dark:{[Wf.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Wf.reference}},kZ={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},_Z=AZ({field:IZ,icon:kZ}),Hf={paddingInlineEnd:"8"},ZE,XE,UE,KE,JE,QE,qE,eT,EZ={lg:{...(ZE=wn.sizes)==null?void 0:ZE.lg,field:{...(XE=wn.sizes)==null?void 0:XE.lg.field,...Hf}},md:{...(UE=wn.sizes)==null?void 0:UE.md,field:{...(KE=wn.sizes)==null?void 0:KE.md.field,...Hf}},sm:{...(JE=wn.sizes)==null?void 0:JE.sm,field:{...(QE=wn.sizes)==null?void 0:QE.sm.field,...Hf}},xs:{...(qE=wn.sizes)==null?void 0:qE.xs,field:{...(eT=wn.sizes)==null?void 0:eT.xs.field,...Hf},icon:{insetEnd:"1"}}},TZ=SZ({baseStyle:_Z,sizes:EZ,variants:wn.variants,defaultProps:wn.defaultProps}),x0=fn("skeleton-start-color"),w0=fn("skeleton-end-color"),PZ={[x0.variable]:"colors.gray.100",[w0.variable]:"colors.gray.400",_dark:{[x0.variable]:"colors.gray.800",[w0.variable]:"colors.gray.600"},background:x0.reference,borderColor:w0.reference,opacity:.7,borderRadius:"sm"},RZ={baseStyle:PZ},C0=fn("skip-link-bg"),OZ={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[C0.variable]:"colors.white",_dark:{[C0.variable]:"colors.gray.700"},bg:C0.reference}},MZ={baseStyle:OZ},{defineMultiStyleConfig:LZ,definePartsStyle:Wy}=Bn(v9.keys),dh=fn("slider-thumb-size"),hh=fn("slider-track-size"),ss=fn("slider-bg"),DZ=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...QA({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},$Z=e=>({...QA({orientation:e.orientation,horizontal:{h:hh.reference},vertical:{w:hh.reference}}),overflow:"hidden",borderRadius:"sm",[ss.variable]:"colors.gray.200",_dark:{[ss.variable]:"colors.whiteAlpha.200"},_disabled:{[ss.variable]:"colors.gray.300",_dark:{[ss.variable]:"colors.whiteAlpha.300"}},bg:ss.reference}),NZ=e=>{const{orientation:t}=e;return{...QA({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:dh.reference,h:dh.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},FZ=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ss.variable]:`colors.${t}.500`,_dark:{[ss.variable]:`colors.${t}.200`},bg:ss.reference}},BZ=Wy(e=>({container:DZ(e),track:$Z(e),thumb:NZ(e),filledTrack:FZ(e)})),WZ=Wy({container:{[dh.variable]:"sizes.4",[hh.variable]:"sizes.1"}}),HZ=Wy({container:{[dh.variable]:"sizes.3.5",[hh.variable]:"sizes.1"}}),VZ=Wy({container:{[dh.variable]:"sizes.2.5",[hh.variable]:"sizes.0.5"}}),zZ={lg:WZ,md:HZ,sm:VZ},jZ=LZ({baseStyle:BZ,sizes:zZ,defaultProps:{size:"md",colorScheme:"blue"}}),Xs=Ir("spinner-size"),GZ={width:[Xs.reference],height:[Xs.reference]},YZ={xs:{[Xs.variable]:"sizes.3"},sm:{[Xs.variable]:"sizes.4"},md:{[Xs.variable]:"sizes.6"},lg:{[Xs.variable]:"sizes.8"},xl:{[Xs.variable]:"sizes.12"}},ZZ={baseStyle:GZ,sizes:YZ,defaultProps:{size:"md"}},{defineMultiStyleConfig:XZ,definePartsStyle:B$}=Bn(y9.keys),UZ={fontWeight:"medium"},KZ={opacity:.8,marginBottom:"2"},JZ={verticalAlign:"baseline",fontWeight:"semibold"},QZ={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},qZ=B$({container:{},label:UZ,helpText:KZ,number:JZ,icon:QZ}),eX={md:B$({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},tX=XZ({baseStyle:qZ,sizes:eX,defaultProps:{size:"md"}}),S0=fn("kbd-bg"),nX={[S0.variable]:"colors.gray.100",_dark:{[S0.variable]:"colors.whiteAlpha.100"},bg:S0.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},rX={baseStyle:nX},iX={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},oX={baseStyle:iX},{defineMultiStyleConfig:aX,definePartsStyle:sX}=Bn(c9.keys),lX={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},cX=sX({icon:lX}),uX=aX({baseStyle:cX}),{defineMultiStyleConfig:dX,definePartsStyle:hX}=Bn(u9.keys),Do=fn("menu-bg"),A0=fn("menu-shadow"),fX={[Do.variable]:"#fff",[A0.variable]:"shadows.sm",_dark:{[Do.variable]:"colors.gray.700",[A0.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Do.reference,boxShadow:A0.reference},pX={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Do.variable]:"colors.gray.100",_dark:{[Do.variable]:"colors.whiteAlpha.100"}},_active:{[Do.variable]:"colors.gray.200",_dark:{[Do.variable]:"colors.whiteAlpha.200"}},_expanded:{[Do.variable]:"colors.gray.100",_dark:{[Do.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Do.reference},gX={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},mX={opacity:.6},vX={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},yX={transitionProperty:"common",transitionDuration:"normal"},bX=hX({button:yX,list:fX,item:pX,groupTitle:gX,command:mX,divider:vX}),xX=dX({baseStyle:bX}),{defineMultiStyleConfig:wX,definePartsStyle:eC}=Bn(d9.keys),I0=fn("modal-bg"),k0=fn("modal-shadow"),CX={bg:"blackAlpha.600",zIndex:"modal"},SX=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},AX=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,[I0.variable]:"colors.white",[k0.variable]:"shadows.lg",_dark:{[I0.variable]:"colors.gray.700",[k0.variable]:"shadows.dark-lg"},bg:I0.reference,boxShadow:k0.reference}},IX={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},kX={position:"absolute",top:"2",insetEnd:"3"},_X=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},EX={px:"6",py:"4"},TX=eC(e=>({overlay:CX,dialogContainer:li(SX,e),dialog:li(AX,e),header:IX,closeButton:kX,body:li(_X,e),footer:EX}));function uo(e){return eC(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var PX={xs:uo("xs"),sm:uo("sm"),md:uo("md"),lg:uo("lg"),xl:uo("xl"),"2xl":uo("2xl"),"3xl":uo("3xl"),"4xl":uo("4xl"),"5xl":uo("5xl"),"6xl":uo("6xl"),full:uo("full")},RX=wX({baseStyle:TX,sizes:PX,defaultProps:{size:"md"}}),{defineMultiStyleConfig:OX,definePartsStyle:W$}=Bn(h9.keys),eI=Ir("number-input-stepper-width"),H$=Ir("number-input-input-padding"),MX=va(eI).add("0.5rem").toString(),_0=Ir("number-input-bg"),E0=Ir("number-input-color"),T0=Ir("number-input-border-color"),LX={[eI.variable]:"sizes.6",[H$.variable]:MX},DX=e=>{var t,n;return(n=(t=li(wn.baseStyle,e))==null?void 0:t.field)!=null?n:{}},$X={width:eI.reference},NX={borderStart:"1px solid",borderStartColor:T0.reference,color:E0.reference,bg:_0.reference,[E0.variable]:"colors.chakra-body-text",[T0.variable]:"colors.chakra-border-color",_dark:{[E0.variable]:"colors.whiteAlpha.800",[T0.variable]:"colors.whiteAlpha.300"},_active:{[_0.variable]:"colors.gray.200",_dark:{[_0.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},FX=W$(e=>{var t;return{root:LX,field:(t=li(DX,e))!=null?t:{},stepperGroup:$X,stepper:NX}});function Vf(e){var t,n,r;const i=(t=wn.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",c=M$.fontSizes[a];return W$({field:{...i.field,paddingInlineEnd:H$.reference,verticalAlign:"top"},stepper:{fontSize:va(c).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var BX={xs:Vf("xs"),sm:Vf("sm"),md:Vf("md"),lg:Vf("lg")},WX=OX({baseStyle:FX,sizes:BX,variants:wn.variants,defaultProps:wn.defaultProps}),tT,HX={...(tT=wn.baseStyle)==null?void 0:tT.field,textAlign:"center"},VX={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},nT,rT,zX={outline:e=>{var t,n,r;return(r=(n=li((t=wn.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=li((t=wn.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=li((t=wn.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(rT=(nT=wn.variants)==null?void 0:nT.unstyled.field)!=null?rT:{}},jX={baseStyle:HX,sizes:VX,variants:zX,defaultProps:wn.defaultProps},{defineMultiStyleConfig:GX,definePartsStyle:YX}=Bn(f9.keys),zf=Ir("popper-bg"),ZX=Ir("popper-arrow-bg"),iT=Ir("popper-arrow-shadow-color"),XX={zIndex:10},UX={[zf.variable]:"colors.white",bg:zf.reference,[ZX.variable]:zf.reference,[iT.variable]:"colors.gray.200",_dark:{[zf.variable]:"colors.gray.700",[iT.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},KX={px:3,py:2,borderBottomWidth:"1px"},JX={px:3,py:2},QX={px:3,py:2,borderTopWidth:"1px"},qX={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},eU=YX({popper:XX,content:UX,header:KX,body:JX,footer:QX,closeButton:qX}),tU=GX({baseStyle:eU}),{definePartsStyle:tC,defineMultiStyleConfig:nU}=Bn(i9.keys),P0=fn("drawer-bg"),R0=fn("drawer-box-shadow");function Bl(e){return tC(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var rU={bg:"blackAlpha.600",zIndex:"overlay"},iU={display:"flex",zIndex:"modal",justifyContent:"center"},oU=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[P0.variable]:"colors.white",[R0.variable]:"shadows.lg",_dark:{[P0.variable]:"colors.gray.700",[R0.variable]:"shadows.dark-lg"},bg:P0.reference,boxShadow:R0.reference}},aU={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},sU={position:"absolute",top:"2",insetEnd:"3"},lU={px:"6",py:"2",flex:"1",overflow:"auto"},cU={px:"6",py:"4"},uU=tC(e=>({overlay:rU,dialogContainer:iU,dialog:li(oU,e),header:aU,closeButton:sU,body:lU,footer:cU})),dU={xs:Bl("xs"),sm:Bl("md"),md:Bl("lg"),lg:Bl("2xl"),xl:Bl("4xl"),full:Bl("full")},hU=nU({baseStyle:uU,sizes:dU,defaultProps:{size:"xs"}}),{definePartsStyle:fU,defineMultiStyleConfig:pU}=Bn(o9.keys),gU={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mU={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},vU={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},yU=fU({preview:gU,input:mU,textarea:vU}),bU=pU({baseStyle:yU}),{definePartsStyle:xU,defineMultiStyleConfig:wU}=Bn(a9.keys),Tc=fn("form-control-color"),CU={marginStart:"1",[Tc.variable]:"colors.red.500",_dark:{[Tc.variable]:"colors.red.300"},color:Tc.reference},SU={mt:"2",[Tc.variable]:"colors.gray.600",_dark:{[Tc.variable]:"colors.whiteAlpha.600"},color:Tc.reference,lineHeight:"normal",fontSize:"sm"},AU=xU({container:{width:"100%",position:"relative"},requiredIndicator:CU,helperText:SU}),IU=wU({baseStyle:AU}),{definePartsStyle:kU,defineMultiStyleConfig:_U}=Bn(s9.keys),Pc=fn("form-error-color"),EU={[Pc.variable]:"colors.red.500",_dark:{[Pc.variable]:"colors.red.300"},color:Pc.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},TU={marginEnd:"0.5em",[Pc.variable]:"colors.red.500",_dark:{[Pc.variable]:"colors.red.300"},color:Pc.reference},PU=kU({text:EU,icon:TU}),RU=_U({baseStyle:PU}),OU={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},MU={baseStyle:OU},LU={fontFamily:"heading",fontWeight:"bold"},DU={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},$U={baseStyle:LU,sizes:DU,defaultProps:{size:"xl"}},{defineMultiStyleConfig:NU,definePartsStyle:FU}=Bn(n9.keys),BU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},WU=FU({link:BU}),HU=NU({baseStyle:WU}),VU={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},V$=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:jt("inherit","whiteAlpha.900")(e),_hover:{bg:jt("gray.100","whiteAlpha.200")(e)},_active:{bg:jt("gray.200","whiteAlpha.300")(e)}};const r=Kc(`${t}.200`,.12)(n),i=Kc(`${t}.200`,.24)(n);return{color:jt(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:jt(`${t}.50`,r)(e)},_active:{bg:jt(`${t}.100`,i)(e)}}},zU=e=>{const{colorScheme:t}=e,n=jt("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...li(V$,e)}},jU={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},GU=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const u=jt("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:jt("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:jt("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:a=`${n}.700`}=(t=jU[n])!=null?t:{},c=jt(r,`${n}.200`)(e);return{bg:c,color:jt(i,"gray.800")(e),_hover:{bg:jt(o,`${n}.300`)(e),_disabled:{bg:c}},_active:{bg:jt(a,`${n}.400`)(e)}}},YU=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:jt(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:jt(`${t}.700`,`${t}.500`)(e)}}},ZU={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},XU={ghost:V$,outline:zU,solid:GU,link:YU,unstyled:ZU},UU={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},KU={baseStyle:VU,variants:XU,sizes:UU,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:sl,defineMultiStyleConfig:JU}=Bn(S9.keys),im=fn("card-bg"),Aa=fn("card-padding"),z$=fn("card-shadow"),_p=fn("card-radius"),j$=fn("card-border-width","0"),G$=fn("card-border-color"),QU=sl({container:{[im.variable]:"colors.chakra-body-bg",backgroundColor:im.reference,boxShadow:z$.reference,borderRadius:_p.reference,color:"chakra-body-text",borderWidth:j$.reference,borderColor:G$.reference},body:{padding:Aa.reference,flex:"1 1 0%"},header:{padding:Aa.reference},footer:{padding:Aa.reference}}),qU={sm:sl({container:{[_p.variable]:"radii.base",[Aa.variable]:"space.3"}}),md:sl({container:{[_p.variable]:"radii.md",[Aa.variable]:"space.5"}}),lg:sl({container:{[_p.variable]:"radii.xl",[Aa.variable]:"space.7"}})},eK={elevated:sl({container:{[z$.variable]:"shadows.base",_dark:{[im.variable]:"colors.gray.700"}}}),outline:sl({container:{[j$.variable]:"1px",[G$.variable]:"colors.chakra-border-color"}}),filled:sl({container:{[im.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Aa.variable]:0},header:{[Aa.variable]:0},footer:{[Aa.variable]:0}}},tK=JU({baseStyle:QU,variants:eK,sizes:qU,defaultProps:{variant:"elevated",size:"md"}}),_d=Ir("close-button-size"),Bu=Ir("close-button-bg"),nK={w:[_d.reference],h:[_d.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Bu.variable]:"colors.blackAlpha.100",_dark:{[Bu.variable]:"colors.whiteAlpha.100"}},_active:{[Bu.variable]:"colors.blackAlpha.200",_dark:{[Bu.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Bu.reference},rK={lg:{[_d.variable]:"sizes.10",fontSize:"md"},md:{[_d.variable]:"sizes.8",fontSize:"xs"},sm:{[_d.variable]:"sizes.6",fontSize:"2xs"}},iK={baseStyle:nK,sizes:rK,defaultProps:{size:"md"}},{variants:oK,defaultProps:aK}=Id,sK={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:lr.bg.reference,color:lr.color.reference,boxShadow:lr.shadow.reference},lK={baseStyle:sK,variants:oK,defaultProps:aK},cK={w:"100%",mx:"auto",maxW:"prose",px:"4"},uK={baseStyle:cK},dK={opacity:.6,borderColor:"inherit"},hK={borderStyle:"solid"},fK={borderStyle:"dashed"},pK={solid:hK,dashed:fK},gK={baseStyle:dK,variants:pK,defaultProps:{variant:"solid"}},{definePartsStyle:mK,defineMultiStyleConfig:vK}=Bn(q4.keys),yK={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},bK={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},xK={pt:"2",px:"4",pb:"5"},wK={fontSize:"1.25em"},CK=mK({container:yK,button:bK,panel:xK,icon:wK}),SK=vK({baseStyle:CK}),{definePartsStyle:qh,defineMultiStyleConfig:AK}=Bn(e9.keys),Di=fn("alert-fg"),La=fn("alert-bg"),IK=qh({container:{bg:La.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Di.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Di.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function tI(e){const{theme:t,colorScheme:n}=e,r=Kc(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var kK=qh(e=>{const{colorScheme:t}=e,n=tI(e);return{container:{[Di.variable]:`colors.${t}.500`,[La.variable]:n.light,_dark:{[Di.variable]:`colors.${t}.200`,[La.variable]:n.dark}}}}),_K=qh(e=>{const{colorScheme:t}=e,n=tI(e);return{container:{[Di.variable]:`colors.${t}.500`,[La.variable]:n.light,_dark:{[Di.variable]:`colors.${t}.200`,[La.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Di.reference}}}),EK=qh(e=>{const{colorScheme:t}=e,n=tI(e);return{container:{[Di.variable]:`colors.${t}.500`,[La.variable]:n.light,_dark:{[Di.variable]:`colors.${t}.200`,[La.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Di.reference}}}),TK=qh(e=>{const{colorScheme:t}=e;return{container:{[Di.variable]:"colors.white",[La.variable]:`colors.${t}.500`,_dark:{[Di.variable]:"colors.gray.900",[La.variable]:`colors.${t}.200`},color:Di.reference}}}),PK={subtle:kK,"left-accent":_K,"top-accent":EK,solid:TK},RK=AK({baseStyle:IK,variants:PK,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Y$,defineMultiStyleConfig:OK}=Bn(t9.keys),Rc=fn("avatar-border-color"),O0=fn("avatar-bg"),MK={borderRadius:"full",border:"0.2em solid",[Rc.variable]:"white",_dark:{[Rc.variable]:"colors.gray.800"},borderColor:Rc.reference},LK={[O0.variable]:"colors.gray.200",_dark:{[O0.variable]:"colors.whiteAlpha.400"},bgColor:O0.reference},oT=fn("avatar-background"),DK=e=>{const{name:t,theme:n}=e,r=t?z9({string:t}):"colors.gray.400",i=H9(r)(n);let o="white";return i||(o="gray.800"),{bg:oT.reference,"&:not([data-loaded])":{[oT.variable]:r},color:o,[Rc.variable]:"colors.white",_dark:{[Rc.variable]:"colors.gray.800"},borderColor:Rc.reference,verticalAlign:"top"}},$K=Y$(e=>({badge:li(MK,e),excessLabel:li(LK,e),container:li(DK,e)}));function Za(e){const t=e!=="100%"?D$[e]:void 0;return Y$({container:{width:e,height:e,fontSize:`calc(${t!=null?t:e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t!=null?t:e} / 2.5)`,lineHeight:e!=="100%"?t!=null?t:e:void 0}})}var NK={"2xs":Za(4),xs:Za(6),sm:Za(8),md:Za(12),lg:Za(16),xl:Za(24),"2xl":Za(32),full:Za("100%")},FK=OK({baseStyle:$K,sizes:NK,defaultProps:{size:"md"}}),BK={Accordion:SK,Alert:RK,Avatar:FK,Badge:Id,Breadcrumb:HU,Button:KU,Checkbox:rm,CloseButton:iK,Code:lK,Container:uK,Divider:gK,Drawer:hU,Editable:bU,Form:IU,FormError:RU,FormLabel:MU,Heading:$U,Input:wn,Kbd:rX,Link:oX,List:uX,Menu:xX,Modal:RX,NumberInput:WX,PinInput:jX,Popover:tU,Progress:cZ,Radio:CZ,Select:TZ,Skeleton:RZ,SkipLink:MZ,Slider:jZ,Spinner:ZZ,Stat:tX,Switch:oY,Table:hY,Tabs:_Y,Tag:WY,Textarea:QY,Tooltip:tZ,Card:tK},Z$={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},X$={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},U$="ltr",K$={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},J$={semanticTokens:Z$,direction:U$,...$$,components:BK,styles:X$,config:K$};({...$$});function ad(e){return typeof e=="function"}function WK(...e){return t=>e.reduce((n,r)=>r(n),t)}var HK=e=>function(...n){let r=[...n],i=n[n.length-1];return T4(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,WK(...r.map(o=>a=>ad(o)?o(a):VK(a,o)))(i)},ake=HK(J$);function VK(...e){return Ji({},...e,Q$)}function Q$(e,t,n,r){if((ad(e)||ad(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=ad(e)?e(...i):e,a=ad(t)?t(...i):t;return Ji({},o,a,Q$)}}function zK(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function q$(e){var t;return zK(e)&&(t=e.ownerDocument)!=null?t:document}function jK(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var GK=jK();function YK(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function ZK(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const c=t.get(r);if(c.has(i))return c.get(i);const u=e(r,i,o,a);return c.set(i,u),u}},eN=XK(ZK);function tN(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var nN=e=>tN(e,t=>t!=null);function UK(e){return typeof e=="function"}function rN(e,...t){return UK(e)?e(...t):e}function KK(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}const iN=1/60*1e3,JK=typeof performance<"u"?()=>performance.now():()=>Date.now(),oN=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(JK()),iN);function QK(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const I=p&&i,P=I?t:n;return d&&a.add(u),P.indexOf(u)===-1&&(P.push(u),I&&i&&(r=t.length)),u},cancel:u=>{const d=n.indexOf(u);d!==-1&&n.splice(d,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d(e[t]=QK(()=>fh=!0),e),{}),e6=ef.reduce((e,t)=>{const n=Hy[t];return e[t]=(r,i=!1,o=!1)=>(fh||r6(),n.schedule(r,i,o)),e},{}),t6=ef.reduce((e,t)=>(e[t]=Hy[t].cancel,e),{});ef.reduce((e,t)=>(e[t]=()=>Hy[t].process(Oc),e),{});const n6=e=>Hy[e].process(Oc),aN=e=>{fh=!1,Oc.delta=nC?iN:Math.max(Math.min(e-Oc.timestamp,qK),1),Oc.timestamp=e,rC=!0,ef.forEach(n6),rC=!1,fh&&(nC=!1,oN(aN))},r6=()=>{fh=!0,nC=!0,rC||oN(aN)},aT=()=>Oc;var i6=typeof Element<"u",o6=typeof Map=="function",a6=typeof Set=="function",s6=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ep(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ep(e[r],t[r]))return!1;return!0}var o;if(o6&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ep(r.value[1],t.get(r.value[0])))return!1;return!0}if(a6&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(s6&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(i6&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ep(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var sN=function(t,n){try{return Ep(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};function lN(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:o,colorMode:a}=k$(),c=e?eN(o,`components.${e}`):void 0,u=r||c,d=Ji({theme:o,colorMode:a},(n=u==null?void 0:u.defaultProps)!=null?n:{},nN(YK(i,["children"]))),p=de.exports.useRef({});if(u){const P=k4(u)(d);sN(p.current,P)||(p.current=P)}return p.current}function Eo(e,t={}){return lN(e,t)}function zr(e,t={}){return lN(e,t)}var l6=new Set([...p4,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),c6=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function u6(e){return c6.has(e)||!l6.has(e)}function nI(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function d6(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)!Object.prototype.hasOwnProperty.call(r,i)||(i in n&&delete n[i],n[i]=r[i]);return n}var h6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,f6=aL(function(e){return h6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),p6=f6,g6=function(t){return t!=="theme"},sT=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?p6:g6},lT=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},m6=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hL(n,r,i),LV(function(){return fL(n,r,i)}),null},v6=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 c=lT(t,n,r),u=c||sT(i),d=!u("as");return function(){var p=arguments,I=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&I.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)I.push.apply(I,p);else{I.push(p[0][0]);for(var P=p.length,F=1;Ft=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,c=tN(a,(I,P)=>m4(P)),u=rN(e,t),d=d6({},i,u,nN(c),o),p=O$(d)(t.theme);return r?[p,r]:p};function M0(e,t){const{baseStyle:n,...r}=t!=null?t:{};r.shouldForwardProp||(r.shouldForwardProp=u6);const i=x6({baseStyle:n}),o=b6(e,r)(i);return vt.forwardRef(function(u,d){const{colorMode:p,forced:I}=YA();return Se(o,{ref:d,"data-theme":I?p:void 0,...u})})}function w6(){const e=new Map;return new Proxy(M0,{apply(t,n,r){return M0(...r)},get(t,n){return e.has(n)||e.set(n,M0(n)),e.get(n)}})}var pt=w6();function It(e){return de.exports.forwardRef(e)}function cN(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=de.exports.createContext(void 0);i.displayName=r;function o(){var a;const c=de.exports.useContext(i);if(!c&&t){const u=new Error(n);throw u.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,u,o),u}return c}return[i.Provider,o,i]}function C6(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=de.exports.useMemo(()=>d4(n),[n]);return At(NV,{theme:i,children:[Se(S6,{root:t}),r]})}function S6({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return Se(by,{styles:n=>({[t]:n.__cssVars})})}cN({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function A6(e){return cN({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function I6(){const{colorMode:e}=YA();return Se(by,{styles:t=>{const n=eN(t,"styles.global"),r=rN(n,{theme:t,colorMode:e});return r?O$(r)(t):void 0}})}var rI=de.exports.createContext({getDocument(){return document},getWindow(){return window}});rI.displayName="EnvironmentContext";function k6({defer:e}={}){const[,t]=de.exports.useReducer(n=>n+1,0);return Zo(()=>{!e||t()},[e]),de.exports.useContext(rI)}function uN(e){const{children:t,environment:n,disabled:r}=e,i=de.exports.useRef(null),o=de.exports.useMemo(()=>n||{getDocument:()=>{var c,u;return(u=(c=i.current)==null?void 0:c.ownerDocument)!=null?u:document},getWindow:()=>{var c,u;return(u=(c=i.current)==null?void 0:c.ownerDocument.defaultView)!=null?u:window}},[n]),a=!r||!n;return At(rI.Provider,{value:o,children:[t,a&&Se("span",{id:"__chakra_env",hidden:!0,ref:i})]})}uN.displayName="EnvironmentProvider";var _6=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:c,cssVarsRoot:u,disableEnvironment:d}=e,p=Se(uN,{environment:c,disabled:d,children:t});return Se(C6,{theme:a,cssVarsRoot:u,children:At(I$,{colorModeManager:n,options:a.config,children:[o?Se(YV,{scope:i}):Se(GV,{}),Se(I6,{}),r?Se(wL,{zIndex:r,children:p}):p]})})},E6=(e,t)=>e.find(n=>n.id===t);function uT(e,t){const n=dN(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function dN(e,t){for(const[n,r]of Object.entries(e))if(E6(r,t))return n}function T6(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function P6(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:a}}function nr(e,t=[]){const n=de.exports.useRef(e);return de.exports.useEffect(()=>{n.current=e}),de.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function R6(e,t){const n=nr(e);de.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Da(e,t){const n=de.exports.useRef(!1),r=de.exports.useRef(!1);de.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),de.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const iI=de.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vy=de.exports.createContext({});function O6(){return de.exports.useContext(Vy).visualElement}const mu=de.exports.createContext(null),Pl=typeof document<"u",Ed=Pl?de.exports.useLayoutEffect:de.exports.useEffect,hN=de.exports.createContext({strict:!1});function M6(e,t,n,r){const i=O6(),o=de.exports.useContext(hN),a=de.exports.useContext(mu),c=de.exports.useContext(iI).reducedMotion,u=de.exports.useRef();r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current;return Ed(()=>{d&&d.render()}),Ed(()=>{d&&d.animationState&&d.animationState.animateChanges()}),Ed(()=>()=>d&&d.notify("Unmount"),[]),d}function dc(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function L6(e,t,n){return de.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):dc(n)&&(n.current=r))},[t])}function ph(e){return typeof e=="string"||Array.isArray(e)}function zy(e){return typeof e=="object"&&typeof e.start=="function"}const D6=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function jy(e){return zy(e.animate)||D6.some(t=>ph(e[t]))}function fN(e){return Boolean(jy(e)||e.variants)}function $6(e,t){if(jy(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ph(n)?n:void 0,animate:ph(r)?r:void 0}}return e.inherit!==!1?t:{}}function N6(e){const{initial:t,animate:n}=$6(e,de.exports.useContext(Vy));return de.exports.useMemo(()=>({initial:t,animate:n}),[dT(t),dT(n)])}function dT(e){return Array.isArray(e)?e.join(" "):e}const ua=e=>({isEnabled:t=>e.some(n=>!!t[n])}),gh={measureLayout:ua(["layout","layoutId","drag"]),animation:ua(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ua(["exit"]),drag:ua(["drag","dragControls"]),focus:ua(["whileFocus"]),hover:ua(["whileHover","onHoverStart","onHoverEnd"]),tap:ua(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ua(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ua(["whileInView","onViewportEnter","onViewportLeave"])};function F6(e){for(const t in e)t==="projectionNodeConstructor"?gh.projectionNodeConstructor=e[t]:gh[t].Component=e[t]}function Gy(e){const t=de.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Td={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let B6=1;function W6(){return Gy(()=>{if(Td.hasEverUpdated)return B6++})}const oI=de.exports.createContext({});class H6 extends vt.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const pN=de.exports.createContext({}),V6=Symbol.for("motionComponentSymbol");function z6({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&F6(e);function a(u,d){const p={...de.exports.useContext(iI),...u,layoutId:j6(u)},{isStatic:I}=p;let P=null;const F=N6(u),B=I?void 0:W6(),N=i(u,I);if(!I&&Pl){F.visualElement=M6(o,N,p,t);const D=de.exports.useContext(hN).strict,T=de.exports.useContext(pN);F.visualElement&&(P=F.visualElement.loadFeatures(p,D,e,B,n||gh.projectionNodeConstructor,T))}return At(H6,{visualElement:F.visualElement,props:p,children:[P,Se(Vy.Provider,{value:F,children:r(o,u,B,L6(N,F.visualElement,d),N,I,F.visualElement)})]})}const c=de.exports.forwardRef(a);return c[V6]=o,c}function j6({layoutId:e}){const t=de.exports.useContext(oI).id;return t&&e!==void 0?t+"-"+e:e}function G6(e){function t(r,i={}){return z6(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Y6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function aI(e){return typeof e!="string"||e.includes("-")?!1:!!(Y6.indexOf(e)>-1||/[A-Z]/.test(e))}const am={};function Z6(e){Object.assign(am,e)}const sm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rl=new Set(sm);function gN(e,{layout:t,layoutId:n}){return Rl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!am[e]||e==="opacity")}const ta=e=>!!(e!=null&&e.getVelocity),X6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U6=(e,t)=>sm.indexOf(e)-sm.indexOf(t);function K6({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";t.sort(U6);for(const c of t)a+=`${X6[c]||c}(${e[c]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}function mN(e){return e.startsWith("--")}const J6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jc=(e,t,n)=>Math.min(Math.max(n,e),t),Ol={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pd={...Ol,transform:e=>Jc(0,1,e)},jf={...Ol,default:1},Rd=e=>Math.round(e*1e5)/1e5,mh=/(-)?([\d]*\.?[\d])+/g,iC=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Q6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tf(e){return typeof e=="string"}const nf=e=>({test:t=>tf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ka=nf("deg"),Jo=nf("%"),Yt=nf("px"),q6=nf("vh"),e7=nf("vw"),hT={...Jo,parse:e=>Jo.parse(e)/100,transform:e=>Jo.transform(e*100)},fT={...Ol,transform:Math.round},vN={borderWidth:Yt,borderTopWidth:Yt,borderRightWidth:Yt,borderBottomWidth:Yt,borderLeftWidth:Yt,borderRadius:Yt,radius:Yt,borderTopLeftRadius:Yt,borderTopRightRadius:Yt,borderBottomRightRadius:Yt,borderBottomLeftRadius:Yt,width:Yt,maxWidth:Yt,height:Yt,maxHeight:Yt,size:Yt,top:Yt,right:Yt,bottom:Yt,left:Yt,padding:Yt,paddingTop:Yt,paddingRight:Yt,paddingBottom:Yt,paddingLeft:Yt,margin:Yt,marginTop:Yt,marginRight:Yt,marginBottom:Yt,marginLeft:Yt,rotate:Ka,rotateX:Ka,rotateY:Ka,rotateZ:Ka,scale:jf,scaleX:jf,scaleY:jf,scaleZ:jf,skew:Ka,skewX:Ka,skewY:Ka,distance:Yt,translateX:Yt,translateY:Yt,translateZ:Yt,x:Yt,y:Yt,z:Yt,perspective:Yt,transformPerspective:Yt,opacity:Pd,originX:hT,originY:hT,originZ:Yt,zIndex:fT,fillOpacity:Pd,strokeOpacity:Pd,numOctaves:fT};function sI(e,t,n,r){const{style:i,vars:o,transform:a,transformKeys:c,transformOrigin:u}=e;c.length=0;let d=!1,p=!1,I=!0;for(const P in t){const F=t[P];if(mN(P)){o[P]=F;continue}const B=vN[P],N=J6(F,B);if(Rl.has(P)){if(d=!0,a[P]=N,c.push(P),!I)continue;F!==(B.default||0)&&(I=!1)}else P.startsWith("origin")?(p=!0,u[P]=N):i[P]=N}if(t.transform||(d||r?i.transform=K6(e,n,I,r):i.transform&&(i.transform="none")),p){const{originX:P="50%",originY:F="50%",originZ:B=0}=u;i.transformOrigin=`${P} ${F} ${B}`}}const lI=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function yN(e,t,n){for(const r in t)!ta(t[r])&&!gN(r,n)&&(e[r]=t[r])}function t7({transformTemplate:e},t,n){return de.exports.useMemo(()=>{const r=lI();return sI(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function n7(e,t,n){const r=e.style||{},i={};return yN(i,r,e),Object.assign(i,t7(e,t,n)),e.transformValues?e.transformValues(i):i}function r7(e,t,n){const r={},i=n7(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=i,r}const i7=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],o7=["whileTap","onTap","onTapStart","onTapCancel"],a7=["onPan","onPanStart","onPanSessionStart","onPanEnd"],s7=["whileInView","onViewportEnter","onViewportLeave","viewport"],l7=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...s7,...o7,...i7,...a7]);function lm(e){return l7.has(e)}let bN=e=>!lm(e);function c7(e){!e||(bN=t=>t.startsWith("on")?!lm(t):e(t))}try{c7(require("@emotion/is-prop-valid").default)}catch{}function u7(e,t,n){const r={};for(const i in e)(bN(i)||n===!0&&lm(i)||!t&&!lm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function pT(e,t,n){return typeof e=="string"?e:Yt.transform(t+n*e)}function d7(e,t,n){const r=pT(t,e.x,e.width),i=pT(n,e.y,e.height);return`${r} ${i}`}const h7={offset:"stroke-dashoffset",array:"stroke-dasharray"},f7={offset:"strokeDashoffset",array:"strokeDasharray"};function p7(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?h7:f7;e[o.offset]=Yt.transform(-r);const a=Yt.transform(t),c=Yt.transform(n);e[o.array]=`${a} ${c}`}function cI(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...u},d,p,I){if(sI(e,u,d,I),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:P,style:F,dimensions:B}=e;P.transform&&(B&&(F.transform=P.transform),delete P.transform),B&&(r!==void 0||i!==void 0||F.transform)&&(F.transformOrigin=d7(B,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(P.x=t),n!==void 0&&(P.y=n),o!==void 0&&p7(P,o,a,c,!1)}const xN=()=>({...lI(),attrs:{}}),uI=e=>typeof e=="string"&&e.toLowerCase()==="svg";function g7(e,t,n,r){const i=de.exports.useMemo(()=>{const o=xN();return cI(o,t,{enableHardwareAcceleration:!1},uI(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};yN(o,e.style,e),i.style={...o,...i.style}}return i}function m7(e=!1){return(n,r,i,o,{latestValues:a},c)=>{const d=(aI(n)?g7:r7)(r,a,c,n),I={...u7(r,typeof n=="string",e),...d,ref:o};return i&&(I["data-projection-id"]=i),de.exports.createElement(n,I)}}const dI=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function wN(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const CN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function SN(e,t,n,r){wN(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(CN.has(i)?i:dI(i),t.attrs[i])}function hI(e){const{style:t}=e,n={};for(const r in t)(ta(t[r])||gN(r,e))&&(n[r]=t[r]);return n}function AN(e){const t=hI(e);for(const n in e)if(ta(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function fI(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}const cm=e=>Array.isArray(e),v7=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),y7=e=>cm(e)?e[e.length-1]||0:e;function Tp(e){const t=ta(e)?e.get():e;return v7(t)?t.toValue():t}function b7({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:x7(r,i,o,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const IN=e=>(t,n)=>{const r=de.exports.useContext(Vy),i=de.exports.useContext(mu),o=()=>b7(e,t,r,i);return n?o():Gy(o)};function x7(e,t,n,r){const i={},o=r(e);for(const P in o)i[P]=Tp(o[P]);let{initial:a,animate:c}=e;const u=jy(e),d=fN(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const I=p?c:a;return I&&typeof I!="boolean"&&!zy(I)&&(Array.isArray(I)?I:[I]).forEach(F=>{const B=fI(e,F);if(!B)return;const{transitionEnd:N,transition:D,...T}=B;for(const M in T){let O=T[M];if(Array.isArray(O)){const L=p?O.length-1:0;O=O[L]}O!==null&&(i[M]=O)}for(const M in N)i[M]=N[M]}),i}const w7={useVisualState:IN({scrapeMotionValuesFromProps:AN,createRenderState:xN,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}cI(n,r,{enableHardwareAcceleration:!1},uI(t.tagName),e.transformTemplate),SN(t,n)}})},C7={useVisualState:IN({scrapeMotionValuesFromProps:hI,createRenderState:lI})};function S7(e,{forwardMotionProps:t=!1},n,r,i){return{...aI(e)?w7:C7,preloadedFeatures:n,useRender:m7(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}}var Mn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Mn||(Mn={}));function Yy(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function oC(e,t,n,r){de.exports.useEffect(()=>{const i=e.current;if(n&&i)return Yy(i,t,n,r)},[e,t,n,r])}function A7({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(Mn.Focus,!0)},i=()=>{n&&n.setActive(Mn.Focus,!1)};oC(t,"focus",e?r:void 0),oC(t,"blur",e?i:void 0)}function kN(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function _N(e){return!!e.touches}function I7(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const k7={pageX:0,pageY:0};function _7(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||k7;return{x:r[t+"X"],y:r[t+"Y"]}}function E7(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function pI(e,t="page"){return{point:_N(e)?_7(e,t):E7(e,t)}}const EN=(e,t=!1)=>{const n=r=>e(r,pI(r));return t?I7(n):n},T7=()=>Pl&&window.onpointerdown===null,P7=()=>Pl&&window.ontouchstart===null,R7=()=>Pl&&window.onmousedown===null,O7={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},M7={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function TN(e){return T7()?e:P7()?M7[e]:R7()?O7[e]:e}function Mc(e,t,n,r){return Yy(e,TN(t),EN(n,t==="pointerdown"),r)}function um(e,t,n,r){return oC(e,TN(t),n&&EN(n,t==="pointerdown"),r)}function PN(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const gT=PN("dragHorizontal"),mT=PN("dragVertical");function RN(e){let t=!1;if(e==="y")t=mT();else if(e==="x")t=gT();else{const n=gT(),r=mT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ON(){const e=RN(!0);return e?(e(),!1):!0}function vT(e,t,n){return(r,i)=>{!kN(r)||ON()||(e.animationState&&e.animationState.setActive(Mn.Hover,t),n&&n(r,i))}}function L7({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){um(r,"pointerenter",e||n?vT(r,!0,e):void 0,{passive:!e}),um(r,"pointerleave",t||n?vT(r,!1,t):void 0,{passive:!t})}const MN=(e,t)=>t?e===t?!0:MN(e,t.parentElement):!1;function gI(e){return de.exports.useEffect(()=>()=>e(),[])}const D7=(e,t)=>n=>t(e(n)),Zy=(...e)=>e.reduce(D7);function $7({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){const o=e||t||n||r,a=de.exports.useRef(!1),c=de.exports.useRef(null),u={passive:!(t||e||n||F)};function d(){c.current&&c.current(),c.current=null}function p(){return d(),a.current=!1,i.animationState&&i.animationState.setActive(Mn.Tap,!1),!ON()}function I(B,N){!p()||(MN(i.current,B.target)?e&&e(B,N):n&&n(B,N))}function P(B,N){!p()||n&&n(B,N)}function F(B,N){d(),!a.current&&(a.current=!0,c.current=Zy(Mc(window,"pointerup",I,u),Mc(window,"pointercancel",P,u)),i.animationState&&i.animationState.setActive(Mn.Tap,!0),t&&t(B,N))}um(i,"pointerdown",o?F:void 0,u),gI(d)}const N7="production",LN=typeof process>"u"||process.env===void 0?N7:"production",yT=new Set;function DN(e,t,n){e||yT.has(t)||(console.warn(t),n&&console.warn(n),yT.add(t))}const aC=new WeakMap,L0=new WeakMap,F7=e=>{const t=aC.get(e.target);t&&t(e)},B7=e=>{e.forEach(F7)};function W7({root:e,...t}){const n=e||document;L0.has(n)||L0.set(n,{});const r=L0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(B7,{root:e,...t})),r[i]}function H7(e,t,n){const r=W7(t);return aC.set(e,n),r.observe(e),()=>{aC.delete(e),r.unobserve(e)}}function V7({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){const o=de.exports.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?G7:j7)(a,o.current,e,i)}const z7={some:0,all:1};function j7(e,t,n,{root:r,margin:i,amount:o="some",once:a}){de.exports.useEffect(()=>{if(!e||!n.current)return;const c={root:r==null?void 0:r.current,rootMargin:i,threshold:typeof o=="number"?o:z7[o]},u=d=>{const{isIntersecting:p}=d;if(t.isInView===p||(t.isInView=p,a&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Mn.InView,p);const I=n.getProps(),P=p?I.onViewportEnter:I.onViewportLeave;P&&P(d)};return H7(n.current,c,u)},[e,r,i,o])}function G7(e,t,n,{fallback:r=!0}){de.exports.useEffect(()=>{!e||!r||(LN!=="production"&&DN(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();i&&i(null),n.animationState&&n.animationState.setActive(Mn.InView,!0)}))},[e])}const ds=e=>t=>(e(t),null),Y7={inView:ds(V7),tap:ds($7),focus:ds(A7),hover:ds(L7)};function mI(){const e=de.exports.useContext(mu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=de.exports.useId();return de.exports.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function Z7(){return X7(de.exports.useContext(mu))}function X7(e){return e===null?!0:e.isPresent}function $N(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(e),K7=e=>/^0[^.\s]+$/.test(e),Ia={delta:0,timestamp:0},NN=1/60*1e3,J7=typeof performance<"u"?()=>performance.now():()=>Date.now(),FN=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(J7()),NN);function Q7(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const I=p&&i,P=I?t:n;return d&&a.add(u),P.indexOf(u)===-1&&(P.push(u),I&&i&&(r=t.length)),u},cancel:u=>{const d=n.indexOf(u);d!==-1&&n.splice(d,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d(e[t]=Q7(()=>vh=!0),e),{}),xi=rf.reduce((e,t)=>{const n=Xy[t];return e[t]=(r,i=!1,o=!1)=>(vh||t8(),n.schedule(r,i,o)),e},{}),Is=rf.reduce((e,t)=>(e[t]=Xy[t].cancel,e),{}),D0=rf.reduce((e,t)=>(e[t]=()=>Xy[t].process(Ia),e),{}),e8=e=>Xy[e].process(Ia),BN=e=>{vh=!1,Ia.delta=sC?NN:Math.max(Math.min(e-Ia.timestamp,q7),1),Ia.timestamp=e,lC=!0,rf.forEach(e8),lC=!1,vh&&(sC=!1,FN(BN))},t8=()=>{vh=!0,sC=!0,lC||FN(BN)};function vI(e,t){e.indexOf(t)===-1&&e.push(t)}function yI(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bI{constructor(){this.subscriptions=[]}add(t){return vI(this.subscriptions,t),()=>yI(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class r8{constructor(t,n={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Ia;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,xi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>xi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=n8(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){return this.events[t]||(this.events[t]=new bI),this.events[t].add(n)}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xI(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function Qc(e,t){return new r8(e,t)}const wI=(e,t)=>n=>Boolean(tf(n)&&Q6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),WN=(e,t,n)=>r=>{if(!tf(r))return r;const[i,o,a,c]=r.match(mh);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},i8=e=>Jc(0,255,e),$0={...Ol,transform:e=>Math.round(i8(e))},qs={test:wI("rgb","red"),parse:WN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$0.transform(e)+", "+$0.transform(t)+", "+$0.transform(n)+", "+Rd(Pd.transform(r))+")"};function o8(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const cC={test:wI("#"),parse:o8,transform:qs.transform},hc={test:wI("hsl","hue"),parse:WN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Jo.transform(Rd(t))+", "+Jo.transform(Rd(n))+", "+Rd(Pd.transform(r))+")"},ni={test:e=>qs.test(e)||cC.test(e)||hc.test(e),parse:e=>qs.test(e)?qs.parse(e):hc.test(e)?hc.parse(e):cC.parse(e),transform:e=>tf(e)?e:e.hasOwnProperty("red")?qs.transform(e):hc.transform(e)},HN="${c}",VN="${n}";function a8(e){var t,n;return isNaN(e)&&tf(e)&&(((t=e.match(mh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(iC))===null||n===void 0?void 0:n.length)||0)>0}function dm(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const i=e.match(iC);i&&(n=i.length,e=e.replace(iC,HN),t.push(...i.map(ni.parse)));const o=e.match(mh);return o&&(r=o.length,e=e.replace(mh,VN),t.push(...o.map(Ol.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function zN(e){return dm(e).values}function jN(e){const{values:t,numColors:n,tokenised:r}=dm(e),i=t.length;return o=>{let a=r;for(let c=0;ctypeof e=="number"?0:e;function l8(e){const t=zN(e);return jN(e)(t.map(s8))}const ks={test:a8,parse:zN,createTransformer:jN,getAnimatableNone:l8},c8=new Set(["brightness","contrast","saturate","opacity"]);function u8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mh)||[];if(!r)return e;const i=n.replace(r,"");let o=c8.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const d8=/([a-z-]*)\(.*?\)/g,uC={...ks,getAnimatableNone:e=>{const t=e.match(d8);return t?t.map(u8).join(" "):e}},h8={...vN,color:ni,backgroundColor:ni,outlineColor:ni,fill:ni,stroke:ni,borderColor:ni,borderTopColor:ni,borderRightColor:ni,borderBottomColor:ni,borderLeftColor:ni,filter:uC,WebkitFilter:uC},CI=e=>h8[e];function SI(e,t){var n;let r=CI(e);return r!==uC&&(r=ks),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const GN=e=>t=>t.test(e),f8={test:e=>e==="auto",parse:e=>e},YN=[Ol,Yt,Jo,Ka,e7,q6,f8],Wu=e=>YN.find(GN(e)),p8=[...YN,ni,ks],g8=e=>p8.find(GN(e));function m8(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function v8(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Uy(e,t,n){const r=e.getProps();return fI(r,t,n!==void 0?n:r.custom,m8(e),v8(e))}function y8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qc(n))}function b8(e,t){const n=Uy(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=y7(o[a]);y8(e,a,c)}}function x8(e,t,n){var r,i;const o=Object.keys(t).filter(c=>!e.hasValue(c)),a=o.length;if(!!a)for(let c=0;c`${e}: ${t}`;function A8(e,t){const{MotionAppearAnimations:n}=window,r=S8(e,Rl.has(t)?"transform":t),i=n&&n.get(r);return i?(xi.render(()=>{try{i.cancel(),n.delete(r)}catch{}}),i.currentTime||0):0}const I8="framerAppearId",k8="data-"+dI(I8);var _8=function(){},fm=function(){};const Pp=e=>e*1e3,E8={current:!1},AI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,II=e=>t=>1-e(1-t),kI=e=>e*e,T8=II(kI),_I=AI(kI),rr=(e,t,n)=>-n*e+n*t+e;function N0(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 P8({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=N0(u,c,e+1/3),o=N0(u,c,e),a=N0(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const F0=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},R8=[cC,qs,hc],O8=e=>R8.find(t=>t.test(e));function bT(e){const t=O8(e);let n=t.parse(e);return t===hc&&(n=P8(n)),n}const ZN=(e,t)=>{const n=bT(e),r=bT(t),i={...n};return o=>(i.red=F0(n.red,r.red,o),i.green=F0(n.green,r.green,o),i.blue=F0(n.blue,r.blue,o),i.alpha=rr(n.alpha,r.alpha,o),qs.transform(i))};function XN(e,t){return typeof e=="number"?n=>rr(e,t,n):ni.test(e)?ZN(e,t):KN(e,t)}const UN=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>XN(o,t[a]));return o=>{for(let a=0;a{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=XN(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},KN=(e,t)=>{const n=ks.createTransformer(t),r=dm(e),i=dm(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Zy(UN(r.values,i.values),n):a=>`${a>0?t:e}`},pm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xT=(e,t)=>n=>rr(e,t,n);function L8(e){return typeof e=="number"?xT:typeof e=="string"?ni.test(e)?ZN:KN:Array.isArray(e)?UN:typeof e=="object"?M8:xT}function D8(e,t,n){const r=[],i=n||L8(e[0]),o=e.length-1;for(let a=0;ae[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=D8(t,r,i),c=a.length,u=d=>{let p=0;if(c>1)for(;pu(Jc(e[0],e[o-1],d)):u}const EI=e=>e,QN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$8=1e-7,N8=12;function F8(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=QN(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>$8&&++cF8(o,0,1,e,n);return o=>o===0||o===1?o:QN(i(o),t,r)}const eF=e=>1-Math.sin(Math.acos(e)),TI=II(eF),B8=AI(TI),tF=qN(.33,1.53,.69,.99),PI=II(tF),W8=AI(PI),H8=e=>(e*=2)<1?.5*PI(e):.5*(2-Math.pow(2,-10*(e-1))),V8={linear:EI,easeIn:kI,easeInOut:_I,easeOut:T8,circIn:eF,circInOut:B8,circOut:TI,backIn:PI,backInOut:W8,backOut:tF,anticipate:H8},wT=e=>{if(Array.isArray(e)){fm(e.length===4);const[t,n,r,i]=e;return qN(t,n,r,i)}else if(typeof e=="string")return V8[e];return e},z8=e=>Array.isArray(e)&&typeof e[0]!="number";function j8(e,t){return e.map(()=>t||_I).splice(0,e.length-1)}function G8(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function Y8(e,t){return e.map(n=>n*t)}function gm({keyframes:e,ease:t=_I,times:n,duration:r=300}){e=[...e];const i=gm[0],o=z8(t)?t.map(wT):wT(t),a={done:!1,value:i},c=Y8(n&&n.length===gm.length?n:G8(e),r);function u(){return JN(c,e,{ease:Array.isArray(o)?o:j8(e,o)})}let d=u();return{next:p=>(a.value=d(p),a.done=p>=r,a),flipTarget:()=>{e.reverse(),d=u()}}}const B0=.001,Z8=.01,CT=10,X8=.05,U8=1;function K8({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;_8(e<=CT*1e3);let a=1-t;a=Jc(X8,U8,a),e=Jc(Z8,CT,e/1e3),a<1?(i=d=>{const p=d*a,I=p*e,P=p-n,F=dC(d,a),B=Math.exp(-I);return B0-P/F*B},o=d=>{const I=d*a*e,P=I*n+n,F=Math.pow(a,2)*Math.pow(d,2)*e,B=Math.exp(-I),N=dC(Math.pow(d,2),a);return(-i(d)+B0>0?-1:1)*((P-F)*B)/N}):(i=d=>{const p=Math.exp(-d*e),I=(d-n)*e+1;return-B0+p*I},o=d=>{const p=Math.exp(-d*e),I=(n-d)*(e*e);return p*I});const c=5/e,u=Q8(i,o,c);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const J8=12;function Q8(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function tJ(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ST(e,eJ)&&ST(e,q8)){const n=K8(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const nJ=5;function nF({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let i=e[0],o=e[e.length-1];const a={done:!1,value:i},{stiffness:c,damping:u,mass:d,velocity:p,duration:I,isResolvedFromDuration:P}=tJ(r);let F=rJ,B=p?-(p/1e3):0;const N=u/(2*Math.sqrt(c*d));function D(){const T=o-i,M=Math.sqrt(c/d)/1e3;if(n===void 0&&(n=Math.min(Math.abs(o-i)/100,.4)),N<1){const O=dC(M,N);F=L=>{const x=Math.exp(-N*M*L);return o-x*((B+N*M*T)/O*Math.sin(O*L)+T*Math.cos(O*L))}}else if(N===1)F=O=>o-Math.exp(-M*O)*(T+(B+M*T)*O);else{const O=M*Math.sqrt(N*N-1);F=L=>{const x=Math.exp(-N*M*L),b=Math.min(O*L,300);return o-x*((B+N*M*T)*Math.sinh(b)+O*T*Math.cosh(b))/O}}}return D(),{next:T=>{const M=F(T);if(P)a.done=T>=I;else{let O=B;if(T!==0)if(N<1){const b=Math.max(0,T-nJ);O=xI(M-F(b),T-b)}else O=0;const L=Math.abs(O)<=t,x=Math.abs(o-M)<=n;a.done=L&&x}return a.value=a.done?o:M,a},flipTarget:()=>{B=-B,[i,o]=[o,i],D()}}}nF.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const rJ=e=>0;function iJ({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a=e[0],c={done:!1,value:a};let u=n*t;const d=a+u,p=o===void 0?d:o(d);return p!==d&&(u=p-a),{next:I=>{const P=-u*Math.exp(-I/r);return c.done=!(P>i||P<-i),c.value=c.done?p:p+P,c},flipTarget:()=>{}}}const oJ={decay:iJ,keyframes:gm,tween:gm,spring:nF};function rF(e,t,n=0){return e-t-n}function aJ(e,t=0,n=0,r=!0){return r?rF(t+-e,t,n):t-(e-t)+n}function sJ(e,t,n,r){return r?e>=t+n:e<=-n}const lJ=e=>{const t=({delta:n})=>e(n);return{start:()=>xi.update(t,!0),stop:()=>Is.update(t)}};function mm({duration:e,driver:t=lJ,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:c=!0,onPlay:u,onStop:d,onComplete:p,onRepeat:I,onUpdate:P,type:F="keyframes",...B}){var N,D;let T,M=0,O=e,L,x=!1,b=!0,C;const g=oJ[a.length>2?"keyframes":F],w=a[0],f=a[a.length-1];!((D=(N=g).needsInterpolation)===null||D===void 0)&&D.call(N,w,f)&&(C=JN([0,100],[w,f],{clamp:!1}),a=[0,100]);const m=g({...B,duration:e,keyframes:a});function E(){M++,i==="reverse"?(b=M%2===0,n=aJ(n,O,o,b)):(n=rF(n,O,o),i==="mirror"&&m.flipTarget()),x=!1,I&&I()}function S(){T.stop(),p&&p()}function y($){if(b||($=-$),n+=$,!x){const z=m.next(Math.max(0,n));L=z.value,C&&(L=C(L)),x=b?z.done:n<=0}P&&P(L),x&&(M===0&&(O=O!==void 0?O:n),M{d&&d(),T.stop()},sample:$=>m.next(Math.max(0,$))}}function cJ(e){return!e||Array.isArray(e)||typeof e=="string"&&iF[e]}const sd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,iF={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sd([0,.65,.55,1]),circOut:sd([.55,0,1,.45]),backIn:sd([.31,.01,.66,-.59]),backOut:sd([.33,1.53,.69,.99])};function uJ(e){if(!!e)return Array.isArray(e)?sd(e):iF[e]}function dJ(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:u}={}){return e.animate({[t]:n,offset:u},{delay:r,duration:i,easing:uJ(c),fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Gf=10;function hJ(e,t,{onUpdate:n,onComplete:r,...i}){let{keyframes:o,duration:a=.3,elapsed:c=0,ease:u}=i;if(i.type==="spring"||!cJ(i.ease)){const p=mm(i);let I={done:!1,value:o[0]};const P=[];let F=0;for(;!I.done;)I=p.sample(F),P.push(I.value),F+=Gf;o=P,a=F-Gf,u="linear"}const d=dJ(e.owner.current,t,o,{...i,delay:-c,duration:a,ease:u});return d.onfinish=()=>{e.set(o[o.length-1]),r&&r()},()=>{const{currentTime:p}=d;if(p){const I=mm(i);e.setWithVelocity(I.sample(p-Gf).value,I.sample(p).value,Gf)}xi.update(()=>d.cancel())}}function oF(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Is.read(r),e(o-t))};return xi.read(r,!0),()=>Is.read(r)}function fJ({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),()=>{});return t?oF(i,-t):i()}function pJ({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:c=10,restDelta:u=1,modifyTarget:d,driver:p,onUpdate:I,onComplete:P,onStop:F}){const B=e[0];let N;function D(L){return n!==void 0&&Lr}function T(L){return n===void 0?r:r===void 0||Math.abs(n-L){var b;I==null||I(x),(b=L.onUpdate)===null||b===void 0||b.call(L,x)},onComplete:P,onStop:F})}function O(L){M({type:"spring",stiffness:a,damping:c,restDelta:u,...L})}if(D(B))O({velocity:t,keyframes:[B,T(B)]});else{let L=i*t+B;typeof d<"u"&&(L=d(L));const x=T(L),b=x===n?-1:1;let C,g;const w=f=>{C=g,g=f,t=xI(f-C,Ia.delta),(b===1&&f>x||b===-1&&fN==null?void 0:N.stop()}}const Hs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Yf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),W0=()=>({type:"keyframes",ease:"linear",duration:.3}),gJ={type:"keyframes",duration:.8},AT={x:Hs,y:Hs,z:Hs,rotate:Hs,rotateX:Hs,rotateY:Hs,rotateZ:Hs,scaleX:Yf,scaleY:Yf,scale:Yf,opacity:W0,backgroundColor:W0,color:W0,default:Yf},mJ=(e,{keyframes:t})=>t.length>2?gJ:(AT[e]||AT.default)(t[1]),hC=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&ks.test(t)&&!t.startsWith("url("));function vJ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,...d}){return!!Object.keys(d).length}function IT(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function kT(e){return typeof e=="number"?0:SI("",e)}function aF(e,t){return e[t]||e.default||e}function yJ(e,t,n,r){const i=hC(t,n);let o=r.from!==void 0?r.from:e.get();return o==="none"&&i&&typeof n=="string"?o=SI(t,n):IT(o)&&typeof n=="string"?o=kT(n):!Array.isArray(n)&&IT(n)&&typeof o=="string"&&(n=kT(o)),Array.isArray(n)?(n[0]===null&&(n[0]=o),n):[o,n]}const _T={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},H0={},sF={};for(const e in _T)sF[e]=()=>(H0[e]===void 0&&(H0[e]=_T[e]()),H0[e]);const bJ=new Set(["opacity"]),RI=(e,t,n,r={})=>i=>{const o=aF(r,e)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Pp(a);const u=yJ(t,e,n,o),d=u[0],p=u[u.length-1],I=hC(e,d),P=hC(e,p);let F={keyframes:u,velocity:t.getVelocity(),...o,elapsed:c,onUpdate:T=>{t.set(T),o.onUpdate&&o.onUpdate(T)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!I||!P||E8.current||o.type===!1)return fJ(F);if(o.type==="inertia"){const T=pJ(F);return()=>T.stop()}vJ(o)||(F={...F,...mJ(e,F)}),F.duration&&(F.duration=Pp(F.duration)),F.repeatDelay&&(F.repeatDelay=Pp(F.repeatDelay));const B=t.owner,N=B&&B.current;if(sF.waapi()&&bJ.has(e)&&!F.repeatDelay&&F.repeatType!=="mirror"&&F.damping!==0&&B&&N instanceof HTMLElement&&!B.getProps().onUpdate)return hJ(t,e,F);{const T=mm(F);return()=>T.stop()}};function xJ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>fC(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=fC(e,t,n);else{const i=typeof t=="function"?Uy(e,t,n.custom):t;r=lF(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))}function fC(e,t,n={}){var r;const i=Uy(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>lF(e,i,n):()=>Promise.resolve(),c=!((r=e.variantChildren)===null||r===void 0)&&r.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:I,staggerDirection:P}=o;return wJ(e,t,p+d,I,P,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,p]=u==="beforeChildren"?[a,c]:[c,a];return d().then(p)}else return Promise.all([a(),c(n.delay)])}function lF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=e.makeTargetAnimatable(t);const d=e.getValue("willChange");r&&(a=r);const p=[],I=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(const P in u){const F=e.getValue(P),B=u[P];if(!F||B===void 0||I&&SJ(I,P))continue;let N={delay:n,elapsed:0,...a};if(e.shouldReduceMotion&&Rl.has(P)&&(N={...N,type:!1,delay:0}),!F.hasAnimated){const T=e.getProps()[k8];T&&(N.elapsed=A8(T,P))}let D=F.start(RI(P,F,B,N));hm(d)&&(d.add(P),D=D.then(()=>d.remove(P))),p.push(D)}return Promise.all(p).then(()=>{c&&b8(e,c)})}function wJ(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(CJ).forEach((d,p)=>{a.push(fC(d,t,{...o,delay:n+u(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function CJ(e,t){return e.sortNodePosition(t)}function SJ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const OI=[Mn.Animate,Mn.InView,Mn.Focus,Mn.Hover,Mn.Tap,Mn.Drag,Mn.Exit],AJ=[...OI].reverse(),IJ=OI.length;function kJ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xJ(e,n,r)))}function _J(e){let t=kJ(e);const n=TJ();let r=!0;const i=(u,d)=>{const p=Uy(e,d);if(p){const{transition:I,transitionEnd:P,...F}=p;u={...u,...F,...P}}return u};function o(u){t=u(e)}function a(u,d){const p=e.getProps(),I=e.getVariantContext(!0)||{},P=[],F=new Set;let B={},N=1/0;for(let T=0;TN&&x;const f=Array.isArray(L)?L:[L];let m=f.reduce(i,{});b===!1&&(m={});const{prevResolvedValues:E={}}=O,S={...E,...m},y=_=>{w=!0,F.delete(_),O.needsAnimating[_]=!0};for(const _ in S){const $=m[_],z=E[_];B.hasOwnProperty(_)||($!==z?cm($)&&cm(z)?!$N($,z)||g?y(_):O.protectedKeys[_]=!0:$!==void 0?y(_):F.add(_):$!==void 0&&F.has(_)?y(_):O.protectedKeys[_]=!0)}O.prevProp=L,O.prevResolvedValues=m,O.isActive&&(B={...B,...m}),r&&e.blockInitialAnimation&&(w=!1),w&&!C&&P.push(...f.map(_=>({animation:_,options:{type:M,...u}})))}if(F.size){const T={};F.forEach(M=>{const O=e.getBaseTarget(M);O!==void 0&&(T[M]=O)}),P.push({animation:T})}let D=Boolean(P.length);return r&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),r=!1,D?t(P):Promise.resolve()}function c(u,d,p){var I;if(n[u].isActive===d)return Promise.resolve();(I=e.variantChildren)===null||I===void 0||I.forEach(F=>{var B;return(B=F.animationState)===null||B===void 0?void 0:B.setActive(u,d)}),n[u].isActive=d;const P=a(p,u);for(const F in n)n[F].protectedKeys={};return P}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function EJ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$N(t,e):!1}function Vs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TJ(){return{[Mn.Animate]:Vs(!0),[Mn.InView]:Vs(),[Mn.Hover]:Vs(),[Mn.Tap]:Vs(),[Mn.Drag]:Vs(),[Mn.Focus]:Vs(),[Mn.Exit]:Vs()}}const PJ={animation:ds(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=_J(e)),zy(t)&&de.exports.useEffect(()=>t.subscribe(e),[t])}),exit:ds(e=>{const{custom:t,visualElement:n}=e,[r,i]=mI(),o=de.exports.useContext(mu);de.exports.useEffect(()=>{n.isPresent=r;const a=n.animationState&&n.animationState.setActive(Mn.Exit,!r,{custom:o&&o.custom||t});a&&!r&&a.then(i)},[r])})},ET=(e,t)=>Math.abs(e-t);function RJ(e,t){const n=ET(e.x,t.x),r=ET(e.y,t.y);return Math.sqrt(n**2+r**2)}class cF{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=z0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,I=RJ(d.offset,{x:0,y:0})>=3;if(!p&&!I)return;const{point:P}=d,{timestamp:F}=Ia;this.history.push({...P,timestamp:F});const{onStart:B,onMove:N}=this.handlers;p||(B&&B(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{if(this.lastMoveEvent=d,this.lastMoveEventInfo=V0(p,this.transformPagePoint),kN(d)&&d.buttons===0){this.handlePointerUp(d,p);return}xi.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:I,onSessionEnd:P}=this.handlers,F=z0(V0(p,this.transformPagePoint),this.history);this.startEvent&&I&&I(d,F),P&&P(d,F)},_N(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const i=pI(t),o=V0(i,this.transformPagePoint),{point:a}=o,{timestamp:c}=Ia;this.history=[{...a,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,z0(o,this.history)),this.removeListeners=Zy(Mc(window,"pointermove",this.handlePointerMove),Mc(window,"pointerup",this.handlePointerUp),Mc(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Is.update(this.updatePoint)}}function V0(e,t){return t?{point:t(e.point)}:e}function TT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function z0({point:e},t){return{point:e,delta:TT(e,uF(t)),offset:TT(e,OJ(t)),velocity:MJ(t,.1)}}function OJ(e){return e[0]}function uF(e){return e[e.length-1]}function MJ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=uF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Pp(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ni(e){return e.max-e.min}function pC(e,t=0,n=.01){return Math.abs(e-t)<=n}function PT(e,t,n,r=.5){e.origin=r,e.originPoint=rr(t.min,t.max,e.origin),e.scale=Ni(n)/Ni(t),(pC(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=rr(n.min,n.max,e.origin)-e.originPoint,(pC(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Od(e,t,n,r){PT(e.x,t.x,n.x,r==null?void 0:r.originX),PT(e.y,t.y,n.y,r==null?void 0:r.originY)}function RT(e,t,n){e.min=n.min+t.min,e.max=e.min+Ni(t)}function LJ(e,t,n){RT(e.x,t.x,n.x),RT(e.y,t.y,n.y)}function OT(e,t,n){e.min=t.min-n.min,e.max=e.min+Ni(t)}function Md(e,t,n){OT(e.x,t.x,n.x),OT(e.y,t.y,n.y)}function DJ(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?rr(n,e,r.max):Math.min(e,n)),e}function MT(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $J(e,{top:t,left:n,bottom:r,right:i}){return{x:MT(e.x,n,i),y:MT(e.y,t,r)}}function LT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=pm(t.min,t.max-r,e.min):r>i&&(n=pm(e.min,e.max-i,t.min)),Jc(0,1,n)}function BJ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const gC=.35;function WJ(e=gC){return e===!1?e=0:e===!0&&(e=gC),{x:DT(e,"left","right"),y:DT(e,"top","bottom")}}function DT(e,t,n){return{min:$T(e,t),max:$T(e,n)}}function $T(e,t){return typeof e=="number"?e:e[t]||0}const NT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ld=()=>({x:NT(),y:NT()}),FT=()=>({min:0,max:0}),xr=()=>({x:FT(),y:FT()});function Lo(e){return[e("x"),e("y")]}function dF({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HJ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VJ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function j0(e){return e===void 0||e===1}function mC({scale:e,scaleX:t,scaleY:n}){return!j0(e)||!j0(t)||!j0(n)}function Gs(e){return mC(e)||hF(e)||e.z||e.rotate||e.rotateX||e.rotateY}function hF(e){return BT(e.x)||BT(e.y)}function BT(e){return e&&e!=="0%"}function vm(e,t,n){const r=e-n,i=t*r;return n+i}function WT(e,t,n,r,i){return i!==void 0&&(e=vm(e,i,r)),vm(e,n,r)+t}function vC(e,t=0,n=1,r,i){e.min=WT(e.min,t,n,r,i),e.max=WT(e.max,t,n,r,i)}function fF(e,{x:t,y:n}){vC(e.x,t.translate,t.scale,t.originPoint),vC(e.y,n.translate,n.scale,n.originPoint)}function zJ(e,t,n,r=!1){var i,o;const a=n.length;if(!a)return;t.x=t.y=1;let c,u;for(let d=0;d1.0000000000001||e<.999999999999?e:1}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function VT(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=rr(e.min,e.max,o);vC(e,t[n],t[r],a,t.scale)}const jJ=["x","scaleX","originX"],GJ=["y","scaleY","originY"];function fc(e,t){VT(e.x,t,jJ),VT(e.y,t,GJ)}function pF(e,t){return dF(VJ(e.getBoundingClientRect(),t))}function YJ(e,t,n){const r=pF(e,n),{scroll:i}=t;return i&&(ts(r.x,i.offset.x),ts(r.y,i.offset.y)),r}const ZJ=new WeakMap;class XJ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=c=>{this.stopAnimation(),n&&this.snapToCursor(pI(c,"page").point)},i=(c,u)=>{var d;const{drag:p,dragPropagation:I,onDragStart:P}=this.getProps();p&&!I&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=RN(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lo(F=>{var B,N;let D=this.getAxisMotionValue(F).get()||0;if(Jo.test(D)){const T=(N=(B=this.visualElement.projection)===null||B===void 0?void 0:B.layout)===null||N===void 0?void 0:N.layoutBox[F];T&&(D=Ni(T)*(parseFloat(D)/100))}this.originPoint[F]=D}),P==null||P(c,u),(d=this.visualElement.animationState)===null||d===void 0||d.setActive(Mn.Drag,!0))},o=(c,u)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:I,onDrag:P}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:F}=u;if(p&&this.currentDirection===null){this.currentDirection=UJ(F),this.currentDirection!==null&&(I==null||I(this.currentDirection));return}this.updateAxis("x",u.point,F),this.updateAxis("y",u.point,F),this.visualElement.render(),P==null||P(c,u)},a=(c,u)=>this.stop(c,u);this.panSession=new cF(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o==null||o(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Mn.Drag,!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Zf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=DJ(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&dc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=$J(r.layoutBox,t):this.constraints=!1,this.elastic=WJ(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lo(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=BJ(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dc(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=YJ(r,i.root,this.visualElement.getTransformPagePoint());let a=NJ(i.layout.layoutBox,o);if(n){const c=n(HJ(a));this.hasMutatedConstraints=!!c,c&&(a=dF(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=Lo(p=>{if(!Zf(p,n,this.currentDirection))return;let I=(u==null?void 0:u[p])||{};a&&(I={min:0,max:0});const P=i?200:1e6,F=i?40:1e7,B={type:"inertia",velocity:r?t[p]:0,bounceStiffness:P,bounceDamping:F,timeConstant:750,restDelta:1,restSpeed:10,...o,...I};return this.startAxisValueAnimation(p,B)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(RI(t,r,0,n))}stopAnimation(){Lo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n;const r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,((n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])||0)}snapToCursor(t){Lo(n=>{const{drag:r}=this.getProps();if(!Zf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rr(a,c,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!dc(r)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Lo(c=>{const u=this.getAxisMotionValue(c);if(u){const d=u.get();o[c]=FJ({min:d,max:d},this.constraints[c])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Lo(c=>{if(!Zf(c,n,null))return;const u=this.getAxisMotionValue(c),{min:d,max:p}=this.constraints[c];u.set(rr(d,p,o[c]))})}addListeners(){var t;if(!this.visualElement.current)return;ZJ.set(this.visualElement,this);const n=this.visualElement.current,r=Mc(n,"pointerdown",d=>{const{drag:p,dragListener:I=!0}=this.getProps();p&&I&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();dc(d)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();const c=Yy(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Lo(I=>{const P=this.getAxisMotionValue(I);!P||(this.originPoint[I]+=d[I].translate,P.set(P.get()+d[I].translate))}),this.visualElement.render())});return()=>{c(),r(),a(),u==null||u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=gC,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Zf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UJ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function KJ(e){const{dragControls:t,visualElement:n}=e,r=Gy(()=>new XJ(n));de.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),de.exports.useEffect(()=>r.addListeners(),[r])}function JJ({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){const o=e||t||n||r,a=de.exports.useRef(null),{transformPagePoint:c}=de.exports.useContext(iI),u={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,I)=>{a.current=null,n&&n(p,I)}};de.exports.useEffect(()=>{a.current!==null&&a.current.updateHandlers(u)});function d(p){a.current=new cF(p,u,{transformPagePoint:c})}um(i,"pointerdown",o&&d),gI(()=>a.current&&a.current.end())}const QJ={pan:ds(JJ),drag:ds(KJ)};function yC(e){return typeof e=="string"&&e.startsWith("var(--")}const gF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function qJ(e){const t=gF.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function bC(e,t,n=1){const[r,i]=qJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():yC(i)?bC(i,t,n+1):i}function eQ(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!yC(o))return;const a=bC(o,r);a&&i.set(a)});for(const i in t){const o=t[i];if(!yC(o))continue;const a=bC(o,r);!a||(t[i]=a,n&&n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const tQ=new Set(["width","height","top","left","right","bottom","x","y"]),mF=e=>tQ.has(e),nQ=e=>Object.keys(e).some(mF),vF=(e,t)=>{e.set(t,!1),e.set(t)},zT=e=>e===Ol||e===Yt;var jT;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(jT||(jT={}));const GT=(e,t)=>parseFloat(e.split(", ")[t]),YT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return GT(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?GT(o[1],e):0}},rQ=new Set(["x","y","z"]),iQ=sm.filter(e=>!rQ.has(e));function oQ(e){const t=[];return iQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ZT={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:YT(4,13),y:YT(5,14)},aQ=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{c[d]=ZT[d](r,o)}),t.render();const u=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);vF(p,c[d]),e[d]=ZT[d](u,o)}),e},sQ=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(mF);let o=[],a=!1;const c=[];if(i.forEach(u=>{const d=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],I=Wu(p);const P=t[u];let F;if(cm(P)){const B=P.length,N=P[0]===null?1:0;p=P[N],I=Wu(p);for(let D=N;D=0?window.pageYOffset:null,d=aQ(t,e,c);return o.length&&o.forEach(([p,I])=>{e.getValue(p).set(I)}),e.render(),Pl&&u!==null&&window.scrollTo({top:u}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function lQ(e,t,n,r){return nQ(t)?sQ(e,t,n,r):{target:t,transitionEnd:r}}const cQ=(e,t,n,r)=>{const i=eQ(e,t,r);return t=i.target,r=i.transitionEnd,lQ(e,t,n,r)},xC={current:null},yF={current:!1};function uQ(){if(yF.current=!0,!!Pl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xC.current=e.matches;e.addListener(t),t()}else xC.current=!1}function dQ(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(ta(o))e.addValue(i,o),hm(r)&&r.add(i);else if(ta(a))e.addValue(i,Qc(o,{owner:e})),hm(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const c=e.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=e.getStaticValue(i);e.addValue(i,Qc(c!==void 0?c:o))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const bF=Object.keys(gh),hQ=bF.length,XT=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fQ{constructor({parent:t,props:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>xi.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=c,this.parent=t,this.props=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=jy(n),this.isVariantNode=fN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n);for(const p in d){const I=d[p];a[p]!==void 0&&ta(I)&&(I.set(a[p],!1),hm(u)&&u.add(p))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var n;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(n=this.parent)===null||n===void 0?void 0:n.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),yF.current||uQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xC.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,n,r;(t=this.projection)===null||t===void 0||t.unmount(),Is.update(this.notifyUpdate),Is.render(this.render),this.valueSubscriptions.forEach(i=>i()),(n=this.removeFromVariantTree)===null||n===void 0||n.call(this),(r=this.parent)===null||r===void 0||r.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,n){const r=Rl.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&xi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,n,r,i,o,a){const c=[];for(let u=0;uthis.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:P})}return c}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let n=0;nr.variantChildren.delete(t)}addValue(t,n){this.hasValue(t)&&this.removeValue(t),this.values.set(t,n),this.latestValues[t]=n.get(),this.bindToMotionValue(t,n)}removeValue(t){var n;this.values.delete(t),(n=this.valueSubscriptions.get(t))===null||n===void 0||n(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Qc(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=fI(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ta(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bI),this.events[t].add(n)}notify(t,...n){var r;(r=this.events[t])===null||r===void 0||r.notify(...n)}}const xF=["initial",...OI],pQ=xF.length;class wF extends fQ{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){var r;return(r=t.style)===null||r===void 0?void 0:r[n]}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let a=C8(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){x8(this,r,a);const c=cQ(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function gQ(e){return window.getComputedStyle(e)}class mQ extends wF{readValueFromInstance(t,n){if(Rl.has(n)){const r=CI(n);return r&&r.default||0}else{const r=gQ(t),i=(mN(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pF(t,n)}build(t,n,r,i){sI(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t){return hI(t)}renderInstance(t,n,r,i){wN(t,n,r,i)}}class vQ extends wF{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){var r;return Rl.has(n)?((r=CI(n))===null||r===void 0?void 0:r.default)||0:(n=CN.has(n)?n:dI(n),t.getAttribute(n))}measureInstanceViewportBox(){return xr()}scrapeMotionValuesFromProps(t){return AN(t)}build(t,n,r,i){cI(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){SN(t,n,r,i)}mount(t){this.isSVGTag=uI(t.tagName),super.mount(t)}}const yQ=(e,t)=>aI(e)?new vQ(t,{enableHardwareAcceleration:!1}):new mQ(t,{enableHardwareAcceleration:!0});function UT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Yt.test(e))e=parseFloat(e);else return e;const n=UT(e,t.target.x),r=UT(e,t.target.y);return`${n}% ${r}%`}},KT="_$css",bQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),o=[];i&&(e=e.replace(gF,F=>(o.push(F),KT)));const a=ks.parse(e);if(a.length>5)return r;const c=ks.createTransformer(e),u=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,p=n.y.scale*t.y;a[0+u]/=d,a[1+u]/=p;const I=rr(d,p,.5);typeof a[2+u]=="number"&&(a[2+u]/=I),typeof a[3+u]=="number"&&(a[3+u]/=I);let P=c(a);if(i){let F=0;P=P.replace(KT,()=>{const B=o[F];return F++,B})}return P}};class xQ extends vt.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Z6(CQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Td.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||xi.postRender(()=>{var c;!((c=a.getStack())===null||c===void 0)&&c.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n!=null&&n.group&&n.group.remove(i),r!=null&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function wQ(e){const[t,n]=mI(),r=de.exports.useContext(oI);return Se(xQ,{...e,layoutGroup:r,switchLayoutGroup:de.exports.useContext(pN),isPresent:t,safeToRemove:n})}const CQ={borderRadius:{...Hu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:bQ},SQ={measureLayout:wQ};function AQ(e,t,n={}){const r=ta(e)?e:Qc(e);return r.start(RI("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const CF=["TopLeft","TopRight","BottomLeft","BottomRight"],IQ=CF.length,JT=e=>typeof e=="string"?parseFloat(e):e,QT=e=>typeof e=="number"||Yt.test(e);function kQ(e,t,n,r,i,o){i?(e.opacity=rr(0,n.opacity!==void 0?n.opacity:1,_Q(r)),e.opacityExit=rr(t.opacity!==void 0?t.opacity:1,0,EQ(r))):o&&(e.opacity=rr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(pm(e,t,r))}function e2(e,t){e.min=t.min,e.max=t.max}function ho(e,t){e2(e.x,t.x),e2(e.y,t.y)}function t2(e,t,n,r,i){return e-=t,e=vm(e,1/n,r),i!==void 0&&(e=vm(e,1/i,r)),e}function TQ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Jo.test(t)&&(t=parseFloat(t),t=rr(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rr(o.min,o.max,r);e===o&&(c-=t),e.min=t2(e.min,t,n,c,i),e.max=t2(e.max,t,n,c,i)}function n2(e,t,[n,r,i],o,a){TQ(e,t[n],t[r],t[i],t.scale,o,a)}const PQ=["x","scaleX","originX"],RQ=["y","scaleY","originY"];function r2(e,t,n,r){n2(e.x,t,PQ,n==null?void 0:n.x,r==null?void 0:r.x),n2(e.y,t,RQ,n==null?void 0:n.y,r==null?void 0:r.y)}function i2(e){return e.translate===0&&e.scale===1}function AF(e){return i2(e.x)&&i2(e.y)}function IF(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function o2(e){return Ni(e.x)/Ni(e.y)}class OQ{constructor(){this.members=[]}add(t){vI(this.members,t),t.scheduleRender()}remove(t){if(yI(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function a2(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:d,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const MQ=(e,t)=>e.depth-t.depth;class LQ{constructor(){this.children=[],this.isDirty=!1}add(t){vI(this.children,t),this.isDirty=!0}remove(t){yI(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(MQ),this.isDirty=!1,this.children.forEach(t)}}const s2=["","X","Y","Z"],l2=1e3;let DQ=0;function kF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a,c={},u=t==null?void 0:t()){this.id=DQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(FQ),this.nodes.forEach(HQ),this.nodes.forEach(VQ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=c,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let d=0;dthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,P&&P(),P=oF(F,250),Td.hasAnimatedSinceResize&&(Td.hasAnimatedSinceResize=!1,this.nodes.forEach(u2))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&I&&(d||p)&&this.addEventListener("didUpdate",({delta:P,hasLayoutChanged:F,hasRelativeTargetChanged:B,layout:N})=>{var D,T,M,O,L;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=(T=(D=this.options.transition)!==null&&D!==void 0?D:I.getDefaultTransition())!==null&&T!==void 0?T:ZQ,{onLayoutAnimationStart:b,onLayoutAnimationComplete:C}=I.getProps(),g=!this.targetLayout||!IF(this.targetLayout,N)||B,w=!F&&B;if(((M=this.resumeFrom)===null||M===void 0?void 0:M.instance)||w||F&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(P,w);const f={...aF(x,"layout"),onPlay:b,onComplete:C};I.shouldReduceMotion&&(f.delay=0,f.type=!1),this.startAnimation(f)}else!F&&this.animationProgress===0&&u2(this),this.isLead()&&((L=(O=this.options).onExitComplete)===null||L===void 0||L.call(O));this.targetLayout=N})}unmount(){var a,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Is.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(zQ),this.animationId++)}willUpdate(a=!0){var c,u,d;if(this.root.isUpdateBlocked()){(u=(c=this.options).onExitComplete)===null||u===void 0||u.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let F=0;F{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{var O;const L=M/1e3;d2(F.x,a.x,L),d2(F.y,a.y,L),this.setTargetDelta(F),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((O=this.relativeParent)===null||O===void 0?void 0:O.layout)&&(Md(B,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GQ(this.relativeTarget,this.relativeTargetOrigin,B,L)),N&&(this.animationValues=P,kQ(P,I,this.latestValues,L,T,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(0)}startAnimation(a){var c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(Is.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xi.update(()=>{Td.hasAnimatedSinceResize=!0,this.currentAnimation=AQ(0,l2,{...a,onUpdate:d=>{var p;this.mixTargetDelta(d),(p=a.onUpdate)===null||p===void 0||p.call(a,d)},onComplete:()=>{var d;(d=a.onComplete)===null||d===void 0||d.call(a),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,l2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&_F(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||xr();const I=Ni(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+I;const P=Ni(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+P}ho(c,u),fc(c,p),Od(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){var u,d,p;this.sharedNodes.has(a)||this.sharedNodes.set(a,new OQ),this.sharedNodes.get(a).add(c),c.promote({transition:(u=c.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(d,c)})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const d={};for(let p=0;p{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(c2),this.root.sharedNodes.clear()}}}function $Q(e){e.updateLayout()}function NQ(e){var t,n,r;const i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=e.layout,{animationType:c}=e.options,u=i.source!==e.layout.source;c==="size"?Lo(F=>{const B=u?i.measuredBox[F]:i.layoutBox[F],N=Ni(B);B.min=o[F].min,B.max=B.min+N}):_F(c,i.layoutBox,o)&&Lo(F=>{const B=u?i.measuredBox[F]:i.layoutBox[F],N=Ni(o[F]);B.max=B.min+N});const d=Ld();Od(d,o,i.layoutBox);const p=Ld();u?Od(p,e.applyTransform(a,!0),i.measuredBox):Od(p,o,i.layoutBox);const I=!AF(d);let P=!1;if(!e.resumeFrom){const F=e.getClosestProjectingParent();if(F&&!F.resumeFrom){const{snapshot:B,layout:N}=F;if(B&&N){const D=xr();Md(D,i.layoutBox,B.layoutBox);const T=xr();Md(T,o,N.layoutBox),IF(D,T)||(P=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:d,hasLayoutChanged:I,hasRelativeTargetChanged:P})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function FQ(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function BQ(e){e.clearSnapshot()}function c2(e){e.clearMeasurements()}function WQ(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function u2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function HQ(e){e.resolveTargetDelta()}function VQ(e){e.calcProjection()}function zQ(e){e.resetRotation()}function jQ(e){e.removeLeadSnapshot()}function d2(e,t,n){e.translate=rr(t.translate,0,n),e.scale=rr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function h2(e,t,n,r){e.min=rr(t.min,n.min,r),e.max=rr(t.max,n.max,r)}function GQ(e,t,n,r){h2(e.x,t.x,n.x,r),h2(e.y,t.y,n.y,r)}function YQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZQ={duration:.45,ease:[.4,0,.1,1]};function XQ(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function f2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function UQ(e){f2(e.x),f2(e.y)}function _F(e,t,n){return e==="position"||e==="preserve-aspect"&&!pC(o2(t),o2(n),.2)}const KQ=kF({attachResizeListener:(e,t)=>Yy(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),G0={current:void 0},JQ=kF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!G0.current){const e=new KQ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),G0.current=e}return G0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),QQ={...PJ,...Y7,...QJ,...SQ},aa=G6((e,t)=>S7(e,t,QQ,yQ,JQ));function EF(){const e=de.exports.useRef(!1);return Ed(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qQ(){const e=EF(),[t,n]=de.exports.useState(0),r=de.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[de.exports.useCallback(()=>xi.postRender(r),[r]),t]}class eq extends de.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function tq({children:e,isPresent:t}){const n=de.exports.useId(),r=de.exports.useRef(null),i=de.exports.useRef({width:0,height:0,top:0,left:0});return de.exports.useInsertionEffect(()=>{const{width:o,height:a,top:c,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; @@ -345,8 +345,8 @@ Error generating stack: `+o.message+` top: ${c}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(d)}},[t]),Se(eq,{isPresent:t,childRef:r,sizeRef:i,children:de.exports.cloneElement(e,{ref:r})})}const Y0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const c=Gy(nq),u=de.exports.useId(),d=de.exports.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:p=>{c.set(p,!0);for(const I of c.values())if(!I)return;r&&r()},register:p=>(c.set(p,!1),()=>c.delete(p))}),o?void 0:[n]);return de.exports.useMemo(()=>{c.forEach((p,I)=>c.set(I,!1))},[n]),de.exports.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),a==="popLayout"&&(e=Se(tq,{isPresent:n,children:e})),Se(mu.Provider,{value:d,children:e})};function nq(){return new Map}const Jl=e=>e.key||"";function rq(e,t){e.forEach(n=>{const r=Jl(n);t.set(r,n)})}function iq(e){const t=[];return de.exports.Children.forEach(e,n=>{de.exports.isValidElement(n)&&t.push(n)}),t}const Ml=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",DN(!1,"Replace exitBeforeEnter with mode='wait'"));let[c]=qQ();const u=de.exports.useContext(oI).forceRender;u&&(c=u);const d=EF(),p=iq(e);let I=p;const P=new Set,F=de.exports.useRef(I),B=de.exports.useRef(new Map).current,N=de.exports.useRef(!0);if(Ed(()=>{N.current=!1,rq(p,B),F.current=I}),gI(()=>{N.current=!0,B.clear(),P.clear()}),N.current)return Se(Ao,{children:I.map(O=>Se(Y0,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:O},Jl(O)))});I=[...I];const D=F.current.map(Jl),T=p.map(Jl),M=D.length;for(let O=0;O{if(T.indexOf(O)!==-1)return;const L=B.get(O);if(!L)return;const x=D.indexOf(O),b=()=>{B.delete(O),P.delete(O);const C=F.current.findIndex(g=>g.key===O);if(F.current.splice(C,1),!P.size){if(F.current=p,d.current===!1)return;c(),r&&r()}};I.splice(x,0,Se(Y0,{isPresent:!1,onExitComplete:b,custom:t,presenceAffectsLayout:o,mode:a,children:L},Jl(L)))}),I=I.map(O=>{const L=O.key;return P.has(L)?O:Se(Y0,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:O},Jl(O))}),LN!=="production"&&a==="wait"&&I.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Se(Ao,{children:P.size?I:I.map(O=>de.exports.cloneElement(O))})};var Bo=function(){return Bo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},PF=de.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:c=5e3,containerStyle:u,motionVariants:d=aq,toastSpacing:p="0.5rem"}=e,[I,P]=de.exports.useState(c),F=Z7();La(()=>{F||r==null||r()},[F]),La(()=>{P(c)},[c]);const B=()=>P(null),N=()=>P(c),D=()=>{F&&i()};de.exports.useEffect(()=>{F&&o&&i()},[F,o,i]),R6(D,I);const T=de.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...u}),[u,p]),M=de.exports.useMemo(()=>T6(a),[a]);return Se(aa.li,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:B,onHoverEnd:N,custom:{position:a},style:M,children:Se(pt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:T,children:Ki(n,{id:t,onClose:D})})})});PF.displayName="ToastComponent";function sq(e,t){var n;const r=e!=null?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=o==null?void 0:o[t])!=null?n:r}var p2={path:At("g",{stroke:"currentColor",strokeWidth:"1.5",children:[Se("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),Se("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),Se("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Wa=It((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:c,__css:u,...d}=e,p=Bt("chakra-icon",c),I=Eo("Icon",e),P={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...u,...I},F={ref:t,focusable:o,className:p,__css:P},B=r!=null?r:p2.viewBox;if(n&&typeof n!="string")return Se(pt.svg,{as:n,...F,...d});const N=a!=null?a:p2.path;return Se(pt.svg,{verticalAlign:"middle",viewBox:B,...F,...d,children:N})});Wa.displayName="Icon";function lq(e){return Se(Wa,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function cq(e){return Se(Wa,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function g2(e){return Se(Wa,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var uq=Ms({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),MI=It((e,t)=>{const n=Eo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:c,...u}=Dn(e),d=Bt("chakra-spinner",c),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${uq} ${o} linear infinite`,...n};return Se(pt.div,{ref:t,__css:p,className:d,...u,children:r&&Se(pt.span,{srOnly:!0,children:r})})});MI.displayName="Spinner";var[dq,LI]=In({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[hq,DI]=In({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),RF={info:{icon:cq,colorScheme:"blue"},warning:{icon:g2,colorScheme:"orange"},success:{icon:lq,colorScheme:"green"},error:{icon:g2,colorScheme:"red"},loading:{icon:MI,colorScheme:"blue"}};function fq(e){return RF[e].colorScheme}function pq(e){return RF[e].icon}var OF=It(function(t,n){const r=DI(),{status:i}=LI(),o={display:"inline",...r.description};return Se(pt.div,{ref:n,"data-status":i,...t,className:Bt("chakra-alert__desc",t.className),__css:o})});OF.displayName="AlertDescription";function MF(e){const{status:t}=LI(),n=pq(t),r=DI(),i=t==="loading"?r.spinner:r.icon;return Se(pt.span,{display:"inherit","data-status":t,...e,className:Bt("chakra-alert__icon",e.className),__css:i,children:e.children||Se(n,{h:"100%",w:"100%"})})}MF.displayName="AlertIcon";var LF=It(function(t,n){const r=DI(),{status:i}=LI();return Se(pt.div,{ref:n,"data-status":i,...t,className:Bt("chakra-alert__title",t.className),__css:r.title})});LF.displayName="AlertTitle";var DF=It(function(t,n){var r;const{status:i="info",addRole:o=!0,...a}=Dn(t),c=(r=t.colorScheme)!=null?r:fq(i),u=zr("Alert",{...t,colorScheme:c}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return Se(dq,{value:{status:i},children:Se(hq,{value:u,children:Se(pt.div,{"data-status":i,role:o?"alert":void 0,ref:n,...a,className:Bt("chakra-alert",t.className),__css:d})})})});DF.displayName="Alert";function gq(e){return Se(Wa,{focusable:"false","aria-hidden":!0,...e,children:Se("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Ky=It(function(t,n){const r=Eo("CloseButton",t),{children:i,isDisabled:o,__css:a,...c}=Dn(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Se(pt.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...u,...r,...a},...c,children:i||Se(gq,{width:"1em",height:"1em"})})});Ky.displayName="CloseButton";var mq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Wo=vq(mq);function vq(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(c=>c.id!=i)}))},notify:(i,o)=>{const a=yq(i,o),{position:c,id:u}=a;return r(d=>{var p,I;const F=c.includes("top")?[a,...(p=d[c])!=null?p:[]]:[...(I=d[c])!=null?I:[],a];return{...d,[c]:F}}),u},update:(i,o)=>{!i||r(a=>{const c={...a},{position:u,index:d}=uT(c,i);return u&&d!==-1&&(c[u][d]={...c[u][d],...o,message:$F(o)}),c})},closeAll:({positions:i}={})=>{r(o=>{const a=["bottom","bottom-right","bottom-left","top","top-left","top-right"];return(i!=null?i:a).reduce((u,d)=>(u[d]=o[d].map(p=>({...p,requestClose:!0})),u),{...o})})},close:i=>{r(o=>{const a=dN(o,i);return a?{...o,[a]:o[a].map(c=>c.id==i?{...c,requestClose:!0}:c)}:o})},isActive:i=>Boolean(uT(Wo.getState(),i).position)}}var m2=0;function yq(e,t={}){var n,r;m2+=1;const i=(n=t.id)!=null?n:m2,o=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Wo.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var bq=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:c,colorScheme:u,icon:d}=e,p=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return At(DF,{addRole:!1,status:t,variant:n,id:p==null?void 0:p.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[Se(MF,{children:d}),At(pt.div,{flex:"1",maxWidth:"100%",children:[i&&Se(LF,{id:p==null?void 0:p.title,children:i}),c&&Se(OF,{id:p==null?void 0:p.description,display:"block",children:c})]}),o&&Se(Ky,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function $F(e={}){const{render:t,toastComponent:n=bq}=e;return i=>typeof t=="function"?t({...i,...e}):Se(n,{...i,...e})}function xq(e,t){const n=i=>{var o;return{...t,...i,position:sq((o=i==null?void 0:i.position)!=null?o:t==null?void 0:t.position,e)}},r=i=>{const o=n(i),a=$F(o);return Wo.notify(a,o)};return r.update=(i,o)=>{Wo.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(c=>r.update(a,{status:"success",duration:5e3,...Ki(o.success,c)})).catch(c=>r.update(a,{status:"error",duration:5e3,...Ki(o.error,c)}))},r.closeAll=Wo.closeAll,r.close=Wo.close,r.isActive=Wo.isActive,r}var[wq,Cq]=In({name:"ToastOptionsContext",strict:!1}),Sq=e=>{const t=de.exports.useSyncExternalStore(Wo.subscribe,Wo.getState,Wo.getState),{motionVariants:n,component:r=PF,portalProps:i}=e,a=Object.keys(t).map(c=>{const u=t[c];return Se("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:P6(c),children:Se(Ml,{initial:!1,children:u.map(d=>Se(r,{motionVariants:n,...d},d.id))})},c)});return Se(gu,{...i,children:a})};function ske(e){const{theme:t}=k$(),n=Cq();return de.exports.useMemo(()=>xq(t.direction,{...n,...e}),[e,t.direction,n])}var Aq=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return At(_6,{theme:r,...o,children:[Se(wq,{value:i==null?void 0:i.defaultOptions,children:n}),Se(Sq,{...i})]})},lke=Aq(J$),Iq=Object.defineProperty,kq=(e,t,n)=>t in e?Iq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,er=(e,t,n)=>(kq(e,typeof t!="symbol"?t+"":t,n),n);function v2(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var _q=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function y2(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function b2(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var wC=typeof window<"u"?de.exports.useLayoutEffect:de.exports.useEffect,ym=e=>e,Eq=class{constructor(){er(this,"descendants",new Map),er(this,"register",e=>{if(e!=null)return _q(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),er(this,"unregister",e=>{this.descendants.delete(e);const t=v2(Array.from(this.descendants.keys()));this.assignIndex(t)}),er(this,"destroy",()=>{this.descendants.clear()}),er(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),er(this,"count",()=>this.descendants.size),er(this,"enabledCount",()=>this.enabledValues().length),er(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),er(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),er(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),er(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),er(this,"first",()=>this.item(0)),er(this,"firstEnabled",()=>this.enabledItem(0)),er(this,"last",()=>this.item(this.descendants.size-1)),er(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),er(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),er(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),er(this,"next",(e,t=!0)=>{const n=y2(e,this.count(),t);return this.item(n)}),er(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=y2(r,this.enabledCount(),t);return this.enabledItem(i)}),er(this,"prev",(e,t=!0)=>{const n=b2(e,this.count()-1,t);return this.item(n)}),er(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=b2(r,this.enabledCount()-1,t);return this.enabledItem(i)}),er(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=v2(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function Tq(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function _n(...e){return t=>{e.forEach(n=>{Tq(n,t)})}}function Pq(...e){return de.exports.useMemo(()=>_n(...e),e)}function Rq(){const e=de.exports.useRef(new Eq);return wC(()=>()=>e.current.destroy()),e.current}var[Oq,NF]=In({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Mq(e){const t=NF(),[n,r]=de.exports.useState(-1),i=de.exports.useRef(null);wC(()=>()=>{!i.current||t.unregister(i.current)},[]),wC(()=>{if(!i.current)return;const a=Number(i.current.dataset.index);n!=a&&!Number.isNaN(a)&&r(a)});const o=ym(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:_n(o,i)}}function $I(){return[ym(Oq),()=>ym(NF()),()=>Rq(),i=>Mq(i)]}var[Lq,Jy]=In({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[Dq,NI]=In({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[$q,cke,Nq,Fq]=$I(),Bq=It(function(t,n){const{getButtonProps:r}=NI(),i=r(t,n),a={display:"flex",alignItems:"center",width:"100%",outline:0,...Jy().button};return Se(pt.button,{...i,className:Bt("chakra-accordion__button",t.className),__css:a})});Bq.displayName="AccordionButton";function Qy(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(P,F)=>P!==F}=e,o=nr(r),a=nr(i),[c,u]=de.exports.useState(n),d=t!==void 0,p=d?t:c,I=nr(P=>{const B=typeof P=="function"?P(p):P;!a(p,B)||(d||u(B),o(B))},[d,o,p,a]);return[p,I]}function Wq(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:o,...a}=e;zq(e),jq(e);const c=Nq(),[u,d]=de.exports.useState(-1);de.exports.useEffect(()=>()=>{d(-1)},[]);const[p,I]=Qy({value:r,defaultValue(){return i?n!=null?n:[]:n!=null?n:-1},onChange:t});return{index:p,setIndex:I,htmlProps:a,getAccordionItemProps:F=>{let B=!1;return F!==null&&(B=Array.isArray(p)?p.includes(F):p===F),{isOpen:B,onChange:D=>{if(F!==null)if(i&&Array.isArray(p)){const T=D?p.concat(F):p.filter(M=>M!==F);I(T)}else D?I(F):o&&I(-1)}}},focusedIndex:u,setFocusedIndex:d,descendants:c}}var[Hq,FI]=In({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function Vq(e){const{isDisabled:t,isFocusable:n,id:r,...i}=e,{getAccordionItemProps:o,setFocusedIndex:a}=FI(),c=de.exports.useRef(null),u=de.exports.useId(),d=r!=null?r:u,p=`accordion-button-${d}`,I=`accordion-panel-${d}`;Gq(e);const{register:P,index:F,descendants:B}=Fq({disabled:t&&!n}),{isOpen:N,onChange:D}=o(F===-1?null:F);Yq({isOpen:N,isDisabled:t});const T=()=>{D==null||D(!0)},M=()=>{D==null||D(!1)},O=de.exports.useCallback(()=>{D==null||D(!N),a(F)},[F,a,N,D]),L=de.exports.useCallback(g=>{const f={ArrowDown:()=>{const m=B.nextEnabled(F);m==null||m.node.focus()},ArrowUp:()=>{const m=B.prevEnabled(F);m==null||m.node.focus()},Home:()=>{const m=B.firstEnabled();m==null||m.node.focus()},End:()=>{const m=B.lastEnabled();m==null||m.node.focus()}}[g.key];f&&(g.preventDefault(),f(g))},[B,F]),x=de.exports.useCallback(()=>{a(F)},[a,F]),b=de.exports.useCallback(function(w={},f=null){return{...w,type:"button",ref:_n(P,c,f),id:p,disabled:!!t,"aria-expanded":!!N,"aria-controls":I,onClick:Wt(w.onClick,O),onFocus:Wt(w.onFocus,x),onKeyDown:Wt(w.onKeyDown,L)}},[p,t,N,O,x,L,I,P]),C=de.exports.useCallback(function(w={},f=null){return{...w,ref:f,role:"region",id:I,"aria-labelledby":p,hidden:!N}},[p,N,I]);return{isOpen:N,isDisabled:t,isFocusable:n,onOpen:T,onClose:M,getButtonProps:b,getPanelProps:C,htmlProps:i}}function zq(e){const t=e.index||e.defaultIndex,n=t!=null&&!Array.isArray(t)&&e.allowMultiple;Qh({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function jq(e){Qh({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function Gq(e){Qh({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. - `})}function Yq(e){Qh({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Zq(e){const{isOpen:t,isDisabled:n}=NI(),{reduceMotion:r}=FI(),i=Bt("chakra-accordion__icon",e.className),o=Jy(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return Se(Wa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:Se("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Zq.displayName="AccordionIcon";var Xq=It(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Vq(t),u={...Jy().container,overflowAnchor:"none"},d=de.exports.useMemo(()=>a,[a]);return Se(Dq,{value:d,children:Se(pt.div,{ref:n,...o,className:Bt("chakra-accordion__item",i),__css:u,children:typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})});Xq.displayName="AccordionItem";var pc={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ll={enter:{duration:.2,ease:pc.easeOut},exit:{duration:.1,ease:pc.easeIn}},Ia={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},Uq=e=>e!=null&&parseInt(e.toString(),10)>0,x2={exit:{height:{duration:.2,ease:pc.ease},opacity:{duration:.3,ease:pc.ease}},enter:{height:{duration:.3,ease:pc.ease},opacity:{duration:.4,ease:pc.ease}}},Kq={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:Uq(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(o=n==null?void 0:n.exit)!=null?o:Ia.exit(x2.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(o=n==null?void 0:n.enter)!=null?o:Ia.enter(x2.enter,i)}}},FF=de.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:c,className:u,transition:d,transitionEnd:p,...I}=e,[P,F]=de.exports.useState(!1);de.exports.useEffect(()=>{const M=setTimeout(()=>{F(!0)});return()=>clearTimeout(M)},[]),Qh({condition:Number(o)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const B=parseFloat(o.toString())>0,N={startingHeight:o,endingHeight:a,animateOpacity:i,transition:P?d:{enter:{duration:0}},transitionEnd:{enter:p==null?void 0:p.enter,exit:r?p==null?void 0:p.exit:{...p==null?void 0:p.exit,display:B?"block":"none"}}},D=r?n:!0,T=n||r?"enter":"exit";return Se(Ml,{initial:!1,custom:N,children:D&&Se(aa.div,{ref:t,...I,className:Bt("chakra-collapse",u),style:{overflow:"hidden",display:"block",...c},custom:N,variants:Kq,initial:r?"exit":!1,animate:T,exit:"exit"})})});FF.displayName="Collapse";var Jq={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Ia.enter(ll.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Ia.exit(ll.exit,n),transitionEnd:t==null?void 0:t.exit}}},BF={initial:"exit",animate:"enter",exit:"exit",variants:Jq},Qq=de.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:c,delay:u,...d}=t,p=i||r?"enter":"exit",I=r?i&&r:!0,P={transition:a,transitionEnd:c,delay:u};return Se(Ml,{custom:P,children:I&&Se(aa.div,{ref:n,className:Bt("chakra-fade",o),custom:P,...BF,animate:p,...d})})});Qq.displayName="Fade";var qq={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(o=n==null?void 0:n.exit)!=null?o:Ia.exit(ll.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Ia.enter(ll.enter,n),transitionEnd:e==null?void 0:e.enter}}},WF={initial:"exit",animate:"enter",exit:"exit",variants:qq},eee=de.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:c,transition:u,transitionEnd:d,delay:p,...I}=t,P=r?i&&r:!0,F=i||r?"enter":"exit",B={initialScale:a,reverse:o,transition:u,transitionEnd:d,delay:p};return Se(Ml,{custom:B,children:P&&Se(aa.div,{ref:n,className:Bt("chakra-offset-slide",c),...WF,animate:F,custom:B,...I})})});eee.displayName="ScaleFade";var tee={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:(o=n==null?void 0:n.exit)!=null?o:Ia.exit(ll.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:Ia.enter(ll.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{var a;const c={x:t,y:e};return{opacity:0,transition:(a=n==null?void 0:n.exit)!=null?a:Ia.exit(ll.exit,o),...i?{...c,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...c,...r==null?void 0:r.exit}}}}},CC={initial:"initial",animate:"enter",exit:"exit",variants:tee},nee=de.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:c=0,offsetY:u=8,transition:d,transitionEnd:p,delay:I,...P}=t,F=r?i&&r:!0,B=i||r?"enter":"exit",N={offsetX:c,offsetY:u,reverse:o,transition:d,transitionEnd:p,delay:I};return Se(Ml,{custom:N,children:F&&Se(aa.div,{ref:n,className:Bt("chakra-offset-slide",a),custom:N,...CC,animate:B,...P})})});nee.displayName="SlideFade";var ree=It(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=FI(),{getPanelProps:c,isOpen:u}=NI(),d=c(o,n),p=Bt("chakra-accordion__panel",r),I=Jy();a||delete d.hidden;const P=Se(pt.div,{...d,__css:I.panel,className:p});return a?P:Se(FF,{in:u,...i,children:P})});ree.displayName="AccordionPanel";var iee=It(function({children:t,reduceMotion:n,...r},i){const o=zr("Accordion",r),a=Dn(r),{htmlProps:c,descendants:u,...d}=Wq(a),p=de.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return Se($q,{value:u,children:Se(Hq,{value:p,children:Se(Lq,{value:o,children:Se(pt.div,{ref:i,...c,className:Bt("chakra-accordion",r.className),__css:o.root,children:t})})})})});iee.displayName="Accordion";function BI(e){return de.exports.Children.toArray(e).filter(t=>de.exports.isValidElement(t))}var[oee,aee]=In({strict:!1,name:"ButtonGroupContext"}),see={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},lee={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},cee=It(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:c="0.5rem",isAttached:u,isDisabled:d,orientation:p="horizontal",...I}=t,P=Bt("chakra-button__group",a),F=de.exports.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:d}),[r,i,o,d]);let B={display:"inline-flex",...u?see[p]:lee[p](c)};const N=p==="vertical";return Se(oee,{value:F,children:Se(pt.div,{ref:n,role:"group",__css:B,className:P,"data-attached":u?"":void 0,"data-orientation":p,flexDir:N?"column":void 0,...I})})});cee.displayName="ButtonGroup";function uee(e){const[t,n]=de.exports.useState(!e);return{ref:de.exports.useCallback(o=>{!o||n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function SC(e){const{children:t,className:n,...r}=e,i=de.exports.isValidElement(t)?de.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=Bt("chakra-button__icon",n);return Se(pt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}SC.displayName="ButtonIcon";function AC(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=Se(MI,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...c}=e,u=Bt("chakra-button__spinner",o),d=n==="start"?"marginEnd":"marginStart",p=de.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,d,r]);return Se(pt.div,{className:u,...c,__css:p,children:i})}AC.displayName="ButtonSpinner";var HF=It((e,t)=>{const n=aee(),r=Eo("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:c,leftIcon:u,rightIcon:d,loadingText:p,iconSpacing:I="0.5rem",type:P,spinner:F,spinnerPlacement:B="start",className:N,as:D,...T}=Dn(e),M=de.exports.useMemo(()=>{const b={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:b}}},[r,n]),{ref:O,type:L}=uee(D),x={rightIcon:d,leftIcon:u,iconSpacing:I,children:c};return At(pt.button,{ref:Pq(t,O),as:D,type:P!=null?P:L,"data-active":Qt(a),"data-loading":Qt(o),__css:M,className:Bt("chakra-button",N),...T,disabled:i||o,children:[o&&B==="start"&&Se(AC,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:I,children:F}),o?p||Se(pt.span,{opacity:0,children:Se(w2,{...x})}):Se(w2,{...x}),o&&B==="end"&&Se(AC,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:I,children:F})]})});HF.displayName="Button";function w2(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return At(Ao,{children:[t&&Se(SC,{marginEnd:i,children:t}),r,n&&Se(SC,{marginStart:i,children:n})]})}var dee=It((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,c=n||r,u=de.exports.isValidElement(c)?de.exports.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null;return Se(HF,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:u})});dee.displayName="IconButton";var[hee,uke]=A6("Card"),dke=It(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:c,...u}=Dn(t),d=zr("Card",t);return Se(pt.div,{ref:n,className:Bt("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:c,position:"relative",minWidth:0,wordWrap:"break-word",...d.container},...u,children:Se(hee,{value:d,children:i})})}),[hke,fee]=In({name:"CheckboxGroupContext",strict:!1});function C2(e){return e&&yr(e)&&yr(e.target)}function fke(e={}){const{defaultValue:t,value:n,onChange:r,isDisabled:i,isNative:o}=e,a=nr(r),[c,u]=Qy({value:n,defaultValue:t||[],onChange:a}),d=de.exports.useCallback(I=>{if(!c)return;const P=C2(I)?I.target.checked:!c.includes(I),F=C2(I)?I.target.value:I,B=P?[...c,F]:c.filter(N=>String(N)!==String(F));u(B)},[u,c]),p=de.exports.useCallback((I={})=>({...I,[o?"checked":"isChecked"]:c.some(F=>String(I.value)===String(F)),onChange:d}),[d,o,c]);return{value:c,isDisabled:i,onChange:d,setValue:u,getCheckboxProps:p}}function pee(e){return Se(pt.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:Se("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function gee(e){return Se(pt.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:Se("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function mee(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?gee:pee;return n||t?Se(pt.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:Se(i,{...r})}):null}var[vee,VF]=In({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[yee,Ll]=In({strict:!1,name:"FormControlContext"});function bee(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,c=de.exports.useId(),u=t||`field-${c}`,d=`${u}-label`,p=`${u}-feedback`,I=`${u}-helptext`,[P,F]=de.exports.useState(!1),[B,N]=de.exports.useState(!1),[D,T]=de.exports.useState(!1),M=de.exports.useCallback((C={},g=null)=>({id:I,...C,ref:_n(g,w=>{!w||N(!0)})}),[I]),O=de.exports.useCallback((C={},g=null)=>({...C,ref:g,"data-focus":Qt(D),"data-disabled":Qt(i),"data-invalid":Qt(r),"data-readonly":Qt(o),id:C.id!==void 0?C.id:d,htmlFor:C.htmlFor!==void 0?C.htmlFor:u}),[u,i,D,r,o,d]),L=de.exports.useCallback((C={},g=null)=>({id:p,...C,ref:_n(g,w=>{!w||F(!0)}),"aria-live":"polite"}),[p]),x=de.exports.useCallback((C={},g=null)=>({...C,...a,ref:g,role:"group"}),[a]),b=de.exports.useCallback((C={},g=null)=>({...C,ref:g,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!D,onFocus:()=>T(!0),onBlur:()=>T(!1),hasFeedbackText:P,setHasFeedbackText:F,hasHelpText:B,setHasHelpText:N,id:u,labelId:d,feedbackId:p,helpTextId:I,htmlProps:a,getHelpTextProps:M,getErrorMessageProps:L,getRootProps:x,getLabelProps:O,getRequiredIndicatorProps:b}}var xee=It(function(t,n){const r=zr("Form",t),i=Dn(t),{getRootProps:o,htmlProps:a,...c}=bee(i),u=Bt("chakra-form-control",t.className);return Se(yee,{value:c,children:Se(vee,{value:r,children:Se(pt.div,{...o({},n),className:u,__css:r.container})})})});xee.displayName="FormControl";var wee=It(function(t,n){const r=Ll(),i=VF(),o=Bt("chakra-form__helper-text",t.className);return Se(pt.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});wee.displayName="FormHelperText";var[Cee,See]=In({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Aee=It((e,t)=>{const n=zr("FormError",e),r=Dn(e),i=Ll();return i!=null&&i.isInvalid?Se(Cee,{value:n,children:Se(pt.div,{...i==null?void 0:i.getErrorMessageProps(r,t),className:Bt("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});Aee.displayName="FormErrorMessage";var Iee=It((e,t)=>{const n=See(),r=Ll();if(!(r!=null&&r.isInvalid))return null;const i=Bt("chakra-form__error-icon",e.className);return Se(Wa,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:i,children:Se("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});Iee.displayName="FormErrorIcon";var kee=It(function(t,n){var r;const i=Eo("FormLabel",t),o=Dn(t),{className:a,children:c,requiredIndicator:u=Se(zF,{}),optionalIndicator:d=null,...p}=o,I=Ll(),P=(r=I==null?void 0:I.getLabelProps(p,n))!=null?r:{ref:n,...p};return At(pt.label,{...P,className:Bt("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[c,I!=null&&I.isRequired?u:d]})});kee.displayName="FormLabel";var zF=It(function(t,n){const r=Ll(),i=VF();if(!(r!=null&&r.isRequired))return null;const o=Bt("chakra-form__required-indicator",t.className);return Se(pt.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});zF.displayName="RequiredIndicator";function WI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=HI(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":Ca(n),"aria-required":Ca(i),"aria-readonly":Ca(r)}}function HI(e){var t,n,r;const i=Ll(),{id:o,disabled:a,readOnly:c,required:u,isRequired:d,isInvalid:p,isReadOnly:I,isDisabled:P,onFocus:F,onBlur:B,...N}=e,D=e["aria-describedby"]?[e["aria-describedby"]]:[];return(i==null?void 0:i.hasFeedbackText)&&(i==null?void 0:i.isInvalid)&&D.push(i.feedbackId),i!=null&&i.hasHelpText&&D.push(i.helpTextId),{...N,"aria-describedby":D.join(" ")||void 0,id:o!=null?o:i==null?void 0:i.id,isDisabled:(t=a!=null?a:P)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=c!=null?c:I)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=u!=null?u:d)!=null?r:i==null?void 0:i.isRequired,isInvalid:p!=null?p:i==null?void 0:i.isInvalid,onFocus:Wt(i==null?void 0:i.onFocus,F),onBlur:Wt(i==null?void 0:i.onBlur,B)}}var _ee={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},S2=!1,of=null,xl=!1,IC=!1,kC=new Set;function VI(e,t){kC.forEach(n=>n(e,t))}var Eee=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Tee(e){return!(e.metaKey||!Eee&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function A2(e){xl=!0,Tee(e)&&(of="keyboard",VI("keyboard",e))}function Wl(e){if(of="pointer",e.type==="mousedown"||e.type==="pointerdown"){xl=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;VI("pointer",e)}}function Pee(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Ree(e){Pee(e)&&(xl=!0,of="virtual")}function Oee(e){e.target===window||e.target===document||(!xl&&!IC&&(of="virtual",VI("virtual",e)),xl=!1,IC=!1)}function Mee(){xl=!1,IC=!0}function I2(){return of!=="pointer"}function Lee(){if(typeof window>"u"||S2)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){xl=!0,e.apply(this,n)},document.addEventListener("keydown",A2,!0),document.addEventListener("keyup",A2,!0),document.addEventListener("click",Ree,!0),window.addEventListener("focus",Oee,!0),window.addEventListener("blur",Mee,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Wl,!0),document.addEventListener("pointermove",Wl,!0),document.addEventListener("pointerup",Wl,!0)):(document.addEventListener("mousedown",Wl,!0),document.addEventListener("mousemove",Wl,!0),document.addEventListener("mouseup",Wl,!0)),S2=!0}function jF(e){Lee(),e(I2());const t=()=>e(I2());return kC.add(t),()=>{kC.delete(t)}}function Dee(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function GF(e={}){const t=HI(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:c,onFocus:u,"aria-describedby":d}=t,{defaultChecked:p,isChecked:I,isFocusable:P,onChange:F,isIndeterminate:B,name:N,value:D,tabIndex:T=void 0,"aria-label":M,"aria-labelledby":O,"aria-invalid":L,...x}=e,b=Dee(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=nr(F),g=nr(c),w=nr(u),[f,m]=de.exports.useState(!1),[E,S]=de.exports.useState(!1),[y,_]=de.exports.useState(!1),[$,z]=de.exports.useState(!1);de.exports.useEffect(()=>jF(m),[]);const H=de.exports.useRef(null),[X,Q]=de.exports.useState(!0),[re,ue]=de.exports.useState(!!p),le=I!==void 0,ve=le?I:re,V=de.exports.useCallback(we=>{if(r||n){we.preventDefault();return}le||ue(ve?we.target.checked:B?!0:we.target.checked),C==null||C(we)},[r,n,ve,le,B,C]);Zo(()=>{H.current&&(H.current.indeterminate=Boolean(B))},[B]),La(()=>{n&&S(!1)},[n,S]),Zo(()=>{const we=H.current;!(we!=null&&we.form)||(we.form.onreset=()=>{ue(!!p)})},[]);const Z=n&&!P,ce=de.exports.useCallback(we=>{we.key===" "&&z(!0)},[z]),Y=de.exports.useCallback(we=>{we.key===" "&&z(!1)},[z]);Zo(()=>{if(!H.current)return;H.current.checked!==ve&&ue(H.current.checked)},[H.current]);const ie=de.exports.useCallback((we={},be=null)=>{const ee=se=>{E&&se.preventDefault(),z(!0)};return{...we,ref:be,"data-active":Qt($),"data-hover":Qt(y),"data-checked":Qt(ve),"data-focus":Qt(E),"data-focus-visible":Qt(E&&f),"data-indeterminate":Qt(B),"data-disabled":Qt(n),"data-invalid":Qt(o),"data-readonly":Qt(r),"aria-hidden":!0,onMouseDown:Wt(we.onMouseDown,ee),onMouseUp:Wt(we.onMouseUp,()=>z(!1)),onMouseEnter:Wt(we.onMouseEnter,()=>_(!0)),onMouseLeave:Wt(we.onMouseLeave,()=>_(!1))}},[$,ve,n,E,f,y,B,o,r]),he=de.exports.useCallback((we={},be=null)=>({...b,...we,ref:_n(be,ee=>{!ee||Q(ee.tagName==="LABEL")}),onClick:Wt(we.onClick,()=>{var ee;X||((ee=H.current)==null||ee.click(),requestAnimationFrame(()=>{var se;(se=H.current)==null||se.focus()}))}),"data-disabled":Qt(n),"data-checked":Qt(ve),"data-invalid":Qt(o)}),[b,n,ve,o,X]),fe=de.exports.useCallback((we={},be=null)=>({...we,ref:_n(H,be),type:"checkbox",name:N,value:D,id:a,tabIndex:T,onChange:Wt(we.onChange,V),onBlur:Wt(we.onBlur,g,()=>S(!1)),onFocus:Wt(we.onFocus,w,()=>S(!0)),onKeyDown:Wt(we.onKeyDown,ce),onKeyUp:Wt(we.onKeyUp,Y),required:i,checked:ve,disabled:Z,readOnly:r,"aria-label":M,"aria-labelledby":O,"aria-invalid":L?Boolean(L):o,"aria-describedby":d,"aria-disabled":n,style:_ee}),[N,D,a,V,g,w,ce,Y,i,ve,Z,r,M,O,L,o,d,n,T]),Ce=de.exports.useCallback((we={},be=null)=>({...we,ref:be,onMouseDown:Wt(we.onMouseDown,$ee),"data-disabled":Qt(n),"data-checked":Qt(ve),"data-invalid":Qt(o)}),[ve,n,o]);return{state:{isInvalid:o,isFocused:E,isChecked:ve,isActive:$,isHovered:y,isIndeterminate:B,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:he,getCheckboxProps:ie,getInputProps:fe,getLabelProps:Ce,htmlProps:b}}function $ee(e){e.preventDefault(),e.stopPropagation()}var Nee={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Fee={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Bee=Ms({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Wee=Ms({from:{opacity:0},to:{opacity:1}}),Hee=Ms({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Vee=It(function(t,n){const r=fee(),i={...r,...t},o=zr("Checkbox",i),a=Dn(t),{spacing:c="0.5rem",className:u,children:d,iconColor:p,iconSize:I,icon:P=Se(mee,{}),isChecked:F,isDisabled:B=r==null?void 0:r.isDisabled,onChange:N,inputProps:D,...T}=a;let M=F;(r==null?void 0:r.value)&&a.value&&(M=r.value.includes(a.value));let O=N;(r==null?void 0:r.onChange)&&a.value&&(O=ZA(r.onChange,N));const{state:L,getInputProps:x,getCheckboxProps:b,getLabelProps:C,getRootProps:g}=GF({...T,isDisabled:B,isChecked:M,onChange:O}),w=de.exports.useMemo(()=>({animation:L.isIndeterminate?`${Wee} 20ms linear, ${Hee} 200ms linear`:`${Bee} 200ms linear`,fontSize:I,color:p,...o.icon}),[p,I,L.isIndeterminate,o.icon]),f=de.exports.cloneElement(P,{__css:w,isIndeterminate:L.isIndeterminate,isChecked:L.isChecked});return At(pt.label,{__css:{...Fee,...o.container},className:Bt("chakra-checkbox",u),...g(),children:[Se("input",{className:"chakra-checkbox__input",...x(D,n)}),Se(pt.span,{__css:{...Nee,...o.control},className:"chakra-checkbox__control",...b(),children:f}),d&&Se(pt.span,{className:"chakra-checkbox__label",...C(),__css:{marginStart:c,...o.label},children:d})]})});Vee.displayName="Checkbox";function zee(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function zI(e,t){let n=zee(e);const r=10**(t!=null?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function _C(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function k2(e,t,n){return(e-t)*100/(n-t)}function jee(e,t,n){return(n-t)*e+t}function _2(e,t,n){const r=Math.round((e-t)/n)*n+t,i=_C(n);return zI(r,i)}function Rp(e,t,n){return e==null?e:(n{var f;return r==null?"":(f=Z0(r,o,n))!=null?f:""}),P=typeof i<"u",F=P?i:p,B=YF(Ja(F),o),N=n!=null?n:B,D=de.exports.useCallback(f=>{f!==F&&(P||I(f.toString()),d==null||d(f.toString(),Ja(f)))},[d,P,F]),T=de.exports.useCallback(f=>{let m=f;return u&&(m=Rp(m,a,c)),zI(m,N)},[N,u,c,a]),M=de.exports.useCallback((f=o)=>{let m;F===""?m=Ja(f):m=Ja(F)+f,m=T(m),D(m)},[T,o,D,F]),O=de.exports.useCallback((f=o)=>{let m;F===""?m=Ja(-f):m=Ja(F)-f,m=T(m),D(m)},[T,o,D,F]),L=de.exports.useCallback(()=>{var f;let m;r==null?m="":m=(f=Z0(r,o,n))!=null?f:a,D(m)},[r,n,o,D,a]),x=de.exports.useCallback(f=>{var m;const E=(m=Z0(f,o,N))!=null?m:a;D(E)},[N,o,D,a]),b=Ja(F);return{isOutOfRange:b>c||b{const o=typeof e=="function"?e():e!=null?e:document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e!=null?e:document;o==null||o.removeEventListener(t,i,r)}}function Yee(e){return"current"in e}var ZF=()=>typeof window<"u";function Zee(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var Xee=e=>ZF()&&e.test(navigator.vendor),Uee=e=>ZF()&&e.test(Zee()),Kee=()=>Uee(/mac|iphone|ipad|ipod/i),Jee=()=>Kee()&&Xee(/apple/i);function Qee(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o,a;return(a=(o=t.current)==null?void 0:o.ownerDocument)!=null?a:document};cl(i,"pointerdown",o=>{if(!Jee()||!r)return;const a=o.target,u=(n!=null?n:[t]).some(d=>{const p=Yee(d)?d.current:d;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&u&&(o.preventDefault(),a.focus())})}function XF(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}var UF={exports:{}},qee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ete=qee,tte=ete;function KF(){}function JF(){}JF.resetWarningCache=KF;var nte=function(){function e(r,i,o,a,c,u){if(u!==tte){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:JF,resetWarningCache:KF};return n.PropTypes=n,n};UF.exports=nte();var EC="data-focus-lock",QF="data-focus-lock-disabled",rte="data-no-focus-lock",ite="data-autofocus-inside",ote="data-no-autofocus";function ate(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ste(e,t){var n=de.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function qF(e,t){return ste(t||null,function(n){return e.forEach(function(r){return ate(r,n)})})}var X0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function e5(e){return e}function t5(e,t){t===void 0&&(t=e5);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(o),a=n}var u=function(){var p=a;a=[],p.forEach(o)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return i}function jI(e,t){return t===void 0&&(t=e5),t5(e,t)}function n5(e){e===void 0&&(e={});var t=t5(null);return t.options=Bo({async:!0,ssr:!1},e),t}var r5=function(e){var t=e.sideCar,n=TF(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Se(r,{...Bo({},n)})};r5.isSideCarExport=!0;function lte(e,t){return e.useMedium(t),r5}var i5=jI({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),o5=jI(),cte=jI(),ute=n5({async:!0}),dte=[],GI=de.exports.forwardRef(function(t,n){var r,i=de.exports.useState(),o=i[0],a=i[1],c=de.exports.useRef(),u=de.exports.useRef(!1),d=de.exports.useRef(null),p=t.children,I=t.disabled,P=t.noFocusGuards,F=t.persistentFocus,B=t.crossFrame,N=t.autoFocus;t.allowTextSelection;var D=t.group,T=t.className,M=t.whiteList,O=t.hasPositiveIndices,L=t.shards,x=L===void 0?dte:L,b=t.as,C=b===void 0?"div":b,g=t.lockProps,w=g===void 0?{}:g,f=t.sideCar,m=t.returnFocus,E=t.focusOptions,S=t.onActivation,y=t.onDeactivation,_=de.exports.useState({}),$=_[0],z=de.exports.useCallback(function(){d.current=d.current||document&&document.activeElement,c.current&&S&&S(c.current),u.current=!0},[S]),H=de.exports.useCallback(function(){u.current=!1,y&&y(c.current)},[y]);de.exports.useEffect(function(){I||(d.current=null)},[]);var X=de.exports.useCallback(function(ce){var Y=d.current;if(Y&&Y.focus){var ie=typeof m=="function"?m(Y):m;if(ie){var he=typeof ie=="object"?ie:void 0;d.current=null,ce?Promise.resolve().then(function(){return Y.focus(he)}):Y.focus(he)}}},[m]),Q=de.exports.useCallback(function(ce){u.current&&i5.useMedium(ce)},[]),re=o5.useMedium,ue=de.exports.useCallback(function(ce){c.current!==ce&&(c.current=ce,a(ce))},[]),le=qt((r={},r[QF]=I&&"disabled",r[EC]=D,r),w),ve=P!==!0,V=ve&&P!=="tail",Z=qF([n,ue]);return At(Ao,{children:[ve&&[Se("div",{"data-focus-guard":!0,tabIndex:I?-1:0,style:X0},"guard-first"),O?Se("div",{"data-focus-guard":!0,tabIndex:I?-1:1,style:X0},"guard-nearest"):null],!I&&Se(f,{id:$,sideCar:ute,observed:o,disabled:I,persistentFocus:F,crossFrame:B,autoFocus:N,whiteList:M,shards:x,onActivation:z,onDeactivation:H,returnFocus:X,focusOptions:E}),Se(C,{ref:Z,...le,className:T,onBlur:re,onFocus:Q,children:p}),V&&Se("div",{"data-focus-guard":!0,tabIndex:I?-1:0,style:X0})]})});GI.propTypes={};GI.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const a5=GI;function bm(e,t){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bm(e,t)}function Dl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bm(e,t)}function Er(e){return Er=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},Er(e)}function hte(e,t){if(Er(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Er(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s5(e){var t=hte(e,"string");return Er(t)==="symbol"?t:String(t)}function Hi(e,t,n){return t=s5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var o=[],a;function c(){a=e(o.map(function(d){return d.props})),t(a)}var u=function(d){Dl(p,d);function p(){return d.apply(this,arguments)||this}p.peek=function(){return a};var I=p.prototype;return I.componentDidMount=function(){o.push(this),c()},I.componentDidUpdate=function(){c()},I.componentWillUnmount=function(){var F=o.indexOf(this);o.splice(F,1),c()},I.render=function(){return Se(i,{...this.props})},p}(de.exports.PureComponent);return Hi(u,"displayName","SideEffect("+n(i)+")"),u}}var sa=function(e){for(var t=Array(e.length),n=0;n=0}).sort(wte)},Cte=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],ZI=Cte.join(","),Ste="".concat(ZI,", [data-focus-guard]"),v5=function(e,t){return sa((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?Ste:ZI)?[r]:[],v5(r))},[])},Ate=function(e,t){var n;return e instanceof HTMLIFrameElement&&((n=e.contentDocument)===null||n===void 0?void 0:n.body)?qy([e.contentDocument.body],t):[e]},qy=function(e,t){return e.reduce(function(n,r){var i,o=v5(r,t),a=(i=[]).concat.apply(i,o.map(function(c){return Ate(c,t)}));return n.concat(a,r.parentNode?sa(r.parentNode.querySelectorAll(ZI)).filter(function(c){return c===r}):[])},[])},Ite=function(e){var t=e.querySelectorAll("[".concat(ite,"]"));return sa(t).map(function(n){return qy([n])}).reduce(function(n,r){return n.concat(r)},[])},XI=function(e,t){return sa(e).filter(function(n){return d5(t,n)}).filter(function(n){return yte(n)})},E2=function(e,t){return t===void 0&&(t=new Map),sa(e).filter(function(n){return h5(t,n)})},TC=function(e,t,n){return m5(XI(qy(e,n),t),!0,n)},T2=function(e,t){return m5(XI(qy(e),t),!1)},kte=function(e,t){return XI(Ite(e),t)},Lc=function(e,t){return e.shadowRoot?Lc(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:sa(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?Lc(i,t):!1}return Lc(n,t)})},_te=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,c){return!t.has(c)})},y5=function(e){return e.parentNode?y5(e.parentNode):e},UI=function(e){var t=xm(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(EC);return n.push.apply(n,i?_te(sa(y5(r).querySelectorAll("[".concat(EC,'="').concat(i,'"]:not([').concat(QF,'="disabled"])')))):[r]),n},[])},Ete=function(e){try{return e()}catch{return}},yh=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?yh(t.shadowRoot):t instanceof HTMLIFrameElement&&Ete(function(){return t.contentWindow.document})?yh(t.contentWindow.document):t}},Tte=function(e,t){return e===t},Pte=function(e,t){return Boolean(sa(e.querySelectorAll("iframe")).some(function(n){return Tte(n,t)}))},b5=function(e,t){return t===void 0&&(t=yh(l5(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:UI(e).some(function(n){return Lc(n,t)||Pte(n,t)})},Rte=function(e){e===void 0&&(e=document);var t=yh(e);return t?sa(e.querySelectorAll("[".concat(rte,"]"))).some(function(n){return Lc(n,t)}):!1},Ote=function(e,t){return t.filter(g5).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},KI=function(e,t){return g5(e)&&e.name?Ote(e,t):e},Mte=function(e){var t=new Set;return e.forEach(function(n){return t.add(KI(n,e))}),e.filter(function(n){return t.has(n)})},P2=function(e){return e[0]&&e.length>1?KI(e[0],e):e[0]},R2=function(e,t){return e.length>1?e.indexOf(KI(e[t],e)):t},x5="NEW_FOCUS",Lte=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],c=YI(n);if(!(n&&e.indexOf(n)>=0)){var u=n!==void 0?t.indexOf(n):-1,d=r?t.indexOf(r):u,p=r?e.indexOf(r):-1,I=u-d,P=t.indexOf(o),F=t.indexOf(a),B=Mte(t),N=n!==void 0?B.indexOf(n):-1,D=N-(r?B.indexOf(r):u),T=R2(e,0),M=R2(e,i-1);if(u===-1||p===-1)return x5;if(!I&&p>=0)return p;if(u<=P&&c&&Math.abs(I)>1)return M;if(u>=F&&c&&Math.abs(I)>1)return T;if(I&&Math.abs(D)>1)return p;if(u<=P)return M;if(u>F)return T;if(I)return Math.abs(I)>1?p:(i+p+I)%i}},Dte=function(e){return function(t){var n,r=(n=f5(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$te=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=E2(r.filter(Dte(n)));return i&&i.length?P2(i):P2(E2(t))},PC=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&PC(e.parentNode.host||e.parentNode,t),t},U0=function(e,t){for(var n=PC(e),r=PC(t),i=0;i=0)return o}return!1},w5=function(e,t,n){var r=xm(e),i=xm(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(c){a=U0(a||c,c)||a,n.filter(Boolean).forEach(function(u){var d=U0(o,u);d&&(!a||Lc(d,a)?a=d:a=U0(d,a))})}),a},Nte=function(e,t){return e.reduce(function(n,r){return n.concat(kte(r,t))},[])},Fte=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(xte)},Bte=function(e,t){var n=yh(xm(e).length>0?document:l5(e).ownerDocument),r=UI(e).filter(wm),i=w5(n||e,e,r),o=new Map,a=T2(r,o),c=TC(r,o).filter(function(F){var B=F.node;return wm(B)});if(!(!c[0]&&(c=a,!c[0]))){var u=T2([i],o).map(function(F){var B=F.node;return B}),d=Fte(u,c),p=d.map(function(F){var B=F.node;return B}),I=Lte(p,u,n,t);if(I===x5){var P=$te(a,p,Nte(r,o));if(P)return{node:P};console.warn("focus-lock: cannot find any node to move focus into");return}return I===void 0?I:d[I]}},Wte=function(e){var t=UI(e).filter(wm),n=w5(e,e,t),r=new Map,i=TC([n],r,!0),o=TC(t,r).filter(function(a){var c=a.node;return wm(c)}).map(function(a){var c=a.node;return c});return i.map(function(a){var c=a.node,u=a.index;return{node:c,index:u,lockItem:o.indexOf(c)>=0,guard:YI(c)}})},Hte=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},K0=0,J0=!1,Vte=function(e,t,n){n===void 0&&(n={});var r=Bte(e,t);if(!J0&&r){if(K0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),J0=!0,setTimeout(function(){J0=!1},1);return}K0++,Hte(r.node,n.focusOptions),K0--}};const C5=Vte;function S5(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var zte=function(){return document&&document.activeElement===document.body},jte=function(){return zte()||Rte()},Dc=null,gc=null,$c=null,bh=!1,Gte=function(){return!0},Yte=function(t){return(Dc.whiteList||Gte)(t)},Zte=function(t,n){$c={observerNode:t,portaledElement:n}},Xte=function(t){return $c&&$c.portaledElement===t};function O2(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var Ute=function(t){return t&&"current"in t?t.current:t},Kte=function(t){return t?Boolean(bh):bh==="meanwhile"},Jte=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Qte=function(t,n){return n.some(function(r){return Jte(t,r,r)})},Cm=function(){var t=!1;if(Dc){var n=Dc,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,c=n.crossFrame,u=n.focusOptions,d=r||$c&&$c.portaledElement,p=document&&document.activeElement;if(d){var I=[d].concat(a.map(Ute).filter(Boolean));if((!p||Yte(p))&&(i||Kte(c)||!jte()||!gc&&o)&&(d&&!(b5(I)||p&&Qte(p,I)||Xte(p))&&(document&&!gc&&p&&!o?(p.blur&&p.blur(),document.body.focus()):(t=C5(I,gc,{focusOptions:u}),$c={})),bh=!1,gc=document&&document.activeElement),document){var P=document&&document.activeElement,F=Wte(I),B=F.map(function(N){var D=N.node;return D}).indexOf(P);B>-1&&(F.filter(function(N){var D=N.guard,T=N.node;return D&&T.dataset.focusAutoGuard}).forEach(function(N){var D=N.node;return D.removeAttribute("tabIndex")}),O2(B,F.length,1,F),O2(B,-1,-1,F))}}}return t},A5=function(t){Cm()&&t&&(t.stopPropagation(),t.preventDefault())},JI=function(){return S5(Cm)},qte=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Zte(r,n)},ene=function(){return null},I5=function(){bh="just",setTimeout(function(){bh="meanwhile"},0)},tne=function(){document.addEventListener("focusin",A5),document.addEventListener("focusout",JI),window.addEventListener("blur",I5)},nne=function(){document.removeEventListener("focusin",A5),document.removeEventListener("focusout",JI),window.removeEventListener("blur",I5)};function rne(e){return e.filter(function(t){var n=t.disabled;return!n})}function ine(e){var t=e.slice(-1)[0];t&&!Dc&&tne();var n=Dc,r=n&&t&&t.id===n.id;Dc=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(gc=null,(!r||n.observed!==t.observed)&&t.onActivation(),Cm(),S5(Cm)):(nne(),gc=null)}i5.assignSyncMedium(qte);o5.assignMedium(JI);cte.assignMedium(function(e){return e({moveFocusInside:C5,focusInside:b5})});const one=fte(rne,ine)(ene);var k5=de.exports.forwardRef(function(t,n){return Se(a5,{sideCar:one,ref:n,...t})}),_5=a5.propTypes||{};_5.sideCar;XF(_5,["sideCar"]);k5.propTypes={};const M2=k5;function E5(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function T5(e){var t;if(!E5(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function ane(e){var t,n;return(n=(t=P5(e))==null?void 0:t.defaultView)!=null?n:window}function P5(e){return E5(e)?e.ownerDocument:document}function sne(e){return P5(e).activeElement}var R5=e=>e.hasAttribute("tabindex"),lne=e=>R5(e)&&e.tabIndex===-1;function cne(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function O5(e){return e.parentElement&&O5(e.parentElement)?!0:e.hidden}function une(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function M5(e){if(!T5(e)||O5(e)||cne(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():une(e)?!0:R5(e)}function dne(e){return e?T5(e)&&M5(e)&&!lne(e):!1}var hne=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],fne=hne.join(),pne=e=>e.offsetWidth>0&&e.offsetHeight>0;function L5(e){const t=Array.from(e.querySelectorAll(fne));return t.unshift(e),t.filter(n=>M5(n)&&pne(n))}var L2,gne=(L2=M2.default)!=null?L2:M2,D5=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:c,persistentFocus:u,lockFocusAcrossFrames:d}=e,p=de.exports.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&L5(r.current).length===0&&requestAnimationFrame(()=>{var B;(B=r.current)==null||B.focus()})},[t,r]),I=de.exports.useCallback(()=>{var F;(F=n==null?void 0:n.current)==null||F.focus()},[n]);return Se(gne,{crossFrame:d,persistentFocus:u,autoFocus:c,disabled:a,onActivation:p,onDeactivation:I,returnFocus:i&&!n,children:o})};D5.displayName="FocusLock";var mne=GK?de.exports.useLayoutEffect:de.exports.useEffect;function RC(e,t=[]){const n=de.exports.useRef(e);return mne(()=>{n.current=e}),de.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function pke(e){const{ref:t,handler:n,enabled:r=!0}=e,i=RC(n),a=de.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;de.exports.useEffect(()=>{if(!r)return;const c=I=>{Q0(I,t)&&(a.isPointerDown=!0)},u=I=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&n&&Q0(I,t)&&(a.isPointerDown=!1,i(I))},d=I=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&Q0(I,t)&&(a.isPointerDown=!1,i(I))},p=q$(t.current);return p.addEventListener("mousedown",c,!0),p.addEventListener("mouseup",u,!0),p.addEventListener("touchstart",c,!0),p.addEventListener("touchend",d,!0),()=>{p.removeEventListener("mousedown",c,!0),p.removeEventListener("mouseup",u,!0),p.removeEventListener("touchstart",c,!0),p.removeEventListener("touchend",d,!0)}},[n,t,i,a,r])}function Q0(e,t){var n;const r=e.target;return e.button>0||r&&!q$(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function vne(e,t){const n=de.exports.useId();return de.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function yne(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function gke(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=RC(n),a=RC(t),[c,u]=de.exports.useState(e.defaultIsOpen||!1),[d,p]=yne(r,c),I=vne(i,"disclosure"),P=de.exports.useCallback(()=>{d||u(!1),a==null||a()},[d,a]),F=de.exports.useCallback(()=>{d||u(!0),o==null||o()},[d,o]),B=de.exports.useCallback(()=>{(p?P:F)()},[p,F,P]);return{isOpen:!!p,onOpen:F,onClose:P,onToggle:B,isControlled:d,getButtonProps:(N={})=>({...N,"aria-expanded":p,"aria-controls":I,onClick:KK(N.onClick,B)}),getDisclosureProps:(N={})=>({...N,hidden:!p,id:I})}}var bne=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var I=D2[t.format]||D2.default;window.clipboardData.setData(I,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(c),o.selectNodeContents(c),a.addRange(o);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");u=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(I){n&&console.error("unable to copy using clipboardData: ",I),n&&console.error("falling back to prompt"),r=Cne("message"in t?t.message:wne),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}var Ane=Sne,[Ine,$5]=In({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),kne=It(function(t,n){const r=zr("Input",t),{children:i,className:o,...a}=Dn(t),c=Bt("chakra-input__group",o),u={},d=BI(i),p=r.field;d.forEach(P=>{var F,B;!r||(p&&P.type.id==="InputLeftElement"&&(u.paddingStart=(F=p.height)!=null?F:p.h),p&&P.type.id==="InputRightElement"&&(u.paddingEnd=(B=p.height)!=null?B:p.h),P.type.id==="InputRightAddon"&&(u.borderEndRadius=0),P.type.id==="InputLeftAddon"&&(u.borderStartRadius=0))});const I=d.map(P=>{var F,B;const N=nI({size:((F=P.props)==null?void 0:F.size)||t.size,variant:((B=P.props)==null?void 0:B.variant)||t.variant});return P.type.id!=="Input"?de.exports.cloneElement(P,N):de.exports.cloneElement(P,Object.assign(N,u,P.props))});return Se(pt.div,{className:c,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate"},"data-group":!0,...a,children:Se(Ine,{value:r,children:I})})});kne.displayName="InputGroup";var _ne={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Ene=pt("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),QI=It(function(t,n){var r;const{placement:i="left",...o}=t,a=(r=_ne[i])!=null?r:{},c=$5();return Se(Ene,{ref:n,...o,__css:{...c.addon,...a}})});QI.displayName="InputAddon";var N5=It(function(t,n){return Se(QI,{ref:n,placement:"left",...t,className:Bt("chakra-input__left-addon",t.className)})});N5.displayName="InputLeftAddon";N5.id="InputLeftAddon";var F5=It(function(t,n){return Se(QI,{ref:n,placement:"right",...t,className:Bt("chakra-input__right-addon",t.className)})});F5.displayName="InputRightAddon";F5.id="InputRightAddon";var Tne=pt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),eb=It(function(t,n){var r,i;const{placement:o="left",...a}=t,c=$5(),u=c.field,p={[o==="left"?"insetStart":"insetEnd"]:"0",width:(r=u==null?void 0:u.height)!=null?r:u==null?void 0:u.h,height:(i=u==null?void 0:u.height)!=null?i:u==null?void 0:u.h,fontSize:u==null?void 0:u.fontSize,...c.element};return Se(Tne,{ref:n,__css:p,...a})});eb.id="InputElement";eb.displayName="InputElement";var B5=It(function(t,n){const{className:r,...i}=t,o=Bt("chakra-input__left-element",r);return Se(eb,{ref:n,placement:"left",className:o,...i})});B5.id="InputLeftElement";B5.displayName="InputLeftElement";var W5=It(function(t,n){const{className:r,...i}=t,o=Bt("chakra-input__right-element",r);return Se(eb,{ref:n,placement:"right",className:o,...i})});W5.id="InputRightElement";W5.displayName="InputRightElement";var H5=It(function(t,n){const{htmlSize:r,...i}=t,o=zr("Input",i),a=Dn(i),c=WI(a),u=Bt("chakra-input",t.className);return Se(pt.input,{size:r,...c,__css:o.field,ref:n,className:u})});H5.displayName="Input";H5.id="Input";var V5=It(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:c,row:u,autoFlow:d,autoRows:p,templateRows:I,autoColumns:P,templateColumns:F,...B}=t,N={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:P,gridColumn:c,gridRow:u,gridAutoFlow:d,gridAutoRows:p,gridTemplateRows:I,gridTemplateColumns:F};return Se(pt.div,{ref:n,__css:N,...B})});V5.displayName="Grid";var z5=Object.freeze(["base","sm","md","lg","xl","2xl"]);function af(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):yr(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function Pne(e,t=z5){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}var Rne=It(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:c,...u}=t,d=Fs(),p=c?Mne(c,d):Lne(r);return Se(V5,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:p,...u})});Rne.displayName="SimpleGrid";function One(e){return typeof e=="number"?`${e}px`:e}function Mne(e,t){return af(e,n=>{const r=cG("sizes",n,One(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function Lne(e){return af(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Dne=It(function(t,n){const r=Eo("Text",t),{className:i,align:o,decoration:a,casing:c,...u}=Dn(t),d=nI({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Se(pt.p,{ref:n,className:Bt("chakra-text",t.className),...d,...u,__css:r})});Dne.displayName="Text";var j5=e=>Se(pt.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});j5.displayName="StackItem";var OC="& > *:not(style) ~ *:not(style)";function $ne(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[OC]:af(n,i=>r[i])}}function Nne(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":af(n,i=>r[i])}}var qI=It((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:c,children:u,divider:d,className:p,shouldWrapChildren:I,...P}=e,F=n?"row":r!=null?r:"column",B=de.exports.useMemo(()=>$ne({direction:F,spacing:a}),[F,a]),N=de.exports.useMemo(()=>Nne({spacing:a,direction:F}),[a,F]),D=!!d,T=!I&&!D,M=de.exports.useMemo(()=>{const L=BI(u);return T?L:L.map((x,b)=>{const C=typeof x.key<"u"?x.key:b,g=b+1===L.length,f=I?Se(j5,{children:x},C):x;if(!D)return f;const m=de.exports.cloneElement(d,{__css:N}),E=g?null:m;return At(de.exports.Fragment,{children:[f,E]},C)})},[d,N,D,T,I,u]),O=Bt("chakra-stack",p);return Se(pt.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:B.flexDirection,flexWrap:c,className:O,__css:D?{}:{[OC]:B[OC]},...P,children:M})});qI.displayName="Stack";var Fne=It((e,t)=>Se(qI,{align:"center",...e,direction:"column",ref:t}));Fne.displayName="VStack";var Bne=It((e,t)=>Se(qI,{align:"center",...e,direction:"row",ref:t}));Bne.displayName="HStack";function $2(e){return af(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Wne=It(function(t,n){const{area:r,colSpan:i,colStart:o,colEnd:a,rowEnd:c,rowSpan:u,rowStart:d,...p}=t,I=nI({gridArea:r,gridColumn:$2(i),gridRow:$2(u),gridColumnStart:o,gridColumnEnd:a,gridRowStart:d,gridRowEnd:c});return Se(pt.div,{ref:n,__css:I,...p})});Wne.displayName="GridItem";var G5=pt("div");G5.displayName="Box";var Y5=It(function(t,n){const{size:r,centerContent:i=!0,...o}=t;return Se(G5,{ref:n,boxSize:r,__css:{...i?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});Y5.displayName="Square";var Hne=It(function(t,n){const{size:r,...i}=t;return Se(Y5,{size:r,ref:n,borderRadius:"9999px",...i})});Hne.displayName="Circle";var Vne=It(function(t,n){const r=Eo("Link",t),{className:i,isExternal:o,...a}=Dn(t);return Se(pt.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:Bt("chakra-link",i),...a,__css:r})});Vne.displayName="Link";var zne=It(function(t,n){const r=Eo("Badge",t),{className:i,...o}=Dn(t);return Se(pt.span,{ref:n,className:Bt("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});zne.displayName="Badge";var jne=It(function(t,n){const{className:r,centerContent:i,...o}=Dn(t),a=Eo("Container",t);return Se(pt.div,{ref:n,className:Bt("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});jne.displayName="Container";var Gne=It(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:c,grow:u,shrink:d,...p}=t,I={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:c,flexGrow:u,flexShrink:d};return Se(pt.div,{ref:n,__css:I,...p})});Gne.displayName="Flex";function Yne(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=k6(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(d=>d!=null);const[c,u]=de.exports.useState(()=>o.map((d,p)=>({media:d,matches:n?!!a[p]:i().matchMedia(d).matches})));return de.exports.useEffect(()=>{const d=i();u(o.map(P=>({media:P,matches:d.matchMedia(P).matches})));const p=o.map(P=>d.matchMedia(P)),I=P=>{u(F=>F.slice().map(B=>B.media===P.media?{...B,matches:P.matches}:B))};return p.forEach(P=>{typeof P.addListener=="function"?P.addListener(I):P.addEventListener("change",I)}),()=>{p.forEach(P=>{typeof P.removeListener=="function"?P.removeListener(I):P.removeEventListener("change",I)})}},[i]),c.map(d=>d.matches)}function Zne(e,t,n=z5){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function Xne(e){var t,n;const r=yr(e)?e:{fallback:e!=null?e:"base"},o=Fs().__breakpoints.details.map(({minMaxQuery:d,breakpoint:p})=>({breakpoint:p,query:d.replace("@media screen and ","")})),a=o.map(d=>d.breakpoint===r.fallback),u=Yne(o.map(d=>d.query),{fallback:a,ssr:r.ssr}).findIndex(d=>d==!0);return(n=(t=o[u])==null?void 0:t.breakpoint)!=null?n:r.fallback}function mke(e,t){var n;const r=yr(t)?t:{fallback:t!=null?t:"base"},i=Xne(r),o=Fs();if(!i)return;const a=Array.from(((n=o.__breakpoints)==null?void 0:n.keys)||[]),c=Array.isArray(e)?Object.fromEntries(Object.entries(Pne(e,a)).map(([u,d])=>[u,d])):e;return Zne(c,i,a)}function Une(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function Kne(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=de.exports.useState([]),o=de.exports.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)},c=()=>{a(),o.current=setTimeout(()=>{i([]),o.current=null},t)};de.exports.useEffect(()=>a,[]);function u(d){return p=>{if(p.key==="Backspace"){const I=[...r];I.pop(),i(I);return}if(Une(p)){const I=r.concat(p.key);n(p)&&(p.preventDefault(),p.stopPropagation()),i(I),d(I.join("")),c()}}}return u}function Jne(e,t,n,r){if(t==null)return r;if(!r)return e.find(a=>n(a).toLowerCase().startsWith(t.toLowerCase()));const i=e.filter(o=>n(o).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let o;return i.includes(r)?(o=i.indexOf(r)+1,o===i.length&&(o=0),i[o]):(o=e.indexOf(i[0]),e[o])}return r}function Qne(){const e=de.exports.useRef(new Map),t=e.current,n=de.exports.useCallback((i,o,a,c)=>{e.current.set(a,{type:o,el:i,options:c}),i.addEventListener(o,a,c)},[]),r=de.exports.useCallback((i,o,a,c)=>{i.removeEventListener(o,a,c),e.current.delete(a)},[]);return de.exports.useEffect(()=>()=>{t.forEach((i,o)=>{r(i.el,i.type,o,i.options)})},[r,t]),{add:n,remove:r}}function q0(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function Z5(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:a,onMouseUp:c,onClick:u,onKeyDown:d,onKeyUp:p,tabIndex:I,onMouseOver:P,onMouseLeave:F,...B}=e,[N,D]=de.exports.useState(!0),[T,M]=de.exports.useState(!1),O=Qne(),L=z=>{!z||z.tagName!=="BUTTON"&&D(!1)},x=N?I:I||0,b=n&&!r,C=de.exports.useCallback(z=>{if(n){z.stopPropagation(),z.preventDefault();return}z.currentTarget.focus(),u==null||u(z)},[n,u]),g=de.exports.useCallback(z=>{T&&q0(z)&&(z.preventDefault(),z.stopPropagation(),M(!1),O.remove(document,"keyup",g,!1))},[T,O]),w=de.exports.useCallback(z=>{if(d==null||d(z),n||z.defaultPrevented||z.metaKey||!q0(z.nativeEvent)||N)return;const H=i&&z.key==="Enter";o&&z.key===" "&&(z.preventDefault(),M(!0)),H&&(z.preventDefault(),z.currentTarget.click()),O.add(document,"keyup",g,!1)},[n,N,d,i,o,O,g]),f=de.exports.useCallback(z=>{if(p==null||p(z),n||z.defaultPrevented||z.metaKey||!q0(z.nativeEvent)||N)return;o&&z.key===" "&&(z.preventDefault(),M(!1),z.currentTarget.click())},[o,N,n,p]),m=de.exports.useCallback(z=>{z.button===0&&(M(!1),O.remove(document,"mouseup",m,!1))},[O]),E=de.exports.useCallback(z=>{if(z.button!==0)return;if(n){z.stopPropagation(),z.preventDefault();return}N||M(!0),z.currentTarget.focus({preventScroll:!0}),O.add(document,"mouseup",m,!1),a==null||a(z)},[n,N,a,O,m]),S=de.exports.useCallback(z=>{z.button===0&&(N||M(!1),c==null||c(z))},[c,N]),y=de.exports.useCallback(z=>{if(n){z.preventDefault();return}P==null||P(z)},[n,P]),_=de.exports.useCallback(z=>{T&&(z.preventDefault(),M(!1)),F==null||F(z)},[T,F]),$=_n(t,L);return N?{...B,ref:$,type:"button","aria-disabled":b?void 0:n,disabled:b,onClick:C,onMouseDown:a,onMouseUp:c,onKeyUp:p,onKeyDown:d,onMouseOver:P,onMouseLeave:F}:{...B,ref:$,role:"button","data-active":Qt(T),"aria-disabled":n?"true":void 0,tabIndex:b?void 0:x,onClick:C,onMouseDown:E,onMouseUp:S,onKeyUp:f,onKeyDown:w,onMouseOver:y,onMouseLeave:_}}function qne(e){const t=e.current;if(!t)return!1;const n=sne(t);return!n||t.contains(n)?!1:!!dne(n)}function X5(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;La(()=>{if(!o||qne(e))return;const a=(i==null?void 0:i.current)||e.current;a&&requestAnimationFrame(()=>{a.focus()})},[o,e,i])}var ere={preventScroll:!0,shouldFocus:!1};function tre(e,t=ere){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=nre(e)?e.current:e,c=i&&o,u=de.exports.useRef(c),d=de.exports.useRef(o);Zo(()=>{!d.current&&o&&(u.current=c),d.current=o},[o,c]);const p=de.exports.useCallback(()=>{if(!(!o||!a||!u.current)&&(u.current=!1,!a.contains(document.activeElement)))if(n!=null&&n.current)requestAnimationFrame(()=>{var I;(I=n.current)==null||I.focus({preventScroll:r})});else{const I=L5(a);I.length>0&&requestAnimationFrame(()=>{I[0].focus({preventScroll:r})})}},[o,r,a,n]);La(()=>{p()},[p]),cl(a,"transitionend",p)}function nre(e){return"current"in e}var Hl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),fr={arrowShadowColor:Hl("--popper-arrow-shadow-color"),arrowSize:Hl("--popper-arrow-size","8px"),arrowSizeHalf:Hl("--popper-arrow-size-half"),arrowBg:Hl("--popper-arrow-bg"),transformOrigin:Hl("--popper-transform-origin"),arrowOffset:Hl("--popper-arrow-offset")};function rre(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var ire={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ore=e=>ire[e],N2={scroll:!0,resize:!0};function are(e){let t;return typeof e=="object"?t={enabled:!0,options:{...N2,...e}}:t={enabled:e,options:N2},t}var sre={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},lre={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{F2(e)},effect:({state:e})=>()=>{F2(e)}},F2=e=>{e.elements.popper.style.setProperty(fr.transformOrigin.var,ore(e.placement))},cre={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{ure(e)}},ure=e=>{var t;if(!e.placement)return;const n=dre(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:fr.arrowSize.varRef,height:fr.arrowSize.varRef,zIndex:-1});const r={[fr.arrowSizeHalf.var]:`calc(${fr.arrowSize.varRef} / 2)`,[fr.arrowOffset.var]:`calc(${fr.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},dre=e=>{if(e.startsWith("top"))return{property:"bottom",value:fr.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:fr.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:fr.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:fr.arrowOffset.varRef}},hre={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{B2(e)},effect:({state:e})=>()=>{B2(e)}},B2=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=rre(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:fr.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},fre={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},pre={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function gre(e,t="ltr"){var n,r;const i=((n=fre[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=pre[e])!=null?r:i}var wi="top",ro="bottom",io="right",Ci="left",ek="auto",sf=[wi,ro,io,Ci],qc="start",xh="end",mre="clippingParents",U5="viewport",Vu="popper",vre="reference",W2=sf.reduce(function(e,t){return e.concat([t+"-"+qc,t+"-"+xh])},[]),K5=[].concat(sf,[ek]).reduce(function(e,t){return e.concat([t,t+"-"+qc,t+"-"+xh])},[]),yre="beforeRead",bre="read",xre="afterRead",wre="beforeMain",Cre="main",Sre="afterMain",Are="beforeWrite",Ire="write",kre="afterWrite",_re=[yre,bre,xre,wre,Cre,Sre,Are,Ire,kre];function na(e){return e?(e.nodeName||"").toLowerCase():null}function oo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wl(e){var t=oo(e).Element;return e instanceof t||e instanceof Element}function qi(e){var t=oo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tk(e){if(typeof ShadowRoot>"u")return!1;var t=oo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ere(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!qi(o)||!na(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var c=i[a];c===!1?o.removeAttribute(a):o.setAttribute(a,c===!0?"":c)}))})}function Tre(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(u,d){return u[d]="",u},{});!qi(i)||!na(i)||(Object.assign(i.style,c),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}const Pre={name:"applyStyles",enabled:!0,phase:"write",fn:Ere,effect:Tre,requires:["computeStyles"]};function Qo(e){return e.split("-")[0]}var ul=Math.max,Sm=Math.min,eu=Math.round;function MC(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function J5(){return!/^((?!chrome|android).)*safari/i.test(MC())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&qi(e)&&(i=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var a=wl(e)?oo(e):window,c=a.visualViewport,u=!J5()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/i,p=(r.top+(u&&c?c.offsetTop:0))/o,I=r.width/i,P=r.height/o;return{width:I,height:P,top:p,right:d+I,bottom:p+P,left:d,x:d,y:p}}function nk(e){var t=tu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Q5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Da(e){return oo(e).getComputedStyle(e)}function Rre(e){return["table","td","th"].indexOf(na(e))>=0}function Bs(e){return((wl(e)?e.ownerDocument:e.document)||window.document).documentElement}function tb(e){return na(e)==="html"?e:e.assignedSlot||e.parentNode||(tk(e)?e.host:null)||Bs(e)}function H2(e){return!qi(e)||Da(e).position==="fixed"?null:e.offsetParent}function Ore(e){var t=/firefox/i.test(MC()),n=/Trident/i.test(MC());if(n&&qi(e)){var r=Da(e);if(r.position==="fixed")return null}var i=tb(e);for(tk(i)&&(i=i.host);qi(i)&&["html","body"].indexOf(na(i))<0;){var o=Da(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function lf(e){for(var t=oo(e),n=H2(e);n&&Rre(n)&&Da(n).position==="static";)n=H2(n);return n&&(na(n)==="html"||na(n)==="body"&&Da(n).position==="static")?t:n||Ore(e)||t}function rk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dd(e,t,n){return ul(e,Sm(t,n))}function Mre(e,t,n){var r=Dd(e,t,n);return r>n?n:r}function q5(){return{top:0,right:0,bottom:0,left:0}}function eB(e){return Object.assign({},q5(),e)}function tB(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lre=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eB(typeof t!="number"?t:tB(t,sf))};function Dre(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Qo(n.placement),u=rk(c),d=[Ci,io].indexOf(c)>=0,p=d?"height":"width";if(!(!o||!a)){var I=Lre(i.padding,n),P=nk(o),F=u==="y"?wi:Ci,B=u==="y"?ro:io,N=n.rects.reference[p]+n.rects.reference[u]-a[u]-n.rects.popper[p],D=a[u]-n.rects.reference[u],T=lf(o),M=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,O=N/2-D/2,L=I[F],x=M-P[p]-I[B],b=M/2-P[p]/2+O,C=Dd(L,b,x),g=u;n.modifiersData[r]=(t={},t[g]=C,t.centerOffset=C-b,t)}}function $re(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!Q5(t.elements.popper,i)||(t.elements.arrow=i))}const Nre={name:"arrow",enabled:!0,phase:"main",fn:Dre,effect:$re,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var Fre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bre(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:eu(t*i)/i||0,y:eu(n*i)/i||0}}function V2(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,I=e.isFixed,P=a.x,F=P===void 0?0:P,B=a.y,N=B===void 0?0:B,D=typeof p=="function"?p({x:F,y:N}):{x:F,y:N};F=D.x,N=D.y;var T=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),O=Ci,L=wi,x=window;if(d){var b=lf(n),C="clientHeight",g="clientWidth";if(b===oo(n)&&(b=Bs(n),Da(b).position!=="static"&&c==="absolute"&&(C="scrollHeight",g="scrollWidth")),b=b,i===wi||(i===Ci||i===io)&&o===xh){L=ro;var w=I&&b===x&&x.visualViewport?x.visualViewport.height:b[C];N-=w-r.height,N*=u?1:-1}if(i===Ci||(i===wi||i===ro)&&o===xh){O=io;var f=I&&b===x&&x.visualViewport?x.visualViewport.width:b[g];F-=f-r.width,F*=u?1:-1}}var m=Object.assign({position:c},d&&Fre),E=p===!0?Bre({x:F,y:N}):{x:F,y:N};if(F=E.x,N=E.y,u){var S;return Object.assign({},m,(S={},S[L]=M?"0":"",S[O]=T?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+F+"px, "+N+"px)":"translate3d("+F+"px, "+N+"px, 0)",S))}return Object.assign({},m,(t={},t[L]=M?N+"px":"",t[O]=T?F+"px":"",t.transform="",t))}function Wre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Qo(t.placement),variation:nu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Hre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wre,data:{}};var Xf={passive:!0};function Vre(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,c=a===void 0?!0:a,u=oo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(p){p.addEventListener("scroll",n.update,Xf)}),c&&u.addEventListener("resize",n.update,Xf),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Xf)}),c&&u.removeEventListener("resize",n.update,Xf)}}const zre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vre,data:{}};var jre={left:"right",right:"left",bottom:"top",top:"bottom"};function Op(e){return e.replace(/left|right|bottom|top/g,function(t){return jre[t]})}var Gre={start:"end",end:"start"};function z2(e){return e.replace(/start|end/g,function(t){return Gre[t]})}function ik(e){var t=oo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ok(e){return tu(Bs(e)).left+ik(e).scrollLeft}function Yre(e,t){var n=oo(e),r=Bs(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;var d=J5();(d||!d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c+ok(e),y:u}}function Zre(e){var t,n=Bs(e),r=ik(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ul(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ul(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+ok(e),u=-r.scrollTop;return Da(i||n).direction==="rtl"&&(c+=ul(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:c,y:u}}function ak(e){var t=Da(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nB(e){return["html","body","#document"].indexOf(na(e))>=0?e.ownerDocument.body:qi(e)&&ak(e)?e:nB(tb(e))}function $d(e,t){var n;t===void 0&&(t=[]);var r=nB(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=oo(r),a=i?[o].concat(o.visualViewport||[],ak(r)?r:[]):r,c=t.concat(a);return i?c:c.concat($d(tb(a)))}function LC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xre(e,t){var n=tu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function j2(e,t,n){return t===U5?LC(Yre(e,n)):wl(t)?Xre(t,n):LC(Zre(Bs(e)))}function Ure(e){var t=$d(tb(e)),n=["absolute","fixed"].indexOf(Da(e).position)>=0,r=n&&qi(e)?lf(e):e;return wl(r)?t.filter(function(i){return wl(i)&&Q5(i,r)&&na(i)!=="body"}):[]}function Kre(e,t,n,r){var i=t==="clippingParents"?Ure(e):[].concat(t),o=[].concat(i,[n]),a=o[0],c=o.reduce(function(u,d){var p=j2(e,d,r);return u.top=ul(p.top,u.top),u.right=Sm(p.right,u.right),u.bottom=Sm(p.bottom,u.bottom),u.left=ul(p.left,u.left),u},j2(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function rB(e){var t=e.reference,n=e.element,r=e.placement,i=r?Qo(r):null,o=r?nu(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(i){case wi:u={x:a,y:t.y-n.height};break;case ro:u={x:a,y:t.y+t.height};break;case io:u={x:t.x+t.width,y:c};break;case Ci:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=i?rk(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case qc:u[d]=u[d]-(t[p]/2-n[p]/2);break;case xh:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function wh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,c=n.boundary,u=c===void 0?mre:c,d=n.rootBoundary,p=d===void 0?U5:d,I=n.elementContext,P=I===void 0?Vu:I,F=n.altBoundary,B=F===void 0?!1:F,N=n.padding,D=N===void 0?0:N,T=eB(typeof D!="number"?D:tB(D,sf)),M=P===Vu?vre:Vu,O=e.rects.popper,L=e.elements[B?M:P],x=Kre(wl(L)?L:L.contextElement||Bs(e.elements.popper),u,p,a),b=tu(e.elements.reference),C=rB({reference:b,element:O,strategy:"absolute",placement:i}),g=LC(Object.assign({},O,C)),w=P===Vu?g:b,f={top:x.top-w.top+T.top,bottom:w.bottom-x.bottom+T.bottom,left:x.left-w.left+T.left,right:w.right-x.right+T.right},m=e.modifiersData.offset;if(P===Vu&&m){var E=m[i];Object.keys(f).forEach(function(S){var y=[io,ro].indexOf(S)>=0?1:-1,_=[wi,ro].indexOf(S)>=0?"y":"x";f[S]+=E[_]*y})}return f}function Jre(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?K5:u,p=nu(r),I=p?c?W2:W2.filter(function(B){return nu(B)===p}):sf,P=I.filter(function(B){return d.indexOf(B)>=0});P.length===0&&(P=I);var F=P.reduce(function(B,N){return B[N]=wh(e,{placement:N,boundary:i,rootBoundary:o,padding:a})[Qo(N)],B},{});return Object.keys(F).sort(function(B,N){return F[B]-F[N]})}function Qre(e){if(Qo(e)===ek)return[];var t=Op(e);return[z2(e),t,z2(t)]}function qre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,p=n.boundary,I=n.rootBoundary,P=n.altBoundary,F=n.flipVariations,B=F===void 0?!0:F,N=n.allowedAutoPlacements,D=t.options.placement,T=Qo(D),M=T===D,O=u||(M||!B?[Op(D)]:Qre(D)),L=[D].concat(O).reduce(function(ve,V){return ve.concat(Qo(V)===ek?Jre(t,{placement:V,boundary:p,rootBoundary:I,padding:d,flipVariations:B,allowedAutoPlacements:N}):V)},[]),x=t.rects.reference,b=t.rects.popper,C=new Map,g=!0,w=L[0],f=0;f=0,_=y?"width":"height",$=wh(t,{placement:m,boundary:p,rootBoundary:I,altBoundary:P,padding:d}),z=y?S?io:Ci:S?ro:wi;x[_]>b[_]&&(z=Op(z));var H=Op(z),X=[];if(o&&X.push($[E]<=0),c&&X.push($[z]<=0,$[H]<=0),X.every(function(ve){return ve})){w=m,g=!1;break}C.set(m,X)}if(g)for(var Q=B?3:1,re=function(V){var Z=L.find(function(ce){var Y=C.get(ce);if(Y)return Y.slice(0,V).every(function(ie){return ie})});if(Z)return w=Z,"break"},ue=Q;ue>0;ue--){var le=re(ue);if(le==="break")break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}const eie={name:"flip",enabled:!0,phase:"main",fn:qre,requiresIfExists:["offset"],data:{_skip:!1}};function G2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y2(e){return[wi,io,ro,Ci].some(function(t){return e[t]>=0})}function tie(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=wh(t,{elementContext:"reference"}),c=wh(t,{altBoundary:!0}),u=G2(a,r),d=G2(c,i,o),p=Y2(u),I=Y2(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:I},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":I})}const nie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tie};function rie(e,t,n){var r=Qo(e),i=[Ci,wi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],c=o[1];return a=a||0,c=(c||0)*i,[Ci,io].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function iie(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=K5.reduce(function(p,I){return p[I]=rie(I,t.rects,o),p},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const oie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iie};function aie(e){var t=e.state,n=e.name;t.modifiersData[n]=rB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const sie={name:"popperOffsets",enabled:!0,phase:"read",fn:aie,data:{}};function lie(e){return e==="x"?"y":"x"}function cie(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,I=n.padding,P=n.tether,F=P===void 0?!0:P,B=n.tetherOffset,N=B===void 0?0:B,D=wh(t,{boundary:u,rootBoundary:d,padding:I,altBoundary:p}),T=Qo(t.placement),M=nu(t.placement),O=!M,L=rk(T),x=lie(L),b=t.modifiersData.popperOffsets,C=t.rects.reference,g=t.rects.popper,w=typeof N=="function"?N(Object.assign({},t.rects,{placement:t.placement})):N,f=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),m=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(!!b){if(o){var S,y=L==="y"?wi:Ci,_=L==="y"?ro:io,$=L==="y"?"height":"width",z=b[L],H=z+D[y],X=z-D[_],Q=F?-g[$]/2:0,re=M===qc?C[$]:g[$],ue=M===qc?-g[$]:-C[$],le=t.elements.arrow,ve=F&&le?nk(le):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:q5(),Z=V[y],ce=V[_],Y=Dd(0,C[$],ve[$]),ie=O?C[$]/2-Q-Y-Z-f.mainAxis:re-Y-Z-f.mainAxis,he=O?-C[$]/2+Q+Y+ce+f.mainAxis:ue+Y+ce+f.mainAxis,fe=t.elements.arrow&&lf(t.elements.arrow),Ce=fe?L==="y"?fe.clientTop||0:fe.clientLeft||0:0,Pe=(S=m==null?void 0:m[L])!=null?S:0,we=z+ie-Pe-Ce,be=z+he-Pe,ee=Dd(F?Sm(H,we):H,z,F?ul(X,be):X);b[L]=ee,E[L]=ee-z}if(c){var se,ge=L==="x"?wi:Ci,U=L==="x"?ro:io,q=b[x],oe=x==="y"?"height":"width",xe=q+D[ge],ke=q-D[U],Te=[wi,Ci].indexOf(T)!==-1,Ne=(se=m==null?void 0:m[x])!=null?se:0,Ge=Te?xe:q-C[oe]-g[oe]-Ne+f.altAxis,nt=Te?q+C[oe]+g[oe]-Ne-f.altAxis:ke,He=F&&Te?Mre(Ge,q,nt):Dd(F?Ge:xe,q,F?nt:ke);b[x]=He,E[x]=He-q}t.modifiersData[r]=E}}const uie={name:"preventOverflow",enabled:!0,phase:"main",fn:cie,requiresIfExists:["offset"]};function die(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hie(e){return e===oo(e)||!qi(e)?ik(e):die(e)}function fie(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pie(e,t,n){n===void 0&&(n=!1);var r=qi(t),i=qi(t)&&fie(t),o=Bs(t),a=tu(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((na(t)!=="body"||ak(o))&&(c=hie(t)),qi(t)?(u=tu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=ok(o))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function gie(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function mie(e){var t=gie(e);return _re.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yie(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Z2={placement:"bottom",modifiers:[],strategy:"absolute"};function X2(){for(var e=arguments.length,t=new Array(e),n=0;n{}),O=de.exports.useCallback(()=>{var f;!t||!B.current||!N.current||((f=M.current)==null||f.call(M),D.current=iB(B.current,N.current,{placement:T,modifiers:[hre,cre,lre,{...sre,enabled:!!P},{name:"eventListeners",...are(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:c!=null?c:[0,u]}},{name:"flip",enabled:!!d,options:{padding:8}},{name:"preventOverflow",enabled:!!I,options:{boundary:p}},...n!=null?n:[]],strategy:i}),D.current.forceUpdate(),M.current=D.current.destroy)},[T,t,n,P,a,o,c,u,d,I,p,i]);de.exports.useEffect(()=>()=>{var f;!B.current&&!N.current&&((f=D.current)==null||f.destroy(),D.current=null)},[]);const L=de.exports.useCallback(f=>{B.current=f,O()},[O]),x=de.exports.useCallback((f={},m=null)=>({...f,ref:_n(L,m)}),[L]),b=de.exports.useCallback(f=>{N.current=f,O()},[O]),C=de.exports.useCallback((f={},m=null)=>({...f,ref:_n(b,m),style:{...f.style,position:i,minWidth:P?void 0:"max-content",inset:"0 auto auto 0"}}),[i,b,P]),g=de.exports.useCallback((f={},m=null)=>{const{size:E,shadowColor:S,bg:y,style:_,...$}=f;return{...$,ref:m,"data-popper-arrow":"",style:wie(f)}},[]),w=de.exports.useCallback((f={},m=null)=>({...f,ref:m,"data-popper-arrow-inner":""}),[]);return{update(){var f;(f=D.current)==null||f.update()},forceUpdate(){var f;(f=D.current)==null||f.forceUpdate()},transformOrigin:fr.transformOrigin.varRef,referenceRef:L,popperRef:b,getPopperProps:C,getArrowProps:g,getArrowInnerProps:w,getReferenceProps:x}}function wie(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function lk(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=nr(n),a=nr(t),[c,u]=de.exports.useState(e.defaultIsOpen||!1),d=r!==void 0?r:c,p=r!==void 0,I=de.exports.useId(),P=i!=null?i:`disclosure-${I}`,F=de.exports.useCallback(()=>{p||u(!1),a==null||a()},[p,a]),B=de.exports.useCallback(()=>{p||u(!0),o==null||o()},[p,o]),N=de.exports.useCallback(()=>{d?F():B()},[d,B,F]);function D(M={}){return{...M,"aria-expanded":d,"aria-controls":P,onClick(O){var L;(L=M.onClick)==null||L.call(M,O),N()}}}function T(M={}){return{...M,hidden:!d,id:P}}return{isOpen:d,onOpen:B,onClose:F,onToggle:N,isControlled:p,getButtonProps:D,getDisclosureProps:T}}function Cie(e){const{ref:t,handler:n,enabled:r=!0}=e,i=nr(n),a=de.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;de.exports.useEffect(()=>{if(!r)return;const c=I=>{ex(I,t)&&(a.isPointerDown=!0)},u=I=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&n&&ex(I,t)&&(a.isPointerDown=!1,i(I))},d=I=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&ex(I,t)&&(a.isPointerDown=!1,i(I))},p=oB(t.current);return p.addEventListener("mousedown",c,!0),p.addEventListener("mouseup",u,!0),p.addEventListener("touchstart",c,!0),p.addEventListener("touchend",d,!0),()=>{p.removeEventListener("mousedown",c,!0),p.removeEventListener("mouseup",u,!0),p.removeEventListener("touchstart",c,!0),p.removeEventListener("touchend",d,!0)}},[n,t,i,a,r])}function ex(e,t){var n;const r=e.target;return e.button>0||r&&!oB(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function oB(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function aB(e){const{isOpen:t,ref:n}=e,[r,i]=de.exports.useState(t),[o,a]=de.exports.useState(!1);return de.exports.useEffect(()=>{o||(i(t),a(!0))},[t,o,r]),cl(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var u;const d=ane(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(u=n.current)==null||u.dispatchEvent(p)}}}function ck(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[Sie,Aie,Iie,kie]=$I(),[_ie,cf]=In({strict:!1,name:"MenuContext"});function Eie(e,...t){const n=de.exports.useId(),r=e||n;return de.exports.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function sB(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function U2(e){return sB(e).activeElement===e}function Tie(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:a,isOpen:c,defaultIsOpen:u,onClose:d,onOpen:p,placement:I="bottom-start",lazyBehavior:P="unmount",direction:F,computePositionOnMount:B=!1,...N}=e,D=de.exports.useRef(null),T=de.exports.useRef(null),M=Iie(),O=de.exports.useCallback(()=>{requestAnimationFrame(()=>{var le;(le=D.current)==null||le.focus({preventScroll:!1})})},[]),L=de.exports.useCallback(()=>{const le=setTimeout(()=>{var ve;if(i)(ve=i.current)==null||ve.focus();else{const V=M.firstEnabled();V&&S(V.index)}});H.current.add(le)},[M,i]),x=de.exports.useCallback(()=>{const le=setTimeout(()=>{const ve=M.lastEnabled();ve&&S(ve.index)});H.current.add(le)},[M]),b=de.exports.useCallback(()=>{p==null||p(),o?L():O()},[o,L,O,p]),{isOpen:C,onOpen:g,onClose:w,onToggle:f}=lk({isOpen:c,defaultIsOpen:u,onClose:d,onOpen:b});Cie({enabled:C&&r,ref:D,handler:le=>{var ve;(ve=T.current)!=null&&ve.contains(le.target)||w()}});const m=sk({...N,enabled:C||B,placement:I,direction:F}),[E,S]=de.exports.useState(-1);La(()=>{C||S(-1)},[C]),X5(D,{focusRef:T,visible:C,shouldFocus:!0});const y=aB({isOpen:C,ref:D}),[_,$]=Eie(t,"menu-button","menu-list"),z=de.exports.useCallback(()=>{g(),O()},[g,O]),H=de.exports.useRef(new Set([]));$ie(()=>{H.current.forEach(le=>clearTimeout(le)),H.current.clear()});const X=de.exports.useCallback(()=>{g(),L()},[L,g]),Q=de.exports.useCallback(()=>{g(),x()},[g,x]),re=de.exports.useCallback(()=>{var le,ve;const V=sB(D.current),Z=(le=D.current)==null?void 0:le.contains(V.activeElement);if(!(C&&!Z))return;const Y=(ve=M.item(E))==null?void 0:ve.node;Y==null||Y.focus()},[C,E,M]),ue=de.exports.useRef(null);return{openAndFocusMenu:z,openAndFocusFirstItem:X,openAndFocusLastItem:Q,onTransitionEnd:re,unstable__animationState:y,descendants:M,popper:m,buttonId:_,menuId:$,forceUpdate:m.forceUpdate,orientation:"vertical",isOpen:C,onToggle:f,onOpen:g,onClose:w,menuRef:D,buttonRef:T,focusedIndex:E,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:S,isLazy:a,lazyBehavior:P,initialFocusRef:i,rafId:ue}}function Pie(e={},t=null){const n=cf(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:a}=n,c=de.exports.useCallback(u=>{const d=u.key,I={Enter:o,ArrowDown:o,ArrowUp:a}[d];I&&(u.preventDefault(),u.stopPropagation(),I(u))},[o,a]);return{...e,ref:_n(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":Qt(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Wt(e.onClick,r),onKeyDown:Wt(e.onKeyDown,c)}}function DC(e){var t;return Lie(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function Rie(e={},t=null){const n=cf();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:a,onClose:c,menuId:u,isLazy:d,lazyBehavior:p,unstable__animationState:I}=n,P=Aie(),F=Kne({preventDefault:T=>T.key!==" "&&DC(T.target)}),B=de.exports.useCallback(T=>{const M=T.key,L={Tab:b=>b.preventDefault(),Escape:c,ArrowDown:()=>{const b=P.nextEnabled(r);b&&i(b.index)},ArrowUp:()=>{const b=P.prevEnabled(r);b&&i(b.index)}}[M];if(L){T.preventDefault(),L(T);return}const x=F(b=>{const C=Jne(P.values(),b,g=>{var w,f;return(f=(w=g==null?void 0:g.node)==null?void 0:w.textContent)!=null?f:""},P.item(r));if(C){const g=P.indexOf(C.node);i(g)}});DC(T.target)&&x(T)},[P,r,F,c,i]),N=de.exports.useRef(!1);a&&(N.current=!0);const D=ck({wasSelected:N.current,enabled:d,mode:p,isSelected:I.present});return{...e,ref:_n(o,t),children:D?e.children:null,tabIndex:-1,role:"menu",id:u,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Wt(e.onKeyDown,B)}}function Oie(e={}){const{popper:t,isOpen:n}=cf();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function Mie(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:a,isDisabled:c,isFocusable:u,closeOnSelect:d,type:p,...I}=e,P=cf(),{setFocusedIndex:F,focusedIndex:B,closeOnSelect:N,onClose:D,menuRef:T,isOpen:M,menuId:O,rafId:L}=P,x=de.exports.useRef(null),b=`${O}-menuitem-${de.exports.useId()}`,{index:C,register:g}=kie({disabled:c&&!u}),w=de.exports.useCallback(z=>{n==null||n(z),!c&&F(C)},[F,C,c,n]),f=de.exports.useCallback(z=>{r==null||r(z),x.current&&!U2(x.current)&&w(z)},[w,r]),m=de.exports.useCallback(z=>{i==null||i(z),!c&&F(-1)},[F,c,i]),E=de.exports.useCallback(z=>{o==null||o(z),!!DC(z.currentTarget)&&(d!=null?d:N)&&D()},[D,o,N,d]),S=de.exports.useCallback(z=>{a==null||a(z),F(C)},[F,a,C]),y=C===B,_=c&&!u;La(()=>{!M||(y&&!_&&x.current?(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{var z;(z=x.current)==null||z.focus(),L.current=null})):T.current&&!U2(T.current)&&T.current.focus())},[y,_,T,M]);const $=Z5({onClick:E,onFocus:S,onMouseEnter:w,onMouseMove:f,onMouseLeave:m,ref:_n(g,x,t),isDisabled:c,isFocusable:u});return{...I,...$,type:p!=null?p:$.type,id:b,role:"menuitem",tabIndex:y?0:-1}}function Lie(e){var t;if(!Die(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function Die(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function $ie(e,t=[]){return de.exports.useEffect(()=>()=>e(),t)}var[Nie,nb]=In({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Fie=e=>{const{children:t}=e,n=zr("Menu",e),r=Dn(e),{direction:i}=Fs(),{descendants:o,...a}=Tie({...r,direction:i}),c=de.exports.useMemo(()=>a,[a]),{isOpen:u,onClose:d,forceUpdate:p}=c;return Se(Sie,{value:o,children:Se(_ie,{value:c,children:Se(Nie,{value:n,children:Ki(t,{isOpen:u,onClose:d,forceUpdate:p})})})})};Fie.displayName="Menu";var lB=It((e,t)=>{const n=nb();return Se(pt.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});lB.displayName="MenuCommand";var Bie=It((e,t)=>{const{type:n,...r}=e,i=nb(),o=r.as||n?n!=null?n:void 0:"button",a=de.exports.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return Se(pt.button,{ref:t,type:o,...r,__css:a})}),cB=e=>{const{className:t,children:n,...r}=e,i=de.exports.Children.only(n),o=de.exports.isValidElement(i)?de.exports.cloneElement(i,{focusable:"false","aria-hidden":!0,className:Bt("chakra-menu__icon",i.props.className)}):null,a=Bt("chakra-menu__icon-wrapper",t);return Se(pt.span,{className:a,...r,__css:{flexShrink:0},children:o})};cB.displayName="MenuIcon";var Wie=It((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:o="0.75rem",children:a,...c}=e,u=Mie(c,t),p=n||i?Se("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return At(Bie,{...u,className:Bt("chakra-menu__menuitem",u.className),children:[n&&Se(cB,{fontSize:"0.8em",marginEnd:r,children:n}),p,i&&Se(lB,{marginStart:o,children:i})]})});Wie.displayName="MenuItem";var Hie={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Vie=pt(aa.div),zie=It(function(t,n){var r,i;const{rootProps:o,motionProps:a,...c}=t,{isOpen:u,onTransitionEnd:d,unstable__animationState:p}=cf(),I=Rie(c,n),P=Oie(o),F=nb();return Se(pt.div,{...P,__css:{zIndex:(i=t.zIndex)!=null?i:(r=F.list)==null?void 0:r.zIndex},children:Se(Vie,{variants:Hie,initial:!1,animate:u?"enter":"exit",__css:{outline:0,...F.list},...a,className:Bt("chakra-menu__menu-list",I.className),...I,onUpdate:d,onAnimationComplete:ZA(p.onComplete,I.onAnimationComplete)})})});zie.displayName="MenuList";var jie=It((e,t)=>{const n=nb();return Se(pt.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),Gie=It((e,t)=>{const{children:n,as:r,...i}=e,o=Pie(i,t);return Se(r||jie,{...o,className:Bt("chakra-menu__menu-button",e.className),children:Se(pt.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});Gie.displayName="MenuButton";var Yie={slideInBottom:{...CC,custom:{offsetY:16,reverse:!0}},slideInRight:{...CC,custom:{offsetX:16,reverse:!0}},scale:{...WF,custom:{initialScale:.95,reverse:!0}},none:{}},Zie=pt(aa.section),Xie=e=>Yie[e||"none"],uB=de.exports.forwardRef((e,t)=>{const{preset:n,motionProps:r=Xie(n),...i}=e;return Se(Zie,{ref:t,...r,...i})});uB.displayName="ModalTransition";var Uie=Object.defineProperty,Kie=(e,t,n)=>t in e?Uie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jie=(e,t,n)=>(Kie(e,typeof t!="symbol"?t+"":t,n),n),Qie=class{constructor(){Jie(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},$C=new Qie;function dB(e,t){const[n,r]=de.exports.useState(0);return de.exports.useEffect(()=>{const i=e.current;if(!!i){if(t){const o=$C.add(i);r(o)}return()=>{$C.remove(i),r(0)}}},[t,e]),n}var qie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vl=new WeakMap,Uf=new WeakMap,Kf={},tx=0,hB=function(e){return e&&(e.host||hB(e.parentNode))},eoe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hB(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return Boolean(n)})},toe=function(e,t,n,r){var i=eoe(t,Array.isArray(e)?e:[e]);Kf[n]||(Kf[n]=new WeakMap);var o=Kf[n],a=[],c=new Set,u=new Set(i),d=function(I){!I||c.has(I)||(c.add(I),d(I.parentNode))};i.forEach(d);var p=function(I){!I||u.has(I)||Array.prototype.forEach.call(I.children,function(P){if(c.has(P))p(P);else{var F=P.getAttribute(r),B=F!==null&&F!=="false",N=(Vl.get(P)||0)+1,D=(o.get(P)||0)+1;Vl.set(P,N),o.set(P,D),a.push(P),N===1&&B&&Uf.set(P,!0),D===1&&P.setAttribute(n,"true"),B||P.setAttribute(r,"true")}})};return p(t),c.clear(),tx++,function(){a.forEach(function(I){var P=Vl.get(I)-1,F=o.get(I)-1;Vl.set(I,P),o.set(I,F),P||(Uf.has(I)||I.removeAttribute(r),Uf.delete(I)),F||I.removeAttribute(n)}),tx--,tx||(Vl=new WeakMap,Vl=new WeakMap,Uf=new WeakMap,Kf={})}},noe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||qie(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),toe(r,i,n,"aria-hidden")):function(){return null}};function roe(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:c,onEsc:u}=e,d=de.exports.useRef(null),p=de.exports.useRef(null),[I,P,F]=ooe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");ioe(d,t&&a),dB(d,t);const B=de.exports.useRef(null),N=de.exports.useCallback(g=>{B.current=g.target},[]),D=de.exports.useCallback(g=>{g.key==="Escape"&&(g.stopPropagation(),o&&(n==null||n()),u==null||u())},[o,n,u]),[T,M]=de.exports.useState(!1),[O,L]=de.exports.useState(!1),x=de.exports.useCallback((g={},w=null)=>({role:"dialog",...g,ref:_n(w,d),id:I,tabIndex:-1,"aria-modal":!0,"aria-labelledby":T?P:void 0,"aria-describedby":O?F:void 0,onClick:Wt(g.onClick,f=>f.stopPropagation())}),[F,O,I,P,T]),b=de.exports.useCallback(g=>{g.stopPropagation(),B.current===g.target&&(!$C.isTopModal(d.current)||(i&&(n==null||n()),c==null||c()))},[n,i,c]),C=de.exports.useCallback((g={},w=null)=>({...g,ref:_n(w,p),onClick:Wt(g.onClick,b),onKeyDown:Wt(g.onKeyDown,D),onMouseDown:Wt(g.onMouseDown,N)}),[D,N,b]);return{isOpen:t,onClose:n,headerId:P,bodyId:F,setBodyMounted:L,setHeaderMounted:M,dialogRef:d,overlayRef:p,getDialogProps:x,getDialogContainerProps:C}}function ioe(e,t){const n=e.current;de.exports.useEffect(()=>{if(!(!e.current||!t))return noe(e.current)},[t,e,n])}function ooe(e,...t){const n=de.exports.useId(),r=e||n;return de.exports.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[aoe,vu]=In({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[soe,Cl]=In({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),loe=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:c,returnFocusOnClose:u,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:I,motionPreset:P,lockFocusAcrossFrames:F,onCloseComplete:B}=t,N=zr("Modal",t),T={...roe(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:c,returnFocusOnClose:u,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:I,motionPreset:P,lockFocusAcrossFrames:F};return Se(soe,{value:T,children:Se(aoe,{value:N,children:Se(Ml,{onExitComplete:B,children:T.isOpen&&Se(gu,{...n,children:r})})})})};loe.displayName="Modal";var Mp="right-scroll-bar-position",Lp="width-before-scroll-bar",coe="with-scroll-bars-hidden",uoe="--removed-body-scroll-bar-size",fB=n5(),nx=function(){},rb=de.exports.forwardRef(function(e,t){var n=de.exports.useRef(null),r=de.exports.useState({onScrollCapture:nx,onWheelCapture:nx,onTouchMoveCapture:nx}),i=r[0],o=r[1],a=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,I=e.shards,P=e.sideCar,F=e.noIsolation,B=e.inert,N=e.allowPinchZoom,D=e.as,T=D===void 0?"div":D,M=TF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=P,L=qF([n,t]),x=Bo(Bo({},M),i);return At(Ao,{children:[p&&Se(O,{sideCar:fB,removeScrollBar:d,shards:I,noIsolation:F,inert:B,setCallbacks:o,allowPinchZoom:!!N,lockRef:n}),a?de.exports.cloneElement(de.exports.Children.only(c),Bo(Bo({},x),{ref:L})):Se(T,{...Bo({},x,{className:u,ref:L}),children:c})]})});rb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rb.classNames={fullWidth:Lp,zeroRight:Mp};var doe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hoe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=doe();return t&&e.setAttribute("nonce",t),e}function foe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function poe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var goe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hoe())&&(foe(t,n),poe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},moe=function(){var e=goe();return function(t,n){de.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pB=function(){var e=moe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},voe={left:0,top:0,right:0,gap:0},rx=function(e){return parseInt(e||"",10)||0},yoe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[rx(n),rx(r),rx(i)]},boe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return voe;var t=yoe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xoe=pB(),woe=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),` + `),()=>{document.head.removeChild(d)}},[t]),Se(eq,{isPresent:t,childRef:r,sizeRef:i,children:de.exports.cloneElement(e,{ref:r})})}const Y0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const c=Gy(nq),u=de.exports.useId(),d=de.exports.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:p=>{c.set(p,!0);for(const I of c.values())if(!I)return;r&&r()},register:p=>(c.set(p,!1),()=>c.delete(p))}),o?void 0:[n]);return de.exports.useMemo(()=>{c.forEach((p,I)=>c.set(I,!1))},[n]),de.exports.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),a==="popLayout"&&(e=Se(tq,{isPresent:n,children:e})),Se(mu.Provider,{value:d,children:e})};function nq(){return new Map}const Jl=e=>e.key||"";function rq(e,t){e.forEach(n=>{const r=Jl(n);t.set(r,n)})}function iq(e){const t=[];return de.exports.Children.forEach(e,n=>{de.exports.isValidElement(n)&&t.push(n)}),t}const Ml=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",DN(!1,"Replace exitBeforeEnter with mode='wait'"));let[c]=qQ();const u=de.exports.useContext(oI).forceRender;u&&(c=u);const d=EF(),p=iq(e);let I=p;const P=new Set,F=de.exports.useRef(I),B=de.exports.useRef(new Map).current,N=de.exports.useRef(!0);if(Ed(()=>{N.current=!1,rq(p,B),F.current=I}),gI(()=>{N.current=!0,B.clear(),P.clear()}),N.current)return Se(Ao,{children:I.map(O=>Se(Y0,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:O},Jl(O)))});I=[...I];const D=F.current.map(Jl),T=p.map(Jl),M=D.length;for(let O=0;O{if(T.indexOf(O)!==-1)return;const L=B.get(O);if(!L)return;const x=D.indexOf(O),b=()=>{B.delete(O),P.delete(O);const C=F.current.findIndex(g=>g.key===O);if(F.current.splice(C,1),!P.size){if(F.current=p,d.current===!1)return;c(),r&&r()}};I.splice(x,0,Se(Y0,{isPresent:!1,onExitComplete:b,custom:t,presenceAffectsLayout:o,mode:a,children:L},Jl(L)))}),I=I.map(O=>{const L=O.key;return P.has(L)?O:Se(Y0,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:O},Jl(O))}),LN!=="production"&&a==="wait"&&I.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Se(Ao,{children:P.size?I:I.map(O=>de.exports.cloneElement(O))})};var Bo=function(){return Bo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},PF=de.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:c=5e3,containerStyle:u,motionVariants:d=aq,toastSpacing:p="0.5rem"}=e,[I,P]=de.exports.useState(c),F=Z7();Da(()=>{F||r==null||r()},[F]),Da(()=>{P(c)},[c]);const B=()=>P(null),N=()=>P(c),D=()=>{F&&i()};de.exports.useEffect(()=>{F&&o&&i()},[F,o,i]),R6(D,I);const T=de.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...u}),[u,p]),M=de.exports.useMemo(()=>T6(a),[a]);return Se(aa.li,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:B,onHoverEnd:N,custom:{position:a},style:M,children:Se(pt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:T,children:Ki(n,{id:t,onClose:D})})})});PF.displayName="ToastComponent";function sq(e,t){var n;const r=e!=null?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=o==null?void 0:o[t])!=null?n:r}var p2={path:At("g",{stroke:"currentColor",strokeWidth:"1.5",children:[Se("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),Se("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),Se("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ha=It((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:c,__css:u,...d}=e,p=Bt("chakra-icon",c),I=Eo("Icon",e),P={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...u,...I},F={ref:t,focusable:o,className:p,__css:P},B=r!=null?r:p2.viewBox;if(n&&typeof n!="string")return Se(pt.svg,{as:n,...F,...d});const N=a!=null?a:p2.path;return Se(pt.svg,{verticalAlign:"middle",viewBox:B,...F,...d,children:N})});Ha.displayName="Icon";function lq(e){return Se(Ha,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function cq(e){return Se(Ha,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function g2(e){return Se(Ha,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var uq=Ms({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),MI=It((e,t)=>{const n=Eo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:c,...u}=Dn(e),d=Bt("chakra-spinner",c),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${uq} ${o} linear infinite`,...n};return Se(pt.div,{ref:t,__css:p,className:d,...u,children:r&&Se(pt.span,{srOnly:!0,children:r})})});MI.displayName="Spinner";var[dq,LI]=In({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[hq,DI]=In({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),RF={info:{icon:cq,colorScheme:"blue"},warning:{icon:g2,colorScheme:"orange"},success:{icon:lq,colorScheme:"green"},error:{icon:g2,colorScheme:"red"},loading:{icon:MI,colorScheme:"blue"}};function fq(e){return RF[e].colorScheme}function pq(e){return RF[e].icon}var OF=It(function(t,n){const r=DI(),{status:i}=LI(),o={display:"inline",...r.description};return Se(pt.div,{ref:n,"data-status":i,...t,className:Bt("chakra-alert__desc",t.className),__css:o})});OF.displayName="AlertDescription";function MF(e){const{status:t}=LI(),n=pq(t),r=DI(),i=t==="loading"?r.spinner:r.icon;return Se(pt.span,{display:"inherit","data-status":t,...e,className:Bt("chakra-alert__icon",e.className),__css:i,children:e.children||Se(n,{h:"100%",w:"100%"})})}MF.displayName="AlertIcon";var LF=It(function(t,n){const r=DI(),{status:i}=LI();return Se(pt.div,{ref:n,"data-status":i,...t,className:Bt("chakra-alert__title",t.className),__css:r.title})});LF.displayName="AlertTitle";var DF=It(function(t,n){var r;const{status:i="info",addRole:o=!0,...a}=Dn(t),c=(r=t.colorScheme)!=null?r:fq(i),u=zr("Alert",{...t,colorScheme:c}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return Se(dq,{value:{status:i},children:Se(hq,{value:u,children:Se(pt.div,{"data-status":i,role:o?"alert":void 0,ref:n,...a,className:Bt("chakra-alert",t.className),__css:d})})})});DF.displayName="Alert";function gq(e){return Se(Ha,{focusable:"false","aria-hidden":!0,...e,children:Se("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Ky=It(function(t,n){const r=Eo("CloseButton",t),{children:i,isDisabled:o,__css:a,...c}=Dn(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Se(pt.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...u,...r,...a},...c,children:i||Se(gq,{width:"1em",height:"1em"})})});Ky.displayName="CloseButton";var mq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Wo=vq(mq);function vq(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(c=>c.id!=i)}))},notify:(i,o)=>{const a=yq(i,o),{position:c,id:u}=a;return r(d=>{var p,I;const F=c.includes("top")?[a,...(p=d[c])!=null?p:[]]:[...(I=d[c])!=null?I:[],a];return{...d,[c]:F}}),u},update:(i,o)=>{!i||r(a=>{const c={...a},{position:u,index:d}=uT(c,i);return u&&d!==-1&&(c[u][d]={...c[u][d],...o,message:$F(o)}),c})},closeAll:({positions:i}={})=>{r(o=>{const a=["bottom","bottom-right","bottom-left","top","top-left","top-right"];return(i!=null?i:a).reduce((u,d)=>(u[d]=o[d].map(p=>({...p,requestClose:!0})),u),{...o})})},close:i=>{r(o=>{const a=dN(o,i);return a?{...o,[a]:o[a].map(c=>c.id==i?{...c,requestClose:!0}:c)}:o})},isActive:i=>Boolean(uT(Wo.getState(),i).position)}}var m2=0;function yq(e,t={}){var n,r;m2+=1;const i=(n=t.id)!=null?n:m2,o=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Wo.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var bq=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:c,colorScheme:u,icon:d}=e,p=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return At(DF,{addRole:!1,status:t,variant:n,id:p==null?void 0:p.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[Se(MF,{children:d}),At(pt.div,{flex:"1",maxWidth:"100%",children:[i&&Se(LF,{id:p==null?void 0:p.title,children:i}),c&&Se(OF,{id:p==null?void 0:p.description,display:"block",children:c})]}),o&&Se(Ky,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function $F(e={}){const{render:t,toastComponent:n=bq}=e;return i=>typeof t=="function"?t({...i,...e}):Se(n,{...i,...e})}function xq(e,t){const n=i=>{var o;return{...t,...i,position:sq((o=i==null?void 0:i.position)!=null?o:t==null?void 0:t.position,e)}},r=i=>{const o=n(i),a=$F(o);return Wo.notify(a,o)};return r.update=(i,o)=>{Wo.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(c=>r.update(a,{status:"success",duration:5e3,...Ki(o.success,c)})).catch(c=>r.update(a,{status:"error",duration:5e3,...Ki(o.error,c)}))},r.closeAll=Wo.closeAll,r.close=Wo.close,r.isActive=Wo.isActive,r}var[wq,Cq]=In({name:"ToastOptionsContext",strict:!1}),Sq=e=>{const t=de.exports.useSyncExternalStore(Wo.subscribe,Wo.getState,Wo.getState),{motionVariants:n,component:r=PF,portalProps:i}=e,a=Object.keys(t).map(c=>{const u=t[c];return Se("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:P6(c),children:Se(Ml,{initial:!1,children:u.map(d=>Se(r,{motionVariants:n,...d},d.id))})},c)});return Se(gu,{...i,children:a})};function lke(e){const{theme:t}=k$(),n=Cq();return de.exports.useMemo(()=>xq(t.direction,{...n,...e}),[e,t.direction,n])}var Aq=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return At(_6,{theme:r,...o,children:[Se(wq,{value:i==null?void 0:i.defaultOptions,children:n}),Se(Sq,{...i})]})},cke=Aq(J$),Iq=Object.defineProperty,kq=(e,t,n)=>t in e?Iq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,er=(e,t,n)=>(kq(e,typeof t!="symbol"?t+"":t,n),n);function v2(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var _q=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function y2(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function b2(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var wC=typeof window<"u"?de.exports.useLayoutEffect:de.exports.useEffect,ym=e=>e,Eq=class{constructor(){er(this,"descendants",new Map),er(this,"register",e=>{if(e!=null)return _q(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),er(this,"unregister",e=>{this.descendants.delete(e);const t=v2(Array.from(this.descendants.keys()));this.assignIndex(t)}),er(this,"destroy",()=>{this.descendants.clear()}),er(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),er(this,"count",()=>this.descendants.size),er(this,"enabledCount",()=>this.enabledValues().length),er(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),er(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),er(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),er(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),er(this,"first",()=>this.item(0)),er(this,"firstEnabled",()=>this.enabledItem(0)),er(this,"last",()=>this.item(this.descendants.size-1)),er(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),er(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),er(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),er(this,"next",(e,t=!0)=>{const n=y2(e,this.count(),t);return this.item(n)}),er(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=y2(r,this.enabledCount(),t);return this.enabledItem(i)}),er(this,"prev",(e,t=!0)=>{const n=b2(e,this.count()-1,t);return this.item(n)}),er(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=b2(r,this.enabledCount()-1,t);return this.enabledItem(i)}),er(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=v2(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function Tq(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function _n(...e){return t=>{e.forEach(n=>{Tq(n,t)})}}function Pq(...e){return de.exports.useMemo(()=>_n(...e),e)}function Rq(){const e=de.exports.useRef(new Eq);return wC(()=>()=>e.current.destroy()),e.current}var[Oq,NF]=In({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Mq(e){const t=NF(),[n,r]=de.exports.useState(-1),i=de.exports.useRef(null);wC(()=>()=>{!i.current||t.unregister(i.current)},[]),wC(()=>{if(!i.current)return;const a=Number(i.current.dataset.index);n!=a&&!Number.isNaN(a)&&r(a)});const o=ym(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:_n(o,i)}}function $I(){return[ym(Oq),()=>ym(NF()),()=>Rq(),i=>Mq(i)]}var[Lq,Jy]=In({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[Dq,NI]=In({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[$q,uke,Nq,Fq]=$I(),Bq=It(function(t,n){const{getButtonProps:r}=NI(),i=r(t,n),a={display:"flex",alignItems:"center",width:"100%",outline:0,...Jy().button};return Se(pt.button,{...i,className:Bt("chakra-accordion__button",t.className),__css:a})});Bq.displayName="AccordionButton";function Qy(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(P,F)=>P!==F}=e,o=nr(r),a=nr(i),[c,u]=de.exports.useState(n),d=t!==void 0,p=d?t:c,I=nr(P=>{const B=typeof P=="function"?P(p):P;!a(p,B)||(d||u(B),o(B))},[d,o,p,a]);return[p,I]}function Wq(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:o,...a}=e;zq(e),jq(e);const c=Nq(),[u,d]=de.exports.useState(-1);de.exports.useEffect(()=>()=>{d(-1)},[]);const[p,I]=Qy({value:r,defaultValue(){return i?n!=null?n:[]:n!=null?n:-1},onChange:t});return{index:p,setIndex:I,htmlProps:a,getAccordionItemProps:F=>{let B=!1;return F!==null&&(B=Array.isArray(p)?p.includes(F):p===F),{isOpen:B,onChange:D=>{if(F!==null)if(i&&Array.isArray(p)){const T=D?p.concat(F):p.filter(M=>M!==F);I(T)}else D?I(F):o&&I(-1)}}},focusedIndex:u,setFocusedIndex:d,descendants:c}}var[Hq,FI]=In({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function Vq(e){const{isDisabled:t,isFocusable:n,id:r,...i}=e,{getAccordionItemProps:o,setFocusedIndex:a}=FI(),c=de.exports.useRef(null),u=de.exports.useId(),d=r!=null?r:u,p=`accordion-button-${d}`,I=`accordion-panel-${d}`;Gq(e);const{register:P,index:F,descendants:B}=Fq({disabled:t&&!n}),{isOpen:N,onChange:D}=o(F===-1?null:F);Yq({isOpen:N,isDisabled:t});const T=()=>{D==null||D(!0)},M=()=>{D==null||D(!1)},O=de.exports.useCallback(()=>{D==null||D(!N),a(F)},[F,a,N,D]),L=de.exports.useCallback(g=>{const f={ArrowDown:()=>{const m=B.nextEnabled(F);m==null||m.node.focus()},ArrowUp:()=>{const m=B.prevEnabled(F);m==null||m.node.focus()},Home:()=>{const m=B.firstEnabled();m==null||m.node.focus()},End:()=>{const m=B.lastEnabled();m==null||m.node.focus()}}[g.key];f&&(g.preventDefault(),f(g))},[B,F]),x=de.exports.useCallback(()=>{a(F)},[a,F]),b=de.exports.useCallback(function(w={},f=null){return{...w,type:"button",ref:_n(P,c,f),id:p,disabled:!!t,"aria-expanded":!!N,"aria-controls":I,onClick:Wt(w.onClick,O),onFocus:Wt(w.onFocus,x),onKeyDown:Wt(w.onKeyDown,L)}},[p,t,N,O,x,L,I,P]),C=de.exports.useCallback(function(w={},f=null){return{...w,ref:f,role:"region",id:I,"aria-labelledby":p,hidden:!N}},[p,N,I]);return{isOpen:N,isDisabled:t,isFocusable:n,onOpen:T,onClose:M,getButtonProps:b,getPanelProps:C,htmlProps:i}}function zq(e){const t=e.index||e.defaultIndex,n=t!=null&&!Array.isArray(t)&&e.allowMultiple;Qh({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function jq(e){Qh({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function Gq(e){Qh({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. + `})}function Yq(e){Qh({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Zq(e){const{isOpen:t,isDisabled:n}=NI(),{reduceMotion:r}=FI(),i=Bt("chakra-accordion__icon",e.className),o=Jy(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return Se(Ha,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:Se("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Zq.displayName="AccordionIcon";var Xq=It(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Vq(t),u={...Jy().container,overflowAnchor:"none"},d=de.exports.useMemo(()=>a,[a]);return Se(Dq,{value:d,children:Se(pt.div,{ref:n,...o,className:Bt("chakra-accordion__item",i),__css:u,children:typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})});Xq.displayName="AccordionItem";var pc={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ll={enter:{duration:.2,ease:pc.easeOut},exit:{duration:.1,ease:pc.easeIn}},ka={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},Uq=e=>e!=null&&parseInt(e.toString(),10)>0,x2={exit:{height:{duration:.2,ease:pc.ease},opacity:{duration:.3,ease:pc.ease}},enter:{height:{duration:.3,ease:pc.ease},opacity:{duration:.4,ease:pc.ease}}},Kq={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:Uq(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(o=n==null?void 0:n.exit)!=null?o:ka.exit(x2.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(o=n==null?void 0:n.enter)!=null?o:ka.enter(x2.enter,i)}}},FF=de.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:c,className:u,transition:d,transitionEnd:p,...I}=e,[P,F]=de.exports.useState(!1);de.exports.useEffect(()=>{const M=setTimeout(()=>{F(!0)});return()=>clearTimeout(M)},[]),Qh({condition:Number(o)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const B=parseFloat(o.toString())>0,N={startingHeight:o,endingHeight:a,animateOpacity:i,transition:P?d:{enter:{duration:0}},transitionEnd:{enter:p==null?void 0:p.enter,exit:r?p==null?void 0:p.exit:{...p==null?void 0:p.exit,display:B?"block":"none"}}},D=r?n:!0,T=n||r?"enter":"exit";return Se(Ml,{initial:!1,custom:N,children:D&&Se(aa.div,{ref:t,...I,className:Bt("chakra-collapse",u),style:{overflow:"hidden",display:"block",...c},custom:N,variants:Kq,initial:r?"exit":!1,animate:T,exit:"exit"})})});FF.displayName="Collapse";var Jq={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:ka.enter(ll.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:ka.exit(ll.exit,n),transitionEnd:t==null?void 0:t.exit}}},BF={initial:"exit",animate:"enter",exit:"exit",variants:Jq},Qq=de.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:c,delay:u,...d}=t,p=i||r?"enter":"exit",I=r?i&&r:!0,P={transition:a,transitionEnd:c,delay:u};return Se(Ml,{custom:P,children:I&&Se(aa.div,{ref:n,className:Bt("chakra-fade",o),custom:P,...BF,animate:p,...d})})});Qq.displayName="Fade";var qq={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(o=n==null?void 0:n.exit)!=null?o:ka.exit(ll.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:ka.enter(ll.enter,n),transitionEnd:e==null?void 0:e.enter}}},WF={initial:"exit",animate:"enter",exit:"exit",variants:qq},eee=de.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:c,transition:u,transitionEnd:d,delay:p,...I}=t,P=r?i&&r:!0,F=i||r?"enter":"exit",B={initialScale:a,reverse:o,transition:u,transitionEnd:d,delay:p};return Se(Ml,{custom:B,children:P&&Se(aa.div,{ref:n,className:Bt("chakra-offset-slide",c),...WF,animate:F,custom:B,...I})})});eee.displayName="ScaleFade";var tee={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:(o=n==null?void 0:n.exit)!=null?o:ka.exit(ll.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:ka.enter(ll.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{var a;const c={x:t,y:e};return{opacity:0,transition:(a=n==null?void 0:n.exit)!=null?a:ka.exit(ll.exit,o),...i?{...c,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...c,...r==null?void 0:r.exit}}}}},CC={initial:"initial",animate:"enter",exit:"exit",variants:tee},nee=de.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:c=0,offsetY:u=8,transition:d,transitionEnd:p,delay:I,...P}=t,F=r?i&&r:!0,B=i||r?"enter":"exit",N={offsetX:c,offsetY:u,reverse:o,transition:d,transitionEnd:p,delay:I};return Se(Ml,{custom:N,children:F&&Se(aa.div,{ref:n,className:Bt("chakra-offset-slide",a),custom:N,...CC,animate:B,...P})})});nee.displayName="SlideFade";var ree=It(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=FI(),{getPanelProps:c,isOpen:u}=NI(),d=c(o,n),p=Bt("chakra-accordion__panel",r),I=Jy();a||delete d.hidden;const P=Se(pt.div,{...d,__css:I.panel,className:p});return a?P:Se(FF,{in:u,...i,children:P})});ree.displayName="AccordionPanel";var iee=It(function({children:t,reduceMotion:n,...r},i){const o=zr("Accordion",r),a=Dn(r),{htmlProps:c,descendants:u,...d}=Wq(a),p=de.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return Se($q,{value:u,children:Se(Hq,{value:p,children:Se(Lq,{value:o,children:Se(pt.div,{ref:i,...c,className:Bt("chakra-accordion",r.className),__css:o.root,children:t})})})})});iee.displayName="Accordion";function BI(e){return de.exports.Children.toArray(e).filter(t=>de.exports.isValidElement(t))}var[oee,aee]=In({strict:!1,name:"ButtonGroupContext"}),see={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},lee={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},cee=It(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:c="0.5rem",isAttached:u,isDisabled:d,orientation:p="horizontal",...I}=t,P=Bt("chakra-button__group",a),F=de.exports.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:d}),[r,i,o,d]);let B={display:"inline-flex",...u?see[p]:lee[p](c)};const N=p==="vertical";return Se(oee,{value:F,children:Se(pt.div,{ref:n,role:"group",__css:B,className:P,"data-attached":u?"":void 0,"data-orientation":p,flexDir:N?"column":void 0,...I})})});cee.displayName="ButtonGroup";function uee(e){const[t,n]=de.exports.useState(!e);return{ref:de.exports.useCallback(o=>{!o||n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function SC(e){const{children:t,className:n,...r}=e,i=de.exports.isValidElement(t)?de.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=Bt("chakra-button__icon",n);return Se(pt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}SC.displayName="ButtonIcon";function AC(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=Se(MI,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...c}=e,u=Bt("chakra-button__spinner",o),d=n==="start"?"marginEnd":"marginStart",p=de.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,d,r]);return Se(pt.div,{className:u,...c,__css:p,children:i})}AC.displayName="ButtonSpinner";var HF=It((e,t)=>{const n=aee(),r=Eo("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:c,leftIcon:u,rightIcon:d,loadingText:p,iconSpacing:I="0.5rem",type:P,spinner:F,spinnerPlacement:B="start",className:N,as:D,...T}=Dn(e),M=de.exports.useMemo(()=>{const b={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:b}}},[r,n]),{ref:O,type:L}=uee(D),x={rightIcon:d,leftIcon:u,iconSpacing:I,children:c};return At(pt.button,{ref:Pq(t,O),as:D,type:P!=null?P:L,"data-active":Qt(a),"data-loading":Qt(o),__css:M,className:Bt("chakra-button",N),...T,disabled:i||o,children:[o&&B==="start"&&Se(AC,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:I,children:F}),o?p||Se(pt.span,{opacity:0,children:Se(w2,{...x})}):Se(w2,{...x}),o&&B==="end"&&Se(AC,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:I,children:F})]})});HF.displayName="Button";function w2(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return At(Ao,{children:[t&&Se(SC,{marginEnd:i,children:t}),r,n&&Se(SC,{marginStart:i,children:n})]})}var dee=It((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,c=n||r,u=de.exports.isValidElement(c)?de.exports.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null;return Se(HF,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:u})});dee.displayName="IconButton";var[hee,dke]=A6("Card"),hke=It(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:c,...u}=Dn(t),d=zr("Card",t);return Se(pt.div,{ref:n,className:Bt("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:c,position:"relative",minWidth:0,wordWrap:"break-word",...d.container},...u,children:Se(hee,{value:d,children:i})})}),[fke,fee]=In({name:"CheckboxGroupContext",strict:!1});function C2(e){return e&&yr(e)&&yr(e.target)}function pke(e={}){const{defaultValue:t,value:n,onChange:r,isDisabled:i,isNative:o}=e,a=nr(r),[c,u]=Qy({value:n,defaultValue:t||[],onChange:a}),d=de.exports.useCallback(I=>{if(!c)return;const P=C2(I)?I.target.checked:!c.includes(I),F=C2(I)?I.target.value:I,B=P?[...c,F]:c.filter(N=>String(N)!==String(F));u(B)},[u,c]),p=de.exports.useCallback((I={})=>({...I,[o?"checked":"isChecked"]:c.some(F=>String(I.value)===String(F)),onChange:d}),[d,o,c]);return{value:c,isDisabled:i,onChange:d,setValue:u,getCheckboxProps:p}}function pee(e){return Se(pt.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:Se("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function gee(e){return Se(pt.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:Se("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function mee(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?gee:pee;return n||t?Se(pt.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:Se(i,{...r})}):null}var[vee,VF]=In({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[yee,Ll]=In({strict:!1,name:"FormControlContext"});function bee(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,c=de.exports.useId(),u=t||`field-${c}`,d=`${u}-label`,p=`${u}-feedback`,I=`${u}-helptext`,[P,F]=de.exports.useState(!1),[B,N]=de.exports.useState(!1),[D,T]=de.exports.useState(!1),M=de.exports.useCallback((C={},g=null)=>({id:I,...C,ref:_n(g,w=>{!w||N(!0)})}),[I]),O=de.exports.useCallback((C={},g=null)=>({...C,ref:g,"data-focus":Qt(D),"data-disabled":Qt(i),"data-invalid":Qt(r),"data-readonly":Qt(o),id:C.id!==void 0?C.id:d,htmlFor:C.htmlFor!==void 0?C.htmlFor:u}),[u,i,D,r,o,d]),L=de.exports.useCallback((C={},g=null)=>({id:p,...C,ref:_n(g,w=>{!w||F(!0)}),"aria-live":"polite"}),[p]),x=de.exports.useCallback((C={},g=null)=>({...C,...a,ref:g,role:"group"}),[a]),b=de.exports.useCallback((C={},g=null)=>({...C,ref:g,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!D,onFocus:()=>T(!0),onBlur:()=>T(!1),hasFeedbackText:P,setHasFeedbackText:F,hasHelpText:B,setHasHelpText:N,id:u,labelId:d,feedbackId:p,helpTextId:I,htmlProps:a,getHelpTextProps:M,getErrorMessageProps:L,getRootProps:x,getLabelProps:O,getRequiredIndicatorProps:b}}var xee=It(function(t,n){const r=zr("Form",t),i=Dn(t),{getRootProps:o,htmlProps:a,...c}=bee(i),u=Bt("chakra-form-control",t.className);return Se(yee,{value:c,children:Se(vee,{value:r,children:Se(pt.div,{...o({},n),className:u,__css:r.container})})})});xee.displayName="FormControl";var wee=It(function(t,n){const r=Ll(),i=VF(),o=Bt("chakra-form__helper-text",t.className);return Se(pt.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});wee.displayName="FormHelperText";var[Cee,See]=In({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Aee=It((e,t)=>{const n=zr("FormError",e),r=Dn(e),i=Ll();return i!=null&&i.isInvalid?Se(Cee,{value:n,children:Se(pt.div,{...i==null?void 0:i.getErrorMessageProps(r,t),className:Bt("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});Aee.displayName="FormErrorMessage";var Iee=It((e,t)=>{const n=See(),r=Ll();if(!(r!=null&&r.isInvalid))return null;const i=Bt("chakra-form__error-icon",e.className);return Se(Ha,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:i,children:Se("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});Iee.displayName="FormErrorIcon";var kee=It(function(t,n){var r;const i=Eo("FormLabel",t),o=Dn(t),{className:a,children:c,requiredIndicator:u=Se(zF,{}),optionalIndicator:d=null,...p}=o,I=Ll(),P=(r=I==null?void 0:I.getLabelProps(p,n))!=null?r:{ref:n,...p};return At(pt.label,{...P,className:Bt("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[c,I!=null&&I.isRequired?u:d]})});kee.displayName="FormLabel";var zF=It(function(t,n){const r=Ll(),i=VF();if(!(r!=null&&r.isRequired))return null;const o=Bt("chakra-form__required-indicator",t.className);return Se(pt.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});zF.displayName="RequiredIndicator";function WI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=HI(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":Sa(n),"aria-required":Sa(i),"aria-readonly":Sa(r)}}function HI(e){var t,n,r;const i=Ll(),{id:o,disabled:a,readOnly:c,required:u,isRequired:d,isInvalid:p,isReadOnly:I,isDisabled:P,onFocus:F,onBlur:B,...N}=e,D=e["aria-describedby"]?[e["aria-describedby"]]:[];return(i==null?void 0:i.hasFeedbackText)&&(i==null?void 0:i.isInvalid)&&D.push(i.feedbackId),i!=null&&i.hasHelpText&&D.push(i.helpTextId),{...N,"aria-describedby":D.join(" ")||void 0,id:o!=null?o:i==null?void 0:i.id,isDisabled:(t=a!=null?a:P)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=c!=null?c:I)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=u!=null?u:d)!=null?r:i==null?void 0:i.isRequired,isInvalid:p!=null?p:i==null?void 0:i.isInvalid,onFocus:Wt(i==null?void 0:i.onFocus,F),onBlur:Wt(i==null?void 0:i.onBlur,B)}}var _ee={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},S2=!1,of=null,xl=!1,IC=!1,kC=new Set;function VI(e,t){kC.forEach(n=>n(e,t))}var Eee=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Tee(e){return!(e.metaKey||!Eee&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function A2(e){xl=!0,Tee(e)&&(of="keyboard",VI("keyboard",e))}function Wl(e){if(of="pointer",e.type==="mousedown"||e.type==="pointerdown"){xl=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;VI("pointer",e)}}function Pee(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Ree(e){Pee(e)&&(xl=!0,of="virtual")}function Oee(e){e.target===window||e.target===document||(!xl&&!IC&&(of="virtual",VI("virtual",e)),xl=!1,IC=!1)}function Mee(){xl=!1,IC=!0}function I2(){return of!=="pointer"}function Lee(){if(typeof window>"u"||S2)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){xl=!0,e.apply(this,n)},document.addEventListener("keydown",A2,!0),document.addEventListener("keyup",A2,!0),document.addEventListener("click",Ree,!0),window.addEventListener("focus",Oee,!0),window.addEventListener("blur",Mee,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Wl,!0),document.addEventListener("pointermove",Wl,!0),document.addEventListener("pointerup",Wl,!0)):(document.addEventListener("mousedown",Wl,!0),document.addEventListener("mousemove",Wl,!0),document.addEventListener("mouseup",Wl,!0)),S2=!0}function jF(e){Lee(),e(I2());const t=()=>e(I2());return kC.add(t),()=>{kC.delete(t)}}function Dee(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function GF(e={}){const t=HI(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:c,onFocus:u,"aria-describedby":d}=t,{defaultChecked:p,isChecked:I,isFocusable:P,onChange:F,isIndeterminate:B,name:N,value:D,tabIndex:T=void 0,"aria-label":M,"aria-labelledby":O,"aria-invalid":L,...x}=e,b=Dee(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=nr(F),g=nr(c),w=nr(u),[f,m]=de.exports.useState(!1),[E,S]=de.exports.useState(!1),[y,_]=de.exports.useState(!1),[$,z]=de.exports.useState(!1);de.exports.useEffect(()=>jF(m),[]);const H=de.exports.useRef(null),[X,Q]=de.exports.useState(!0),[re,ue]=de.exports.useState(!!p),le=I!==void 0,ve=le?I:re,V=de.exports.useCallback(we=>{if(r||n){we.preventDefault();return}le||ue(ve?we.target.checked:B?!0:we.target.checked),C==null||C(we)},[r,n,ve,le,B,C]);Zo(()=>{H.current&&(H.current.indeterminate=Boolean(B))},[B]),Da(()=>{n&&S(!1)},[n,S]),Zo(()=>{const we=H.current;!(we!=null&&we.form)||(we.form.onreset=()=>{ue(!!p)})},[]);const Z=n&&!P,ce=de.exports.useCallback(we=>{we.key===" "&&z(!0)},[z]),Y=de.exports.useCallback(we=>{we.key===" "&&z(!1)},[z]);Zo(()=>{if(!H.current)return;H.current.checked!==ve&&ue(H.current.checked)},[H.current]);const ie=de.exports.useCallback((we={},be=null)=>{const ee=se=>{E&&se.preventDefault(),z(!0)};return{...we,ref:be,"data-active":Qt($),"data-hover":Qt(y),"data-checked":Qt(ve),"data-focus":Qt(E),"data-focus-visible":Qt(E&&f),"data-indeterminate":Qt(B),"data-disabled":Qt(n),"data-invalid":Qt(o),"data-readonly":Qt(r),"aria-hidden":!0,onMouseDown:Wt(we.onMouseDown,ee),onMouseUp:Wt(we.onMouseUp,()=>z(!1)),onMouseEnter:Wt(we.onMouseEnter,()=>_(!0)),onMouseLeave:Wt(we.onMouseLeave,()=>_(!1))}},[$,ve,n,E,f,y,B,o,r]),he=de.exports.useCallback((we={},be=null)=>({...b,...we,ref:_n(be,ee=>{!ee||Q(ee.tagName==="LABEL")}),onClick:Wt(we.onClick,()=>{var ee;X||((ee=H.current)==null||ee.click(),requestAnimationFrame(()=>{var se;(se=H.current)==null||se.focus()}))}),"data-disabled":Qt(n),"data-checked":Qt(ve),"data-invalid":Qt(o)}),[b,n,ve,o,X]),fe=de.exports.useCallback((we={},be=null)=>({...we,ref:_n(H,be),type:"checkbox",name:N,value:D,id:a,tabIndex:T,onChange:Wt(we.onChange,V),onBlur:Wt(we.onBlur,g,()=>S(!1)),onFocus:Wt(we.onFocus,w,()=>S(!0)),onKeyDown:Wt(we.onKeyDown,ce),onKeyUp:Wt(we.onKeyUp,Y),required:i,checked:ve,disabled:Z,readOnly:r,"aria-label":M,"aria-labelledby":O,"aria-invalid":L?Boolean(L):o,"aria-describedby":d,"aria-disabled":n,style:_ee}),[N,D,a,V,g,w,ce,Y,i,ve,Z,r,M,O,L,o,d,n,T]),Ce=de.exports.useCallback((we={},be=null)=>({...we,ref:be,onMouseDown:Wt(we.onMouseDown,$ee),"data-disabled":Qt(n),"data-checked":Qt(ve),"data-invalid":Qt(o)}),[ve,n,o]);return{state:{isInvalid:o,isFocused:E,isChecked:ve,isActive:$,isHovered:y,isIndeterminate:B,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:he,getCheckboxProps:ie,getInputProps:fe,getLabelProps:Ce,htmlProps:b}}function $ee(e){e.preventDefault(),e.stopPropagation()}var Nee={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Fee={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Bee=Ms({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Wee=Ms({from:{opacity:0},to:{opacity:1}}),Hee=Ms({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Vee=It(function(t,n){const r=fee(),i={...r,...t},o=zr("Checkbox",i),a=Dn(t),{spacing:c="0.5rem",className:u,children:d,iconColor:p,iconSize:I,icon:P=Se(mee,{}),isChecked:F,isDisabled:B=r==null?void 0:r.isDisabled,onChange:N,inputProps:D,...T}=a;let M=F;(r==null?void 0:r.value)&&a.value&&(M=r.value.includes(a.value));let O=N;(r==null?void 0:r.onChange)&&a.value&&(O=ZA(r.onChange,N));const{state:L,getInputProps:x,getCheckboxProps:b,getLabelProps:C,getRootProps:g}=GF({...T,isDisabled:B,isChecked:M,onChange:O}),w=de.exports.useMemo(()=>({animation:L.isIndeterminate?`${Wee} 20ms linear, ${Hee} 200ms linear`:`${Bee} 200ms linear`,fontSize:I,color:p,...o.icon}),[p,I,L.isIndeterminate,o.icon]),f=de.exports.cloneElement(P,{__css:w,isIndeterminate:L.isIndeterminate,isChecked:L.isChecked});return At(pt.label,{__css:{...Fee,...o.container},className:Bt("chakra-checkbox",u),...g(),children:[Se("input",{className:"chakra-checkbox__input",...x(D,n)}),Se(pt.span,{__css:{...Nee,...o.control},className:"chakra-checkbox__control",...b(),children:f}),d&&Se(pt.span,{className:"chakra-checkbox__label",...C(),__css:{marginStart:c,...o.label},children:d})]})});Vee.displayName="Checkbox";function zee(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function zI(e,t){let n=zee(e);const r=10**(t!=null?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function _C(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function k2(e,t,n){return(e-t)*100/(n-t)}function jee(e,t,n){return(n-t)*e+t}function _2(e,t,n){const r=Math.round((e-t)/n)*n+t,i=_C(n);return zI(r,i)}function Rp(e,t,n){return e==null?e:(n{var f;return r==null?"":(f=Z0(r,o,n))!=null?f:""}),P=typeof i<"u",F=P?i:p,B=YF(Ja(F),o),N=n!=null?n:B,D=de.exports.useCallback(f=>{f!==F&&(P||I(f.toString()),d==null||d(f.toString(),Ja(f)))},[d,P,F]),T=de.exports.useCallback(f=>{let m=f;return u&&(m=Rp(m,a,c)),zI(m,N)},[N,u,c,a]),M=de.exports.useCallback((f=o)=>{let m;F===""?m=Ja(f):m=Ja(F)+f,m=T(m),D(m)},[T,o,D,F]),O=de.exports.useCallback((f=o)=>{let m;F===""?m=Ja(-f):m=Ja(F)-f,m=T(m),D(m)},[T,o,D,F]),L=de.exports.useCallback(()=>{var f;let m;r==null?m="":m=(f=Z0(r,o,n))!=null?f:a,D(m)},[r,n,o,D,a]),x=de.exports.useCallback(f=>{var m;const E=(m=Z0(f,o,N))!=null?m:a;D(E)},[N,o,D,a]),b=Ja(F);return{isOutOfRange:b>c||b{const o=typeof e=="function"?e():e!=null?e:document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e!=null?e:document;o==null||o.removeEventListener(t,i,r)}}function Yee(e){return"current"in e}var ZF=()=>typeof window<"u";function Zee(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var Xee=e=>ZF()&&e.test(navigator.vendor),Uee=e=>ZF()&&e.test(Zee()),Kee=()=>Uee(/mac|iphone|ipad|ipod/i),Jee=()=>Kee()&&Xee(/apple/i);function Qee(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o,a;return(a=(o=t.current)==null?void 0:o.ownerDocument)!=null?a:document};cl(i,"pointerdown",o=>{if(!Jee()||!r)return;const a=o.target,u=(n!=null?n:[t]).some(d=>{const p=Yee(d)?d.current:d;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&u&&(o.preventDefault(),a.focus())})}function XF(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}var UF={exports:{}},qee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ete=qee,tte=ete;function KF(){}function JF(){}JF.resetWarningCache=KF;var nte=function(){function e(r,i,o,a,c,u){if(u!==tte){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:JF,resetWarningCache:KF};return n.PropTypes=n,n};UF.exports=nte();var EC="data-focus-lock",QF="data-focus-lock-disabled",rte="data-no-focus-lock",ite="data-autofocus-inside",ote="data-no-autofocus";function ate(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ste(e,t){var n=de.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function qF(e,t){return ste(t||null,function(n){return e.forEach(function(r){return ate(r,n)})})}var X0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function e5(e){return e}function t5(e,t){t===void 0&&(t=e5);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(o),a=n}var u=function(){var p=a;a=[],p.forEach(o)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return i}function jI(e,t){return t===void 0&&(t=e5),t5(e,t)}function n5(e){e===void 0&&(e={});var t=t5(null);return t.options=Bo({async:!0,ssr:!1},e),t}var r5=function(e){var t=e.sideCar,n=TF(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Se(r,{...Bo({},n)})};r5.isSideCarExport=!0;function lte(e,t){return e.useMedium(t),r5}var i5=jI({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),o5=jI(),cte=jI(),ute=n5({async:!0}),dte=[],GI=de.exports.forwardRef(function(t,n){var r,i=de.exports.useState(),o=i[0],a=i[1],c=de.exports.useRef(),u=de.exports.useRef(!1),d=de.exports.useRef(null),p=t.children,I=t.disabled,P=t.noFocusGuards,F=t.persistentFocus,B=t.crossFrame,N=t.autoFocus;t.allowTextSelection;var D=t.group,T=t.className,M=t.whiteList,O=t.hasPositiveIndices,L=t.shards,x=L===void 0?dte:L,b=t.as,C=b===void 0?"div":b,g=t.lockProps,w=g===void 0?{}:g,f=t.sideCar,m=t.returnFocus,E=t.focusOptions,S=t.onActivation,y=t.onDeactivation,_=de.exports.useState({}),$=_[0],z=de.exports.useCallback(function(){d.current=d.current||document&&document.activeElement,c.current&&S&&S(c.current),u.current=!0},[S]),H=de.exports.useCallback(function(){u.current=!1,y&&y(c.current)},[y]);de.exports.useEffect(function(){I||(d.current=null)},[]);var X=de.exports.useCallback(function(ce){var Y=d.current;if(Y&&Y.focus){var ie=typeof m=="function"?m(Y):m;if(ie){var he=typeof ie=="object"?ie:void 0;d.current=null,ce?Promise.resolve().then(function(){return Y.focus(he)}):Y.focus(he)}}},[m]),Q=de.exports.useCallback(function(ce){u.current&&i5.useMedium(ce)},[]),re=o5.useMedium,ue=de.exports.useCallback(function(ce){c.current!==ce&&(c.current=ce,a(ce))},[]),le=qt((r={},r[QF]=I&&"disabled",r[EC]=D,r),w),ve=P!==!0,V=ve&&P!=="tail",Z=qF([n,ue]);return At(Ao,{children:[ve&&[Se("div",{"data-focus-guard":!0,tabIndex:I?-1:0,style:X0},"guard-first"),O?Se("div",{"data-focus-guard":!0,tabIndex:I?-1:1,style:X0},"guard-nearest"):null],!I&&Se(f,{id:$,sideCar:ute,observed:o,disabled:I,persistentFocus:F,crossFrame:B,autoFocus:N,whiteList:M,shards:x,onActivation:z,onDeactivation:H,returnFocus:X,focusOptions:E}),Se(C,{ref:Z,...le,className:T,onBlur:re,onFocus:Q,children:p}),V&&Se("div",{"data-focus-guard":!0,tabIndex:I?-1:0,style:X0})]})});GI.propTypes={};GI.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const a5=GI;function bm(e,t){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bm(e,t)}function Dl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bm(e,t)}function Er(e){return Er=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},Er(e)}function hte(e,t){if(Er(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Er(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s5(e){var t=hte(e,"string");return Er(t)==="symbol"?t:String(t)}function Hi(e,t,n){return t=s5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var o=[],a;function c(){a=e(o.map(function(d){return d.props})),t(a)}var u=function(d){Dl(p,d);function p(){return d.apply(this,arguments)||this}p.peek=function(){return a};var I=p.prototype;return I.componentDidMount=function(){o.push(this),c()},I.componentDidUpdate=function(){c()},I.componentWillUnmount=function(){var F=o.indexOf(this);o.splice(F,1),c()},I.render=function(){return Se(i,{...this.props})},p}(de.exports.PureComponent);return Hi(u,"displayName","SideEffect("+n(i)+")"),u}}var sa=function(e){for(var t=Array(e.length),n=0;n=0}).sort(wte)},Cte=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],ZI=Cte.join(","),Ste="".concat(ZI,", [data-focus-guard]"),v5=function(e,t){return sa((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?Ste:ZI)?[r]:[],v5(r))},[])},Ate=function(e,t){var n;return e instanceof HTMLIFrameElement&&((n=e.contentDocument)===null||n===void 0?void 0:n.body)?qy([e.contentDocument.body],t):[e]},qy=function(e,t){return e.reduce(function(n,r){var i,o=v5(r,t),a=(i=[]).concat.apply(i,o.map(function(c){return Ate(c,t)}));return n.concat(a,r.parentNode?sa(r.parentNode.querySelectorAll(ZI)).filter(function(c){return c===r}):[])},[])},Ite=function(e){var t=e.querySelectorAll("[".concat(ite,"]"));return sa(t).map(function(n){return qy([n])}).reduce(function(n,r){return n.concat(r)},[])},XI=function(e,t){return sa(e).filter(function(n){return d5(t,n)}).filter(function(n){return yte(n)})},E2=function(e,t){return t===void 0&&(t=new Map),sa(e).filter(function(n){return h5(t,n)})},TC=function(e,t,n){return m5(XI(qy(e,n),t),!0,n)},T2=function(e,t){return m5(XI(qy(e),t),!1)},kte=function(e,t){return XI(Ite(e),t)},Lc=function(e,t){return e.shadowRoot?Lc(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:sa(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?Lc(i,t):!1}return Lc(n,t)})},_te=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,c){return!t.has(c)})},y5=function(e){return e.parentNode?y5(e.parentNode):e},UI=function(e){var t=xm(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(EC);return n.push.apply(n,i?_te(sa(y5(r).querySelectorAll("[".concat(EC,'="').concat(i,'"]:not([').concat(QF,'="disabled"])')))):[r]),n},[])},Ete=function(e){try{return e()}catch{return}},yh=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?yh(t.shadowRoot):t instanceof HTMLIFrameElement&&Ete(function(){return t.contentWindow.document})?yh(t.contentWindow.document):t}},Tte=function(e,t){return e===t},Pte=function(e,t){return Boolean(sa(e.querySelectorAll("iframe")).some(function(n){return Tte(n,t)}))},b5=function(e,t){return t===void 0&&(t=yh(l5(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:UI(e).some(function(n){return Lc(n,t)||Pte(n,t)})},Rte=function(e){e===void 0&&(e=document);var t=yh(e);return t?sa(e.querySelectorAll("[".concat(rte,"]"))).some(function(n){return Lc(n,t)}):!1},Ote=function(e,t){return t.filter(g5).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},KI=function(e,t){return g5(e)&&e.name?Ote(e,t):e},Mte=function(e){var t=new Set;return e.forEach(function(n){return t.add(KI(n,e))}),e.filter(function(n){return t.has(n)})},P2=function(e){return e[0]&&e.length>1?KI(e[0],e):e[0]},R2=function(e,t){return e.length>1?e.indexOf(KI(e[t],e)):t},x5="NEW_FOCUS",Lte=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],c=YI(n);if(!(n&&e.indexOf(n)>=0)){var u=n!==void 0?t.indexOf(n):-1,d=r?t.indexOf(r):u,p=r?e.indexOf(r):-1,I=u-d,P=t.indexOf(o),F=t.indexOf(a),B=Mte(t),N=n!==void 0?B.indexOf(n):-1,D=N-(r?B.indexOf(r):u),T=R2(e,0),M=R2(e,i-1);if(u===-1||p===-1)return x5;if(!I&&p>=0)return p;if(u<=P&&c&&Math.abs(I)>1)return M;if(u>=F&&c&&Math.abs(I)>1)return T;if(I&&Math.abs(D)>1)return p;if(u<=P)return M;if(u>F)return T;if(I)return Math.abs(I)>1?p:(i+p+I)%i}},Dte=function(e){return function(t){var n,r=(n=f5(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$te=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=E2(r.filter(Dte(n)));return i&&i.length?P2(i):P2(E2(t))},PC=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&PC(e.parentNode.host||e.parentNode,t),t},U0=function(e,t){for(var n=PC(e),r=PC(t),i=0;i=0)return o}return!1},w5=function(e,t,n){var r=xm(e),i=xm(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(c){a=U0(a||c,c)||a,n.filter(Boolean).forEach(function(u){var d=U0(o,u);d&&(!a||Lc(d,a)?a=d:a=U0(d,a))})}),a},Nte=function(e,t){return e.reduce(function(n,r){return n.concat(kte(r,t))},[])},Fte=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(xte)},Bte=function(e,t){var n=yh(xm(e).length>0?document:l5(e).ownerDocument),r=UI(e).filter(wm),i=w5(n||e,e,r),o=new Map,a=T2(r,o),c=TC(r,o).filter(function(F){var B=F.node;return wm(B)});if(!(!c[0]&&(c=a,!c[0]))){var u=T2([i],o).map(function(F){var B=F.node;return B}),d=Fte(u,c),p=d.map(function(F){var B=F.node;return B}),I=Lte(p,u,n,t);if(I===x5){var P=$te(a,p,Nte(r,o));if(P)return{node:P};console.warn("focus-lock: cannot find any node to move focus into");return}return I===void 0?I:d[I]}},Wte=function(e){var t=UI(e).filter(wm),n=w5(e,e,t),r=new Map,i=TC([n],r,!0),o=TC(t,r).filter(function(a){var c=a.node;return wm(c)}).map(function(a){var c=a.node;return c});return i.map(function(a){var c=a.node,u=a.index;return{node:c,index:u,lockItem:o.indexOf(c)>=0,guard:YI(c)}})},Hte=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},K0=0,J0=!1,Vte=function(e,t,n){n===void 0&&(n={});var r=Bte(e,t);if(!J0&&r){if(K0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),J0=!0,setTimeout(function(){J0=!1},1);return}K0++,Hte(r.node,n.focusOptions),K0--}};const C5=Vte;function S5(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var zte=function(){return document&&document.activeElement===document.body},jte=function(){return zte()||Rte()},Dc=null,gc=null,$c=null,bh=!1,Gte=function(){return!0},Yte=function(t){return(Dc.whiteList||Gte)(t)},Zte=function(t,n){$c={observerNode:t,portaledElement:n}},Xte=function(t){return $c&&$c.portaledElement===t};function O2(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var Ute=function(t){return t&&"current"in t?t.current:t},Kte=function(t){return t?Boolean(bh):bh==="meanwhile"},Jte=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Qte=function(t,n){return n.some(function(r){return Jte(t,r,r)})},Cm=function(){var t=!1;if(Dc){var n=Dc,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,c=n.crossFrame,u=n.focusOptions,d=r||$c&&$c.portaledElement,p=document&&document.activeElement;if(d){var I=[d].concat(a.map(Ute).filter(Boolean));if((!p||Yte(p))&&(i||Kte(c)||!jte()||!gc&&o)&&(d&&!(b5(I)||p&&Qte(p,I)||Xte(p))&&(document&&!gc&&p&&!o?(p.blur&&p.blur(),document.body.focus()):(t=C5(I,gc,{focusOptions:u}),$c={})),bh=!1,gc=document&&document.activeElement),document){var P=document&&document.activeElement,F=Wte(I),B=F.map(function(N){var D=N.node;return D}).indexOf(P);B>-1&&(F.filter(function(N){var D=N.guard,T=N.node;return D&&T.dataset.focusAutoGuard}).forEach(function(N){var D=N.node;return D.removeAttribute("tabIndex")}),O2(B,F.length,1,F),O2(B,-1,-1,F))}}}return t},A5=function(t){Cm()&&t&&(t.stopPropagation(),t.preventDefault())},JI=function(){return S5(Cm)},qte=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Zte(r,n)},ene=function(){return null},I5=function(){bh="just",setTimeout(function(){bh="meanwhile"},0)},tne=function(){document.addEventListener("focusin",A5),document.addEventListener("focusout",JI),window.addEventListener("blur",I5)},nne=function(){document.removeEventListener("focusin",A5),document.removeEventListener("focusout",JI),window.removeEventListener("blur",I5)};function rne(e){return e.filter(function(t){var n=t.disabled;return!n})}function ine(e){var t=e.slice(-1)[0];t&&!Dc&&tne();var n=Dc,r=n&&t&&t.id===n.id;Dc=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(gc=null,(!r||n.observed!==t.observed)&&t.onActivation(),Cm(),S5(Cm)):(nne(),gc=null)}i5.assignSyncMedium(qte);o5.assignMedium(JI);cte.assignMedium(function(e){return e({moveFocusInside:C5,focusInside:b5})});const one=fte(rne,ine)(ene);var k5=de.exports.forwardRef(function(t,n){return Se(a5,{sideCar:one,ref:n,...t})}),_5=a5.propTypes||{};_5.sideCar;XF(_5,["sideCar"]);k5.propTypes={};const M2=k5;function E5(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function T5(e){var t;if(!E5(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function ane(e){var t,n;return(n=(t=P5(e))==null?void 0:t.defaultView)!=null?n:window}function P5(e){return E5(e)?e.ownerDocument:document}function sne(e){return P5(e).activeElement}var R5=e=>e.hasAttribute("tabindex"),lne=e=>R5(e)&&e.tabIndex===-1;function cne(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function O5(e){return e.parentElement&&O5(e.parentElement)?!0:e.hidden}function une(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function M5(e){if(!T5(e)||O5(e)||cne(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():une(e)?!0:R5(e)}function dne(e){return e?T5(e)&&M5(e)&&!lne(e):!1}var hne=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],fne=hne.join(),pne=e=>e.offsetWidth>0&&e.offsetHeight>0;function L5(e){const t=Array.from(e.querySelectorAll(fne));return t.unshift(e),t.filter(n=>M5(n)&&pne(n))}var L2,gne=(L2=M2.default)!=null?L2:M2,D5=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:c,persistentFocus:u,lockFocusAcrossFrames:d}=e,p=de.exports.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&L5(r.current).length===0&&requestAnimationFrame(()=>{var B;(B=r.current)==null||B.focus()})},[t,r]),I=de.exports.useCallback(()=>{var F;(F=n==null?void 0:n.current)==null||F.focus()},[n]);return Se(gne,{crossFrame:d,persistentFocus:u,autoFocus:c,disabled:a,onActivation:p,onDeactivation:I,returnFocus:i&&!n,children:o})};D5.displayName="FocusLock";var mne=GK?de.exports.useLayoutEffect:de.exports.useEffect;function RC(e,t=[]){const n=de.exports.useRef(e);return mne(()=>{n.current=e}),de.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function gke(e){const{ref:t,handler:n,enabled:r=!0}=e,i=RC(n),a=de.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;de.exports.useEffect(()=>{if(!r)return;const c=I=>{Q0(I,t)&&(a.isPointerDown=!0)},u=I=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&n&&Q0(I,t)&&(a.isPointerDown=!1,i(I))},d=I=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&Q0(I,t)&&(a.isPointerDown=!1,i(I))},p=q$(t.current);return p.addEventListener("mousedown",c,!0),p.addEventListener("mouseup",u,!0),p.addEventListener("touchstart",c,!0),p.addEventListener("touchend",d,!0),()=>{p.removeEventListener("mousedown",c,!0),p.removeEventListener("mouseup",u,!0),p.removeEventListener("touchstart",c,!0),p.removeEventListener("touchend",d,!0)}},[n,t,i,a,r])}function Q0(e,t){var n;const r=e.target;return e.button>0||r&&!q$(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function vne(e,t){const n=de.exports.useId();return de.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function yne(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function mke(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=RC(n),a=RC(t),[c,u]=de.exports.useState(e.defaultIsOpen||!1),[d,p]=yne(r,c),I=vne(i,"disclosure"),P=de.exports.useCallback(()=>{d||u(!1),a==null||a()},[d,a]),F=de.exports.useCallback(()=>{d||u(!0),o==null||o()},[d,o]),B=de.exports.useCallback(()=>{(p?P:F)()},[p,F,P]);return{isOpen:!!p,onOpen:F,onClose:P,onToggle:B,isControlled:d,getButtonProps:(N={})=>({...N,"aria-expanded":p,"aria-controls":I,onClick:KK(N.onClick,B)}),getDisclosureProps:(N={})=>({...N,hidden:!p,id:I})}}var bne=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var I=D2[t.format]||D2.default;window.clipboardData.setData(I,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(c),o.selectNodeContents(c),a.addRange(o);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");u=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(I){n&&console.error("unable to copy using clipboardData: ",I),n&&console.error("falling back to prompt"),r=Cne("message"in t?t.message:wne),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}var Ane=Sne,[Ine,$5]=In({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),kne=It(function(t,n){const r=zr("Input",t),{children:i,className:o,...a}=Dn(t),c=Bt("chakra-input__group",o),u={},d=BI(i),p=r.field;d.forEach(P=>{var F,B;!r||(p&&P.type.id==="InputLeftElement"&&(u.paddingStart=(F=p.height)!=null?F:p.h),p&&P.type.id==="InputRightElement"&&(u.paddingEnd=(B=p.height)!=null?B:p.h),P.type.id==="InputRightAddon"&&(u.borderEndRadius=0),P.type.id==="InputLeftAddon"&&(u.borderStartRadius=0))});const I=d.map(P=>{var F,B;const N=nI({size:((F=P.props)==null?void 0:F.size)||t.size,variant:((B=P.props)==null?void 0:B.variant)||t.variant});return P.type.id!=="Input"?de.exports.cloneElement(P,N):de.exports.cloneElement(P,Object.assign(N,u,P.props))});return Se(pt.div,{className:c,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate"},"data-group":!0,...a,children:Se(Ine,{value:r,children:I})})});kne.displayName="InputGroup";var _ne={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Ene=pt("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),QI=It(function(t,n){var r;const{placement:i="left",...o}=t,a=(r=_ne[i])!=null?r:{},c=$5();return Se(Ene,{ref:n,...o,__css:{...c.addon,...a}})});QI.displayName="InputAddon";var N5=It(function(t,n){return Se(QI,{ref:n,placement:"left",...t,className:Bt("chakra-input__left-addon",t.className)})});N5.displayName="InputLeftAddon";N5.id="InputLeftAddon";var F5=It(function(t,n){return Se(QI,{ref:n,placement:"right",...t,className:Bt("chakra-input__right-addon",t.className)})});F5.displayName="InputRightAddon";F5.id="InputRightAddon";var Tne=pt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),eb=It(function(t,n){var r,i;const{placement:o="left",...a}=t,c=$5(),u=c.field,p={[o==="left"?"insetStart":"insetEnd"]:"0",width:(r=u==null?void 0:u.height)!=null?r:u==null?void 0:u.h,height:(i=u==null?void 0:u.height)!=null?i:u==null?void 0:u.h,fontSize:u==null?void 0:u.fontSize,...c.element};return Se(Tne,{ref:n,__css:p,...a})});eb.id="InputElement";eb.displayName="InputElement";var B5=It(function(t,n){const{className:r,...i}=t,o=Bt("chakra-input__left-element",r);return Se(eb,{ref:n,placement:"left",className:o,...i})});B5.id="InputLeftElement";B5.displayName="InputLeftElement";var W5=It(function(t,n){const{className:r,...i}=t,o=Bt("chakra-input__right-element",r);return Se(eb,{ref:n,placement:"right",className:o,...i})});W5.id="InputRightElement";W5.displayName="InputRightElement";var H5=It(function(t,n){const{htmlSize:r,...i}=t,o=zr("Input",i),a=Dn(i),c=WI(a),u=Bt("chakra-input",t.className);return Se(pt.input,{size:r,...c,__css:o.field,ref:n,className:u})});H5.displayName="Input";H5.id="Input";var V5=It(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:c,row:u,autoFlow:d,autoRows:p,templateRows:I,autoColumns:P,templateColumns:F,...B}=t,N={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:P,gridColumn:c,gridRow:u,gridAutoFlow:d,gridAutoRows:p,gridTemplateRows:I,gridTemplateColumns:F};return Se(pt.div,{ref:n,__css:N,...B})});V5.displayName="Grid";var z5=Object.freeze(["base","sm","md","lg","xl","2xl"]);function af(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):yr(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function Pne(e,t=z5){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}var Rne=It(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:c,...u}=t,d=Fs(),p=c?Mne(c,d):Lne(r);return Se(V5,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:p,...u})});Rne.displayName="SimpleGrid";function One(e){return typeof e=="number"?`${e}px`:e}function Mne(e,t){return af(e,n=>{const r=cG("sizes",n,One(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function Lne(e){return af(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Dne=It(function(t,n){const r=Eo("Text",t),{className:i,align:o,decoration:a,casing:c,...u}=Dn(t),d=nI({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Se(pt.p,{ref:n,className:Bt("chakra-text",t.className),...d,...u,__css:r})});Dne.displayName="Text";var j5=e=>Se(pt.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});j5.displayName="StackItem";var OC="& > *:not(style) ~ *:not(style)";function $ne(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[OC]:af(n,i=>r[i])}}function Nne(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":af(n,i=>r[i])}}var qI=It((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:c,children:u,divider:d,className:p,shouldWrapChildren:I,...P}=e,F=n?"row":r!=null?r:"column",B=de.exports.useMemo(()=>$ne({direction:F,spacing:a}),[F,a]),N=de.exports.useMemo(()=>Nne({spacing:a,direction:F}),[a,F]),D=!!d,T=!I&&!D,M=de.exports.useMemo(()=>{const L=BI(u);return T?L:L.map((x,b)=>{const C=typeof x.key<"u"?x.key:b,g=b+1===L.length,f=I?Se(j5,{children:x},C):x;if(!D)return f;const m=de.exports.cloneElement(d,{__css:N}),E=g?null:m;return At(de.exports.Fragment,{children:[f,E]},C)})},[d,N,D,T,I,u]),O=Bt("chakra-stack",p);return Se(pt.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:B.flexDirection,flexWrap:c,className:O,__css:D?{}:{[OC]:B[OC]},...P,children:M})});qI.displayName="Stack";var Fne=It((e,t)=>Se(qI,{align:"center",...e,direction:"column",ref:t}));Fne.displayName="VStack";var Bne=It((e,t)=>Se(qI,{align:"center",...e,direction:"row",ref:t}));Bne.displayName="HStack";function $2(e){return af(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Wne=It(function(t,n){const{area:r,colSpan:i,colStart:o,colEnd:a,rowEnd:c,rowSpan:u,rowStart:d,...p}=t,I=nI({gridArea:r,gridColumn:$2(i),gridRow:$2(u),gridColumnStart:o,gridColumnEnd:a,gridRowStart:d,gridRowEnd:c});return Se(pt.div,{ref:n,__css:I,...p})});Wne.displayName="GridItem";var G5=pt("div");G5.displayName="Box";var Y5=It(function(t,n){const{size:r,centerContent:i=!0,...o}=t;return Se(G5,{ref:n,boxSize:r,__css:{...i?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...o})});Y5.displayName="Square";var Hne=It(function(t,n){const{size:r,...i}=t;return Se(Y5,{size:r,ref:n,borderRadius:"9999px",...i})});Hne.displayName="Circle";var Vne=It(function(t,n){const r=Eo("Link",t),{className:i,isExternal:o,...a}=Dn(t);return Se(pt.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:Bt("chakra-link",i),...a,__css:r})});Vne.displayName="Link";var zne=It(function(t,n){const r=Eo("Badge",t),{className:i,...o}=Dn(t);return Se(pt.span,{ref:n,className:Bt("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});zne.displayName="Badge";var jne=It(function(t,n){const{className:r,centerContent:i,...o}=Dn(t),a=Eo("Container",t);return Se(pt.div,{ref:n,className:Bt("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});jne.displayName="Container";var Gne=It(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:c,grow:u,shrink:d,...p}=t,I={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:c,flexGrow:u,flexShrink:d};return Se(pt.div,{ref:n,__css:I,...p})});Gne.displayName="Flex";function Yne(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=k6(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(d=>d!=null);const[c,u]=de.exports.useState(()=>o.map((d,p)=>({media:d,matches:n?!!a[p]:i().matchMedia(d).matches})));return de.exports.useEffect(()=>{const d=i();u(o.map(P=>({media:P,matches:d.matchMedia(P).matches})));const p=o.map(P=>d.matchMedia(P)),I=P=>{u(F=>F.slice().map(B=>B.media===P.media?{...B,matches:P.matches}:B))};return p.forEach(P=>{typeof P.addListener=="function"?P.addListener(I):P.addEventListener("change",I)}),()=>{p.forEach(P=>{typeof P.removeListener=="function"?P.removeListener(I):P.removeEventListener("change",I)})}},[i]),c.map(d=>d.matches)}function Zne(e,t,n=z5){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function Xne(e){var t,n;const r=yr(e)?e:{fallback:e!=null?e:"base"},o=Fs().__breakpoints.details.map(({minMaxQuery:d,breakpoint:p})=>({breakpoint:p,query:d.replace("@media screen and ","")})),a=o.map(d=>d.breakpoint===r.fallback),u=Yne(o.map(d=>d.query),{fallback:a,ssr:r.ssr}).findIndex(d=>d==!0);return(n=(t=o[u])==null?void 0:t.breakpoint)!=null?n:r.fallback}function vke(e,t){var n;const r=yr(t)?t:{fallback:t!=null?t:"base"},i=Xne(r),o=Fs();if(!i)return;const a=Array.from(((n=o.__breakpoints)==null?void 0:n.keys)||[]),c=Array.isArray(e)?Object.fromEntries(Object.entries(Pne(e,a)).map(([u,d])=>[u,d])):e;return Zne(c,i,a)}function Une(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function Kne(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=de.exports.useState([]),o=de.exports.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)},c=()=>{a(),o.current=setTimeout(()=>{i([]),o.current=null},t)};de.exports.useEffect(()=>a,[]);function u(d){return p=>{if(p.key==="Backspace"){const I=[...r];I.pop(),i(I);return}if(Une(p)){const I=r.concat(p.key);n(p)&&(p.preventDefault(),p.stopPropagation()),i(I),d(I.join("")),c()}}}return u}function Jne(e,t,n,r){if(t==null)return r;if(!r)return e.find(a=>n(a).toLowerCase().startsWith(t.toLowerCase()));const i=e.filter(o=>n(o).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let o;return i.includes(r)?(o=i.indexOf(r)+1,o===i.length&&(o=0),i[o]):(o=e.indexOf(i[0]),e[o])}return r}function Qne(){const e=de.exports.useRef(new Map),t=e.current,n=de.exports.useCallback((i,o,a,c)=>{e.current.set(a,{type:o,el:i,options:c}),i.addEventListener(o,a,c)},[]),r=de.exports.useCallback((i,o,a,c)=>{i.removeEventListener(o,a,c),e.current.delete(a)},[]);return de.exports.useEffect(()=>()=>{t.forEach((i,o)=>{r(i.el,i.type,o,i.options)})},[r,t]),{add:n,remove:r}}function q0(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function Z5(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:a,onMouseUp:c,onClick:u,onKeyDown:d,onKeyUp:p,tabIndex:I,onMouseOver:P,onMouseLeave:F,...B}=e,[N,D]=de.exports.useState(!0),[T,M]=de.exports.useState(!1),O=Qne(),L=z=>{!z||z.tagName!=="BUTTON"&&D(!1)},x=N?I:I||0,b=n&&!r,C=de.exports.useCallback(z=>{if(n){z.stopPropagation(),z.preventDefault();return}z.currentTarget.focus(),u==null||u(z)},[n,u]),g=de.exports.useCallback(z=>{T&&q0(z)&&(z.preventDefault(),z.stopPropagation(),M(!1),O.remove(document,"keyup",g,!1))},[T,O]),w=de.exports.useCallback(z=>{if(d==null||d(z),n||z.defaultPrevented||z.metaKey||!q0(z.nativeEvent)||N)return;const H=i&&z.key==="Enter";o&&z.key===" "&&(z.preventDefault(),M(!0)),H&&(z.preventDefault(),z.currentTarget.click()),O.add(document,"keyup",g,!1)},[n,N,d,i,o,O,g]),f=de.exports.useCallback(z=>{if(p==null||p(z),n||z.defaultPrevented||z.metaKey||!q0(z.nativeEvent)||N)return;o&&z.key===" "&&(z.preventDefault(),M(!1),z.currentTarget.click())},[o,N,n,p]),m=de.exports.useCallback(z=>{z.button===0&&(M(!1),O.remove(document,"mouseup",m,!1))},[O]),E=de.exports.useCallback(z=>{if(z.button!==0)return;if(n){z.stopPropagation(),z.preventDefault();return}N||M(!0),z.currentTarget.focus({preventScroll:!0}),O.add(document,"mouseup",m,!1),a==null||a(z)},[n,N,a,O,m]),S=de.exports.useCallback(z=>{z.button===0&&(N||M(!1),c==null||c(z))},[c,N]),y=de.exports.useCallback(z=>{if(n){z.preventDefault();return}P==null||P(z)},[n,P]),_=de.exports.useCallback(z=>{T&&(z.preventDefault(),M(!1)),F==null||F(z)},[T,F]),$=_n(t,L);return N?{...B,ref:$,type:"button","aria-disabled":b?void 0:n,disabled:b,onClick:C,onMouseDown:a,onMouseUp:c,onKeyUp:p,onKeyDown:d,onMouseOver:P,onMouseLeave:F}:{...B,ref:$,role:"button","data-active":Qt(T),"aria-disabled":n?"true":void 0,tabIndex:b?void 0:x,onClick:C,onMouseDown:E,onMouseUp:S,onKeyUp:f,onKeyDown:w,onMouseOver:y,onMouseLeave:_}}function qne(e){const t=e.current;if(!t)return!1;const n=sne(t);return!n||t.contains(n)?!1:!!dne(n)}function X5(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;Da(()=>{if(!o||qne(e))return;const a=(i==null?void 0:i.current)||e.current;a&&requestAnimationFrame(()=>{a.focus()})},[o,e,i])}var ere={preventScroll:!0,shouldFocus:!1};function tre(e,t=ere){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=nre(e)?e.current:e,c=i&&o,u=de.exports.useRef(c),d=de.exports.useRef(o);Zo(()=>{!d.current&&o&&(u.current=c),d.current=o},[o,c]);const p=de.exports.useCallback(()=>{if(!(!o||!a||!u.current)&&(u.current=!1,!a.contains(document.activeElement)))if(n!=null&&n.current)requestAnimationFrame(()=>{var I;(I=n.current)==null||I.focus({preventScroll:r})});else{const I=L5(a);I.length>0&&requestAnimationFrame(()=>{I[0].focus({preventScroll:r})})}},[o,r,a,n]);Da(()=>{p()},[p]),cl(a,"transitionend",p)}function nre(e){return"current"in e}var Hl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),fr={arrowShadowColor:Hl("--popper-arrow-shadow-color"),arrowSize:Hl("--popper-arrow-size","8px"),arrowSizeHalf:Hl("--popper-arrow-size-half"),arrowBg:Hl("--popper-arrow-bg"),transformOrigin:Hl("--popper-transform-origin"),arrowOffset:Hl("--popper-arrow-offset")};function rre(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var ire={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ore=e=>ire[e],N2={scroll:!0,resize:!0};function are(e){let t;return typeof e=="object"?t={enabled:!0,options:{...N2,...e}}:t={enabled:e,options:N2},t}var sre={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},lre={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{F2(e)},effect:({state:e})=>()=>{F2(e)}},F2=e=>{e.elements.popper.style.setProperty(fr.transformOrigin.var,ore(e.placement))},cre={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{ure(e)}},ure=e=>{var t;if(!e.placement)return;const n=dre(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:fr.arrowSize.varRef,height:fr.arrowSize.varRef,zIndex:-1});const r={[fr.arrowSizeHalf.var]:`calc(${fr.arrowSize.varRef} / 2)`,[fr.arrowOffset.var]:`calc(${fr.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},dre=e=>{if(e.startsWith("top"))return{property:"bottom",value:fr.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:fr.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:fr.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:fr.arrowOffset.varRef}},hre={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{B2(e)},effect:({state:e})=>()=>{B2(e)}},B2=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=rre(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:fr.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},fre={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},pre={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function gre(e,t="ltr"){var n,r;const i=((n=fre[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=pre[e])!=null?r:i}var wi="top",ro="bottom",io="right",Ci="left",ek="auto",sf=[wi,ro,io,Ci],qc="start",xh="end",mre="clippingParents",U5="viewport",Vu="popper",vre="reference",W2=sf.reduce(function(e,t){return e.concat([t+"-"+qc,t+"-"+xh])},[]),K5=[].concat(sf,[ek]).reduce(function(e,t){return e.concat([t,t+"-"+qc,t+"-"+xh])},[]),yre="beforeRead",bre="read",xre="afterRead",wre="beforeMain",Cre="main",Sre="afterMain",Are="beforeWrite",Ire="write",kre="afterWrite",_re=[yre,bre,xre,wre,Cre,Sre,Are,Ire,kre];function na(e){return e?(e.nodeName||"").toLowerCase():null}function oo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wl(e){var t=oo(e).Element;return e instanceof t||e instanceof Element}function qi(e){var t=oo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tk(e){if(typeof ShadowRoot>"u")return!1;var t=oo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ere(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!qi(o)||!na(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var c=i[a];c===!1?o.removeAttribute(a):o.setAttribute(a,c===!0?"":c)}))})}function Tre(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(u,d){return u[d]="",u},{});!qi(i)||!na(i)||(Object.assign(i.style,c),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}const Pre={name:"applyStyles",enabled:!0,phase:"write",fn:Ere,effect:Tre,requires:["computeStyles"]};function Qo(e){return e.split("-")[0]}var ul=Math.max,Sm=Math.min,eu=Math.round;function MC(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function J5(){return!/^((?!chrome|android).)*safari/i.test(MC())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&qi(e)&&(i=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var a=wl(e)?oo(e):window,c=a.visualViewport,u=!J5()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/i,p=(r.top+(u&&c?c.offsetTop:0))/o,I=r.width/i,P=r.height/o;return{width:I,height:P,top:p,right:d+I,bottom:p+P,left:d,x:d,y:p}}function nk(e){var t=tu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Q5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $a(e){return oo(e).getComputedStyle(e)}function Rre(e){return["table","td","th"].indexOf(na(e))>=0}function Bs(e){return((wl(e)?e.ownerDocument:e.document)||window.document).documentElement}function tb(e){return na(e)==="html"?e:e.assignedSlot||e.parentNode||(tk(e)?e.host:null)||Bs(e)}function H2(e){return!qi(e)||$a(e).position==="fixed"?null:e.offsetParent}function Ore(e){var t=/firefox/i.test(MC()),n=/Trident/i.test(MC());if(n&&qi(e)){var r=$a(e);if(r.position==="fixed")return null}var i=tb(e);for(tk(i)&&(i=i.host);qi(i)&&["html","body"].indexOf(na(i))<0;){var o=$a(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function lf(e){for(var t=oo(e),n=H2(e);n&&Rre(n)&&$a(n).position==="static";)n=H2(n);return n&&(na(n)==="html"||na(n)==="body"&&$a(n).position==="static")?t:n||Ore(e)||t}function rk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dd(e,t,n){return ul(e,Sm(t,n))}function Mre(e,t,n){var r=Dd(e,t,n);return r>n?n:r}function q5(){return{top:0,right:0,bottom:0,left:0}}function eB(e){return Object.assign({},q5(),e)}function tB(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lre=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eB(typeof t!="number"?t:tB(t,sf))};function Dre(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Qo(n.placement),u=rk(c),d=[Ci,io].indexOf(c)>=0,p=d?"height":"width";if(!(!o||!a)){var I=Lre(i.padding,n),P=nk(o),F=u==="y"?wi:Ci,B=u==="y"?ro:io,N=n.rects.reference[p]+n.rects.reference[u]-a[u]-n.rects.popper[p],D=a[u]-n.rects.reference[u],T=lf(o),M=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,O=N/2-D/2,L=I[F],x=M-P[p]-I[B],b=M/2-P[p]/2+O,C=Dd(L,b,x),g=u;n.modifiersData[r]=(t={},t[g]=C,t.centerOffset=C-b,t)}}function $re(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!Q5(t.elements.popper,i)||(t.elements.arrow=i))}const Nre={name:"arrow",enabled:!0,phase:"main",fn:Dre,effect:$re,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var Fre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bre(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:eu(t*i)/i||0,y:eu(n*i)/i||0}}function V2(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,I=e.isFixed,P=a.x,F=P===void 0?0:P,B=a.y,N=B===void 0?0:B,D=typeof p=="function"?p({x:F,y:N}):{x:F,y:N};F=D.x,N=D.y;var T=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),O=Ci,L=wi,x=window;if(d){var b=lf(n),C="clientHeight",g="clientWidth";if(b===oo(n)&&(b=Bs(n),$a(b).position!=="static"&&c==="absolute"&&(C="scrollHeight",g="scrollWidth")),b=b,i===wi||(i===Ci||i===io)&&o===xh){L=ro;var w=I&&b===x&&x.visualViewport?x.visualViewport.height:b[C];N-=w-r.height,N*=u?1:-1}if(i===Ci||(i===wi||i===ro)&&o===xh){O=io;var f=I&&b===x&&x.visualViewport?x.visualViewport.width:b[g];F-=f-r.width,F*=u?1:-1}}var m=Object.assign({position:c},d&&Fre),E=p===!0?Bre({x:F,y:N}):{x:F,y:N};if(F=E.x,N=E.y,u){var S;return Object.assign({},m,(S={},S[L]=M?"0":"",S[O]=T?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+F+"px, "+N+"px)":"translate3d("+F+"px, "+N+"px, 0)",S))}return Object.assign({},m,(t={},t[L]=M?N+"px":"",t[O]=T?F+"px":"",t.transform="",t))}function Wre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Qo(t.placement),variation:nu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Hre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wre,data:{}};var Xf={passive:!0};function Vre(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,c=a===void 0?!0:a,u=oo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(p){p.addEventListener("scroll",n.update,Xf)}),c&&u.addEventListener("resize",n.update,Xf),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Xf)}),c&&u.removeEventListener("resize",n.update,Xf)}}const zre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vre,data:{}};var jre={left:"right",right:"left",bottom:"top",top:"bottom"};function Op(e){return e.replace(/left|right|bottom|top/g,function(t){return jre[t]})}var Gre={start:"end",end:"start"};function z2(e){return e.replace(/start|end/g,function(t){return Gre[t]})}function ik(e){var t=oo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ok(e){return tu(Bs(e)).left+ik(e).scrollLeft}function Yre(e,t){var n=oo(e),r=Bs(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;var d=J5();(d||!d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c+ok(e),y:u}}function Zre(e){var t,n=Bs(e),r=ik(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ul(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ul(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+ok(e),u=-r.scrollTop;return $a(i||n).direction==="rtl"&&(c+=ul(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:c,y:u}}function ak(e){var t=$a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nB(e){return["html","body","#document"].indexOf(na(e))>=0?e.ownerDocument.body:qi(e)&&ak(e)?e:nB(tb(e))}function $d(e,t){var n;t===void 0&&(t=[]);var r=nB(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=oo(r),a=i?[o].concat(o.visualViewport||[],ak(r)?r:[]):r,c=t.concat(a);return i?c:c.concat($d(tb(a)))}function LC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xre(e,t){var n=tu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function j2(e,t,n){return t===U5?LC(Yre(e,n)):wl(t)?Xre(t,n):LC(Zre(Bs(e)))}function Ure(e){var t=$d(tb(e)),n=["absolute","fixed"].indexOf($a(e).position)>=0,r=n&&qi(e)?lf(e):e;return wl(r)?t.filter(function(i){return wl(i)&&Q5(i,r)&&na(i)!=="body"}):[]}function Kre(e,t,n,r){var i=t==="clippingParents"?Ure(e):[].concat(t),o=[].concat(i,[n]),a=o[0],c=o.reduce(function(u,d){var p=j2(e,d,r);return u.top=ul(p.top,u.top),u.right=Sm(p.right,u.right),u.bottom=Sm(p.bottom,u.bottom),u.left=ul(p.left,u.left),u},j2(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function rB(e){var t=e.reference,n=e.element,r=e.placement,i=r?Qo(r):null,o=r?nu(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(i){case wi:u={x:a,y:t.y-n.height};break;case ro:u={x:a,y:t.y+t.height};break;case io:u={x:t.x+t.width,y:c};break;case Ci:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=i?rk(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case qc:u[d]=u[d]-(t[p]/2-n[p]/2);break;case xh:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function wh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,c=n.boundary,u=c===void 0?mre:c,d=n.rootBoundary,p=d===void 0?U5:d,I=n.elementContext,P=I===void 0?Vu:I,F=n.altBoundary,B=F===void 0?!1:F,N=n.padding,D=N===void 0?0:N,T=eB(typeof D!="number"?D:tB(D,sf)),M=P===Vu?vre:Vu,O=e.rects.popper,L=e.elements[B?M:P],x=Kre(wl(L)?L:L.contextElement||Bs(e.elements.popper),u,p,a),b=tu(e.elements.reference),C=rB({reference:b,element:O,strategy:"absolute",placement:i}),g=LC(Object.assign({},O,C)),w=P===Vu?g:b,f={top:x.top-w.top+T.top,bottom:w.bottom-x.bottom+T.bottom,left:x.left-w.left+T.left,right:w.right-x.right+T.right},m=e.modifiersData.offset;if(P===Vu&&m){var E=m[i];Object.keys(f).forEach(function(S){var y=[io,ro].indexOf(S)>=0?1:-1,_=[wi,ro].indexOf(S)>=0?"y":"x";f[S]+=E[_]*y})}return f}function Jre(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?K5:u,p=nu(r),I=p?c?W2:W2.filter(function(B){return nu(B)===p}):sf,P=I.filter(function(B){return d.indexOf(B)>=0});P.length===0&&(P=I);var F=P.reduce(function(B,N){return B[N]=wh(e,{placement:N,boundary:i,rootBoundary:o,padding:a})[Qo(N)],B},{});return Object.keys(F).sort(function(B,N){return F[B]-F[N]})}function Qre(e){if(Qo(e)===ek)return[];var t=Op(e);return[z2(e),t,z2(t)]}function qre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,p=n.boundary,I=n.rootBoundary,P=n.altBoundary,F=n.flipVariations,B=F===void 0?!0:F,N=n.allowedAutoPlacements,D=t.options.placement,T=Qo(D),M=T===D,O=u||(M||!B?[Op(D)]:Qre(D)),L=[D].concat(O).reduce(function(ve,V){return ve.concat(Qo(V)===ek?Jre(t,{placement:V,boundary:p,rootBoundary:I,padding:d,flipVariations:B,allowedAutoPlacements:N}):V)},[]),x=t.rects.reference,b=t.rects.popper,C=new Map,g=!0,w=L[0],f=0;f=0,_=y?"width":"height",$=wh(t,{placement:m,boundary:p,rootBoundary:I,altBoundary:P,padding:d}),z=y?S?io:Ci:S?ro:wi;x[_]>b[_]&&(z=Op(z));var H=Op(z),X=[];if(o&&X.push($[E]<=0),c&&X.push($[z]<=0,$[H]<=0),X.every(function(ve){return ve})){w=m,g=!1;break}C.set(m,X)}if(g)for(var Q=B?3:1,re=function(V){var Z=L.find(function(ce){var Y=C.get(ce);if(Y)return Y.slice(0,V).every(function(ie){return ie})});if(Z)return w=Z,"break"},ue=Q;ue>0;ue--){var le=re(ue);if(le==="break")break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}const eie={name:"flip",enabled:!0,phase:"main",fn:qre,requiresIfExists:["offset"],data:{_skip:!1}};function G2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y2(e){return[wi,io,ro,Ci].some(function(t){return e[t]>=0})}function tie(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=wh(t,{elementContext:"reference"}),c=wh(t,{altBoundary:!0}),u=G2(a,r),d=G2(c,i,o),p=Y2(u),I=Y2(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:I},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":I})}const nie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tie};function rie(e,t,n){var r=Qo(e),i=[Ci,wi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],c=o[1];return a=a||0,c=(c||0)*i,[Ci,io].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function iie(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=K5.reduce(function(p,I){return p[I]=rie(I,t.rects,o),p},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const oie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iie};function aie(e){var t=e.state,n=e.name;t.modifiersData[n]=rB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const sie={name:"popperOffsets",enabled:!0,phase:"read",fn:aie,data:{}};function lie(e){return e==="x"?"y":"x"}function cie(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,I=n.padding,P=n.tether,F=P===void 0?!0:P,B=n.tetherOffset,N=B===void 0?0:B,D=wh(t,{boundary:u,rootBoundary:d,padding:I,altBoundary:p}),T=Qo(t.placement),M=nu(t.placement),O=!M,L=rk(T),x=lie(L),b=t.modifiersData.popperOffsets,C=t.rects.reference,g=t.rects.popper,w=typeof N=="function"?N(Object.assign({},t.rects,{placement:t.placement})):N,f=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),m=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(!!b){if(o){var S,y=L==="y"?wi:Ci,_=L==="y"?ro:io,$=L==="y"?"height":"width",z=b[L],H=z+D[y],X=z-D[_],Q=F?-g[$]/2:0,re=M===qc?C[$]:g[$],ue=M===qc?-g[$]:-C[$],le=t.elements.arrow,ve=F&&le?nk(le):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:q5(),Z=V[y],ce=V[_],Y=Dd(0,C[$],ve[$]),ie=O?C[$]/2-Q-Y-Z-f.mainAxis:re-Y-Z-f.mainAxis,he=O?-C[$]/2+Q+Y+ce+f.mainAxis:ue+Y+ce+f.mainAxis,fe=t.elements.arrow&&lf(t.elements.arrow),Ce=fe?L==="y"?fe.clientTop||0:fe.clientLeft||0:0,Pe=(S=m==null?void 0:m[L])!=null?S:0,we=z+ie-Pe-Ce,be=z+he-Pe,ee=Dd(F?Sm(H,we):H,z,F?ul(X,be):X);b[L]=ee,E[L]=ee-z}if(c){var se,ge=L==="x"?wi:Ci,U=L==="x"?ro:io,q=b[x],oe=x==="y"?"height":"width",xe=q+D[ge],ke=q-D[U],Te=[wi,Ci].indexOf(T)!==-1,Ne=(se=m==null?void 0:m[x])!=null?se:0,Ge=Te?xe:q-C[oe]-g[oe]-Ne+f.altAxis,nt=Te?q+C[oe]+g[oe]-Ne-f.altAxis:ke,He=F&&Te?Mre(Ge,q,nt):Dd(F?Ge:xe,q,F?nt:ke);b[x]=He,E[x]=He-q}t.modifiersData[r]=E}}const uie={name:"preventOverflow",enabled:!0,phase:"main",fn:cie,requiresIfExists:["offset"]};function die(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hie(e){return e===oo(e)||!qi(e)?ik(e):die(e)}function fie(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pie(e,t,n){n===void 0&&(n=!1);var r=qi(t),i=qi(t)&&fie(t),o=Bs(t),a=tu(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((na(t)!=="body"||ak(o))&&(c=hie(t)),qi(t)?(u=tu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=ok(o))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function gie(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function mie(e){var t=gie(e);return _re.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yie(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Z2={placement:"bottom",modifiers:[],strategy:"absolute"};function X2(){for(var e=arguments.length,t=new Array(e),n=0;n{}),O=de.exports.useCallback(()=>{var f;!t||!B.current||!N.current||((f=M.current)==null||f.call(M),D.current=iB(B.current,N.current,{placement:T,modifiers:[hre,cre,lre,{...sre,enabled:!!P},{name:"eventListeners",...are(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:c!=null?c:[0,u]}},{name:"flip",enabled:!!d,options:{padding:8}},{name:"preventOverflow",enabled:!!I,options:{boundary:p}},...n!=null?n:[]],strategy:i}),D.current.forceUpdate(),M.current=D.current.destroy)},[T,t,n,P,a,o,c,u,d,I,p,i]);de.exports.useEffect(()=>()=>{var f;!B.current&&!N.current&&((f=D.current)==null||f.destroy(),D.current=null)},[]);const L=de.exports.useCallback(f=>{B.current=f,O()},[O]),x=de.exports.useCallback((f={},m=null)=>({...f,ref:_n(L,m)}),[L]),b=de.exports.useCallback(f=>{N.current=f,O()},[O]),C=de.exports.useCallback((f={},m=null)=>({...f,ref:_n(b,m),style:{...f.style,position:i,minWidth:P?void 0:"max-content",inset:"0 auto auto 0"}}),[i,b,P]),g=de.exports.useCallback((f={},m=null)=>{const{size:E,shadowColor:S,bg:y,style:_,...$}=f;return{...$,ref:m,"data-popper-arrow":"",style:wie(f)}},[]),w=de.exports.useCallback((f={},m=null)=>({...f,ref:m,"data-popper-arrow-inner":""}),[]);return{update(){var f;(f=D.current)==null||f.update()},forceUpdate(){var f;(f=D.current)==null||f.forceUpdate()},transformOrigin:fr.transformOrigin.varRef,referenceRef:L,popperRef:b,getPopperProps:C,getArrowProps:g,getArrowInnerProps:w,getReferenceProps:x}}function wie(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function lk(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=nr(n),a=nr(t),[c,u]=de.exports.useState(e.defaultIsOpen||!1),d=r!==void 0?r:c,p=r!==void 0,I=de.exports.useId(),P=i!=null?i:`disclosure-${I}`,F=de.exports.useCallback(()=>{p||u(!1),a==null||a()},[p,a]),B=de.exports.useCallback(()=>{p||u(!0),o==null||o()},[p,o]),N=de.exports.useCallback(()=>{d?F():B()},[d,B,F]);function D(M={}){return{...M,"aria-expanded":d,"aria-controls":P,onClick(O){var L;(L=M.onClick)==null||L.call(M,O),N()}}}function T(M={}){return{...M,hidden:!d,id:P}}return{isOpen:d,onOpen:B,onClose:F,onToggle:N,isControlled:p,getButtonProps:D,getDisclosureProps:T}}function Cie(e){const{ref:t,handler:n,enabled:r=!0}=e,i=nr(n),a=de.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;de.exports.useEffect(()=>{if(!r)return;const c=I=>{ex(I,t)&&(a.isPointerDown=!0)},u=I=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&n&&ex(I,t)&&(a.isPointerDown=!1,i(I))},d=I=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&ex(I,t)&&(a.isPointerDown=!1,i(I))},p=oB(t.current);return p.addEventListener("mousedown",c,!0),p.addEventListener("mouseup",u,!0),p.addEventListener("touchstart",c,!0),p.addEventListener("touchend",d,!0),()=>{p.removeEventListener("mousedown",c,!0),p.removeEventListener("mouseup",u,!0),p.removeEventListener("touchstart",c,!0),p.removeEventListener("touchend",d,!0)}},[n,t,i,a,r])}function ex(e,t){var n;const r=e.target;return e.button>0||r&&!oB(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function oB(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function aB(e){const{isOpen:t,ref:n}=e,[r,i]=de.exports.useState(t),[o,a]=de.exports.useState(!1);return de.exports.useEffect(()=>{o||(i(t),a(!0))},[t,o,r]),cl(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var u;const d=ane(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(u=n.current)==null||u.dispatchEvent(p)}}}function ck(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[Sie,Aie,Iie,kie]=$I(),[_ie,cf]=In({strict:!1,name:"MenuContext"});function Eie(e,...t){const n=de.exports.useId(),r=e||n;return de.exports.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function sB(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function U2(e){return sB(e).activeElement===e}function Tie(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:a,isOpen:c,defaultIsOpen:u,onClose:d,onOpen:p,placement:I="bottom-start",lazyBehavior:P="unmount",direction:F,computePositionOnMount:B=!1,...N}=e,D=de.exports.useRef(null),T=de.exports.useRef(null),M=Iie(),O=de.exports.useCallback(()=>{requestAnimationFrame(()=>{var le;(le=D.current)==null||le.focus({preventScroll:!1})})},[]),L=de.exports.useCallback(()=>{const le=setTimeout(()=>{var ve;if(i)(ve=i.current)==null||ve.focus();else{const V=M.firstEnabled();V&&S(V.index)}});H.current.add(le)},[M,i]),x=de.exports.useCallback(()=>{const le=setTimeout(()=>{const ve=M.lastEnabled();ve&&S(ve.index)});H.current.add(le)},[M]),b=de.exports.useCallback(()=>{p==null||p(),o?L():O()},[o,L,O,p]),{isOpen:C,onOpen:g,onClose:w,onToggle:f}=lk({isOpen:c,defaultIsOpen:u,onClose:d,onOpen:b});Cie({enabled:C&&r,ref:D,handler:le=>{var ve;(ve=T.current)!=null&&ve.contains(le.target)||w()}});const m=sk({...N,enabled:C||B,placement:I,direction:F}),[E,S]=de.exports.useState(-1);Da(()=>{C||S(-1)},[C]),X5(D,{focusRef:T,visible:C,shouldFocus:!0});const y=aB({isOpen:C,ref:D}),[_,$]=Eie(t,"menu-button","menu-list"),z=de.exports.useCallback(()=>{g(),O()},[g,O]),H=de.exports.useRef(new Set([]));$ie(()=>{H.current.forEach(le=>clearTimeout(le)),H.current.clear()});const X=de.exports.useCallback(()=>{g(),L()},[L,g]),Q=de.exports.useCallback(()=>{g(),x()},[g,x]),re=de.exports.useCallback(()=>{var le,ve;const V=sB(D.current),Z=(le=D.current)==null?void 0:le.contains(V.activeElement);if(!(C&&!Z))return;const Y=(ve=M.item(E))==null?void 0:ve.node;Y==null||Y.focus()},[C,E,M]),ue=de.exports.useRef(null);return{openAndFocusMenu:z,openAndFocusFirstItem:X,openAndFocusLastItem:Q,onTransitionEnd:re,unstable__animationState:y,descendants:M,popper:m,buttonId:_,menuId:$,forceUpdate:m.forceUpdate,orientation:"vertical",isOpen:C,onToggle:f,onOpen:g,onClose:w,menuRef:D,buttonRef:T,focusedIndex:E,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:S,isLazy:a,lazyBehavior:P,initialFocusRef:i,rafId:ue}}function Pie(e={},t=null){const n=cf(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:a}=n,c=de.exports.useCallback(u=>{const d=u.key,I={Enter:o,ArrowDown:o,ArrowUp:a}[d];I&&(u.preventDefault(),u.stopPropagation(),I(u))},[o,a]);return{...e,ref:_n(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":Qt(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Wt(e.onClick,r),onKeyDown:Wt(e.onKeyDown,c)}}function DC(e){var t;return Lie(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function Rie(e={},t=null){const n=cf();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:a,onClose:c,menuId:u,isLazy:d,lazyBehavior:p,unstable__animationState:I}=n,P=Aie(),F=Kne({preventDefault:T=>T.key!==" "&&DC(T.target)}),B=de.exports.useCallback(T=>{const M=T.key,L={Tab:b=>b.preventDefault(),Escape:c,ArrowDown:()=>{const b=P.nextEnabled(r);b&&i(b.index)},ArrowUp:()=>{const b=P.prevEnabled(r);b&&i(b.index)}}[M];if(L){T.preventDefault(),L(T);return}const x=F(b=>{const C=Jne(P.values(),b,g=>{var w,f;return(f=(w=g==null?void 0:g.node)==null?void 0:w.textContent)!=null?f:""},P.item(r));if(C){const g=P.indexOf(C.node);i(g)}});DC(T.target)&&x(T)},[P,r,F,c,i]),N=de.exports.useRef(!1);a&&(N.current=!0);const D=ck({wasSelected:N.current,enabled:d,mode:p,isSelected:I.present});return{...e,ref:_n(o,t),children:D?e.children:null,tabIndex:-1,role:"menu",id:u,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Wt(e.onKeyDown,B)}}function Oie(e={}){const{popper:t,isOpen:n}=cf();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function Mie(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:a,isDisabled:c,isFocusable:u,closeOnSelect:d,type:p,...I}=e,P=cf(),{setFocusedIndex:F,focusedIndex:B,closeOnSelect:N,onClose:D,menuRef:T,isOpen:M,menuId:O,rafId:L}=P,x=de.exports.useRef(null),b=`${O}-menuitem-${de.exports.useId()}`,{index:C,register:g}=kie({disabled:c&&!u}),w=de.exports.useCallback(z=>{n==null||n(z),!c&&F(C)},[F,C,c,n]),f=de.exports.useCallback(z=>{r==null||r(z),x.current&&!U2(x.current)&&w(z)},[w,r]),m=de.exports.useCallback(z=>{i==null||i(z),!c&&F(-1)},[F,c,i]),E=de.exports.useCallback(z=>{o==null||o(z),!!DC(z.currentTarget)&&(d!=null?d:N)&&D()},[D,o,N,d]),S=de.exports.useCallback(z=>{a==null||a(z),F(C)},[F,a,C]),y=C===B,_=c&&!u;Da(()=>{!M||(y&&!_&&x.current?(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{var z;(z=x.current)==null||z.focus(),L.current=null})):T.current&&!U2(T.current)&&T.current.focus())},[y,_,T,M]);const $=Z5({onClick:E,onFocus:S,onMouseEnter:w,onMouseMove:f,onMouseLeave:m,ref:_n(g,x,t),isDisabled:c,isFocusable:u});return{...I,...$,type:p!=null?p:$.type,id:b,role:"menuitem",tabIndex:y?0:-1}}function Lie(e){var t;if(!Die(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function Die(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function $ie(e,t=[]){return de.exports.useEffect(()=>()=>e(),t)}var[Nie,nb]=In({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Fie=e=>{const{children:t}=e,n=zr("Menu",e),r=Dn(e),{direction:i}=Fs(),{descendants:o,...a}=Tie({...r,direction:i}),c=de.exports.useMemo(()=>a,[a]),{isOpen:u,onClose:d,forceUpdate:p}=c;return Se(Sie,{value:o,children:Se(_ie,{value:c,children:Se(Nie,{value:n,children:Ki(t,{isOpen:u,onClose:d,forceUpdate:p})})})})};Fie.displayName="Menu";var lB=It((e,t)=>{const n=nb();return Se(pt.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});lB.displayName="MenuCommand";var Bie=It((e,t)=>{const{type:n,...r}=e,i=nb(),o=r.as||n?n!=null?n:void 0:"button",a=de.exports.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return Se(pt.button,{ref:t,type:o,...r,__css:a})}),cB=e=>{const{className:t,children:n,...r}=e,i=de.exports.Children.only(n),o=de.exports.isValidElement(i)?de.exports.cloneElement(i,{focusable:"false","aria-hidden":!0,className:Bt("chakra-menu__icon",i.props.className)}):null,a=Bt("chakra-menu__icon-wrapper",t);return Se(pt.span,{className:a,...r,__css:{flexShrink:0},children:o})};cB.displayName="MenuIcon";var Wie=It((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:o="0.75rem",children:a,...c}=e,u=Mie(c,t),p=n||i?Se("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return At(Bie,{...u,className:Bt("chakra-menu__menuitem",u.className),children:[n&&Se(cB,{fontSize:"0.8em",marginEnd:r,children:n}),p,i&&Se(lB,{marginStart:o,children:i})]})});Wie.displayName="MenuItem";var Hie={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Vie=pt(aa.div),zie=It(function(t,n){var r,i;const{rootProps:o,motionProps:a,...c}=t,{isOpen:u,onTransitionEnd:d,unstable__animationState:p}=cf(),I=Rie(c,n),P=Oie(o),F=nb();return Se(pt.div,{...P,__css:{zIndex:(i=t.zIndex)!=null?i:(r=F.list)==null?void 0:r.zIndex},children:Se(Vie,{variants:Hie,initial:!1,animate:u?"enter":"exit",__css:{outline:0,...F.list},...a,className:Bt("chakra-menu__menu-list",I.className),...I,onUpdate:d,onAnimationComplete:ZA(p.onComplete,I.onAnimationComplete)})})});zie.displayName="MenuList";var jie=It((e,t)=>{const n=nb();return Se(pt.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),Gie=It((e,t)=>{const{children:n,as:r,...i}=e,o=Pie(i,t);return Se(r||jie,{...o,className:Bt("chakra-menu__menu-button",e.className),children:Se(pt.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});Gie.displayName="MenuButton";var Yie={slideInBottom:{...CC,custom:{offsetY:16,reverse:!0}},slideInRight:{...CC,custom:{offsetX:16,reverse:!0}},scale:{...WF,custom:{initialScale:.95,reverse:!0}},none:{}},Zie=pt(aa.section),Xie=e=>Yie[e||"none"],uB=de.exports.forwardRef((e,t)=>{const{preset:n,motionProps:r=Xie(n),...i}=e;return Se(Zie,{ref:t,...r,...i})});uB.displayName="ModalTransition";var Uie=Object.defineProperty,Kie=(e,t,n)=>t in e?Uie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jie=(e,t,n)=>(Kie(e,typeof t!="symbol"?t+"":t,n),n),Qie=class{constructor(){Jie(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},$C=new Qie;function dB(e,t){const[n,r]=de.exports.useState(0);return de.exports.useEffect(()=>{const i=e.current;if(!!i){if(t){const o=$C.add(i);r(o)}return()=>{$C.remove(i),r(0)}}},[t,e]),n}var qie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vl=new WeakMap,Uf=new WeakMap,Kf={},tx=0,hB=function(e){return e&&(e.host||hB(e.parentNode))},eoe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hB(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return Boolean(n)})},toe=function(e,t,n,r){var i=eoe(t,Array.isArray(e)?e:[e]);Kf[n]||(Kf[n]=new WeakMap);var o=Kf[n],a=[],c=new Set,u=new Set(i),d=function(I){!I||c.has(I)||(c.add(I),d(I.parentNode))};i.forEach(d);var p=function(I){!I||u.has(I)||Array.prototype.forEach.call(I.children,function(P){if(c.has(P))p(P);else{var F=P.getAttribute(r),B=F!==null&&F!=="false",N=(Vl.get(P)||0)+1,D=(o.get(P)||0)+1;Vl.set(P,N),o.set(P,D),a.push(P),N===1&&B&&Uf.set(P,!0),D===1&&P.setAttribute(n,"true"),B||P.setAttribute(r,"true")}})};return p(t),c.clear(),tx++,function(){a.forEach(function(I){var P=Vl.get(I)-1,F=o.get(I)-1;Vl.set(I,P),o.set(I,F),P||(Uf.has(I)||I.removeAttribute(r),Uf.delete(I)),F||I.removeAttribute(n)}),tx--,tx||(Vl=new WeakMap,Vl=new WeakMap,Uf=new WeakMap,Kf={})}},noe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||qie(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),toe(r,i,n,"aria-hidden")):function(){return null}};function roe(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:c,onEsc:u}=e,d=de.exports.useRef(null),p=de.exports.useRef(null),[I,P,F]=ooe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");ioe(d,t&&a),dB(d,t);const B=de.exports.useRef(null),N=de.exports.useCallback(g=>{B.current=g.target},[]),D=de.exports.useCallback(g=>{g.key==="Escape"&&(g.stopPropagation(),o&&(n==null||n()),u==null||u())},[o,n,u]),[T,M]=de.exports.useState(!1),[O,L]=de.exports.useState(!1),x=de.exports.useCallback((g={},w=null)=>({role:"dialog",...g,ref:_n(w,d),id:I,tabIndex:-1,"aria-modal":!0,"aria-labelledby":T?P:void 0,"aria-describedby":O?F:void 0,onClick:Wt(g.onClick,f=>f.stopPropagation())}),[F,O,I,P,T]),b=de.exports.useCallback(g=>{g.stopPropagation(),B.current===g.target&&(!$C.isTopModal(d.current)||(i&&(n==null||n()),c==null||c()))},[n,i,c]),C=de.exports.useCallback((g={},w=null)=>({...g,ref:_n(w,p),onClick:Wt(g.onClick,b),onKeyDown:Wt(g.onKeyDown,D),onMouseDown:Wt(g.onMouseDown,N)}),[D,N,b]);return{isOpen:t,onClose:n,headerId:P,bodyId:F,setBodyMounted:L,setHeaderMounted:M,dialogRef:d,overlayRef:p,getDialogProps:x,getDialogContainerProps:C}}function ioe(e,t){const n=e.current;de.exports.useEffect(()=>{if(!(!e.current||!t))return noe(e.current)},[t,e,n])}function ooe(e,...t){const n=de.exports.useId(),r=e||n;return de.exports.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[aoe,vu]=In({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[soe,Cl]=In({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),loe=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:c,returnFocusOnClose:u,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:I,motionPreset:P,lockFocusAcrossFrames:F,onCloseComplete:B}=t,N=zr("Modal",t),T={...roe(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:c,returnFocusOnClose:u,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:I,motionPreset:P,lockFocusAcrossFrames:F};return Se(soe,{value:T,children:Se(aoe,{value:N,children:Se(Ml,{onExitComplete:B,children:T.isOpen&&Se(gu,{...n,children:r})})})})};loe.displayName="Modal";var Mp="right-scroll-bar-position",Lp="width-before-scroll-bar",coe="with-scroll-bars-hidden",uoe="--removed-body-scroll-bar-size",fB=n5(),nx=function(){},rb=de.exports.forwardRef(function(e,t){var n=de.exports.useRef(null),r=de.exports.useState({onScrollCapture:nx,onWheelCapture:nx,onTouchMoveCapture:nx}),i=r[0],o=r[1],a=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,I=e.shards,P=e.sideCar,F=e.noIsolation,B=e.inert,N=e.allowPinchZoom,D=e.as,T=D===void 0?"div":D,M=TF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=P,L=qF([n,t]),x=Bo(Bo({},M),i);return At(Ao,{children:[p&&Se(O,{sideCar:fB,removeScrollBar:d,shards:I,noIsolation:F,inert:B,setCallbacks:o,allowPinchZoom:!!N,lockRef:n}),a?de.exports.cloneElement(de.exports.Children.only(c),Bo(Bo({},x),{ref:L})):Se(T,{...Bo({},x,{className:u,ref:L}),children:c})]})});rb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rb.classNames={fullWidth:Lp,zeroRight:Mp};var doe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hoe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=doe();return t&&e.setAttribute("nonce",t),e}function foe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function poe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var goe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hoe())&&(foe(t,n),poe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},moe=function(){var e=goe();return function(t,n){de.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pB=function(){var e=moe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},voe={left:0,top:0,right:0,gap:0},rx=function(e){return parseInt(e||"",10)||0},yoe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[rx(n),rx(r),rx(i)]},boe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return voe;var t=yoe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xoe=pB(),woe=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),` .`.concat(coe,` { overflow: hidden `).concat(r,`; padding-right: `).concat(c,"px ").concat(r,`; @@ -386,7 +386,7 @@ Error generating stack: `+o.message+` `)},Coe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=de.exports.useMemo(function(){return boe(i)},[i]);return Se(xoe,{styles:woe(o,!t,i,n?"":"!important")})},NC=!1;if(typeof window<"u")try{var Jf=Object.defineProperty({},"passive",{get:function(){return NC=!0,!0}});window.addEventListener("test",Jf,Jf),window.removeEventListener("test",Jf,Jf)}catch{NC=!1}var zl=NC?{passive:!1}:!1,Soe=function(e){return e.tagName==="TEXTAREA"},gB=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Soe(e)&&n[t]==="visible")},Aoe=function(e){return gB(e,"overflowY")},Ioe=function(e){return gB(e,"overflowX")},K2=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=mB(e,n);if(r){var i=vB(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},koe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_oe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},mB=function(e,t){return e==="v"?Aoe(t):Ioe(t)},vB=function(e,t){return e==="v"?koe(t):_oe(t)},Eoe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Toe=function(e,t,n,r,i){var o=Eoe(e,window.getComputedStyle(t).direction),a=o*r,c=n.target,u=t.contains(c),d=!1,p=a>0,I=0,P=0;do{var F=vB(e,c),B=F[0],N=F[1],D=F[2],T=N-D-o*B;(B||T)&&mB(e,c)&&(I+=T,P+=B),c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&(i&&I===0||!i&&a>I)||!p&&(i&&P===0||!i&&-a>P))&&(d=!0),d},Qf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},J2=function(e){return[e.deltaX,e.deltaY]},Q2=function(e){return e&&"current"in e?e.current:e},Poe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Roe=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Ooe=0,jl=[];function Moe(e){var t=de.exports.useRef([]),n=de.exports.useRef([0,0]),r=de.exports.useRef(),i=de.exports.useState(Ooe++)[0],o=de.exports.useState(function(){return pB()})[0],a=de.exports.useRef(e);de.exports.useEffect(function(){a.current=e},[e]),de.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var N=oq([e.lockRef.current],(e.shards||[]).map(Q2),!0).filter(Boolean);return N.forEach(function(D){return D.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),N.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=de.exports.useCallback(function(N,D){if("touches"in N&&N.touches.length===2)return!a.current.allowPinchZoom;var T=Qf(N),M=n.current,O="deltaX"in N?N.deltaX:M[0]-T[0],L="deltaY"in N?N.deltaY:M[1]-T[1],x,b=N.target,C=Math.abs(O)>Math.abs(L)?"h":"v";if("touches"in N&&C==="h"&&b.type==="range")return!1;var g=K2(C,b);if(!g)return!0;if(g?x=C:(x=C==="v"?"h":"v",g=K2(C,b)),!g)return!1;if(!r.current&&"changedTouches"in N&&(O||L)&&(r.current=x),!x)return!0;var w=r.current||x;return Toe(w,D,N,w==="h"?O:L,!0)},[]),u=de.exports.useCallback(function(N){var D=N;if(!(!jl.length||jl[jl.length-1]!==o)){var T="deltaY"in D?J2(D):Qf(D),M=t.current.filter(function(x){return x.name===D.type&&x.target===D.target&&Poe(x.delta,T)})[0];if(M&&M.should){D.cancelable&&D.preventDefault();return}if(!M){var O=(a.current.shards||[]).map(Q2).filter(Boolean).filter(function(x){return x.contains(D.target)}),L=O.length>0?c(D,O[0]):!a.current.noIsolation;L&&D.cancelable&&D.preventDefault()}}},[]),d=de.exports.useCallback(function(N,D,T,M){var O={name:N,delta:D,target:T,should:M};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(L){return L!==O})},1)},[]),p=de.exports.useCallback(function(N){n.current=Qf(N),r.current=void 0},[]),I=de.exports.useCallback(function(N){d(N.type,J2(N),N.target,c(N,e.lockRef.current))},[]),P=de.exports.useCallback(function(N){d(N.type,Qf(N),N.target,c(N,e.lockRef.current))},[]);de.exports.useEffect(function(){return jl.push(o),e.setCallbacks({onScrollCapture:I,onWheelCapture:I,onTouchMoveCapture:P}),document.addEventListener("wheel",u,zl),document.addEventListener("touchmove",u,zl),document.addEventListener("touchstart",p,zl),function(){jl=jl.filter(function(N){return N!==o}),document.removeEventListener("wheel",u,zl),document.removeEventListener("touchmove",u,zl),document.removeEventListener("touchstart",p,zl)}},[]);var F=e.removeScrollBar,B=e.inert;return At(Ao,{children:[B?Se(o,{styles:Roe(i)}):null,F?Se(Coe,{gapMode:"margin"}):null]})}const Loe=lte(fB,Moe);var yB=de.exports.forwardRef(function(e,t){return Se(rb,{...Bo({},e,{ref:t,sideCar:Loe})})});yB.classNames=rb.classNames;const Doe=yB;function $oe(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:c,returnFocusOnClose:u,preserveScrollBarGap:d,lockFocusAcrossFrames:p,isOpen:I}=Cl(),[P,F]=mI();de.exports.useEffect(()=>{!P&&F&&setTimeout(F)},[P,F]);const B=dB(r,I);return Se(D5,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:c,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:p,children:Se(Doe,{removeScrollBar:!d,allowPinchZoom:a,enabled:B===1&&o,forwardProps:!0,children:e.children})})}var Noe=It((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:c,getDialogContainerProps:u}=Cl(),d=c(a,t),p=u(i),I=Bt("chakra-modal__content",n),P=vu(),F={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...P.dialog},B={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...P.dialogContainer},{motionPreset:N}=Cl();return Se($oe,{children:Se(pt.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:B,children:Se(uB,{preset:N,motionProps:o,className:I,...d,__css:F,children:r})})})});Noe.displayName="ModalContent";var Foe=It((e,t)=>{const{className:n,...r}=e,i=Bt("chakra-modal__footer",n),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...vu().footer};return Se(pt.footer,{ref:t,...r,__css:a,className:i})});Foe.displayName="ModalFooter";var Boe=It((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=Cl();de.exports.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=Bt("chakra-modal__header",n),u={flex:0,...vu().header};return Se(pt.header,{ref:t,className:a,id:i,...r,__css:u})});Boe.displayName="ModalHeader";var Woe=pt(aa.div),Hoe=It((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=Bt("chakra-modal__overlay",n),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...vu().overlay},{motionPreset:d}=Cl();return Se(Woe,{...i||(d==="none"?{}:BF),__css:u,ref:t,className:a,...o})});Hoe.displayName="ModalOverlay";var Voe=It((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=Cl();de.exports.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=Bt("chakra-modal__body",n),c=vu();return Se(pt.div,{ref:t,className:a,id:i,...r,__css:c.body})});Voe.displayName="ModalBody";var zoe=It((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=Cl(),a=Bt("chakra-modal__close-btn",r),c=vu();return Se(Ky,{ref:t,__css:c.closeButton,className:a,onClick:Wt(n,u=>{u.stopPropagation(),o()}),...i})});zoe.displayName="ModalCloseButton";var joe=e=>Se(Wa,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Goe=e=>Se(Wa,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function q2(e,t,n,r){de.exports.useEffect(()=>{var i;if(!e.current||!r)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,a=Array.isArray(t)?t:[t],c=new o.MutationObserver(u=>{for(const d of u)d.type==="attributes"&&d.attributeName&&a.includes(d.attributeName)&&n(d)});return c.observe(e.current,{attributes:!0,attributeFilter:a}),()=>c.disconnect()})}function Yoe(e,t){const n=nr(e);de.exports.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var Zoe=50,eP=300;function Xoe(e,t){const[n,r]=de.exports.useState(!1),[i,o]=de.exports.useState(null),[a,c]=de.exports.useState(!0),u=de.exports.useRef(null),d=()=>clearTimeout(u.current);Yoe(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?Zoe:null);const p=de.exports.useCallback(()=>{a&&e(),u.current=setTimeout(()=>{c(!1),r(!0),o("increment")},eP)},[e,a]),I=de.exports.useCallback(()=>{a&&t(),u.current=setTimeout(()=>{c(!1),r(!0),o("decrement")},eP)},[t,a]),P=de.exports.useCallback(()=>{c(!0),r(!1),d()},[]);return de.exports.useEffect(()=>()=>d(),[]),{up:p,down:I,stop:P,isSpinning:n}}var Uoe=/^[Ee0-9+\-.]$/;function Koe(e){return Uoe.test(e)}function Joe(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function Qoe(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:c,isDisabled:u,isRequired:d,isInvalid:p,pattern:I="[0-9]*(.[0-9]+)?",inputMode:P="decimal",allowMouseWheel:F,id:B,onChange:N,precision:D,name:T,"aria-describedby":M,"aria-label":O,"aria-labelledby":L,onFocus:x,onBlur:b,onInvalid:C,getAriaValueText:g,isValidCharacter:w,format:f,parse:m,...E}=e,S=nr(x),y=nr(b),_=nr(C),$=nr(w!=null?w:Koe),z=nr(g),H=Gee(e),{update:X,increment:Q,decrement:re}=H,[ue,le]=de.exports.useState(!1),ve=!(c||u),V=de.exports.useRef(null),Z=de.exports.useRef(null),ce=de.exports.useRef(null),Y=de.exports.useRef(null),ie=de.exports.useCallback(He=>He.split("").filter($).join(""),[$]),he=de.exports.useCallback(He=>{var et;return(et=m==null?void 0:m(He))!=null?et:He},[m]),fe=de.exports.useCallback(He=>{var et;return((et=f==null?void 0:f(He))!=null?et:He).toString()},[f]);La(()=>{(H.valueAsNumber>o||H.valueAsNumber{if(!V.current)return;if(V.current.value!=H.value){const et=he(V.current.value);H.setValue(ie(et))}},[he,ie]);const Ce=de.exports.useCallback((He=a)=>{ve&&Q(He)},[Q,ve,a]),Pe=de.exports.useCallback((He=a)=>{ve&&re(He)},[re,ve,a]),we=Xoe(Ce,Pe);q2(ce,"disabled",we.stop,we.isSpinning),q2(Y,"disabled",we.stop,we.isSpinning);const be=de.exports.useCallback(He=>{if(He.nativeEvent.isComposing)return;const ot=he(He.currentTarget.value);X(ie(ot)),Z.current={start:He.currentTarget.selectionStart,end:He.currentTarget.selectionEnd}},[X,ie,he]),ee=de.exports.useCallback(He=>{var et,ot,lt;S==null||S(He),Z.current&&(He.target.selectionStart=(ot=Z.current.start)!=null?ot:(et=He.currentTarget.value)==null?void 0:et.length,He.currentTarget.selectionEnd=(lt=Z.current.end)!=null?lt:He.currentTarget.selectionStart)},[S]),se=de.exports.useCallback(He=>{if(He.nativeEvent.isComposing)return;Joe(He,$)||He.preventDefault();const et=ge(He)*a,ot=He.key,Qe={ArrowUp:()=>Ce(et),ArrowDown:()=>Pe(et),Home:()=>X(i),End:()=>X(o)}[ot];Qe&&(He.preventDefault(),Qe(He))},[$,a,Ce,Pe,X,i,o]),ge=He=>{let et=1;return(He.metaKey||He.ctrlKey)&&(et=.1),He.shiftKey&&(et=10),et},U=de.exports.useMemo(()=>{const He=z==null?void 0:z(H.value);if(He!=null)return He;const et=H.value.toString();return et||void 0},[H.value,z]),q=de.exports.useCallback(()=>{let He=H.value;if(H.value==="")return;/^[eE]/.test(H.value.toString())?H.setValue(""):(H.valueAsNumbero&&(He=o),H.cast(He))},[H,o,i]),oe=de.exports.useCallback(()=>{le(!1),n&&q()},[n,le,q]),xe=de.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var He;(He=V.current)==null||He.focus()})},[t]),ke=de.exports.useCallback(He=>{He.preventDefault(),we.up(),xe()},[xe,we]),Te=de.exports.useCallback(He=>{He.preventDefault(),we.down(),xe()},[xe,we]);cl(()=>V.current,"wheel",He=>{var et,ot;const Qe=((ot=(et=V.current)==null?void 0:et.ownerDocument)!=null?ot:document).activeElement===V.current;if(!F||!Qe)return;He.preventDefault();const ht=ge(He)*a,dt=Math.sign(He.deltaY);dt===-1?Ce(ht):dt===1&&Pe(ht)},{passive:!1});const Ne=de.exports.useCallback((He={},et=null)=>{const ot=u||r&&H.isAtMax;return{...He,ref:_n(et,ce),role:"button",tabIndex:-1,onPointerDown:Wt(He.onPointerDown,lt=>{lt.button!==0||ot||ke(lt)}),onPointerLeave:Wt(He.onPointerLeave,we.stop),onPointerUp:Wt(He.onPointerUp,we.stop),disabled:ot,"aria-disabled":Ca(ot)}},[H.isAtMax,r,ke,we.stop,u]),Ge=de.exports.useCallback((He={},et=null)=>{const ot=u||r&&H.isAtMin;return{...He,ref:_n(et,Y),role:"button",tabIndex:-1,onPointerDown:Wt(He.onPointerDown,lt=>{lt.button!==0||ot||Te(lt)}),onPointerLeave:Wt(He.onPointerLeave,we.stop),onPointerUp:Wt(He.onPointerUp,we.stop),disabled:ot,"aria-disabled":Ca(ot)}},[H.isAtMin,r,Te,we.stop,u]),nt=de.exports.useCallback((He={},et=null)=>{var ot,lt,Qe,ht;return{name:T,inputMode:P,type:"text",pattern:I,"aria-labelledby":L,"aria-label":O,"aria-describedby":M,id:B,disabled:u,...He,readOnly:(ot=He.readOnly)!=null?ot:c,"aria-readonly":(lt=He.readOnly)!=null?lt:c,"aria-required":(Qe=He.required)!=null?Qe:d,required:(ht=He.required)!=null?ht:d,ref:_n(V,et),value:fe(H.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(H.valueAsNumber)?void 0:H.valueAsNumber,"aria-invalid":Ca(p!=null?p:H.isOutOfRange),"aria-valuetext":U,autoComplete:"off",autoCorrect:"off",onChange:Wt(He.onChange,be),onKeyDown:Wt(He.onKeyDown,se),onFocus:Wt(He.onFocus,ee,()=>le(!0)),onBlur:Wt(He.onBlur,y,oe)}},[T,P,I,L,O,fe,M,B,u,d,c,p,H.value,H.valueAsNumber,H.isOutOfRange,i,o,U,be,se,ee,y,oe]);return{value:fe(H.value),valueAsNumber:H.valueAsNumber,isFocused:ue,isDisabled:u,isReadOnly:c,getIncrementButtonProps:Ne,getDecrementButtonProps:Ge,getInputProps:nt,htmlProps:E}}var[qoe,ib]=In({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[eae,uk]=In({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),tae=It(function(t,n){const r=zr("NumberInput",t),i=Dn(t),o=HI(i),{htmlProps:a,...c}=Qoe(o),u=de.exports.useMemo(()=>c,[c]);return Se(eae,{value:u,children:Se(qoe,{value:r,children:Se(pt.div,{...a,ref:n,className:Bt("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});tae.displayName="NumberInput";var nae=It(function(t,n){const r=ib();return Se(pt.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});nae.displayName="NumberInputStepper";var rae=It(function(t,n){const{getInputProps:r}=uk(),i=r(t,n),o=ib();return Se(pt.input,{...i,className:Bt("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});rae.displayName="NumberInputField";var bB=pt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),iae=It(function(t,n){var r;const i=ib(),{getDecrementButtonProps:o}=uk(),a=o(t,n);return Se(bB,{...a,__css:i.stepper,children:(r=t.children)!=null?r:Se(joe,{})})});iae.displayName="NumberDecrementStepper";var oae=It(function(t,n){var r;const{getIncrementButtonProps:i}=uk(),o=i(t,n),a=ib();return Se(bB,{...o,__css:a.stepper,children:(r=t.children)!=null?r:Se(Goe,{})})});oae.displayName="NumberIncrementStepper";var[aae,yu]=In({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[sae,ob]=In({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `});function lae(e){const t=de.exports.Children.only(e.children),{getTriggerProps:n}=yu();return de.exports.cloneElement(t,n(t.props,t.ref))}lae.displayName="PopoverTrigger";var Gl={click:"click",hover:"hover"};function cae(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:o=!0,autoFocus:a=!0,arrowSize:c,arrowShadowColor:u,trigger:d=Gl.click,openDelay:p=200,closeDelay:I=200,isLazy:P,lazyBehavior:F="unmount",computePositionOnMount:B,...N}=e,{isOpen:D,onClose:T,onOpen:M,onToggle:O}=lk(e),L=de.exports.useRef(null),x=de.exports.useRef(null),b=de.exports.useRef(null),C=de.exports.useRef(!1),g=de.exports.useRef(!1);D&&(g.current=!0);const[w,f]=de.exports.useState(!1),[m,E]=de.exports.useState(!1),S=de.exports.useId(),y=i!=null?i:S,[_,$,z,H]=["popover-trigger","popover-content","popover-header","popover-body"].map(be=>`${be}-${y}`),{referenceRef:X,getArrowProps:Q,getPopperProps:re,getArrowInnerProps:ue,forceUpdate:le}=sk({...N,enabled:D||!!B}),ve=aB({isOpen:D,ref:b});Qee({enabled:D,ref:x}),X5(b,{focusRef:x,visible:D,shouldFocus:o&&d===Gl.click}),tre(b,{focusRef:r,visible:D,shouldFocus:a&&d===Gl.click});const V=ck({wasSelected:g.current,enabled:P,mode:F,isSelected:ve.present}),Z=de.exports.useCallback((be={},ee=null)=>{const se={...be,style:{...be.style,transformOrigin:fr.transformOrigin.varRef,[fr.arrowSize.var]:c?`${c}px`:void 0,[fr.arrowShadowColor.var]:u},ref:_n(b,ee),children:V?be.children:null,id:$,tabIndex:-1,role:"dialog",onKeyDown:Wt(be.onKeyDown,ge=>{n&&ge.key==="Escape"&&T()}),onBlur:Wt(be.onBlur,ge=>{const U=tP(ge),q=ix(b.current,U),oe=ix(x.current,U);D&&t&&(!q&&!oe)&&T()}),"aria-labelledby":w?z:void 0,"aria-describedby":m?H:void 0};return d===Gl.hover&&(se.role="tooltip",se.onMouseEnter=Wt(be.onMouseEnter,()=>{C.current=!0}),se.onMouseLeave=Wt(be.onMouseLeave,ge=>{ge.nativeEvent.relatedTarget!==null&&(C.current=!1,setTimeout(()=>T(),I))})),se},[V,$,w,z,m,H,d,n,T,D,t,I,u,c]),ce=de.exports.useCallback((be={},ee=null)=>re({...be,style:{visibility:D?"visible":"hidden",...be.style}},ee),[D,re]),Y=de.exports.useCallback((be,ee=null)=>({...be,ref:_n(ee,L,X)}),[L,X]),ie=de.exports.useRef(),he=de.exports.useRef(),fe=de.exports.useCallback(be=>{L.current==null&&X(be)},[X]),Ce=de.exports.useCallback((be={},ee=null)=>{const se={...be,ref:_n(x,ee,fe),id:_,"aria-haspopup":"dialog","aria-expanded":D,"aria-controls":$};return d===Gl.click&&(se.onClick=Wt(be.onClick,O)),d===Gl.hover&&(se.onFocus=Wt(be.onFocus,()=>{ie.current===void 0&&M()}),se.onBlur=Wt(be.onBlur,ge=>{const U=tP(ge),q=!ix(b.current,U);D&&t&&q&&T()}),se.onKeyDown=Wt(be.onKeyDown,ge=>{ge.key==="Escape"&&T()}),se.onMouseEnter=Wt(be.onMouseEnter,()=>{C.current=!0,ie.current=window.setTimeout(()=>M(),p)}),se.onMouseLeave=Wt(be.onMouseLeave,()=>{C.current=!1,ie.current&&(clearTimeout(ie.current),ie.current=void 0),he.current=window.setTimeout(()=>{C.current===!1&&T()},I)})),se},[_,D,$,d,fe,O,M,t,T,p,I]);de.exports.useEffect(()=>()=>{ie.current&&clearTimeout(ie.current),he.current&&clearTimeout(he.current)},[]);const Pe=de.exports.useCallback((be={},ee=null)=>({...be,id:z,ref:_n(ee,se=>{f(!!se)})}),[z]),we=de.exports.useCallback((be={},ee=null)=>({...be,id:H,ref:_n(ee,se=>{E(!!se)})}),[H]);return{forceUpdate:le,isOpen:D,onAnimationComplete:ve.onComplete,onClose:T,getAnchorProps:Y,getArrowProps:Q,getArrowInnerProps:ue,getPopoverPositionerProps:ce,getPopoverProps:Z,getTriggerProps:Ce,getHeaderProps:Pe,getBodyProps:we}}function ix(e,t){return e===t||(e==null?void 0:e.contains(t))}function tP(e){var t;const n=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:n}function uae(e){const t=zr("Popover",e),{children:n,...r}=Dn(e),i=Fs(),o=cae({...r,direction:i.direction});return Se(aae,{value:o,children:Se(sae,{value:t,children:Ki(n,{isOpen:o.isOpen,onClose:o.onClose,forceUpdate:o.forceUpdate})})})}uae.displayName="Popover";function dae(e){var t;const{bg:n,bgColor:r,backgroundColor:i,shadow:o,boxShadow:a}=e,{getArrowProps:c,getArrowInnerProps:u}=yu(),d=ob(),p=(t=n!=null?n:r)!=null?t:i,I=o!=null?o:a;return Se(pt.div,{...c(),className:"chakra-popover__arrow-positioner",children:Se(pt.div,{className:Bt("chakra-popover__arrow",e.className),...u(e),__css:{"--popper-arrow-bg":p?`colors.${p}, ${p}`:void 0,"--popper-arrow-shadow":I?`shadows.${I}, ${I}`:void 0,...d.arrow}})})}dae.displayName="PopoverArrow";var hae=It(function(t,n){const{getBodyProps:r}=yu(),i=ob();return Se(pt.div,{...r(t,n),className:Bt("chakra-popover__body",t.className),__css:i.body})});hae.displayName="PopoverBody";var fae=It(function(t,n){const{onClose:r}=yu(),i=ob();return Se(Ky,{size:"sm",onClick:r,className:Bt("chakra-popover__close-btn",t.className),__css:i.closeButton,ref:n,...t})});fae.displayName="PopoverCloseButton";function pae(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var gae={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},mae=pt(aa.section),xB=It(function(t,n){const{variants:r=gae,...i}=t,{isOpen:o}=yu();return Se(mae,{ref:n,variants:pae(r),initial:!1,animate:o?"enter":"exit",...i})});xB.displayName="PopoverTransition";var vae=It(function(t,n){const{rootProps:r,motionProps:i,...o}=t,{getPopoverProps:a,getPopoverPositionerProps:c,onAnimationComplete:u}=yu(),d=ob(),p={position:"relative",display:"flex",flexDirection:"column",...d.content};return Se(pt.div,{...c(r),__css:d.popper,className:"chakra-popover__popper",children:Se(xB,{...i,...a(o,n),onAnimationComplete:ZA(u,o.onAnimationComplete),className:Bt("chakra-popover__content",t.className),__css:p})})});vae.displayName="PopoverContent";var FC=e=>Se(pt.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});FC.displayName="Circle";function yae(e,t,n){return(e-t)*100/(n-t)}var bae=Ms({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),xae=Ms({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});Ms({"0%":{left:"-40%"},"100%":{left:"100%"}});Ms({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function wae(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:c="progressbar"}=e,u=yae(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof o=="function"?o(t,u):i})(),role:c},percent:u,value:t}}var wB=e=>{const{size:t,isIndeterminate:n,...r}=e;return Se(pt.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${xae} 2s linear infinite`:void 0},...r})};wB.displayName="Shape";var Cae=It((e,t)=>{var n;const{size:r="48px",max:i=100,min:o=0,valueText:a,getValueText:c,value:u,capIsRound:d,children:p,thickness:I="10px",color:P="#0078d4",trackColor:F="#edebe9",isIndeterminate:B,...N}=e,D=wae({min:o,max:i,value:u,valueText:a,getValueText:c,isIndeterminate:B}),T=B?void 0:((n=D.percent)!=null?n:0)*2.64,M=T==null?void 0:`${T} ${264-T}`,O=B?{css:{animation:`${bae} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:M,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},L={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return At(pt.div,{ref:t,className:"chakra-progress",...D.bind,...N,__css:L,children:[At(wB,{size:r,isIndeterminate:B,children:[Se(FC,{stroke:F,strokeWidth:I,className:"chakra-progress__track"}),Se(FC,{stroke:P,strokeWidth:I,className:"chakra-progress__indicator",strokeLinecap:d?"round":void 0,opacity:D.value===0&&!B?0:void 0,...O})]}),p]})});Cae.displayName="CircularProgress";function Sae(e){return e&&yr(e)&&yr(e.target)}function Aae(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:c,...u}=e,[d,p]=de.exports.useState(r||""),I=typeof n<"u",P=I?n:d,F=de.exports.useRef(null),B=de.exports.useCallback(()=>{const x=F.current;if(!x)return;let b="input:not(:disabled):checked";const C=x.querySelector(b);if(C){C.focus();return}b="input:not(:disabled)";const g=x.querySelector(b);g==null||g.focus()},[]),D=`radio-${de.exports.useId()}`,T=i||D,M=de.exports.useCallback(x=>{const b=Sae(x)?x.target.value:x;I||p(b),t==null||t(String(b))},[t,I]),O=de.exports.useCallback((x={},b=null)=>({...x,ref:_n(b,F),role:"radiogroup"}),[]),L=de.exports.useCallback((x={},b=null)=>({...x,ref:b,name:T,[c?"checked":"isChecked"]:P!=null?x.value===P:void 0,onChange(g){M(g)},"data-radiogroup":!0}),[c,T,M,P]);return{getRootProps:O,getRadioProps:L,name:T,ref:F,focus:B,setValue:p,value:P,onChange:M,isDisabled:o,isFocusable:a,htmlProps:u}}var[Iae,kae]=In({name:"RadioGroupContext",strict:!1}),_ae=It((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:c,isFocusable:u,...d}=e,{value:p,onChange:I,getRootProps:P,name:F,htmlProps:B}=Aae(d),N=de.exports.useMemo(()=>({name:F,size:r,onChange:I,colorScheme:n,value:p,variant:i,isDisabled:c,isFocusable:u}),[F,r,I,n,p,i,c,u]);return Se(Iae,{value:N,children:Se(pt.div,{...P(B,t),className:Bt("chakra-radio-group",a),children:o})})});_ae.displayName="RadioGroup";var Eae={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function vke(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:c,isInvalid:u,name:d,value:p,id:I,"data-radiogroup":P,"aria-describedby":F,...B}=e,N=`radio-${de.exports.useId()}`,D=Ll(),M=!!kae()||!!P;let L=!!D&&!M?D.id:N;L=I!=null?I:L;const x=i!=null?i:D==null?void 0:D.isDisabled,b=o!=null?o:D==null?void 0:D.isReadOnly,C=a!=null?a:D==null?void 0:D.isRequired,g=u!=null?u:D==null?void 0:D.isInvalid,[w,f]=de.exports.useState(!1),[m,E]=de.exports.useState(!1),[S,y]=de.exports.useState(!1),[_,$]=de.exports.useState(!1),[z,H]=de.exports.useState(Boolean(t)),X=typeof n<"u",Q=X?n:z;de.exports.useEffect(()=>jF(f),[]);const re=de.exports.useCallback(fe=>{if(b||x){fe.preventDefault();return}X||H(fe.target.checked),c==null||c(fe)},[X,x,b,c]),ue=de.exports.useCallback(fe=>{fe.key===" "&&$(!0)},[$]),le=de.exports.useCallback(fe=>{fe.key===" "&&$(!1)},[$]),ve=de.exports.useCallback((fe={},Ce=null)=>({...fe,ref:Ce,"data-active":Qt(_),"data-hover":Qt(S),"data-disabled":Qt(x),"data-invalid":Qt(g),"data-checked":Qt(Q),"data-focus":Qt(m),"data-focus-visible":Qt(m&&w),"data-readonly":Qt(b),"aria-hidden":!0,onMouseDown:Wt(fe.onMouseDown,()=>$(!0)),onMouseUp:Wt(fe.onMouseUp,()=>$(!1)),onMouseEnter:Wt(fe.onMouseEnter,()=>y(!0)),onMouseLeave:Wt(fe.onMouseLeave,()=>y(!1))}),[_,S,x,g,Q,m,b,w]),{onFocus:V,onBlur:Z}=D!=null?D:{},ce=de.exports.useCallback((fe={},Ce=null)=>{const Pe=x&&!r;return{...fe,id:L,ref:Ce,type:"radio",name:d,value:p,onChange:Wt(fe.onChange,re),onBlur:Wt(Z,fe.onBlur,()=>E(!1)),onFocus:Wt(V,fe.onFocus,()=>E(!0)),onKeyDown:Wt(fe.onKeyDown,ue),onKeyUp:Wt(fe.onKeyUp,le),checked:Q,disabled:Pe,readOnly:b,required:C,"aria-invalid":Ca(g),"aria-disabled":Ca(Pe),"aria-required":Ca(C),"data-readonly":Qt(b),"aria-describedby":F,style:Eae}},[x,r,L,d,p,re,Z,V,ue,le,Q,b,C,g,F]);return{state:{isInvalid:g,isFocused:m,isChecked:Q,isActive:_,isHovered:S,isDisabled:x,isReadOnly:b,isRequired:C},getCheckboxProps:ve,getRadioProps:ve,getInputProps:ce,getLabelProps:(fe={},Ce=null)=>({...fe,ref:Ce,onMouseDown:Wt(fe.onMouseDown,Tae),"data-disabled":Qt(x),"data-checked":Qt(Q),"data-invalid":Qt(g)}),getRootProps:(fe,Ce=null)=>({...fe,ref:Ce,"data-disabled":Qt(x),"data-checked":Qt(Q),"data-invalid":Qt(g)}),htmlProps:B}}function Tae(e){e.preventDefault(),e.stopPropagation()}var CB=It(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return At(pt.select,{...a,ref:n,className:Bt("chakra-select",o),children:[i&&Se("option",{value:"",children:i}),r]})});CB.displayName="SelectField";function Pae(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}var Rae=It((e,t)=>{var n;const r=zr("Select",e),{rootProps:i,placeholder:o,icon:a,color:c,height:u,h:d,minH:p,minHeight:I,iconColor:P,iconSize:F,...B}=Dn(e),[N,D]=Pae(B,f4),T=WI(D),M={width:"100%",height:"fit-content",position:"relative",color:c},O={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return At(pt.div,{className:"chakra-select__wrapper",__css:M,...N,...i,children:[Se(CB,{ref:t,height:d!=null?d:u,minH:p!=null?p:I,placeholder:o,...T,__css:O,children:e.children}),Se(SB,{"data-disabled":Qt(T.disabled),...(P||c)&&{color:P||c},__css:r.icon,...F&&{fontSize:F},children:a})]})});Rae.displayName="Select";var Oae=e=>Se("svg",{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Mae=pt("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),SB=e=>{const{children:t=Se(Oae,{}),...n}=e,r=de.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return Se(Mae,{...n,className:"chakra-select__icon-wrapper",children:de.exports.isValidElement(t)?r:null})};SB.displayName="SelectIcon";var Yl=e=>e?"":void 0,ox=e=>e?!0:void 0,uf=(...e)=>e.filter(Boolean).join(" ");function ax(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function qf(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var Dp={width:0,height:0},ep=e=>e||Dp;function Lae(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,o=N=>{var D;const T=(D=r[N])!=null?D:Dp;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...qf({orientation:t,vertical:{bottom:`calc(${n[N]}% - ${T.height/2}px)`},horizontal:{left:`calc(${n[N]}% - ${T.width/2}px)`}})}},a=t==="vertical"?r.reduce((N,D)=>ep(N).height>ep(D).height?N:D,Dp):r.reduce((N,D)=>ep(N).width>ep(D).width?N:D,Dp),c={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...qf({orientation:t,vertical:a?{paddingLeft:a.width/2,paddingRight:a.width/2}:{},horizontal:a?{paddingTop:a.height/2,paddingBottom:a.height/2}:{}})},u={position:"absolute",...qf({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=n.length===1,p=[0,i?100-n[0]:n[0]],I=d?p:n;let P=I[0];!d&&i&&(P=100-P);const F=Math.abs(I[I.length-1]-I[0]),B={...u,...qf({orientation:t,vertical:i?{height:`${F}%`,top:`${P}%`}:{height:`${F}%`,bottom:`${P}%`},horizontal:i?{width:`${F}%`,right:`${P}%`}:{width:`${F}%`,left:`${P}%`}})};return{trackStyle:u,innerTrackStyle:B,rootStyle:c,getThumbStyle:o}}function Dae(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function $ae(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Nae(e){const t=Bae(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function AB(e){return!!e.touches}function Fae(e){return AB(e)&&e.touches.length>1}function Bae(e){var t;return(t=e.view)!=null?t:window}function Wae(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function Hae(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function IB(e,t="page"){return AB(e)?Wae(e,t):Hae(e,t)}function Vae(e){return t=>{const n=Nae(t);(!n||n&&t.button===0)&&e(t)}}function zae(e,t=!1){function n(i){e(i,{point:IB(i)})}return t?Vae(n):n}function $p(e,t,n,r){return $ae(e,t,zae(n,t==="pointerdown"),r)}var jae=Object.defineProperty,Gae=(e,t,n)=>t in e?jae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fo=(e,t,n)=>(Gae(e,typeof t!="symbol"?t+"":t,n),n),Yae=class{constructor(e,t,n){fo(this,"history",[]),fo(this,"startEvent",null),fo(this,"lastEvent",null),fo(this,"lastEventInfo",null),fo(this,"handlers",{}),fo(this,"removeListeners",()=>{}),fo(this,"threshold",3),fo(this,"win"),fo(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const c=sx(this.lastEventInfo,this.history),u=this.startEvent!==null,d=Kae(c.offset,{x:0,y:0})>=this.threshold;if(!u&&!d)return;const{timestamp:p}=aT();this.history.push({...c.point,timestamp:p});const{onStart:I,onMove:P}=this.handlers;u||(I==null||I(this.lastEvent,c),this.startEvent=this.lastEvent),P==null||P(this.lastEvent,c)}),fo(this,"onPointerMove",(c,u)=>{this.lastEvent=c,this.lastEventInfo=u,e6.update(this.updatePoint,!0)}),fo(this,"onPointerUp",(c,u)=>{const d=sx(u,this.history),{onEnd:p,onSessionEnd:I}=this.handlers;I==null||I(c,d),this.end(),!(!p||!this.startEvent)&&(p==null||p(c,d))});var r;if(this.win=(r=e.view)!=null?r:window,Fae(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const i={point:IB(e)},{timestamp:o}=aT();this.history=[{...i.point,timestamp:o}];const{onSessionStart:a}=t;a==null||a(e,sx(i,this.history)),this.removeListeners=Uae($p(this.win,"pointermove",this.onPointerMove),$p(this.win,"pointerup",this.onPointerUp),$p(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),t6.update(this.updatePoint)}};function nP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sx(e,t){return{point:e.point,delta:nP(e.point,t[t.length-1]),offset:nP(e.point,t[0]),velocity:Xae(t,.1)}}var Zae=e=>e*1e3;function Xae(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Zae(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Uae(...e){return t=>e.reduce((n,r)=>r(n),t)}function lx(e,t){return Math.abs(e-t)}function rP(e){return"x"in e&&"y"in e}function Kae(e,t){if(typeof e=="number"&&typeof t=="number")return lx(e,t);if(rP(e)&&rP(t)){const n=lx(e.x,t.x),r=lx(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function kB(e){const t=de.exports.useRef(null);return t.current=e,t}function Jae(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:c}=t,u=Boolean(n||r||i||o||a),d=de.exports.useRef(null),p=kB({onSessionStart:o,onSessionEnd:a,onStart:r,onMove:n,onEnd(I,P){d.current=null,i==null||i(I,P)}});de.exports.useEffect(()=>{var I;(I=d.current)==null||I.updateHandlers(p.current)}),de.exports.useEffect(()=>{const I=e.current;if(!I||!u)return;function P(F){d.current=new Yae(F,p.current,c)}return $p(I,"pointerdown",P)},[e,u,p,c]),de.exports.useEffect(()=>()=>{var I;(I=d.current)==null||I.end(),d.current=null},[])}function Qae(e,t){var i;if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const n=(i=e.ownerDocument.defaultView)!=null?i:window,r=new n.ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const[a]=o;let c,u;if("borderBoxSize"in a){const d=a.borderBoxSize,p=Array.isArray(d)?d[0]:d;c=p.inlineSize,u=p.blockSize}else c=e.offsetWidth,u=e.offsetHeight;t({width:c,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}var qae=Boolean(globalThis==null?void 0:globalThis.document)?de.exports.useLayoutEffect:de.exports.useEffect;function ese(e,t){var n,r;if(!e||!e.parentElement)return;const i=(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function tse({getNodes:e,observeMutation:t=!0}){const[n,r]=de.exports.useState([]),[i,o]=de.exports.useState(0);return qae(()=>{const a=e(),c=a.map((u,d)=>Qae(u,p=>{r(I=>[...I.slice(0,d),p,...I.slice(d+1)])}));if(t){const u=a[0];c.push(ese(u,()=>{o(d=>d+1)}))}return()=>{c.forEach(u=>{u==null||u()})}},[i]),n}function nse(e){return typeof e=="object"&&e!==null&&"current"in e}function rse(e){const[t]=tse({observeMutation:!1,getNodes(){return[nse(e)?e.current:e]}});return t}function ise(e){var t;const{min:n=0,max:r=100,onChange:i,value:o,defaultValue:a,isReversed:c,direction:u="ltr",orientation:d="horizontal",id:p,isDisabled:I,isReadOnly:P,onChangeStart:F,onChangeEnd:B,step:N=1,getAriaValueText:D,"aria-valuetext":T,"aria-label":M,"aria-labelledby":O,name:L,focusThumbOnChange:x=!0,...b}=e,C=nr(F),g=nr(B),w=nr(D),f=Dae({isReversed:c,direction:u,orientation:d}),[m,E]=Qy({value:o,defaultValue:a!=null?a:ase(n,r),onChange:i}),[S,y]=de.exports.useState(!1),[_,$]=de.exports.useState(!1),z=!(I||P),H=(r-n)/10,X=N||(r-n)/100,Q=Rp(m,n,r),re=r-Q+n,le=k2(f?re:Q,n,r),ve=d==="vertical",V=kB({min:n,max:r,step:N,isDisabled:I,value:Q,isInteractive:z,isReversed:f,isVertical:ve,eventSource:null,focusThumbOnChange:x,orientation:d}),Z=de.exports.useRef(null),ce=de.exports.useRef(null),Y=de.exports.useRef(null),ie=de.exports.useId(),he=p!=null?p:ie,[fe,Ce]=[`slider-thumb-${he}`,`slider-track-${he}`],Pe=de.exports.useCallback(Qe=>{var ht,dt;if(!Z.current)return;const Ve=V.current;Ve.eventSource="pointer";const ct=Z.current.getBoundingClientRect(),{clientX:mt,clientY:yt}=(dt=(ht=Qe.touches)==null?void 0:ht[0])!=null?dt:Qe,$e=ve?ct.bottom-yt:mt-ct.left,Be=ve?ct.height:ct.width;let tt=$e/Be;f&&(tt=1-tt);let xt=jee(tt,Ve.min,Ve.max);return Ve.step&&(xt=parseFloat(_2(xt,Ve.min,Ve.step))),xt=Rp(xt,Ve.min,Ve.max),xt},[ve,f,V]),we=de.exports.useCallback(Qe=>{const ht=V.current;!ht.isInteractive||(Qe=parseFloat(_2(Qe,ht.min,X)),Qe=Rp(Qe,ht.min,ht.max),E(Qe))},[X,E,V]),be=de.exports.useMemo(()=>({stepUp(Qe=X){const ht=f?Q-Qe:Q+Qe;we(ht)},stepDown(Qe=X){const ht=f?Q+Qe:Q-Qe;we(ht)},reset(){we(a||0)},stepTo(Qe){we(Qe)}}),[we,f,Q,X,a]),ee=de.exports.useCallback(Qe=>{const ht=V.current,Ve={ArrowRight:()=>be.stepUp(),ArrowUp:()=>be.stepUp(),ArrowLeft:()=>be.stepDown(),ArrowDown:()=>be.stepDown(),PageUp:()=>be.stepUp(H),PageDown:()=>be.stepDown(H),Home:()=>we(ht.min),End:()=>we(ht.max)}[Qe.key];Ve&&(Qe.preventDefault(),Qe.stopPropagation(),Ve(Qe),ht.eventSource="keyboard")},[be,we,H,V]),se=(t=w==null?void 0:w(Q))!=null?t:T,ge=rse(ce),{getThumbStyle:U,rootStyle:q,trackStyle:oe,innerTrackStyle:xe}=de.exports.useMemo(()=>{const Qe=V.current,ht=ge!=null?ge:{width:0,height:0};return Lae({isReversed:f,orientation:Qe.orientation,thumbRects:[ht],thumbPercents:[le]})},[f,ge,le,V]),ke=de.exports.useCallback(()=>{V.current.focusThumbOnChange&&setTimeout(()=>{var ht;return(ht=ce.current)==null?void 0:ht.focus()})},[V]);La(()=>{const Qe=V.current;ke(),Qe.eventSource==="keyboard"&&(g==null||g(Qe.value))},[Q,g]);function Te(Qe){const ht=Pe(Qe);ht!=null&&ht!==V.current.value&&E(ht)}Jae(Y,{onPanSessionStart(Qe){const ht=V.current;!ht.isInteractive||(y(!0),ke(),Te(Qe),C==null||C(ht.value))},onPanSessionEnd(){const Qe=V.current;!Qe.isInteractive||(y(!1),g==null||g(Qe.value))},onPan(Qe){!V.current.isInteractive||Te(Qe)}});const Ne=de.exports.useCallback((Qe={},ht=null)=>({...Qe,...b,ref:_n(ht,Y),tabIndex:-1,"aria-disabled":ox(I),"data-focused":Yl(_),style:{...Qe.style,...q}}),[b,I,_,q]),Ge=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:_n(ht,Z),id:Ce,"data-disabled":Yl(I),style:{...Qe.style,...oe}}),[I,Ce,oe]),nt=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:ht,style:{...Qe.style,...xe}}),[xe]),He=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:_n(ht,ce),role:"slider",tabIndex:z?0:void 0,id:fe,"data-active":Yl(S),"aria-valuetext":se,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":Q,"aria-orientation":d,"aria-disabled":ox(I),"aria-readonly":ox(P),"aria-label":M,"aria-labelledby":M?void 0:O,style:{...Qe.style,...U(0)},onKeyDown:ax(Qe.onKeyDown,ee),onFocus:ax(Qe.onFocus,()=>$(!0)),onBlur:ax(Qe.onBlur,()=>$(!1))}),[z,fe,S,se,n,r,Q,d,I,P,M,O,U,ee]),et=de.exports.useCallback((Qe,ht=null)=>{const dt=!(Qe.valuer),Ve=Q>=Qe.value,ct=k2(Qe.value,n,r),mt={position:"absolute",pointerEvents:"none",...ose({orientation:d,vertical:{bottom:f?`${100-ct}%`:`${ct}%`},horizontal:{left:f?`${100-ct}%`:`${ct}%`}})};return{...Qe,ref:ht,role:"presentation","aria-hidden":!0,"data-disabled":Yl(I),"data-invalid":Yl(!dt),"data-highlighted":Yl(Ve),style:{...Qe.style,...mt}}},[I,f,r,n,d,Q]),ot=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:ht,type:"hidden",value:Q,name:L}),[L,Q]);return{state:{value:Q,isFocused:_,isDragging:S},actions:be,getRootProps:Ne,getTrackProps:Ge,getInnerTrackProps:nt,getThumbProps:He,getMarkerProps:et,getInputProps:ot}}function ose(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function ase(e,t){return t"}),[lse,sb]=In({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),cse=It((e,t)=>{const n={orientation:"horizontal",...e},r=zr("Slider",n),i=Dn(n),{direction:o}=Fs();i.direction=o;const{getInputProps:a,getRootProps:c,...u}=ise(i),d=c(),p=a({},t);return Se(sse,{value:u,children:Se(lse,{value:r,children:At(pt.div,{...d,className:uf("chakra-slider",n.className),__css:r.container,children:[n.children,Se("input",{...p})]})})})});cse.displayName="Slider";var use=It((e,t)=>{const{getThumbProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__thumb",e.className),__css:r.thumb})});use.displayName="SliderThumb";var dse=It((e,t)=>{const{getTrackProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__track",e.className),__css:r.track})});dse.displayName="SliderTrack";var hse=It((e,t)=>{const{getInnerTrackProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__filled-track",e.className),__css:r.filledTrack})});hse.displayName="SliderFilledTrack";var fse=It((e,t)=>{const{getMarkerProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__marker",e.className),__css:r.mark})});fse.displayName="SliderMark";var pse=It(function(t,n){const r=zr("Switch",t),{spacing:i="0.5rem",children:o,...a}=Dn(t),{state:c,getInputProps:u,getCheckboxProps:d,getRootProps:p,getLabelProps:I}=GF(a),P=de.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),F=de.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),B=de.exports.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return At(pt.label,{...p(),className:Bt("chakra-switch",t.className),__css:P,children:[Se("input",{className:"chakra-switch__input",...u({},n)}),Se(pt.span,{...d(),className:"chakra-switch__track",__css:F,children:Se(pt.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":Qt(c.isChecked),"data-hover":Qt(c.isHovered)})}),o&&Se(pt.span,{className:"chakra-switch__label",...I(),__css:B,children:o})]})});pse.displayName="Switch";var[gse,df]=In({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),mse=It((e,t)=>{const n=zr("Table",e),{className:r,layout:i,...o}=Dn(e);return Se(gse,{value:n,children:Se(pt.table,{ref:t,__css:{tableLayout:i,...n.table},className:Bt("chakra-table",r),...o})})});mse.displayName="Table";var yke=It((e,t)=>{const n=df();return Se(pt.thead,{...e,ref:t,__css:n.thead})}),bke=It((e,t)=>{const n=df();return Se(pt.tr,{...e,ref:t,__css:n.tr})}),xke=It((e,t)=>{const n=df();return Se(pt.tbody,{...e,ref:t,__css:n.tbody})}),wke=It(({isNumeric:e,...t},n)=>{const r=df();return Se(pt.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Cke=It(({isNumeric:e,...t},n)=>{const r=df();return Se(pt.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),[vse,yse,bse,xse]=$I();function wse(e){var t;const{defaultIndex:n,onChange:r,index:i,isManual:o,isLazy:a,lazyBehavior:c="unmount",orientation:u="horizontal",direction:d="ltr",...p}=e,[I,P]=de.exports.useState(n!=null?n:0),[F,B]=Qy({defaultValue:n!=null?n:0,value:i,onChange:r});de.exports.useEffect(()=>{i!=null&&P(i)},[i]);const N=bse(),D=de.exports.useId();return{id:`tabs-${(t=e.id)!=null?t:D}`,selectedIndex:F,focusedIndex:I,setSelectedIndex:B,setFocusedIndex:P,isManual:o,isLazy:a,lazyBehavior:c,orientation:u,descendants:N,direction:d,htmlProps:p}}var[Cse,lb]=In({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Sse(e){const{focusedIndex:t,orientation:n,direction:r}=lb(),i=yse(),o=de.exports.useCallback(a=>{const c=()=>{var M;const O=i.nextEnabled(t);O&&((M=O.node)==null||M.focus())},u=()=>{var M;const O=i.prevEnabled(t);O&&((M=O.node)==null||M.focus())},d=()=>{var M;const O=i.firstEnabled();O&&((M=O.node)==null||M.focus())},p=()=>{var M;const O=i.lastEnabled();O&&((M=O.node)==null||M.focus())},I=n==="horizontal",P=n==="vertical",F=a.key,B=r==="ltr"?"ArrowLeft":"ArrowRight",N=r==="ltr"?"ArrowRight":"ArrowLeft",T={[B]:()=>I&&u(),[N]:()=>I&&c(),ArrowDown:()=>P&&c(),ArrowUp:()=>P&&u(),Home:d,End:p}[F];T&&(a.preventDefault(),T(a))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Wt(e.onKeyDown,o)}}function Ase(e){const{isDisabled:t,isFocusable:n,...r}=e,{setSelectedIndex:i,isManual:o,id:a,setFocusedIndex:c,selectedIndex:u}=lb(),{index:d,register:p}=xse({disabled:t&&!n}),I=d===u,P=()=>{i(d)},F=()=>{c(d),!o&&!(t&&n)&&i(d)},B=Z5({...r,ref:_n(p,e.ref),isDisabled:t,isFocusable:n,onClick:Wt(e.onClick,P)}),N="button";return{...B,id:_B(a,d),role:"tab",tabIndex:I?0:-1,type:N,"aria-selected":I,"aria-controls":EB(a,d),onFocus:t?void 0:Wt(e.onFocus,F)}}var[Ise,kse]=In({});function _se(e){const t=lb(),{id:n,selectedIndex:r}=t,o=BI(e.children).map((a,c)=>de.exports.createElement(Ise,{key:c,value:{isSelected:c===r,id:EB(n,c),tabId:_B(n,c),selectedIndex:r}},a));return{...e,children:o}}function Ese(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=lb(),{isSelected:o,id:a,tabId:c}=kse(),u=de.exports.useRef(!1);o&&(u.current=!0);const d=ck({wasSelected:u.current,isSelected:o,enabled:r,mode:i});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":c,hidden:!o,id:a}}function _B(e,t){return`${e}--tab-${t}`}function EB(e,t){return`${e}--tabpanel-${t}`}var[Tse,cb]=In({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Pse=It(function(t,n){const r=zr("Tabs",t),{children:i,className:o,...a}=Dn(t),{htmlProps:c,descendants:u,...d}=wse(a),p=de.exports.useMemo(()=>d,[d]),{isFitted:I,...P}=c;return Se(vse,{value:u,children:Se(Cse,{value:p,children:Se(Tse,{value:r,children:Se(pt.div,{className:Bt("chakra-tabs",o),ref:n,...P,__css:r.root,children:i})})})})});Pse.displayName="Tabs";var Rse=It(function(t,n){const r=Sse({...t,ref:n}),o={display:"flex",...cb().tablist};return Se(pt.div,{...r,className:Bt("chakra-tabs__tablist",t.className),__css:o})});Rse.displayName="TabList";var Ose=It(function(t,n){const r=Ese({...t,ref:n}),i=cb();return Se(pt.div,{outline:"0",...r,className:Bt("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});Ose.displayName="TabPanel";var Mse=It(function(t,n){const r=_se(t),i=cb();return Se(pt.div,{...r,width:"100%",ref:n,className:Bt("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});Mse.displayName="TabPanels";var Lse=It(function(t,n){const r=cb(),i=Ase({...t,ref:n}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return Se(pt.button,{...i,className:Bt("chakra-tabs__tab",t.className),__css:o})});Lse.displayName="Tab";function Dse(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var $se=["h","minH","height","minHeight"],Nse=It((e,t)=>{const n=Eo("Textarea",e),{className:r,rows:i,...o}=Dn(e),a=WI(o),c=i?Dse(n,$se):n;return Se(pt.textarea,{ref:t,rows:i,...a,className:Bt("chakra-textarea",r),__css:c})});Nse.displayName="Textarea";var Fse={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Am=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},BC=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Bse(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:c=!0,onOpen:u,onClose:d,placement:p,id:I,isOpen:P,defaultIsOpen:F,arrowSize:B=10,arrowShadowColor:N,arrowPadding:D,modifiers:T,isDisabled:M,gutter:O,offset:L,direction:x,...b}=e,{isOpen:C,onOpen:g,onClose:w}=lk({isOpen:P,defaultIsOpen:F,onOpen:u,onClose:d}),{referenceRef:f,getPopperProps:m,getArrowInnerProps:E,getArrowProps:S}=sk({enabled:C,placement:p,arrowPadding:D,modifiers:T,gutter:O,offset:L,direction:x}),y=de.exports.useId(),$=`tooltip-${I!=null?I:y}`,z=de.exports.useRef(null),H=de.exports.useRef(),X=de.exports.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),Q=de.exports.useRef(),re=de.exports.useCallback(()=>{Q.current&&(clearTimeout(Q.current),Q.current=void 0)},[]),ue=de.exports.useCallback(()=>{re(),w()},[w,re]),le=Wse(z,ue),ve=de.exports.useCallback(()=>{if(!M&&!H.current){le();const Ce=BC(z);H.current=Ce.setTimeout(g,t)}},[le,M,g,t]),V=de.exports.useCallback(()=>{X();const Ce=BC(z);Q.current=Ce.setTimeout(ue,n)},[n,ue,X]),Z=de.exports.useCallback(()=>{C&&r&&V()},[r,V,C]),ce=de.exports.useCallback(()=>{C&&a&&V()},[a,V,C]),Y=de.exports.useCallback(Ce=>{C&&Ce.key==="Escape"&&V()},[C,V]);cl(()=>Am(z),"keydown",c?Y:void 0),cl(()=>Am(z),"scroll",()=>{C&&o&&ue()}),de.exports.useEffect(()=>{!M||(X(),C&&w())},[M,C,w,X]),de.exports.useEffect(()=>()=>{X(),re()},[X,re]),cl(()=>z.current,"pointerleave",V);const ie=de.exports.useCallback((Ce={},Pe=null)=>({...Ce,ref:_n(z,Pe,f),onPointerEnter:Wt(Ce.onPointerEnter,be=>{be.pointerType!=="touch"&&ve()}),onClick:Wt(Ce.onClick,Z),onPointerDown:Wt(Ce.onPointerDown,ce),onFocus:Wt(Ce.onFocus,ve),onBlur:Wt(Ce.onBlur,V),"aria-describedby":C?$:void 0}),[ve,V,ce,C,$,Z,f]),he=de.exports.useCallback((Ce={},Pe=null)=>m({...Ce,style:{...Ce.style,[fr.arrowSize.var]:B?`${B}px`:void 0,[fr.arrowShadowColor.var]:N}},Pe),[m,B,N]),fe=de.exports.useCallback((Ce={},Pe=null)=>{const we={...Ce.style,position:"relative",transformOrigin:fr.transformOrigin.varRef};return{ref:Pe,...b,...Ce,id:$,role:"tooltip",style:we}},[b,$]);return{isOpen:C,show:ve,hide:V,getTriggerProps:ie,getTooltipProps:fe,getTooltipPositionerProps:he,getArrowProps:S,getArrowInnerProps:E}}var cx="chakra-ui:close-tooltip";function Wse(e,t){return de.exports.useEffect(()=>{const n=Am(e);return n.addEventListener(cx,t),()=>n.removeEventListener(cx,t)},[t,e]),()=>{const n=Am(e),r=BC(e);n.dispatchEvent(new r.CustomEvent(cx))}}function Hse(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Vse(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var zse=pt(aa.div),jse=It((e,t)=>{var n,r;const i=Eo("Tooltip",e),o=Dn(e),a=Fs(),{children:c,label:u,shouldWrapChildren:d,"aria-label":p,hasArrow:I,bg:P,portalProps:F,background:B,backgroundColor:N,bgColor:D,motionProps:T,...M}=o,O=(r=(n=B!=null?B:N)!=null?n:P)!=null?r:D;if(O){i.bg=O;const m=_4(a,"colors",O);i[fr.arrowBg.var]=m}const L=Bse({...M,direction:a.direction}),x=typeof c=="string"||d;let b;if(x)b=Se(pt.span,{display:"inline-block",tabIndex:0,...L.getTriggerProps(),children:c});else{const m=de.exports.Children.only(c);b=de.exports.cloneElement(m,L.getTriggerProps(m.props,m.ref))}const C=!!p,g=L.getTooltipProps({},t),w=C?Hse(g,["role","id"]):g,f=Vse(g,["role","id"]);return u?At(Ao,{children:[b,Se(Ml,{children:L.isOpen&&Se(gu,{...F,children:Se(pt.div,{...L.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:At(zse,{variants:Fse,initial:"exit",animate:"enter",exit:"exit",...T,...w,__css:i,children:[u,C&&Se(pt.span,{srOnly:!0,...f,children:p}),I&&Se(pt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:Se(pt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):Se(Ao,{children:c})});jse.displayName="Tooltip";var TB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tn,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",c="minute",u="hour",d="day",p="week",I="month",P="quarter",F="year",B="date",N="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var y=["th","st","nd","rd"],_=S%100;return"["+S+(y[(_-20)%10]||y[_]||y[0])+"]"}},O=function(S,y,_){var $=String(S);return!$||$.length>=y?S:""+Array(y+1-$.length).join(_)+S},L={s:O,z:function(S){var y=-S.utcOffset(),_=Math.abs(y),$=Math.floor(_/60),z=_%60;return(y<=0?"+":"-")+O($,2,"0")+":"+O(z,2,"0")},m:function S(y,_){if(y.date()<_.date())return-S(_,y);var $=12*(_.year()-y.year())+(_.month()-y.month()),z=y.clone().add($,I),H=_-z<0,X=y.clone().add($+(H?-1:1),I);return+(-($+(_-z)/(H?z-X:X-z))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:I,y:F,w:p,d,D:B,h:u,m:c,s:a,ms:o,Q:P}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},x="en",b={};b[x]=M;var C=function(S){return S instanceof m},g=function S(y,_,$){var z;if(!y)return x;if(typeof y=="string"){var H=y.toLowerCase();b[H]&&(z=H),_&&(b[H]=_,z=H);var X=y.split("-");if(!z&&X.length>1)return S(X[0])}else{var Q=y.name;b[Q]=y,z=Q}return!$&&z&&(x=z),z||!$&&x},w=function(S,y){if(C(S))return S.clone();var _=typeof y=="object"?y:{};return _.date=S,_.args=arguments,new m(_)},f=L;f.l=g,f.i=C,f.w=function(S,y){return w(S,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var m=function(){function S(_){this.$L=g(_.locale,null,!0),this.parse(_)}var y=S.prototype;return y.parse=function(_){this.$d=function($){var z=$.date,H=$.utc;if(z===null)return new Date(NaN);if(f.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var X=z.match(D);if(X){var Q=X[2]-1||0,re=(X[7]||"0").substring(0,3);return H?new Date(Date.UTC(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,re)):new Date(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,re)}}return new Date(z)}(_),this.$x=_.x||{},this.init()},y.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},y.$utils=function(){return f},y.isValid=function(){return this.$d.toString()!==N},y.isSame=function(_,$){var z=w(_);return this.startOf($)<=z&&z<=this.endOf($)},y.isAfter=function(_,$){return w(_)0,b<=x.r||!x.r){b<=1&&L>0&&(x=M[L-1]);var C=T[x.l];F&&(b=F(""+b)),N=typeof C=="string"?C.replace("%d",b):C(b,p,x.l,D);break}}if(p)return N;var g=D?T.future:T.past;return typeof g=="function"?g(N):g.replace("%s",N)},o.to=function(d,p){return c(d,p,this,!0)},o.from=function(d,p){return c(d,p,this)};var u=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(u(this),d)},o.fromNow=function(d){return this.from(u(this),d)}}})})(OB);const kke=OB.exports;var MB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,o,a){var c,u=function(P,F,B){B===void 0&&(B={});var N=new Date(P),D=function(T,M){M===void 0&&(M={});var O=M.timeZoneName||"short",L=T+"|"+O,x=r[L];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:O}),r[L]=x),x}(F,B);return D.formatToParts(N)},d=function(P,F){for(var B=u(P,F),N=[],D=0;D=0&&(N[L]=parseInt(O,10))}var x=N[3],b=x===24?0:x,C=N[0]+"-"+N[1]+"-"+N[2]+" "+b+":"+N[4]+":"+N[5]+":000",g=+P;return(a.utc(C).valueOf()-(g-=g%1e3))/6e4},p=o.prototype;p.tz=function(P,F){P===void 0&&(P=c);var B=this.utcOffset(),N=this.toDate(),D=N.toLocaleString("en-US",{timeZone:P}),T=Math.round((N-new Date(D))/1e3/60),M=a(D).$set("millisecond",this.$ms).utcOffset(15*-Math.round(N.getTimezoneOffset()/15)-T,!0);if(F){var O=M.utcOffset();M=M.add(B-O,"minute")}return M.$x.$timezone=P,M},p.offsetName=function(P){var F=this.$x.$timezone||a.tz.guess(),B=u(this.valueOf(),F,{timeZoneName:P}).find(function(N){return N.type.toLowerCase()==="timezonename"});return B&&B.value};var I=p.startOf;p.startOf=function(P,F){if(!this.$x||!this.$x.$timezone)return I.call(this,P,F);var B=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return I.call(B,P,F).tz(this.$x.$timezone,!0)},a.tz=function(P,F,B){var N=B&&F,D=B||F||c,T=d(+a(),D);if(typeof P!="string")return a(P).tz(D);var M=function(b,C,g){var w=b-60*C*1e3,f=d(w,g);if(C===f)return[w,C];var m=d(w-=60*(f-C)*1e3,g);return f===m?[w,f]:[b-60*Math.min(f,m)*1e3,Math.max(f,m)]}(a.utc(P,N).valueOf(),T,D),O=M[0],L=M[1],x=a(O).utcOffset(L);return x.$x.$timezone=D,x},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(P){c=P}}})})(MB);const _ke=MB.exports;var LB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tn,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,a,c){var u=a.prototype;c.utc=function(N){var D={date:N,utc:!0,args:arguments};return new a(D)},u.utc=function(N){var D=c(this.toDate(),{locale:this.$L,utc:!0});return N?D.add(this.utcOffset(),n):D},u.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var d=u.parse;u.parse=function(N){N.utc&&(this.$u=!0),this.$utils().u(N.$offset)||(this.$offset=N.$offset),d.call(this,N)};var p=u.init;u.init=function(){if(this.$u){var N=this.$d;this.$y=N.getUTCFullYear(),this.$M=N.getUTCMonth(),this.$D=N.getUTCDate(),this.$W=N.getUTCDay(),this.$H=N.getUTCHours(),this.$m=N.getUTCMinutes(),this.$s=N.getUTCSeconds(),this.$ms=N.getUTCMilliseconds()}else p.call(this)};var I=u.utcOffset;u.utcOffset=function(N,D){var T=this.$utils().u;if(T(N))return this.$u?0:T(this.$offset)?I.call(this):this.$offset;if(typeof N=="string"&&(N=function(x){x===void 0&&(x="");var b=x.match(r);if(!b)return null;var C=(""+b[0]).match(i)||["-",0,0],g=C[0],w=60*+C[1]+ +C[2];return w===0?0:g==="+"?w:-w}(N),N===null))return this;var M=Math.abs(N)<=16?60*N:N,O=this;if(D)return O.$offset=M,O.$u=N===0,O;if(N!==0){var L=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(M+L,n)).$offset=M,O.$x.$localOffset=L}else O=this.utc();return O};var P=u.format;u.format=function(N){var D=N||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return P.call(this,D)},u.valueOf=function(){var N=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*N},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var F=u.toDate;u.toDate=function(N){return N==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():F.call(this)};var B=u.diff;u.diff=function(N,D,T){if(N&&this.$u===N.$u)return B.call(this,N,D,T);var M=this.local(),O=c(N).local();return B.call(M,O,D,T)}}})})(LB);const Eke=LB.exports;/** +`)},Ooe=0,jl=[];function Moe(e){var t=de.exports.useRef([]),n=de.exports.useRef([0,0]),r=de.exports.useRef(),i=de.exports.useState(Ooe++)[0],o=de.exports.useState(function(){return pB()})[0],a=de.exports.useRef(e);de.exports.useEffect(function(){a.current=e},[e]),de.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var N=oq([e.lockRef.current],(e.shards||[]).map(Q2),!0).filter(Boolean);return N.forEach(function(D){return D.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),N.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=de.exports.useCallback(function(N,D){if("touches"in N&&N.touches.length===2)return!a.current.allowPinchZoom;var T=Qf(N),M=n.current,O="deltaX"in N?N.deltaX:M[0]-T[0],L="deltaY"in N?N.deltaY:M[1]-T[1],x,b=N.target,C=Math.abs(O)>Math.abs(L)?"h":"v";if("touches"in N&&C==="h"&&b.type==="range")return!1;var g=K2(C,b);if(!g)return!0;if(g?x=C:(x=C==="v"?"h":"v",g=K2(C,b)),!g)return!1;if(!r.current&&"changedTouches"in N&&(O||L)&&(r.current=x),!x)return!0;var w=r.current||x;return Toe(w,D,N,w==="h"?O:L,!0)},[]),u=de.exports.useCallback(function(N){var D=N;if(!(!jl.length||jl[jl.length-1]!==o)){var T="deltaY"in D?J2(D):Qf(D),M=t.current.filter(function(x){return x.name===D.type&&x.target===D.target&&Poe(x.delta,T)})[0];if(M&&M.should){D.cancelable&&D.preventDefault();return}if(!M){var O=(a.current.shards||[]).map(Q2).filter(Boolean).filter(function(x){return x.contains(D.target)}),L=O.length>0?c(D,O[0]):!a.current.noIsolation;L&&D.cancelable&&D.preventDefault()}}},[]),d=de.exports.useCallback(function(N,D,T,M){var O={name:N,delta:D,target:T,should:M};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(L){return L!==O})},1)},[]),p=de.exports.useCallback(function(N){n.current=Qf(N),r.current=void 0},[]),I=de.exports.useCallback(function(N){d(N.type,J2(N),N.target,c(N,e.lockRef.current))},[]),P=de.exports.useCallback(function(N){d(N.type,Qf(N),N.target,c(N,e.lockRef.current))},[]);de.exports.useEffect(function(){return jl.push(o),e.setCallbacks({onScrollCapture:I,onWheelCapture:I,onTouchMoveCapture:P}),document.addEventListener("wheel",u,zl),document.addEventListener("touchmove",u,zl),document.addEventListener("touchstart",p,zl),function(){jl=jl.filter(function(N){return N!==o}),document.removeEventListener("wheel",u,zl),document.removeEventListener("touchmove",u,zl),document.removeEventListener("touchstart",p,zl)}},[]);var F=e.removeScrollBar,B=e.inert;return At(Ao,{children:[B?Se(o,{styles:Roe(i)}):null,F?Se(Coe,{gapMode:"margin"}):null]})}const Loe=lte(fB,Moe);var yB=de.exports.forwardRef(function(e,t){return Se(rb,{...Bo({},e,{ref:t,sideCar:Loe})})});yB.classNames=rb.classNames;const Doe=yB;function $oe(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:c,returnFocusOnClose:u,preserveScrollBarGap:d,lockFocusAcrossFrames:p,isOpen:I}=Cl(),[P,F]=mI();de.exports.useEffect(()=>{!P&&F&&setTimeout(F)},[P,F]);const B=dB(r,I);return Se(D5,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:c,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:p,children:Se(Doe,{removeScrollBar:!d,allowPinchZoom:a,enabled:B===1&&o,forwardProps:!0,children:e.children})})}var Noe=It((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:c,getDialogContainerProps:u}=Cl(),d=c(a,t),p=u(i),I=Bt("chakra-modal__content",n),P=vu(),F={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...P.dialog},B={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...P.dialogContainer},{motionPreset:N}=Cl();return Se($oe,{children:Se(pt.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:B,children:Se(uB,{preset:N,motionProps:o,className:I,...d,__css:F,children:r})})})});Noe.displayName="ModalContent";var Foe=It((e,t)=>{const{className:n,...r}=e,i=Bt("chakra-modal__footer",n),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...vu().footer};return Se(pt.footer,{ref:t,...r,__css:a,className:i})});Foe.displayName="ModalFooter";var Boe=It((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=Cl();de.exports.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=Bt("chakra-modal__header",n),u={flex:0,...vu().header};return Se(pt.header,{ref:t,className:a,id:i,...r,__css:u})});Boe.displayName="ModalHeader";var Woe=pt(aa.div),Hoe=It((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=Bt("chakra-modal__overlay",n),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...vu().overlay},{motionPreset:d}=Cl();return Se(Woe,{...i||(d==="none"?{}:BF),__css:u,ref:t,className:a,...o})});Hoe.displayName="ModalOverlay";var Voe=It((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=Cl();de.exports.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=Bt("chakra-modal__body",n),c=vu();return Se(pt.div,{ref:t,className:a,id:i,...r,__css:c.body})});Voe.displayName="ModalBody";var zoe=It((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=Cl(),a=Bt("chakra-modal__close-btn",r),c=vu();return Se(Ky,{ref:t,__css:c.closeButton,className:a,onClick:Wt(n,u=>{u.stopPropagation(),o()}),...i})});zoe.displayName="ModalCloseButton";var joe=e=>Se(Ha,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Goe=e=>Se(Ha,{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function q2(e,t,n,r){de.exports.useEffect(()=>{var i;if(!e.current||!r)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,a=Array.isArray(t)?t:[t],c=new o.MutationObserver(u=>{for(const d of u)d.type==="attributes"&&d.attributeName&&a.includes(d.attributeName)&&n(d)});return c.observe(e.current,{attributes:!0,attributeFilter:a}),()=>c.disconnect()})}function Yoe(e,t){const n=nr(e);de.exports.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var Zoe=50,eP=300;function Xoe(e,t){const[n,r]=de.exports.useState(!1),[i,o]=de.exports.useState(null),[a,c]=de.exports.useState(!0),u=de.exports.useRef(null),d=()=>clearTimeout(u.current);Yoe(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?Zoe:null);const p=de.exports.useCallback(()=>{a&&e(),u.current=setTimeout(()=>{c(!1),r(!0),o("increment")},eP)},[e,a]),I=de.exports.useCallback(()=>{a&&t(),u.current=setTimeout(()=>{c(!1),r(!0),o("decrement")},eP)},[t,a]),P=de.exports.useCallback(()=>{c(!0),r(!1),d()},[]);return de.exports.useEffect(()=>()=>d(),[]),{up:p,down:I,stop:P,isSpinning:n}}var Uoe=/^[Ee0-9+\-.]$/;function Koe(e){return Uoe.test(e)}function Joe(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function Qoe(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:c,isDisabled:u,isRequired:d,isInvalid:p,pattern:I="[0-9]*(.[0-9]+)?",inputMode:P="decimal",allowMouseWheel:F,id:B,onChange:N,precision:D,name:T,"aria-describedby":M,"aria-label":O,"aria-labelledby":L,onFocus:x,onBlur:b,onInvalid:C,getAriaValueText:g,isValidCharacter:w,format:f,parse:m,...E}=e,S=nr(x),y=nr(b),_=nr(C),$=nr(w!=null?w:Koe),z=nr(g),H=Gee(e),{update:X,increment:Q,decrement:re}=H,[ue,le]=de.exports.useState(!1),ve=!(c||u),V=de.exports.useRef(null),Z=de.exports.useRef(null),ce=de.exports.useRef(null),Y=de.exports.useRef(null),ie=de.exports.useCallback(He=>He.split("").filter($).join(""),[$]),he=de.exports.useCallback(He=>{var et;return(et=m==null?void 0:m(He))!=null?et:He},[m]),fe=de.exports.useCallback(He=>{var et;return((et=f==null?void 0:f(He))!=null?et:He).toString()},[f]);Da(()=>{(H.valueAsNumber>o||H.valueAsNumber{if(!V.current)return;if(V.current.value!=H.value){const et=he(V.current.value);H.setValue(ie(et))}},[he,ie]);const Ce=de.exports.useCallback((He=a)=>{ve&&Q(He)},[Q,ve,a]),Pe=de.exports.useCallback((He=a)=>{ve&&re(He)},[re,ve,a]),we=Xoe(Ce,Pe);q2(ce,"disabled",we.stop,we.isSpinning),q2(Y,"disabled",we.stop,we.isSpinning);const be=de.exports.useCallback(He=>{if(He.nativeEvent.isComposing)return;const ot=he(He.currentTarget.value);X(ie(ot)),Z.current={start:He.currentTarget.selectionStart,end:He.currentTarget.selectionEnd}},[X,ie,he]),ee=de.exports.useCallback(He=>{var et,ot,lt;S==null||S(He),Z.current&&(He.target.selectionStart=(ot=Z.current.start)!=null?ot:(et=He.currentTarget.value)==null?void 0:et.length,He.currentTarget.selectionEnd=(lt=Z.current.end)!=null?lt:He.currentTarget.selectionStart)},[S]),se=de.exports.useCallback(He=>{if(He.nativeEvent.isComposing)return;Joe(He,$)||He.preventDefault();const et=ge(He)*a,ot=He.key,Qe={ArrowUp:()=>Ce(et),ArrowDown:()=>Pe(et),Home:()=>X(i),End:()=>X(o)}[ot];Qe&&(He.preventDefault(),Qe(He))},[$,a,Ce,Pe,X,i,o]),ge=He=>{let et=1;return(He.metaKey||He.ctrlKey)&&(et=.1),He.shiftKey&&(et=10),et},U=de.exports.useMemo(()=>{const He=z==null?void 0:z(H.value);if(He!=null)return He;const et=H.value.toString();return et||void 0},[H.value,z]),q=de.exports.useCallback(()=>{let He=H.value;if(H.value==="")return;/^[eE]/.test(H.value.toString())?H.setValue(""):(H.valueAsNumbero&&(He=o),H.cast(He))},[H,o,i]),oe=de.exports.useCallback(()=>{le(!1),n&&q()},[n,le,q]),xe=de.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var He;(He=V.current)==null||He.focus()})},[t]),ke=de.exports.useCallback(He=>{He.preventDefault(),we.up(),xe()},[xe,we]),Te=de.exports.useCallback(He=>{He.preventDefault(),we.down(),xe()},[xe,we]);cl(()=>V.current,"wheel",He=>{var et,ot;const Qe=((ot=(et=V.current)==null?void 0:et.ownerDocument)!=null?ot:document).activeElement===V.current;if(!F||!Qe)return;He.preventDefault();const ht=ge(He)*a,dt=Math.sign(He.deltaY);dt===-1?Ce(ht):dt===1&&Pe(ht)},{passive:!1});const Ne=de.exports.useCallback((He={},et=null)=>{const ot=u||r&&H.isAtMax;return{...He,ref:_n(et,ce),role:"button",tabIndex:-1,onPointerDown:Wt(He.onPointerDown,lt=>{lt.button!==0||ot||ke(lt)}),onPointerLeave:Wt(He.onPointerLeave,we.stop),onPointerUp:Wt(He.onPointerUp,we.stop),disabled:ot,"aria-disabled":Sa(ot)}},[H.isAtMax,r,ke,we.stop,u]),Ge=de.exports.useCallback((He={},et=null)=>{const ot=u||r&&H.isAtMin;return{...He,ref:_n(et,Y),role:"button",tabIndex:-1,onPointerDown:Wt(He.onPointerDown,lt=>{lt.button!==0||ot||Te(lt)}),onPointerLeave:Wt(He.onPointerLeave,we.stop),onPointerUp:Wt(He.onPointerUp,we.stop),disabled:ot,"aria-disabled":Sa(ot)}},[H.isAtMin,r,Te,we.stop,u]),nt=de.exports.useCallback((He={},et=null)=>{var ot,lt,Qe,ht;return{name:T,inputMode:P,type:"text",pattern:I,"aria-labelledby":L,"aria-label":O,"aria-describedby":M,id:B,disabled:u,...He,readOnly:(ot=He.readOnly)!=null?ot:c,"aria-readonly":(lt=He.readOnly)!=null?lt:c,"aria-required":(Qe=He.required)!=null?Qe:d,required:(ht=He.required)!=null?ht:d,ref:_n(V,et),value:fe(H.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(H.valueAsNumber)?void 0:H.valueAsNumber,"aria-invalid":Sa(p!=null?p:H.isOutOfRange),"aria-valuetext":U,autoComplete:"off",autoCorrect:"off",onChange:Wt(He.onChange,be),onKeyDown:Wt(He.onKeyDown,se),onFocus:Wt(He.onFocus,ee,()=>le(!0)),onBlur:Wt(He.onBlur,y,oe)}},[T,P,I,L,O,fe,M,B,u,d,c,p,H.value,H.valueAsNumber,H.isOutOfRange,i,o,U,be,se,ee,y,oe]);return{value:fe(H.value),valueAsNumber:H.valueAsNumber,isFocused:ue,isDisabled:u,isReadOnly:c,getIncrementButtonProps:Ne,getDecrementButtonProps:Ge,getInputProps:nt,htmlProps:E}}var[qoe,ib]=In({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[eae,uk]=In({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),tae=It(function(t,n){const r=zr("NumberInput",t),i=Dn(t),o=HI(i),{htmlProps:a,...c}=Qoe(o),u=de.exports.useMemo(()=>c,[c]);return Se(eae,{value:u,children:Se(qoe,{value:r,children:Se(pt.div,{...a,ref:n,className:Bt("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});tae.displayName="NumberInput";var nae=It(function(t,n){const r=ib();return Se(pt.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});nae.displayName="NumberInputStepper";var rae=It(function(t,n){const{getInputProps:r}=uk(),i=r(t,n),o=ib();return Se(pt.input,{...i,className:Bt("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});rae.displayName="NumberInputField";var bB=pt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),iae=It(function(t,n){var r;const i=ib(),{getDecrementButtonProps:o}=uk(),a=o(t,n);return Se(bB,{...a,__css:i.stepper,children:(r=t.children)!=null?r:Se(joe,{})})});iae.displayName="NumberDecrementStepper";var oae=It(function(t,n){var r;const{getIncrementButtonProps:i}=uk(),o=i(t,n),a=ib();return Se(bB,{...o,__css:a.stepper,children:(r=t.children)!=null?r:Se(Goe,{})})});oae.displayName="NumberIncrementStepper";var[aae,yu]=In({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[sae,ob]=In({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `});function lae(e){const t=de.exports.Children.only(e.children),{getTriggerProps:n}=yu();return de.exports.cloneElement(t,n(t.props,t.ref))}lae.displayName="PopoverTrigger";var Gl={click:"click",hover:"hover"};function cae(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:o=!0,autoFocus:a=!0,arrowSize:c,arrowShadowColor:u,trigger:d=Gl.click,openDelay:p=200,closeDelay:I=200,isLazy:P,lazyBehavior:F="unmount",computePositionOnMount:B,...N}=e,{isOpen:D,onClose:T,onOpen:M,onToggle:O}=lk(e),L=de.exports.useRef(null),x=de.exports.useRef(null),b=de.exports.useRef(null),C=de.exports.useRef(!1),g=de.exports.useRef(!1);D&&(g.current=!0);const[w,f]=de.exports.useState(!1),[m,E]=de.exports.useState(!1),S=de.exports.useId(),y=i!=null?i:S,[_,$,z,H]=["popover-trigger","popover-content","popover-header","popover-body"].map(be=>`${be}-${y}`),{referenceRef:X,getArrowProps:Q,getPopperProps:re,getArrowInnerProps:ue,forceUpdate:le}=sk({...N,enabled:D||!!B}),ve=aB({isOpen:D,ref:b});Qee({enabled:D,ref:x}),X5(b,{focusRef:x,visible:D,shouldFocus:o&&d===Gl.click}),tre(b,{focusRef:r,visible:D,shouldFocus:a&&d===Gl.click});const V=ck({wasSelected:g.current,enabled:P,mode:F,isSelected:ve.present}),Z=de.exports.useCallback((be={},ee=null)=>{const se={...be,style:{...be.style,transformOrigin:fr.transformOrigin.varRef,[fr.arrowSize.var]:c?`${c}px`:void 0,[fr.arrowShadowColor.var]:u},ref:_n(b,ee),children:V?be.children:null,id:$,tabIndex:-1,role:"dialog",onKeyDown:Wt(be.onKeyDown,ge=>{n&&ge.key==="Escape"&&T()}),onBlur:Wt(be.onBlur,ge=>{const U=tP(ge),q=ix(b.current,U),oe=ix(x.current,U);D&&t&&(!q&&!oe)&&T()}),"aria-labelledby":w?z:void 0,"aria-describedby":m?H:void 0};return d===Gl.hover&&(se.role="tooltip",se.onMouseEnter=Wt(be.onMouseEnter,()=>{C.current=!0}),se.onMouseLeave=Wt(be.onMouseLeave,ge=>{ge.nativeEvent.relatedTarget!==null&&(C.current=!1,setTimeout(()=>T(),I))})),se},[V,$,w,z,m,H,d,n,T,D,t,I,u,c]),ce=de.exports.useCallback((be={},ee=null)=>re({...be,style:{visibility:D?"visible":"hidden",...be.style}},ee),[D,re]),Y=de.exports.useCallback((be,ee=null)=>({...be,ref:_n(ee,L,X)}),[L,X]),ie=de.exports.useRef(),he=de.exports.useRef(),fe=de.exports.useCallback(be=>{L.current==null&&X(be)},[X]),Ce=de.exports.useCallback((be={},ee=null)=>{const se={...be,ref:_n(x,ee,fe),id:_,"aria-haspopup":"dialog","aria-expanded":D,"aria-controls":$};return d===Gl.click&&(se.onClick=Wt(be.onClick,O)),d===Gl.hover&&(se.onFocus=Wt(be.onFocus,()=>{ie.current===void 0&&M()}),se.onBlur=Wt(be.onBlur,ge=>{const U=tP(ge),q=!ix(b.current,U);D&&t&&q&&T()}),se.onKeyDown=Wt(be.onKeyDown,ge=>{ge.key==="Escape"&&T()}),se.onMouseEnter=Wt(be.onMouseEnter,()=>{C.current=!0,ie.current=window.setTimeout(()=>M(),p)}),se.onMouseLeave=Wt(be.onMouseLeave,()=>{C.current=!1,ie.current&&(clearTimeout(ie.current),ie.current=void 0),he.current=window.setTimeout(()=>{C.current===!1&&T()},I)})),se},[_,D,$,d,fe,O,M,t,T,p,I]);de.exports.useEffect(()=>()=>{ie.current&&clearTimeout(ie.current),he.current&&clearTimeout(he.current)},[]);const Pe=de.exports.useCallback((be={},ee=null)=>({...be,id:z,ref:_n(ee,se=>{f(!!se)})}),[z]),we=de.exports.useCallback((be={},ee=null)=>({...be,id:H,ref:_n(ee,se=>{E(!!se)})}),[H]);return{forceUpdate:le,isOpen:D,onAnimationComplete:ve.onComplete,onClose:T,getAnchorProps:Y,getArrowProps:Q,getArrowInnerProps:ue,getPopoverPositionerProps:ce,getPopoverProps:Z,getTriggerProps:Ce,getHeaderProps:Pe,getBodyProps:we}}function ix(e,t){return e===t||(e==null?void 0:e.contains(t))}function tP(e){var t;const n=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:n}function uae(e){const t=zr("Popover",e),{children:n,...r}=Dn(e),i=Fs(),o=cae({...r,direction:i.direction});return Se(aae,{value:o,children:Se(sae,{value:t,children:Ki(n,{isOpen:o.isOpen,onClose:o.onClose,forceUpdate:o.forceUpdate})})})}uae.displayName="Popover";function dae(e){var t;const{bg:n,bgColor:r,backgroundColor:i,shadow:o,boxShadow:a}=e,{getArrowProps:c,getArrowInnerProps:u}=yu(),d=ob(),p=(t=n!=null?n:r)!=null?t:i,I=o!=null?o:a;return Se(pt.div,{...c(),className:"chakra-popover__arrow-positioner",children:Se(pt.div,{className:Bt("chakra-popover__arrow",e.className),...u(e),__css:{"--popper-arrow-bg":p?`colors.${p}, ${p}`:void 0,"--popper-arrow-shadow":I?`shadows.${I}, ${I}`:void 0,...d.arrow}})})}dae.displayName="PopoverArrow";var hae=It(function(t,n){const{getBodyProps:r}=yu(),i=ob();return Se(pt.div,{...r(t,n),className:Bt("chakra-popover__body",t.className),__css:i.body})});hae.displayName="PopoverBody";var fae=It(function(t,n){const{onClose:r}=yu(),i=ob();return Se(Ky,{size:"sm",onClick:r,className:Bt("chakra-popover__close-btn",t.className),__css:i.closeButton,ref:n,...t})});fae.displayName="PopoverCloseButton";function pae(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var gae={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},mae=pt(aa.section),xB=It(function(t,n){const{variants:r=gae,...i}=t,{isOpen:o}=yu();return Se(mae,{ref:n,variants:pae(r),initial:!1,animate:o?"enter":"exit",...i})});xB.displayName="PopoverTransition";var vae=It(function(t,n){const{rootProps:r,motionProps:i,...o}=t,{getPopoverProps:a,getPopoverPositionerProps:c,onAnimationComplete:u}=yu(),d=ob(),p={position:"relative",display:"flex",flexDirection:"column",...d.content};return Se(pt.div,{...c(r),__css:d.popper,className:"chakra-popover__popper",children:Se(xB,{...i,...a(o,n),onAnimationComplete:ZA(u,o.onAnimationComplete),className:Bt("chakra-popover__content",t.className),__css:p})})});vae.displayName="PopoverContent";var FC=e=>Se(pt.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});FC.displayName="Circle";function yae(e,t,n){return(e-t)*100/(n-t)}var bae=Ms({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),xae=Ms({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});Ms({"0%":{left:"-40%"},"100%":{left:"100%"}});Ms({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function wae(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:c="progressbar"}=e,u=yae(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof o=="function"?o(t,u):i})(),role:c},percent:u,value:t}}var wB=e=>{const{size:t,isIndeterminate:n,...r}=e;return Se(pt.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${xae} 2s linear infinite`:void 0},...r})};wB.displayName="Shape";var Cae=It((e,t)=>{var n;const{size:r="48px",max:i=100,min:o=0,valueText:a,getValueText:c,value:u,capIsRound:d,children:p,thickness:I="10px",color:P="#0078d4",trackColor:F="#edebe9",isIndeterminate:B,...N}=e,D=wae({min:o,max:i,value:u,valueText:a,getValueText:c,isIndeterminate:B}),T=B?void 0:((n=D.percent)!=null?n:0)*2.64,M=T==null?void 0:`${T} ${264-T}`,O=B?{css:{animation:`${bae} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:M,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},L={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return At(pt.div,{ref:t,className:"chakra-progress",...D.bind,...N,__css:L,children:[At(wB,{size:r,isIndeterminate:B,children:[Se(FC,{stroke:F,strokeWidth:I,className:"chakra-progress__track"}),Se(FC,{stroke:P,strokeWidth:I,className:"chakra-progress__indicator",strokeLinecap:d?"round":void 0,opacity:D.value===0&&!B?0:void 0,...O})]}),p]})});Cae.displayName="CircularProgress";function Sae(e){return e&&yr(e)&&yr(e.target)}function Aae(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:c,...u}=e,[d,p]=de.exports.useState(r||""),I=typeof n<"u",P=I?n:d,F=de.exports.useRef(null),B=de.exports.useCallback(()=>{const x=F.current;if(!x)return;let b="input:not(:disabled):checked";const C=x.querySelector(b);if(C){C.focus();return}b="input:not(:disabled)";const g=x.querySelector(b);g==null||g.focus()},[]),D=`radio-${de.exports.useId()}`,T=i||D,M=de.exports.useCallback(x=>{const b=Sae(x)?x.target.value:x;I||p(b),t==null||t(String(b))},[t,I]),O=de.exports.useCallback((x={},b=null)=>({...x,ref:_n(b,F),role:"radiogroup"}),[]),L=de.exports.useCallback((x={},b=null)=>({...x,ref:b,name:T,[c?"checked":"isChecked"]:P!=null?x.value===P:void 0,onChange(g){M(g)},"data-radiogroup":!0}),[c,T,M,P]);return{getRootProps:O,getRadioProps:L,name:T,ref:F,focus:B,setValue:p,value:P,onChange:M,isDisabled:o,isFocusable:a,htmlProps:u}}var[Iae,kae]=In({name:"RadioGroupContext",strict:!1}),_ae=It((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:c,isFocusable:u,...d}=e,{value:p,onChange:I,getRootProps:P,name:F,htmlProps:B}=Aae(d),N=de.exports.useMemo(()=>({name:F,size:r,onChange:I,colorScheme:n,value:p,variant:i,isDisabled:c,isFocusable:u}),[F,r,I,n,p,i,c,u]);return Se(Iae,{value:N,children:Se(pt.div,{...P(B,t),className:Bt("chakra-radio-group",a),children:o})})});_ae.displayName="RadioGroup";var Eae={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function yke(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:c,isInvalid:u,name:d,value:p,id:I,"data-radiogroup":P,"aria-describedby":F,...B}=e,N=`radio-${de.exports.useId()}`,D=Ll(),M=!!kae()||!!P;let L=!!D&&!M?D.id:N;L=I!=null?I:L;const x=i!=null?i:D==null?void 0:D.isDisabled,b=o!=null?o:D==null?void 0:D.isReadOnly,C=a!=null?a:D==null?void 0:D.isRequired,g=u!=null?u:D==null?void 0:D.isInvalid,[w,f]=de.exports.useState(!1),[m,E]=de.exports.useState(!1),[S,y]=de.exports.useState(!1),[_,$]=de.exports.useState(!1),[z,H]=de.exports.useState(Boolean(t)),X=typeof n<"u",Q=X?n:z;de.exports.useEffect(()=>jF(f),[]);const re=de.exports.useCallback(fe=>{if(b||x){fe.preventDefault();return}X||H(fe.target.checked),c==null||c(fe)},[X,x,b,c]),ue=de.exports.useCallback(fe=>{fe.key===" "&&$(!0)},[$]),le=de.exports.useCallback(fe=>{fe.key===" "&&$(!1)},[$]),ve=de.exports.useCallback((fe={},Ce=null)=>({...fe,ref:Ce,"data-active":Qt(_),"data-hover":Qt(S),"data-disabled":Qt(x),"data-invalid":Qt(g),"data-checked":Qt(Q),"data-focus":Qt(m),"data-focus-visible":Qt(m&&w),"data-readonly":Qt(b),"aria-hidden":!0,onMouseDown:Wt(fe.onMouseDown,()=>$(!0)),onMouseUp:Wt(fe.onMouseUp,()=>$(!1)),onMouseEnter:Wt(fe.onMouseEnter,()=>y(!0)),onMouseLeave:Wt(fe.onMouseLeave,()=>y(!1))}),[_,S,x,g,Q,m,b,w]),{onFocus:V,onBlur:Z}=D!=null?D:{},ce=de.exports.useCallback((fe={},Ce=null)=>{const Pe=x&&!r;return{...fe,id:L,ref:Ce,type:"radio",name:d,value:p,onChange:Wt(fe.onChange,re),onBlur:Wt(Z,fe.onBlur,()=>E(!1)),onFocus:Wt(V,fe.onFocus,()=>E(!0)),onKeyDown:Wt(fe.onKeyDown,ue),onKeyUp:Wt(fe.onKeyUp,le),checked:Q,disabled:Pe,readOnly:b,required:C,"aria-invalid":Sa(g),"aria-disabled":Sa(Pe),"aria-required":Sa(C),"data-readonly":Qt(b),"aria-describedby":F,style:Eae}},[x,r,L,d,p,re,Z,V,ue,le,Q,b,C,g,F]);return{state:{isInvalid:g,isFocused:m,isChecked:Q,isActive:_,isHovered:S,isDisabled:x,isReadOnly:b,isRequired:C},getCheckboxProps:ve,getRadioProps:ve,getInputProps:ce,getLabelProps:(fe={},Ce=null)=>({...fe,ref:Ce,onMouseDown:Wt(fe.onMouseDown,Tae),"data-disabled":Qt(x),"data-checked":Qt(Q),"data-invalid":Qt(g)}),getRootProps:(fe,Ce=null)=>({...fe,ref:Ce,"data-disabled":Qt(x),"data-checked":Qt(Q),"data-invalid":Qt(g)}),htmlProps:B}}function Tae(e){e.preventDefault(),e.stopPropagation()}var CB=It(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return At(pt.select,{...a,ref:n,className:Bt("chakra-select",o),children:[i&&Se("option",{value:"",children:i}),r]})});CB.displayName="SelectField";function Pae(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}var Rae=It((e,t)=>{var n;const r=zr("Select",e),{rootProps:i,placeholder:o,icon:a,color:c,height:u,h:d,minH:p,minHeight:I,iconColor:P,iconSize:F,...B}=Dn(e),[N,D]=Pae(B,f4),T=WI(D),M={width:"100%",height:"fit-content",position:"relative",color:c},O={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return At(pt.div,{className:"chakra-select__wrapper",__css:M,...N,...i,children:[Se(CB,{ref:t,height:d!=null?d:u,minH:p!=null?p:I,placeholder:o,...T,__css:O,children:e.children}),Se(SB,{"data-disabled":Qt(T.disabled),...(P||c)&&{color:P||c},__css:r.icon,...F&&{fontSize:F},children:a})]})});Rae.displayName="Select";var Oae=e=>Se("svg",{viewBox:"0 0 24 24",...e,children:Se("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Mae=pt("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),SB=e=>{const{children:t=Se(Oae,{}),...n}=e,r=de.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return Se(Mae,{...n,className:"chakra-select__icon-wrapper",children:de.exports.isValidElement(t)?r:null})};SB.displayName="SelectIcon";var Yl=e=>e?"":void 0,ox=e=>e?!0:void 0,uf=(...e)=>e.filter(Boolean).join(" ");function ax(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function qf(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var Dp={width:0,height:0},ep=e=>e||Dp;function Lae(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,o=N=>{var D;const T=(D=r[N])!=null?D:Dp;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...qf({orientation:t,vertical:{bottom:`calc(${n[N]}% - ${T.height/2}px)`},horizontal:{left:`calc(${n[N]}% - ${T.width/2}px)`}})}},a=t==="vertical"?r.reduce((N,D)=>ep(N).height>ep(D).height?N:D,Dp):r.reduce((N,D)=>ep(N).width>ep(D).width?N:D,Dp),c={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...qf({orientation:t,vertical:a?{paddingLeft:a.width/2,paddingRight:a.width/2}:{},horizontal:a?{paddingTop:a.height/2,paddingBottom:a.height/2}:{}})},u={position:"absolute",...qf({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=n.length===1,p=[0,i?100-n[0]:n[0]],I=d?p:n;let P=I[0];!d&&i&&(P=100-P);const F=Math.abs(I[I.length-1]-I[0]),B={...u,...qf({orientation:t,vertical:i?{height:`${F}%`,top:`${P}%`}:{height:`${F}%`,bottom:`${P}%`},horizontal:i?{width:`${F}%`,right:`${P}%`}:{width:`${F}%`,left:`${P}%`}})};return{trackStyle:u,innerTrackStyle:B,rootStyle:c,getThumbStyle:o}}function Dae(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function $ae(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Nae(e){const t=Bae(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function AB(e){return!!e.touches}function Fae(e){return AB(e)&&e.touches.length>1}function Bae(e){var t;return(t=e.view)!=null?t:window}function Wae(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function Hae(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function IB(e,t="page"){return AB(e)?Wae(e,t):Hae(e,t)}function Vae(e){return t=>{const n=Nae(t);(!n||n&&t.button===0)&&e(t)}}function zae(e,t=!1){function n(i){e(i,{point:IB(i)})}return t?Vae(n):n}function $p(e,t,n,r){return $ae(e,t,zae(n,t==="pointerdown"),r)}var jae=Object.defineProperty,Gae=(e,t,n)=>t in e?jae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fo=(e,t,n)=>(Gae(e,typeof t!="symbol"?t+"":t,n),n),Yae=class{constructor(e,t,n){fo(this,"history",[]),fo(this,"startEvent",null),fo(this,"lastEvent",null),fo(this,"lastEventInfo",null),fo(this,"handlers",{}),fo(this,"removeListeners",()=>{}),fo(this,"threshold",3),fo(this,"win"),fo(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const c=sx(this.lastEventInfo,this.history),u=this.startEvent!==null,d=Kae(c.offset,{x:0,y:0})>=this.threshold;if(!u&&!d)return;const{timestamp:p}=aT();this.history.push({...c.point,timestamp:p});const{onStart:I,onMove:P}=this.handlers;u||(I==null||I(this.lastEvent,c),this.startEvent=this.lastEvent),P==null||P(this.lastEvent,c)}),fo(this,"onPointerMove",(c,u)=>{this.lastEvent=c,this.lastEventInfo=u,e6.update(this.updatePoint,!0)}),fo(this,"onPointerUp",(c,u)=>{const d=sx(u,this.history),{onEnd:p,onSessionEnd:I}=this.handlers;I==null||I(c,d),this.end(),!(!p||!this.startEvent)&&(p==null||p(c,d))});var r;if(this.win=(r=e.view)!=null?r:window,Fae(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const i={point:IB(e)},{timestamp:o}=aT();this.history=[{...i.point,timestamp:o}];const{onSessionStart:a}=t;a==null||a(e,sx(i,this.history)),this.removeListeners=Uae($p(this.win,"pointermove",this.onPointerMove),$p(this.win,"pointerup",this.onPointerUp),$p(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),t6.update(this.updatePoint)}};function nP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sx(e,t){return{point:e.point,delta:nP(e.point,t[t.length-1]),offset:nP(e.point,t[0]),velocity:Xae(t,.1)}}var Zae=e=>e*1e3;function Xae(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Zae(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Uae(...e){return t=>e.reduce((n,r)=>r(n),t)}function lx(e,t){return Math.abs(e-t)}function rP(e){return"x"in e&&"y"in e}function Kae(e,t){if(typeof e=="number"&&typeof t=="number")return lx(e,t);if(rP(e)&&rP(t)){const n=lx(e.x,t.x),r=lx(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function kB(e){const t=de.exports.useRef(null);return t.current=e,t}function Jae(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:c}=t,u=Boolean(n||r||i||o||a),d=de.exports.useRef(null),p=kB({onSessionStart:o,onSessionEnd:a,onStart:r,onMove:n,onEnd(I,P){d.current=null,i==null||i(I,P)}});de.exports.useEffect(()=>{var I;(I=d.current)==null||I.updateHandlers(p.current)}),de.exports.useEffect(()=>{const I=e.current;if(!I||!u)return;function P(F){d.current=new Yae(F,p.current,c)}return $p(I,"pointerdown",P)},[e,u,p,c]),de.exports.useEffect(()=>()=>{var I;(I=d.current)==null||I.end(),d.current=null},[])}function Qae(e,t){var i;if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const n=(i=e.ownerDocument.defaultView)!=null?i:window,r=new n.ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const[a]=o;let c,u;if("borderBoxSize"in a){const d=a.borderBoxSize,p=Array.isArray(d)?d[0]:d;c=p.inlineSize,u=p.blockSize}else c=e.offsetWidth,u=e.offsetHeight;t({width:c,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}var qae=Boolean(globalThis==null?void 0:globalThis.document)?de.exports.useLayoutEffect:de.exports.useEffect;function ese(e,t){var n,r;if(!e||!e.parentElement)return;const i=(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function tse({getNodes:e,observeMutation:t=!0}){const[n,r]=de.exports.useState([]),[i,o]=de.exports.useState(0);return qae(()=>{const a=e(),c=a.map((u,d)=>Qae(u,p=>{r(I=>[...I.slice(0,d),p,...I.slice(d+1)])}));if(t){const u=a[0];c.push(ese(u,()=>{o(d=>d+1)}))}return()=>{c.forEach(u=>{u==null||u()})}},[i]),n}function nse(e){return typeof e=="object"&&e!==null&&"current"in e}function rse(e){const[t]=tse({observeMutation:!1,getNodes(){return[nse(e)?e.current:e]}});return t}function ise(e){var t;const{min:n=0,max:r=100,onChange:i,value:o,defaultValue:a,isReversed:c,direction:u="ltr",orientation:d="horizontal",id:p,isDisabled:I,isReadOnly:P,onChangeStart:F,onChangeEnd:B,step:N=1,getAriaValueText:D,"aria-valuetext":T,"aria-label":M,"aria-labelledby":O,name:L,focusThumbOnChange:x=!0,...b}=e,C=nr(F),g=nr(B),w=nr(D),f=Dae({isReversed:c,direction:u,orientation:d}),[m,E]=Qy({value:o,defaultValue:a!=null?a:ase(n,r),onChange:i}),[S,y]=de.exports.useState(!1),[_,$]=de.exports.useState(!1),z=!(I||P),H=(r-n)/10,X=N||(r-n)/100,Q=Rp(m,n,r),re=r-Q+n,le=k2(f?re:Q,n,r),ve=d==="vertical",V=kB({min:n,max:r,step:N,isDisabled:I,value:Q,isInteractive:z,isReversed:f,isVertical:ve,eventSource:null,focusThumbOnChange:x,orientation:d}),Z=de.exports.useRef(null),ce=de.exports.useRef(null),Y=de.exports.useRef(null),ie=de.exports.useId(),he=p!=null?p:ie,[fe,Ce]=[`slider-thumb-${he}`,`slider-track-${he}`],Pe=de.exports.useCallback(Qe=>{var ht,dt;if(!Z.current)return;const Ve=V.current;Ve.eventSource="pointer";const ct=Z.current.getBoundingClientRect(),{clientX:mt,clientY:yt}=(dt=(ht=Qe.touches)==null?void 0:ht[0])!=null?dt:Qe,$e=ve?ct.bottom-yt:mt-ct.left,Be=ve?ct.height:ct.width;let tt=$e/Be;f&&(tt=1-tt);let xt=jee(tt,Ve.min,Ve.max);return Ve.step&&(xt=parseFloat(_2(xt,Ve.min,Ve.step))),xt=Rp(xt,Ve.min,Ve.max),xt},[ve,f,V]),we=de.exports.useCallback(Qe=>{const ht=V.current;!ht.isInteractive||(Qe=parseFloat(_2(Qe,ht.min,X)),Qe=Rp(Qe,ht.min,ht.max),E(Qe))},[X,E,V]),be=de.exports.useMemo(()=>({stepUp(Qe=X){const ht=f?Q-Qe:Q+Qe;we(ht)},stepDown(Qe=X){const ht=f?Q+Qe:Q-Qe;we(ht)},reset(){we(a||0)},stepTo(Qe){we(Qe)}}),[we,f,Q,X,a]),ee=de.exports.useCallback(Qe=>{const ht=V.current,Ve={ArrowRight:()=>be.stepUp(),ArrowUp:()=>be.stepUp(),ArrowLeft:()=>be.stepDown(),ArrowDown:()=>be.stepDown(),PageUp:()=>be.stepUp(H),PageDown:()=>be.stepDown(H),Home:()=>we(ht.min),End:()=>we(ht.max)}[Qe.key];Ve&&(Qe.preventDefault(),Qe.stopPropagation(),Ve(Qe),ht.eventSource="keyboard")},[be,we,H,V]),se=(t=w==null?void 0:w(Q))!=null?t:T,ge=rse(ce),{getThumbStyle:U,rootStyle:q,trackStyle:oe,innerTrackStyle:xe}=de.exports.useMemo(()=>{const Qe=V.current,ht=ge!=null?ge:{width:0,height:0};return Lae({isReversed:f,orientation:Qe.orientation,thumbRects:[ht],thumbPercents:[le]})},[f,ge,le,V]),ke=de.exports.useCallback(()=>{V.current.focusThumbOnChange&&setTimeout(()=>{var ht;return(ht=ce.current)==null?void 0:ht.focus()})},[V]);Da(()=>{const Qe=V.current;ke(),Qe.eventSource==="keyboard"&&(g==null||g(Qe.value))},[Q,g]);function Te(Qe){const ht=Pe(Qe);ht!=null&&ht!==V.current.value&&E(ht)}Jae(Y,{onPanSessionStart(Qe){const ht=V.current;!ht.isInteractive||(y(!0),ke(),Te(Qe),C==null||C(ht.value))},onPanSessionEnd(){const Qe=V.current;!Qe.isInteractive||(y(!1),g==null||g(Qe.value))},onPan(Qe){!V.current.isInteractive||Te(Qe)}});const Ne=de.exports.useCallback((Qe={},ht=null)=>({...Qe,...b,ref:_n(ht,Y),tabIndex:-1,"aria-disabled":ox(I),"data-focused":Yl(_),style:{...Qe.style,...q}}),[b,I,_,q]),Ge=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:_n(ht,Z),id:Ce,"data-disabled":Yl(I),style:{...Qe.style,...oe}}),[I,Ce,oe]),nt=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:ht,style:{...Qe.style,...xe}}),[xe]),He=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:_n(ht,ce),role:"slider",tabIndex:z?0:void 0,id:fe,"data-active":Yl(S),"aria-valuetext":se,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":Q,"aria-orientation":d,"aria-disabled":ox(I),"aria-readonly":ox(P),"aria-label":M,"aria-labelledby":M?void 0:O,style:{...Qe.style,...U(0)},onKeyDown:ax(Qe.onKeyDown,ee),onFocus:ax(Qe.onFocus,()=>$(!0)),onBlur:ax(Qe.onBlur,()=>$(!1))}),[z,fe,S,se,n,r,Q,d,I,P,M,O,U,ee]),et=de.exports.useCallback((Qe,ht=null)=>{const dt=!(Qe.valuer),Ve=Q>=Qe.value,ct=k2(Qe.value,n,r),mt={position:"absolute",pointerEvents:"none",...ose({orientation:d,vertical:{bottom:f?`${100-ct}%`:`${ct}%`},horizontal:{left:f?`${100-ct}%`:`${ct}%`}})};return{...Qe,ref:ht,role:"presentation","aria-hidden":!0,"data-disabled":Yl(I),"data-invalid":Yl(!dt),"data-highlighted":Yl(Ve),style:{...Qe.style,...mt}}},[I,f,r,n,d,Q]),ot=de.exports.useCallback((Qe={},ht=null)=>({...Qe,ref:ht,type:"hidden",value:Q,name:L}),[L,Q]);return{state:{value:Q,isFocused:_,isDragging:S},actions:be,getRootProps:Ne,getTrackProps:Ge,getInnerTrackProps:nt,getThumbProps:He,getMarkerProps:et,getInputProps:ot}}function ose(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function ase(e,t){return t"}),[lse,sb]=In({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),cse=It((e,t)=>{const n={orientation:"horizontal",...e},r=zr("Slider",n),i=Dn(n),{direction:o}=Fs();i.direction=o;const{getInputProps:a,getRootProps:c,...u}=ise(i),d=c(),p=a({},t);return Se(sse,{value:u,children:Se(lse,{value:r,children:At(pt.div,{...d,className:uf("chakra-slider",n.className),__css:r.container,children:[n.children,Se("input",{...p})]})})})});cse.displayName="Slider";var use=It((e,t)=>{const{getThumbProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__thumb",e.className),__css:r.thumb})});use.displayName="SliderThumb";var dse=It((e,t)=>{const{getTrackProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__track",e.className),__css:r.track})});dse.displayName="SliderTrack";var hse=It((e,t)=>{const{getInnerTrackProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__filled-track",e.className),__css:r.filledTrack})});hse.displayName="SliderFilledTrack";var fse=It((e,t)=>{const{getMarkerProps:n}=ab(),r=sb(),i=n(e,t);return Se(pt.div,{...i,className:uf("chakra-slider__marker",e.className),__css:r.mark})});fse.displayName="SliderMark";var pse=It(function(t,n){const r=zr("Switch",t),{spacing:i="0.5rem",children:o,...a}=Dn(t),{state:c,getInputProps:u,getCheckboxProps:d,getRootProps:p,getLabelProps:I}=GF(a),P=de.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),F=de.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),B=de.exports.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return At(pt.label,{...p(),className:Bt("chakra-switch",t.className),__css:P,children:[Se("input",{className:"chakra-switch__input",...u({},n)}),Se(pt.span,{...d(),className:"chakra-switch__track",__css:F,children:Se(pt.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":Qt(c.isChecked),"data-hover":Qt(c.isHovered)})}),o&&Se(pt.span,{className:"chakra-switch__label",...I(),__css:B,children:o})]})});pse.displayName="Switch";var[gse,df]=In({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),mse=It((e,t)=>{const n=zr("Table",e),{className:r,layout:i,...o}=Dn(e);return Se(gse,{value:n,children:Se(pt.table,{ref:t,__css:{tableLayout:i,...n.table},className:Bt("chakra-table",r),...o})})});mse.displayName="Table";var bke=It((e,t)=>{const n=df();return Se(pt.thead,{...e,ref:t,__css:n.thead})}),xke=It((e,t)=>{const n=df();return Se(pt.tr,{...e,ref:t,__css:n.tr})}),wke=It((e,t)=>{const n=df();return Se(pt.tbody,{...e,ref:t,__css:n.tbody})}),Cke=It(({isNumeric:e,...t},n)=>{const r=df();return Se(pt.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Ske=It(({isNumeric:e,...t},n)=>{const r=df();return Se(pt.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),[vse,yse,bse,xse]=$I();function wse(e){var t;const{defaultIndex:n,onChange:r,index:i,isManual:o,isLazy:a,lazyBehavior:c="unmount",orientation:u="horizontal",direction:d="ltr",...p}=e,[I,P]=de.exports.useState(n!=null?n:0),[F,B]=Qy({defaultValue:n!=null?n:0,value:i,onChange:r});de.exports.useEffect(()=>{i!=null&&P(i)},[i]);const N=bse(),D=de.exports.useId();return{id:`tabs-${(t=e.id)!=null?t:D}`,selectedIndex:F,focusedIndex:I,setSelectedIndex:B,setFocusedIndex:P,isManual:o,isLazy:a,lazyBehavior:c,orientation:u,descendants:N,direction:d,htmlProps:p}}var[Cse,lb]=In({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Sse(e){const{focusedIndex:t,orientation:n,direction:r}=lb(),i=yse(),o=de.exports.useCallback(a=>{const c=()=>{var M;const O=i.nextEnabled(t);O&&((M=O.node)==null||M.focus())},u=()=>{var M;const O=i.prevEnabled(t);O&&((M=O.node)==null||M.focus())},d=()=>{var M;const O=i.firstEnabled();O&&((M=O.node)==null||M.focus())},p=()=>{var M;const O=i.lastEnabled();O&&((M=O.node)==null||M.focus())},I=n==="horizontal",P=n==="vertical",F=a.key,B=r==="ltr"?"ArrowLeft":"ArrowRight",N=r==="ltr"?"ArrowRight":"ArrowLeft",T={[B]:()=>I&&u(),[N]:()=>I&&c(),ArrowDown:()=>P&&c(),ArrowUp:()=>P&&u(),Home:d,End:p}[F];T&&(a.preventDefault(),T(a))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Wt(e.onKeyDown,o)}}function Ase(e){const{isDisabled:t,isFocusable:n,...r}=e,{setSelectedIndex:i,isManual:o,id:a,setFocusedIndex:c,selectedIndex:u}=lb(),{index:d,register:p}=xse({disabled:t&&!n}),I=d===u,P=()=>{i(d)},F=()=>{c(d),!o&&!(t&&n)&&i(d)},B=Z5({...r,ref:_n(p,e.ref),isDisabled:t,isFocusable:n,onClick:Wt(e.onClick,P)}),N="button";return{...B,id:_B(a,d),role:"tab",tabIndex:I?0:-1,type:N,"aria-selected":I,"aria-controls":EB(a,d),onFocus:t?void 0:Wt(e.onFocus,F)}}var[Ise,kse]=In({});function _se(e){const t=lb(),{id:n,selectedIndex:r}=t,o=BI(e.children).map((a,c)=>de.exports.createElement(Ise,{key:c,value:{isSelected:c===r,id:EB(n,c),tabId:_B(n,c),selectedIndex:r}},a));return{...e,children:o}}function Ese(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=lb(),{isSelected:o,id:a,tabId:c}=kse(),u=de.exports.useRef(!1);o&&(u.current=!0);const d=ck({wasSelected:u.current,isSelected:o,enabled:r,mode:i});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":c,hidden:!o,id:a}}function _B(e,t){return`${e}--tab-${t}`}function EB(e,t){return`${e}--tabpanel-${t}`}var[Tse,cb]=In({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Pse=It(function(t,n){const r=zr("Tabs",t),{children:i,className:o,...a}=Dn(t),{htmlProps:c,descendants:u,...d}=wse(a),p=de.exports.useMemo(()=>d,[d]),{isFitted:I,...P}=c;return Se(vse,{value:u,children:Se(Cse,{value:p,children:Se(Tse,{value:r,children:Se(pt.div,{className:Bt("chakra-tabs",o),ref:n,...P,__css:r.root,children:i})})})})});Pse.displayName="Tabs";var Rse=It(function(t,n){const r=Sse({...t,ref:n}),o={display:"flex",...cb().tablist};return Se(pt.div,{...r,className:Bt("chakra-tabs__tablist",t.className),__css:o})});Rse.displayName="TabList";var Ose=It(function(t,n){const r=Ese({...t,ref:n}),i=cb();return Se(pt.div,{outline:"0",...r,className:Bt("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});Ose.displayName="TabPanel";var Mse=It(function(t,n){const r=_se(t),i=cb();return Se(pt.div,{...r,width:"100%",ref:n,className:Bt("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});Mse.displayName="TabPanels";var Lse=It(function(t,n){const r=cb(),i=Ase({...t,ref:n}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return Se(pt.button,{...i,className:Bt("chakra-tabs__tab",t.className),__css:o})});Lse.displayName="Tab";function Dse(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var $se=["h","minH","height","minHeight"],Nse=It((e,t)=>{const n=Eo("Textarea",e),{className:r,rows:i,...o}=Dn(e),a=WI(o),c=i?Dse(n,$se):n;return Se(pt.textarea,{ref:t,rows:i,...a,className:Bt("chakra-textarea",r),__css:c})});Nse.displayName="Textarea";var Fse={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Am=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},BC=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Bse(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:c=!0,onOpen:u,onClose:d,placement:p,id:I,isOpen:P,defaultIsOpen:F,arrowSize:B=10,arrowShadowColor:N,arrowPadding:D,modifiers:T,isDisabled:M,gutter:O,offset:L,direction:x,...b}=e,{isOpen:C,onOpen:g,onClose:w}=lk({isOpen:P,defaultIsOpen:F,onOpen:u,onClose:d}),{referenceRef:f,getPopperProps:m,getArrowInnerProps:E,getArrowProps:S}=sk({enabled:C,placement:p,arrowPadding:D,modifiers:T,gutter:O,offset:L,direction:x}),y=de.exports.useId(),$=`tooltip-${I!=null?I:y}`,z=de.exports.useRef(null),H=de.exports.useRef(),X=de.exports.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),Q=de.exports.useRef(),re=de.exports.useCallback(()=>{Q.current&&(clearTimeout(Q.current),Q.current=void 0)},[]),ue=de.exports.useCallback(()=>{re(),w()},[w,re]),le=Wse(z,ue),ve=de.exports.useCallback(()=>{if(!M&&!H.current){le();const Ce=BC(z);H.current=Ce.setTimeout(g,t)}},[le,M,g,t]),V=de.exports.useCallback(()=>{X();const Ce=BC(z);Q.current=Ce.setTimeout(ue,n)},[n,ue,X]),Z=de.exports.useCallback(()=>{C&&r&&V()},[r,V,C]),ce=de.exports.useCallback(()=>{C&&a&&V()},[a,V,C]),Y=de.exports.useCallback(Ce=>{C&&Ce.key==="Escape"&&V()},[C,V]);cl(()=>Am(z),"keydown",c?Y:void 0),cl(()=>Am(z),"scroll",()=>{C&&o&&ue()}),de.exports.useEffect(()=>{!M||(X(),C&&w())},[M,C,w,X]),de.exports.useEffect(()=>()=>{X(),re()},[X,re]),cl(()=>z.current,"pointerleave",V);const ie=de.exports.useCallback((Ce={},Pe=null)=>({...Ce,ref:_n(z,Pe,f),onPointerEnter:Wt(Ce.onPointerEnter,be=>{be.pointerType!=="touch"&&ve()}),onClick:Wt(Ce.onClick,Z),onPointerDown:Wt(Ce.onPointerDown,ce),onFocus:Wt(Ce.onFocus,ve),onBlur:Wt(Ce.onBlur,V),"aria-describedby":C?$:void 0}),[ve,V,ce,C,$,Z,f]),he=de.exports.useCallback((Ce={},Pe=null)=>m({...Ce,style:{...Ce.style,[fr.arrowSize.var]:B?`${B}px`:void 0,[fr.arrowShadowColor.var]:N}},Pe),[m,B,N]),fe=de.exports.useCallback((Ce={},Pe=null)=>{const we={...Ce.style,position:"relative",transformOrigin:fr.transformOrigin.varRef};return{ref:Pe,...b,...Ce,id:$,role:"tooltip",style:we}},[b,$]);return{isOpen:C,show:ve,hide:V,getTriggerProps:ie,getTooltipProps:fe,getTooltipPositionerProps:he,getArrowProps:S,getArrowInnerProps:E}}var cx="chakra-ui:close-tooltip";function Wse(e,t){return de.exports.useEffect(()=>{const n=Am(e);return n.addEventListener(cx,t),()=>n.removeEventListener(cx,t)},[t,e]),()=>{const n=Am(e),r=BC(e);n.dispatchEvent(new r.CustomEvent(cx))}}function Hse(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Vse(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var zse=pt(aa.div),jse=It((e,t)=>{var n,r;const i=Eo("Tooltip",e),o=Dn(e),a=Fs(),{children:c,label:u,shouldWrapChildren:d,"aria-label":p,hasArrow:I,bg:P,portalProps:F,background:B,backgroundColor:N,bgColor:D,motionProps:T,...M}=o,O=(r=(n=B!=null?B:N)!=null?n:P)!=null?r:D;if(O){i.bg=O;const m=_4(a,"colors",O);i[fr.arrowBg.var]=m}const L=Bse({...M,direction:a.direction}),x=typeof c=="string"||d;let b;if(x)b=Se(pt.span,{display:"inline-block",tabIndex:0,...L.getTriggerProps(),children:c});else{const m=de.exports.Children.only(c);b=de.exports.cloneElement(m,L.getTriggerProps(m.props,m.ref))}const C=!!p,g=L.getTooltipProps({},t),w=C?Hse(g,["role","id"]):g,f=Vse(g,["role","id"]);return u?At(Ao,{children:[b,Se(Ml,{children:L.isOpen&&Se(gu,{...F,children:Se(pt.div,{...L.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:At(zse,{variants:Fse,initial:"exit",animate:"enter",exit:"exit",...T,...w,__css:i,children:[u,C&&Se(pt.span,{srOnly:!0,...f,children:p}),I&&Se(pt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:Se(pt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):Se(Ao,{children:c})});jse.displayName="Tooltip";var TB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tn,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",c="minute",u="hour",d="day",p="week",I="month",P="quarter",F="year",B="date",N="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var y=["th","st","nd","rd"],_=S%100;return"["+S+(y[(_-20)%10]||y[_]||y[0])+"]"}},O=function(S,y,_){var $=String(S);return!$||$.length>=y?S:""+Array(y+1-$.length).join(_)+S},L={s:O,z:function(S){var y=-S.utcOffset(),_=Math.abs(y),$=Math.floor(_/60),z=_%60;return(y<=0?"+":"-")+O($,2,"0")+":"+O(z,2,"0")},m:function S(y,_){if(y.date()<_.date())return-S(_,y);var $=12*(_.year()-y.year())+(_.month()-y.month()),z=y.clone().add($,I),H=_-z<0,X=y.clone().add($+(H?-1:1),I);return+(-($+(_-z)/(H?z-X:X-z))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:I,y:F,w:p,d,D:B,h:u,m:c,s:a,ms:o,Q:P}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},x="en",b={};b[x]=M;var C=function(S){return S instanceof m},g=function S(y,_,$){var z;if(!y)return x;if(typeof y=="string"){var H=y.toLowerCase();b[H]&&(z=H),_&&(b[H]=_,z=H);var X=y.split("-");if(!z&&X.length>1)return S(X[0])}else{var Q=y.name;b[Q]=y,z=Q}return!$&&z&&(x=z),z||!$&&x},w=function(S,y){if(C(S))return S.clone();var _=typeof y=="object"?y:{};return _.date=S,_.args=arguments,new m(_)},f=L;f.l=g,f.i=C,f.w=function(S,y){return w(S,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var m=function(){function S(_){this.$L=g(_.locale,null,!0),this.parse(_)}var y=S.prototype;return y.parse=function(_){this.$d=function($){var z=$.date,H=$.utc;if(z===null)return new Date(NaN);if(f.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var X=z.match(D);if(X){var Q=X[2]-1||0,re=(X[7]||"0").substring(0,3);return H?new Date(Date.UTC(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,re)):new Date(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,re)}}return new Date(z)}(_),this.$x=_.x||{},this.init()},y.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},y.$utils=function(){return f},y.isValid=function(){return this.$d.toString()!==N},y.isSame=function(_,$){var z=w(_);return this.startOf($)<=z&&z<=this.endOf($)},y.isAfter=function(_,$){return w(_)0,b<=x.r||!x.r){b<=1&&L>0&&(x=M[L-1]);var C=T[x.l];F&&(b=F(""+b)),N=typeof C=="string"?C.replace("%d",b):C(b,p,x.l,D);break}}if(p)return N;var g=D?T.future:T.past;return typeof g=="function"?g(N):g.replace("%s",N)},o.to=function(d,p){return c(d,p,this,!0)},o.from=function(d,p){return c(d,p,this)};var u=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(u(this),d)},o.fromNow=function(d){return this.from(u(this),d)}}})})(OB);const _ke=OB.exports;var MB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,o,a){var c,u=function(P,F,B){B===void 0&&(B={});var N=new Date(P),D=function(T,M){M===void 0&&(M={});var O=M.timeZoneName||"short",L=T+"|"+O,x=r[L];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:O}),r[L]=x),x}(F,B);return D.formatToParts(N)},d=function(P,F){for(var B=u(P,F),N=[],D=0;D=0&&(N[L]=parseInt(O,10))}var x=N[3],b=x===24?0:x,C=N[0]+"-"+N[1]+"-"+N[2]+" "+b+":"+N[4]+":"+N[5]+":000",g=+P;return(a.utc(C).valueOf()-(g-=g%1e3))/6e4},p=o.prototype;p.tz=function(P,F){P===void 0&&(P=c);var B=this.utcOffset(),N=this.toDate(),D=N.toLocaleString("en-US",{timeZone:P}),T=Math.round((N-new Date(D))/1e3/60),M=a(D).$set("millisecond",this.$ms).utcOffset(15*-Math.round(N.getTimezoneOffset()/15)-T,!0);if(F){var O=M.utcOffset();M=M.add(B-O,"minute")}return M.$x.$timezone=P,M},p.offsetName=function(P){var F=this.$x.$timezone||a.tz.guess(),B=u(this.valueOf(),F,{timeZoneName:P}).find(function(N){return N.type.toLowerCase()==="timezonename"});return B&&B.value};var I=p.startOf;p.startOf=function(P,F){if(!this.$x||!this.$x.$timezone)return I.call(this,P,F);var B=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return I.call(B,P,F).tz(this.$x.$timezone,!0)},a.tz=function(P,F,B){var N=B&&F,D=B||F||c,T=d(+a(),D);if(typeof P!="string")return a(P).tz(D);var M=function(b,C,g){var w=b-60*C*1e3,f=d(w,g);if(C===f)return[w,C];var m=d(w-=60*(f-C)*1e3,g);return f===m?[w,f]:[b-60*Math.min(f,m)*1e3,Math.max(f,m)]}(a.utc(P,N).valueOf(),T,D),O=M[0],L=M[1],x=a(O).utcOffset(L);return x.$x.$timezone=D,x},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(P){c=P}}})})(MB);const Eke=MB.exports;var LB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(tn,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,a,c){var u=a.prototype;c.utc=function(N){var D={date:N,utc:!0,args:arguments};return new a(D)},u.utc=function(N){var D=c(this.toDate(),{locale:this.$L,utc:!0});return N?D.add(this.utcOffset(),n):D},u.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var d=u.parse;u.parse=function(N){N.utc&&(this.$u=!0),this.$utils().u(N.$offset)||(this.$offset=N.$offset),d.call(this,N)};var p=u.init;u.init=function(){if(this.$u){var N=this.$d;this.$y=N.getUTCFullYear(),this.$M=N.getUTCMonth(),this.$D=N.getUTCDate(),this.$W=N.getUTCDay(),this.$H=N.getUTCHours(),this.$m=N.getUTCMinutes(),this.$s=N.getUTCSeconds(),this.$ms=N.getUTCMilliseconds()}else p.call(this)};var I=u.utcOffset;u.utcOffset=function(N,D){var T=this.$utils().u;if(T(N))return this.$u?0:T(this.$offset)?I.call(this):this.$offset;if(typeof N=="string"&&(N=function(x){x===void 0&&(x="");var b=x.match(r);if(!b)return null;var C=(""+b[0]).match(i)||["-",0,0],g=C[0],w=60*+C[1]+ +C[2];return w===0?0:g==="+"?w:-w}(N),N===null))return this;var M=Math.abs(N)<=16?60*N:N,O=this;if(D)return O.$offset=M,O.$u=N===0,O;if(N!==0){var L=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(M+L,n)).$offset=M,O.$x.$localOffset=L}else O=this.utc();return O};var P=u.format;u.format=function(N){var D=N||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return P.call(this,D)},u.valueOf=function(){var N=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*N},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var F=u.toDate;u.toDate=function(N){return N==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():F.call(this)};var B=u.diff;u.diff=function(N,D,T){if(N&&this.$u===N.$u)return B.call(this,N,D,T);var M=this.local(),O=c(N).local();return B.call(M,O,D,T)}}})})(LB);const Tke=LB.exports;/** * @remix-run/router v1.3.2 * * Copyright (c) Remix Software Inc. @@ -395,14 +395,14 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yse(){return Math.random().toString(36).substr(2,8)}function oP(e,t){return{usr:e.state,key:e.key,idx:t}}function Ch(e,t,n,r){return n===void 0&&(n=null),xn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ha(t):t,{state:n,key:t&&t.key||r||Yse()})}function $a(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 Ha(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 Zse(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,c=dr.Pop,u=null,d=p();d==null&&(d=0,a.replaceState(xn({},a.state,{idx:d}),""));function p(){return(a.state||{idx:null}).idx}function I(){c=dr.Pop;let D=p(),T=D==null?null:D-d;d=D,u&&u({action:c,location:N.location,delta:T})}function P(D,T){c=dr.Push;let M=Ch(N.location,D,T);n&&n(M,D),d=p()+1;let O=oP(M,d),L=N.createHref(M);try{a.pushState(O,"",L)}catch{i.location.assign(L)}o&&u&&u({action:c,location:N.location,delta:1})}function F(D,T){c=dr.Replace;let M=Ch(N.location,D,T);n&&n(M,D),d=p();let O=oP(M,d),L=N.createHref(M);a.replaceState(O,"",L),o&&u&&u({action:c,location:N.location,delta:0})}function B(D){let T=i.location.origin!=="null"?i.location.origin:i.location.href,M=typeof D=="string"?D:$a(D);return en(T,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,T)}let N={get action(){return c},get location(){return e(i,a)},listen(D){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(iP,I),u=D,()=>{i.removeEventListener(iP,I),u=null}},createHref(D){return t(i,D)},createURL:B,encodeLocation(D){let T=B(D);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:P,replace:F,go(D){return a.go(D)}};return N}var Br;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Br||(Br={}));function Xse(e){return e.index===!0}function DB(e,t,n){return t===void 0&&(t=[]),n===void 0&&(n=new Set),e.map((r,i)=>{let o=[...t,i],a=typeof r.id=="string"?r.id:o.join("-");return en(r.index!==!0||!r.children,"Cannot specify children on an index route"),en(!n.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),n.add(a),Xse(r)?xn({},r,{id:a}):xn({},r,{id:a,children:r.children?DB(r.children,o,n):void 0})})}function ld(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ha(t):t,i=FB(r.pathname||"/",n);if(i==null)return null;let o=$B(e);Use(o);let a=null;for(let c=0;a==null&&c{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};u.relativePath.startsWith("/")&&(en(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=ka([r,u.relativePath]),p=n.concat(u);o.children&&o.children.length>0&&(en(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),$B(o.children,t,p,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:nle(d,o.index),routesMeta:p})};return e.forEach((o,a)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,a);else for(let u of NB(o.path))i(o,a,u)}),t}function NB(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=NB(r.join("/")),c=[];return c.push(...a.map(u=>u===""?o:[o,u].join("/"))),i&&c.push(...a),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function Use(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rle(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kse=/^:\w+$/,Jse=3,Qse=2,qse=1,ele=10,tle=-2,aP=e=>e==="*";function nle(e,t){let n=e.split("/"),r=n.length;return n.some(aP)&&(r+=tle),t&&(r+=Qse),n.filter(i=>!aP(i)).reduce((i,o)=>i+(Kse.test(o)?Jse:o===""?qse:ele),r)}function rle(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 ile(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(p==="*"){let P=c[I]||"";a=o.slice(0,o.length-P.length).replace(/(.)\/+$/,"$1")}return d[p]=lle(c[I]||"",p),d},{}),pathname:o,pathnameBase:a,pattern:e}}function ale(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sh(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,c)=>(r.push(c),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function sle(e){try{return decodeURI(e)}catch(t){return Sh(!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 lle(e,t){try{return decodeURIComponent(e)}catch(n){return Sh(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function FB(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 Sh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cle(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ha(e):e;return{pathname:n?n.startsWith("/")?n:ule(n,t):t,search:hle(r),hash:fle(i)}}function ule(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 ux(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 ub(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ha(e):(i=xn({},e),en(!i.pathname||!i.pathname.includes("?"),ux("?","pathname","search",i)),en(!i.pathname||!i.pathname.includes("#"),ux("#","pathname","hash",i)),en(!i.search||!i.search.includes("#"),ux("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,c;if(r||a==null)c=n;else{let I=t.length-1;if(a.startsWith("..")){let P=a.split("/");for(;P[0]==="..";)P.shift(),I-=1;i.pathname=P.join("/")}c=I>=0?t[I]:"/"}let u=cle(i,c),d=a&&a!=="/"&&a.endsWith("/"),p=(o||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}const ka=e=>e.join("/").replace(/\/\/+/g,"/"),dle=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hle=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fle=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class sP extends Error{}class ple{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],en(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,a)=>r=a),this.controller=new AbortController;let i=()=>r(new sP("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((o,a)=>{let[c,u]=a;return Object.assign(o,{[c]:this.trackPromise(c,u)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,t,null,i),i=>this.onSettle(r,t,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,i){return this.controller.signal.aborted&&r instanceof sP?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r)):(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,n),i))}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(o=>{t.removeEventListener("abort",r),(o||this.done)&&i(o)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return en(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,i]=n;return Object.assign(t,{[r]:mle(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function gle(e){return e instanceof Promise&&e._tracked===!0}function mle(e){if(!gle(e))return e;if(e._error)throw e._error;return e._data}class hk{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function BB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const WB=["post","put","patch","delete"],vle=new Set(WB),yle=["get",...WB],ble=new Set(yle),xle=new Set([301,302,303,307,308]),wle=new Set([307,308]),dx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Cle={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},lP={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sle=!VB;function Ale(e){en(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=DB(e.routes),n=null,r=new Set,i=null,o=null,a=null,c=e.hydrationData!=null,u=ld(t,e.history.location,e.basename),d=null;if(u==null){let Te=Qa(404,{pathname:e.history.location.pathname}),{matches:Ne,route:Ge}=pP(t);u=Ne,d={[Ge.id]:Te}}let p=!u.some(Te=>Te.route.loader)||e.hydrationData!=null,I,P={historyAction:e.history.action,location:e.history.location,matches:u,initialized:p,navigation:dx,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},F=dr.Pop,B=!1,N,D=!1,T=!1,M=[],O=[],L=new Map,x=0,b=-1,C=new Map,g=new Set,w=new Map,f=new Map,m=new Map,E=!1;function S(){return n=e.history.listen(Te=>{let{action:Ne,location:Ge,delta:nt}=Te;if(E){E=!1;return}Sh(m.size===0||nt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let He=U({currentLocation:P.location,nextLocation:Ge,historyAction:Ne});if(He&&nt!=null){E=!0,e.history.go(nt*-1),ge(He,{state:"blocked",location:Ge,proceed(){ge(He,{state:"proceeding",proceed:void 0,reset:void 0,location:Ge}),e.history.go(nt)},reset(){se(He),$({blockers:new Map(I.state.blockers)})}});return}return Q(Ne,Ge)}),P.initialized||Q(dr.Pop,P.location),I}function y(){n&&n(),r.clear(),N&&N.abort(),P.fetchers.forEach((Te,Ne)=>fe(Ne)),P.blockers.forEach((Te,Ne)=>se(Ne))}function _(Te){return r.add(Te),()=>r.delete(Te)}function $(Te){P=xn({},P,Te),r.forEach(Ne=>Ne(P))}function z(Te,Ne){var Ge,nt;let He=P.actionData!=null&&P.navigation.formMethod!=null&&pa(P.navigation.formMethod)&&P.navigation.state==="loading"&&((Ge=Te.state)==null?void 0:Ge._isRedirect)!==!0,et;Ne.actionData?Object.keys(Ne.actionData).length>0?et=Ne.actionData:et=null:He?et=P.actionData:et=null;let ot=Ne.loaderData?fP(P.loaderData,Ne.loaderData,Ne.matches||[],Ne.errors):P.loaderData;for(let[Qe]of m)se(Qe);let lt=B===!0||P.navigation.formMethod!=null&&pa(P.navigation.formMethod)&&((nt=Te.state)==null?void 0:nt._isRedirect)!==!0;$(xn({},Ne,{actionData:et,loaderData:ot,historyAction:F,location:Te,initialized:!0,navigation:dx,revalidation:"idle",restoreScrollPosition:ke(Te,Ne.matches||P.matches),preventScrollReset:lt,blockers:new Map(P.blockers)})),D||F===dr.Pop||(F===dr.Push?e.history.push(Te,Te.state):F===dr.Replace&&e.history.replace(Te,Te.state)),F=dr.Pop,B=!1,D=!1,T=!1,M=[],O=[]}async function H(Te,Ne){if(typeof Te=="number"){e.history.go(Te);return}let{path:Ge,submission:nt,error:He}=cP(Te,Ne),et=P.location,ot=Ch(P.location,Ge,Ne&&Ne.state);ot=xn({},ot,e.history.encodeLocation(ot));let lt=Ne&&Ne.replace!=null?Ne.replace:void 0,Qe=dr.Push;lt===!0?Qe=dr.Replace:lt===!1||nt!=null&&pa(nt.formMethod)&&nt.formAction===P.location.pathname+P.location.search&&(Qe=dr.Replace);let ht=Ne&&"preventScrollReset"in Ne?Ne.preventScrollReset===!0:void 0,dt=U({currentLocation:et,nextLocation:ot,historyAction:Qe});if(dt){ge(dt,{state:"blocked",location:ot,proceed(){ge(dt,{state:"proceeding",proceed:void 0,reset:void 0,location:ot}),H(Te,Ne)},reset(){se(dt),$({blockers:new Map(P.blockers)})}});return}return await Q(Qe,ot,{submission:nt,pendingError:He,preventScrollReset:ht,replace:Ne&&Ne.replace})}function X(){if(ie(),$({revalidation:"loading"}),P.navigation.state!=="submitting"){if(P.navigation.state==="idle"){Q(P.historyAction,P.location,{startUninterruptedRevalidation:!0});return}Q(F||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation})}}async function Q(Te,Ne,Ge){N&&N.abort(),N=null,F=Te,D=(Ge&&Ge.startUninterruptedRevalidation)===!0,xe(P.location,P.matches),B=(Ge&&Ge.preventScrollReset)===!0;let nt=Ge&&Ge.overrideNavigation,He=ld(t,Ne,e.basename);if(!He){let Ve=Qa(404,{pathname:Ne.pathname}),{matches:ct,route:mt}=pP(t);q(),z(Ne,{matches:ct,loaderData:{},errors:{[mt.id]:Ve}});return}if(Tle(P.location,Ne)&&!(Ge&&Ge.submission&&pa(Ge.submission.formMethod))){z(Ne,{matches:He});return}N=new AbortController;let et=ju(e.history,Ne,N.signal,Ge&&Ge.submission),ot,lt;if(Ge&&Ge.pendingError)lt={[mc(He).route.id]:Ge.pendingError};else if(Ge&&Ge.submission&&pa(Ge.submission.formMethod)){let Ve=await re(et,Ne,Ge.submission,He,{replace:Ge.replace});if(Ve.shortCircuited)return;ot=Ve.pendingActionData,lt=Ve.pendingActionError,nt=xn({state:"loading",location:Ne},Ge.submission),et=new Request(et.url,{signal:et.signal})}let{shortCircuited:Qe,loaderData:ht,errors:dt}=await ue(et,Ne,He,nt,Ge&&Ge.submission,Ge&&Ge.replace,ot,lt);Qe||(N=null,z(Ne,xn({matches:He},ot?{actionData:ot}:{},{loaderData:ht,errors:dt})))}async function re(Te,Ne,Ge,nt,He){ie();let et=xn({state:"submitting",location:Ne},Ge);$({navigation:et});let ot,lt=yP(nt,Ne);if(!lt.route.action)ot={type:Br.error,error:Qa(405,{method:Te.method,pathname:Ne.pathname,routeId:lt.route.id})};else if(ot=await zu("action",Te,lt,nt,I.basename),Te.signal.aborted)return{shortCircuited:!0};if(Nc(ot)){let Qe;return He&&He.replace!=null?Qe=He.replace:Qe=ot.location===P.location.pathname+P.location.search,await ce(P,ot,{submission:Ge,replace:Qe}),{shortCircuited:!0}}if(Nd(ot)){let Qe=mc(nt,lt.route.id);return(He&&He.replace)!==!0&&(F=dr.Push),{pendingActionData:{},pendingActionError:{[Qe.route.id]:ot.error}}}if(el(ot))throw Qa(400,{type:"defer-action"});return{pendingActionData:{[lt.route.id]:ot.data}}}async function ue(Te,Ne,Ge,nt,He,et,ot,lt){let Qe=nt;Qe||(Qe=xn({state:"loading",location:Ne,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},He));let ht=He||(Qe.formMethod&&Qe.formAction&&Qe.formData&&Qe.formEncType?{formMethod:Qe.formMethod,formAction:Qe.formAction,formData:Qe.formData,formEncType:Qe.formEncType}:void 0),[dt,Ve]=uP(e.history,P,Ge,ht,Ne,T,M,O,ot,lt,w);if(q(_t=>!(Ge&&Ge.some($t=>$t.route.id===_t))||dt&&dt.some($t=>$t.route.id===_t)),dt.length===0&&Ve.length===0)return z(Ne,xn({matches:Ge,loaderData:{},errors:lt||null},ot?{actionData:ot}:{})),{shortCircuited:!0};if(!D){Ve.forEach($t=>{let De=P.fetchers.get($t.key),Ze={state:"loading",data:De&&De.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set($t.key,Ze)});let _t=ot||P.actionData;$(xn({navigation:Qe},_t?Object.keys(_t).length===0?{actionData:null}:{actionData:_t}:{},Ve.length>0?{fetchers:new Map(P.fetchers)}:{}))}b=++x,Ve.forEach(_t=>L.set(_t.key,N));let{results:ct,loaderResults:mt,fetcherResults:yt}=await Y(P.matches,Ge,dt,Ve,Te);if(Te.signal.aborted)return{shortCircuited:!0};Ve.forEach(_t=>L.delete(_t.key));let $e=gP(ct);if($e)return await ce(P,$e,{replace:et}),{shortCircuited:!0};let{loaderData:Be,errors:tt}=hP(P,Ge,dt,mt,lt,Ve,yt,f);f.forEach((_t,$t)=>{_t.subscribe(De=>{(De||_t.done)&&f.delete($t)})}),we();let xt=be(b);return xn({loaderData:Be,errors:tt},xt||Ve.length>0?{fetchers:new Map(P.fetchers)}:{})}function le(Te){return P.fetchers.get(Te)||Cle}function ve(Te,Ne,Ge,nt){if(Sle)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(Te)&&Ce(Te);let He=ld(t,Ge,e.basename);if(!He){he(Te,Ne,Qa(404,{pathname:Ge}));return}let{path:et,submission:ot}=cP(Ge,nt,!0),lt=yP(He,et);if(B=(nt&&nt.preventScrollReset)===!0,ot&&pa(ot.formMethod)){V(Te,Ne,et,lt,He,ot);return}w.set(Te,{routeId:Ne,path:et,match:lt,matches:He}),Z(Te,Ne,et,lt,He,ot)}async function V(Te,Ne,Ge,nt,He,et){if(ie(),w.delete(Te),!nt.route.action){let wt=Qa(405,{method:et.formMethod,pathname:Ge,routeId:Ne});he(Te,Ne,wt);return}let ot=P.fetchers.get(Te),lt=xn({state:"submitting"},et,{data:ot&&ot.data," _hasFetcherDoneAnything ":!0});P.fetchers.set(Te,lt),$({fetchers:new Map(P.fetchers)});let Qe=new AbortController,ht=ju(e.history,Ge,Qe.signal,et);L.set(Te,Qe);let dt=await zu("action",ht,nt,He,I.basename);if(ht.signal.aborted){L.get(Te)===Qe&&L.delete(Te);return}if(Nc(dt)){L.delete(Te),g.add(Te);let wt=xn({state:"loading"},et,{data:void 0," _hasFetcherDoneAnything ":!0});return P.fetchers.set(Te,wt),$({fetchers:new Map(P.fetchers)}),ce(P,dt,{isFetchActionRedirect:!0})}if(Nd(dt)){he(Te,Ne,dt.error);return}if(el(dt))throw Qa(400,{type:"defer-action"});let Ve=P.navigation.location||P.location,ct=ju(e.history,Ve,Qe.signal),mt=P.navigation.state!=="idle"?ld(t,P.navigation.location,e.basename):P.matches;en(mt,"Didn't find any matches after fetcher action");let yt=++x;C.set(Te,yt);let $e=xn({state:"loading",data:dt.data},et,{" _hasFetcherDoneAnything ":!0});P.fetchers.set(Te,$e);let[Be,tt]=uP(e.history,P,mt,et,Ve,T,M,O,{[nt.route.id]:dt.data},void 0,w);tt.filter(wt=>wt.key!==Te).forEach(wt=>{let Ht=wt.key,rn=P.fetchers.get(Ht),Pn={state:"loading",data:rn&&rn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Ht,Pn),L.set(Ht,Qe)}),$({fetchers:new Map(P.fetchers)});let{results:xt,loaderResults:_t,fetcherResults:$t}=await Y(P.matches,mt,Be,tt,ct);if(Qe.signal.aborted)return;C.delete(Te),L.delete(Te),tt.forEach(wt=>L.delete(wt.key));let De=gP(xt);if(De)return ce(P,De);let{loaderData:Ze,errors:qe}=hP(P,P.matches,Be,_t,void 0,tt,$t,f),gt={state:"idle",data:dt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Te,gt);let Pt=be(yt);P.navigation.state==="loading"&&yt>b?(en(F,"Expected pending action"),N&&N.abort(),z(P.navigation.location,{matches:mt,loaderData:Ze,errors:qe,fetchers:new Map(P.fetchers)})):($(xn({errors:qe,loaderData:fP(P.loaderData,Ze,mt,qe)},Pt?{fetchers:new Map(P.fetchers)}:{})),T=!1)}async function Z(Te,Ne,Ge,nt,He,et){let ot=P.fetchers.get(Te),lt=xn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},et,{data:ot&&ot.data," _hasFetcherDoneAnything ":!0});P.fetchers.set(Te,lt),$({fetchers:new Map(P.fetchers)});let Qe=new AbortController,ht=ju(e.history,Ge,Qe.signal);L.set(Te,Qe);let dt=await zu("loader",ht,nt,He,I.basename);if(el(dt)&&(dt=await YB(dt,ht.signal,!0)||dt),L.get(Te)===Qe&&L.delete(Te),ht.signal.aborted)return;if(Nc(dt)){await ce(P,dt);return}if(Nd(dt)){let ct=mc(P.matches,Ne);P.fetchers.delete(Te),$({fetchers:new Map(P.fetchers),errors:{[ct.route.id]:dt.error}});return}en(!el(dt),"Unhandled fetcher deferred data");let Ve={state:"idle",data:dt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Te,Ve),$({fetchers:new Map(P.fetchers)})}async function ce(Te,Ne,Ge){var nt;let{submission:He,replace:et,isFetchActionRedirect:ot}=Ge===void 0?{}:Ge;Ne.revalidate&&(T=!0);let lt=Ch(Te.location,Ne.location,xn({_isRedirect:!0},ot?{_isFetchActionRedirect:!0}:{}));if(en(lt,"Expected a location on the redirect navigation"),HB.test(Ne.location)&&VB&&typeof((nt=window)==null?void 0:nt.location)<"u"){let mt=e.history.createURL(Ne.location).origin;if(window.location.origin!==mt){et?window.location.replace(Ne.location):window.location.assign(Ne.location);return}}N=null;let Qe=et===!0?dr.Replace:dr.Push,{formMethod:ht,formAction:dt,formEncType:Ve,formData:ct}=Te.navigation;!He&&ht&&dt&&ct&&Ve&&(He={formMethod:ht,formAction:dt,formEncType:Ve,formData:ct}),wle.has(Ne.status)&&He&&pa(He.formMethod)?await Q(Qe,lt,{submission:xn({},He,{formAction:Ne.location}),preventScrollReset:B}):await Q(Qe,lt,{overrideNavigation:{state:"loading",location:lt,formMethod:He?He.formMethod:void 0,formAction:He?He.formAction:void 0,formEncType:He?He.formEncType:void 0,formData:He?He.formData:void 0},preventScrollReset:B})}async function Y(Te,Ne,Ge,nt,He){let et=await Promise.all([...Ge.map(Qe=>zu("loader",He,Qe,Ne,I.basename)),...nt.map(Qe=>zu("loader",ju(e.history,Qe.path,He.signal),Qe.match,Qe.matches,I.basename))]),ot=et.slice(0,Ge.length),lt=et.slice(Ge.length);return await Promise.all([mP(Te,Ge,ot,He.signal,!1,P.loaderData),mP(Te,nt.map(Qe=>Qe.match),lt,He.signal,!0)]),{results:et,loaderResults:ot,fetcherResults:lt}}function ie(){T=!0,M.push(...q()),w.forEach((Te,Ne)=>{L.has(Ne)&&(O.push(Ne),Ce(Ne))})}function he(Te,Ne,Ge){let nt=mc(P.matches,Ne);fe(Te),$({errors:{[nt.route.id]:Ge},fetchers:new Map(P.fetchers)})}function fe(Te){L.has(Te)&&Ce(Te),w.delete(Te),C.delete(Te),g.delete(Te),P.fetchers.delete(Te)}function Ce(Te){let Ne=L.get(Te);en(Ne,"Expected fetch controller: "+Te),Ne.abort(),L.delete(Te)}function Pe(Te){for(let Ne of Te){let nt={state:"idle",data:le(Ne).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Ne,nt)}}function we(){let Te=[];for(let Ne of g){let Ge=P.fetchers.get(Ne);en(Ge,"Expected fetcher: "+Ne),Ge.state==="loading"&&(g.delete(Ne),Te.push(Ne))}Pe(Te)}function be(Te){let Ne=[];for(let[Ge,nt]of C)if(nt0}function ee(Te,Ne){let Ge=P.blockers.get(Te)||lP;return m.get(Te)!==Ne&&m.set(Te,Ne),Ge}function se(Te){P.blockers.delete(Te),m.delete(Te)}function ge(Te,Ne){let Ge=P.blockers.get(Te)||lP;en(Ge.state==="unblocked"&&Ne.state==="blocked"||Ge.state==="blocked"&&Ne.state==="blocked"||Ge.state==="blocked"&&Ne.state==="proceeding"||Ge.state==="blocked"&&Ne.state==="unblocked"||Ge.state==="proceeding"&&Ne.state==="unblocked","Invalid blocker state transition: "+Ge.state+" -> "+Ne.state),P.blockers.set(Te,Ne),$({blockers:new Map(P.blockers)})}function U(Te){let{currentLocation:Ne,nextLocation:Ge,historyAction:nt}=Te;if(m.size===0)return;m.size>1&&Sh(!1,"A router only supports one blocker at a time");let He=Array.from(m.entries()),[et,ot]=He[He.length-1],lt=P.blockers.get(et);if(!(lt&<.state==="proceeding")&&ot({currentLocation:Ne,nextLocation:Ge,historyAction:nt}))return et}function q(Te){let Ne=[];return f.forEach((Ge,nt)=>{(!Te||Te(nt))&&(Ge.cancel(),Ne.push(nt),f.delete(nt))}),Ne}function oe(Te,Ne,Ge){if(i=Te,a=Ne,o=Ge||(nt=>nt.key),!c&&P.navigation===dx){c=!0;let nt=ke(P.location,P.matches);nt!=null&&$({restoreScrollPosition:nt})}return()=>{i=null,a=null,o=null}}function xe(Te,Ne){if(i&&o&&a){let Ge=Ne.map(He=>vP(He,P.loaderData)),nt=o(Te,Ge)||Te.key;i[nt]=a()}}function ke(Te,Ne){if(i&&o&&a){let Ge=Ne.map(et=>vP(et,P.loaderData)),nt=o(Te,Ge)||Te.key,He=i[nt];if(typeof He=="number")return He}return null}return I={get basename(){return e.basename},get state(){return P},get routes(){return t},initialize:S,subscribe:_,enableScrollRestoration:oe,navigate:H,fetch:ve,revalidate:X,createHref:Te=>e.history.createHref(Te),encodeLocation:Te=>e.history.encodeLocation(Te),getFetcher:le,deleteFetcher:fe,dispose:y,getBlocker:ee,deleteBlocker:se,_internalFetchControllers:L,_internalActiveDeferreds:f},I}function Ile(e){return e!=null&&"formData"in e}function cP(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:$a(e);if(!t||!Ile(t))return{path:r};if(t.formMethod&&!Rle(t.formMethod))return{path:r,error:Qa(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:GB(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},pa(i.formMethod)))return{path:r,submission:i};let o=Ha(r),a=jB(t.formData);return n&&o.search&&ZB(o.search)&&a.append("index",""),o.search="?"+a,{path:$a(o),submission:i}}function kle(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function uP(e,t,n,r,i,o,a,c,u,d,p){let I=d?Object.values(d)[0]:u?Object.values(u)[0]:void 0,P=e.createURL(t.location),F=e.createURL(i),B=o||P.toString()===F.toString()||P.search!==F.search,N=d?Object.keys(d)[0]:void 0,T=kle(n,N).filter((O,L)=>{if(O.route.loader==null)return!1;if(_le(t.loaderData,t.matches[L],O)||a.some(C=>C===O.route.id))return!0;let x=t.matches[L],b=O;return dP(O,xn({currentUrl:P,currentParams:x.params,nextUrl:F,nextParams:b.params},r,{actionResult:I,defaultShouldRevalidate:B||zB(x,b)}))}),M=[];return p&&p.forEach((O,L)=>{if(n.some(x=>x.route.id===O.routeId))c.includes(L)?M.push(xn({key:L},O)):dP(O.match,xn({currentUrl:P,currentParams:t.matches[t.matches.length-1].params,nextUrl:F,nextParams:n[n.length-1].params},r,{actionResult:I,defaultShouldRevalidate:B}))&&M.push(xn({key:L},O));else return}),[T,M]}function _le(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function zB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function dP(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function zu(e,t,n,r,i,o,a,c){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let u,d,p,I=new Promise((F,B)=>p=B),P=()=>p();t.signal.addEventListener("abort",P);try{let F=n.route[e];en(F,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),d=await Promise.race([F({request:t,params:n.params,context:c}),I]),en(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(F){u=Br.error,d=F}finally{t.signal.removeEventListener("abort",P)}if(Ple(d)){let F=d.status;if(xle.has(F)){let D=d.headers.get("Location");if(en(D,"Redirects returned/thrown from loaders/actions must have a Location header"),HB.test(D)){if(!o){let T=new URL(t.url),M=D.startsWith("//")?new URL(T.protocol+D):new URL(D);M.origin===T.origin&&(D=M.pathname+M.search+M.hash)}}else{let T=r.slice(0,r.indexOf(n)+1),M=ub(T).map(L=>L.pathnameBase),O=dk(D,M,new URL(t.url).pathname);if(en($a(O),"Unable to resolve redirect location: "+D),i){let L=O.pathname;O.pathname=L==="/"?i:ka([i,L])}D=$a(O)}if(o)throw d.headers.set("Location",D),d;return{type:Br.redirect,status:F,location:D,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:u||Br.data,response:d};let B,N=d.headers.get("Content-Type");return N&&/\bapplication\/json\b/.test(N)?B=await d.json():B=await d.text(),u===Br.error?{type:u,error:new hk(F,d.statusText,B),headers:d.headers}:{type:Br.data,data:B,statusCode:d.status,headers:d.headers}}return u===Br.error?{type:u,error:d}:d instanceof ple?{type:Br.deferred,deferredData:d}:{type:Br.data,data:d}}function ju(e,t,n,r){let i=e.createURL(GB(t)).toString(),o={signal:n};if(r&&pa(r.formMethod)){let{formMethod:a,formEncType:c,formData:u}=r;o.method=a.toUpperCase(),o.body=c==="application/x-www-form-urlencoded"?jB(u):u}return new Request(i,o)}function jB(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function Ele(e,t,n,r,i){let o={},a=null,c,u=!1,d={};return n.forEach((p,I)=>{let P=t[I].route.id;if(en(!Nc(p),"Cannot handle redirect results in processLoaderData"),Nd(p)){let F=mc(e,P),B=p.error;r&&(B=Object.values(r)[0],r=void 0),a=a||{},a[F.route.id]==null&&(a[F.route.id]=B),o[P]=void 0,u||(u=!0,c=BB(p.error)?p.error.status:500),p.headers&&(d[P]=p.headers)}else el(p)?(i.set(P,p.deferredData),o[P]=p.deferredData.data):o[P]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(c=p.statusCode),p.headers&&(d[P]=p.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:c||200,loaderHeaders:d}}function hP(e,t,n,r,i,o,a,c){let{loaderData:u,errors:d}=Ele(t,n,r,i,c);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function pP(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Qa(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?c="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"&&(c="defer() is not supported in actions")):e===403?(a="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",c='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?c="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(c='Invalid request method "'+i.toUpperCase()+'"')),new hk(e||500,a,new Error(c),!0)}function gP(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Nc(n))return n}}function GB(e){let t=typeof e=="string"?Ha(e):e;return $a(xn({},t,{hash:""}))}function Tle(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function el(e){return e.type===Br.deferred}function Nd(e){return e.type===Br.error}function Nc(e){return(e&&e.type)===Br.redirect}function Ple(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Rle(e){return ble.has(e)}function pa(e){return vle.has(e)}async function mP(e,t,n,r,i,o){for(let a=0;aI.route.id===u.route.id),p=d!=null&&!zB(d,u)&&(o&&o[u.route.id])!==void 0;el(c)&&(i||p)&&await YB(c,r,i).then(I=>{I&&(n[a]=I||n[a])})}}async function YB(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Br.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Br.error,error:i}}return{type:Br.data,data:e.deferredData.data}}}function ZB(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vP(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function yP(e,t){let n=typeof t=="string"?Ha(t).search:t.search;if(e[e.length-1].route.index&&ZB(n||""))return e[e.length-1];let r=ub(e);return r[r.length-1]}var Ole={lessThanXSeconds:{one:"\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647",other:"\u06A9\u0645\u062A\u0631 \u0627\u0632 {{count}} \u062B\u0627\u0646\u06CC\u0647"},xSeconds:{one:"1 \u062B\u0627\u0646\u06CC\u0647",other:"{{count}} \u062B\u0627\u0646\u06CC\u0647"},halfAMinute:"\u0646\u06CC\u0645 \u062F\u0642\u06CC\u0642\u0647",lessThanXMinutes:{one:"\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647",other:"\u06A9\u0645\u062A\u0631 \u0627\u0632 {{count}} \u062F\u0642\u06CC\u0642\u0647"},xMinutes:{one:"1 \u062F\u0642\u06CC\u0642\u0647",other:"{{count}} \u062F\u0642\u06CC\u0642\u0647"},aboutXHours:{one:"\u062D\u062F\u0648\u062F 1 \u0633\u0627\u0639\u062A",other:"\u062D\u062F\u0648\u062F {{count}} \u0633\u0627\u0639\u062A"},xHours:{one:"1 \u0633\u0627\u0639\u062A",other:"{{count}} \u0633\u0627\u0639\u062A"},xDays:{one:"1 \u0631\u0648\u0632",other:"{{count}} \u0631\u0648\u0632"},aboutXWeeks:{one:"\u062D\u062F\u0648\u062F 1 \u0647\u0641\u062A\u0647",other:"\u062D\u062F\u0648\u062F {{count}} \u0647\u0641\u062A\u0647"},xWeeks:{one:"1 \u0647\u0641\u062A\u0647",other:"{{count}} \u0647\u0641\u062A\u0647"},aboutXMonths:{one:"\u062D\u062F\u0648\u062F 1 \u0645\u0627\u0647",other:"\u062D\u062F\u0648\u062F {{count}} \u0645\u0627\u0647"},xMonths:{one:"1 \u0645\u0627\u0647",other:"{{count}} \u0645\u0627\u0647"},aboutXYears:{one:"\u062D\u062F\u0648\u062F 1 \u0633\u0627\u0644",other:"\u062D\u062F\u0648\u062F {{count}} \u0633\u0627\u0644"},xYears:{one:"1 \u0633\u0627\u0644",other:"{{count}} \u0633\u0627\u0644"},overXYears:{one:"\u0628\u06CC\u0634\u062A\u0631 \u0627\u0632 1 \u0633\u0627\u0644",other:"\u0628\u06CC\u0634\u062A\u0631 \u0627\u0632 {{count}} \u0633\u0627\u0644"},almostXYears:{one:"\u0646\u0632\u062F\u06CC\u06A9 1 \u0633\u0627\u0644",other:"\u0646\u0632\u062F\u06CC\u06A9 {{count}} \u0633\u0627\u0644"}},Mle=function(t,n,r){var i,o=Ole[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"\u062F\u0631 "+i:i+" \u0642\u0628\u0644":i};const Lle=Mle;function eo(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Dle={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},$le={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nle={full:"{{date}} '\u062F\u0631' {{time}}",long:"{{date}} '\u062F\u0631' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fle={date:eo({formats:Dle,defaultWidth:"full"}),time:eo({formats:$le,defaultWidth:"full"}),dateTime:eo({formats:Nle,defaultWidth:"full"})};const Ble=Fle;var Wle={lastWeek:"eeee '\u06AF\u0630\u0634\u062A\u0647 \u062F\u0631' p",yesterday:"'\u062F\u06CC\u0631\u0648\u0632 \u062F\u0631' p",today:"'\u0627\u0645\u0631\u0648\u0632 \u062F\u0631' p",tomorrow:"'\u0641\u0631\u062F\u0627 \u062F\u0631' p",nextWeek:"eeee '\u062F\u0631' p",other:"P"},Hle=function(t,n,r,i){return Wle[t]};const Vle=Hle;function gr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var c=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[c]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var zle={narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F","\u0628\u0639\u062F \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F"]},jle={narrow:["1","2","3","4"],abbreviated:["\u0633\u200C\u06451","\u0633\u200C\u06452","\u0633\u200C\u06453","\u0633\u200C\u06454"],wide:["\u0633\u0647\u200C\u0645\u0627\u0647\u0647 1","\u0633\u0647\u200C\u0645\u0627\u0647\u0647 2","\u0633\u0647\u200C\u0645\u0627\u0647\u0647 3","\u0633\u0647\u200C\u0645\u0627\u0647\u0647 4"]},Gle={narrow:["\u0698","\u0641","\u0645","\u0622","\u0645","\u062C","\u062C","\u0622","\u0633","\u0627","\u0646","\u062F"],abbreviated:["\u0698\u0627\u0646\u0640","\u0641\u0648\u0631","\u0645\u0627\u0631\u0633","\u0622\u067E\u0631","\u0645\u06CC","\u062C\u0648\u0646","\u062C\u0648\u0644\u0640","\u0622\u06AF\u0648","\u0633\u067E\u062A\u0640","\u0627\u06A9\u062A\u0640","\u0646\u0648\u0627\u0645\u0640","\u062F\u0633\u0627\u0645\u0640"],wide:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u067E\u0631\u06CC\u0644","\u0645\u06CC","\u062C\u0648\u0646","\u062C\u0648\u0644\u0627\u06CC","\u0622\u06AF\u0648\u0633\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"]},Yle={narrow:["\u06CC","\u062F","\u0633","\u0686","\u067E","\u062C","\u0634"],short:["1\u0634","2\u0634","3\u0634","4\u0634","5\u0634","\u062C","\u0634"],abbreviated:["\u06CC\u06A9\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u062C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],wide:["\u06CC\u06A9\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u062C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},Zle={narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},Xle={narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},Ule=function(t,n){return String(t)},Kle={ordinalNumber:Ule,era:gr({values:zle,defaultWidth:"wide"}),quarter:gr({values:jle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gr({values:Gle,defaultWidth:"wide"}),day:gr({values:Yle,defaultWidth:"wide"}),dayPeriod:gr({values:Zle,defaultWidth:"wide",formattingValues:Xle,defaultFormattingWidth:"wide"})};const Jle=Kle;function mr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?qle(c,function(I){return I.test(a)}):Qle(c,function(I){return I.test(a)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var p=t.slice(a.length);return{value:d,rest:p}}}function Qle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qle(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var c=t.slice(i.length);return{value:a,rest:c}}}var ece=/^(\d+)(th|st|nd|rd)?/i,tce=/\d+/i,nce={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},rce={any:[/^قبل/i,/^بعد/i]},ice={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},oce={any:[/1/i,/2/i,/3/i,/4/i]},sce={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},lce={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},cce={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},uce={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},dce={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},hce={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},fce={ordinalNumber:db({matchPattern:ece,parsePattern:tce,valueCallback:function(t){return parseInt(t,10)}}),era:mr({matchPatterns:nce,defaultMatchWidth:"wide",parsePatterns:rce,defaultParseWidth:"any"}),quarter:mr({matchPatterns:ice,defaultMatchWidth:"wide",parsePatterns:oce,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:mr({matchPatterns:sce,defaultMatchWidth:"wide",parsePatterns:lce,defaultParseWidth:"any"}),day:mr({matchPatterns:cce,defaultMatchWidth:"wide",parsePatterns:uce,defaultParseWidth:"any"}),dayPeriod:mr({matchPatterns:dce,defaultMatchWidth:"wide",parsePatterns:hce,defaultParseWidth:"any"})};const pce=fce;var gce={code:"fa-IR",formatDistance:Lle,formatLong:Ble,formatRelative:Vle,localize:Jle,match:pce,options:{weekStartsOn:6,firstWeekContainsDate:1}};const Tke=gce;function Gu(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function qr(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Gu(e.future,t):"\u0447\u0435\u0440\u0435\u0437 "+Gu(e.regular,t):e.past?Gu(e.past,t):Gu(e.regular,t)+" \u043D\u0430\u0437\u0430\u0434":Gu(e.regular,t)}}var mce={lessThanXSeconds:qr({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),xSeconds:qr({regular:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B"},lessThanXMinutes:qr({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u043C\u0438\u043D\u0443\u0442\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u043C\u0438\u043D\u0443\u0442\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),xMinutes:qr({regular:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0430",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442"},past:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),aboutXHours:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043E\u0432"}}),xHours:qr({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043E\u0432"}}),xDays:qr({regular:{singularNominative:"{{count}} \u0434\u0435\u043D\u044C",singularGenitive:"{{count}} \u0434\u043D\u044F",pluralGenitive:"{{count}} \u0434\u043D\u0435\u0439"}}),aboutXWeeks:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044E",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),xWeeks:qr({regular:{singularNominative:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044F",singularGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),aboutXMonths:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),xMonths:qr({regular:{singularNominative:"{{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),aboutXYears:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),xYears:qr({regular:{singularNominative:"{{count}} \u0433\u043E\u0434",singularGenitive:"{{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"{{count}} \u043B\u0435\u0442"}}),overXYears:qr({regular:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),almostXYears:qr({regular:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}})},vce=function(t,n,r){return mce[t](n,r)};const yce=vce;var bce={full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},xce={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},wce={any:"{{date}}, {{time}}"},Cce={date:eo({formats:bce,defaultWidth:"full"}),time:eo({formats:xce,defaultWidth:"full"}),dateTime:eo({formats:wce,defaultWidth:"any"})};const Sce=Cce;function kt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Np(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Np=function(n){return typeof n}:Np=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Np(e)}function Dt(e){kt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Np(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function an(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var Ace={};function $l(){return Ace}function Na(e,t){var n,r,i,o,a,c,u,d;kt(1,arguments);var p=$l(),I=an((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&r!==void 0?r:(u=p.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var P=Dt(e),F=P.getUTCDay(),B=(F0?i+"\u5185":i+"\u524D":i};const rue=nue;var iue={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},oue={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},aue={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sue={date:eo({formats:iue,defaultWidth:"full"}),time:eo({formats:oue,defaultWidth:"full"}),dateTime:eo({formats:aue,defaultWidth:"full"})};const lue=sue;function xP(e,t,n){var r="eeee p";return WC(e,t,n)?r:e.getTime()>t.getTime()?"'\u4E0B\u4E2A'"+r:"'\u4E0A\u4E2A'"+r}var cue={lastWeek:xP,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:xP,other:"PP p"},uue=function(t,n,r,i){var o=cue[t];return typeof o=="function"?o(n,r,i):o};const due=uue;var hue={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},fue={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},pue={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},gue={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},mue={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},vue={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},yue=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r.toString()+"\u65E5";case"hour":return r.toString()+"\u65F6";case"minute":return r.toString()+"\u5206";case"second":return r.toString()+"\u79D2";default:return"\u7B2C "+r.toString()}},bue={ordinalNumber:yue,era:gr({values:hue,defaultWidth:"wide"}),quarter:gr({values:fue,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gr({values:pue,defaultWidth:"wide"}),day:gr({values:gue,defaultWidth:"wide"}),dayPeriod:gr({values:mue,defaultWidth:"wide",formattingValues:vue,defaultFormattingWidth:"wide"})};const xue=bue;var wue=/^(第\s*)?\d+(日|时|分|秒)?/i,Cue=/\d+/i,Sue={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Aue={any:[/^(前)/i,/^(公元)/i]},Iue={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},kue={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},_ue={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Eue={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Tue={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Pue={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Rue={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Oue={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Mue={ordinalNumber:db({matchPattern:wue,parsePattern:Cue,valueCallback:function(t){return parseInt(t,10)}}),era:mr({matchPatterns:Sue,defaultMatchWidth:"wide",parsePatterns:Aue,defaultParseWidth:"any"}),quarter:mr({matchPatterns:Iue,defaultMatchWidth:"wide",parsePatterns:kue,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:mr({matchPatterns:_ue,defaultMatchWidth:"wide",parsePatterns:Eue,defaultParseWidth:"any"}),day:mr({matchPatterns:Tue,defaultMatchWidth:"wide",parsePatterns:Pue,defaultParseWidth:"any"}),dayPeriod:mr({matchPatterns:Rue,defaultMatchWidth:"any",parsePatterns:Oue,defaultParseWidth:"any"})};const Lue=Mue;var Due={code:"zh-CN",formatDistance:rue,formatLong:lue,formatRelative:due,localize:xue,match:Lue,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Rke=Due;function ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wP(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]:{};ao(this,e),this.init(t,n)}return so(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||Fue,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),o=1;o-1?c.replace(/###/g,"."):c}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function kP(e,t,n){var r=pk(e,t,Object),i=r.obj,o=r.k;i[o]=n}function Hue(e,t,n,r){var i=pk(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function Im(e,t){var n=pk(e,t),r=n.obj,i=n.k;if(!!r)return r[i]}function Vue(e,t,n){var r=Im(e,n);return r!==void 0?r:Im(t,n)}function JB(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):JB(e[r],t[r],n):e[r]=t[r]);return e}function Zl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jue(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return zue[t]}):e}var fb=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Gue=[" ",",","?","!",";"];function Yue(e,t,n){t=t||"",n=n||"";var r=Gue.filter(function(c){return t.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function km(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,c=r.slice(o,o+a).join(n),u=i[c];if(u===void 0)return;if(u===null)return null;if(t.endsWith(c)){if(typeof u=="string")return u;if(c&&typeof u[c]=="string")return u[c]}var d=r.slice(o+a).join(n);return d?km(u,d,n):void 0}i=i[r[o]]}return i}}function _P(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 tp(e){for(var t=1;t"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}}var Uue=function(e){hb(n,e);var t=Zue(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ao(this,n),i=t.call(this),fb&&_s.call(Cs(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return so(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,p=[i,o];a&&typeof a!="string"&&(p=p.concat(a)),a&&typeof a=="string"&&(p=p.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(p=i.split("."));var I=Im(this.data,p);return I||!d||typeof a!="string"?I:km(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,c){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=this.options.keySeparator;d===void 0&&(d=".");var p=[i,o];a&&(p=p.concat(d?a.split(d):a)),i.indexOf(".")>-1&&(p=i.split("."),c=o,o=p[1]),this.addNamespaces(o),kP(this.data,p,c),u.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,u){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},p=[i,o];i.indexOf(".")>-1&&(p=i.split("."),c=a,a=o,o=p[1]),this.addNamespaces(o);var I=Im(this.data,p)||{};c?JB(I,a,u):I=tp(tp({},I),a),kP(this.data,p,I),d.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?tp(tp({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(_s),QB={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function EP(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 Zr(e){for(var t=1;t"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}}var TP={},PP=function(e){hb(n,e);var t=Kue(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ao(this,n),i=t.call(this),fb&&_s.call(Cs(i)),Wue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Cs(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=zo.create("translator"),i}return so(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],d=a&&i.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Yue(i,a,c);if(d&&!p){var I=i.match(this.interpolator.nestingRegexp);if(I&&I.length>0)return{key:i,namespaces:u};var P=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(P[0])>-1)&&(u=P.shift()),i=P.join(c)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var c=this;if(Er(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Er(o)==="object"&&(o=Zr({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=this.extractFromKey(i[i.length-1],o),I=p.key,P=p.namespaces,F=P[P.length-1],B=o.lng||this.language,N=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(B&&B.toLowerCase()==="cimode"){if(N){var D=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(F).concat(D).concat(I),usedKey:I,exactUsedKey:I,usedLng:B,usedNS:F}:"".concat(F).concat(D).concat(I)}return u?{res:I,usedKey:I,exactUsedKey:I,usedLng:B,usedNS:F}:I}var T=this.resolve(i,o),M=T&&T.res,O=T&&T.usedKey||I,L=T&&T.exactUsedKey||I,x=Object.prototype.toString.apply(M),b=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,w=typeof M!="string"&&typeof M!="boolean"&&typeof M!="number";if(g&&M&&w&&b.indexOf(x)<0&&!(typeof C=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var f=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,M,Zr(Zr({},o),{},{ns:P})):"key '".concat(I," (").concat(this.language,")' returned an object instead of string.");return u?(T.res=f,T):f}if(d){var m=x==="[object Array]",E=m?[]:{},S=m?L:O;for(var y in M)if(Object.prototype.hasOwnProperty.call(M,y)){var _="".concat(S).concat(d).concat(y);E[y]=this.translate(_,Zr(Zr({},o),{joinArrays:!1,ns:P})),E[y]===_&&(E[y]=M[y])}M=E}}else if(g&&typeof C=="string"&&x==="[object Array]")M=M.join(C),M&&(M=this.extendTranslation(M,i,o,a));else{var $=!1,z=!1,H=o.count!==void 0&&typeof o.count!="string",X=n.hasDefaultValue(o),Q=H?this.pluralResolver.getSuffix(B,o.count,o):"",re=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(M)&&X&&($=!0,M=re),this.isValidLookup(M)||(z=!0,M=I);var ue=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,le=ue&&z?void 0:M,ve=X&&re!==M&&this.options.updateMissing;if(z||$||ve){if(this.logger.log(ve?"updateKey":"missingKey",B,F,I,ve?re:M),d){var V=this.resolve(I,Zr(Zr({},o),{},{keySeparator:!1}));V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Z=[],ce=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ce&&ce[0])for(var Y=0;Y1&&arguments[1]!==void 0?arguments[1]:{},c,u,d,p,I;return typeof i=="string"&&(i=[i]),i.forEach(function(P){if(!o.isValidLookup(c)){var F=o.extractFromKey(P,a),B=F.key;u=B;var N=F.namespaces;o.options.fallbackNS&&(N=N.concat(o.options.fallbackNS));var D=a.count!==void 0&&typeof a.count!="string",T=D&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),M=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",O=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);N.forEach(function(L){o.isValidLookup(c)||(I=L,!TP["".concat(O[0],"-").concat(L)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(I)&&(TP["".concat(O[0],"-").concat(L)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(O.join(", "),`" won't get resolved as namespace "`).concat(I,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(function(x){if(!o.isValidLookup(c)){p=x;var b=[B];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(b,B,x,L,a);else{var C;D&&(C=o.pluralResolver.getSuffix(x,a.count,a));var g="".concat(o.options.pluralSeparator,"zero");if(D&&(b.push(B+C),T&&b.push(B+g)),M){var w="".concat(B).concat(o.options.contextSeparator).concat(a.context);b.push(w),D&&(b.push(w+C),T&&b.push(w+g))}}for(var f;f=b.pop();)o.isValidLookup(c)||(d=f,c=o.getResource(x,L,f,a))}}))})}}),{res:c,usedKey:u,exactUsedKey:d,usedLng:p,usedNS:I}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(_s);function hx(e){return e.charAt(0).toUpperCase()+e.slice(1)}var RP=function(){function e(t){ao(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zo.create("languageUtils")}return so(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=hx(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=hx(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=hx(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(d){!d||(i.isSupportedCode(d)?a.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(u){a.indexOf(u)<0&&c(i.formatLanguageCode(u))}),a}}]),e}(),Que=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],que={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},ede=["v1","v2","v3"],OP={zero:0,one:1,two:2,few:3,many:4,other:5};function tde(){var e={};return Que.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:que[t.fc]}})}),e}var nde=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ao(this,e),this.languageUtils=t,this.options=n,this.logger=zo.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=tde()}return so(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return OP[a]-OP[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!ede.includes(this.options.compatibilityJSON)}}]),e}();function MP(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 po(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Vue(e,t,n);return!o&&i&&typeof n=="string"&&(o=km(e,n,r),o===void 0&&(o=km(t,n,r))),o}var rde=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(this,e),this.logger=zo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return so(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:jue,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Zl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Zl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Zl(r.nestingPrefix):r.nestingPrefixEscaped||Zl("$t("),this.nestingSuffix=r.nestingSuffix?Zl(r.nestingSuffix):r.nestingSuffixEscaped||Zl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,u,d,p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function I(D){return D.replace(/\$/g,"$$$$")}var P=function(T){if(T.indexOf(a.formatSeparator)<0){var M=LP(r,p,T,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(M,void 0,i,po(po(po({},o),r),{},{interpolationkey:T})):M}var O=T.split(a.formatSeparator),L=O.shift().trim(),x=O.join(a.formatSeparator).trim();return a.format(LP(r,p,L,a.options.keySeparator,a.options.ignoreJSONStructure),x,i,po(po(po({},o),r),{},{interpolationkey:L}))};this.resetRegExp();var F=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,B=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,N=[{regex:this.regexpUnescape,safeValue:function(T){return I(T)}},{regex:this.regexp,safeValue:function(T){return a.escapeValue?I(a.escape(T)):I(T)}}];return N.forEach(function(D){for(d=0;c=D.regex.exec(n);){var T=c[1].trim();if(u=P(T),u===void 0)if(typeof F=="function"){var M=F(n,c,o);u=typeof M=="string"?M:""}else if(o&&Object.prototype.hasOwnProperty.call(o,T))u="";else if(B){u=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(T," for interpolating ").concat(n)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=IP(u));var O=D.safeValue(u);if(n=n.replace(c[0],O),B?(D.regex.lastIndex+=u.length,D.regex.lastIndex-=c[0].length):D.regex.lastIndex=0,d++,d>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,u;function d(F,B){var N=this.nestingOptionsSeparator;if(F.indexOf(N)<0)return F;var D=F.split(new RegExp("".concat(N,"[ ]*{"))),T="{".concat(D[1]);F=D[0],T=this.interpolate(T,u);var M=T.match(/'/g),O=T.match(/"/g);(M&&M.length%2===0&&!O||O.length%2!==0)&&(T=T.replace(/'/g,'"'));try{u=JSON.parse(T),B&&(u=po(po({},B),u))}catch(L){return this.logger.warn("failed parsing options string in nesting for key ".concat(F),L),"".concat(F).concat(N).concat(T)}return delete u.defaultValue,F}for(;a=this.nestingRegexp.exec(n);){var p=[];u=po({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var I=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var P=a[1].split(this.formatSeparator).map(function(F){return F.trim()});a[1]=P.shift(),p=P,I=!0}if(c=r(d.call(this,a[1].trim(),u),u),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=IP(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),I&&(c=p.reduce(function(F,B){return i.format(F,B,o.lng,po(po({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),e}();function DP(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 ua(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(!!a){var c=a.split(":"),u=Nue(c),d=u[0],p=u.slice(1),I=p.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=I),I==="false"&&(n[d.trim()]=!1),I==="true"&&(n[d.trim()]=!0),isNaN(I)||(n[d.trim()]=parseInt(I,10))}})}}return{formatName:t,formatOptions:n}}function Xl(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),c=t[a];return c||(c=e(i,o),t[a]=c),c(r)}}var ode=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(this,e),this.logger=zo.create("formatter"),this.options=t,this.formats={number:Xl(function(n,r){var i=new Intl.NumberFormat(n,ua({},r));return function(o){return i.format(o)}}),currency:Xl(function(n,r){var i=new Intl.NumberFormat(n,ua(ua({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Xl(function(n,r){var i=new Intl.DateTimeFormat(n,ua({},r));return function(o){return i.format(o)}}),relativetime:Xl(function(n,r){var i=new Intl.RelativeTimeFormat(n,ua({},r));return function(o){return i.format(o,r.range||"day")}}),list:Xl(function(n,r){var i=new Intl.ListFormat(n,ua({},r));return function(o){return i.format(o)}})},this.init(t)}return so(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Xl(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),u=c.reduce(function(d,p){var I=ide(p),P=I.formatName,F=I.formatOptions;if(o.formats[P]){var B=d;try{var N=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},D=N.locale||N.lng||a.locale||a.lng||i;B=o.formats[P](d,D,ua(ua(ua({},F),a),N))}catch(T){o.logger.warn(T)}return B}else o.logger.warn("there was no format function for ".concat(P));return d},n);return u}}]),e}();function $P(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 NP(e){for(var t=1;t"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 lde(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var cde=function(e){hb(n,e);var t=ade(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ao(this,n),a=t.call(this),fb&&_s.call(Cs(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=zo.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return so(n,[{key:"queueLoad",value:function(i,o,a,c){var u=this,d={},p={},I={},P={};return i.forEach(function(F){var B=!0;o.forEach(function(N){var D="".concat(F,"|").concat(N);!a.reload&&u.store.hasResourceBundle(F,N)?u.state[D]=2:u.state[D]<0||(u.state[D]===1?p[D]===void 0&&(p[D]=!0):(u.state[D]=1,B=!1,p[D]===void 0&&(p[D]=!0),d[D]===void 0&&(d[D]=!0),P[N]===void 0&&(P[N]=!0)))}),B||(I[F]=!0)}),(Object.keys(d).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(d),pending:Object.keys(p),toLoadLanguages:Object.keys(I),toLoadNamespaces:Object.keys(P)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),u=c[0],d=c[1];o&&this.emit("failedLoading",u,d,o),a&&this.store.addResourceBundle(u,d,a),this.state[i]=o?-1:2;var p={};this.queue.forEach(function(I){Hue(I.loaded,[u],d),lde(I,i),o&&I.errors.push(o),I.pendingCount===0&&!I.done&&(Object.keys(I.loaded).forEach(function(P){p[P]||(p[P]={});var F=I.loaded[P];F.length&&F.forEach(function(B){p[P][B]===void 0&&(p[P][B]=!0)})}),I.done=!0,I.errors.length?I.callback(I.errors):I.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(function(I){return!I.done})}},{key:"read",value:function(i,o,a){var c=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,p=arguments.length>5?arguments[5]:void 0;if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:d,callback:p});return}this.readingCalls++;var I=function(N,D){if(c.readingCalls--,c.waitingReads.length>0){var T=c.waitingReads.shift();c.read(T.lng,T.ns,T.fcName,T.tried,T.wait,T.callback)}if(N&&D&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,c,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(function(p){a.loadOne(p)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),u=c[0],d=c[1];this.read(u,d,"read",void 0,void 0,function(p,I){p&&o.logger.warn("".concat(a,"loading namespace ").concat(d," for language ").concat(u," failed"),p),!p&&I&&o.logger.log("".concat(a,"loaded namespace ").concat(d," for language ").concat(u),I),o.loaded(i,p,I)})}},{key:"saveMissing",value:function(i,o,a,c,u){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var I=NP(NP({},d),{},{isUpdate:u}),P=this.backend.create.bind(this.backend);if(P.length<6)try{var F;P.length===5?F=P(i,o,a,c,I):F=P(i,o,a,c),F&&typeof F.then=="function"?F.then(function(B){return p(null,B)}).catch(p):p(null,F)}catch(B){p(B)}else P(i,o,a,c,p,I)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(_s);function FP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Er(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Er(t[2])==="object"||Er(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function BP(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function WP(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 Ro(e){for(var t=1;t"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 np(){}function hde(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var _m=function(e){hb(n,e);var t=ude(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ao(this,n),r=t.call(this),fb&&_s.call(Cs(r)),r.options=BP(i),r.services={},r.logger=zo,r.modules={external:[]},hde(Cs(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),hf(r,Cs(r));setTimeout(function(){r.init(i,o)},0)}return r}return so(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=FP();this.options=Ro(Ro(Ro({},c),this.options),BP(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ro(Ro({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(T){return T?typeof T=="function"?new T:T:null}if(!this.options.isClone){this.modules.logger?zo.init(u(this.modules.logger),this.options):zo.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=ode);var p=new RP(this.options);this.store=new Uue(this.options.resources,this.options);var I=this.services;I.logger=zo,I.resourceStore=this.store,I.languageUtils=p,I.pluralResolver=new nde(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(I.formatter=u(d),I.formatter.init(I,this.options),this.options.interpolation.format=I.formatter.format.bind(I.formatter)),I.interpolator=new rde(this.options),I.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},I.backendConnector=new cde(u(this.modules.backend),I.resourceStore,I,this.options),I.backendConnector.on("*",function(T){for(var M=arguments.length,O=new Array(M>1?M-1:0),L=1;L1?M-1:0),L=1;L0&&P[0]!=="dev"&&(this.options.lng=P[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var F=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];F.forEach(function(T){i[T]=function(){var M;return(M=i.store)[T].apply(M,arguments)}});var B=["addResource","addResources","addResourceBundle","removeResourceBundle"];B.forEach(function(T){i[T]=function(){var M;return(M=i.store)[T].apply(M,arguments),i}});var N=Yu(),D=function(){var M=function(L,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),N.resolve(x),a(L,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return M(null,i.t.bind(i));i.changeLanguage(i.options.lng,M)};return this.options.resources||!this.options.initImmediate?D():setTimeout(D,0),N}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:np,c=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return c();var d=[],p=function(F){if(!!F){var B=o.services.languageUtils.toResolveHierarchy(F);B.forEach(function(N){d.indexOf(N)<0&&d.push(N)})}};if(u)p(u);else{var I=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);I.forEach(function(P){return p(P)})}this.options.preload&&this.options.preload.forEach(function(P){return p(P)}),this.services.backendConnector.load(d,this.options.ns,function(P){!P&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(P)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=Yu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=np),this.services.backendConnector.reload(i,o,function(u){c.resolve(),a(u)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&QB.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=Yu();this.emit("languageChanging",i);var u=function(P){a.language=P,a.languages=a.services.languageUtils.toResolveHierarchy(P),a.resolvedLanguage=void 0,a.setResolvedLanguage(P)},d=function(P,F){F?(u(F),a.translator.changeLanguage(F),a.isLanguageChangingTo=void 0,a.emit("languageChanged",F),a.logger.log("languageChanged",F)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(P,function(){return a.t.apply(a,arguments)})},p=function(P){!i&&!P&&a.services.languageDetector&&(P=[]);var F=typeof P=="string"?P:a.services.languageUtils.getBestMatchFromCodes(P);F&&(a.language||u(F),a.translator.language||a.translator.changeLanguage(F),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(F)),a.loadResources(F,function(B){d(B,F)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,u=function d(p,I){var P;if(Er(I)!=="object"){for(var F=arguments.length,B=new Array(F>2?F-2:0),N=2;N1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var p=function(F,B){var N=o.services.backendConnector.state["".concat(F,"|").concat(B)];return N===-1||N===2};if(a.precheck){var I=a.precheck(this,p);if(I!==void 0)return I}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(c,i)&&(!u||p(d,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=Yu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){c.resolve(),o&&o(u)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Yu();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],u=i.filter(function(d){return c.indexOf(d)<0});return u.length?(this.options.preload=c.concat(u),this.loadResources(function(d){a.resolve(),o&&o(d)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new RP(FP());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:np,c=Ro(Ro(Ro({},this.options),o),{isClone:!0}),u=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var d=["store","services","language"];return d.forEach(function(p){u[p]=i[p]}),u.services=Ro({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new PP(u.services,u.options),u.translator.on("*",function(p){for(var I=arguments.length,P=new Array(I>1?I-1:0),F=1;F0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new _m(e,t)});var hi=_m.createInstance();hi.createInstance=_m.createInstance;hi.createInstance;hi.dir;hi.init;hi.loadResources;hi.reloadResources;hi.use;hi.changeLanguage;hi.getFixedT;var Oke=hi.t;hi.exists;hi.setDefaultNamespace;hi.hasLoadedNamespace;hi.loadNamespaces;hi.loadLanguages;var qB=[],fde=qB.forEach,pde=qB.slice;function gde(e){return fde.call(pde.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var HP=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,mde=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(t,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!HP.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!HP.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var u=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},VP={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=mde(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a0){var u=o[a].substring(0,c);u===t.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},Zu=null,zP=function(){if(Zu!==null)return Zu;try{Zu=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Zu=!1}return Zu},bde={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&zP()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&zP()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Xu=null,jP=function(){if(Xu!==null)return Xu;try{Xu=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Xu=!1}return Xu},xde={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&jP()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&jP()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},wde={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},Cde={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Sde={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Ade={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(!!r)return r[n]}};function Ide(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var kde=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ao(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return so(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=gde(r,this.options||{},Ide()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(vde),this.addDetector(yde),this.addDetector(bde),this.addDetector(xde),this.addDetector(wde),this.addDetector(Cde),this.addDetector(Sde),this.addDetector(Ade)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();kde.type="languageDetector";function HC(e){return HC=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},HC(e)}var eW=[],_de=eW.forEach,Ede=eW.slice;function VC(e){return _de.call(Ede.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function tW(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":HC(XMLHttpRequest))==="object"}function Tde(e){return!!e&&typeof e.then=="function"}function Pde(e){return Tde(e)?e:Promise.resolve(e)}function Rde(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Em={exports:{}},rp={exports:{}},GP;function Ode(){return GP||(GP=1,function(e,t){var n=typeof self<"u"?self:tn,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function u(y){return y&&DataView.prototype.isPrototypeOf(y)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(y){return y&&d.indexOf(Object.prototype.toString.call(y))>-1};function I(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(y))throw new TypeError("Invalid character in header field name");return y.toLowerCase()}function P(y){return typeof y!="string"&&(y=String(y)),y}function F(y){var _={next:function(){var $=y.shift();return{done:$===void 0,value:$}}};return c.iterable&&(_[Symbol.iterator]=function(){return _}),_}function B(y){this.map={},y instanceof B?y.forEach(function(_,$){this.append($,_)},this):Array.isArray(y)?y.forEach(function(_){this.append(_[0],_[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(_){this.append(_,y[_])},this)}B.prototype.append=function(y,_){y=I(y),_=P(_);var $=this.map[y];this.map[y]=$?$+", "+_:_},B.prototype.delete=function(y){delete this.map[I(y)]},B.prototype.get=function(y){return y=I(y),this.has(y)?this.map[y]:null},B.prototype.has=function(y){return this.map.hasOwnProperty(I(y))},B.prototype.set=function(y,_){this.map[I(y)]=P(_)},B.prototype.forEach=function(y,_){for(var $ in this.map)this.map.hasOwnProperty($)&&y.call(_,this.map[$],$,this)},B.prototype.keys=function(){var y=[];return this.forEach(function(_,$){y.push($)}),F(y)},B.prototype.values=function(){var y=[];return this.forEach(function(_){y.push(_)}),F(y)},B.prototype.entries=function(){var y=[];return this.forEach(function(_,$){y.push([$,_])}),F(y)},c.iterable&&(B.prototype[Symbol.iterator]=B.prototype.entries);function N(y){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}function D(y){return new Promise(function(_,$){y.onload=function(){_(y.result)},y.onerror=function(){$(y.error)}})}function T(y){var _=new FileReader,$=D(_);return _.readAsArrayBuffer(y),$}function M(y){var _=new FileReader,$=D(_);return _.readAsText(y),$}function O(y){for(var _=new Uint8Array(y),$=new Array(_.length),z=0;z<_.length;z++)$[z]=String.fromCharCode(_[z]);return $.join("")}function L(y){if(y.slice)return y.slice(0);var _=new Uint8Array(y.byteLength);return _.set(new Uint8Array(y)),_.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(y){this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:c.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:c.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():c.arrayBuffer&&c.blob&&u(y)?(this._bodyArrayBuffer=L(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||p(y))?this._bodyArrayBuffer=L(y):this._bodyText=y=Object.prototype.toString.call(y):this._bodyText="",this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var y=N(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(T)}),this.text=function(){var y=N(this);if(y)return y;if(this._bodyBlob)return M(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(y){var _=y.toUpperCase();return b.indexOf(_)>-1?_:y}function g(y,_){_=_||{};var $=_.body;if(y instanceof g){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,_.headers||(this.headers=new B(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!$&&y._bodyInit!=null&&($=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=_.credentials||this.credentials||"same-origin",(_.headers||!this.headers)&&(this.headers=new B(_.headers)),this.method=C(_.method||this.method||"GET"),this.mode=_.mode||this.mode||null,this.signal=_.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&$)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody($)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function w(y){var _=new FormData;return y.trim().split("&").forEach(function($){if($){var z=$.split("="),H=z.shift().replace(/\+/g," "),X=z.join("=").replace(/\+/g," ");_.append(decodeURIComponent(H),decodeURIComponent(X))}}),_}function f(y){var _=new B,$=y.replace(/\r?\n[\t ]+/g," ");return $.split(/\r?\n/).forEach(function(z){var H=z.split(":"),X=H.shift().trim();if(X){var Q=H.join(":").trim();_.append(X,Q)}}),_}x.call(g.prototype);function m(y,_){_||(_={}),this.type="default",this.status=_.status===void 0?200:_.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _?_.statusText:"OK",this.headers=new B(_.headers),this.url=_.url||"",this._initBody(y)}x.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new B(this.headers),url:this.url})},m.error=function(){var y=new m(null,{status:0,statusText:""});return y.type="error",y};var E=[301,302,303,307,308];m.redirect=function(y,_){if(E.indexOf(_)===-1)throw new RangeError("Invalid status code");return new m(null,{status:_,headers:{location:y}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(_,$){this.message=_,this.name=$;var z=Error(_);this.stack=z.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function S(y,_){return new Promise(function($,z){var H=new g(y,_);if(H.signal&&H.signal.aborted)return z(new a.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function Q(){X.abort()}X.onload=function(){var re={status:X.status,statusText:X.statusText,headers:f(X.getAllResponseHeaders()||"")};re.url="responseURL"in X?X.responseURL:re.headers.get("X-Request-URL");var ue="response"in X?X.response:X.responseText;$(new m(ue,re))},X.onerror=function(){z(new TypeError("Network request failed"))},X.ontimeout=function(){z(new TypeError("Network request failed"))},X.onabort=function(){z(new a.DOMException("Aborted","AbortError"))},X.open(H.method,H.url,!0),H.credentials==="include"?X.withCredentials=!0:H.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&c.blob&&(X.responseType="blob"),H.headers.forEach(function(re,ue){X.setRequestHeader(ue,re)}),H.signal&&(H.signal.addEventListener("abort",Q),X.onreadystatechange=function(){X.readyState===4&&H.signal.removeEventListener("abort",Q)}),X.send(typeof H._bodyInit>"u"?null:H._bodyInit)})}return S.polyfill=!0,o.fetch||(o.fetch=S,o.Headers=B,o.Request=g,o.Response=m),a.Headers=B,a.Request=g,a.Response=m,a.fetch=S,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(rp,rp.exports)),rp.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof tn<"u"&&tn.fetch?n=tn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Rde<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||Ode();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Em,Em.exports);const nW=Em.exports,YP=YM({__proto__:null,default:nW},[Em.exports]);function Tm(e){return Tm=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},Tm(e)}var _a;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?_a=global.fetch:typeof window<"u"&&window.fetch?_a=window.fetch:_a=fetch);var Ah;tW()&&(typeof global<"u"&&global.XMLHttpRequest?Ah=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ah=window.XMLHttpRequest));var Pm;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Pm=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Pm=window.ActiveXObject));!_a&&YP&&!Ah&&!Pm&&(_a=nW||YP);typeof _a!="function"&&(_a=void 0);var zC=function(t,n){if(n&&Tm(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},ZP=function(t,n,r){_a(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(o){r(null,{status:i.status,data:o})}).catch(r)}).catch(r)},XP=!1,Mde=function(t,n,r,i){t.queryStringParams&&(n=zC(n,t.queryStringParams));var o=VC({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(o["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=VC({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},XP?{}:a);try{ZP(n,c,i)}catch(u){if(!a||Object.keys(a).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(a).forEach(function(d){delete c[d]}),ZP(n,c,i),XP=!0}catch(d){i(d)}}},Lde=function(t,n,r,i){r&&Tm(r)==="object"&&(r=zC("",r).slice(1)),t.queryStringParams&&(n=zC(n,t.queryStringParams));try{var o;Ah?o=new Ah:o=new Pm("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(u){console&&console.log(u)}},Dde=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},_a&&n.indexOf("file:")!==0)return Mde(t,n,r,i);if(tW()||typeof ActiveXObject=="function")return Lde(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ih(e){return Ih=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},Ih(e)}function $de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UP(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$de(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Nde(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=VC(i,this.options||{},Wde()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,i)),u=Pde(u),u.then(function(d){if(!d)return a(null,{});var p=c.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(p,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(c,u);this.options.request(this.options,n,d,function(p,I){if(I&&(I.status>=500&&I.status<600||!I.status))return r("failed loading "+n+"; status code: "+I.status,!0);if(I&&I.status>=400&&I.status<500)return r("failed loading "+n+"; status code: "+I.status,!1);if(!I&&p&&p.message&&p.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+p.message,!0);if(p)return r(p,!1);var P,F;try{typeof I.data=="string"?P=a.options.parse(I.data,i,o):P=I.data}catch{F="failed parsing "+n+" to json"}if(F)return r(F,!1);r(null,P)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(!!this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,i,o),d=0,p=[],I=[];n.forEach(function(P){var F=c.options.addPath;typeof c.options.addPath=="function"&&(F=c.options.addPath(P,r));var B=c.services.interpolator.interpolate(F,{lng:P,ns:r});c.options.request(c.options,B,u,function(N,D){d+=1,p.push(N),I.push(D),d===n.length&&typeof a=="function"&&a(p,I)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var u=[],d=function(I){var P=o.toResolveHierarchy(I);P.forEach(function(F){u.indexOf(F)<0&&u.push(F)})};d(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(p){return d(p)}),u.forEach(function(p){n.allOptions.ns.forEach(function(I){i.read(p,I,"read",null,null,function(P,F){P&&a.warn("loading namespace ".concat(I," for language ").concat(p," failed"),P),!P&&F&&a.log("loaded namespace ".concat(I," for language ").concat(p),F),i.loaded("".concat(p,"|").concat(I),P,F)})})})}}}]),e}();Hde.type="backend";var bu={exports:{}};/*! + */function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yse(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zse(){return Math.random().toString(36).substr(2,8)}function oP(e,t){return{usr:e.state,key:e.key,idx:t}}function Ch(e,t,n,r){return n===void 0&&(n=null),xn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?la(t):t,{state:n,key:t&&t.key||r||Zse()})}function Na(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 la(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 Xse(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,c=dr.Pop,u=null,d=p();d==null&&(d=0,a.replaceState(xn({},a.state,{idx:d}),""));function p(){return(a.state||{idx:null}).idx}function I(){c=dr.Pop;let D=p(),T=D==null?null:D-d;d=D,u&&u({action:c,location:N.location,delta:T})}function P(D,T){c=dr.Push;let M=Ch(N.location,D,T);n&&n(M,D),d=p()+1;let O=oP(M,d),L=N.createHref(M);try{a.pushState(O,"",L)}catch{i.location.assign(L)}o&&u&&u({action:c,location:N.location,delta:1})}function F(D,T){c=dr.Replace;let M=Ch(N.location,D,T);n&&n(M,D),d=p();let O=oP(M,d),L=N.createHref(M);a.replaceState(O,"",L),o&&u&&u({action:c,location:N.location,delta:0})}function B(D){let T=i.location.origin!=="null"?i.location.origin:i.location.href,M=typeof D=="string"?D:Na(D);return en(T,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,T)}let N={get action(){return c},get location(){return e(i,a)},listen(D){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(iP,I),u=D,()=>{i.removeEventListener(iP,I),u=null}},createHref(D){return t(i,D)},createURL:B,encodeLocation(D){let T=B(D);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:P,replace:F,go(D){return a.go(D)}};return N}var Br;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Br||(Br={}));function Use(e){return e.index===!0}function DB(e,t,n){return t===void 0&&(t=[]),n===void 0&&(n=new Set),e.map((r,i)=>{let o=[...t,i],a=typeof r.id=="string"?r.id:o.join("-");return en(r.index!==!0||!r.children,"Cannot specify children on an index route"),en(!n.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),n.add(a),Use(r)?xn({},r,{id:a}):xn({},r,{id:a,children:r.children?DB(r.children,o,n):void 0})})}function ld(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?la(t):t,i=FB(r.pathname||"/",n);if(i==null)return null;let o=$B(e);Kse(o);let a=null;for(let c=0;a==null&&c{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};u.relativePath.startsWith("/")&&(en(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=_a([r,u.relativePath]),p=n.concat(u);o.children&&o.children.length>0&&(en(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),$B(o.children,t,p,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:rle(d,o.index),routesMeta:p})};return e.forEach((o,a)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,a);else for(let u of NB(o.path))i(o,a,u)}),t}function NB(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=NB(r.join("/")),c=[];return c.push(...a.map(u=>u===""?o:[o,u].join("/"))),i&&c.push(...a),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function Kse(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ile(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Jse=/^:\w+$/,Qse=3,qse=2,ele=1,tle=10,nle=-2,aP=e=>e==="*";function rle(e,t){let n=e.split("/"),r=n.length;return n.some(aP)&&(r+=nle),t&&(r+=qse),n.filter(i=>!aP(i)).reduce((i,o)=>i+(Jse.test(o)?Qse:o===""?ele:tle),r)}function ile(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 ole(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(p==="*"){let P=c[I]||"";a=o.slice(0,o.length-P.length).replace(/(.)\/+$/,"$1")}return d[p]=cle(c[I]||"",p),d},{}),pathname:o,pathnameBase:a,pattern:e}}function sle(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sh(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,c)=>(r.push(c),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function lle(e){try{return decodeURI(e)}catch(t){return Sh(!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 cle(e,t){try{return decodeURIComponent(e)}catch(n){return Sh(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function FB(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 Sh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ule(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?la(e):e;return{pathname:n?n.startsWith("/")?n:dle(n,t):t,search:fle(r),hash:ple(i)}}function dle(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 ux(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 ub(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=la(e):(i=xn({},e),en(!i.pathname||!i.pathname.includes("?"),ux("?","pathname","search",i)),en(!i.pathname||!i.pathname.includes("#"),ux("#","pathname","hash",i)),en(!i.search||!i.search.includes("#"),ux("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,c;if(r||a==null)c=n;else{let I=t.length-1;if(a.startsWith("..")){let P=a.split("/");for(;P[0]==="..";)P.shift(),I-=1;i.pathname=P.join("/")}c=I>=0?t[I]:"/"}let u=ule(i,c),d=a&&a!=="/"&&a.endsWith("/"),p=(o||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}const _a=e=>e.join("/").replace(/\/\/+/g,"/"),hle=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fle=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ple=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class sP extends Error{}class gle{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],en(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,a)=>r=a),this.controller=new AbortController;let i=()=>r(new sP("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((o,a)=>{let[c,u]=a;return Object.assign(o,{[c]:this.trackPromise(c,u)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,t,null,i),i=>this.onSettle(r,t,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,i){return this.controller.signal.aborted&&r instanceof sP?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r)):(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,n),i))}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(o=>{t.removeEventListener("abort",r),(o||this.done)&&i(o)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return en(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,i]=n;return Object.assign(t,{[r]:vle(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function mle(e){return e instanceof Promise&&e._tracked===!0}function vle(e){if(!mle(e))return e;if(e._error)throw e._error;return e._data}class hk{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function BB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const WB=["post","put","patch","delete"],yle=new Set(WB),ble=["get",...WB],xle=new Set(ble),wle=new Set([301,302,303,307,308]),Cle=new Set([307,308]),dx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Sle={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},lP={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ale=!VB;function Ile(e){en(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=DB(e.routes),n=null,r=new Set,i=null,o=null,a=null,c=e.hydrationData!=null,u=ld(t,e.history.location,e.basename),d=null;if(u==null){let Te=Qa(404,{pathname:e.history.location.pathname}),{matches:Ne,route:Ge}=pP(t);u=Ne,d={[Ge.id]:Te}}let p=!u.some(Te=>Te.route.loader)||e.hydrationData!=null,I,P={historyAction:e.history.action,location:e.history.location,matches:u,initialized:p,navigation:dx,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},F=dr.Pop,B=!1,N,D=!1,T=!1,M=[],O=[],L=new Map,x=0,b=-1,C=new Map,g=new Set,w=new Map,f=new Map,m=new Map,E=!1;function S(){return n=e.history.listen(Te=>{let{action:Ne,location:Ge,delta:nt}=Te;if(E){E=!1;return}Sh(m.size===0||nt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let He=U({currentLocation:P.location,nextLocation:Ge,historyAction:Ne});if(He&&nt!=null){E=!0,e.history.go(nt*-1),ge(He,{state:"blocked",location:Ge,proceed(){ge(He,{state:"proceeding",proceed:void 0,reset:void 0,location:Ge}),e.history.go(nt)},reset(){se(He),$({blockers:new Map(I.state.blockers)})}});return}return Q(Ne,Ge)}),P.initialized||Q(dr.Pop,P.location),I}function y(){n&&n(),r.clear(),N&&N.abort(),P.fetchers.forEach((Te,Ne)=>fe(Ne)),P.blockers.forEach((Te,Ne)=>se(Ne))}function _(Te){return r.add(Te),()=>r.delete(Te)}function $(Te){P=xn({},P,Te),r.forEach(Ne=>Ne(P))}function z(Te,Ne){var Ge,nt;let He=P.actionData!=null&&P.navigation.formMethod!=null&&ga(P.navigation.formMethod)&&P.navigation.state==="loading"&&((Ge=Te.state)==null?void 0:Ge._isRedirect)!==!0,et;Ne.actionData?Object.keys(Ne.actionData).length>0?et=Ne.actionData:et=null:He?et=P.actionData:et=null;let ot=Ne.loaderData?fP(P.loaderData,Ne.loaderData,Ne.matches||[],Ne.errors):P.loaderData;for(let[Qe]of m)se(Qe);let lt=B===!0||P.navigation.formMethod!=null&&ga(P.navigation.formMethod)&&((nt=Te.state)==null?void 0:nt._isRedirect)!==!0;$(xn({},Ne,{actionData:et,loaderData:ot,historyAction:F,location:Te,initialized:!0,navigation:dx,revalidation:"idle",restoreScrollPosition:ke(Te,Ne.matches||P.matches),preventScrollReset:lt,blockers:new Map(P.blockers)})),D||F===dr.Pop||(F===dr.Push?e.history.push(Te,Te.state):F===dr.Replace&&e.history.replace(Te,Te.state)),F=dr.Pop,B=!1,D=!1,T=!1,M=[],O=[]}async function H(Te,Ne){if(typeof Te=="number"){e.history.go(Te);return}let{path:Ge,submission:nt,error:He}=cP(Te,Ne),et=P.location,ot=Ch(P.location,Ge,Ne&&Ne.state);ot=xn({},ot,e.history.encodeLocation(ot));let lt=Ne&&Ne.replace!=null?Ne.replace:void 0,Qe=dr.Push;lt===!0?Qe=dr.Replace:lt===!1||nt!=null&&ga(nt.formMethod)&&nt.formAction===P.location.pathname+P.location.search&&(Qe=dr.Replace);let ht=Ne&&"preventScrollReset"in Ne?Ne.preventScrollReset===!0:void 0,dt=U({currentLocation:et,nextLocation:ot,historyAction:Qe});if(dt){ge(dt,{state:"blocked",location:ot,proceed(){ge(dt,{state:"proceeding",proceed:void 0,reset:void 0,location:ot}),H(Te,Ne)},reset(){se(dt),$({blockers:new Map(P.blockers)})}});return}return await Q(Qe,ot,{submission:nt,pendingError:He,preventScrollReset:ht,replace:Ne&&Ne.replace})}function X(){if(ie(),$({revalidation:"loading"}),P.navigation.state!=="submitting"){if(P.navigation.state==="idle"){Q(P.historyAction,P.location,{startUninterruptedRevalidation:!0});return}Q(F||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation})}}async function Q(Te,Ne,Ge){N&&N.abort(),N=null,F=Te,D=(Ge&&Ge.startUninterruptedRevalidation)===!0,xe(P.location,P.matches),B=(Ge&&Ge.preventScrollReset)===!0;let nt=Ge&&Ge.overrideNavigation,He=ld(t,Ne,e.basename);if(!He){let Ve=Qa(404,{pathname:Ne.pathname}),{matches:ct,route:mt}=pP(t);q(),z(Ne,{matches:ct,loaderData:{},errors:{[mt.id]:Ve}});return}if(Ple(P.location,Ne)&&!(Ge&&Ge.submission&&ga(Ge.submission.formMethod))){z(Ne,{matches:He});return}N=new AbortController;let et=ju(e.history,Ne,N.signal,Ge&&Ge.submission),ot,lt;if(Ge&&Ge.pendingError)lt={[mc(He).route.id]:Ge.pendingError};else if(Ge&&Ge.submission&&ga(Ge.submission.formMethod)){let Ve=await re(et,Ne,Ge.submission,He,{replace:Ge.replace});if(Ve.shortCircuited)return;ot=Ve.pendingActionData,lt=Ve.pendingActionError,nt=xn({state:"loading",location:Ne},Ge.submission),et=new Request(et.url,{signal:et.signal})}let{shortCircuited:Qe,loaderData:ht,errors:dt}=await ue(et,Ne,He,nt,Ge&&Ge.submission,Ge&&Ge.replace,ot,lt);Qe||(N=null,z(Ne,xn({matches:He},ot?{actionData:ot}:{},{loaderData:ht,errors:dt})))}async function re(Te,Ne,Ge,nt,He){ie();let et=xn({state:"submitting",location:Ne},Ge);$({navigation:et});let ot,lt=yP(nt,Ne);if(!lt.route.action)ot={type:Br.error,error:Qa(405,{method:Te.method,pathname:Ne.pathname,routeId:lt.route.id})};else if(ot=await zu("action",Te,lt,nt,I.basename),Te.signal.aborted)return{shortCircuited:!0};if(Nc(ot)){let Qe;return He&&He.replace!=null?Qe=He.replace:Qe=ot.location===P.location.pathname+P.location.search,await ce(P,ot,{submission:Ge,replace:Qe}),{shortCircuited:!0}}if(Nd(ot)){let Qe=mc(nt,lt.route.id);return(He&&He.replace)!==!0&&(F=dr.Push),{pendingActionData:{},pendingActionError:{[Qe.route.id]:ot.error}}}if(el(ot))throw Qa(400,{type:"defer-action"});return{pendingActionData:{[lt.route.id]:ot.data}}}async function ue(Te,Ne,Ge,nt,He,et,ot,lt){let Qe=nt;Qe||(Qe=xn({state:"loading",location:Ne,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},He));let ht=He||(Qe.formMethod&&Qe.formAction&&Qe.formData&&Qe.formEncType?{formMethod:Qe.formMethod,formAction:Qe.formAction,formData:Qe.formData,formEncType:Qe.formEncType}:void 0),[dt,Ve]=uP(e.history,P,Ge,ht,Ne,T,M,O,ot,lt,w);if(q(_t=>!(Ge&&Ge.some($t=>$t.route.id===_t))||dt&&dt.some($t=>$t.route.id===_t)),dt.length===0&&Ve.length===0)return z(Ne,xn({matches:Ge,loaderData:{},errors:lt||null},ot?{actionData:ot}:{})),{shortCircuited:!0};if(!D){Ve.forEach($t=>{let De=P.fetchers.get($t.key),Ze={state:"loading",data:De&&De.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set($t.key,Ze)});let _t=ot||P.actionData;$(xn({navigation:Qe},_t?Object.keys(_t).length===0?{actionData:null}:{actionData:_t}:{},Ve.length>0?{fetchers:new Map(P.fetchers)}:{}))}b=++x,Ve.forEach(_t=>L.set(_t.key,N));let{results:ct,loaderResults:mt,fetcherResults:yt}=await Y(P.matches,Ge,dt,Ve,Te);if(Te.signal.aborted)return{shortCircuited:!0};Ve.forEach(_t=>L.delete(_t.key));let $e=gP(ct);if($e)return await ce(P,$e,{replace:et}),{shortCircuited:!0};let{loaderData:Be,errors:tt}=hP(P,Ge,dt,mt,lt,Ve,yt,f);f.forEach((_t,$t)=>{_t.subscribe(De=>{(De||_t.done)&&f.delete($t)})}),we();let xt=be(b);return xn({loaderData:Be,errors:tt},xt||Ve.length>0?{fetchers:new Map(P.fetchers)}:{})}function le(Te){return P.fetchers.get(Te)||Sle}function ve(Te,Ne,Ge,nt){if(Ale)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");L.has(Te)&&Ce(Te);let He=ld(t,Ge,e.basename);if(!He){he(Te,Ne,Qa(404,{pathname:Ge}));return}let{path:et,submission:ot}=cP(Ge,nt,!0),lt=yP(He,et);if(B=(nt&&nt.preventScrollReset)===!0,ot&&ga(ot.formMethod)){V(Te,Ne,et,lt,He,ot);return}w.set(Te,{routeId:Ne,path:et,match:lt,matches:He}),Z(Te,Ne,et,lt,He,ot)}async function V(Te,Ne,Ge,nt,He,et){if(ie(),w.delete(Te),!nt.route.action){let wt=Qa(405,{method:et.formMethod,pathname:Ge,routeId:Ne});he(Te,Ne,wt);return}let ot=P.fetchers.get(Te),lt=xn({state:"submitting"},et,{data:ot&&ot.data," _hasFetcherDoneAnything ":!0});P.fetchers.set(Te,lt),$({fetchers:new Map(P.fetchers)});let Qe=new AbortController,ht=ju(e.history,Ge,Qe.signal,et);L.set(Te,Qe);let dt=await zu("action",ht,nt,He,I.basename);if(ht.signal.aborted){L.get(Te)===Qe&&L.delete(Te);return}if(Nc(dt)){L.delete(Te),g.add(Te);let wt=xn({state:"loading"},et,{data:void 0," _hasFetcherDoneAnything ":!0});return P.fetchers.set(Te,wt),$({fetchers:new Map(P.fetchers)}),ce(P,dt,{isFetchActionRedirect:!0})}if(Nd(dt)){he(Te,Ne,dt.error);return}if(el(dt))throw Qa(400,{type:"defer-action"});let Ve=P.navigation.location||P.location,ct=ju(e.history,Ve,Qe.signal),mt=P.navigation.state!=="idle"?ld(t,P.navigation.location,e.basename):P.matches;en(mt,"Didn't find any matches after fetcher action");let yt=++x;C.set(Te,yt);let $e=xn({state:"loading",data:dt.data},et,{" _hasFetcherDoneAnything ":!0});P.fetchers.set(Te,$e);let[Be,tt]=uP(e.history,P,mt,et,Ve,T,M,O,{[nt.route.id]:dt.data},void 0,w);tt.filter(wt=>wt.key!==Te).forEach(wt=>{let Ht=wt.key,rn=P.fetchers.get(Ht),Pn={state:"loading",data:rn&&rn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Ht,Pn),L.set(Ht,Qe)}),$({fetchers:new Map(P.fetchers)});let{results:xt,loaderResults:_t,fetcherResults:$t}=await Y(P.matches,mt,Be,tt,ct);if(Qe.signal.aborted)return;C.delete(Te),L.delete(Te),tt.forEach(wt=>L.delete(wt.key));let De=gP(xt);if(De)return ce(P,De);let{loaderData:Ze,errors:qe}=hP(P,P.matches,Be,_t,void 0,tt,$t,f),gt={state:"idle",data:dt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Te,gt);let Pt=be(yt);P.navigation.state==="loading"&&yt>b?(en(F,"Expected pending action"),N&&N.abort(),z(P.navigation.location,{matches:mt,loaderData:Ze,errors:qe,fetchers:new Map(P.fetchers)})):($(xn({errors:qe,loaderData:fP(P.loaderData,Ze,mt,qe)},Pt?{fetchers:new Map(P.fetchers)}:{})),T=!1)}async function Z(Te,Ne,Ge,nt,He,et){let ot=P.fetchers.get(Te),lt=xn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},et,{data:ot&&ot.data," _hasFetcherDoneAnything ":!0});P.fetchers.set(Te,lt),$({fetchers:new Map(P.fetchers)});let Qe=new AbortController,ht=ju(e.history,Ge,Qe.signal);L.set(Te,Qe);let dt=await zu("loader",ht,nt,He,I.basename);if(el(dt)&&(dt=await YB(dt,ht.signal,!0)||dt),L.get(Te)===Qe&&L.delete(Te),ht.signal.aborted)return;if(Nc(dt)){await ce(P,dt);return}if(Nd(dt)){let ct=mc(P.matches,Ne);P.fetchers.delete(Te),$({fetchers:new Map(P.fetchers),errors:{[ct.route.id]:dt.error}});return}en(!el(dt),"Unhandled fetcher deferred data");let Ve={state:"idle",data:dt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Te,Ve),$({fetchers:new Map(P.fetchers)})}async function ce(Te,Ne,Ge){var nt;let{submission:He,replace:et,isFetchActionRedirect:ot}=Ge===void 0?{}:Ge;Ne.revalidate&&(T=!0);let lt=Ch(Te.location,Ne.location,xn({_isRedirect:!0},ot?{_isFetchActionRedirect:!0}:{}));if(en(lt,"Expected a location on the redirect navigation"),HB.test(Ne.location)&&VB&&typeof((nt=window)==null?void 0:nt.location)<"u"){let mt=e.history.createURL(Ne.location).origin;if(window.location.origin!==mt){et?window.location.replace(Ne.location):window.location.assign(Ne.location);return}}N=null;let Qe=et===!0?dr.Replace:dr.Push,{formMethod:ht,formAction:dt,formEncType:Ve,formData:ct}=Te.navigation;!He&&ht&&dt&&ct&&Ve&&(He={formMethod:ht,formAction:dt,formEncType:Ve,formData:ct}),Cle.has(Ne.status)&&He&&ga(He.formMethod)?await Q(Qe,lt,{submission:xn({},He,{formAction:Ne.location}),preventScrollReset:B}):await Q(Qe,lt,{overrideNavigation:{state:"loading",location:lt,formMethod:He?He.formMethod:void 0,formAction:He?He.formAction:void 0,formEncType:He?He.formEncType:void 0,formData:He?He.formData:void 0},preventScrollReset:B})}async function Y(Te,Ne,Ge,nt,He){let et=await Promise.all([...Ge.map(Qe=>zu("loader",He,Qe,Ne,I.basename)),...nt.map(Qe=>zu("loader",ju(e.history,Qe.path,He.signal),Qe.match,Qe.matches,I.basename))]),ot=et.slice(0,Ge.length),lt=et.slice(Ge.length);return await Promise.all([mP(Te,Ge,ot,He.signal,!1,P.loaderData),mP(Te,nt.map(Qe=>Qe.match),lt,He.signal,!0)]),{results:et,loaderResults:ot,fetcherResults:lt}}function ie(){T=!0,M.push(...q()),w.forEach((Te,Ne)=>{L.has(Ne)&&(O.push(Ne),Ce(Ne))})}function he(Te,Ne,Ge){let nt=mc(P.matches,Ne);fe(Te),$({errors:{[nt.route.id]:Ge},fetchers:new Map(P.fetchers)})}function fe(Te){L.has(Te)&&Ce(Te),w.delete(Te),C.delete(Te),g.delete(Te),P.fetchers.delete(Te)}function Ce(Te){let Ne=L.get(Te);en(Ne,"Expected fetch controller: "+Te),Ne.abort(),L.delete(Te)}function Pe(Te){for(let Ne of Te){let nt={state:"idle",data:le(Ne).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};P.fetchers.set(Ne,nt)}}function we(){let Te=[];for(let Ne of g){let Ge=P.fetchers.get(Ne);en(Ge,"Expected fetcher: "+Ne),Ge.state==="loading"&&(g.delete(Ne),Te.push(Ne))}Pe(Te)}function be(Te){let Ne=[];for(let[Ge,nt]of C)if(nt0}function ee(Te,Ne){let Ge=P.blockers.get(Te)||lP;return m.get(Te)!==Ne&&m.set(Te,Ne),Ge}function se(Te){P.blockers.delete(Te),m.delete(Te)}function ge(Te,Ne){let Ge=P.blockers.get(Te)||lP;en(Ge.state==="unblocked"&&Ne.state==="blocked"||Ge.state==="blocked"&&Ne.state==="blocked"||Ge.state==="blocked"&&Ne.state==="proceeding"||Ge.state==="blocked"&&Ne.state==="unblocked"||Ge.state==="proceeding"&&Ne.state==="unblocked","Invalid blocker state transition: "+Ge.state+" -> "+Ne.state),P.blockers.set(Te,Ne),$({blockers:new Map(P.blockers)})}function U(Te){let{currentLocation:Ne,nextLocation:Ge,historyAction:nt}=Te;if(m.size===0)return;m.size>1&&Sh(!1,"A router only supports one blocker at a time");let He=Array.from(m.entries()),[et,ot]=He[He.length-1],lt=P.blockers.get(et);if(!(lt&<.state==="proceeding")&&ot({currentLocation:Ne,nextLocation:Ge,historyAction:nt}))return et}function q(Te){let Ne=[];return f.forEach((Ge,nt)=>{(!Te||Te(nt))&&(Ge.cancel(),Ne.push(nt),f.delete(nt))}),Ne}function oe(Te,Ne,Ge){if(i=Te,a=Ne,o=Ge||(nt=>nt.key),!c&&P.navigation===dx){c=!0;let nt=ke(P.location,P.matches);nt!=null&&$({restoreScrollPosition:nt})}return()=>{i=null,a=null,o=null}}function xe(Te,Ne){if(i&&o&&a){let Ge=Ne.map(He=>vP(He,P.loaderData)),nt=o(Te,Ge)||Te.key;i[nt]=a()}}function ke(Te,Ne){if(i&&o&&a){let Ge=Ne.map(et=>vP(et,P.loaderData)),nt=o(Te,Ge)||Te.key,He=i[nt];if(typeof He=="number")return He}return null}return I={get basename(){return e.basename},get state(){return P},get routes(){return t},initialize:S,subscribe:_,enableScrollRestoration:oe,navigate:H,fetch:ve,revalidate:X,createHref:Te=>e.history.createHref(Te),encodeLocation:Te=>e.history.encodeLocation(Te),getFetcher:le,deleteFetcher:fe,dispose:y,getBlocker:ee,deleteBlocker:se,_internalFetchControllers:L,_internalActiveDeferreds:f},I}function kle(e){return e!=null&&"formData"in e}function cP(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:Na(e);if(!t||!kle(t))return{path:r};if(t.formMethod&&!Ole(t.formMethod))return{path:r,error:Qa(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:GB(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},ga(i.formMethod)))return{path:r,submission:i};let o=la(r),a=jB(t.formData);return n&&o.search&&ZB(o.search)&&a.append("index",""),o.search="?"+a,{path:Na(o),submission:i}}function _le(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function uP(e,t,n,r,i,o,a,c,u,d,p){let I=d?Object.values(d)[0]:u?Object.values(u)[0]:void 0,P=e.createURL(t.location),F=e.createURL(i),B=o||P.toString()===F.toString()||P.search!==F.search,N=d?Object.keys(d)[0]:void 0,T=_le(n,N).filter((O,L)=>{if(O.route.loader==null)return!1;if(Ele(t.loaderData,t.matches[L],O)||a.some(C=>C===O.route.id))return!0;let x=t.matches[L],b=O;return dP(O,xn({currentUrl:P,currentParams:x.params,nextUrl:F,nextParams:b.params},r,{actionResult:I,defaultShouldRevalidate:B||zB(x,b)}))}),M=[];return p&&p.forEach((O,L)=>{if(n.some(x=>x.route.id===O.routeId))c.includes(L)?M.push(xn({key:L},O)):dP(O.match,xn({currentUrl:P,currentParams:t.matches[t.matches.length-1].params,nextUrl:F,nextParams:n[n.length-1].params},r,{actionResult:I,defaultShouldRevalidate:B}))&&M.push(xn({key:L},O));else return}),[T,M]}function Ele(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function zB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function dP(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function zu(e,t,n,r,i,o,a,c){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let u,d,p,I=new Promise((F,B)=>p=B),P=()=>p();t.signal.addEventListener("abort",P);try{let F=n.route[e];en(F,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),d=await Promise.race([F({request:t,params:n.params,context:c}),I]),en(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(F){u=Br.error,d=F}finally{t.signal.removeEventListener("abort",P)}if(Rle(d)){let F=d.status;if(wle.has(F)){let D=d.headers.get("Location");if(en(D,"Redirects returned/thrown from loaders/actions must have a Location header"),HB.test(D)){if(!o){let T=new URL(t.url),M=D.startsWith("//")?new URL(T.protocol+D):new URL(D);M.origin===T.origin&&(D=M.pathname+M.search+M.hash)}}else{let T=r.slice(0,r.indexOf(n)+1),M=ub(T).map(L=>L.pathnameBase),O=dk(D,M,new URL(t.url).pathname);if(en(Na(O),"Unable to resolve redirect location: "+D),i){let L=O.pathname;O.pathname=L==="/"?i:_a([i,L])}D=Na(O)}if(o)throw d.headers.set("Location",D),d;return{type:Br.redirect,status:F,location:D,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:u||Br.data,response:d};let B,N=d.headers.get("Content-Type");return N&&/\bapplication\/json\b/.test(N)?B=await d.json():B=await d.text(),u===Br.error?{type:u,error:new hk(F,d.statusText,B),headers:d.headers}:{type:Br.data,data:B,statusCode:d.status,headers:d.headers}}return u===Br.error?{type:u,error:d}:d instanceof gle?{type:Br.deferred,deferredData:d}:{type:Br.data,data:d}}function ju(e,t,n,r){let i=e.createURL(GB(t)).toString(),o={signal:n};if(r&&ga(r.formMethod)){let{formMethod:a,formEncType:c,formData:u}=r;o.method=a.toUpperCase(),o.body=c==="application/x-www-form-urlencoded"?jB(u):u}return new Request(i,o)}function jB(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function Tle(e,t,n,r,i){let o={},a=null,c,u=!1,d={};return n.forEach((p,I)=>{let P=t[I].route.id;if(en(!Nc(p),"Cannot handle redirect results in processLoaderData"),Nd(p)){let F=mc(e,P),B=p.error;r&&(B=Object.values(r)[0],r=void 0),a=a||{},a[F.route.id]==null&&(a[F.route.id]=B),o[P]=void 0,u||(u=!0,c=BB(p.error)?p.error.status:500),p.headers&&(d[P]=p.headers)}else el(p)?(i.set(P,p.deferredData),o[P]=p.deferredData.data):o[P]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(c=p.statusCode),p.headers&&(d[P]=p.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:c||200,loaderHeaders:d}}function hP(e,t,n,r,i,o,a,c){let{loaderData:u,errors:d}=Tle(t,n,r,i,c);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function pP(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Qa(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?c="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"&&(c="defer() is not supported in actions")):e===403?(a="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",c='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?c="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(c='Invalid request method "'+i.toUpperCase()+'"')),new hk(e||500,a,new Error(c),!0)}function gP(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Nc(n))return n}}function GB(e){let t=typeof e=="string"?la(e):e;return Na(xn({},t,{hash:""}))}function Ple(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function el(e){return e.type===Br.deferred}function Nd(e){return e.type===Br.error}function Nc(e){return(e&&e.type)===Br.redirect}function Rle(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ole(e){return xle.has(e)}function ga(e){return yle.has(e)}async function mP(e,t,n,r,i,o){for(let a=0;aI.route.id===u.route.id),p=d!=null&&!zB(d,u)&&(o&&o[u.route.id])!==void 0;el(c)&&(i||p)&&await YB(c,r,i).then(I=>{I&&(n[a]=I||n[a])})}}async function YB(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Br.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Br.error,error:i}}return{type:Br.data,data:e.deferredData.data}}}function ZB(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vP(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function yP(e,t){let n=typeof t=="string"?la(t).search:t.search;if(e[e.length-1].route.index&&ZB(n||""))return e[e.length-1];let r=ub(e);return r[r.length-1]}var Mle={lessThanXSeconds:{one:"\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647",other:"\u06A9\u0645\u062A\u0631 \u0627\u0632 {{count}} \u062B\u0627\u0646\u06CC\u0647"},xSeconds:{one:"1 \u062B\u0627\u0646\u06CC\u0647",other:"{{count}} \u062B\u0627\u0646\u06CC\u0647"},halfAMinute:"\u0646\u06CC\u0645 \u062F\u0642\u06CC\u0642\u0647",lessThanXMinutes:{one:"\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647",other:"\u06A9\u0645\u062A\u0631 \u0627\u0632 {{count}} \u062F\u0642\u06CC\u0642\u0647"},xMinutes:{one:"1 \u062F\u0642\u06CC\u0642\u0647",other:"{{count}} \u062F\u0642\u06CC\u0642\u0647"},aboutXHours:{one:"\u062D\u062F\u0648\u062F 1 \u0633\u0627\u0639\u062A",other:"\u062D\u062F\u0648\u062F {{count}} \u0633\u0627\u0639\u062A"},xHours:{one:"1 \u0633\u0627\u0639\u062A",other:"{{count}} \u0633\u0627\u0639\u062A"},xDays:{one:"1 \u0631\u0648\u0632",other:"{{count}} \u0631\u0648\u0632"},aboutXWeeks:{one:"\u062D\u062F\u0648\u062F 1 \u0647\u0641\u062A\u0647",other:"\u062D\u062F\u0648\u062F {{count}} \u0647\u0641\u062A\u0647"},xWeeks:{one:"1 \u0647\u0641\u062A\u0647",other:"{{count}} \u0647\u0641\u062A\u0647"},aboutXMonths:{one:"\u062D\u062F\u0648\u062F 1 \u0645\u0627\u0647",other:"\u062D\u062F\u0648\u062F {{count}} \u0645\u0627\u0647"},xMonths:{one:"1 \u0645\u0627\u0647",other:"{{count}} \u0645\u0627\u0647"},aboutXYears:{one:"\u062D\u062F\u0648\u062F 1 \u0633\u0627\u0644",other:"\u062D\u062F\u0648\u062F {{count}} \u0633\u0627\u0644"},xYears:{one:"1 \u0633\u0627\u0644",other:"{{count}} \u0633\u0627\u0644"},overXYears:{one:"\u0628\u06CC\u0634\u062A\u0631 \u0627\u0632 1 \u0633\u0627\u0644",other:"\u0628\u06CC\u0634\u062A\u0631 \u0627\u0632 {{count}} \u0633\u0627\u0644"},almostXYears:{one:"\u0646\u0632\u062F\u06CC\u06A9 1 \u0633\u0627\u0644",other:"\u0646\u0632\u062F\u06CC\u06A9 {{count}} \u0633\u0627\u0644"}},Lle=function(t,n,r){var i,o=Mle[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"\u062F\u0631 "+i:i+" \u0642\u0628\u0644":i};const Dle=Lle;function eo(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var $le={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},Nle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fle={full:"{{date}} '\u062F\u0631' {{time}}",long:"{{date}} '\u062F\u0631' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ble={date:eo({formats:$le,defaultWidth:"full"}),time:eo({formats:Nle,defaultWidth:"full"}),dateTime:eo({formats:Fle,defaultWidth:"full"})};const Wle=Ble;var Hle={lastWeek:"eeee '\u06AF\u0630\u0634\u062A\u0647 \u062F\u0631' p",yesterday:"'\u062F\u06CC\u0631\u0648\u0632 \u062F\u0631' p",today:"'\u0627\u0645\u0631\u0648\u0632 \u062F\u0631' p",tomorrow:"'\u0641\u0631\u062F\u0627 \u062F\u0631' p",nextWeek:"eeee '\u062F\u0631' p",other:"P"},Vle=function(t,n,r,i){return Hle[t]};const zle=Vle;function gr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var c=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[c]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var jle={narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F","\u0628\u0639\u062F \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F"]},Gle={narrow:["1","2","3","4"],abbreviated:["\u0633\u200C\u06451","\u0633\u200C\u06452","\u0633\u200C\u06453","\u0633\u200C\u06454"],wide:["\u0633\u0647\u200C\u0645\u0627\u0647\u0647 1","\u0633\u0647\u200C\u0645\u0627\u0647\u0647 2","\u0633\u0647\u200C\u0645\u0627\u0647\u0647 3","\u0633\u0647\u200C\u0645\u0627\u0647\u0647 4"]},Yle={narrow:["\u0698","\u0641","\u0645","\u0622","\u0645","\u062C","\u062C","\u0622","\u0633","\u0627","\u0646","\u062F"],abbreviated:["\u0698\u0627\u0646\u0640","\u0641\u0648\u0631","\u0645\u0627\u0631\u0633","\u0622\u067E\u0631","\u0645\u06CC","\u062C\u0648\u0646","\u062C\u0648\u0644\u0640","\u0622\u06AF\u0648","\u0633\u067E\u062A\u0640","\u0627\u06A9\u062A\u0640","\u0646\u0648\u0627\u0645\u0640","\u062F\u0633\u0627\u0645\u0640"],wide:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u067E\u0631\u06CC\u0644","\u0645\u06CC","\u062C\u0648\u0646","\u062C\u0648\u0644\u0627\u06CC","\u0622\u06AF\u0648\u0633\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"]},Zle={narrow:["\u06CC","\u062F","\u0633","\u0686","\u067E","\u062C","\u0634"],short:["1\u0634","2\u0634","3\u0634","4\u0634","5\u0634","\u062C","\u0634"],abbreviated:["\u06CC\u06A9\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u062C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],wide:["\u06CC\u06A9\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u062C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},Xle={narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},Ule={narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062D",afternoon:"\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},Kle=function(t,n){return String(t)},Jle={ordinalNumber:Kle,era:gr({values:jle,defaultWidth:"wide"}),quarter:gr({values:Gle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gr({values:Yle,defaultWidth:"wide"}),day:gr({values:Zle,defaultWidth:"wide"}),dayPeriod:gr({values:Xle,defaultWidth:"wide",formattingValues:Ule,defaultFormattingWidth:"wide"})};const Qle=Jle;function mr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?ece(c,function(I){return I.test(a)}):qle(c,function(I){return I.test(a)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var p=t.slice(a.length);return{value:d,rest:p}}}function qle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ece(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var c=t.slice(i.length);return{value:a,rest:c}}}var tce=/^(\d+)(th|st|nd|rd)?/i,nce=/\d+/i,rce={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},ice={any:[/^قبل/i,/^بعد/i]},oce={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},sce={any:[/1/i,/2/i,/3/i,/4/i]},lce={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},cce={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},uce={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},dce={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},hce={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},fce={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},pce={ordinalNumber:db({matchPattern:tce,parsePattern:nce,valueCallback:function(t){return parseInt(t,10)}}),era:mr({matchPatterns:rce,defaultMatchWidth:"wide",parsePatterns:ice,defaultParseWidth:"any"}),quarter:mr({matchPatterns:oce,defaultMatchWidth:"wide",parsePatterns:sce,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:mr({matchPatterns:lce,defaultMatchWidth:"wide",parsePatterns:cce,defaultParseWidth:"any"}),day:mr({matchPatterns:uce,defaultMatchWidth:"wide",parsePatterns:dce,defaultParseWidth:"any"}),dayPeriod:mr({matchPatterns:hce,defaultMatchWidth:"wide",parsePatterns:fce,defaultParseWidth:"any"})};const gce=pce;var mce={code:"fa-IR",formatDistance:Dle,formatLong:Wle,formatRelative:zle,localize:Qle,match:gce,options:{weekStartsOn:6,firstWeekContainsDate:1}};const Pke=mce;function Gu(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function qr(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Gu(e.future,t):"\u0447\u0435\u0440\u0435\u0437 "+Gu(e.regular,t):e.past?Gu(e.past,t):Gu(e.regular,t)+" \u043D\u0430\u0437\u0430\u0434":Gu(e.regular,t)}}var vce={lessThanXSeconds:qr({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),xSeconds:qr({regular:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B"},lessThanXMinutes:qr({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u043C\u0438\u043D\u0443\u0442\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u043C\u0438\u043D\u0443\u0442\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),xMinutes:qr({regular:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0430",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442"},past:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),aboutXHours:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043E\u0432"}}),xHours:qr({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043E\u0432"}}),xDays:qr({regular:{singularNominative:"{{count}} \u0434\u0435\u043D\u044C",singularGenitive:"{{count}} \u0434\u043D\u044F",pluralGenitive:"{{count}} \u0434\u043D\u0435\u0439"}}),aboutXWeeks:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044E",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),xWeeks:qr({regular:{singularNominative:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044F",singularGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),aboutXMonths:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),xMonths:qr({regular:{singularNominative:"{{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),aboutXYears:qr({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),xYears:qr({regular:{singularNominative:"{{count}} \u0433\u043E\u0434",singularGenitive:"{{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"{{count}} \u043B\u0435\u0442"}}),overXYears:qr({regular:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),almostXYears:qr({regular:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}})},yce=function(t,n,r){return vce[t](n,r)};const bce=yce;var xce={full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},wce={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Cce={any:"{{date}}, {{time}}"},Sce={date:eo({formats:xce,defaultWidth:"full"}),time:eo({formats:wce,defaultWidth:"full"}),dateTime:eo({formats:Cce,defaultWidth:"any"})};const Ace=Sce;function kt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Np(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Np=function(n){return typeof n}:Np=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Np(e)}function Dt(e){kt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Np(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function an(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var Ice={};function $l(){return Ice}function Fa(e,t){var n,r,i,o,a,c,u,d;kt(1,arguments);var p=$l(),I=an((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&r!==void 0?r:(u=p.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var P=Dt(e),F=P.getUTCDay(),B=(F0?i+"\u5185":i+"\u524D":i};const iue=rue;var oue={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},aue={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},sue={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},lue={date:eo({formats:oue,defaultWidth:"full"}),time:eo({formats:aue,defaultWidth:"full"}),dateTime:eo({formats:sue,defaultWidth:"full"})};const cue=lue;function xP(e,t,n){var r="eeee p";return WC(e,t,n)?r:e.getTime()>t.getTime()?"'\u4E0B\u4E2A'"+r:"'\u4E0A\u4E2A'"+r}var uue={lastWeek:xP,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:xP,other:"PP p"},due=function(t,n,r,i){var o=uue[t];return typeof o=="function"?o(n,r,i):o};const hue=due;var fue={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},pue={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},gue={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},mue={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},vue={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},yue={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},bue=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r.toString()+"\u65E5";case"hour":return r.toString()+"\u65F6";case"minute":return r.toString()+"\u5206";case"second":return r.toString()+"\u79D2";default:return"\u7B2C "+r.toString()}},xue={ordinalNumber:bue,era:gr({values:fue,defaultWidth:"wide"}),quarter:gr({values:pue,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gr({values:gue,defaultWidth:"wide"}),day:gr({values:mue,defaultWidth:"wide"}),dayPeriod:gr({values:vue,defaultWidth:"wide",formattingValues:yue,defaultFormattingWidth:"wide"})};const wue=xue;var Cue=/^(第\s*)?\d+(日|时|分|秒)?/i,Sue=/\d+/i,Aue={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Iue={any:[/^(前)/i,/^(公元)/i]},kue={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},_ue={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Eue={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Tue={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Pue={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Rue={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Oue={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Mue={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Lue={ordinalNumber:db({matchPattern:Cue,parsePattern:Sue,valueCallback:function(t){return parseInt(t,10)}}),era:mr({matchPatterns:Aue,defaultMatchWidth:"wide",parsePatterns:Iue,defaultParseWidth:"any"}),quarter:mr({matchPatterns:kue,defaultMatchWidth:"wide",parsePatterns:_ue,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:mr({matchPatterns:Eue,defaultMatchWidth:"wide",parsePatterns:Tue,defaultParseWidth:"any"}),day:mr({matchPatterns:Pue,defaultMatchWidth:"wide",parsePatterns:Rue,defaultParseWidth:"any"}),dayPeriod:mr({matchPatterns:Oue,defaultMatchWidth:"any",parsePatterns:Mue,defaultParseWidth:"any"})};const Due=Lue;var $ue={code:"zh-CN",formatDistance:iue,formatLong:cue,formatRelative:hue,localize:wue,match:Due,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Oke=$ue;function ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wP(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]:{};ao(this,e),this.init(t,n)}return so(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||Bue,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),o=1;o-1?c.replace(/###/g,"."):c}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function kP(e,t,n){var r=pk(e,t,Object),i=r.obj,o=r.k;i[o]=n}function Vue(e,t,n,r){var i=pk(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function Im(e,t){var n=pk(e,t),r=n.obj,i=n.k;if(!!r)return r[i]}function zue(e,t,n){var r=Im(e,n);return r!==void 0?r:Im(t,n)}function JB(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):JB(e[r],t[r],n):e[r]=t[r]);return e}function Zl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var jue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Gue(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return jue[t]}):e}var fb=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Yue=[" ",",","?","!",";"];function Zue(e,t,n){t=t||"",n=n||"";var r=Yue.filter(function(c){return t.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function km(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,c=r.slice(o,o+a).join(n),u=i[c];if(u===void 0)return;if(u===null)return null;if(t.endsWith(c)){if(typeof u=="string")return u;if(c&&typeof u[c]=="string")return u[c]}var d=r.slice(o+a).join(n);return d?km(u,d,n):void 0}i=i[r[o]]}return i}}function _P(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 tp(e){for(var t=1;t"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}}var Kue=function(e){hb(n,e);var t=Xue(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ao(this,n),i=t.call(this),fb&&_s.call(Cs(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return so(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,p=[i,o];a&&typeof a!="string"&&(p=p.concat(a)),a&&typeof a=="string"&&(p=p.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(p=i.split("."));var I=Im(this.data,p);return I||!d||typeof a!="string"?I:km(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,c){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=this.options.keySeparator;d===void 0&&(d=".");var p=[i,o];a&&(p=p.concat(d?a.split(d):a)),i.indexOf(".")>-1&&(p=i.split("."),c=o,o=p[1]),this.addNamespaces(o),kP(this.data,p,c),u.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,u){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},p=[i,o];i.indexOf(".")>-1&&(p=i.split("."),c=a,a=o,o=p[1]),this.addNamespaces(o);var I=Im(this.data,p)||{};c?JB(I,a,u):I=tp(tp({},I),a),kP(this.data,p,I),d.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?tp(tp({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(_s),QB={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function EP(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 Zr(e){for(var t=1;t"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}}var TP={},PP=function(e){hb(n,e);var t=Jue(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ao(this,n),i=t.call(this),fb&&_s.call(Cs(i)),Hue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Cs(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=zo.create("translator"),i}return so(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],d=a&&i.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Zue(i,a,c);if(d&&!p){var I=i.match(this.interpolator.nestingRegexp);if(I&&I.length>0)return{key:i,namespaces:u};var P=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(P[0])>-1)&&(u=P.shift()),i=P.join(c)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var c=this;if(Er(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Er(o)==="object"&&(o=Zr({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=this.extractFromKey(i[i.length-1],o),I=p.key,P=p.namespaces,F=P[P.length-1],B=o.lng||this.language,N=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(B&&B.toLowerCase()==="cimode"){if(N){var D=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(F).concat(D).concat(I),usedKey:I,exactUsedKey:I,usedLng:B,usedNS:F}:"".concat(F).concat(D).concat(I)}return u?{res:I,usedKey:I,exactUsedKey:I,usedLng:B,usedNS:F}:I}var T=this.resolve(i,o),M=T&&T.res,O=T&&T.usedKey||I,L=T&&T.exactUsedKey||I,x=Object.prototype.toString.apply(M),b=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,w=typeof M!="string"&&typeof M!="boolean"&&typeof M!="number";if(g&&M&&w&&b.indexOf(x)<0&&!(typeof C=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var f=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,M,Zr(Zr({},o),{},{ns:P})):"key '".concat(I," (").concat(this.language,")' returned an object instead of string.");return u?(T.res=f,T):f}if(d){var m=x==="[object Array]",E=m?[]:{},S=m?L:O;for(var y in M)if(Object.prototype.hasOwnProperty.call(M,y)){var _="".concat(S).concat(d).concat(y);E[y]=this.translate(_,Zr(Zr({},o),{joinArrays:!1,ns:P})),E[y]===_&&(E[y]=M[y])}M=E}}else if(g&&typeof C=="string"&&x==="[object Array]")M=M.join(C),M&&(M=this.extendTranslation(M,i,o,a));else{var $=!1,z=!1,H=o.count!==void 0&&typeof o.count!="string",X=n.hasDefaultValue(o),Q=H?this.pluralResolver.getSuffix(B,o.count,o):"",re=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(M)&&X&&($=!0,M=re),this.isValidLookup(M)||(z=!0,M=I);var ue=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,le=ue&&z?void 0:M,ve=X&&re!==M&&this.options.updateMissing;if(z||$||ve){if(this.logger.log(ve?"updateKey":"missingKey",B,F,I,ve?re:M),d){var V=this.resolve(I,Zr(Zr({},o),{},{keySeparator:!1}));V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Z=[],ce=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ce&&ce[0])for(var Y=0;Y1&&arguments[1]!==void 0?arguments[1]:{},c,u,d,p,I;return typeof i=="string"&&(i=[i]),i.forEach(function(P){if(!o.isValidLookup(c)){var F=o.extractFromKey(P,a),B=F.key;u=B;var N=F.namespaces;o.options.fallbackNS&&(N=N.concat(o.options.fallbackNS));var D=a.count!==void 0&&typeof a.count!="string",T=D&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),M=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",O=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);N.forEach(function(L){o.isValidLookup(c)||(I=L,!TP["".concat(O[0],"-").concat(L)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(I)&&(TP["".concat(O[0],"-").concat(L)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(O.join(", "),`" won't get resolved as namespace "`).concat(I,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(function(x){if(!o.isValidLookup(c)){p=x;var b=[B];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(b,B,x,L,a);else{var C;D&&(C=o.pluralResolver.getSuffix(x,a.count,a));var g="".concat(o.options.pluralSeparator,"zero");if(D&&(b.push(B+C),T&&b.push(B+g)),M){var w="".concat(B).concat(o.options.contextSeparator).concat(a.context);b.push(w),D&&(b.push(w+C),T&&b.push(w+g))}}for(var f;f=b.pop();)o.isValidLookup(c)||(d=f,c=o.getResource(x,L,f,a))}}))})}}),{res:c,usedKey:u,exactUsedKey:d,usedLng:p,usedNS:I}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(_s);function hx(e){return e.charAt(0).toUpperCase()+e.slice(1)}var RP=function(){function e(t){ao(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zo.create("languageUtils")}return so(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=hx(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=hx(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=hx(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(d){!d||(i.isSupportedCode(d)?a.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(u){a.indexOf(u)<0&&c(i.formatLanguageCode(u))}),a}}]),e}(),que=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ede={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},tde=["v1","v2","v3"],OP={zero:0,one:1,two:2,few:3,many:4,other:5};function nde(){var e={};return que.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:ede[t.fc]}})}),e}var rde=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ao(this,e),this.languageUtils=t,this.options=n,this.logger=zo.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nde()}return so(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return OP[a]-OP[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!tde.includes(this.options.compatibilityJSON)}}]),e}();function MP(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 po(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=zue(e,t,n);return!o&&i&&typeof n=="string"&&(o=km(e,n,r),o===void 0&&(o=km(t,n,r))),o}var ide=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(this,e),this.logger=zo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return so(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:Gue,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Zl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Zl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Zl(r.nestingPrefix):r.nestingPrefixEscaped||Zl("$t("),this.nestingSuffix=r.nestingSuffix?Zl(r.nestingSuffix):r.nestingSuffixEscaped||Zl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,u,d,p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function I(D){return D.replace(/\$/g,"$$$$")}var P=function(T){if(T.indexOf(a.formatSeparator)<0){var M=LP(r,p,T,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(M,void 0,i,po(po(po({},o),r),{},{interpolationkey:T})):M}var O=T.split(a.formatSeparator),L=O.shift().trim(),x=O.join(a.formatSeparator).trim();return a.format(LP(r,p,L,a.options.keySeparator,a.options.ignoreJSONStructure),x,i,po(po(po({},o),r),{},{interpolationkey:L}))};this.resetRegExp();var F=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,B=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,N=[{regex:this.regexpUnescape,safeValue:function(T){return I(T)}},{regex:this.regexp,safeValue:function(T){return a.escapeValue?I(a.escape(T)):I(T)}}];return N.forEach(function(D){for(d=0;c=D.regex.exec(n);){var T=c[1].trim();if(u=P(T),u===void 0)if(typeof F=="function"){var M=F(n,c,o);u=typeof M=="string"?M:""}else if(o&&Object.prototype.hasOwnProperty.call(o,T))u="";else if(B){u=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(T," for interpolating ").concat(n)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=IP(u));var O=D.safeValue(u);if(n=n.replace(c[0],O),B?(D.regex.lastIndex+=u.length,D.regex.lastIndex-=c[0].length):D.regex.lastIndex=0,d++,d>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,u;function d(F,B){var N=this.nestingOptionsSeparator;if(F.indexOf(N)<0)return F;var D=F.split(new RegExp("".concat(N,"[ ]*{"))),T="{".concat(D[1]);F=D[0],T=this.interpolate(T,u);var M=T.match(/'/g),O=T.match(/"/g);(M&&M.length%2===0&&!O||O.length%2!==0)&&(T=T.replace(/'/g,'"'));try{u=JSON.parse(T),B&&(u=po(po({},B),u))}catch(L){return this.logger.warn("failed parsing options string in nesting for key ".concat(F),L),"".concat(F).concat(N).concat(T)}return delete u.defaultValue,F}for(;a=this.nestingRegexp.exec(n);){var p=[];u=po({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var I=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var P=a[1].split(this.formatSeparator).map(function(F){return F.trim()});a[1]=P.shift(),p=P,I=!0}if(c=r(d.call(this,a[1].trim(),u),u),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=IP(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),I&&(c=p.reduce(function(F,B){return i.format(F,B,o.lng,po(po({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),e}();function DP(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 da(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(!!a){var c=a.split(":"),u=Fue(c),d=u[0],p=u.slice(1),I=p.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=I),I==="false"&&(n[d.trim()]=!1),I==="true"&&(n[d.trim()]=!0),isNaN(I)||(n[d.trim()]=parseInt(I,10))}})}}return{formatName:t,formatOptions:n}}function Xl(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),c=t[a];return c||(c=e(i,o),t[a]=c),c(r)}}var ade=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(this,e),this.logger=zo.create("formatter"),this.options=t,this.formats={number:Xl(function(n,r){var i=new Intl.NumberFormat(n,da({},r));return function(o){return i.format(o)}}),currency:Xl(function(n,r){var i=new Intl.NumberFormat(n,da(da({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Xl(function(n,r){var i=new Intl.DateTimeFormat(n,da({},r));return function(o){return i.format(o)}}),relativetime:Xl(function(n,r){var i=new Intl.RelativeTimeFormat(n,da({},r));return function(o){return i.format(o,r.range||"day")}}),list:Xl(function(n,r){var i=new Intl.ListFormat(n,da({},r));return function(o){return i.format(o)}})},this.init(t)}return so(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Xl(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),u=c.reduce(function(d,p){var I=ode(p),P=I.formatName,F=I.formatOptions;if(o.formats[P]){var B=d;try{var N=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},D=N.locale||N.lng||a.locale||a.lng||i;B=o.formats[P](d,D,da(da(da({},F),a),N))}catch(T){o.logger.warn(T)}return B}else o.logger.warn("there was no format function for ".concat(P));return d},n);return u}}]),e}();function $P(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 NP(e){for(var t=1;t"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 cde(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var ude=function(e){hb(n,e);var t=sde(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ao(this,n),a=t.call(this),fb&&_s.call(Cs(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=zo.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return so(n,[{key:"queueLoad",value:function(i,o,a,c){var u=this,d={},p={},I={},P={};return i.forEach(function(F){var B=!0;o.forEach(function(N){var D="".concat(F,"|").concat(N);!a.reload&&u.store.hasResourceBundle(F,N)?u.state[D]=2:u.state[D]<0||(u.state[D]===1?p[D]===void 0&&(p[D]=!0):(u.state[D]=1,B=!1,p[D]===void 0&&(p[D]=!0),d[D]===void 0&&(d[D]=!0),P[N]===void 0&&(P[N]=!0)))}),B||(I[F]=!0)}),(Object.keys(d).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(d),pending:Object.keys(p),toLoadLanguages:Object.keys(I),toLoadNamespaces:Object.keys(P)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),u=c[0],d=c[1];o&&this.emit("failedLoading",u,d,o),a&&this.store.addResourceBundle(u,d,a),this.state[i]=o?-1:2;var p={};this.queue.forEach(function(I){Vue(I.loaded,[u],d),cde(I,i),o&&I.errors.push(o),I.pendingCount===0&&!I.done&&(Object.keys(I.loaded).forEach(function(P){p[P]||(p[P]={});var F=I.loaded[P];F.length&&F.forEach(function(B){p[P][B]===void 0&&(p[P][B]=!0)})}),I.done=!0,I.errors.length?I.callback(I.errors):I.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(function(I){return!I.done})}},{key:"read",value:function(i,o,a){var c=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,p=arguments.length>5?arguments[5]:void 0;if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:d,callback:p});return}this.readingCalls++;var I=function(N,D){if(c.readingCalls--,c.waitingReads.length>0){var T=c.waitingReads.shift();c.read(T.lng,T.ns,T.fcName,T.tried,T.wait,T.callback)}if(N&&D&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,c,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(function(p){a.loadOne(p)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),u=c[0],d=c[1];this.read(u,d,"read",void 0,void 0,function(p,I){p&&o.logger.warn("".concat(a,"loading namespace ").concat(d," for language ").concat(u," failed"),p),!p&&I&&o.logger.log("".concat(a,"loaded namespace ").concat(d," for language ").concat(u),I),o.loaded(i,p,I)})}},{key:"saveMissing",value:function(i,o,a,c,u){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var I=NP(NP({},d),{},{isUpdate:u}),P=this.backend.create.bind(this.backend);if(P.length<6)try{var F;P.length===5?F=P(i,o,a,c,I):F=P(i,o,a,c),F&&typeof F.then=="function"?F.then(function(B){return p(null,B)}).catch(p):p(null,F)}catch(B){p(B)}else P(i,o,a,c,p,I)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(_s);function FP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Er(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Er(t[2])==="object"||Er(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function BP(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function WP(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 Ro(e){for(var t=1;t"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 np(){}function fde(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var _m=function(e){hb(n,e);var t=dde(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ao(this,n),r=t.call(this),fb&&_s.call(Cs(r)),r.options=BP(i),r.services={},r.logger=zo,r.modules={external:[]},fde(Cs(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),hf(r,Cs(r));setTimeout(function(){r.init(i,o)},0)}return r}return so(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=FP();this.options=Ro(Ro(Ro({},c),this.options),BP(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ro(Ro({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(T){return T?typeof T=="function"?new T:T:null}if(!this.options.isClone){this.modules.logger?zo.init(u(this.modules.logger),this.options):zo.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=ade);var p=new RP(this.options);this.store=new Kue(this.options.resources,this.options);var I=this.services;I.logger=zo,I.resourceStore=this.store,I.languageUtils=p,I.pluralResolver=new rde(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(I.formatter=u(d),I.formatter.init(I,this.options),this.options.interpolation.format=I.formatter.format.bind(I.formatter)),I.interpolator=new ide(this.options),I.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},I.backendConnector=new ude(u(this.modules.backend),I.resourceStore,I,this.options),I.backendConnector.on("*",function(T){for(var M=arguments.length,O=new Array(M>1?M-1:0),L=1;L1?M-1:0),L=1;L0&&P[0]!=="dev"&&(this.options.lng=P[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var F=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];F.forEach(function(T){i[T]=function(){var M;return(M=i.store)[T].apply(M,arguments)}});var B=["addResource","addResources","addResourceBundle","removeResourceBundle"];B.forEach(function(T){i[T]=function(){var M;return(M=i.store)[T].apply(M,arguments),i}});var N=Yu(),D=function(){var M=function(L,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),N.resolve(x),a(L,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return M(null,i.t.bind(i));i.changeLanguage(i.options.lng,M)};return this.options.resources||!this.options.initImmediate?D():setTimeout(D,0),N}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:np,c=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return c();var d=[],p=function(F){if(!!F){var B=o.services.languageUtils.toResolveHierarchy(F);B.forEach(function(N){d.indexOf(N)<0&&d.push(N)})}};if(u)p(u);else{var I=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);I.forEach(function(P){return p(P)})}this.options.preload&&this.options.preload.forEach(function(P){return p(P)}),this.services.backendConnector.load(d,this.options.ns,function(P){!P&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(P)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=Yu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=np),this.services.backendConnector.reload(i,o,function(u){c.resolve(),a(u)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&QB.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=Yu();this.emit("languageChanging",i);var u=function(P){a.language=P,a.languages=a.services.languageUtils.toResolveHierarchy(P),a.resolvedLanguage=void 0,a.setResolvedLanguage(P)},d=function(P,F){F?(u(F),a.translator.changeLanguage(F),a.isLanguageChangingTo=void 0,a.emit("languageChanged",F),a.logger.log("languageChanged",F)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(P,function(){return a.t.apply(a,arguments)})},p=function(P){!i&&!P&&a.services.languageDetector&&(P=[]);var F=typeof P=="string"?P:a.services.languageUtils.getBestMatchFromCodes(P);F&&(a.language||u(F),a.translator.language||a.translator.changeLanguage(F),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(F)),a.loadResources(F,function(B){d(B,F)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,u=function d(p,I){var P;if(Er(I)!=="object"){for(var F=arguments.length,B=new Array(F>2?F-2:0),N=2;N1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var p=function(F,B){var N=o.services.backendConnector.state["".concat(F,"|").concat(B)];return N===-1||N===2};if(a.precheck){var I=a.precheck(this,p);if(I!==void 0)return I}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(c,i)&&(!u||p(d,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=Yu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){c.resolve(),o&&o(u)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Yu();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],u=i.filter(function(d){return c.indexOf(d)<0});return u.length?(this.options.preload=c.concat(u),this.loadResources(function(d){a.resolve(),o&&o(d)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new RP(FP());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:np,c=Ro(Ro(Ro({},this.options),o),{isClone:!0}),u=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var d=["store","services","language"];return d.forEach(function(p){u[p]=i[p]}),u.services=Ro({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new PP(u.services,u.options),u.translator.on("*",function(p){for(var I=arguments.length,P=new Array(I>1?I-1:0),F=1;F0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new _m(e,t)});var hi=_m.createInstance();hi.createInstance=_m.createInstance;hi.createInstance;hi.dir;hi.init;hi.loadResources;hi.reloadResources;hi.use;hi.changeLanguage;hi.getFixedT;var Mke=hi.t;hi.exists;hi.setDefaultNamespace;hi.hasLoadedNamespace;hi.loadNamespaces;hi.loadLanguages;var qB=[],pde=qB.forEach,gde=qB.slice;function mde(e){return pde.call(gde.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var HP=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,vde=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(t,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!HP.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!HP.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var u=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},VP={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=vde(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a0){var u=o[a].substring(0,c);u===t.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},Zu=null,zP=function(){if(Zu!==null)return Zu;try{Zu=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Zu=!1}return Zu},xde={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&zP()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&zP()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Xu=null,jP=function(){if(Xu!==null)return Xu;try{Xu=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Xu=!1}return Xu},wde={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&jP()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&jP()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Cde={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},Sde={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Ade={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Ide={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(!!r)return r[n]}};function kde(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var _de=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ao(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return so(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=mde(r,this.options||{},kde()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(yde),this.addDetector(bde),this.addDetector(xde),this.addDetector(wde),this.addDetector(Cde),this.addDetector(Sde),this.addDetector(Ade),this.addDetector(Ide)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();_de.type="languageDetector";function HC(e){return HC=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},HC(e)}var eW=[],Ede=eW.forEach,Tde=eW.slice;function VC(e){return Ede.call(Tde.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function tW(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":HC(XMLHttpRequest))==="object"}function Pde(e){return!!e&&typeof e.then=="function"}function Rde(e){return Pde(e)?e:Promise.resolve(e)}function Ode(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Em={exports:{}},rp={exports:{}},GP;function Mde(){return GP||(GP=1,function(e,t){var n=typeof self<"u"?self:tn,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function u(y){return y&&DataView.prototype.isPrototypeOf(y)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(y){return y&&d.indexOf(Object.prototype.toString.call(y))>-1};function I(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(y))throw new TypeError("Invalid character in header field name");return y.toLowerCase()}function P(y){return typeof y!="string"&&(y=String(y)),y}function F(y){var _={next:function(){var $=y.shift();return{done:$===void 0,value:$}}};return c.iterable&&(_[Symbol.iterator]=function(){return _}),_}function B(y){this.map={},y instanceof B?y.forEach(function(_,$){this.append($,_)},this):Array.isArray(y)?y.forEach(function(_){this.append(_[0],_[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(_){this.append(_,y[_])},this)}B.prototype.append=function(y,_){y=I(y),_=P(_);var $=this.map[y];this.map[y]=$?$+", "+_:_},B.prototype.delete=function(y){delete this.map[I(y)]},B.prototype.get=function(y){return y=I(y),this.has(y)?this.map[y]:null},B.prototype.has=function(y){return this.map.hasOwnProperty(I(y))},B.prototype.set=function(y,_){this.map[I(y)]=P(_)},B.prototype.forEach=function(y,_){for(var $ in this.map)this.map.hasOwnProperty($)&&y.call(_,this.map[$],$,this)},B.prototype.keys=function(){var y=[];return this.forEach(function(_,$){y.push($)}),F(y)},B.prototype.values=function(){var y=[];return this.forEach(function(_){y.push(_)}),F(y)},B.prototype.entries=function(){var y=[];return this.forEach(function(_,$){y.push([$,_])}),F(y)},c.iterable&&(B.prototype[Symbol.iterator]=B.prototype.entries);function N(y){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}function D(y){return new Promise(function(_,$){y.onload=function(){_(y.result)},y.onerror=function(){$(y.error)}})}function T(y){var _=new FileReader,$=D(_);return _.readAsArrayBuffer(y),$}function M(y){var _=new FileReader,$=D(_);return _.readAsText(y),$}function O(y){for(var _=new Uint8Array(y),$=new Array(_.length),z=0;z<_.length;z++)$[z]=String.fromCharCode(_[z]);return $.join("")}function L(y){if(y.slice)return y.slice(0);var _=new Uint8Array(y.byteLength);return _.set(new Uint8Array(y)),_.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(y){this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:c.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:c.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():c.arrayBuffer&&c.blob&&u(y)?(this._bodyArrayBuffer=L(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||p(y))?this._bodyArrayBuffer=L(y):this._bodyText=y=Object.prototype.toString.call(y):this._bodyText="",this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var y=N(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(T)}),this.text=function(){var y=N(this);if(y)return y;if(this._bodyBlob)return M(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(y){var _=y.toUpperCase();return b.indexOf(_)>-1?_:y}function g(y,_){_=_||{};var $=_.body;if(y instanceof g){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,_.headers||(this.headers=new B(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!$&&y._bodyInit!=null&&($=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=_.credentials||this.credentials||"same-origin",(_.headers||!this.headers)&&(this.headers=new B(_.headers)),this.method=C(_.method||this.method||"GET"),this.mode=_.mode||this.mode||null,this.signal=_.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&$)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody($)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function w(y){var _=new FormData;return y.trim().split("&").forEach(function($){if($){var z=$.split("="),H=z.shift().replace(/\+/g," "),X=z.join("=").replace(/\+/g," ");_.append(decodeURIComponent(H),decodeURIComponent(X))}}),_}function f(y){var _=new B,$=y.replace(/\r?\n[\t ]+/g," ");return $.split(/\r?\n/).forEach(function(z){var H=z.split(":"),X=H.shift().trim();if(X){var Q=H.join(":").trim();_.append(X,Q)}}),_}x.call(g.prototype);function m(y,_){_||(_={}),this.type="default",this.status=_.status===void 0?200:_.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _?_.statusText:"OK",this.headers=new B(_.headers),this.url=_.url||"",this._initBody(y)}x.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new B(this.headers),url:this.url})},m.error=function(){var y=new m(null,{status:0,statusText:""});return y.type="error",y};var E=[301,302,303,307,308];m.redirect=function(y,_){if(E.indexOf(_)===-1)throw new RangeError("Invalid status code");return new m(null,{status:_,headers:{location:y}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(_,$){this.message=_,this.name=$;var z=Error(_);this.stack=z.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function S(y,_){return new Promise(function($,z){var H=new g(y,_);if(H.signal&&H.signal.aborted)return z(new a.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function Q(){X.abort()}X.onload=function(){var re={status:X.status,statusText:X.statusText,headers:f(X.getAllResponseHeaders()||"")};re.url="responseURL"in X?X.responseURL:re.headers.get("X-Request-URL");var ue="response"in X?X.response:X.responseText;$(new m(ue,re))},X.onerror=function(){z(new TypeError("Network request failed"))},X.ontimeout=function(){z(new TypeError("Network request failed"))},X.onabort=function(){z(new a.DOMException("Aborted","AbortError"))},X.open(H.method,H.url,!0),H.credentials==="include"?X.withCredentials=!0:H.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&c.blob&&(X.responseType="blob"),H.headers.forEach(function(re,ue){X.setRequestHeader(ue,re)}),H.signal&&(H.signal.addEventListener("abort",Q),X.onreadystatechange=function(){X.readyState===4&&H.signal.removeEventListener("abort",Q)}),X.send(typeof H._bodyInit>"u"?null:H._bodyInit)})}return S.polyfill=!0,o.fetch||(o.fetch=S,o.Headers=B,o.Request=g,o.Response=m),a.Headers=B,a.Request=g,a.Response=m,a.fetch=S,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(rp,rp.exports)),rp.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof tn<"u"&&tn.fetch?n=tn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Ode<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||Mde();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Em,Em.exports);const nW=Em.exports,YP=YM({__proto__:null,default:nW},[Em.exports]);function Tm(e){return Tm=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},Tm(e)}var Ea;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Ea=global.fetch:typeof window<"u"&&window.fetch?Ea=window.fetch:Ea=fetch);var Ah;tW()&&(typeof global<"u"&&global.XMLHttpRequest?Ah=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ah=window.XMLHttpRequest));var Pm;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Pm=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Pm=window.ActiveXObject));!Ea&&YP&&!Ah&&!Pm&&(Ea=nW||YP);typeof Ea!="function"&&(Ea=void 0);var zC=function(t,n){if(n&&Tm(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},ZP=function(t,n,r){Ea(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(o){r(null,{status:i.status,data:o})}).catch(r)}).catch(r)},XP=!1,Lde=function(t,n,r,i){t.queryStringParams&&(n=zC(n,t.queryStringParams));var o=VC({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(o["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=VC({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},XP?{}:a);try{ZP(n,c,i)}catch(u){if(!a||Object.keys(a).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(a).forEach(function(d){delete c[d]}),ZP(n,c,i),XP=!0}catch(d){i(d)}}},Dde=function(t,n,r,i){r&&Tm(r)==="object"&&(r=zC("",r).slice(1)),t.queryStringParams&&(n=zC(n,t.queryStringParams));try{var o;Ah?o=new Ah:o=new Pm("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(u){console&&console.log(u)}},$de=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Ea&&n.indexOf("file:")!==0)return Lde(t,n,r,i);if(tW()||typeof ActiveXObject=="function")return Dde(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ih(e){return Ih=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},Ih(e)}function Nde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UP(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Nde(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Fde(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=VC(i,this.options||{},Hde()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,i)),u=Rde(u),u.then(function(d){if(!d)return a(null,{});var p=c.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(p,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(c,u);this.options.request(this.options,n,d,function(p,I){if(I&&(I.status>=500&&I.status<600||!I.status))return r("failed loading "+n+"; status code: "+I.status,!0);if(I&&I.status>=400&&I.status<500)return r("failed loading "+n+"; status code: "+I.status,!1);if(!I&&p&&p.message&&p.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+p.message,!0);if(p)return r(p,!1);var P,F;try{typeof I.data=="string"?P=a.options.parse(I.data,i,o):P=I.data}catch{F="failed parsing "+n+" to json"}if(F)return r(F,!1);r(null,P)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(!!this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,i,o),d=0,p=[],I=[];n.forEach(function(P){var F=c.options.addPath;typeof c.options.addPath=="function"&&(F=c.options.addPath(P,r));var B=c.services.interpolator.interpolate(F,{lng:P,ns:r});c.options.request(c.options,B,u,function(N,D){d+=1,p.push(N),I.push(D),d===n.length&&typeof a=="function"&&a(p,I)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var u=[],d=function(I){var P=o.toResolveHierarchy(I);P.forEach(function(F){u.indexOf(F)<0&&u.push(F)})};d(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(p){return d(p)}),u.forEach(function(p){n.allOptions.ns.forEach(function(I){i.read(p,I,"read",null,null,function(P,F){P&&a.warn("loading namespace ".concat(I," for language ").concat(p," failed"),P),!P&&F&&a.log("loaded namespace ".concat(I," for language ").concat(p),F),i.loaded("".concat(p,"|").concat(I),P,F)})})})}}}]),e}();Vde.type="backend";var bu={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function jde(e){kt(1,arguments);var t=aW(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ru(n);return r}var Gde=6048e5;function sW(e){kt(1,arguments);var t=Dt(e),n=ru(t).getTime()-jde(t).getTime();return Math.round(n/Gde)+1}function vk(e,t){var n,r,i,o,a,c,u,d;kt(1,arguments);var p=Dt(e),I=p.getUTCFullYear(),P=$l(),F=an((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:P.firstWeekContainsDate)!==null&&r!==void 0?r:(u=P.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=new Date(0);B.setUTCFullYear(I+1,0,F),B.setUTCHours(0,0,0,0);var N=Na(B,t),D=new Date(0);D.setUTCFullYear(I,0,F),D.setUTCHours(0,0,0,0);var T=Na(D,t);return p.getTime()>=N.getTime()?I+1:p.getTime()>=T.getTime()?I:I-1}function Yde(e,t){var n,r,i,o,a,c,u,d;kt(1,arguments);var p=$l(),I=an((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(u=p.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),P=vk(e,t),F=new Date(0);F.setUTCFullYear(P,0,I),F.setUTCHours(0,0,0,0);var B=Na(F,t);return B}var Zde=6048e5;function lW(e,t){kt(1,arguments);var n=Dt(e),r=Na(n,t).getTime()-Yde(n,t).getTime();return Math.round(r/Zde)+1}function kn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return kn(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):kn(r+1,2)},d:function(t,n){return kn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return kn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return kn(t.getUTCHours(),n.length)},m:function(t,n){return kn(t.getUTCMinutes(),n.length)},s:function(t,n){return kn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return kn(o,n.length)}};const Xa=Xde;var Ul={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ude={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Xa.y(t,n)},Y:function(t,n,r,i){var o=vk(t,i),a=o>0?o:1-o;if(n==="YY"){var c=a%100;return kn(c,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):kn(a,n.length)},R:function(t,n){var r=aW(t);return kn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return kn(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return kn(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return kn(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Xa.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return kn(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=lW(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):kn(o,n.length)},I:function(t,n,r){var i=sW(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):kn(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Xa.d(t,n)},D:function(t,n,r){var i=zde(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):kn(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return kn(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return kn(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return kn(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Ul.noon:i===0?o=Ul.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Ul.evening:i>=12?o=Ul.afternoon:i>=4?o=Ul.morning:o=Ul.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Xa.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Xa.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):kn(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):kn(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Xa.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Xa.s(t,n)},S:function(t,n){return Xa.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return JP(a);case"XXXX":case"XX":return Ys(a);case"XXXXX":case"XXX":default:return Ys(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return JP(a);case"xxxx":case"xx":return Ys(a);case"xxxxx":case"xxx":default:return Ys(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+KP(a,":");case"OOOO":default:return"GMT"+Ys(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+KP(a,":");case"zzzz":default:return"GMT"+Ys(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return kn(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return kn(a,n.length)}};function KP(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+kn(o,2)}function JP(e,t){if(e%60===0){var n=e>0?"-":"+";return n+kn(Math.abs(e)/60,2)}return Ys(e,t)}function Ys(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=kn(Math.floor(i/60),2),a=kn(i%60,2);return r+o+n+a}const Kde=Ude;var QP=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},cW=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Jde=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return QP(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",QP(i,n)).replace("{{time}}",cW(o,n))},Qde={p:cW,P:Jde};const jC=Qde;function Rm(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var qde=["D","DD"],ehe=["YY","YYYY"];function uW(e){return qde.indexOf(e)!==-1}function dW(e){return ehe.indexOf(e)!==-1}function Om(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var the={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nhe=function(t,n,r){var i,o=the[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const rhe=nhe;var ihe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ohe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ahe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},she={date:eo({formats:ihe,defaultWidth:"full"}),time:eo({formats:ohe,defaultWidth:"full"}),dateTime:eo({formats:ahe,defaultWidth:"full"})};const lhe=she;var che={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uhe=function(t,n,r,i){return che[t]};const dhe=uhe;var hhe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fhe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},phe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ghe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mhe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vhe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yhe=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},bhe={ordinalNumber:yhe,era:gr({values:hhe,defaultWidth:"wide"}),quarter:gr({values:fhe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gr({values:phe,defaultWidth:"wide"}),day:gr({values:ghe,defaultWidth:"wide"}),dayPeriod:gr({values:mhe,defaultWidth:"wide",formattingValues:vhe,defaultFormattingWidth:"wide"})};const xhe=bhe;var whe=/^(\d+)(th|st|nd|rd)?/i,Che=/\d+/i,She={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ahe={any:[/^b/i,/^(a|c)/i]},Ihe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},khe={any:[/1/i,/2/i,/3/i,/4/i]},_he={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ehe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},The={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Phe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Rhe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ohe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Mhe={ordinalNumber:db({matchPattern:whe,parsePattern:Che,valueCallback:function(t){return parseInt(t,10)}}),era:mr({matchPatterns:She,defaultMatchWidth:"wide",parsePatterns:Ahe,defaultParseWidth:"any"}),quarter:mr({matchPatterns:Ihe,defaultMatchWidth:"wide",parsePatterns:khe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:mr({matchPatterns:_he,defaultMatchWidth:"wide",parsePatterns:Ehe,defaultParseWidth:"any"}),day:mr({matchPatterns:The,defaultMatchWidth:"wide",parsePatterns:Phe,defaultParseWidth:"any"}),dayPeriod:mr({matchPatterns:Rhe,defaultMatchWidth:"any",parsePatterns:Ohe,defaultParseWidth:"any"})};const Lhe=Mhe;var Dhe={code:"en-US",formatDistance:rhe,formatLong:lhe,formatRelative:dhe,localize:xhe,match:Lhe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const hW=Dhe;var $he=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nhe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fhe=/^'([^]*?)'?$/,Bhe=/''/g,Whe=/[a-zA-Z]/;function qP(e,t,n){var r,i,o,a,c,u,d,p,I,P,F,B,N,D,T,M,O,L;kt(2,arguments);var x=String(t),b=$l(),C=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:b.locale)!==null&&r!==void 0?r:hW,g=an((o=(a=(c=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&c!==void 0?c:b.firstWeekContainsDate)!==null&&a!==void 0?a:(I=b.locale)===null||I===void 0||(P=I.options)===null||P===void 0?void 0:P.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=an((F=(B=(N=(D=n==null?void 0:n.weekStartsOn)!==null&&D!==void 0?D:n==null||(T=n.locale)===null||T===void 0||(M=T.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&N!==void 0?N:b.weekStartsOn)!==null&&B!==void 0?B:(O=b.locale)===null||O===void 0||(L=O.options)===null||L===void 0?void 0:L.weekStartsOn)!==null&&F!==void 0?F:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var f=Dt(e);if(!iW(f))throw new RangeError("Invalid time value");var m=Rm(f),E=oW(f,m),S={firstWeekContainsDate:g,weekStartsOn:w,locale:C,_originalDate:f},y=x.match(Nhe).map(function(_){var $=_[0];if($==="p"||$==="P"){var z=jC[$];return z(_,C.formatLong)}return _}).join("").match($he).map(function(_){if(_==="''")return"'";var $=_[0];if($==="'")return Hhe(_);var z=Kde[$];if(z)return!(n!=null&&n.useAdditionalWeekYearTokens)&&dW(_)&&Om(_,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&uW(_)&&Om(_,t,String(e)),z(E,_,C.localize,S);if($.match(Whe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return _}).join("");return y}function Hhe(e){var t=e.match(Fhe);return t?t[1].replace(Bhe,"'"):e}var Vhe=6e4;function GC(e,t){kt(2,arguments);var n=an(t);return mk(e,n*Vhe)}var zhe=36e5;function jhe(e,t){kt(2,arguments);var n=an(t);return mk(e,n*zhe)}function xu(e,t){kt(2,arguments);var n=Dt(e),r=an(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function yk(e,t){kt(2,arguments);var n=an(t),r=n*7;return xu(e,r)}function ko(e,t){kt(2,arguments);var n=Dt(e),r=an(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function fW(e,t){kt(2,arguments);var n=an(t),r=n*3;return ko(e,r)}function iu(e,t){kt(2,arguments);var n=an(t);return ko(e,n*12)}function Ghe(e,t){kt(2,arguments);var n=an(t);return xu(e,-n)}function Yhe(e,t){kt(2,arguments);var n=an(t);return yk(e,-n)}function ou(e,t){kt(2,arguments);var n=an(t);return ko(e,-n)}function Zhe(e,t){kt(2,arguments);var n=an(t);return fW(e,-n)}function kh(e,t){kt(2,arguments);var n=an(t);return iu(e,-n)}function fx(e){kt(1,arguments);var t=Dt(e),n=t.getSeconds();return n}function Pi(e){kt(1,arguments);var t=Dt(e),n=t.getMinutes();return n}function Ri(e){kt(1,arguments);var t=Dt(e),n=t.getHours();return n}function Xhe(e){kt(1,arguments);var t=Dt(e),n=t.getDay();return n}function eR(e){kt(1,arguments);var t=Dt(e),n=t.getDate();return n}function pW(e,t){var n,r,i,o,a,c,u,d;kt(1,arguments);var p=$l(),I=an((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&r!==void 0?r:(u=p.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var P=Dt(e),F=P.getDay(),B=(F=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Khe(e){kt(1,arguments);var t=Uhe(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Mm(n);return r}var Jhe=6048e5;function Qhe(e){kt(1,arguments);var t=Dt(e),n=Mm(t).getTime()-Khe(t).getTime();return Math.round(n/Jhe)+1}function Kr(e){kt(1,arguments);var t=Dt(e),n=t.getMonth();return n}function vc(e){kt(1,arguments);var t=Dt(e),n=Math.floor(t.getMonth()/3)+1;return n}function cn(e){return kt(1,arguments),Dt(e).getFullYear()}function YC(e){kt(1,arguments);var t=Dt(e),n=t.getTime();return n}function qhe(e,t){kt(2,arguments);var n=Dt(e),r=an(t);return n.setSeconds(r),n}function Fd(e,t){kt(2,arguments);var n=Dt(e),r=an(t);return n.setMinutes(r),n}function Bd(e,t){kt(2,arguments);var n=Dt(e),r=an(t);return n.setHours(r),n}function efe(e){kt(1,arguments);var t=Dt(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Zi(e,t){kt(2,arguments);var n=Dt(e),r=an(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var c=efe(a);return n.setMonth(r,Math.min(o,c)),n}function cd(e,t){kt(2,arguments);var n=Dt(e),r=an(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Zi(n,n.getMonth()+o*3)}function Lm(e,t){kt(2,arguments);var n=Dt(e),r=an(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Bp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bp=function(n){return typeof n}:Bp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bp(e)}function tR(e){kt(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Bp(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Dt(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function Wp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wp=function(n){return typeof n}:Wp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wp(e)}function nR(e){kt(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Wp(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Dt(r);(n===void 0||nr.getTime()}function xa(e,t){kt(2,arguments);var n=Dt(e),r=Dt(t);return n.getTime()=r&&n<=i}function cfe(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Hp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hp=function(n){return typeof n}:Hp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hp(e)}function vW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&UC(e,t)}function UC(e,t){return UC=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},UC(e,t)}function yW(e){var t=dfe();return function(){var r=Nm(e),i;if(t){var o=Nm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ufe(this,i)}}function ufe(e,t){return t&&(Hp(t)==="object"||typeof t=="function")?t:KC(e)}function KC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dfe(){if(typeof Reflect>"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 Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nm(e)}function bk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(e,t){for(var n=0;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 Fm(e){return Fm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fm(e)}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sfe=function(e){bfe(n,e);var t=xfe(n);function n(){var r;vfe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,c=e>=o%100;i=e+a-(c?100:0)}return n?i:1-i}function CW(e){return e%400===0||e%4===0&&e%100!==0}function zp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zp=function(n){return typeof n}:zp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zp(e)}function Ife(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(e,t){for(var n=0;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 Wm(e){return Wm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wm(e)}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rfe=function(e){_fe(n,e);var t=Efe(n);function n(){var r;Ife(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(i,o,a){var c=i.getUTCFullYear();if(a.isTwoDigitYear){var u=wW(a.year,c);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var d=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(d,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function jp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jp=function(n){return typeof n}:jp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jp(e)}function Ofe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cR(e,t){for(var n=0;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 Hm(e){return Hm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hm(e)}function uR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ffe=function(e){Lfe(n,e);var t=Dfe(n);function n(){var r;Ofe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(i,o,a,c){var u=vk(i,c);if(a.isTwoDigitYear){var d=wW(a.year,u);return i.setUTCFullYear(d,0,c.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Na(i,c)}var p=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(p,0,c.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Na(i,c)}}]),n}(Cn);function Gp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gp=function(n){return typeof n}:Gp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gp(e)}function Bfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(e,t){for(var n=0;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 Vm(e){return Vm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vm(e)}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gfe=function(e){Hfe(n,e);var t=Vfe(n);function n(){var r;Bfe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 zm(e){return zm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zm(e)}function pR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qfe=function(e){Xfe(n,e);var t=Ufe(n);function n(){var r;Yfe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jm(e)}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ope=function(e){tpe(n,e);var t=npe(n);function n(){var r;qfe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function Xp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xp=function(n){return typeof n}:Xp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xp(e)}function ape(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vR(e,t){for(var n=0;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 Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gm(e)}function yR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hpe=function(e){lpe(n,e);var t=cpe(n);function n(){var r;ape(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function Up(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Up=function(n){return typeof n}:Up=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Up(e)}function fpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){for(var n=0;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 Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ym(e)}function xR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bpe=function(e){gpe(n,e);var t=mpe(n);function n(){var r;fpe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function Kp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kp=function(n){return typeof n}:Kp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kp(e)}function xpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wR(e,t){for(var n=0;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 Zm(e){return Zm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zm(e)}function CR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kpe=function(e){Cpe(n,e);var t=Spe(n);function n(){var r;xpe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function _pe(e,t,n){kt(2,arguments);var r=Dt(e),i=an(t),o=lW(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Jp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jp=function(n){return typeof n}:Jp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jp(e)}function Epe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SR(e,t){for(var n=0;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 Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xm(e)}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lpe=function(e){Ppe(n,e);var t=Rpe(n);function n(){var r;Epe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=53}},{key:"set",value:function(i,o,a,c){return Na(_pe(i,a,c),c)}}]),n}(Cn);function Dpe(e,t){kt(2,arguments);var n=Dt(e),r=an(t),i=sW(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Qp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qp=function(n){return typeof n}:Qp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qp(e)}function $pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IR(e,t){for(var n=0;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 Um(e){return Um=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Um(e)}function kR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vpe=function(e){Fpe(n,e);var t=Bpe(n);function n(){var r;$pe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=53}},{key:"set",value:function(i,o,a){return ru(Dpe(i,a))}}]),n}(Cn);function qp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qp=function(n){return typeof n}:qp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qp(e)}function zpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _R(e,t){for(var n=0;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 Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Km(e)}function px(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Upe=[31,28,31,30,31,30,31,31,30,31,30,31],Kpe=[31,29,31,30,31,30,31,31,30,31,30,31],Jpe=function(e){Gpe(n,e);var t=Ype(n);function n(){var r;zpe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=Kpe[u]:o>=1&&o<=Upe[u]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function tg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tg=function(n){return typeof n}:tg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tg(e)}function Qpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var n=0;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 Jm(e){return Jm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Jm(e)}function gx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ige=function(e){ege(n,e);var t=tge(n);function n(){var r;Qpe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function Ak(e,t,n){var r,i,o,a,c,u,d,p;kt(2,arguments);var I=$l(),P=an((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:I.weekStartsOn)!==null&&i!==void 0?i:(d=I.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&r!==void 0?r:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var F=Dt(e),B=an(t),N=F.getUTCDay(),D=B%7,T=(D+7)%7,M=(T"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 Qm(e){return Qm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qm(e)}function PR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dge=function(e){sge(n,e);var t=lge(n);function n(){var r;oge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=6}},{key:"set",value:function(i,o,a,c){return i=Ak(i,a,c),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function ig(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ig=function(n){return typeof n}:ig=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ig(e)}function hge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(e,t){for(var n=0;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 qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qm(e)}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yge=function(e){pge(n,e);var t=gge(n);function n(){var r;hge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=6}},{key:"set",value:function(i,o,a,c){return i=Ak(i,a,c),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function og(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?og=function(n){return typeof n}:og=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},og(e)}function bge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(e,t){for(var n=0;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 ev(e){return ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ev(e)}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ige=function(e){wge(n,e);var t=Cge(n);function n(){var r;bge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=6}},{key:"set",value:function(i,o,a,c){return i=Ak(i,a,c),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function kge(e,t){kt(2,arguments);var n=an(t);n%7===0&&(n=n-7);var r=1,i=Dt(e),o=i.getUTCDay(),a=n%7,c=(a+7)%7,u=(c"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 tv(e){return tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tv(e)}function $R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mge=function(e){Tge(n,e);var t=Pge(n);function n(){var r;_ge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=7}},{key:"set",value:function(i,o,a){return i=kge(i,a),i.setUTCHours(0,0,0,0),i}}]),n}(Cn);function sg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sg=function(n){return typeof n}:sg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sg(e)}function Lge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(e,t){for(var n=0;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 nv(e){return nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nv(e)}function FR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wge=function(e){$ge(n,e);var t=Nge(n);function n(){var r;Lge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 rv(e){return rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rv(e)}function WR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zge=function(e){zge(n,e);var t=jge(n);function n(){var r;Hge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},iv(e)}function VR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eme=function(e){Kge(n,e);var t=Jge(n);function n(){var r;Xge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 ov(e){return ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ov(e)}function jR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sme=function(e){rme(n,e);var t=ime(n);function n(){var r;tme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=12}},{key:"set",value:function(i,o,a){var c=i.getUTCHours()>=12;return c&&a<12?i.setUTCHours(a+12,0,0,0):!c&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Cn);function dg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dg=function(n){return typeof n}:dg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dg(e)}function lme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GR(e,t){for(var n=0;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 av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},av(e)}function YR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pme=function(e){ume(n,e);var t=dme(n);function n(){var r;lme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n}(Cn);function hg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hg=function(n){return typeof n}:hg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hg(e)}function gme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(e,t){for(var n=0;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 sv(e){return sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sv(e)}function XR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wme=function(e){vme(n,e);var t=yme(n);function n(){var r;gme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=11}},{key:"set",value:function(i,o,a){var c=i.getUTCHours()>=12;return c&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Cn);function fg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fg=function(n){return typeof n}:fg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fg(e)}function Cme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(e,t){for(var n=0;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 lv(e){return lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lv(e)}function KR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eme=function(e){Ame(n,e);var t=Ime(n);function n(){var r;Cme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=24}},{key:"set",value:function(i,o,a){var c=a<=24?a%24:a;return i.setUTCHours(c,0,0,0),i}}]),n}(Cn);function pg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pg=function(n){return typeof n}:pg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pg(e)}function Tme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(e,t){for(var n=0;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 cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cv(e)}function QR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dme=function(e){Rme(n,e);var t=Ome(n);function n(){var r;Tme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n}(Cn);function gg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gg=function(n){return typeof n}:gg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gg(e)}function $me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qR(e,t){for(var n=0;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 uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uv(e)}function eO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vme=function(e){Fme(n,e);var t=Bme(n);function n(){var r;$me(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n}(Cn);function mg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mg=function(n){return typeof n}:mg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mg(e)}function zme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tO(e,t){for(var n=0;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 dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dv(e)}function nO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ume=function(e){Gme(n,e);var t=Yme(n);function n(){var r;zme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}function iO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nve=function(e){Qme(n,e);var t=qme(n);function n(){var r;Kme(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 fv(e){return fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fv(e)}function aO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cve=function(e){ove(n,e);var t=ave(n);function n(){var r;rve(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 pv(e){return pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pv(e)}function lO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mve=function(e){hve(n,e);var t=fve(n);function n(){var r;uve(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}function uO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sve=function(e){bve(n,e);var t=xve(n);function n(){var r;vve(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Ive(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:i}}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 o=!0,a=!1,c;return{s:function(){n=e[Symbol.iterator]()},n:function(){var d=n.next();return o=d.done,d},e:function(d){a=!0,c=d},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw c}}}}function Ive(e,t){if(!!e){if(typeof e=="string")return hO(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 hO(e,t)}}function hO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=an((B=(N=(D=(T=r==null?void 0:r.weekStartsOn)!==null&&T!==void 0?T:r==null||(M=r.locale)===null||M===void 0||(O=M.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&D!==void 0?D:g.weekStartsOn)!==null&&N!==void 0?N:(L=g.locale)===null||L===void 0||(x=L.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&B!==void 0?B:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(C==="")return b===""?Dt(n):new Date(NaN);var E={firstWeekContainsDate:f,weekStartsOn:m,locale:w},S=[new pfe],y=C.match(_ve).map(function(Y){var ie=Y[0];if(ie in jC){var he=jC[ie];return he(Y,w.formatLong)}return Y}).join("").match(kve),_=[],$=dO(y),z;try{var H=function(){var ie=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&dW(ie)&&Om(ie,C,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&uW(ie)&&Om(ie,C,e);var he=ie[0],fe=Ave[he];if(fe){var Ce=fe.incompatibleTokens;if(Array.isArray(Ce)){var Pe=_.find(function(be){return Ce.includes(be.token)||be.token===he});if(Pe)throw new RangeError("The format string mustn't contain `".concat(Pe.fullToken,"` and `").concat(ie,"` at the same time"))}else if(fe.incompatibleTokens==="*"&&_.length>0)throw new RangeError("The format string mustn't contain `".concat(ie,"` and any other token at the same time"));_.push({token:he,fullToken:ie});var we=fe.run(b,ie,w.match,E);if(!we)return{v:new Date(NaN)};S.push(we.setter),b=we.rest}else{if(he.match(Rve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+he+"`");if(ie==="''"?ie="'":he==="'"&&(ie=Mve(ie)),b.indexOf(ie)===0)b=b.slice(ie.length);else return{v:new Date(NaN)}}};for($.s();!(z=$.n()).done;){var X=H();if(wg(X)==="object")return X.v}}catch(Y){$.e(Y)}finally{$.f()}if(b.length>0&&Pve.test(b))return new Date(NaN);var Q=S.map(function(Y){return Y.priority}).sort(function(Y,ie){return ie-Y}).filter(function(Y,ie,he){return he.indexOf(Y)===ie}).map(function(Y){return S.filter(function(ie){return ie.priority===Y}).sort(function(ie,he){return he.subPriority-ie.subPriority})}).map(function(Y){return Y[0]}),re=Dt(n);if(isNaN(re.getTime()))return new Date(NaN);var ue=oW(re,Rm(re)),le={},ve=dO(Q),V;try{for(ve.s();!(V=ve.n()).done;){var Z=V.value;if(!Z.validate(ue,E))return new Date(NaN);var ce=Z.set(ue,le,E);Array.isArray(ce)?(ue=ce[0],cfe(le,ce[1])):ue=ce}}catch(Y){ve.e(Y)}finally{ve.f()}return ue}function Mve(e){return e.match(Eve)[1].replace(Tve,"'")}function Lve(e,t){var n;kt(1,arguments);var r=an((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Fve(e),o;if(i.date){var a=Bve(i.date,r);o=Wve(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c=o.getTime(),u=0,d;if(i.time&&(u=Hve(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(d=Vve(i.timezone),isNaN(d))return new Date(NaN)}else{var p=new Date(c+u),I=new Date(0);return I.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),I.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),I}return new Date(c+u+d)}var ip={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Dve=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$ve=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Nve=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Fve(e){var t={},n=e.split(ip.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ip.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ip.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=ip.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Bve(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Wve(e,t){if(t===null)return new Date(NaN);var n=e.match(Dve);if(!n)return new Date(NaN);var r=!!n[4],i=Uu(n[1]),o=Uu(n[2])-1,a=Uu(n[3]),c=Uu(n[4]),u=Uu(n[5])-1;if(r)return Zve(t,c,u)?zve(t,c,u):new Date(NaN);var d=new Date(0);return!Gve(t,o,a)||!Yve(t,i)?new Date(NaN):(d.setUTCFullYear(t,o,Math.max(i,a)),d)}function Uu(e){return e?parseInt(e):1}function Hve(e){var t=e.match($ve);if(!t)return NaN;var n=mx(t[1]),r=mx(t[2]),i=mx(t[3]);return Xve(n,r,i)?n*Ck+r*wk+i*1e3:NaN}function mx(e){return e&&parseFloat(e.replace(",","."))||0}function Vve(e){if(e==="Z")return 0;var t=e.match(Nve);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Uve(r,i)?n*(r*Ck+i*wk):NaN}function zve(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var jve=[31,null,31,30,31,30,31,31,30,31,30,31];function SW(e){return e%400===0||e%4===0&&e%100!==0}function Gve(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jve[t]||(SW(e)?29:28))}function Yve(e,t){return t>=1&&t<=(SW(e)?366:365)}function Zve(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Xve(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Uve(e,t){return t>=0&&t<=59}function Kve(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iS(e,t)}function iS(e,t){return iS=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},iS(e,t)}function Jve(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 fO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qve(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function qve(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Qve(e,t,n))return!0;e=e.parentNode||e.host}return e}function eye(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var tye=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function nye(e){return e===void 0&&(e=0),function(){return++e}}var rye=nye(),oS,op={},vx={},iye=["touchstart","touchmove"],oye="ignore-react-onclickoutside";function pO(e,t){var n=null,r=iye.indexOf(t)!==-1;return r&&oS&&(n={passive:!e.props.preventDefault}),n}function pb(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Kve(a,o);function a(u){var d;return d=o.call(this,u)||this,d.__outsideClickHandler=function(p){if(typeof d.__clickOutsideHandlerProp=="function"){d.__clickOutsideHandlerProp(p);return}var I=d.getInstance();if(typeof I.props.handleClickOutside=="function"){I.props.handleClickOutside(p);return}if(typeof I.handleClickOutside=="function"){I.handleClickOutside(p);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},d.__getComponentNode=function(){var p=d.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(p):typeof p.setClickOutsideRef=="function"?p.setClickOutsideRef():Ls.exports.findDOMNode(p)},d.enableOnClickOutside=function(){if(!(typeof document>"u"||vx[d._uid])){typeof oS>"u"&&(oS=tye()),vx[d._uid]=!0;var p=d.props.eventTypes;p.forEach||(p=[p]),op[d._uid]=function(I){if(d.componentNode!==null&&(d.props.preventDefault&&I.preventDefault(),d.props.stopPropagation&&I.stopPropagation(),!(d.props.excludeScrollbar&&eye(I)))){var P=I.composed&&I.composedPath&&I.composedPath().shift()||I.target;qve(P,d.componentNode,d.props.outsideClickIgnoreClass)===document&&d.__outsideClickHandler(I)}},p.forEach(function(I){document.addEventListener(I,op[d._uid],pO(fO(d),I))})}},d.disableOnClickOutside=function(){delete vx[d._uid];var p=op[d._uid];if(p&&typeof document<"u"){var I=d.props.eventTypes;I.forEach||(I=[I]),I.forEach(function(P){return document.removeEventListener(P,p,pO(fO(d),P))}),delete op[d._uid]}},d.getRef=function(p){return d.instanceRef=p},d._uid=rye(),d}var c=a.prototype;return c.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var d=this.instanceRef;return d.getInstance?d.getInstance():d},c.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var d=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(d),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},c.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},c.componentWillUnmount=function(){this.disableOnClickOutside()},c.render=function(){var d=this.props;d.excludeScrollbar;var p=Jve(d,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?p.ref=this.getRef:p.wrappedRef=this.getRef,p.disableOnClickOutside=this.disableOnClickOutside,p.enableOnClickOutside=this.enableOnClickOutside,de.exports.createElement(e,p)},a}(de.exports.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:oye,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var AW=de.exports.createContext(),IW=de.exports.createContext();function aye(e){var t=e.children,n=de.exports.useState(null),r=n[0],i=n[1],o=de.exports.useRef(!1);de.exports.useEffect(function(){return function(){o.current=!0}},[]);var a=de.exports.useCallback(function(c){o.current||i(c)},[]);return Se(AW.Provider,{value:r,children:Se(IW.Provider,{value:a,children:t})})}var kW=function(t){return Array.isArray(t)?t[0]:t},_W=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"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}}();return function(){var n,r=sS(e);if(t){var i=sS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gye(this,n)}}function lS(e){return function(t){if(Array.isArray(t))return yx(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(!!t){if(typeof t=="string")return yx(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yx(t,n)}}(e)||function(){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 yx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,c=t.includeDateIntervals,u=t.filterDate;return vb(e,{minDate:n,maxDate:r})||i&&i.some(function(d){return oi(e,d)})||o&&o.some(function(d){var p=d.start,I=d.end;return Eh(e,{start:p,end:I})})||a&&!a.some(function(d){return oi(e,d)})||c&&!c.some(function(d){var p=d.start,I=d.end;return Eh(e,{start:p,end:I})})||u&&!u(Yn(e))||!1}function Ek(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,a=i.end;return Eh(e,{start:o,end:a})}):n&&n.some(function(i){return oi(e,i)})||!1}function OW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return vb(e,{minDate:gW(n),maxDate:nfe(r)})||i&&i.some(function(c){return hs(e,c)})||o&&!o.some(function(c){return hs(e,c)})||a&&!a(Yn(e))||!1}function Cye(e,t,n,r){var i=cn(e),o=Kr(e),a=cn(t),c=Kr(t),u=cn(r);return i===a&&i===u?o<=n&&n<=c:i=n||ui:void 0}function Sye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return vb(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return vv(e,c)})||o&&!o.some(function(c){return vv(e,c)})||a&&!a(Yn(e))||!1}function MW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,c=new Date(e,0,1);return vb(c,{minDate:mW(n),maxDate:rfe(r)})||i&&i.some(function(u){return mv(c,u)})||o&&!o.some(function(u){return mv(c,u)})||a&&!a(Yn(c))||!1}function Aye(e,t,n,r){var i=cn(e),o=vc(e),a=cn(t),c=vc(t),u=cn(r);return i===a&&i===u?o<=n&&n<=c:i=n||ui:void 0}function vb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&_h(e,n)<0||r&&_h(e,r)>0}function CO(e,t){return t.some(function(n){return Ri(n)===Ri(e)&&Pi(n)===Pi(e)})}function SO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&CO(e,n)||r&&!CO(e,r)||i&&!i(e)||!1}function AO(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Yn(),a=Bd(Fd(o,Pi(e)),Ri(e)),c=Bd(Fd(o,Pi(n)),Ri(n)),u=Bd(Fd(o,Pi(r)),Ri(r));try{i=!Eh(a,{start:c,end:u})}catch{i=!1}return i}function IO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=ou(e,1);return n&&Dm(n,i)>0||r&&r.every(function(o){return Dm(o,i)>0})||!1}function kO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=ko(e,1);return n&&Dm(i,n)>0||r&&r.every(function(o){return Dm(i,o)>0})||!1}function _O(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=kh(e,1);return n&&$m(n,i)>0||r&&r.every(function(o){return $m(o,i)>0})||!1}function EO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=iu(e,1);return n&&$m(i,n)>0||r&&r.every(function(o){return $m(i,o)>0})||!1}function LW(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return _h(i,t)>=0});return tR(r)}return n?tR(n):t}function DW(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return _h(i,t)<=0});return nR(r)}return n?nR(n):t}function TO(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(cn(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function kye(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,c=!0;n&&(c=cn(n)<=a),r&&c&&(c=cn(r)>=a),c&&i.push(a)}return i}var _ye=pb(function(e){Mr(n,vt.Component);var t=Lr(n);function n(r){var i;Rr(this,n),ze(Ue(i=t.call(this,r)),"renderOptions",function(){var u=i.props.year,d=i.state.yearsList.map(function(P){return At("div",{className:u===P?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",onClick:i.onChange.bind(Ue(i),P),"aria-selected":u===P?"true":void 0,children:[u===P?Se("span",{className:"react-datepicker__year-option--selected",children:"\u2713"}):"",P]},P)}),p=i.props.minDate?cn(i.props.minDate):null,I=i.props.maxDate?cn(i.props.maxDate):null;return I&&i.state.yearsList.find(function(P){return P===I})||d.unshift(Se("div",{className:"react-datepicker__year-option",onClick:i.incrementYears,children:Se("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"})},"upcoming")),p&&i.state.yearsList.find(function(P){return P===p})||d.push(Se("div",{className:"react-datepicker__year-option",onClick:i.decrementYears,children:Se("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"})},"previous")),d}),ze(Ue(i),"onChange",function(u){i.props.onChange(u)}),ze(Ue(i),"handleClickOutside",function(){i.props.onCancel()}),ze(Ue(i),"shiftYears",function(u){var d=i.state.yearsList.map(function(p){return p+u});i.setState({yearsList:d})}),ze(Ue(i),"incrementYears",function(){return i.shiftYears(1)}),ze(Ue(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,c=o||(a?10:5);return i.state={yearsList:kye(i.props.year,c,i.props.minDate,i.props.maxDate)},i.dropdownRef=de.exports.createRef(),i}return Or(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(a){return a.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=Si({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Se("div",{className:r,ref:this.dropdownRef,children:this.renderOptions()})}}]),n}()),Eye=function(e){Mr(n,vt.Component);var t=Lr(n);function n(){var r;Rr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},u=!1;r.getTabIndex()===0&&!c.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(u=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(u=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(u=!0)),u&&r.dayEl.current.focus({preventScroll:!0})}),ze(Ue(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(eR(r.props.day),r.props.day):eR(r.props.day)}),ze(Ue(r),"render",function(){return Se("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected(),children:r.renderDayContents()})}),r}return Or(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),Dye=function(e){Mr(n,vt.Component);var t=Lr(n);function n(){var r;Rr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=6,F=!u&&!r.isWeekInMonth(I);if(P||F){if(!r.props.peekNextMonth)break;p=!0}}return c}),ze(Ue(r),"onMonthClick",function(c,u){r.handleDayClick(dl(Zi(r.props.day,u)),c)}),ze(Ue(r),"handleMonthNavigation",function(c,u){r.isDisabled(u)||r.isExcluded(u)||(r.props.setPreSelection(u),r.MONTH_REFS[c].current&&r.MONTH_REFS[c].current.focus())}),ze(Ue(r),"onMonthKeyDown",function(c,u){c.preventDefault();var d=c.key;if(!r.props.disabledKeyboardNavigation)switch(d){case"Enter":r.onMonthClick(c,u),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(u===11?0:u+1,ko(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(u===0?11:u-1,ou(r.props.preSelection,1));break;case"ArrowUp":r.handleMonthNavigation(u>=0&&u<=2?u+9:u-3,ou(r.props.preSelection,3));break;case"ArrowDown":r.handleMonthNavigation(u>=9&&u<=11?u-9:u+3,ko(r.props.preSelection,3))}}),ze(Ue(r),"onQuarterClick",function(c,u){r.handleDayClick(xye(cd(r.props.day,u)),c)}),ze(Ue(r),"handleQuarterNavigation",function(c,u){r.isDisabled(u)||r.isExcluded(u)||(r.props.setPreSelection(u),r.QUARTER_REFS[c-1].current&&r.QUARTER_REFS[c-1].current.focus())}),ze(Ue(r),"onQuarterKeyDown",function(c,u){var d=c.key;if(!r.props.disabledKeyboardNavigation)switch(d){case"Enter":r.onQuarterClick(c,u),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(u===4?1:u+1,fW(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(u===1?4:u-1,Zhe(r.props.preSelection,1))}}),ze(Ue(r),"getMonthClassNames",function(c){var u=r.props,d=u.day,p=u.startDate,I=u.endDate,P=u.selected,F=u.minDate,B=u.maxDate,N=u.preSelection,D=u.monthClassName,T=u.excludeDates,M=u.includeDates,O=D?D(Zi(d,c)):void 0,L=Zi(d,c);return Si("react-datepicker__month-text","react-datepicker__month-".concat(c),O,{"react-datepicker__month--disabled":(F||B||T||M)&&OW(L,r.props),"react-datepicker__month--selected":r.isSelectedMonth(d,c,P),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&Kr(N)===c,"react-datepicker__month--in-range":Cye(p,I,c,d),"react-datepicker__month--range-start":r.isRangeStartMonth(c),"react-datepicker__month--range-end":r.isRangeEndMonth(c),"react-datepicker__month-text--today":r.isCurrentMonth(d,c)})}),ze(Ue(r),"getTabIndex",function(c){var u=Kr(r.props.preSelection);return r.props.disabledKeyboardNavigation||c!==u?"-1":"0"}),ze(Ue(r),"getQuarterTabIndex",function(c){var u=vc(r.props.preSelection);return r.props.disabledKeyboardNavigation||c!==u?"-1":"0"}),ze(Ue(r),"getAriaLabel",function(c){var u=r.props,d=u.chooseDayAriaLabelPrefix,p=d===void 0?"Choose":d,I=u.disabledDayAriaLabelPrefix,P=I===void 0?"Not available":I,F=u.day,B=Zi(F,c),N=r.isDisabled(B)||r.isExcluded(B)?P:p;return"".concat(N," ").concat(vr(B,"MMMM yyyy"))}),ze(Ue(r),"getQuarterClassNames",function(c){var u=r.props,d=u.day,p=u.startDate,I=u.endDate,P=u.selected,F=u.minDate,B=u.maxDate,N=u.preSelection;return Si("react-datepicker__quarter-text","react-datepicker__quarter-".concat(c),{"react-datepicker__quarter--disabled":(F||B)&&Sye(cd(d,c),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(d,c,P),"react-datepicker__quarter-text--keyboard-selected":vc(N)===c,"react-datepicker__quarter--in-range":Aye(p,I,c,d),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(c),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(c)})}),ze(Ue(r),"renderMonths",function(){var c=r.props,u=c.showFullMonthYearPicker,d=c.showTwoColumnMonthYearPicker,p=c.showFourColumnMonthYearPicker,I=c.locale,P=c.day,F=c.selected;return(p?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:d?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(B,N){return Se("div",{className:"react-datepicker__month-wrapper",children:B.map(function(D,T){return Se("div",{ref:r.MONTH_REFS[D],onClick:function(M){r.onMonthClick(M,D)},onKeyDown:function(M){r.onMonthKeyDown(M,D)},tabIndex:r.getTabIndex(D),className:r.getMonthClassNames(D),role:"option","aria-label":r.getAriaLabel(D),"aria-current":r.isCurrentMonth(P,D)?"date":void 0,"aria-selected":r.isSelectedMonth(P,D,F),children:u?_k(D,I):RW(D,I)},T)})},N)})}),ze(Ue(r),"renderQuarters",function(){var c=r.props,u=c.day,d=c.selected;return Se("div",{className:"react-datepicker__quarter-wrapper",children:[1,2,3,4].map(function(p,I){return Se("div",{ref:r.QUARTER_REFS[I],role:"option",onClick:function(P){r.onQuarterClick(P,p)},onKeyDown:function(P){r.onQuarterKeyDown(P,p)},className:r.getQuarterClassNames(p),"aria-selected":r.isSelectedQuarter(u,p,d),tabIndex:r.getQuarterTabIndex(p),"aria-current":r.isCurrentQuarter(u,p)?"date":void 0,children:wye(p,r.props.locale)},I)})})}),ze(Ue(r),"getClassNames",function(){var c=r.props;c.day;var u=c.selectingDate,d=c.selectsStart,p=c.selectsEnd,I=c.showMonthYearPicker,P=c.showQuarterYearPicker;return Si("react-datepicker__month",{"react-datepicker__month--selecting-range":u&&(d||p)},{"react-datepicker__monthPicker":I},{"react-datepicker__quarterPicker":P})}),r}return Or(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,c=r.ariaLabelPrefix,u=c===void 0?"month ":c;return Se("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(u," ").concat(vr(a,"yyyy-MM")),role:"listbox",children:i?this.renderMonths():o?this.renderQuarters():this.renderWeeks()})}}]),n}(),$W=function(e){Mr(n,vt.Component);var t=Lr(n);function n(){var r;Rr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return Hye.some(function(c){return a.indexOf(c)>=0})})(o.target)&&i.props.onDropdownFocus()}),ze(Ue(i),"getDateInView",function(){var o=i.props,a=o.preSelection,c=o.selected,u=o.openToDate,d=LW(i.props),p=DW(i.props),I=Yn(),P=u||c||a;return P||(d&&xa(I,d)?d:p&&Es(I,p)?p:I)}),ze(Ue(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:ko(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ze(Ue(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:ou(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ze(Ue(i),"handleDayClick",function(o,a,c){i.props.onSelect(o,a,c),i.props.setPreSelection&&i.props.setPreSelection(o)}),ze(Ue(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ze(Ue(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ze(Ue(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ze(Ue(i),"handleMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ze(Ue(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ze(Ue(i),"changeYear",function(o){i.setState(function(a){var c=a.date;return{date:Lm(c,o)}},function(){return i.handleYearChange(i.state.date)})}),ze(Ue(i),"changeMonth",function(o){i.setState(function(a){var c=a.date;return{date:Zi(c,o)}},function(){return i.handleMonthChange(i.state.date)})}),ze(Ue(i),"changeMonthYear",function(o){i.setState(function(a){var c=a.date;return{date:Lm(Zi(c,Kr(o)),cn(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ze(Ue(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=kk(o,i.props.locale,i.props.calendarStartDay),c=[];return i.props.showWeekNumbers&&c.push(Se("div",{className:"react-datepicker__day-name",children:i.props.weekLabel||"#"},"W")),c.concat([0,1,2,3,4,5,6].map(function(u){var d=xu(a,u),p=i.formatWeekday(d,i.props.locale),I=i.props.weekDayClassName?i.props.weekDayClassName(d):void 0;return Se("div",{className:Si("react-datepicker__day-name",I),children:p},u)}))}),ze(Ue(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(c,u,d){return typeof u=="function"?u(c,d):vr(c,"EEEE",d)}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(c,u){return vr(c,"EEE",u)}(o,a):function(c,u){return vr(c,"EEEEEE",u)}(o,a)}),ze(Ue(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:kh(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ze(Ue(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=_O(i.state.date,i.props);break;case i.props.showYearPicker:o=function(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=M.minDate,L=M.yearItemNumber,x=L===void 0?12:L,b=yc(ud(kh(T,x)),x).endPeriod,C=O&&cn(O);return C&&C>b||!1}(i.state.date,i.props);break;default:o=IO(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],c=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(c=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),c=null);var u=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,d=i.props,p=d.previousMonthButtonLabel,I=d.previousYearButtonLabel,P=i.props,F=P.previousMonthAriaLabel,B=F===void 0?typeof p=="string"?p:"Previous Month":F,N=P.previousYearAriaLabel,D=N===void 0?typeof I=="string"?I:"Previous Year":N;return Se("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:i.props.handleOnKeyDown,"aria-label":u?D:B,children:Se("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" "),children:u?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel})})}}}),ze(Ue(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:iu(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ze(Ue(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=EO(i.state.date,i.props);break;case i.props.showYearPicker:o=function(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=M.maxDate,L=M.yearItemNumber,x=L===void 0?12:L,b=yc(iu(T,x),x).startPeriod,C=O&&cn(O);return C&&C0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),Se("div",{className:a.join(" "),children:vr(o,i.props.dateFormat,i.props.locale)})}),ze(Ue(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return Se(Eye,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:cn(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ze(Ue(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return vt.createElement(Pye,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:Kr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ze(Ue(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return Se(Mye,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),ze(Ue(i),"handleTodayButtonClick",function(o){i.props.onSelect(wO(),o),i.props.setPreSelection&&i.props.setPreSelection(wO())}),ze(Ue(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return Se("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)},children:i.props.todayButton})}),ze(Ue(i),"renderDefaultHeader",function(o){var a=o.monthDate,c=o.i;return At("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":""),children:[i.renderCurrentMonth(a),At("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus,children:[i.renderMonthDropdown(c!==0),i.renderMonthYearDropdown(c!==0),i.renderYearDropdown(c!==0)]}),Se("div",{className:"react-datepicker__day-names",children:i.header(a)})]})}),ze(Ue(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,c=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var u=IO(i.state.date,i.props),d=kO(i.state.date,i.props),p=_O(i.state.date,i.props),I=EO(i.state.date,i.props),P=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return At("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus,children:[i.props.renderCustomHeader(yO(yO({},i.state),{},{customHeaderCount:c,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:d,prevYearButtonDisabled:p,nextYearButtonDisabled:I})),P&&Se("div",{className:"react-datepicker__day-names",children:i.header(a)})]})}),ze(Ue(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,c=a.showYearPicker,u=yc(o,a.yearItemNumber),d=u.startPeriod,p=u.endPeriod;return Se("div",{className:"react-datepicker__header react-datepicker-year-header",children:c?"".concat(d," - ").concat(p):cn(o)})}),ze(Ue(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),ze(Ue(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],a=i.props.showPreviousMonths?i.props.monthsShown-1:0,c=ou(i.state.date,a),u=0;u0;o.push(At("div",{ref:function(B){i.monthContainer=B},className:"react-datepicker__month-container",children:[i.renderHeader({monthDate:p,i:u}),Se(Nye,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:p,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:u,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:P,monthShowsDuplicateDaysStart:F})]},I))}return o}}),ze(Ue(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?At("div",{className:"react-datepicker__year--container",children:[i.renderHeader(),Se(Fye,{...gb({onDayClick:i.handleDayClick,date:i.state.date},i.props)})]}):void 0}),ze(Ue(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return Se($W,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),ze(Ue(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=Ik(o)&&Boolean(i.props.selected)?"".concat(PO(o.getHours()),":").concat(PO(o.getMinutes())):"";if(i.props.showTimeInput)return Se(Bye,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),ze(Ue(i),"renderAriaLiveRegion",function(){var o,a=yc(i.state.date,i.props.yearItemNumber),c=a.startPeriod,u=a.endPeriod;return o=i.props.showYearPicker?"".concat(c," - ").concat(u):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?cn(i.state.date):"".concat(_k(Kr(i.state.date),i.props.locale)," ").concat(cn(i.state.date)),Se("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live",children:i.state.isRenderAriaLiveMessage&&o})}),ze(Ue(i),"renderChildren",function(){if(i.props.children)return Se("div",{className:"react-datepicker__children-container",children:i.props.children})}),i.containerRef=vt.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return Or(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){!this.props.preSelection||oi(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn?this.props.openToDate&&!oi(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate}):this.setState({date:this.props.preSelection})}},{key:"render",value:function(){var r=this.props.container||Wye;return vt.createElement("div",{ref:this.containerRef},vt.createElement(r,{className:Si("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),NW=function(e){Mr(n,vt.Component);var t=Lr(n);function n(r){var i;return Rr(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Or(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return S$.createPortal(this.props.children,this.el)}}]),n}(),zye=function(e){return!e.disabled&&e.tabIndex!==-1},FW=function(e){Mr(n,vt.Component);var t=Lr(n);function n(r){var i;return Rr(this,n),ze(Ue(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(zye)}),ze(Ue(i),"handleFocusStart",function(o){var a=i.getTabChildren();a&&a.length>1&&a[a.length-1].focus()}),ze(Ue(i),"handleFocusEnd",function(o){var a=i.getTabChildren();a&&a.length>1&&a[0].focus()}),i.tabLoopRef=vt.createRef(),i}return Or(n,[{key:"render",value:function(){return this.props.enableTabLoop?At("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef,children:[Se("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,Se("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})]}):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),jye=function(e){Mr(n,vt.Component);var t=Lr(n);function n(){return Rr(this,n),t.apply(this,arguments)}return Or(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,c=i.hidePopper,u=i.popperComponent,d=i.popperModifiers,p=i.popperPlacement,I=i.popperProps,P=i.targetComponent,F=i.enableTabLoop,B=i.popperOnKeyDown,N=i.portalId,D=i.portalHost;if(!c){var T=Si("react-datepicker-popper",o);r=vt.createElement(hye,gb({modifiers:d,placement:p},I),function(O){var L=O.ref,x=O.style,b=O.placement,C=O.arrowProps;return Se(FW,{enableTabLoop:F,children:Se("div",{ref:L,style:x,className:T,"data-placement":b,onKeyDown:B,children:vt.cloneElement(u,{arrowProps:C})})})})}this.props.popperContainer&&(r=vt.createElement(this.props.popperContainer,{},r)),N&&!c&&(r=Se(NW,{portalId:N,portalHost:D,children:r}));var M=Si("react-datepicker-wrapper",a);return vt.createElement(aye,{className:"react-datepicker-manager"},vt.createElement(fye,null,function(O){var L=O.ref;return Se("div",{ref:L,className:M,children:P})}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),Gye=pb(Vye),Lke=function(e){Mr(n,vt.Component);var t=Lr(n);function n(r){var i;return Rr(this,n),ze(Ue(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Yn()}),ze(Ue(i),"calcInitialState",function(){var o,a=i.getPreSelection(),c=LW(i.props),u=DW(i.props),d=c&&xa(a,qo(c))?c:u&&Es(a,XC(u))?u:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:d,highlightDates:TO(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ze(Ue(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ze(Ue(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ze(Ue(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ze(Ue(i),"setOpen",function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:bx},function(){o||i.setState(function(c){return{focused:!!a&&c.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),ze(Ue(i),"inputOk",function(){return gk(i.state.preSelection)}),ze(Ue(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ze(Ue(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),ze(Ue(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ze(Ue(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ze(Ue(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ze(Ue(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ze(Ue(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ze(Ue(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),c=0;c=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}var Zye={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Xye=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function RO(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(Zye[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var i=new RegExp(Xye),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),t.attrs[c[0]]=c[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var Uye=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Kye=/^\s*$/,Jye=Object.create(null);function BW(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(BW,"")+"";case"comment":return e+""}}var Qye={parse:function(e,t){t||(t={}),t.components||(t.components=Jye);var n,r=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var c=e.indexOf("<");r.push({type:"text",content:c===-1?e:e.substring(0,c)})}return e.replace(Uye,function(u,d){if(a){if(u!=="")return;a=!1}var p,I=u.charAt(1)!=="/",P=u.startsWith("");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var i=new RegExp(Uye),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),t.attrs[c[0]]=c[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var Kye=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Jye=/^\s*$/,Qye=Object.create(null);function BW(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(BW,"")+"";case"comment":return e+""}}var qye={parse:function(e,t){t||(t={}),t.components||(t.components=Qye);var n,r=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var c=e.indexOf("<");r.push({type:"text",content:c===-1?e:e.substring(0,c)})}return e.replace(Kye,function(u,d){if(a){if(u!=="")return;a=!1}var p,I=u.charAt(1)!=="/",P=u.startsWith("