webhookdb 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/admin-dist/assets/index-6aebf805.js +264 -0
- data/admin-dist/favicon.ico +0 -0
- data/admin-dist/index.html +130 -0
- data/admin-dist/manifest.json +15 -0
- data/data/messages/replicators/url-recorder.liquid +20 -0
- data/data/messages/templates/errors/signalwire_send_sms.email.liquid +31 -0
- data/data/messages/web/install-customer-login.liquid +6 -5
- data/data/messages/web/install-error.liquid +1 -1
- data/data/messages/web/install-forbidden.liquid +25 -0
- data/data/messages/web/install-org-chooser.liquid +40 -0
- data/data/messages/web/install-success.liquid +2 -1
- data/data/messages/web/install.liquid +2 -1
- data/data/messages/web/partials/head.liquid +2 -0
- data/data/messages/web/styles.liquid +24 -0
- data/db/migrations/041_views.rb +20 -0
- data/db/migrations/042_sint_lock.rb +10 -0
- data/db/migrations/043_text_search.rb +28 -0
- data/db/migrations/044_oauth_session_token_cache.rb +21 -0
- data/integration/auth_spec.rb +2 -2
- data/lib/sequel/plugins/text_searchable.rb +165 -0
- data/lib/sequel/text_searchable.rb +42 -0
- data/lib/webhookdb/admin_api/auth.rb +24 -3
- data/lib/webhookdb/admin_api/data_provider.rb +196 -0
- data/lib/webhookdb/admin_api/entities.rb +143 -28
- data/lib/webhookdb/admin_api.rb +0 -2
- data/lib/webhookdb/api/auth.rb +5 -6
- data/lib/webhookdb/api/db.rb +31 -6
- data/lib/webhookdb/api/entities.rb +7 -1
- data/lib/webhookdb/api/helpers.rb +6 -25
- data/lib/webhookdb/api/install.rb +204 -79
- data/lib/webhookdb/api/organizations.rb +14 -12
- data/lib/webhookdb/api/saved_queries.rb +9 -3
- data/lib/webhookdb/api/saved_views.rb +99 -0
- data/lib/webhookdb/api/service_integrations.rb +15 -9
- data/lib/webhookdb/api/subscriptions.rb +3 -1
- data/lib/webhookdb/api/sync_targets.rb +9 -7
- data/lib/webhookdb/api/system.rb +1 -0
- data/lib/webhookdb/api/webhook_subscriptions.rb +3 -1
- data/lib/webhookdb/apps.rb +30 -7
- data/lib/webhookdb/async/audit_logger.rb +2 -0
- data/lib/webhookdb/async.rb +5 -0
- data/lib/webhookdb/backfill_job/service_integration_lock.rb +22 -0
- data/lib/webhookdb/backfill_job.rb +9 -0
- data/lib/webhookdb/customer.rb +5 -0
- data/lib/webhookdb/database_document.rb +1 -1
- data/lib/webhookdb/db_adapter/default_sql.rb +1 -1
- data/lib/webhookdb/db_adapter.rb +20 -4
- data/lib/webhookdb/fixtures/message_bodies.rb +34 -0
- data/lib/webhookdb/fixtures/organizations.rb +5 -0
- data/lib/webhookdb/fixtures/roles.rb +14 -0
- data/lib/webhookdb/fixtures/saved_views.rb +25 -0
- data/lib/webhookdb/fixtures/webhook_subscription_deliveries.rb +18 -0
- data/lib/webhookdb/http.rb +8 -2
- data/lib/webhookdb/icalendar.rb +3 -0
- data/lib/webhookdb/idempotency.rb +69 -22
- data/lib/webhookdb/increase.rb +69 -21
- data/lib/webhookdb/intercom.rb +10 -3
- data/lib/webhookdb/jobs/backfill.rb +3 -1
- data/lib/webhookdb/jobs/emailer.rb +0 -1
- data/lib/webhookdb/jobs/icalendar_delete_stale_cancelled_events.rb +19 -0
- data/lib/webhookdb/jobs/icalendar_enqueue_syncs.rb +1 -1
- data/lib/webhookdb/jobs/icalendar_sync.rb +1 -1
- data/lib/webhookdb/jobs/increase_event_handler.rb +20 -0
- data/lib/webhookdb/jobs/scheduled_backfills.rb +2 -1
- data/lib/webhookdb/jobs/sync_target_run_sync.rb +3 -1
- data/lib/webhookdb/message/body.rb +6 -4
- data/lib/webhookdb/message/delivery.rb +2 -0
- data/lib/webhookdb/messages/error_icalendar_fetch.rb +1 -2
- data/lib/webhookdb/messages/error_signalwire_send_sms.rb +48 -0
- data/lib/webhookdb/oauth/fake_provider.rb +44 -0
- data/lib/webhookdb/oauth/front_provider.rb +1 -2
- data/lib/webhookdb/oauth/increase_provider.rb +80 -0
- data/lib/webhookdb/oauth/intercom_provider.rb +3 -11
- data/lib/webhookdb/oauth/session.rb +20 -0
- data/lib/webhookdb/oauth.rb +7 -21
- data/lib/webhookdb/organization/alerting.rb +2 -0
- data/lib/webhookdb/organization/database_migration.rb +3 -0
- data/lib/webhookdb/organization.rb +37 -6
- data/lib/webhookdb/organization_membership.rb +14 -7
- data/lib/webhookdb/postgres.rb +2 -0
- data/lib/webhookdb/replicator/base.rb +1 -0
- data/lib/webhookdb/replicator/docgen.rb +9 -1
- data/lib/webhookdb/replicator/fake.rb +2 -3
- data/lib/webhookdb/replicator/front_signalwire_message_channel_app_v1.rb +49 -14
- data/lib/webhookdb/replicator/icalendar_calendar_v1.rb +97 -17
- data/lib/webhookdb/replicator/icalendar_event_v1.rb +104 -2
- data/lib/webhookdb/replicator/increase_account_number_v1.rb +6 -43
- data/lib/webhookdb/replicator/increase_account_transfer_v1.rb +7 -24
- data/lib/webhookdb/replicator/increase_account_v1.rb +7 -31
- data/lib/webhookdb/replicator/increase_ach_transfer_v1.rb +5 -43
- data/lib/webhookdb/replicator/increase_app_v1.rb +78 -0
- data/lib/webhookdb/replicator/increase_check_transfer_v1.rb +23 -29
- data/lib/webhookdb/replicator/increase_event_v1.rb +41 -0
- data/lib/webhookdb/replicator/increase_limit_v1.rb +9 -34
- data/lib/webhookdb/replicator/increase_transaction_v1.rb +5 -30
- data/lib/webhookdb/replicator/increase_v1_mixin.rb +58 -78
- data/lib/webhookdb/replicator/increase_wire_transfer_v1.rb +5 -24
- data/lib/webhookdb/replicator/intercom_contact_v1.rb +51 -4
- data/lib/webhookdb/replicator/intercom_conversation_v1.rb +42 -6
- data/lib/webhookdb/replicator/intercom_marketplace_root_v1.rb +2 -13
- data/lib/webhookdb/replicator/intercom_v1_mixin.rb +20 -16
- data/lib/webhookdb/replicator/oauth_refresh_access_token_mixin.rb +1 -1
- data/lib/webhookdb/replicator/sponsy_v1_mixin.rb +1 -1
- data/lib/webhookdb/replicator/transistor_episode_v1.rb +17 -0
- data/lib/webhookdb/replicator/url_recorder_v1.rb +137 -0
- data/lib/webhookdb/replicator/webhook_request.rb +4 -0
- data/lib/webhookdb/replicator.rb +8 -0
- data/lib/webhookdb/role.rb +5 -2
- data/lib/webhookdb/saved_query.rb +23 -0
- data/lib/webhookdb/saved_view.rb +73 -0
- data/lib/webhookdb/sentry.rb +2 -0
- data/lib/webhookdb/service/entities.rb +0 -4
- data/lib/webhookdb/service/helpers.rb +5 -0
- data/lib/webhookdb/service/middleware.rb +9 -0
- data/lib/webhookdb/service/types.rb +10 -8
- data/lib/webhookdb/service/validators.rb +1 -2
- data/lib/webhookdb/service/view_api.rb +1 -1
- data/lib/webhookdb/service_integration.rb +17 -15
- data/lib/webhookdb/spec_helpers/shared_examples_for_replicators.rb +8 -8
- data/lib/webhookdb/spec_helpers/whdb.rb +3 -2
- data/lib/webhookdb/subscription.rb +2 -0
- data/lib/webhookdb/sync_target.rb +10 -2
- data/lib/webhookdb/tasks/message.rb +3 -1
- data/lib/webhookdb/version.rb +1 -1
- data/lib/webhookdb/webhook_subscription/delivery.rb +2 -0
- data/lib/webhookdb/webhook_subscription.rb +2 -0
- metadata +57 -9
- data/lib/webhookdb/admin_api/customers.rb +0 -63
- data/lib/webhookdb/admin_api/message_deliveries.rb +0 -61
- data/lib/webhookdb/admin_api/roles.rb +0 -15
@@ -0,0 +1,264 @@
|
|
1
|
+
function j3(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var e2={exports:{}},Kp={},t2={exports:{}},je={};/**
|
2
|
+
* @license React
|
3
|
+
* react.production.min.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/var Yu=Symbol.for("react.element"),M3=Symbol.for("react.portal"),F3=Symbol.for("react.fragment"),N3=Symbol.for("react.strict_mode"),L3=Symbol.for("react.profiler"),D3=Symbol.for("react.provider"),B3=Symbol.for("react.context"),z3=Symbol.for("react.forward_ref"),U3=Symbol.for("react.suspense"),V3=Symbol.for("react.memo"),W3=Symbol.for("react.lazy"),VS=Symbol.iterator;function H3(e){return e===null||typeof e!="object"?null:(e=VS&&e[VS]||e["@@iterator"],typeof e=="function"?e:null)}var r2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n2=Object.assign,o2={};function Ls(e,t,r){this.props=e,this.context=t,this.refs=o2,this.updater=r||r2}Ls.prototype.isReactComponent={};Ls.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ls.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function a2(){}a2.prototype=Ls.prototype;function S0(e,t,r){this.props=e,this.context=t,this.refs=o2,this.updater=r||r2}var _0=S0.prototype=new a2;_0.constructor=S0;n2(_0,Ls.prototype);_0.isPureReactComponent=!0;var WS=Array.isArray,i2=Object.prototype.hasOwnProperty,C0={current:null},s2={key:!0,ref:!0,__self:!0,__source:!0};function l2(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)i2.call(t,n)&&!s2.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Yu,type:e,key:a,ref:i,props:o,_owner:C0.current}}function q3(e,t){return{$$typeof:Yu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $0(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yu}function G3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var HS=/\/+/g;function Vh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G3(""+e.key):t.toString(36)}function wf(e,t,r,n,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Yu:case M3:i=!0}}if(i)return i=e,o=o(i),e=n===""?"."+Vh(i,0):n,WS(o)?(r="",e!=null&&(r=e.replace(HS,"$&/")+"/"),wf(o,t,r,"",function(l){return l})):o!=null&&($0(o)&&(o=q3(o,r+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(HS,"$&/")+"/")+e)),t.push(o)),1;if(i=0,n=n===""?".":n+":",WS(e))for(var s=0;s<e.length;s++){a=e[s];var u=n+Vh(a,s);i+=wf(a,t,r,u,o)}else if(u=H3(e),typeof u=="function")for(e=u.call(e),s=0;!(a=e.next()).done;)a=a.value,u=n+Vh(a,s++),i+=wf(a,t,r,u,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Fc(e,t,r){if(e==null)return e;var n=[],o=0;return wf(e,n,"","",function(a){return t.call(r,a,o++)}),n}function K3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var sr={current:null},Sf={transition:null},Q3={ReactCurrentDispatcher:sr,ReactCurrentBatchConfig:Sf,ReactCurrentOwner:C0};je.Children={map:Fc,forEach:function(e,t,r){Fc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Fc(e,function(){t++}),t},toArray:function(e){return Fc(e,function(t){return t})||[]},only:function(e){if(!$0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};je.Component=Ls;je.Fragment=F3;je.Profiler=L3;je.PureComponent=S0;je.StrictMode=N3;je.Suspense=U3;je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q3;je.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=n2({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=C0.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)i2.call(t,u)&&!s2.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];n.children=s}return{$$typeof:Yu,type:e.type,key:o,ref:a,props:n,_owner:i}};je.createContext=function(e){return e={$$typeof:B3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:D3,_context:e},e.Consumer=e};je.createElement=l2;je.createFactory=function(e){var t=l2.bind(null,e);return t.type=e,t};je.createRef=function(){return{current:null}};je.forwardRef=function(e){return{$$typeof:z3,render:e}};je.isValidElement=$0;je.lazy=function(e){return{$$typeof:W3,_payload:{_status:-1,_result:e},_init:K3}};je.memo=function(e,t){return{$$typeof:V3,type:e,compare:t===void 0?null:t}};je.startTransition=function(e){var t=Sf.transition;Sf.transition={};try{e()}finally{Sf.transition=t}};je.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};je.useCallback=function(e,t){return sr.current.useCallback(e,t)};je.useContext=function(e){return sr.current.useContext(e)};je.useDebugValue=function(){};je.useDeferredValue=function(e){return sr.current.useDeferredValue(e)};je.useEffect=function(e,t){return sr.current.useEffect(e,t)};je.useId=function(){return sr.current.useId()};je.useImperativeHandle=function(e,t,r){return sr.current.useImperativeHandle(e,t,r)};je.useInsertionEffect=function(e,t){return sr.current.useInsertionEffect(e,t)};je.useLayoutEffect=function(e,t){return sr.current.useLayoutEffect(e,t)};je.useMemo=function(e,t){return sr.current.useMemo(e,t)};je.useReducer=function(e,t,r){return sr.current.useReducer(e,t,r)};je.useRef=function(e){return sr.current.useRef(e)};je.useState=function(e){return sr.current.useState(e)};je.useSyncExternalStore=function(e,t,r){return sr.current.useSyncExternalStore(e,t,r)};je.useTransition=function(){return sr.current.useTransition()};je.version="18.2.0";t2.exports=je;var f=t2.exports;const G=Ye(f),fd=j3({__proto__:null,default:G},[f]);/**
|
10
|
+
* @license React
|
11
|
+
* react-jsx-runtime.production.min.js
|
12
|
+
*
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
+
*
|
15
|
+
* This source code is licensed under the MIT license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/var Y3=f,X3=Symbol.for("react.element"),J3=Symbol.for("react.fragment"),Z3=Object.prototype.hasOwnProperty,e4=Y3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t4={key:!0,ref:!0,__self:!0,__source:!0};function u2(e,t,r){var n,o={},a=null,i=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)Z3.call(t,n)&&!t4.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:X3,type:e,key:a,ref:i,props:o,_owner:e4.current}}Kp.Fragment=J3;Kp.jsx=u2;Kp.jsxs=u2;e2.exports=Kp;var E=e2.exports,mg={},c2={exports:{}},Nr={},f2={exports:{}},d2={};/**
|
18
|
+
* @license React
|
19
|
+
* scheduler.production.min.js
|
20
|
+
*
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
22
|
+
*
|
23
|
+
* This source code is licensed under the MIT license found in the
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
25
|
+
*/(function(e){function t(k,N){var z=k.length;k.push(N);e:for(;0<z;){var H=z-1>>>1,K=k[H];if(0<o(K,N))k[H]=N,k[z]=K,z=H;else break e}}function r(k){return k.length===0?null:k[0]}function n(k){if(k.length===0)return null;var N=k[0],z=k.pop();if(z!==N){k[0]=z;e:for(var H=0,K=k.length,J=K>>>1;H<J;){var te=2*(H+1)-1,ae=k[te],fe=te+1,Se=k[fe];if(0>o(ae,z))fe<K&&0>o(Se,ae)?(k[H]=Se,k[fe]=z,H=fe):(k[H]=ae,k[te]=z,H=te);else if(fe<K&&0>o(Se,z))k[H]=Se,k[fe]=z,H=fe;else break e}}return N}function o(k,N){var z=k.sortIndex-N.sortIndex;return z!==0?z:k.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,d=null,p=3,h=!1,m=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(k){for(var N=r(l);N!==null;){if(N.callback===null)n(l);else if(N.startTime<=k)n(l),N.sortIndex=N.expirationTime,t(u,N);else break;N=r(l)}}function S(k){if(y=!1,g(k),!m)if(r(u)!==null)m=!0,j(w);else{var N=r(l);N!==null&&B(S,N.startTime-k)}}function w(k,N){m=!1,y&&(y=!1,b(P),P=-1),h=!0;var z=p;try{for(g(N),d=r(u);d!==null&&(!(d.expirationTime>N)||k&&!I());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var K=H(d.expirationTime<=N);N=e.unstable_now(),typeof K=="function"?d.callback=K:d===r(u)&&n(u),g(N)}else n(u);d=r(u)}if(d!==null)var J=!0;else{var te=r(l);te!==null&&B(S,te.startTime-N),J=!1}return J}finally{d=null,p=z,h=!1}}var _=!1,$=null,P=-1,T=5,R=-1;function I(){return!(e.unstable_now()-R<T)}function A(){if($!==null){var k=e.unstable_now();R=k;var N=!0;try{N=$(!0,k)}finally{N?L():(_=!1,$=null)}}else _=!1}var L;if(typeof v=="function")L=function(){v(A)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,F=M.port2;M.port1.onmessage=A,L=function(){F.postMessage(null)}}else L=function(){x(A,0)};function j(k){$=k,_||(_=!0,L())}function B(k,N){P=x(function(){k(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,j(w))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(k){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var z=p;p=N;try{return k()}finally{p=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,N){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var z=p;p=k;try{return N()}finally{p=z}},e.unstable_scheduleCallback=function(k,N,z){var H=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?H+z:H):z=H,k){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=z+K,k={id:c++,callback:N,priorityLevel:k,startTime:z,expirationTime:K,sortIndex:-1},z>H?(k.sortIndex=z,t(l,k),r(u)===null&&k===r(l)&&(y?(b(P),P=-1):y=!0,B(S,z-H))):(k.sortIndex=K,t(u,k),m||h||(m=!0,j(w))),k},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(k){var N=p;return function(){var z=p;p=N;try{return k.apply(this,arguments)}finally{p=z}}}})(d2);f2.exports=d2;var r4=f2.exports;/**
|
26
|
+
* @license React
|
27
|
+
* react-dom.production.min.js
|
28
|
+
*
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
30
|
+
*
|
31
|
+
* This source code is licensed under the MIT license found in the
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
33
|
+
*/var p2=f,jr=r4;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v2=new Set,hu={};function li(e,t){gs(e,t),gs(e+"Capture",t)}function gs(e,t){for(hu[e]=t,e=0;e<t.length;e++)v2.add(t[e])}var fo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gg=Object.prototype.hasOwnProperty,n4=/^[: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]*$/,qS={},GS={};function o4(e){return gg.call(GS,e)?!0:gg.call(qS,e)?!1:n4.test(e)?GS[e]=!0:(qS[e]=!0,!1)}function a4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function i4(e,t,r,n){if(t===null||typeof t>"u"||a4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 lr(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wt[e]=new lr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wt[t]=new lr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wt[e]=new lr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wt[e]=new lr(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){Wt[e]=new lr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wt[e]=new lr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wt[e]=new lr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wt[e]=new lr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wt[e]=new lr(e,5,!1,e.toLowerCase(),null,!1,!1)});var O0=/[\-:]([a-z])/g;function E0(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(O0,E0);Wt[t]=new lr(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(O0,E0);Wt[t]=new lr(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(O0,E0);Wt[t]=new lr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wt[e]=new lr(e,1,!1,e.toLowerCase(),null,!1,!1)});Wt.xlinkHref=new lr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wt[e]=new lr(e,1,!1,e.toLowerCase(),null,!0,!0)});function P0(e,t,r,n){var o=Wt.hasOwnProperty(t)?Wt[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(i4(t,r,o,n)&&(r=null),n||o===null?o4(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var yo=p2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nc=Symbol.for("react.element"),Ai=Symbol.for("react.portal"),ji=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),yg=Symbol.for("react.profiler"),h2=Symbol.for("react.provider"),m2=Symbol.for("react.context"),R0=Symbol.for("react.forward_ref"),bg=Symbol.for("react.suspense"),xg=Symbol.for("react.suspense_list"),k0=Symbol.for("react.memo"),jo=Symbol.for("react.lazy"),g2=Symbol.for("react.offscreen"),KS=Symbol.iterator;function cl(e){return e===null||typeof e!="object"?null:(e=KS&&e[KS]||e["@@iterator"],typeof e=="function"?e:null)}var st=Object.assign,Wh;function Rl(e){if(Wh===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Wh=t&&t[1]||""}return`
|
34
|
+
`+Wh+e}var Hh=!1;function qh(e,t){if(!e||Hh)return"";Hh=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var o=l.stack.split(`
|
35
|
+
`),a=n.stack.split(`
|
36
|
+
`),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==a[s]){var u=`
|
37
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Hh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Rl(e):""}function s4(e){switch(e.tag){case 5:return Rl(e.type);case 16:return Rl("Lazy");case 13:return Rl("Suspense");case 19:return Rl("SuspenseList");case 0:case 2:case 15:return e=qh(e.type,!1),e;case 11:return e=qh(e.type.render,!1),e;case 1:return e=qh(e.type,!0),e;default:return""}}function wg(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 ji:return"Fragment";case Ai:return"Portal";case yg:return"Profiler";case T0:return"StrictMode";case bg:return"Suspense";case xg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m2:return(e.displayName||"Context")+".Consumer";case h2:return(e._context.displayName||"Context")+".Provider";case R0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k0:return t=e.displayName||null,t!==null?t:wg(e.type)||"Memo";case jo:t=e._payload,e=e._init;try{return wg(e(t))}catch{}}return null}function l4(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 wg(t);case 8:return t===T0?"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 sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function y2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u4(e){var t=y2(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lc(e){e._valueTracker||(e._valueTracker=u4(e))}function b2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=y2(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function dd(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 Sg(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function QS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=sa(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x2(e,t){t=t.checked,t!=null&&P0(e,"checked",t,!1)}function _g(e,t){x2(e,t);var r=sa(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cg(e,t.type,r):t.hasOwnProperty("defaultValue")&&Cg(e,t.type,sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Cg(e,t,r){(t!=="number"||dd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var kl=Array.isArray;function Zi(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+sa(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function $g(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return st({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XS(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Z(92));if(kl(r)){if(1<r.length)throw Error(Z(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:sa(r)}}function w2(e,t){var r=sa(t.value),n=sa(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function JS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function S2(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Og(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?S2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Dc,_2=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Dc=Dc||document.createElement("div"),Dc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Dc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Dl={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},c4=["Webkit","ms","Moz","O"];Object.keys(Dl).forEach(function(e){c4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dl[t]=Dl[e]})});function C2(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Dl.hasOwnProperty(e)&&Dl[e]?(""+t).trim():t+"px"}function $2(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=C2(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var f4=st({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 Eg(e,t){if(t){if(f4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Pg(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 Tg=null;function I0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rg=null,es=null,ts=null;function ZS(e){if(e=Zu(e)){if(typeof Rg!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Zp(t),Rg(e.stateNode,e.type,t))}}function O2(e){es?ts?ts.push(e):ts=[e]:es=e}function E2(){if(es){var e=es,t=ts;if(ts=es=null,ZS(e),t)for(e=0;e<t.length;e++)ZS(t[e])}}function P2(e,t){return e(t)}function T2(){}var Gh=!1;function R2(e,t,r){if(Gh)return e(t,r);Gh=!0;try{return P2(e,t,r)}finally{Gh=!1,(es!==null||ts!==null)&&(T2(),E2())}}function gu(e,t){var r=e.stateNode;if(r===null)return null;var n=Zp(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Z(231,t,typeof r));return r}var kg=!1;if(fo)try{var fl={};Object.defineProperty(fl,"passive",{get:function(){kg=!0}}),window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{kg=!1}function d4(e,t,r,n,o,a,i,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var Bl=!1,pd=null,vd=!1,Ig=null,p4={onError:function(e){Bl=!0,pd=e}};function v4(e,t,r,n,o,a,i,s,u){Bl=!1,pd=null,d4.apply(p4,arguments)}function h4(e,t,r,n,o,a,i,s,u){if(v4.apply(this,arguments),Bl){if(Bl){var l=pd;Bl=!1,pd=null}else throw Error(Z(198));vd||(vd=!0,Ig=l)}}function ui(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function k2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function e_(e){if(ui(e)!==e)throw Error(Z(188))}function m4(e){var t=e.alternate;if(!t){if(t=ui(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var a=o.alternate;if(a===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return e_(o),e;if(a===n)return e_(o),t;a=a.sibling}throw Error(Z(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(Z(189))}}if(r.alternate!==n)throw Error(Z(190))}if(r.tag!==3)throw Error(Z(188));return r.stateNode.current===r?e:t}function I2(e){return e=m4(e),e!==null?A2(e):null}function A2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=A2(e);if(t!==null)return t;e=e.sibling}return null}var j2=jr.unstable_scheduleCallback,t_=jr.unstable_cancelCallback,g4=jr.unstable_shouldYield,y4=jr.unstable_requestPaint,ht=jr.unstable_now,b4=jr.unstable_getCurrentPriorityLevel,A0=jr.unstable_ImmediatePriority,M2=jr.unstable_UserBlockingPriority,hd=jr.unstable_NormalPriority,x4=jr.unstable_LowPriority,F2=jr.unstable_IdlePriority,Qp=null,Ln=null;function w4(e){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Qp,e,void 0,(e.current.flags&128)===128)}catch{}}var bn=Math.clz32?Math.clz32:C4,S4=Math.log,_4=Math.LN2;function C4(e){return e>>>=0,e===0?32:31-(S4(e)/_4|0)|0}var Bc=64,zc=4194304;function Il(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 md(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Il(s):(a&=i,a!==0&&(n=Il(a)))}else i=r&~o,i!==0?n=Il(i):a!==0&&(n=Il(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-bn(t),o=1<<r,n|=e[r],t&=~o;return n}function $4(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function O4(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-bn(a),s=1<<i,u=o[i];u===-1?(!(s&r)||s&n)&&(o[i]=$4(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}function Ag(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function N2(){var e=Bc;return Bc<<=1,!(Bc&4194240)&&(Bc=64),e}function Kh(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Xu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=r}function E4(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-bn(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}function j0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-bn(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ze=0;function L2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var D2,M0,B2,z2,U2,jg=!1,Uc=[],Qo=null,Yo=null,Xo=null,yu=new Map,bu=new Map,Do=[],P4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function r_(e,t){switch(e){case"focusin":case"focusout":Qo=null;break;case"dragenter":case"dragleave":Yo=null;break;case"mouseover":case"mouseout":Xo=null;break;case"pointerover":case"pointerout":yu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(t.pointerId)}}function dl(e,t,r,n,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},t!==null&&(t=Zu(t),t!==null&&M0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function T4(e,t,r,n,o){switch(t){case"focusin":return Qo=dl(Qo,e,t,r,n,o),!0;case"dragenter":return Yo=dl(Yo,e,t,r,n,o),!0;case"mouseover":return Xo=dl(Xo,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return yu.set(a,dl(yu.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,bu.set(a,dl(bu.get(a)||null,e,t,r,n,o)),!0}return!1}function V2(e){var t=Aa(e.target);if(t!==null){var r=ui(t);if(r!==null){if(t=r.tag,t===13){if(t=k2(r),t!==null){e.blockedOn=t,U2(e.priority,function(){B2(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _f(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Mg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Tg=n,r.target.dispatchEvent(n),Tg=null}else return t=Zu(r),t!==null&&M0(t),e.blockedOn=r,!1;t.shift()}return!0}function n_(e,t,r){_f(e)&&r.delete(t)}function R4(){jg=!1,Qo!==null&&_f(Qo)&&(Qo=null),Yo!==null&&_f(Yo)&&(Yo=null),Xo!==null&&_f(Xo)&&(Xo=null),yu.forEach(n_),bu.forEach(n_)}function pl(e,t){e.blockedOn===t&&(e.blockedOn=null,jg||(jg=!0,jr.unstable_scheduleCallback(jr.unstable_NormalPriority,R4)))}function xu(e){function t(o){return pl(o,e)}if(0<Uc.length){pl(Uc[0],e);for(var r=1;r<Uc.length;r++){var n=Uc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Qo!==null&&pl(Qo,e),Yo!==null&&pl(Yo,e),Xo!==null&&pl(Xo,e),yu.forEach(t),bu.forEach(t),r=0;r<Do.length;r++)n=Do[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Do.length&&(r=Do[0],r.blockedOn===null);)V2(r),r.blockedOn===null&&Do.shift()}var rs=yo.ReactCurrentBatchConfig,gd=!0;function k4(e,t,r,n){var o=ze,a=rs.transition;rs.transition=null;try{ze=1,F0(e,t,r,n)}finally{ze=o,rs.transition=a}}function I4(e,t,r,n){var o=ze,a=rs.transition;rs.transition=null;try{ze=4,F0(e,t,r,n)}finally{ze=o,rs.transition=a}}function F0(e,t,r,n){if(gd){var o=Mg(e,t,r,n);if(o===null)om(e,t,n,yd,r),r_(e,n);else if(T4(o,e,t,r,n))n.stopPropagation();else if(r_(e,n),t&4&&-1<P4.indexOf(e)){for(;o!==null;){var a=Zu(o);if(a!==null&&D2(a),a=Mg(e,t,r,n),a===null&&om(e,t,n,yd,r),a===o)break;o=a}o!==null&&n.stopPropagation()}else om(e,t,n,null,r)}}var yd=null;function Mg(e,t,r,n){if(yd=null,e=I0(n),e=Aa(e),e!==null)if(t=ui(e),t===null)e=null;else if(r=t.tag,r===13){if(e=k2(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yd=e,null}function W2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(b4()){case A0:return 1;case M2:return 4;case hd:case x4:return 16;case F2:return 536870912;default:return 16}default:return 16}}var Uo=null,N0=null,Cf=null;function H2(){if(Cf)return Cf;var e,t=N0,r=t.length,n,o="value"in Uo?Uo.value:Uo.textContent,a=o.length;for(e=0;e<r&&t[e]===o[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===o[a-n];n++);return Cf=o.slice(e,1<n?1-n:void 0)}function $f(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vc(){return!0}function o_(){return!1}function Lr(e){function t(r,n,o,a,i){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Vc:o_,this.isPropagationStopped=o_,this}return st(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),t}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},L0=Lr(Ds),Ju=st({},Ds,{view:0,detail:0}),A4=Lr(Ju),Qh,Yh,vl,Yp=st({},Ju,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:D0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vl&&(vl&&e.type==="mousemove"?(Qh=e.screenX-vl.screenX,Yh=e.screenY-vl.screenY):Yh=Qh=0,vl=e),Qh)},movementY:function(e){return"movementY"in e?e.movementY:Yh}}),a_=Lr(Yp),j4=st({},Yp,{dataTransfer:0}),M4=Lr(j4),F4=st({},Ju,{relatedTarget:0}),Xh=Lr(F4),N4=st({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),L4=Lr(N4),D4=st({},Ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),B4=Lr(D4),z4=st({},Ds,{data:0}),i_=Lr(z4),U4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},W4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W4[e])?!!t[e]:!1}function D0(){return H4}var q4=st({},Ju,{key:function(e){if(e.key){var t=U4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$f(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:D0,charCode:function(e){return e.type==="keypress"?$f(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$f(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G4=Lr(q4),K4=st({},Yp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s_=Lr(K4),Q4=st({},Ju,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:D0}),Y4=Lr(Q4),X4=st({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),J4=Lr(X4),Z4=st({},Yp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eL=Lr(Z4),tL=[9,13,27,32],B0=fo&&"CompositionEvent"in window,zl=null;fo&&"documentMode"in document&&(zl=document.documentMode);var rL=fo&&"TextEvent"in window&&!zl,q2=fo&&(!B0||zl&&8<zl&&11>=zl),l_=String.fromCharCode(32),u_=!1;function G2(e,t){switch(e){case"keyup":return tL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mi=!1;function nL(e,t){switch(e){case"compositionend":return K2(t);case"keypress":return t.which!==32?null:(u_=!0,l_);case"textInput":return e=t.data,e===l_&&u_?null:e;default:return null}}function oL(e,t){if(Mi)return e==="compositionend"||!B0&&G2(e,t)?(e=H2(),Cf=N0=Uo=null,Mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return q2&&t.locale!=="ko"?null:t.data;default:return null}}var aL={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function c_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aL[e.type]:t==="textarea"}function Q2(e,t,r,n){O2(n),t=bd(t,"onChange"),0<t.length&&(r=new L0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ul=null,wu=null;function iL(e){iT(e,0)}function Xp(e){var t=Li(e);if(b2(t))return e}function sL(e,t){if(e==="change")return t}var Y2=!1;if(fo){var Jh;if(fo){var Zh="oninput"in document;if(!Zh){var f_=document.createElement("div");f_.setAttribute("oninput","return;"),Zh=typeof f_.oninput=="function"}Jh=Zh}else Jh=!1;Y2=Jh&&(!document.documentMode||9<document.documentMode)}function d_(){Ul&&(Ul.detachEvent("onpropertychange",X2),wu=Ul=null)}function X2(e){if(e.propertyName==="value"&&Xp(wu)){var t=[];Q2(t,wu,e,I0(e)),R2(iL,t)}}function lL(e,t,r){e==="focusin"?(d_(),Ul=t,wu=r,Ul.attachEvent("onpropertychange",X2)):e==="focusout"&&d_()}function uL(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xp(wu)}function cL(e,t){if(e==="click")return Xp(t)}function fL(e,t){if(e==="input"||e==="change")return Xp(t)}function dL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wn=typeof Object.is=="function"?Object.is:dL;function Su(e,t){if(wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!gg.call(t,o)||!wn(e[o],t[o]))return!1}return!0}function p_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v_(e,t){var r=p_(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=p_(r)}}function J2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?J2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Z2(){for(var e=window,t=dd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dd(e.document)}return t}function z0(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 pL(e){var t=Z2(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&J2(r.ownerDocument.documentElement,r)){if(n!==null&&z0(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=v_(r,a);var i=v_(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vL=fo&&"documentMode"in document&&11>=document.documentMode,Fi=null,Fg=null,Vl=null,Ng=!1;function h_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ng||Fi==null||Fi!==dd(n)||(n=Fi,"selectionStart"in n&&z0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Vl&&Su(Vl,n)||(Vl=n,n=bd(Fg,"onSelect"),0<n.length&&(t=new L0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Fi)))}function Wc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ni={animationend:Wc("Animation","AnimationEnd"),animationiteration:Wc("Animation","AnimationIteration"),animationstart:Wc("Animation","AnimationStart"),transitionend:Wc("Transition","TransitionEnd")},em={},eT={};fo&&(eT=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function Jp(e){if(em[e])return em[e];if(!Ni[e])return e;var t=Ni[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in eT)return em[e]=t[r];return e}var tT=Jp("animationend"),rT=Jp("animationiteration"),nT=Jp("animationstart"),oT=Jp("transitionend"),aT=new Map,m_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ca(e,t){aT.set(e,t),li(t,[e])}for(var tm=0;tm<m_.length;tm++){var rm=m_[tm],hL=rm.toLowerCase(),mL=rm[0].toUpperCase()+rm.slice(1);ca(hL,"on"+mL)}ca(tT,"onAnimationEnd");ca(rT,"onAnimationIteration");ca(nT,"onAnimationStart");ca("dblclick","onDoubleClick");ca("focusin","onFocus");ca("focusout","onBlur");ca(oT,"onTransitionEnd");gs("onMouseEnter",["mouseout","mouseover"]);gs("onMouseLeave",["mouseout","mouseover"]);gs("onPointerEnter",["pointerout","pointerover"]);gs("onPointerLeave",["pointerout","pointerover"]);li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));li("onBeforeInput",["compositionend","keypress","textInput","paste"]);li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gL=new Set("cancel close invalid load scroll toggle".split(" ").concat(Al));function g_(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,h4(n,t,void 0,e),e.currentTarget=null}function iT(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&o.isPropagationStopped())break e;g_(o,s,l),a=u}else for(i=0;i<n.length;i++){if(s=n[i],u=s.instance,l=s.currentTarget,s=s.listener,u!==a&&o.isPropagationStopped())break e;g_(o,s,l),a=u}}}if(vd)throw e=Ig,vd=!1,Ig=null,e}function Xe(e,t){var r=t[Ug];r===void 0&&(r=t[Ug]=new Set);var n=e+"__bubble";r.has(n)||(sT(t,e,2,!1),r.add(n))}function nm(e,t,r){var n=0;t&&(n|=4),sT(r,e,n,t)}var Hc="_reactListening"+Math.random().toString(36).slice(2);function _u(e){if(!e[Hc]){e[Hc]=!0,v2.forEach(function(r){r!=="selectionchange"&&(gL.has(r)||nm(r,!1,e),nm(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hc]||(t[Hc]=!0,nm("selectionchange",!1,t))}}function sT(e,t,r,n){switch(W2(t)){case 1:var o=k4;break;case 4:o=I4;break;default:o=F0}r=o.bind(null,t,r,e),o=void 0,!kg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function om(e,t,r,n,o){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=n.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;i=i.return}for(;s!==null;){if(i=Aa(s),i===null)return;if(u=i.tag,u===5||u===6){n=a=i;continue e}s=s.parentNode}}n=n.return}R2(function(){var l=a,c=I0(r),d=[];e:{var p=aT.get(e);if(p!==void 0){var h=L0,m=e;switch(e){case"keypress":if($f(r)===0)break e;case"keydown":case"keyup":h=G4;break;case"focusin":m="focus",h=Xh;break;case"focusout":m="blur",h=Xh;break;case"beforeblur":case"afterblur":h=Xh;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=a_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=M4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Y4;break;case tT:case rT:case nT:h=L4;break;case oT:h=J4;break;case"scroll":h=A4;break;case"wheel":h=eL;break;case"copy":case"cut":case"paste":h=B4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=s_}var y=(t&4)!==0,x=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var v=l,g;v!==null;){g=v;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,b!==null&&(S=gu(v,b),S!=null&&y.push(Cu(v,S,g)))),x)break;v=v.return}0<y.length&&(p=new h(p,m,null,r,c),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&r!==Tg&&(m=r.relatedTarget||r.fromElement)&&(Aa(m)||m[po]))break e;if((h||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=l,m=m?Aa(m):null,m!==null&&(x=ui(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=l),h!==m)){if(y=a_,S="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=s_,S="onPointerLeave",b="onPointerEnter",v="pointer"),x=h==null?p:Li(h),g=m==null?p:Li(m),p=new y(S,v+"leave",h,r,c),p.target=x,p.relatedTarget=g,S=null,Aa(c)===l&&(y=new y(b,v+"enter",m,r,c),y.target=g,y.relatedTarget=x,S=y),x=S,h&&m)t:{for(y=h,b=m,v=0,g=y;g;g=hi(g))v++;for(g=0,S=b;S;S=hi(S))g++;for(;0<v-g;)y=hi(y),v--;for(;0<g-v;)b=hi(b),g--;for(;v--;){if(y===b||b!==null&&y===b.alternate)break t;y=hi(y),b=hi(b)}y=null}else y=null;h!==null&&y_(d,p,h,y,!1),m!==null&&x!==null&&y_(d,x,m,y,!0)}}e:{if(p=l?Li(l):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var w=sL;else if(c_(p))if(Y2)w=fL;else{w=uL;var _=lL}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=cL);if(w&&(w=w(e,l))){Q2(d,w,r,c);break e}_&&_(e,p,l),e==="focusout"&&(_=p._wrapperState)&&_.controlled&&p.type==="number"&&Cg(p,"number",p.value)}switch(_=l?Li(l):window,e){case"focusin":(c_(_)||_.contentEditable==="true")&&(Fi=_,Fg=l,Vl=null);break;case"focusout":Vl=Fg=Fi=null;break;case"mousedown":Ng=!0;break;case"contextmenu":case"mouseup":case"dragend":Ng=!1,h_(d,r,c);break;case"selectionchange":if(vL)break;case"keydown":case"keyup":h_(d,r,c)}var $;if(B0)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Mi?G2(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(q2&&r.locale!=="ko"&&(Mi||P!=="onCompositionStart"?P==="onCompositionEnd"&&Mi&&($=H2()):(Uo=c,N0="value"in Uo?Uo.value:Uo.textContent,Mi=!0)),_=bd(l,P),0<_.length&&(P=new i_(P,e,null,r,c),d.push({event:P,listeners:_}),$?P.data=$:($=K2(r),$!==null&&(P.data=$)))),($=rL?nL(e,r):oL(e,r))&&(l=bd(l,"onBeforeInput"),0<l.length&&(c=new i_("onBeforeInput","beforeinput",null,r,c),d.push({event:c,listeners:l}),c.data=$))}iT(d,t)})}function Cu(e,t,r){return{instance:e,listener:t,currentTarget:r}}function bd(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=gu(e,r),a!=null&&n.unshift(Cu(e,a,o)),a=gu(e,t),a!=null&&n.push(Cu(e,a,o))),e=e.return}return n}function hi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function y_(e,t,r,n,o){for(var a=t._reactName,i=[];r!==null&&r!==n;){var s=r,u=s.alternate,l=s.stateNode;if(u!==null&&u===n)break;s.tag===5&&l!==null&&(s=l,o?(u=gu(r,a),u!=null&&i.unshift(Cu(r,u,s))):o||(u=gu(r,a),u!=null&&i.push(Cu(r,u,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var yL=/\r\n?/g,bL=/\u0000|\uFFFD/g;function b_(e){return(typeof e=="string"?e:""+e).replace(yL,`
|
38
|
+
`).replace(bL,"")}function qc(e,t,r){if(t=b_(t),b_(e)!==t&&r)throw Error(Z(425))}function xd(){}var Lg=null,Dg=null;function Bg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zg=typeof setTimeout=="function"?setTimeout:void 0,xL=typeof clearTimeout=="function"?clearTimeout:void 0,x_=typeof Promise=="function"?Promise:void 0,wL=typeof queueMicrotask=="function"?queueMicrotask:typeof x_<"u"?function(e){return x_.resolve(null).then(e).catch(SL)}:zg;function SL(e){setTimeout(function(){throw e})}function am(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),xu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);xu(t)}function Jo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function w_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Bs=Math.random().toString(36).slice(2),jn="__reactFiber$"+Bs,$u="__reactProps$"+Bs,po="__reactContainer$"+Bs,Ug="__reactEvents$"+Bs,_L="__reactListeners$"+Bs,CL="__reactHandles$"+Bs;function Aa(e){var t=e[jn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[po]||r[jn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=w_(e);e!==null;){if(r=e[jn])return r;e=w_(e)}return t}e=r,r=e.parentNode}return null}function Zu(e){return e=e[jn]||e[po],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Li(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Zp(e){return e[$u]||null}var Vg=[],Di=-1;function fa(e){return{current:e}}function Ze(e){0>Di||(e.current=Vg[Di],Vg[Di]=null,Di--)}function Qe(e,t){Di++,Vg[Di]=e.current,e.current=t}var la={},er=fa(la),gr=fa(!1),Xa=la;function ys(e,t){var r=e.type.contextTypes;if(!r)return la;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yr(e){return e=e.childContextTypes,e!=null}function wd(){Ze(gr),Ze(er)}function S_(e,t,r){if(er.current!==la)throw Error(Z(168));Qe(er,t),Qe(gr,r)}function lT(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Z(108,l4(e)||"Unknown",o));return st({},r,n)}function Sd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||la,Xa=er.current,Qe(er,e),Qe(gr,gr.current),!0}function __(e,t,r){var n=e.stateNode;if(!n)throw Error(Z(169));r?(e=lT(e,t,Xa),n.__reactInternalMemoizedMergedChildContext=e,Ze(gr),Ze(er),Qe(er,e)):Ze(gr),Qe(gr,r)}var oo=null,ev=!1,im=!1;function uT(e){oo===null?oo=[e]:oo.push(e)}function $L(e){ev=!0,uT(e)}function da(){if(!im&&oo!==null){im=!0;var e=0,t=ze;try{var r=oo;for(ze=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}oo=null,ev=!1}catch(o){throw oo!==null&&(oo=oo.slice(e+1)),j2(A0,da),o}finally{ze=t,im=!1}}return null}var Bi=[],zi=0,_d=null,Cd=0,Gr=[],Kr=0,Ja=null,so=1,lo="";function $a(e,t){Bi[zi++]=Cd,Bi[zi++]=_d,_d=e,Cd=t}function cT(e,t,r){Gr[Kr++]=so,Gr[Kr++]=lo,Gr[Kr++]=Ja,Ja=e;var n=so;e=lo;var o=32-bn(n)-1;n&=~(1<<o),r+=1;var a=32-bn(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,so=1<<32-bn(t)+o|r<<o|n,lo=a+e}else so=1<<a|r<<o|n,lo=e}function U0(e){e.return!==null&&($a(e,1),cT(e,1,0))}function V0(e){for(;e===_d;)_d=Bi[--zi],Bi[zi]=null,Cd=Bi[--zi],Bi[zi]=null;for(;e===Ja;)Ja=Gr[--Kr],Gr[Kr]=null,lo=Gr[--Kr],Gr[Kr]=null,so=Gr[--Kr],Gr[Kr]=null}var Ir=null,kr=null,rt=!1,vn=null;function fT(e,t){var r=Yr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function C_(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ir=e,kr=Jo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ir=e,kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ja!==null?{id:so,overflow:lo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Yr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ir=e,kr=null,!0):!1;default:return!1}}function Wg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Hg(e){if(rt){var t=kr;if(t){var r=t;if(!C_(e,t)){if(Wg(e))throw Error(Z(418));t=Jo(r.nextSibling);var n=Ir;t&&C_(e,t)?fT(n,r):(e.flags=e.flags&-4097|2,rt=!1,Ir=e)}}else{if(Wg(e))throw Error(Z(418));e.flags=e.flags&-4097|2,rt=!1,Ir=e}}}function $_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ir=e}function Gc(e){if(e!==Ir)return!1;if(!rt)return $_(e),rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bg(e.type,e.memoizedProps)),t&&(t=kr)){if(Wg(e))throw dT(),Error(Z(418));for(;t;)fT(e,t),t=Jo(t.nextSibling)}if($_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){kr=Jo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}kr=null}}else kr=Ir?Jo(e.stateNode.nextSibling):null;return!0}function dT(){for(var e=kr;e;)e=Jo(e.nextSibling)}function bs(){kr=Ir=null,rt=!1}function W0(e){vn===null?vn=[e]:vn.push(e)}var OL=yo.ReactCurrentBatchConfig;function dn(e,t){if(e&&e.defaultProps){t=st({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var $d=fa(null),Od=null,Ui=null,H0=null;function q0(){H0=Ui=Od=null}function G0(e){var t=$d.current;Ze($d),e._currentValue=t}function qg(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ns(e,t){Od=e,H0=Ui=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mr=!0),e.firstContext=null)}function en(e){var t=e._currentValue;if(H0!==e)if(e={context:e,memoizedValue:t,next:null},Ui===null){if(Od===null)throw Error(Z(308));Ui=e,Od.dependencies={lanes:0,firstContext:e}}else Ui=Ui.next=e;return t}var ja=null;function K0(e){ja===null?ja=[e]:ja.push(e)}function pT(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,K0(t)):(r.next=o.next,o.next=r),t.interleaved=r,vo(e,n)}function vo(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Mo=!1;function Q0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vT(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Fe&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,vo(e,r)}return o=n.interleaved,o===null?(t.next=t,K0(n)):(t.next=o.next,o.next=t),n.interleaved=t,vo(e,r)}function Of(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,j0(e,r)}}function O_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?o=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?o=a=t:a=a.next=t}else o=a=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ed(e,t,r,n){var o=e.updateQueue;Mo=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?a=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(a!==null){var d=o.baseState;i=0,c=l=u=null,s=a;do{var p=s.lane,h=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(p=t,h=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,p=typeof m=="function"?m.call(h,d,p):m,p==null)break e;d=st({},d,p);break e;case 2:Mo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=d):c=c.next=h,i|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(1);if(c===null&&(u=d),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);ei|=i,e.lanes=i,e.memoizedState=d}}function E_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(Z(191,o));o.call(n)}}}var hT=new p2.Component().refs;function Gg(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:st({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var tv={isMounted:function(e){return(e=e._reactInternals)?ui(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ar(),o=ta(e),a=uo(n,o);a.payload=t,r!=null&&(a.callback=r),t=Zo(e,a,o),t!==null&&(xn(t,e,o,n),Of(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ar(),o=ta(e),a=uo(n,o);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Zo(e,a,o),t!==null&&(xn(t,e,o,n),Of(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ar(),n=ta(e),o=uo(r,n);o.tag=2,t!=null&&(o.callback=t),t=Zo(e,o,n),t!==null&&(xn(t,e,n,r),Of(t,e,n))}};function P_(e,t,r,n,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,i):t.prototype&&t.prototype.isPureReactComponent?!Su(r,n)||!Su(o,a):!0}function mT(e,t,r){var n=!1,o=la,a=t.contextType;return typeof a=="object"&&a!==null?a=en(a):(o=yr(t)?Xa:er.current,n=t.contextTypes,a=(n=n!=null)?ys(e,o):la),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tv,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function T_(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&tv.enqueueReplaceState(t,t.state,null)}function Kg(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=hT,Q0(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=en(a):(a=yr(t)?Xa:er.current,o.context=ys(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Gg(e,t,a,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&tv.enqueueReplaceState(o,o.state,null),Ed(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function hl(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Z(309));var n=r.stateNode}if(!n)throw Error(Z(147,e));var o=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var s=o.refs;s===hT&&(s=o.refs={}),i===null?delete s[a]:s[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(Z(284));if(!r._owner)throw Error(Z(290,e))}return e}function Kc(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function R_(e){var t=e._init;return t(e._payload)}function gT(e){function t(b,v){if(e){var g=b.deletions;g===null?(b.deletions=[v],b.flags|=16):g.push(v)}}function r(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function n(b,v){for(b=new Map;v!==null;)v.key!==null?b.set(v.key,v):b.set(v.index,v),v=v.sibling;return b}function o(b,v){return b=ra(b,v),b.index=0,b.sibling=null,b}function a(b,v,g){return b.index=g,e?(g=b.alternate,g!==null?(g=g.index,g<v?(b.flags|=2,v):g):(b.flags|=2,v)):(b.flags|=1048576,v)}function i(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,v,g,S){return v===null||v.tag!==6?(v=pm(g,b.mode,S),v.return=b,v):(v=o(v,g),v.return=b,v)}function u(b,v,g,S){var w=g.type;return w===ji?c(b,v,g.props.children,S,g.key):v!==null&&(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===jo&&R_(w)===v.type)?(S=o(v,g.props),S.ref=hl(b,v,g),S.return=b,S):(S=If(g.type,g.key,g.props,null,b.mode,S),S.ref=hl(b,v,g),S.return=b,S)}function l(b,v,g,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==g.containerInfo||v.stateNode.implementation!==g.implementation?(v=vm(g,b.mode,S),v.return=b,v):(v=o(v,g.children||[]),v.return=b,v)}function c(b,v,g,S,w){return v===null||v.tag!==7?(v=Ua(g,b.mode,S,w),v.return=b,v):(v=o(v,g),v.return=b,v)}function d(b,v,g){if(typeof v=="string"&&v!==""||typeof v=="number")return v=pm(""+v,b.mode,g),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Nc:return g=If(v.type,v.key,v.props,null,b.mode,g),g.ref=hl(b,null,v),g.return=b,g;case Ai:return v=vm(v,b.mode,g),v.return=b,v;case jo:var S=v._init;return d(b,S(v._payload),g)}if(kl(v)||cl(v))return v=Ua(v,b.mode,g,null),v.return=b,v;Kc(b,v)}return null}function p(b,v,g,S){var w=v!==null?v.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return w!==null?null:s(b,v,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Nc:return g.key===w?u(b,v,g,S):null;case Ai:return g.key===w?l(b,v,g,S):null;case jo:return w=g._init,p(b,v,w(g._payload),S)}if(kl(g)||cl(g))return w!==null?null:c(b,v,g,S,null);Kc(b,g)}return null}function h(b,v,g,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(g)||null,s(v,b,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Nc:return b=b.get(S.key===null?g:S.key)||null,u(v,b,S,w);case Ai:return b=b.get(S.key===null?g:S.key)||null,l(v,b,S,w);case jo:var _=S._init;return h(b,v,g,_(S._payload),w)}if(kl(S)||cl(S))return b=b.get(g)||null,c(v,b,S,w,null);Kc(v,S)}return null}function m(b,v,g,S){for(var w=null,_=null,$=v,P=v=0,T=null;$!==null&&P<g.length;P++){$.index>P?(T=$,$=null):T=$.sibling;var R=p(b,$,g[P],S);if(R===null){$===null&&($=T);break}e&&$&&R.alternate===null&&t(b,$),v=a(R,v,P),_===null?w=R:_.sibling=R,_=R,$=T}if(P===g.length)return r(b,$),rt&&$a(b,P),w;if($===null){for(;P<g.length;P++)$=d(b,g[P],S),$!==null&&(v=a($,v,P),_===null?w=$:_.sibling=$,_=$);return rt&&$a(b,P),w}for($=n(b,$);P<g.length;P++)T=h($,b,P,g[P],S),T!==null&&(e&&T.alternate!==null&&$.delete(T.key===null?P:T.key),v=a(T,v,P),_===null?w=T:_.sibling=T,_=T);return e&&$.forEach(function(I){return t(b,I)}),rt&&$a(b,P),w}function y(b,v,g,S){var w=cl(g);if(typeof w!="function")throw Error(Z(150));if(g=w.call(g),g==null)throw Error(Z(151));for(var _=w=null,$=v,P=v=0,T=null,R=g.next();$!==null&&!R.done;P++,R=g.next()){$.index>P?(T=$,$=null):T=$.sibling;var I=p(b,$,R.value,S);if(I===null){$===null&&($=T);break}e&&$&&I.alternate===null&&t(b,$),v=a(I,v,P),_===null?w=I:_.sibling=I,_=I,$=T}if(R.done)return r(b,$),rt&&$a(b,P),w;if($===null){for(;!R.done;P++,R=g.next())R=d(b,R.value,S),R!==null&&(v=a(R,v,P),_===null?w=R:_.sibling=R,_=R);return rt&&$a(b,P),w}for($=n(b,$);!R.done;P++,R=g.next())R=h($,b,P,R.value,S),R!==null&&(e&&R.alternate!==null&&$.delete(R.key===null?P:R.key),v=a(R,v,P),_===null?w=R:_.sibling=R,_=R);return e&&$.forEach(function(A){return t(b,A)}),rt&&$a(b,P),w}function x(b,v,g,S){if(typeof g=="object"&&g!==null&&g.type===ji&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Nc:e:{for(var w=g.key,_=v;_!==null;){if(_.key===w){if(w=g.type,w===ji){if(_.tag===7){r(b,_.sibling),v=o(_,g.props.children),v.return=b,b=v;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===jo&&R_(w)===_.type){r(b,_.sibling),v=o(_,g.props),v.ref=hl(b,_,g),v.return=b,b=v;break e}r(b,_);break}else t(b,_);_=_.sibling}g.type===ji?(v=Ua(g.props.children,b.mode,S,g.key),v.return=b,b=v):(S=If(g.type,g.key,g.props,null,b.mode,S),S.ref=hl(b,v,g),S.return=b,b=S)}return i(b);case Ai:e:{for(_=g.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){r(b,v.sibling),v=o(v,g.children||[]),v.return=b,b=v;break e}else{r(b,v);break}else t(b,v);v=v.sibling}v=vm(g,b.mode,S),v.return=b,b=v}return i(b);case jo:return _=g._init,x(b,v,_(g._payload),S)}if(kl(g))return m(b,v,g,S);if(cl(g))return y(b,v,g,S);Kc(b,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(r(b,v.sibling),v=o(v,g),v.return=b,b=v):(r(b,v),v=pm(g,b.mode,S),v.return=b,b=v),i(b)):r(b,v)}return x}var xs=gT(!0),yT=gT(!1),ec={},Dn=fa(ec),Ou=fa(ec),Eu=fa(ec);function Ma(e){if(e===ec)throw Error(Z(174));return e}function Y0(e,t){switch(Qe(Eu,t),Qe(Ou,e),Qe(Dn,ec),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Og(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Og(t,e)}Ze(Dn),Qe(Dn,t)}function ws(){Ze(Dn),Ze(Ou),Ze(Eu)}function bT(e){Ma(Eu.current);var t=Ma(Dn.current),r=Og(t,e.type);t!==r&&(Qe(Ou,e),Qe(Dn,r))}function X0(e){Ou.current===e&&(Ze(Dn),Ze(Ou))}var at=fa(0);function Pd(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sm=[];function J0(){for(var e=0;e<sm.length;e++)sm[e]._workInProgressVersionPrimary=null;sm.length=0}var Ef=yo.ReactCurrentDispatcher,lm=yo.ReactCurrentBatchConfig,Za=0,it=null,$t=null,kt=null,Td=!1,Wl=!1,Pu=0,EL=0;function Qt(){throw Error(Z(321))}function Z0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!wn(e[r],t[r]))return!1;return!0}function e1(e,t,r,n,o,a){if(Za=a,it=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ef.current=e===null||e.memoizedState===null?kL:IL,e=r(n,o),Wl){a=0;do{if(Wl=!1,Pu=0,25<=a)throw Error(Z(301));a+=1,kt=$t=null,t.updateQueue=null,Ef.current=AL,e=r(n,o)}while(Wl)}if(Ef.current=Rd,t=$t!==null&&$t.next!==null,Za=0,kt=$t=it=null,Td=!1,t)throw Error(Z(300));return e}function t1(){var e=Pu!==0;return Pu=0,e}function Pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?it.memoizedState=kt=e:kt=kt.next=e,kt}function tn(){if($t===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=$t.next;var t=kt===null?it.memoizedState:kt.next;if(t!==null)kt=t,$t=e;else{if(e===null)throw Error(Z(310));$t=e,e={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},kt===null?it.memoizedState=kt=e:kt=kt.next=e}return kt}function Tu(e,t){return typeof t=="function"?t(e):t}function um(e){var t=tn(),r=t.queue;if(r===null)throw Error(Z(311));r.lastRenderedReducer=e;var n=$t,o=n.baseQueue,a=r.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(o!==null){a=o.next,n=n.baseState;var s=i=null,u=null,l=a;do{var c=l.lane;if((Za&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=d,i=n):u=u.next=d,it.lanes|=c,ei|=c}l=l.next}while(l!==null&&l!==a);u===null?i=n:u.next=s,wn(n,t.memoizedState)||(mr=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do a=o.lane,it.lanes|=a,ei|=a,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function cm(e){var t=tn(),r=t.queue;if(r===null)throw Error(Z(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(o!==null){r.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);wn(a,t.memoizedState)||(mr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function xT(){}function wT(e,t){var r=it,n=tn(),o=t(),a=!wn(n.memoizedState,o);if(a&&(n.memoizedState=o,mr=!0),n=n.queue,r1(CT.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||kt!==null&&kt.memoizedState.tag&1){if(r.flags|=2048,Ru(9,_T.bind(null,r,n,o,t),void 0,null),It===null)throw Error(Z(349));Za&30||ST(r,t,o)}return o}function ST(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function _T(e,t,r,n){t.value=r,t.getSnapshot=n,$T(t)&&OT(e)}function CT(e,t,r){return r(function(){$T(t)&&OT(e)})}function $T(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!wn(e,r)}catch{return!0}}function OT(e){var t=vo(e,1);t!==null&&xn(t,e,1,-1)}function k_(e){var t=Pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tu,lastRenderedState:e},t.queue=e,e=e.dispatch=RL.bind(null,it,e),[t.memoizedState,e]}function Ru(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function ET(){return tn().memoizedState}function Pf(e,t,r,n){var o=Pn();it.flags|=e,o.memoizedState=Ru(1|t,r,void 0,n===void 0?null:n)}function rv(e,t,r,n){var o=tn();n=n===void 0?null:n;var a=void 0;if($t!==null){var i=$t.memoizedState;if(a=i.destroy,n!==null&&Z0(n,i.deps)){o.memoizedState=Ru(t,r,a,n);return}}it.flags|=e,o.memoizedState=Ru(1|t,r,a,n)}function I_(e,t){return Pf(8390656,8,e,t)}function r1(e,t){return rv(2048,8,e,t)}function PT(e,t){return rv(4,2,e,t)}function TT(e,t){return rv(4,4,e,t)}function RT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kT(e,t,r){return r=r!=null?r.concat([e]):null,rv(4,4,RT.bind(null,t,e),r)}function n1(){}function IT(e,t){var r=tn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Z0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function AT(e,t){var r=tn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Z0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function jT(e,t,r){return Za&21?(wn(r,t)||(r=N2(),it.lanes|=r,ei|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mr=!0),e.memoizedState=r)}function PL(e,t){var r=ze;ze=r!==0&&4>r?r:4,e(!0);var n=lm.transition;lm.transition={};try{e(!1),t()}finally{ze=r,lm.transition=n}}function MT(){return tn().memoizedState}function TL(e,t,r){var n=ta(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},FT(e))NT(t,r);else if(r=pT(e,t,r,n),r!==null){var o=ar();xn(r,e,n,o),LT(r,t,n)}}function RL(e,t,r){var n=ta(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(FT(e))NT(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,wn(s,i)){var u=t.interleaved;u===null?(o.next=o,K0(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=pT(e,t,o,n),r!==null&&(o=ar(),xn(r,e,n,o),LT(r,t,n))}}function FT(e){var t=e.alternate;return e===it||t!==null&&t===it}function NT(e,t){Wl=Td=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function LT(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,j0(e,r)}}var Rd={readContext:en,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},kL={readContext:en,useCallback:function(e,t){return Pn().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:I_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Pf(4194308,4,RT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Pf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pf(4,2,e,t)},useMemo:function(e,t){var r=Pn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Pn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TL.bind(null,it,e),[n.memoizedState,e]},useRef:function(e){var t=Pn();return e={current:e},t.memoizedState=e},useState:k_,useDebugValue:n1,useDeferredValue:function(e){return Pn().memoizedState=e},useTransition:function(){var e=k_(!1),t=e[0];return e=PL.bind(null,e[1]),Pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=it,o=Pn();if(rt){if(r===void 0)throw Error(Z(407));r=r()}else{if(r=t(),It===null)throw Error(Z(349));Za&30||ST(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,I_(CT.bind(null,n,a,e),[e]),n.flags|=2048,Ru(9,_T.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Pn(),t=It.identifierPrefix;if(rt){var r=lo,n=so;r=(n&~(1<<32-bn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Pu++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=EL++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},IL={readContext:en,useCallback:IT,useContext:en,useEffect:r1,useImperativeHandle:kT,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:AT,useReducer:um,useRef:ET,useState:function(){return um(Tu)},useDebugValue:n1,useDeferredValue:function(e){var t=tn();return jT(t,$t.memoizedState,e)},useTransition:function(){var e=um(Tu)[0],t=tn().memoizedState;return[e,t]},useMutableSource:xT,useSyncExternalStore:wT,useId:MT,unstable_isNewReconciler:!1},AL={readContext:en,useCallback:IT,useContext:en,useEffect:r1,useImperativeHandle:kT,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:AT,useReducer:cm,useRef:ET,useState:function(){return cm(Tu)},useDebugValue:n1,useDeferredValue:function(e){var t=tn();return $t===null?t.memoizedState=e:jT(t,$t.memoizedState,e)},useTransition:function(){var e=cm(Tu)[0],t=tn().memoizedState;return[e,t]},useMutableSource:xT,useSyncExternalStore:wT,useId:MT,unstable_isNewReconciler:!1};function Ss(e,t){try{var r="",n=t;do r+=s4(n),n=n.return;while(n);var o=r}catch(a){o=`
|
39
|
+
Error generating stack: `+a.message+`
|
40
|
+
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function fm(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Qg(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var jL=typeof WeakMap=="function"?WeakMap:Map;function DT(e,t,r){r=uo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Id||(Id=!0,ay=n),Qg(e,t)},r}function BT(e,t,r){r=uo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Qg(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Qg(e,t),typeof n!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function A_(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new jL;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=KL.bind(null,e,t,r),t.then(e,e))}function j_(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 M_(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=uo(-1,1),t.tag=2,Zo(r,t,1))),r.lanes|=1),e)}var ML=yo.ReactCurrentOwner,mr=!1;function nr(e,t,r,n){t.child=e===null?yT(t,null,r,n):xs(t,e.child,r,n)}function F_(e,t,r,n,o){r=r.render;var a=t.ref;return ns(t,o),n=e1(e,t,r,n,a,o),r=t1(),e!==null&&!mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(rt&&r&&U0(t),t.flags|=1,nr(e,t,n,o),t.child)}function N_(e,t,r,n,o){if(e===null){var a=r.type;return typeof a=="function"&&!f1(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,zT(e,t,a,n,o)):(e=If(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(r=r.compare,r=r!==null?r:Su,r(i,n)&&e.ref===t.ref)return ho(e,t,o)}return t.flags|=1,e=ra(a,n),e.ref=t.ref,e.return=t,t.child=e}function zT(e,t,r,n,o){if(e!==null){var a=e.memoizedProps;if(Su(a,n)&&e.ref===t.ref)if(mr=!1,t.pendingProps=n=a,(e.lanes&o)!==0)e.flags&131072&&(mr=!0);else return t.lanes=e.lanes,ho(e,t,o)}return Yg(e,t,r,n,o)}function UT(e,t,r){var n=t.pendingProps,o=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(Wi,Tr),Tr|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qe(Wi,Tr),Tr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Qe(Wi,Tr),Tr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Qe(Wi,Tr),Tr|=n;return nr(e,t,o,r),t.child}function VT(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Yg(e,t,r,n,o){var a=yr(r)?Xa:er.current;return a=ys(t,a),ns(t,o),r=e1(e,t,r,n,a,o),n=t1(),e!==null&&!mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(rt&&n&&U0(t),t.flags|=1,nr(e,t,r,o),t.child)}function L_(e,t,r,n,o){if(yr(r)){var a=!0;Sd(t)}else a=!1;if(ns(t,o),t.stateNode===null)Tf(e,t),mT(t,r,n),Kg(t,r,n,o),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,l=r.contextType;typeof l=="object"&&l!==null?l=en(l):(l=yr(r)?Xa:er.current,l=ys(t,l));var c=r.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||u!==l)&&T_(t,i,n,l),Mo=!1;var p=t.memoizedState;i.state=p,Ed(t,n,i,o),u=t.memoizedState,s!==n||p!==u||gr.current||Mo?(typeof c=="function"&&(Gg(t,r,c,n),u=t.memoizedState),(s=Mo||P_(t,r,s,n,p,u,l))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=l,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,vT(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:dn(t.type,s),i.props=l,d=t.pendingProps,p=i.context,u=r.contextType,typeof u=="object"&&u!==null?u=en(u):(u=yr(r)?Xa:er.current,u=ys(t,u));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||p!==u)&&T_(t,i,n,u),Mo=!1,p=t.memoizedState,i.state=p,Ed(t,n,i,o);var m=t.memoizedState;s!==d||p!==m||gr.current||Mo?(typeof h=="function"&&(Gg(t,r,h,n),m=t.memoizedState),(l=Mo||P_(t,r,l,n,p,m,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,m,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,m,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=u,n=l):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Xg(e,t,r,n,a,o)}function Xg(e,t,r,n,o,a){VT(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return o&&__(t,r,!1),ho(e,t,a);n=t.stateNode,ML.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=xs(t,e.child,null,a),t.child=xs(t,null,s,a)):nr(e,t,s,a),t.memoizedState=n.state,o&&__(t,r,!0),t.child}function WT(e){var t=e.stateNode;t.pendingContext?S_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&S_(e,t.context,!1),Y0(e,t.containerInfo)}function D_(e,t,r,n,o){return bs(),W0(o),t.flags|=256,nr(e,t,r,n),t.child}var Jg={dehydrated:null,treeContext:null,retryLane:0};function Zg(e){return{baseLanes:e,cachePool:null,transitions:null}}function HT(e,t,r){var n=t.pendingProps,o=at.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Qe(at,o&1),e===null)return Hg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,a?(n=t.mode,a=t.child,i={mode:"hidden",children:i},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=av(i,n,0,null),e=Ua(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Zg(r),t.memoizedState=Jg,e):o1(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return FL(e,t,i,n,s,o,r);if(a){a=n.fallback,i=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:n.children};return!(i&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=ra(o,u),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=ra(s,a):(a=Ua(a,i,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,i=e.child.memoizedState,i=i===null?Zg(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~r,t.memoizedState=Jg,n}return a=e.child,e=a.sibling,n=ra(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function o1(e,t){return t=av({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qc(e,t,r,n){return n!==null&&W0(n),xs(t,e.child,null,r),e=o1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function FL(e,t,r,n,o,a,i){if(r)return t.flags&256?(t.flags&=-257,n=fm(Error(Z(422))),Qc(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=av({mode:"visible",children:n.children},o,0,null),a=Ua(a,o,i,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&xs(t,e.child,null,i),t.child.memoizedState=Zg(i),t.memoizedState=Jg,a);if(!(t.mode&1))return Qc(e,t,i,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(Z(419)),n=fm(a,n,void 0),Qc(e,t,i,n)}if(s=(i&e.childLanes)!==0,mr||s){if(n=It,n!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,vo(e,o),xn(n,e,o,-1))}return c1(),n=fm(Error(Z(421))),Qc(e,t,i,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=QL.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,kr=Jo(o.nextSibling),Ir=t,rt=!0,vn=null,e!==null&&(Gr[Kr++]=so,Gr[Kr++]=lo,Gr[Kr++]=Ja,so=e.id,lo=e.overflow,Ja=t),t=o1(t,n.children),t.flags|=4096,t)}function B_(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),qg(e.return,t,r)}function dm(e,t,r,n,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function qT(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(nr(e,t,n.children,r),n=at.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&B_(e,r,t);else if(e.tag===19)B_(e,r,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}n&=1}if(Qe(at,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Pd(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),dm(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Pd(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}dm(t,!0,r,null,a);break;case"together":dm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ho(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ei|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,r=ra(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ra(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function NL(e,t,r){switch(t.tag){case 3:WT(t),bs();break;case 5:bT(t);break;case 1:yr(t.type)&&Sd(t);break;case 4:Y0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Qe($d,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Qe(at,at.current&1),t.flags|=128,null):r&t.child.childLanes?HT(e,t,r):(Qe(at,at.current&1),e=ho(e,t,r),e!==null?e.sibling:null);Qe(at,at.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return qT(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Qe(at,at.current),n)break;return null;case 22:case 23:return t.lanes=0,UT(e,t,r)}return ho(e,t,r)}var GT,ey,KT,QT;GT=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ey=function(){};KT=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Ma(Dn.current);var a=null;switch(r){case"input":o=Sg(e,o),n=Sg(e,n),a=[];break;case"select":o=st({},o,{value:void 0}),n=st({},n,{value:void 0}),a=[];break;case"textarea":o=$g(e,o),n=$g(e,n),a=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=xd)}Eg(r,n);var i;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var s=o[l];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(hu.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in n){var u=n[l];if(s=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(a||(a=[]),a.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(hu.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Xe("scroll",e),a||s===u||(a=[])):(a=a||[]).push(l,u))}r&&(a=a||[]).push("style",r);var l=a;(t.updateQueue=l)&&(t.flags|=4)}};QT=function(e,t,r,n){r!==n&&(t.flags|=4)};function ml(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function LL(e,t,r){var n=t.pendingProps;switch(V0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(t),null;case 1:return yr(t.type)&&wd(),Yt(t),null;case 3:return n=t.stateNode,ws(),Ze(gr),Ze(er),J0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,vn!==null&&(ly(vn),vn=null))),ey(e,t),Yt(t),null;case 5:X0(t);var o=Ma(Eu.current);if(r=t.type,e!==null&&t.stateNode!=null)KT(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Z(166));return Yt(t),null}if(e=Ma(Dn.current),Gc(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[jn]=t,n[$u]=a,e=(t.mode&1)!==0,r){case"dialog":Xe("cancel",n),Xe("close",n);break;case"iframe":case"object":case"embed":Xe("load",n);break;case"video":case"audio":for(o=0;o<Al.length;o++)Xe(Al[o],n);break;case"source":Xe("error",n);break;case"img":case"image":case"link":Xe("error",n),Xe("load",n);break;case"details":Xe("toggle",n);break;case"input":QS(n,a),Xe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Xe("invalid",n);break;case"textarea":XS(n,a),Xe("invalid",n)}Eg(r,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&qc(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&qc(n.textContent,s,e),o=["children",""+s]):hu.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&Xe("scroll",n)}switch(r){case"input":Lc(n),YS(n,a,!0);break;case"textarea":Lc(n),JS(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=xd)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=S2(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[jn]=t,e[$u]=n,GT(e,t,!1,!1),t.stateNode=e;e:{switch(i=Pg(r,n),r){case"dialog":Xe("cancel",e),Xe("close",e),o=n;break;case"iframe":case"object":case"embed":Xe("load",e),o=n;break;case"video":case"audio":for(o=0;o<Al.length;o++)Xe(Al[o],e);o=n;break;case"source":Xe("error",e),o=n;break;case"img":case"image":case"link":Xe("error",e),Xe("load",e),o=n;break;case"details":Xe("toggle",e),o=n;break;case"input":QS(e,n),o=Sg(e,n),Xe("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=st({},n,{value:void 0}),Xe("invalid",e);break;case"textarea":XS(e,n),o=$g(e,n),Xe("invalid",e);break;default:o=n}Eg(r,o),s=o;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];a==="style"?$2(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&_2(e,u)):a==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&mu(e,u):typeof u=="number"&&mu(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(hu.hasOwnProperty(a)?u!=null&&a==="onScroll"&&Xe("scroll",e):u!=null&&P0(e,a,u,i))}switch(r){case"input":Lc(e),YS(e,n,!1);break;case"textarea":Lc(e),JS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+sa(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Zi(e,!!n.multiple,a,!1):n.defaultValue!=null&&Zi(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=xd)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Yt(t),null;case 6:if(e&&t.stateNode!=null)QT(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Z(166));if(r=Ma(Eu.current),Ma(Dn.current),Gc(t)){if(n=t.stateNode,r=t.memoizedProps,n[jn]=t,(a=n.nodeValue!==r)&&(e=Ir,e!==null))switch(e.tag){case 3:qc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qc(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[jn]=t,t.stateNode=n}return Yt(t),null;case 13:if(Ze(at),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&kr!==null&&t.mode&1&&!(t.flags&128))dT(),bs(),t.flags|=98560,a=!1;else if(a=Gc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(Z(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Z(317));a[jn]=t}else bs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yt(t),a=!1}else vn!==null&&(ly(vn),vn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||at.current&1?Ot===0&&(Ot=3):c1())),t.updateQueue!==null&&(t.flags|=4),Yt(t),null);case 4:return ws(),ey(e,t),e===null&&_u(t.stateNode.containerInfo),Yt(t),null;case 10:return G0(t.type._context),Yt(t),null;case 17:return yr(t.type)&&wd(),Yt(t),null;case 19:if(Ze(at),a=t.memoizedState,a===null)return Yt(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)ml(a,!1);else{if(Ot!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Pd(e),i!==null){for(t.flags|=128,ml(a,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Qe(at,at.current&1|2),t.child}e=e.sibling}a.tail!==null&&ht()>_s&&(t.flags|=128,n=!0,ml(a,!1),t.lanes=4194304)}else{if(!n)if(e=Pd(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ml(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!rt)return Yt(t),null}else 2*ht()-a.renderingStartTime>_s&&r!==1073741824&&(t.flags|=128,n=!0,ml(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ht(),t.sibling=null,r=at.current,Qe(at,n?r&1|2:r&1),t):(Yt(t),null);case 22:case 23:return u1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Tr&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function DL(e,t){switch(V0(t),t.tag){case 1:return yr(t.type)&&wd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ws(),Ze(gr),Ze(er),J0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return X0(t),null;case 13:if(Ze(at),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));bs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ze(at),null;case 4:return ws(),null;case 10:return G0(t.type._context),null;case 22:case 23:return u1(),null;case 24:return null;default:return null}}var Yc=!1,Jt=!1,BL=typeof WeakSet=="function"?WeakSet:Set,le=null;function Vi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ct(e,t,n)}else r.current=null}function ty(e,t,r){try{r()}catch(n){ct(e,t,n)}}var z_=!1;function zL(e,t){if(Lg=gd,e=Z2(),z0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(s=i+o),d!==a||n!==0&&d.nodeType!==3||(u=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++l===o&&(s=i),p===a&&++c===n&&(u=i),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dg={focusedElem:e,selectionRange:r},gd=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:dn(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){ct(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return m=z_,z_=!1,m}function Hl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&ty(t,r,a)}o=o.next}while(o!==n)}}function nv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ry(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function YT(e){var t=e.alternate;t!==null&&(e.alternate=null,YT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jn],delete t[$u],delete t[Ug],delete t[_L],delete t[CL])),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 XT(e){return e.tag===5||e.tag===3||e.tag===4}function U_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XT(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 ny(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xd));else if(n!==4&&(e=e.child,e!==null))for(ny(e,t,r),e=e.sibling;e!==null;)ny(e,t,r),e=e.sibling}function oy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(oy(e,t,r),e=e.sibling;e!==null;)oy(e,t,r),e=e.sibling}var Bt=null,pn=!1;function ko(e,t,r){for(r=r.child;r!==null;)JT(e,t,r),r=r.sibling}function JT(e,t,r){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Qp,r)}catch{}switch(r.tag){case 5:Jt||Vi(r,t);case 6:var n=Bt,o=pn;Bt=null,ko(e,t,r),Bt=n,pn=o,Bt!==null&&(pn?(e=Bt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Bt.removeChild(r.stateNode));break;case 18:Bt!==null&&(pn?(e=Bt,r=r.stateNode,e.nodeType===8?am(e.parentNode,r):e.nodeType===1&&am(e,r),xu(e)):am(Bt,r.stateNode));break;case 4:n=Bt,o=pn,Bt=r.stateNode.containerInfo,pn=!0,ko(e,t,r),Bt=n,pn=o;break;case 0:case 11:case 14:case 15:if(!Jt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&ty(r,t,i),o=o.next}while(o!==n)}ko(e,t,r);break;case 1:if(!Jt&&(Vi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){ct(r,t,s)}ko(e,t,r);break;case 21:ko(e,t,r);break;case 22:r.mode&1?(Jt=(n=Jt)||r.memoizedState!==null,ko(e,t,r),Jt=n):ko(e,t,r);break;default:ko(e,t,r)}}function V_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new BL),t.forEach(function(n){var o=YL.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:Bt=s.stateNode,pn=!1;break e;case 3:Bt=s.stateNode.containerInfo,pn=!0;break e;case 4:Bt=s.stateNode.containerInfo,pn=!0;break e}s=s.return}if(Bt===null)throw Error(Z(160));JT(a,i,o),Bt=null,pn=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(l){ct(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ZT(t,e),t=t.sibling}function ZT(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fn(t,e),En(e),n&4){try{Hl(3,e,e.return),nv(3,e)}catch(y){ct(e,e.return,y)}try{Hl(5,e,e.return)}catch(y){ct(e,e.return,y)}}break;case 1:fn(t,e),En(e),n&512&&r!==null&&Vi(r,r.return);break;case 5:if(fn(t,e),En(e),n&512&&r!==null&&Vi(r,r.return),e.flags&32){var o=e.stateNode;try{mu(o,"")}catch(y){ct(e,e.return,y)}}if(n&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=r!==null?r.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&x2(o,a),Pg(s,i);var l=Pg(s,a);for(i=0;i<u.length;i+=2){var c=u[i],d=u[i+1];c==="style"?$2(o,d):c==="dangerouslySetInnerHTML"?_2(o,d):c==="children"?mu(o,d):P0(o,c,d,l)}switch(s){case"input":_g(o,a);break;case"textarea":w2(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Zi(o,!!a.multiple,h,!1):p!==!!a.multiple&&(a.defaultValue!=null?Zi(o,!!a.multiple,a.defaultValue,!0):Zi(o,!!a.multiple,a.multiple?[]:"",!1))}o[$u]=a}catch(y){ct(e,e.return,y)}}break;case 6:if(fn(t,e),En(e),n&4){if(e.stateNode===null)throw Error(Z(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(y){ct(e,e.return,y)}}break;case 3:if(fn(t,e),En(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{xu(t.containerInfo)}catch(y){ct(e,e.return,y)}break;case 4:fn(t,e),En(e);break;case 13:fn(t,e),En(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(s1=ht())),n&4&&V_(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Jt=(l=Jt)||c,fn(t,e),Jt=l):fn(t,e),En(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(le=e,c=e.child;c!==null;){for(d=le=c;le!==null;){switch(p=le,h=p.child,p.tag){case 0:case 11:case 14:case 15:Hl(4,p,p.return);break;case 1:Vi(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){ct(n,r,y)}}break;case 5:Vi(p,p.return);break;case 22:if(p.memoizedState!==null){H_(d);continue}}h!==null?(h.return=p,le=h):H_(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,l?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,u=d.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=C2("display",i))}catch(y){ct(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){ct(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:fn(t,e),En(e),n&4&&V_(e);break;case 21:break;default:fn(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(XT(r)){var n=r;break e}r=r.return}throw Error(Z(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(mu(o,""),n.flags&=-33);var a=U_(e);oy(e,a,o);break;case 3:case 4:var i=n.stateNode.containerInfo,s=U_(e);ny(e,s,i);break;default:throw Error(Z(161))}}catch(u){ct(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function UL(e,t,r){le=e,eR(e)}function eR(e,t,r){for(var n=(e.mode&1)!==0;le!==null;){var o=le,a=o.child;if(o.tag===22&&n){var i=o.memoizedState!==null||Yc;if(!i){var s=o.alternate,u=s!==null&&s.memoizedState!==null||Jt;s=Yc;var l=Jt;if(Yc=i,(Jt=u)&&!l)for(le=o;le!==null;)i=le,u=i.child,i.tag===22&&i.memoizedState!==null?q_(o):u!==null?(u.return=i,le=u):q_(o);for(;a!==null;)le=a,eR(a),a=a.sibling;le=o,Yc=s,Jt=l}W_(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,le=a):W_(e)}}function W_(e){for(;le!==null;){var t=le;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Jt||nv(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Jt)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:dn(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&E_(t,a,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}E_(t,i,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&xu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}Jt||t.flags&512&&ry(t)}catch(p){ct(t,t.return,p)}}if(t===e){le=null;break}if(r=t.sibling,r!==null){r.return=t.return,le=r;break}le=t.return}}function H_(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var r=t.sibling;if(r!==null){r.return=t.return,le=r;break}le=t.return}}function q_(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nv(4,t)}catch(u){ct(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(u){ct(t,o,u)}}var a=t.return;try{ry(t)}catch(u){ct(t,a,u)}break;case 5:var i=t.return;try{ry(t)}catch(u){ct(t,i,u)}}}catch(u){ct(t,t.return,u)}if(t===e){le=null;break}var s=t.sibling;if(s!==null){s.return=t.return,le=s;break}le=t.return}}var VL=Math.ceil,kd=yo.ReactCurrentDispatcher,a1=yo.ReactCurrentOwner,Jr=yo.ReactCurrentBatchConfig,Fe=0,It=null,_t=null,Vt=0,Tr=0,Wi=fa(0),Ot=0,ku=null,ei=0,ov=0,i1=0,ql=null,vr=null,s1=0,_s=1/0,ro=null,Id=!1,ay=null,ea=null,Xc=!1,Vo=null,Ad=0,Gl=0,iy=null,Rf=-1,kf=0;function ar(){return Fe&6?ht():Rf!==-1?Rf:Rf=ht()}function ta(e){return e.mode&1?Fe&2&&Vt!==0?Vt&-Vt:OL.transition!==null?(kf===0&&(kf=N2()),kf):(e=ze,e!==0||(e=window.event,e=e===void 0?16:W2(e.type)),e):1}function xn(e,t,r,n){if(50<Gl)throw Gl=0,iy=null,Error(Z(185));Xu(e,r,n),(!(Fe&2)||e!==It)&&(e===It&&(!(Fe&2)&&(ov|=r),Ot===4&&Bo(e,Vt)),br(e,n),r===1&&Fe===0&&!(t.mode&1)&&(_s=ht()+500,ev&&da()))}function br(e,t){var r=e.callbackNode;O4(e,t);var n=md(e,e===It?Vt:0);if(n===0)r!==null&&t_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&t_(r),t===1)e.tag===0?$L(G_.bind(null,e)):uT(G_.bind(null,e)),wL(function(){!(Fe&6)&&da()}),r=null;else{switch(L2(n)){case 1:r=A0;break;case 4:r=M2;break;case 16:r=hd;break;case 536870912:r=F2;break;default:r=hd}r=lR(r,tR.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function tR(e,t){if(Rf=-1,kf=0,Fe&6)throw Error(Z(327));var r=e.callbackNode;if(os()&&e.callbackNode!==r)return null;var n=md(e,e===It?Vt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=jd(e,n);else{t=n;var o=Fe;Fe|=2;var a=nR();(It!==e||Vt!==t)&&(ro=null,_s=ht()+500,za(e,t));do try{qL();break}catch(s){rR(e,s)}while(1);q0(),kd.current=a,Fe=o,_t!==null?t=0:(It=null,Vt=0,t=Ot)}if(t!==0){if(t===2&&(o=Ag(e),o!==0&&(n=o,t=sy(e,o))),t===1)throw r=ku,za(e,0),Bo(e,n),br(e,ht()),r;if(t===6)Bo(e,n);else{if(o=e.current.alternate,!(n&30)&&!WL(o)&&(t=jd(e,n),t===2&&(a=Ag(e),a!==0&&(n=a,t=sy(e,a))),t===1))throw r=ku,za(e,0),Bo(e,n),br(e,ht()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(Z(345));case 2:Oa(e,vr,ro);break;case 3:if(Bo(e,n),(n&130023424)===n&&(t=s1+500-ht(),10<t)){if(md(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){ar(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zg(Oa.bind(null,e,vr,ro),t);break}Oa(e,vr,ro);break;case 4:if(Bo(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-bn(n);a=1<<i,i=t[i],i>o&&(o=i),n&=~a}if(n=o,n=ht()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VL(n/1960))-n,10<n){e.timeoutHandle=zg(Oa.bind(null,e,vr,ro),n);break}Oa(e,vr,ro);break;case 5:Oa(e,vr,ro);break;default:throw Error(Z(329))}}}return br(e,ht()),e.callbackNode===r?tR.bind(null,e):null}function sy(e,t){var r=ql;return e.current.memoizedState.isDehydrated&&(za(e,t).flags|=256),e=jd(e,t),e!==2&&(t=vr,vr=r,t!==null&&ly(t)),e}function ly(e){vr===null?vr=e:vr.push.apply(vr,e)}function WL(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!wn(a(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bo(e,t){for(t&=~i1,t&=~ov,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-bn(t),n=1<<r;e[r]=-1,t&=~n}}function G_(e){if(Fe&6)throw Error(Z(327));os();var t=md(e,0);if(!(t&1))return br(e,ht()),null;var r=jd(e,t);if(e.tag!==0&&r===2){var n=Ag(e);n!==0&&(t=n,r=sy(e,n))}if(r===1)throw r=ku,za(e,0),Bo(e,t),br(e,ht()),r;if(r===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Oa(e,vr,ro),br(e,ht()),null}function l1(e,t){var r=Fe;Fe|=1;try{return e(t)}finally{Fe=r,Fe===0&&(_s=ht()+500,ev&&da())}}function ti(e){Vo!==null&&Vo.tag===0&&!(Fe&6)&&os();var t=Fe;Fe|=1;var r=Jr.transition,n=ze;try{if(Jr.transition=null,ze=1,e)return e()}finally{ze=n,Jr.transition=r,Fe=t,!(Fe&6)&&da()}}function u1(){Tr=Wi.current,Ze(Wi)}function za(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,xL(r)),_t!==null)for(r=_t.return;r!==null;){var n=r;switch(V0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&wd();break;case 3:ws(),Ze(gr),Ze(er),J0();break;case 5:X0(n);break;case 4:ws();break;case 13:Ze(at);break;case 19:Ze(at);break;case 10:G0(n.type._context);break;case 22:case 23:u1()}r=r.return}if(It=e,_t=e=ra(e.current,null),Vt=Tr=t,Ot=0,ku=null,i1=ov=ei=0,vr=ql=null,ja!==null){for(t=0;t<ja.length;t++)if(r=ja[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,a=r.pending;if(a!==null){var i=a.next;a.next=o,n.next=i}r.pending=n}ja=null}return e}function rR(e,t){do{var r=_t;try{if(q0(),Ef.current=Rd,Td){for(var n=it.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Td=!1}if(Za=0,kt=$t=it=null,Wl=!1,Pu=0,a1.current=null,r===null||r.return===null){Ot=1,ku=t,_t=null;break}e:{var a=e,i=r.return,s=r,u=t;if(t=Vt,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=j_(i);if(h!==null){h.flags&=-257,M_(h,i,s,a,t),h.mode&1&&A_(a,l,t),t=h,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){A_(a,l,t),c1();break e}u=Error(Z(426))}}else if(rt&&s.mode&1){var x=j_(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),M_(x,i,s,a,t),W0(Ss(u,s));break e}}a=u=Ss(u,s),Ot!==4&&(Ot=2),ql===null?ql=[a]:ql.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=DT(a,u,t);O_(a,b);break e;case 1:s=u;var v=a.type,g=a.stateNode;if(!(a.flags&128)&&(typeof v.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ea===null||!ea.has(g)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=BT(a,s,t);O_(a,S);break e}}a=a.return}while(a!==null)}aR(r)}catch(w){t=w,_t===r&&r!==null&&(_t=r=r.return);continue}break}while(1)}function nR(){var e=kd.current;return kd.current=Rd,e===null?Rd:e}function c1(){(Ot===0||Ot===3||Ot===2)&&(Ot=4),It===null||!(ei&268435455)&&!(ov&268435455)||Bo(It,Vt)}function jd(e,t){var r=Fe;Fe|=2;var n=nR();(It!==e||Vt!==t)&&(ro=null,za(e,t));do try{HL();break}catch(o){rR(e,o)}while(1);if(q0(),Fe=r,kd.current=n,_t!==null)throw Error(Z(261));return It=null,Vt=0,Ot}function HL(){for(;_t!==null;)oR(_t)}function qL(){for(;_t!==null&&!g4();)oR(_t)}function oR(e){var t=sR(e.alternate,e,Tr);e.memoizedProps=e.pendingProps,t===null?aR(e):_t=t,a1.current=null}function aR(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=DL(r,t),r!==null){r.flags&=32767,_t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ot=6,_t=null;return}}else if(r=LL(r,t,Tr),r!==null){_t=r;return}if(t=t.sibling,t!==null){_t=t;return}_t=t=e}while(t!==null);Ot===0&&(Ot=5)}function Oa(e,t,r){var n=ze,o=Jr.transition;try{Jr.transition=null,ze=1,GL(e,t,r,n)}finally{Jr.transition=o,ze=n}return null}function GL(e,t,r,n){do os();while(Vo!==null);if(Fe&6)throw Error(Z(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(E4(e,a),e===It&&(_t=It=null,Vt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Xc||(Xc=!0,lR(hd,function(){return os(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Jr.transition,Jr.transition=null;var i=ze;ze=1;var s=Fe;Fe|=4,a1.current=null,zL(e,r),ZT(r,e),pL(Dg),gd=!!Lg,Dg=Lg=null,e.current=r,UL(r),y4(),Fe=s,ze=i,Jr.transition=a}else e.current=r;if(Xc&&(Xc=!1,Vo=e,Ad=o),a=e.pendingLanes,a===0&&(ea=null),w4(r.stateNode),br(e,ht()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Id)throw Id=!1,e=ay,ay=null,e;return Ad&1&&e.tag!==0&&os(),a=e.pendingLanes,a&1?e===iy?Gl++:(Gl=0,iy=e):Gl=0,da(),null}function os(){if(Vo!==null){var e=L2(Ad),t=Jr.transition,r=ze;try{if(Jr.transition=null,ze=16>e?16:e,Vo===null)var n=!1;else{if(e=Vo,Vo=null,Ad=0,Fe&6)throw Error(Z(331));var o=Fe;for(Fe|=4,le=e.current;le!==null;){var a=le,i=a.child;if(le.flags&16){var s=a.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(le=l;le!==null;){var c=le;switch(c.tag){case 0:case 11:case 15:Hl(8,c,a)}var d=c.child;if(d!==null)d.return=c,le=d;else for(;le!==null;){c=le;var p=c.sibling,h=c.return;if(YT(c),c===l){le=null;break}if(p!==null){p.return=h,le=p;break}le=h}}}var m=a.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}le=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,le=i;else e:for(;le!==null;){if(a=le,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Hl(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,le=b;break e}le=a.return}}var v=e.current;for(le=v;le!==null;){i=le;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,le=g;else e:for(i=v;le!==null;){if(s=le,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:nv(9,s)}}catch(w){ct(s,s.return,w)}if(s===i){le=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,le=S;break e}le=s.return}}if(Fe=o,da(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Qp,e)}catch{}n=!0}return n}finally{ze=r,Jr.transition=t}}return!1}function K_(e,t,r){t=Ss(r,t),t=DT(e,t,1),e=Zo(e,t,1),t=ar(),e!==null&&(Xu(e,1,t),br(e,t))}function ct(e,t,r){if(e.tag===3)K_(e,e,r);else for(;t!==null;){if(t.tag===3){K_(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ea===null||!ea.has(n))){e=Ss(r,e),e=BT(t,e,1),t=Zo(t,e,1),e=ar(),t!==null&&(Xu(t,1,e),br(t,e));break}}t=t.return}}function KL(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ar(),e.pingedLanes|=e.suspendedLanes&r,It===e&&(Vt&r)===r&&(Ot===4||Ot===3&&(Vt&130023424)===Vt&&500>ht()-s1?za(e,0):i1|=r),br(e,t)}function iR(e,t){t===0&&(e.mode&1?(t=zc,zc<<=1,!(zc&130023424)&&(zc=4194304)):t=1);var r=ar();e=vo(e,t),e!==null&&(Xu(e,t,r),br(e,r))}function QL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),iR(e,r)}function YL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Z(314))}n!==null&&n.delete(t),iR(e,r)}var sR;sR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gr.current)mr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mr=!1,NL(e,t,r);mr=!!(e.flags&131072)}else mr=!1,rt&&t.flags&1048576&&cT(t,Cd,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Tf(e,t),e=t.pendingProps;var o=ys(t,er.current);ns(t,r),o=e1(null,t,n,e,o,r);var a=t1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yr(n)?(a=!0,Sd(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Q0(t),o.updater=tv,t.stateNode=o,o._reactInternals=t,Kg(t,n,e,r),t=Xg(null,t,n,!0,a,r)):(t.tag=0,rt&&a&&U0(t),nr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Tf(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=JL(n),e=dn(n,e),o){case 0:t=Yg(null,t,n,e,r);break e;case 1:t=L_(null,t,n,e,r);break e;case 11:t=F_(null,t,n,e,r);break e;case 14:t=N_(null,t,n,dn(n.type,e),r);break e}throw Error(Z(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:dn(n,o),Yg(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:dn(n,o),L_(e,t,n,o,r);case 3:e:{if(WT(t),e===null)throw Error(Z(387));n=t.pendingProps,a=t.memoizedState,o=a.element,vT(e,t),Ed(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ss(Error(Z(423)),t),t=D_(e,t,n,r,o);break e}else if(n!==o){o=Ss(Error(Z(424)),t),t=D_(e,t,n,r,o);break e}else for(kr=Jo(t.stateNode.containerInfo.firstChild),Ir=t,rt=!0,vn=null,r=yT(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bs(),n===o){t=ho(e,t,r);break e}nr(e,t,n,r)}t=t.child}return t;case 5:return bT(t),e===null&&Hg(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Bg(n,o)?i=null:a!==null&&Bg(n,a)&&(t.flags|=32),VT(e,t),nr(e,t,i,r),t.child;case 6:return e===null&&Hg(t),null;case 13:return HT(e,t,r);case 4:return Y0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xs(t,null,n,r):nr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:dn(n,o),F_(e,t,n,o,r);case 7:return nr(e,t,t.pendingProps,r),t.child;case 8:return nr(e,t,t.pendingProps.children,r),t.child;case 12:return nr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Qe($d,n._currentValue),n._currentValue=i,a!==null)if(wn(a.value,i)){if(a.children===o.children&&!gr.current){t=ho(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=uo(-1,r&-r),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),qg(a.return,r,t),s.lanes|=r;break}u=u.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Z(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),qg(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}nr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,ns(t,r),o=en(o),n=n(o),t.flags|=1,nr(e,t,n,r),t.child;case 14:return n=t.type,o=dn(n,t.pendingProps),o=dn(n.type,o),N_(e,t,n,o,r);case 15:return zT(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:dn(n,o),Tf(e,t),t.tag=1,yr(n)?(e=!0,Sd(t)):e=!1,ns(t,r),mT(t,n,o),Kg(t,n,o,r),Xg(null,t,n,!0,e,r);case 19:return qT(e,t,r);case 22:return UT(e,t,r)}throw Error(Z(156,t.tag))};function lR(e,t){return j2(e,t)}function XL(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(e,t,r,n){return new XL(e,t,r,n)}function f1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JL(e){if(typeof e=="function")return f1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===R0)return 11;if(e===k0)return 14}return 2}function ra(e,t){var r=e.alternate;return r===null?(r=Yr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function If(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")f1(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ji:return Ua(r.children,o,a,t);case T0:i=8,o|=8;break;case yg:return e=Yr(12,r,t,o|2),e.elementType=yg,e.lanes=a,e;case bg:return e=Yr(13,r,t,o),e.elementType=bg,e.lanes=a,e;case xg:return e=Yr(19,r,t,o),e.elementType=xg,e.lanes=a,e;case g2:return av(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h2:i=10;break e;case m2:i=9;break e;case R0:i=11;break e;case k0:i=14;break e;case jo:i=16,n=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=Yr(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Ua(e,t,r,n){return e=Yr(7,e,n,t),e.lanes=r,e}function av(e,t,r,n){return e=Yr(22,e,n,t),e.elementType=g2,e.lanes=r,e.stateNode={isHidden:!1},e}function pm(e,t,r){return e=Yr(6,e,null,t),e.lanes=r,e}function vm(e,t,r){return t=Yr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZL(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kh(0),this.expirationTimes=Kh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function d1(e,t,r,n,o,a,i,s,u){return e=new ZL(e,t,r,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Yr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Q0(a),e}function e5(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ai,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function uR(e){if(!e)return la;e=e._reactInternals;e:{if(ui(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var r=e.type;if(yr(r))return lT(e,r,t)}return t}function cR(e,t,r,n,o,a,i,s,u){return e=d1(r,n,!0,e,o,a,i,s,u),e.context=uR(null),r=e.current,n=ar(),o=ta(r),a=uo(n,o),a.callback=t??null,Zo(r,a,o),e.current.lanes=o,Xu(e,o,n),br(e,n),e}function iv(e,t,r,n){var o=t.current,a=ar(),i=ta(o);return r=uR(r),t.context===null?t.context=r:t.pendingContext=r,t=uo(a,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Zo(o,t,i),e!==null&&(xn(e,o,i,a),Of(e,o,i)),i}function Md(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Q_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function p1(e,t){Q_(e,t),(e=e.alternate)&&Q_(e,t)}function t5(){return null}var fR=typeof reportError=="function"?reportError:function(e){console.error(e)};function v1(e){this._internalRoot=e}sv.prototype.render=v1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));iv(e,t,null,null)};sv.prototype.unmount=v1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ti(function(){iv(null,e,null,null)}),t[po]=null}};function sv(e){this._internalRoot=e}sv.prototype.unstable_scheduleHydration=function(e){if(e){var t=z2();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Do.length&&t!==0&&t<Do[r].priority;r++);Do.splice(r,0,e),r===0&&V2(e)}};function h1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Y_(){}function r5(e,t,r,n,o){if(o){if(typeof n=="function"){var a=n;n=function(){var l=Md(i);a.call(l)}}var i=cR(t,n,e,0,null,!1,!1,"",Y_);return e._reactRootContainer=i,e[po]=i.current,_u(e.nodeType===8?e.parentNode:e),ti(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Md(u);s.call(l)}}var u=d1(e,0,!1,null,null,!1,!1,"",Y_);return e._reactRootContainer=u,e[po]=u.current,_u(e.nodeType===8?e.parentNode:e),ti(function(){iv(t,u,r,n)}),u}function uv(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var s=o;o=function(){var u=Md(i);s.call(u)}}iv(t,i,e,o)}else i=r5(r,t,e,o,n);return Md(i)}D2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Il(t.pendingLanes);r!==0&&(j0(t,r|1),br(t,ht()),!(Fe&6)&&(_s=ht()+500,da()))}break;case 13:ti(function(){var n=vo(e,1);if(n!==null){var o=ar();xn(n,e,1,o)}}),p1(e,1)}};M0=function(e){if(e.tag===13){var t=vo(e,134217728);if(t!==null){var r=ar();xn(t,e,134217728,r)}p1(e,134217728)}};B2=function(e){if(e.tag===13){var t=ta(e),r=vo(e,t);if(r!==null){var n=ar();xn(r,e,t,n)}p1(e,t)}};z2=function(){return ze};U2=function(e,t){var r=ze;try{return ze=e,t()}finally{ze=r}};Rg=function(e,t,r){switch(t){case"input":if(_g(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Zp(n);if(!o)throw Error(Z(90));b2(n),_g(n,o)}}}break;case"textarea":w2(e,r);break;case"select":t=r.value,t!=null&&Zi(e,!!r.multiple,t,!1)}};P2=l1;T2=ti;var n5={usingClientEntryPoint:!1,Events:[Zu,Li,Zp,O2,E2,l1]},gl={findFiberByHostInstance:Aa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},o5={bundleType:gl.bundleType,version:gl.version,rendererPackageName:gl.rendererPackageName,rendererConfig:gl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=I2(e),e===null?null:e.stateNode},findFiberByHostInstance:gl.findFiberByHostInstance||t5,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{Qp=Jc.inject(o5),Ln=Jc}catch{}}Nr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n5;Nr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h1(t))throw Error(Z(200));return e5(e,t,null,r)};Nr.createRoot=function(e,t){if(!h1(e))throw Error(Z(299));var r=!1,n="",o=fR;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=d1(e,1,!1,null,null,r,!1,n,o),e[po]=t.current,_u(e.nodeType===8?e.parentNode:e),new v1(t)};Nr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=I2(t),e=e===null?null:e.stateNode,e};Nr.flushSync=function(e){return ti(e)};Nr.hydrate=function(e,t,r){if(!lv(t))throw Error(Z(200));return uv(null,e,t,!0,r)};Nr.hydrateRoot=function(e,t,r){if(!h1(e))throw Error(Z(405));var n=r!=null&&r.hydratedSources||null,o=!1,a="",i=fR;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=cR(t,null,e,1,r??null,o,!1,a,i),e[po]=t.current,_u(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new sv(t)};Nr.render=function(e,t,r){if(!lv(t))throw Error(Z(200));return uv(null,e,t,!1,r)};Nr.unmountComponentAtNode=function(e){if(!lv(e))throw Error(Z(40));return e._reactRootContainer?(ti(function(){uv(null,null,e,!1,function(){e._reactRootContainer=null,e[po]=null})}),!0):!1};Nr.unstable_batchedUpdates=l1;Nr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!lv(r))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return uv(e,t,r,!1,n)};Nr.version="18.2.0-next-9e3b772b8-20220608";function dR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dR)}catch(e){console.error(e)}}dR(),c2.exports=Nr;var cv=c2.exports;const jl=Ye(cv);var X_=cv;mg.createRoot=X_.createRoot,mg.hydrateRoot=X_.hydrateRoot;var m1={},pR={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(pR);var we=pR.exports,hm={};function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function io(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vR(e){if(!io(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=vR(e[r])}),t}function ir(e,t,r={clone:!0}){const n=r.clone?O({},e):e;return io(e)&&io(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(io(t[o])&&o in e&&io(e[o])?n[o]=ir(e[o],t[o],r):r.clone?n[o]=io(t[o])?vR(t[o]):t[o]:n[o]=t[o])}),n}const a5=Object.freeze(Object.defineProperty({__proto__:null,default:ir,isPlainObject:io},Symbol.toStringTag,{value:"Module"}));var hR={exports:{}},i5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",s5=i5,l5=s5;function mR(){}function gR(){}gR.resetWarningCache=mR;var u5=function(){function e(n,o,a,i,s,u){if(u!==l5){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={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:gR,resetWarningCache:mR};return r.PropTypes=r,r};hR.exports=u5();var c5=hR.exports;const C=Ye(c5);function mo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const f5=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"}));var yR={exports:{}},Ue={};/**
|
41
|
+
* @license React
|
42
|
+
* react-is.production.min.js
|
43
|
+
*
|
44
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
45
|
+
*
|
46
|
+
* This source code is licensed under the MIT license found in the
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
48
|
+
*/var g1=Symbol.for("react.element"),y1=Symbol.for("react.portal"),fv=Symbol.for("react.fragment"),dv=Symbol.for("react.strict_mode"),pv=Symbol.for("react.profiler"),vv=Symbol.for("react.provider"),hv=Symbol.for("react.context"),d5=Symbol.for("react.server_context"),mv=Symbol.for("react.forward_ref"),gv=Symbol.for("react.suspense"),yv=Symbol.for("react.suspense_list"),bv=Symbol.for("react.memo"),xv=Symbol.for("react.lazy"),p5=Symbol.for("react.offscreen"),bR;bR=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case g1:switch(e=e.type,e){case fv:case pv:case dv:case gv:case yv:return e;default:switch(e=e&&e.$$typeof,e){case d5:case hv:case mv:case xv:case bv:case vv:return e;default:return t}}case y1:return t}}}Ue.ContextConsumer=hv;Ue.ContextProvider=vv;Ue.Element=g1;Ue.ForwardRef=mv;Ue.Fragment=fv;Ue.Lazy=xv;Ue.Memo=bv;Ue.Portal=y1;Ue.Profiler=pv;Ue.StrictMode=dv;Ue.Suspense=gv;Ue.SuspenseList=yv;Ue.isAsyncMode=function(){return!1};Ue.isConcurrentMode=function(){return!1};Ue.isContextConsumer=function(e){return an(e)===hv};Ue.isContextProvider=function(e){return an(e)===vv};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===g1};Ue.isForwardRef=function(e){return an(e)===mv};Ue.isFragment=function(e){return an(e)===fv};Ue.isLazy=function(e){return an(e)===xv};Ue.isMemo=function(e){return an(e)===bv};Ue.isPortal=function(e){return an(e)===y1};Ue.isProfiler=function(e){return an(e)===pv};Ue.isStrictMode=function(e){return an(e)===dv};Ue.isSuspense=function(e){return an(e)===gv};Ue.isSuspenseList=function(e){return an(e)===yv};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fv||e===pv||e===dv||e===gv||e===yv||e===p5||typeof e=="object"&&e!==null&&(e.$$typeof===xv||e.$$typeof===bv||e.$$typeof===vv||e.$$typeof===hv||e.$$typeof===mv||e.$$typeof===bR||e.getModuleId!==void 0)};Ue.typeOf=an;yR.exports=Ue;var uy=yR.exports;const v5=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function xR(e){const t=`${e}`.match(v5);return t&&t[1]||""}function wR(e,t=""){return e.displayName||e.name||xR(e)||t}function J_(e,t,r){const n=wR(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function h5(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return wR(e,"Component");if(typeof e=="object")switch(e.$$typeof){case uy.ForwardRef:return J_(e,e.render,"ForwardRef");case uy.Memo:return J_(e,e.type,"memo");default:return}}}const m5=Object.freeze(Object.defineProperty({__proto__:null,default:h5,getFunctionName:xR},Symbol.toStringTag,{value:"Module"}));function Q(e){if(typeof e!="string")throw new Error(mo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const g5=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));function cy(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function wv(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function y5(e,t){return()=>null}function Kl(e,t){var r,n;return f.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Et(e){return e&&e.ownerDocument||document}function Vn(e){return Et(e).defaultView||window}function b5(e,t){return()=>null}function Fd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const x5=typeof window<"u"?f.useLayoutEffect:f.useEffect,Mr=x5;let Z_=0;function w5(e){const[t,r]=f.useState(e),n=e||t;return f.useEffect(()=>{t==null&&(Z_+=1,r(`mui-${Z_}`))},[t]),n}const eC=fd["useId".toString()];function ri(e){if(eC!==void 0){const t=eC();return e??t}return w5(e)}function S5(e,t,r,n,o){return null}function Cs({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=f.useRef(e!==void 0),[a,i]=f.useState(t),s=o?e:a,u=f.useCallback(l=>{o||i(l)},[]);return[s,u]}function Xr(e){const t=f.useRef(e);return Mr(()=>{t.current=e}),f.useRef((...r)=>(0,t.current)(...r)).current}function ot(...e){return f.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Fd(r,t)})},e)}const tC={};function _5(e,t){const r=f.useRef(tC);return r.current===tC&&(r.current=e(t)),r}const C5=[];function $5(e){f.useEffect(e,C5)}class tc{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new tc}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function Fa(){const e=_5(tc.create).current;return $5(e.disposeEffect),e}let Sv=!0,fy=!1;const O5=new tc,E5={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function P5(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&E5[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function T5(e){e.metaKey||e.altKey||e.ctrlKey||(Sv=!0)}function mm(){Sv=!1}function R5(){this.visibilityState==="hidden"&&fy&&(Sv=!0)}function k5(e){e.addEventListener("keydown",T5,!0),e.addEventListener("mousedown",mm,!0),e.addEventListener("pointerdown",mm,!0),e.addEventListener("touchstart",mm,!0),e.addEventListener("visibilitychange",R5,!0)}function I5(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Sv||P5(t)}function _v(){const e=f.useCallback(o=>{o!=null&&k5(o.ownerDocument)},[]),t=f.useRef(!1);function r(){return t.current?(fy=!0,O5.start(100,()=>{fy=!1}),t.current=!1,!0):!1}function n(o){return I5(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function SR(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function b1(e,t){const r=O({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=O({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=O({},a),Object.keys(o).forEach(i=>{r[n][i]=b1(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function de(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const rC=e=>e,A5=()=>{let e=rC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rC}}},j5=A5(),x1=j5,_R={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pe(e,t,r="Mui"){const n=_R[t];return n?`${r}-${n}`:`${x1.generate(e)}-${t}`}function ce(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=pe(e,o,r)}),n}function CR(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const M5=Object.freeze(Object.defineProperty({__proto__:null,default:CR},Symbol.toStringTag,{value:"Module"}));function X(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function $R(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=$R(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=$R(e))&&(n&&(n+=" "),n+=t);return n}function OR(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:b1(t.components[r].defaultProps,n)}const F5=["values","unit","step"],N5=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>O({},r,{[n.key]:n.val}),{})};function ER(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=X(e,F5),a=N5(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,h){const m=i.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:h)-n/100}${r})`}function c(p){return i.indexOf(p)+1<i.length?l(p,i[i.indexOf(p)+1]):s(p)}function d(p){const h=i.indexOf(p);return h===0?s(i[1]):h===i.length-1?u(i[h]):l(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return O({keys:i,values:a,up:s,down:u,between:l,only:c,not:d,unit:r},o)}const L5={borderRadius:4},D5=L5;function Ql(e,t){return t?ir(e,t,{clone:!1}):e}const w1={xs:0,sm:600,md:900,lg:1200,xl:1536},nC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${w1[e]}px)`};function Sn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||nC;return t.reduce((i,s,u)=>(i[a.up(a.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const a=n.breakpoints||nC;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||w1).indexOf(s)!==-1){const u=a.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function PR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function TR(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function B5(e,...t){const r=PR(e),n=[r,...t].reduce((o,a)=>ir(o,a),{});return TR(Object.keys(r),n)}function z5(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function gm({values:e,breakpoints:t,base:r}){const n=r||z5(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function $s(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Nd(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=$s(e,r)||n,t&&(o=t(o,n,e)),o}function yt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=$s(u,n)||{};return Sn(i,s,d=>{let p=Nd(l,o,d);return d===p&&typeof d=="string"&&(p=Nd(l,o,`${t}${d==="default"?"":Q(d)}`,d)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function U5(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const V5={m:"margin",p:"padding"},W5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},H5=U5(e=>{if(e.length>2)if(oC[e])e=oC[e];else return[e];const[t,r]=e.split(""),n=V5[t],o=W5[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),S1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...S1,..._1];function rc(e,t,r,n){var o;const a=(o=$s(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function C1(e){return rc(e,"spacing",8)}function ni(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function q5(e,t){return r=>e.reduce((n,o)=>(n[o]=ni(t,r),n),{})}function G5(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=H5(r),a=q5(o,n),i=e[r];return Sn(e,i,a)}function RR(e,t){const r=C1(e.theme);return Object.keys(e).map(n=>G5(e,t,n,r)).reduce(Ql,{})}function lt(e){return RR(e,S1)}lt.propTypes={};lt.filterProps=S1;function ut(e){return RR(e,_1)}ut.propTypes={};ut.filterProps=_1;function K5(e=8){if(e.mui)return e;const t=C1({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Cv(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Ql(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Qr(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return yt({prop:e,themeKey:"borders",transform:t})}const Q5=sn("border",Qr),Y5=sn("borderTop",Qr),X5=sn("borderRight",Qr),J5=sn("borderBottom",Qr),Z5=sn("borderLeft",Qr),eD=sn("borderColor"),tD=sn("borderTopColor"),rD=sn("borderRightColor"),nD=sn("borderBottomColor"),oD=sn("borderLeftColor"),aD=sn("outline",Qr),iD=sn("outlineColor"),$v=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rc(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ni(t,n)});return Sn(e,e.borderRadius,r)}return null};$v.propTypes={};$v.filterProps=["borderRadius"];Cv(Q5,Y5,X5,J5,Z5,eD,tD,rD,nD,oD,$v,aD,iD);const Ov=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rc(e.theme,"spacing",8),r=n=>({gap:ni(t,n)});return Sn(e,e.gap,r)}return null};Ov.propTypes={};Ov.filterProps=["gap"];const Ev=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rc(e.theme,"spacing",8),r=n=>({columnGap:ni(t,n)});return Sn(e,e.columnGap,r)}return null};Ev.propTypes={};Ev.filterProps=["columnGap"];const Pv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rc(e.theme,"spacing",8),r=n=>({rowGap:ni(t,n)});return Sn(e,e.rowGap,r)}return null};Pv.propTypes={};Pv.filterProps=["rowGap"];const sD=yt({prop:"gridColumn"}),lD=yt({prop:"gridRow"}),uD=yt({prop:"gridAutoFlow"}),cD=yt({prop:"gridAutoColumns"}),fD=yt({prop:"gridAutoRows"}),dD=yt({prop:"gridTemplateColumns"}),pD=yt({prop:"gridTemplateRows"}),vD=yt({prop:"gridTemplateAreas"}),hD=yt({prop:"gridArea"});Cv(Ov,Ev,Pv,sD,lD,uD,cD,fD,dD,pD,vD,hD);function as(e,t){return t==="grey"?t:e}const mD=yt({prop:"color",themeKey:"palette",transform:as}),gD=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:as}),yD=yt({prop:"backgroundColor",themeKey:"palette",transform:as});Cv(mD,gD,yD);function Rr(e){return e<=1&&e!==0?`${e*100}%`:e}const bD=yt({prop:"width",transform:Rr}),$1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||w1[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Rr(r)}};return Sn(e,e.maxWidth,t)}return null};$1.filterProps=["maxWidth"];const xD=yt({prop:"minWidth",transform:Rr}),wD=yt({prop:"height",transform:Rr}),SD=yt({prop:"maxHeight",transform:Rr}),_D=yt({prop:"minHeight",transform:Rr});yt({prop:"size",cssProperty:"width",transform:Rr});yt({prop:"size",cssProperty:"height",transform:Rr});const CD=yt({prop:"boxSizing"});Cv(bD,$1,xD,wD,SD,_D,CD);const $D={border:{themeKey:"borders",transform:Qr},borderTop:{themeKey:"borders",transform:Qr},borderRight:{themeKey:"borders",transform:Qr},borderBottom:{themeKey:"borders",transform:Qr},borderLeft:{themeKey:"borders",transform:Qr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$v},color:{themeKey:"palette",transform:as},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:as},backgroundColor:{themeKey:"palette",transform:as},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ov},rowGap:{style:Pv},columnGap:{style:Ev},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rr},maxWidth:{style:$1},minWidth:{transform:Rr},height:{transform:Rr},maxHeight:{transform:Rr},minHeight:{transform:Rr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},nc=$D;function OD(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ED(e,t){return typeof e=="function"?e(t):e}function kR(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=$s(o,l)||{};return d?d(i):Sn(i,n,m=>{let y=Nd(p,c,m);return m===y&&typeof m=="string"&&(y=Nd(p,c,`${r}${m==="default"?"":Q(m)}`,m)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nc;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=PR(a.breakpoints),d=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const m=ED(l[h],a);if(m!=null)if(typeof m=="object")if(i[h])p=Ql(p,e(h,m,a,i));else{const y=Sn({theme:a},m,x=>({[h]:x}));OD(y,m)?p[h]=t({sx:m,theme:a}):p=Ql(p,y)}else p=Ql(p,e(h,m,a,i))}),TR(d,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const IR=kR();IR.filterProps=["sx"];const oc=IR;function AR(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const PD=["breakpoints","palette","spacing","shape"];function ac(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=X(e,PD),s=ER(r),u=K5(o);let l=ir({breakpoints:s,direction:"ltr",components:{},palette:O({mode:"light"},n),spacing:u,shape:O({},D5,a)},i);return l.applyStyles=AR,l=t.reduce((c,d)=>ir(c,d),l),l.unstable_sxConfig=O({},nc,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return oc({sx:d,theme:this})},l}const TD=Object.freeze(Object.defineProperty({__proto__:null,default:ac,private_createBreakpoints:ER,unstable_applyStyles:AR},Symbol.toStringTag,{value:"Module"}));function jR(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var RD=/^((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|disableRemotePlayback|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)-.*))$/,kD=jR(function(e){return RD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function ID(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function AD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jD=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(AD(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=ID(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Xt="-ms-",Ld="-moz-",Le="-webkit-",MR="comm",O1="rule",E1="decl",MD="@import",FR="@keyframes",FD="@layer",ND=Math.abs,Tv=String.fromCharCode,LD=Object.assign;function DD(e,t){return Ut(e,0)^45?(((t<<2^Ut(e,0))<<2^Ut(e,1))<<2^Ut(e,2))<<2^Ut(e,3):0}function NR(e){return e.trim()}function BD(e,t){return(e=t.exec(e))?e[0]:e}function De(e,t,r){return e.replace(t,r)}function dy(e,t){return e.indexOf(t)}function Ut(e,t){return e.charCodeAt(t)|0}function Iu(e,t,r){return e.slice(t,r)}function Rn(e){return e.length}function P1(e){return e.length}function Zc(e,t){return t.push(e),e}function zD(e,t){return e.map(t).join("")}var Rv=1,Os=1,LR=0,Sr=0,St=0,zs="";function kv(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Rv,column:Os,length:i,return:""}}function yl(e,t){return LD(kv("",null,null,"",null,null,0),e,{length:-e.length},t)}function UD(){return St}function VD(){return St=Sr>0?Ut(zs,--Sr):0,Os--,St===10&&(Os=1,Rv--),St}function Ar(){return St=Sr<LR?Ut(zs,Sr++):0,Os++,St===10&&(Os=1,Rv++),St}function Bn(){return Ut(zs,Sr)}function Af(){return Sr}function ic(e,t){return Iu(zs,e,t)}function Au(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DR(e){return Rv=Os=1,LR=Rn(zs=e),Sr=0,[]}function BR(e){return zs="",e}function jf(e){return NR(ic(Sr-1,py(e===91?e+2:e===40?e+1:e)))}function WD(e){for(;(St=Bn())&&St<33;)Ar();return Au(e)>2||Au(St)>3?"":" "}function HD(e,t){for(;--t&&Ar()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return ic(e,Af()+(t<6&&Bn()==32&&Ar()==32))}function py(e){for(;Ar();)switch(St){case e:return Sr;case 34:case 39:e!==34&&e!==39&&py(St);break;case 40:e===41&&py(e);break;case 92:Ar();break}return Sr}function qD(e,t){for(;Ar()&&e+St!==47+10;)if(e+St===42+42&&Bn()===47)break;return"/*"+ic(t,Sr-1)+"*"+Tv(e===47?e:Ar())}function GD(e){for(;!Au(Bn());)Ar();return ic(e,Sr)}function KD(e){return BR(Mf("",null,null,null,[""],e=DR(e),0,[0],e))}function Mf(e,t,r,n,o,a,i,s,u){for(var l=0,c=0,d=i,p=0,h=0,m=0,y=1,x=1,b=1,v=0,g="",S=o,w=a,_=n,$=g;x;)switch(m=v,v=Ar()){case 40:if(m!=108&&Ut($,d-1)==58){dy($+=De(jf(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:$+=jf(v);break;case 9:case 10:case 13:case 32:$+=WD(m);break;case 92:$+=HD(Af()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Zc(QD(qD(Ar(),Af()),t,r),u);break;default:$+="/"}break;case 123*y:s[l++]=Rn($)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:b==-1&&($=De($,/\f/g,"")),h>0&&Rn($)-d&&Zc(h>32?iC($+";",n,r,d-1):iC(De($," ","")+";",n,r,d-2),u);break;case 59:$+=";";default:if(Zc(_=aC($,t,r,l,c,o,s,g,S=[],w=[],d),a),v===123)if(c===0)Mf($,t,_,_,S,a,d,s,w);else switch(p===99&&Ut($,3)===110?100:p){case 100:case 108:case 109:case 115:Mf(e,_,_,n&&Zc(aC(e,_,_,0,0,o,s,g,o,S=[],d),w),o,w,d,s,n?S:w);break;default:Mf($,_,_,_,[""],w,0,s,w)}}l=c=h=0,y=b=1,g=$="",d=i;break;case 58:d=1+Rn($),h=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&VD()==125)continue}switch($+=Tv(v),v*y){case 38:b=c>0?1:($+="\f",-1);break;case 44:s[l++]=(Rn($)-1)*b,b=1;break;case 64:Bn()===45&&($+=jf(Ar())),p=Bn(),c=d=Rn(g=$+=GD(Af())),v++;break;case 45:m===45&&Rn($)==2&&(y=0)}}return a}function aC(e,t,r,n,o,a,i,s,u,l,c){for(var d=o-1,p=o===0?a:[""],h=P1(p),m=0,y=0,x=0;m<n;++m)for(var b=0,v=Iu(e,d+1,d=ND(y=i[m])),g=e;b<h;++b)(g=NR(y>0?p[b]+" "+v:De(v,/&\f/g,p[b])))&&(u[x++]=g);return kv(e,t,r,o===0?O1:s,u,l,c)}function QD(e,t,r){return kv(e,t,r,MR,Tv(UD()),Iu(e,2,-2),0)}function iC(e,t,r,n){return kv(e,t,r,E1,Iu(e,0,n),Iu(e,n+1,-1),n)}function is(e,t){for(var r="",n=P1(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function YD(e,t,r,n){switch(e.type){case FD:if(e.children.length)break;case MD:case E1:return e.return=e.return||e.value;case MR:return"";case FR:return e.return=e.value+"{"+is(e.children,n)+"}";case O1:e.value=e.props.join(",")}return Rn(r=is(e.children,n))?e.return=e.value+"{"+r+"}":""}function XD(e){var t=P1(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function JD(e){return function(t){t.root||(t=t.return)&&e(t)}}var ZD=function(t,r,n){for(var o=0,a=0;o=a,a=Bn(),o===38&&a===12&&(r[n]=1),!Au(a);)Ar();return ic(t,Sr)},e6=function(t,r){var n=-1,o=44;do switch(Au(o)){case 0:o===38&&Bn()===12&&(r[n]=1),t[n]+=ZD(Sr-1,r,n);break;case 2:t[n]+=jf(o);break;case 4:if(o===44){t[++n]=Bn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Tv(o)}while(o=Ar());return t},t6=function(t,r){return BR(e6(DR(t),r))},sC=new WeakMap,r6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!sC.get(n))&&!o){sC.set(t,!0);for(var a=[],i=t6(r,a),s=n.props,u=0,l=0;u<i.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=a[u]?i[u].replace(/&\f/g,s[c]):s[c]+" "+i[u]}}},n6=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zR(e,t){switch(DD(e,t)){case 5103:return Le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Le+e+Ld+e+Xt+e+e;case 6828:case 4268:return Le+e+Xt+e+e;case 6165:return Le+e+Xt+"flex-"+e+e;case 5187:return Le+e+De(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+Xt+"flex-$1$2")+e;case 5443:return Le+e+Xt+"flex-item-"+De(e,/flex-|-self/,"")+e;case 4675:return Le+e+Xt+"flex-line-pack"+De(e,/align-content|flex-|-self/,"")+e;case 5548:return Le+e+Xt+De(e,"shrink","negative")+e;case 5292:return Le+e+Xt+De(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+De(e,"-grow","")+Le+e+Xt+De(e,"grow","positive")+e;case 4554:return Le+De(e,/([^-])(transform)/g,"$1"+Le+"$2")+e;case 6187:return De(De(De(e,/(zoom-|grab)/,Le+"$1"),/(image-set)/,Le+"$1"),e,"")+e;case 5495:case 3959:return De(e,/(image-set\([^]*)/,Le+"$1$`$1");case 4968:return De(De(e,/(.+:)(flex-)?(.*)/,Le+"box-pack:$3"+Xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Le+e+e;case 4095:case 3583:case 4068:case 2532:return De(e,/(.+)-inline(.+)/,Le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rn(e)-1-t>6)switch(Ut(e,t+1)){case 109:if(Ut(e,t+4)!==45)break;case 102:return De(e,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1"+Ld+(Ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dy(e,"stretch")?zR(De(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ut(e,t+1)!==115)break;case 6444:switch(Ut(e,Rn(e)-3-(~dy(e,"!important")&&10))){case 107:return De(e,":",":"+Le)+e;case 101:return De(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Le+(Ut(e,14)===45?"inline-":"")+"box$3$1"+Le+"$2$3$1"+Xt+"$2box$3")+e}break;case 5936:switch(Ut(e,t+11)){case 114:return Le+e+Xt+De(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+Xt+De(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+Xt+De(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Le+e+Xt+e+e}return e}var o6=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case E1:t.return=zR(t.value,t.length);break;case FR:return is([yl(t,{value:De(t.value,"@","@"+Le)})],o);case O1:if(t.length)return zD(t.props,function(a){switch(BD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return is([yl(t,{props:[De(a,/:(read-\w+)/,":"+Ld+"$1")]})],o);case"::placeholder":return is([yl(t,{props:[De(a,/:(plac\w+)/,":"+Le+"input-$1")]}),yl(t,{props:[De(a,/:(plac\w+)/,":"+Ld+"$1")]}),yl(t,{props:[De(a,/:(plac\w+)/,Xt+"input-$1")]})],o)}return""})}},a6=[o6],UR=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||a6,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)a[x[b]]=!0;s.push(y)});var u,l=[r6,n6];{var c,d=[YD,JD(function(y){c.insert(y)})],p=XD(l.concat(o,d)),h=function(x){return is(KD(x),p)};u=function(x,b,v,g){c=v,h(x?x+"{"+b.styles+"}":b.styles),g&&(m.inserted[b.name]=!0)}}var m={key:r,sheet:new jD({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return m.sheet.hydrate(s),m},VR={exports:{}},Ve={};/** @license React v16.13.1
|
49
|
+
* react-is.production.min.js
|
50
|
+
*
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
52
|
+
*
|
53
|
+
* This source code is licensed under the MIT license found in the
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
55
|
+
*/var At=typeof Symbol=="function"&&Symbol.for,T1=At?Symbol.for("react.element"):60103,R1=At?Symbol.for("react.portal"):60106,Iv=At?Symbol.for("react.fragment"):60107,Av=At?Symbol.for("react.strict_mode"):60108,jv=At?Symbol.for("react.profiler"):60114,Mv=At?Symbol.for("react.provider"):60109,Fv=At?Symbol.for("react.context"):60110,k1=At?Symbol.for("react.async_mode"):60111,Nv=At?Symbol.for("react.concurrent_mode"):60111,Lv=At?Symbol.for("react.forward_ref"):60112,Dv=At?Symbol.for("react.suspense"):60113,i6=At?Symbol.for("react.suspense_list"):60120,Bv=At?Symbol.for("react.memo"):60115,zv=At?Symbol.for("react.lazy"):60116,s6=At?Symbol.for("react.block"):60121,l6=At?Symbol.for("react.fundamental"):60117,u6=At?Symbol.for("react.responder"):60118,c6=At?Symbol.for("react.scope"):60119;function Dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T1:switch(e=e.type,e){case k1:case Nv:case Iv:case jv:case Av:case Dv:return e;default:switch(e=e&&e.$$typeof,e){case Fv:case Lv:case zv:case Bv:case Mv:return e;default:return t}}case R1:return t}}}function WR(e){return Dr(e)===Nv}Ve.AsyncMode=k1;Ve.ConcurrentMode=Nv;Ve.ContextConsumer=Fv;Ve.ContextProvider=Mv;Ve.Element=T1;Ve.ForwardRef=Lv;Ve.Fragment=Iv;Ve.Lazy=zv;Ve.Memo=Bv;Ve.Portal=R1;Ve.Profiler=jv;Ve.StrictMode=Av;Ve.Suspense=Dv;Ve.isAsyncMode=function(e){return WR(e)||Dr(e)===k1};Ve.isConcurrentMode=WR;Ve.isContextConsumer=function(e){return Dr(e)===Fv};Ve.isContextProvider=function(e){return Dr(e)===Mv};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T1};Ve.isForwardRef=function(e){return Dr(e)===Lv};Ve.isFragment=function(e){return Dr(e)===Iv};Ve.isLazy=function(e){return Dr(e)===zv};Ve.isMemo=function(e){return Dr(e)===Bv};Ve.isPortal=function(e){return Dr(e)===R1};Ve.isProfiler=function(e){return Dr(e)===jv};Ve.isStrictMode=function(e){return Dr(e)===Av};Ve.isSuspense=function(e){return Dr(e)===Dv};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iv||e===Nv||e===jv||e===Av||e===Dv||e===i6||typeof e=="object"&&e!==null&&(e.$$typeof===zv||e.$$typeof===Bv||e.$$typeof===Mv||e.$$typeof===Fv||e.$$typeof===Lv||e.$$typeof===l6||e.$$typeof===u6||e.$$typeof===c6||e.$$typeof===s6)};Ve.typeOf=Dr;VR.exports=Ve;var f6=VR.exports,HR=f6,d6={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qR={};qR[HR.ForwardRef]=d6;qR[HR.Memo]=p6;var v6=!0;function h6(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var GR=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||v6===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},KR=function(t,r,n){GR(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function m6(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var g6={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},y6=/[A-Z]|^ms/g,b6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QR=function(t){return t.charCodeAt(1)===45},lC=function(t){return t!=null&&typeof t!="boolean"},ym=jR(function(e){return QR(e)?e:e.replace(y6,"-$&").toLowerCase()}),uC=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(b6,function(n,o,a){return kn={name:o,styles:a,next:kn},o})}return g6[t]!==1&&!QR(t)&&typeof r=="number"&&r!==0?r+"px":r};function ju(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return kn={name:r.name,styles:r.styles,next:kn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)kn={name:n.name,styles:n.styles,next:kn},n=n.next;var o=r.styles+";";return o}return x6(e,t,r)}case"function":{if(e!==void 0){var a=kn,i=r(e);return kn=a,ju(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function x6(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ju(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object")t!=null&&t[i]!==void 0?n+=a+"{"+t[i]+"}":lC(i)&&(n+=ym(a)+":"+uC(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)lC(i[s])&&(n+=ym(a)+":"+uC(a,i[s])+";");else{var u=ju(e,t,i);switch(a){case"animation":case"animationName":{n+=ym(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var cC=/label:\s*([^\s;\n{]+)\s*(;|$)/g,kn,I1=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";kn=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=ju(n,r,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ju(n,r,t[s]),o&&(a+=i[s]);cC.lastIndex=0;for(var u="",l;(l=cC.exec(a))!==null;)u+="-"+l[1];var c=m6(a)+u;return{name:c,styles:a,next:kn}},w6=function(t){return t()},YR=fd["useInsertionEffect"]?fd["useInsertionEffect"]:!1,S6=YR||w6,fC=YR||f.useLayoutEffect,XR=f.createContext(typeof HTMLElement<"u"?UR({key:"css"}):null),_6=XR.Provider,JR=function(t){return f.forwardRef(function(r,n){var o=f.useContext(XR);return t(r,o,n)})},sc=f.createContext({}),bm={exports:{}},dC;function ZR(){return dC||(dC=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(bm)),bm.exports}ZR();var C6=JR(function(e,t){var r=e.styles,n=I1([r],void 0,f.useContext(sc)),o=f.useRef();return fC(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",a),i.hydrate([u])),o.current=[i,s],function(){i.flush()}},[t]),fC(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&KR(t,n.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function ci(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return I1(t)}var bo=function(){var t=ci.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},$6=kD,O6=function(t){return t!=="theme"},pC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$6:O6},vC=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},E6=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return GR(r,n,o),S6(function(){return KR(r,n,o)}),null},P6=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=vC(t,r,n),u=s||pC(o),l=!u("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],c[0][h])}var m=JR(function(y,x,b){var v=l&&y.as||o,g="",S=[],w=y;if(y.theme==null){w={};for(var _ in y)w[_]=y[_];w.theme=f.useContext(sc)}typeof y.className=="string"?g=h6(x.registered,S,y.className):y.className!=null&&(g=y.className+" ");var $=I1(d.concat(S),x.registered,w);g+=x.key+"-"+$.name,i!==void 0&&(g+=" "+i);var P=l&&s===void 0?pC(v):u,T={};for(var R in y)l&&R==="as"||P(R)&&(T[R]=y[R]);return T.className=g,T.ref=b,f.createElement(f.Fragment,null,f.createElement(E6,{cache:x,serialized:$,isStringTag:typeof v=="string"}),f.createElement(v,T))});return m.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(y,x){return e(y,O({},r,x,{shouldForwardProp:vC(m,x,!0)})).apply(void 0,d)},m}},T6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],vy=P6.bind();T6.forEach(function(e){vy[e]=vy(e)});let hy;typeof document=="object"&&(hy=UR({key:"css",prepend:!0}));function R6(e){const{injectFirst:t,children:r}=e;return t&&hy?E.jsx(_6,{value:hy,children:r}):r}function k6(e){return e==null||Object.keys(e).length===0}function ek(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(k6(o)?r:o):t;return E.jsx(C6,{styles:n})}/**
|
56
|
+
* @mui/styled-engine v5.15.11
|
57
|
+
*
|
58
|
+
* @license MIT
|
59
|
+
* This source code is licensed under the MIT license found in the
|
60
|
+
* LICENSE file in the root directory of this source tree.
|
61
|
+
*/function A1(e,t){return vy(e,t)}const tk=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},I6=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ek,StyledEngineProvider:R6,ThemeContext:sc,css:ci,default:A1,internal_processStyles:tk,keyframes:bo},Symbol.toStringTag,{value:"Module"}));function A6(e){return Object.keys(e).length===0}function j1(e=null){const t=f.useContext(sc);return!t||A6(t)?e:t}const j6=ac();function Uv(e=j6){return j1(e)}function rk({props:e,name:t,defaultTheme:r,themeId:n}){let o=Uv(r);return n&&(o=o[n]||o),OR({theme:o,name:t,props:e})}const M6=["sx"],F6=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nc;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Vv(e){const{sx:t}=e,r=X(e,M6),{systemProps:n,otherProps:o}=F6(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return io(s)?O({},n,s):n}:a=O({},n,t),O({},o,{sx:a})}const N6=Object.freeze(Object.defineProperty({__proto__:null,default:oc,extendSxProp:Vv,unstable_createStyleFunctionSx:kR,unstable_defaultSxConfig:nc},Symbol.toStringTag,{value:"Module"}));function L6(e,t){return O({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var bt={};const D6=Gn(f5),B6=Gn(M5);var nk=we;Object.defineProperty(bt,"__esModule",{value:!0});var Be=bt.alpha=sk;bt.blend=J6;bt.colorChannel=void 0;var M1=bt.darken=L1;bt.decomposeColor=rn;var z6=bt.emphasize=X6,U6=bt.getContrastRatio=G6;bt.getLuminance=Dd;bt.hexToRgb=ok;bt.hslToRgb=ik;var F1=bt.lighten=D1;bt.private_safeAlpha=K6;bt.private_safeColorChannel=void 0;bt.private_safeDarken=Q6;bt.private_safeEmphasize=lk;bt.private_safeLighten=Y6;bt.recomposeColor=Us;bt.rgbToHex=q6;var hC=nk(D6),V6=nk(B6);function N1(e,t=0,r=1){return(0,V6.default)(e,t,r)}function ok(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function W6(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rn(e){if(e.type)return e;if(e.charAt(0)==="#")return rn(ok(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,hC.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,hC.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ak=e=>{const t=rn(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};bt.colorChannel=ak;const H6=(e,t)=>{try{return ak(e)}catch{return e}};bt.private_safeColorChannel=H6;function Us(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function q6(e){if(e.indexOf("#")===0)return e;const{values:t}=rn(e);return`#${t.map((r,n)=>W6(n===3?Math.round(255*r):r)).join("")}`}function ik(e){e=rn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(l,c=(l+r/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Us({type:s,values:u})}function Dd(e){e=rn(e);let t=e.type==="hsl"||e.type==="hsla"?rn(ik(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function G6(e,t){const r=Dd(e),n=Dd(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sk(e,t){return e=rn(e),t=N1(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Us(e)}function K6(e,t,r){try{return sk(e,t)}catch{return e}}function L1(e,t){if(e=rn(e),t=N1(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Us(e)}function Q6(e,t,r){try{return L1(e,t)}catch{return e}}function D1(e,t){if(e=rn(e),t=N1(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Us(e)}function Y6(e,t,r){try{return D1(e,t)}catch{return e}}function X6(e,t=.15){return Dd(e)>.5?L1(e,t):D1(e,t)}function lk(e,t,r){try{return lk(e,t)}catch{return e}}function J6(e,t,r,n=1){const o=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),a=rn(e),i=rn(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Us({type:"rgb",values:s})}const Z6={black:"#000",white:"#fff"},Mu=Z6,eB={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},tB=eB,rB={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},mi=rB,nB={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},gi=nB,oB={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},bl=oB,aB={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},yi=aB,iB={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},bi=iB,sB={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},xi=sB,lB=["mode","contrastThreshold","tonalOffset"],mC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mu.white,default:Mu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},xm={text:{primary:Mu.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Mu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gC(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=F1(e.main,o):t==="dark"&&(e.dark=M1(e.main,a)))}function uB(e="light"){return e==="dark"?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}function cB(e="light"){return e==="dark"?{main:mi[200],light:mi[50],dark:mi[400]}:{main:mi[500],light:mi[300],dark:mi[700]}}function fB(e="light"){return e==="dark"?{main:gi[500],light:gi[300],dark:gi[700]}:{main:gi[700],light:gi[400],dark:gi[800]}}function dB(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[500],dark:bi[900]}}function pB(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[800],light:xi[500],dark:xi[900]}}function vB(e="light"){return e==="dark"?{main:bl[400],light:bl[300],dark:bl[700]}:{main:"#ed6c02",light:bl[500],dark:bl[900]}}function hB(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=X(e,lB),a=e.primary||uB(t),i=e.secondary||cB(t),s=e.error||fB(t),u=e.info||dB(t),l=e.success||pB(t),c=e.warning||vB(t);function d(y){return U6(y,xm.text.primary)>=r?xm.text.primary:mC.text.primary}const p=({color:y,name:x,mainShade:b=500,lightShade:v=300,darkShade:g=700})=>{if(y=O({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(mo(11,x?` (${x})`:"",b));if(typeof y.main!="string")throw new Error(mo(12,x?` (${x})`:"",JSON.stringify(y.main)));return gC(y,"light",v,n),gC(y,"dark",g,n),y.contrastText||(y.contrastText=d(y.main)),y},h={dark:xm,light:mC};return ir(O({common:O({},Mu),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:tB,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},h[t]),o)}const mB=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function gB(e){return Math.round(e*1e5)/1e5}const yC={textTransform:"uppercase"},bC='"Roboto", "Helvetica", "Arial", sans-serif';function yB(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=bC,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=r,p=X(r,mB),h=o/14,m=d||(b=>`${b/l*h}rem`),y=(b,v,g,S,w)=>O({fontFamily:n,fontWeight:b,fontSize:m(v),lineHeight:g},n===bC?{letterSpacing:`${gB(S/v)}em`}:{},w,c),x={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,yC),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,yC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ir(O({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},x),p,{clone:!1})}const bB=.2,xB=.14,wB=.12;function tt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bB})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xB})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wB})`].join(",")}const SB=["none",tt(0,2,1,-1,0,1,1,0,0,1,3,0),tt(0,3,1,-2,0,2,2,0,0,1,5,0),tt(0,3,3,-2,0,3,4,0,0,1,8,0),tt(0,2,4,-1,0,4,5,0,0,1,10,0),tt(0,3,5,-1,0,5,8,0,0,1,14,0),tt(0,3,5,-1,0,6,10,0,0,1,18,0),tt(0,4,5,-2,0,7,10,1,0,2,16,1),tt(0,5,5,-3,0,8,10,1,0,3,14,2),tt(0,5,6,-3,0,9,12,1,0,3,16,2),tt(0,6,6,-3,0,10,14,1,0,4,18,3),tt(0,6,7,-4,0,11,15,1,0,4,20,3),tt(0,7,8,-4,0,12,17,2,0,5,22,4),tt(0,7,8,-4,0,13,19,2,0,5,24,4),tt(0,7,9,-4,0,14,21,2,0,5,26,4),tt(0,8,9,-5,0,15,22,2,0,6,28,5),tt(0,8,10,-5,0,16,24,2,0,6,30,5),tt(0,8,11,-5,0,17,26,2,0,6,32,5),tt(0,9,11,-5,0,18,28,2,0,7,34,6),tt(0,9,12,-6,0,19,29,2,0,7,36,6),tt(0,10,13,-6,0,20,31,3,0,8,38,7),tt(0,10,13,-6,0,21,33,3,0,8,40,7),tt(0,10,14,-6,0,22,35,3,0,8,42,7),tt(0,11,14,-7,0,23,36,3,0,9,44,8),tt(0,11,15,-7,0,24,38,3,0,9,46,8)],_B=SB,CB=["duration","easing","delay"],$B={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},OB={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xC(e){return`${Math.round(e)}ms`}function EB(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function PB(e){const t=O({},$B,e.easing),r=O({},OB,e.duration);return O({getAutoHeightDuration:EB,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=a;return X(a,CB),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:xC(i)} ${s} ${typeof u=="string"?u:xC(u)}`).join(",")}},e,{easing:t,duration:r})}const TB={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},RB=TB,kB=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=X(e,kB);if(e.vars)throw new Error(mo(18));const s=hB(n),u=ac(e);let l=ir(u,{mixins:L6(u.breakpoints,r),palette:s,shadows:_B.slice(),typography:yB(s,a),transitions:PB(o),zIndex:O({},RB)});return l=ir(l,i),l=t.reduce((c,d)=>ir(c,d),l),l.unstable_sxConfig=O({},nc,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return oc({sx:d,theme:this})},l}const IB=Fu(),Wv=IB,oi="$$material";function ve({props:e,name:t}){return rk({props:e,name:t,defaultTheme:Wv,themeId:oi})}var lc={},wm={exports:{}},wC;function AB(){return wC||(wC=1,function(e){function t(r,n){if(r==null)return{};var o={},a=Object.keys(r),i,s;for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wm)),wm.exports}const uk=Gn(I6),jB=Gn(a5),MB=Gn(g5),FB=Gn(m5),NB=Gn(TD),LB=Gn(N6);var Vs=we;Object.defineProperty(lc,"__esModule",{value:!0});var DB=lc.default=JB,ck=lc.shouldForwardProp=Ff;lc.systemDefaultTheme=void 0;var Wr=Vs(ZR()),my=Vs(AB()),SC=qB(uk),BB=jB;Vs(MB);Vs(FB);var zB=Vs(NB),UB=Vs(LB);const VB=["ownerState"],WB=["variants"],HB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(fk=function(n){return n?r:t})(e)}function qB(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=fk(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function GB(e){return Object.keys(e).length===0}function KB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ff(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const QB=lc.systemDefaultTheme=(0,zB.default)(),YB=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ef({defaultTheme:e,theme:t,themeId:r}){return GB(t)?e:t[r]||t}function XB(e){return e?(t,r)=>r[e]:null}function Nf(e,t){let{ownerState:r}=t,n=(0,my.default)(t,VB);const o=typeof e=="function"?e((0,Wr.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Nf(a,(0,Wr.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,my.default)(o,WB);return a.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,Wr.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,Wr.default)({ownerState:r},n,r)):u.style))}),s}return o}function JB(e={}){const{themeId:t,defaultTheme:r=QB,rootShouldForwardProp:n=Ff,slotShouldForwardProp:o=Ff}=e,a=i=>(0,UB.default)((0,Wr.default)({},i,{theme:ef((0,Wr.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,SC.internal_processStyles)(i,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=XB(YB(l))}=s,h=(0,my.default)(s,HB),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=d||!1;let x,b=Ff;l==="Root"||l==="root"?b=n:l?b=o:KB(i)&&(b=void 0);const v=(0,SC.default)(i,(0,Wr.default)({shouldForwardProp:b,label:x},h)),g=w=>typeof w=="function"&&w.__emotion_real!==w||(0,BB.isPlainObject)(w)?_=>Nf(w,(0,Wr.default)({},_,{theme:ef({theme:_.theme,defaultTheme:r,themeId:t})})):w,S=(w,..._)=>{let $=g(w);const P=_?_.map(g):[];u&&p&&P.push(I=>{const A=ef((0,Wr.default)({},I,{defaultTheme:r,themeId:t}));if(!A.components||!A.components[u]||!A.components[u].styleOverrides)return null;const L=A.components[u].styleOverrides,M={};return Object.entries(L).forEach(([F,j])=>{M[F]=Nf(j,(0,Wr.default)({},I,{theme:A}))}),p(I,M)}),u&&!m&&P.push(I=>{var A;const L=ef((0,Wr.default)({},I,{defaultTheme:r,themeId:t})),M=L==null||(A=L.components)==null||(A=A[u])==null?void 0:A.variants;return Nf({variants:M},(0,Wr.default)({},I,{theme:L}))}),y||P.push(a);const T=P.length-_.length;if(Array.isArray(w)&&T>0){const I=new Array(T).fill("");$=[...w,...I],$.raw=[...w.raw,...I]}const R=v($,...P);return i.muiName&&(R.muiName=i.muiName),R};return v.withConfig&&(S.withConfig=v.withConfig),S}}const Ht=e=>ck(e)&&e!=="classes",ZB=ck,ez=DB({themeId:oi,defaultTheme:Wv,rootShouldForwardProp:Ht}),U=ez;function tz(e){return pe("MuiSvgIcon",e)}ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rz=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nz=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(r)}`]};return de(o,tz,n)},oz=U("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Q(r.color)}`],t[`fontSize${Q(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,u,l,c,d,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),dk=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,h=X(n,rz),m=f.isValidElement(o)&&o.type==="svg",y=O({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),x={};c||(x.viewBox=p);const b=nz(y);return E.jsxs(oz,O({as:s,className:ee(b.root,a),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},x,h,m&&o.props,{ownerState:y,children:[m?o.props.children:o,d?E.jsx("title",{children:d}):null]}))});dk.muiName="SvgIcon";const _C=dk;function jt(e,t){function r(n,o){return E.jsx(_C,O({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=_C.muiName,f.memo(f.forwardRef(r))}const az={configure:e=>{x1.configure(e)}},iz=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Q,createChainedFunction:cy,createSvgIcon:jt,debounce:wv,deprecatedPropType:y5,isMuiElement:Kl,ownerDocument:Et,ownerWindow:Vn,requirePropFactory:b5,setRef:Fd,unstable_ClassNameGenerator:az,unstable_useEnhancedEffect:Mr,unstable_useId:ri,unsupportedProp:S5,useControlled:Cs,useEventCallback:Xr,useForkRef:ot,useIsFocusVisible:_v},Symbol.toStringTag,{value:"Module"})),sz=Gn(iz);var CC;function Ce(){return CC||(CC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sz}(hm)),hm}var lz=we;Object.defineProperty(m1,"__esModule",{value:!0});var pk=m1.default=void 0,uz=lz(Ce()),cz=E;pk=m1.default=(0,uz.default)((0,cz.jsx)("path",{d:"M12 7V3H2v18h20V7zm-2 12H4v-2h6zm0-4H4v-2h6zm0-4H4V9h6zm0-4H4V5h6zm10 12h-8V9h8zm-2-8h-4v2h4zm0 4h-4v2h4z"}),"CorporateFare");var B1={},fz=we;Object.defineProperty(B1,"__esModule",{value:!0});var Hv=B1.default=void 0,dz=fz(Ce()),pz=E;Hv=B1.default=(0,dz.default)((0,pz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");var z1={},vz=we;Object.defineProperty(z1,"__esModule",{value:!0});var vk=z1.default=void 0,hz=vz(Ce()),mz=E;vk=z1.default=(0,hz.default)((0,mz.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 11.17-1.41 1.42L6 12l3.59-3.59L11 9.83 8.83 12zm1-9.92c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m2.41 11.34L13 14.17 15.17 12 13 9.83l1.41-1.42L18 12z"}),"IntegrationInstructions");var U1={},gz=we;Object.defineProperty(U1,"__esModule",{value:!0});var hk=U1.default=void 0,yz=gz(Ce()),bz=E;hk=U1.default=(0,yz.default)((0,bz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");var V1={},xz=we;Object.defineProperty(V1,"__esModule",{value:!0});var mk=V1.default=void 0,wz=xz(Ce()),Sz=E;mk=V1.default=(0,wz.default)((0,Sz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Mail");var W1={},_z=we;Object.defineProperty(W1,"__esModule",{value:!0});var gk=W1.default=void 0,Cz=_z(Ce()),$z=E;gk=W1.default=(0,Cz.default)((0,$z.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");var H1={},Oz=we;Object.defineProperty(H1,"__esModule",{value:!0});var yk=H1.default=void 0,Ez=Oz(Ce()),Pz=E;yk=H1.default=(0,Ez.default)((0,Pz.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var q1={},Tz=we;Object.defineProperty(q1,"__esModule",{value:!0});var bk=q1.default=void 0,Rz=Tz(Ce()),kz=E;bk=q1.default=(0,Rz.default)((0,kz.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");var G1={},Iz=we;Object.defineProperty(G1,"__esModule",{value:!0});var xk=G1.default=void 0,Az=Iz(Ce()),jz=E;xk=G1.default=(0,Az.default)((0,jz.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var K1={},Mz=we;Object.defineProperty(K1,"__esModule",{value:!0});var wk=K1.default=void 0,Fz=Mz(Ce()),Nz=E;wk=K1.default=(0,Fz.default)((0,Nz.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14m-2.17-1.5 2.14-1.53 2.14 1.53-.83-2.46 2.15-1.5h-2.62L9.47 6l-.84 2.54H6l2.14 1.49z"}),"SavedSearch");var Q1={},Lz=we;Object.defineProperty(Q1,"__esModule",{value:!0});var Sk=Q1.default=void 0,Dz=Lz(Ce()),Bz=E;Sk=Q1.default=(0,Dz.default)((0,Bz.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var Y1={},zz=we;Object.defineProperty(Y1,"__esModule",{value:!0});var _k=Y1.default=void 0,Uz=zz(Ce()),Vz=E;_k=Y1.default=(0,Uz.default)((0,Vz.jsx)("path",{d:"M21 10h-3L2 3v7l9 2-9 2v7l8-3.5V21c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2m0 11h-9v-9h9zm-4.5-1L13 16h2v-3h3v3h2z"}),"SendAndArchive");var X1={},Wz=we;Object.defineProperty(X1,"__esModule",{value:!0});var Ck=X1.default=void 0,Hz=Wz(Ce()),qz=E;Ck=X1.default=(0,Hz.default)((0,qz.jsx)("path",{d:"M12 11c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3m0 1c-1.84 0-3.56.5-5.03 1.37-.61.35-.97 1.02-.97 1.72V17h12v-1.91c0-.7-.36-1.36-.97-1.72C15.56 12.5 13.84 12 12 12m9.23-3.85 1.85-.77c-1.22-2.91-3.55-5.25-6.46-6.46l-.77 1.85c2.42 1.02 4.36 2.96 5.38 5.38M8.15 2.77 7.38.92C4.47 2.14 2.14 4.47.92 7.38l1.85.77c1.02-2.42 2.96-4.36 5.38-5.38M2.77 15.85l-1.85.77c1.22 2.91 3.55 5.25 6.46 6.46l.77-1.85c-2.42-1.02-4.36-2.96-5.38-5.38m13.08 5.38.77 1.85c2.91-1.22 5.25-3.55 6.46-6.46l-1.85-.77c-1.02 2.42-2.96 4.36-5.38 5.38"}),"SensorOccupied");var J1={},Gz=we;Object.defineProperty(J1,"__esModule",{value:!0});var $k=J1.default=void 0,Kz=Gz(Ce()),Qz=E;$k=J1.default=(0,Kz.default)((0,Qz.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var Z1={},Yz=we;Object.defineProperty(Z1,"__esModule",{value:!0});var Ok=Z1.default=void 0,Xz=Yz(Ce()),Jz=E;Ok=Z1.default=(0,Xz.default)((0,Jz.jsx)("path",{d:"M20 8H4V6h16zm-2-6H6v2h12zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2m-6 4-6-3.27v6.53z"}),"Subscriptions");var ex={},Zz=we;Object.defineProperty(ex,"__esModule",{value:!0});var Ek=ex.default=void 0,e8=Zz(Ce()),t8=E;Ek=ex.default=(0,e8.default)((0,t8.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Sync");var tx={},r8=we;Object.defineProperty(tx,"__esModule",{value:!0});var Pk=tx.default=void 0,n8=r8(Ce()),$C=E;Pk=tx.default=(0,n8.default)([(0,$C.jsx)("path",{d:"M18 11c1.49 0 2.87.47 4 1.26V8c0-1.11-.89-2-2-2h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h7.68c-.43-.91-.68-1.92-.68-3 0-3.87 3.13-7 7-7m-8-7h4v2h-4z"},"0"),(0,$C.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m1.65 7.35L17.5 18.2V15h1v2.79l1.85 1.85z"},"1")],"WorkHistory");var o8={id:""},a8={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(o8)}},Tk=f.createContext(a8);Tk.displayName="AuthContext";const Rk=Tk;var qv={loginUrl:"/login",afterLoginUrl:"/"},i8=function(){return f.useContext(Rk)};const xo=i8;function gy(e,t){return gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},gy(e,t)}function wo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gy(e,t)}var Ws=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(n){var o=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),Bd=typeof window>"u";function zt(){}function s8(e,t){return typeof e=="function"?e(t):e}function yy(e){return typeof e=="number"&&e>=0&&e!==1/0}function zd(e){return Array.isArray(e)?e:[e]}function kk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Lf(e,t,r){return uc(e)?typeof t=="function"?O({},r,{queryKey:e,queryFn:t}):O({},t,{queryKey:e}):e}function l8(e,t,r){return uc(e)?typeof t=="function"?O({},r,{mutationKey:e,mutationFn:t}):O({},t,{mutationKey:e}):typeof e=="function"?O({},t,{mutationFn:e}):O({},e)}function Fo(e,t,r){return uc(e)?[O({},t,{queryKey:e}),r]:[e||{},t]}function u8(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function OC(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,u=e.stale;if(uc(s)){if(n){if(t.queryHash!==rx(s,t.options))return!1}else if(!Ud(t.queryKey,s))return!1}var l=u8(r,a);if(l==="none")return!1;if(l!=="all"){var c=t.isActive();if(l==="active"&&!c||l==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function EC(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(uc(a)){if(!t.options.mutationKey)return!1;if(r){if(Wo(t.options.mutationKey)!==Wo(a))return!1}else if(!Ud(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function rx(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||Wo;return r(e)}function Wo(e){var t=zd(e);return c8(t)}function c8(e){return JSON.stringify(e,function(t,r){return by(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function Ud(e,t){return Ik(zd(e),zd(t))}function Ik(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!Ik(e[r],t[r])}):!1}function Vd(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||by(e)&&by(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,u=0;u<a;u++){var l=r?u:o[u];i[l]=Vd(e[l],t[l]),i[l]===e[l]&&s++}return n===a&&s===n?e:i}return t}function f8(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function by(e){if(!PC(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var r=t.prototype;return!(!PC(r)||!r.hasOwnProperty("isPrototypeOf"))}function PC(e){return Object.prototype.toString.call(e)==="[object Object]"}function uc(e){return typeof e=="string"||Array.isArray(e)}function d8(e){return new Promise(function(t){setTimeout(t,e)})}function TC(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function Ak(){if(typeof AbortController=="function")return new AbortController}var p8=function(e){wo(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Bd&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Ws),Yl=new p8,v8=function(e){wo(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Bd&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Ws),Df=new v8;function h8(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Wd(e){return typeof(e==null?void 0:e.cancel)=="function"}var jk=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Bf(e){return e instanceof jk}var Mk=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(p){return o==null?void 0:o(p)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(p,h){i=p,s=h});var u=function(h){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),i(h))},l=function(h){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},c=function(){return new Promise(function(h){a=h,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},d=function p(){if(!r.isResolved){var h;try{h=t.fn()}catch(m){h=Promise.reject(m)}o=function(y){if(!r.isResolved&&(l(new jk(y)),r.abort==null||r.abort(),Wd(h)))try{h.cancel()}catch{}},r.isTransportCancelable=Wd(h),Promise.resolve(h).then(u).catch(function(m){var y,x;if(!r.isResolved){var b=(y=t.retry)!=null?y:3,v=(x=t.retryDelay)!=null?x:h8,g=typeof v=="function"?v(r.failureCount,m):v,S=b===!0||typeof b=="number"&&r.failureCount<b||typeof b=="function"&&b(r.failureCount,m);if(n||!S){l(m);return}r.failureCount++,t.onFail==null||t.onFail(r.failureCount,m),d8(g).then(function(){if(!Yl.isFocused()||!Df.isOnline())return c()}).then(function(){n?l(m):p()})}})}};d()},m8=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var t=e.prototype;return t.batch=function(n){var o;this.transactions++;try{o=n()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(n){var o=this;this.transactions?this.queue.push(n):TC(function(){o.notifyFn(n)})},t.batchCalls=function(n){var o=this;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];o.schedule(function(){n.apply(void 0,i)})}},t.flush=function(){var n=this,o=this.queue;this.queue=[],o.length&&TC(function(){n.batchNotifyFn(function(){o.forEach(function(a){n.notifyFn(a)})})})},t.setNotifyFunction=function(n){this.notifyFn=n},t.setBatchNotifyFunction=function(n){this.batchNotifyFn=n},e}(),Ke=new m8,Fk=console;function Hd(){return Fk}function g8(e){Fk=e}var y8=function(){function e(r){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=r.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(n){var o;this.options=O({},this.defaultOptions,n),this.meta=n==null?void 0:n.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},t.setDefaultOptions=function(n){this.defaultOptions=n},t.scheduleGc=function(){var n=this;this.clearGcTimeout(),yy(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){n.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(n,o){var a,i,s=this.state.data,u=s8(n,s);return(a=(i=this.options).isDataEqual)!=null&&a.call(i,s,u)?u=s:this.options.structuralSharing!==!1&&(u=Vd(s,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),u},t.setState=function(n,o){this.dispatch({type:"setState",state:n,setStateOptions:o})},t.cancel=function(n){var o,a=this.promise;return(o=this.retryer)==null||o.cancel(n),a?a.then(zt).catch(zt):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(n){return n.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(n){return n.getCurrentResult().isStale})},t.isStaleByTime=function(n){return n===void 0&&(n=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!kk(this.state.dataUpdatedAt,n)},t.onFocus=function(){var n,o=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});o&&o.refetch(),(n=this.retryer)==null||n.continue()},t.onOnline=function(){var n,o=this.observers.find(function(a){return a.shouldFetchOnReconnect()});o&&o.refetch(),(n=this.retryer)==null||n.continue()},t.addObserver=function(n){this.observers.indexOf(n)===-1&&(this.observers.push(n),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:n}))},t.removeObserver=function(n){this.observers.indexOf(n)!==-1&&(this.observers=this.observers.filter(function(o){return o!==n}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:n}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(n,o){var a=this,i,s,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return(l=this.retryer)==null||l.continueRetry(),this.promise}}if(n&&this.setOptions(n),!this.options.queryFn){var c=this.observers.find(function(v){return v.options.queryFn});c&&this.setOptions(c.options)}var d=zd(this.queryKey),p=Ak(),h={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var m=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},y={fetchOptions:o,options:this.options,queryKey:d,state:this.state,fetchFn:m,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var x;(x=this.options.behavior)==null||x.onFetch(y)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=y.fetchOptions)==null?void 0:s.meta)){var b;this.dispatch({type:"fetch",meta:(b=y.fetchOptions)==null?void 0:b.meta})}return this.retryer=new Mk({fn:y.fetchFn,abort:p==null||(u=p.abort)==null?void 0:u.bind(p),onSuccess:function(g){a.setData(g),a.cache.config.onSuccess==null||a.cache.config.onSuccess(g,a),a.cacheTime===0&&a.optionalRemove()},onError:function(g){Bf(g)&&g.silent||a.dispatch({type:"error",error:g}),Bf(g)||(a.cache.config.onError==null||a.cache.config.onError(g,a),Hd().error(g)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(n){var o=this;this.state=this.reducer(this.state,n),Ke.batch(function(){o.observers.forEach(function(a){a.onQueryUpdate(n)}),o.cache.notify({query:o,type:"queryUpdated",action:n})})},t.getDefaultState=function(n){var o=typeof n.initialData=="function"?n.initialData():n.initialData,a=typeof n.initialData<"u",i=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0,s=typeof o<"u";return{data:o,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(n,o){var a,i;switch(o.type){case"failed":return O({},n,{fetchFailureCount:n.fetchFailureCount+1});case"pause":return O({},n,{isPaused:!0});case"continue":return O({},n,{isPaused:!1});case"fetch":return O({},n,{fetchFailureCount:0,fetchMeta:(a=o.meta)!=null?a:null,isFetching:!0,isPaused:!1},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return O({},n,{data:o.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=o.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=o.error;return Bf(s)&&s.revert&&this.revertState?O({},this.revertState):O({},n,{error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return O({},n,{isInvalidated:!0});case"setState":return O({},n,o.state);default:return n}},e}(),b8=function(e){wo(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.queries=[],o.queriesMap={},o}var r=t.prototype;return r.build=function(o,a,i){var s,u=a.queryKey,l=(s=a.queryHash)!=null?s:rx(u,a),c=this.get(l);return c||(c=new y8({cache:this,queryKey:u,queryHash:l,options:o.defaultQueryOptions(a),state:i,defaultOptions:o.getQueryDefaults(u),meta:a.meta}),this.add(c)),c},r.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},r.remove=function(o){var a=this.queriesMap[o.queryHash];a&&(o.destroy(),this.queries=this.queries.filter(function(i){return i!==o}),a===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},r.clear=function(){var o=this;Ke.batch(function(){o.queries.forEach(function(a){o.remove(a)})})},r.get=function(o){return this.queriesMap[o]},r.getAll=function(){return this.queries},r.find=function(o,a){var i=Fo(o,a),s=i[0];return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(function(u){return OC(s,u)})},r.findAll=function(o,a){var i=Fo(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(u){return OC(s,u)}):this.queries},r.notify=function(o){var a=this;Ke.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Ke.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Ke.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(Ws),x8=function(){function e(r){this.options=O({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||Nk(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(zt).catch(zt)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),Hd().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new Mk({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=w8(this.state,n),Ke.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function Nk(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function w8(e,t){switch(t.type){case"failed":return O({},e,{failureCount:e.failureCount+1});case"pause":return O({},e,{isPaused:!0});case"continue":return O({},e,{isPaused:!1});case"loading":return O({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return O({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return O({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return O({},e,t.state);default:return e}}var S8=function(e){wo(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new x8({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Ke.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return EC(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return EC(o,a)})},r.notify=function(o){var a=this;Ke.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return Ke.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(zt)})},Promise.resolve())})},t}(Ws);function _8(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,u=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,c=l==null?void 0:l.pageParam,d=(l==null?void 0:l.direction)==="forward",p=(l==null?void 0:l.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],m=((s=t.state.data)==null?void 0:s.pageParams)||[],y=Ak(),x=y==null?void 0:y.signal,b=m,v=!1,g=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(M,F,j,B){return b=B?[F].concat(b):[].concat(b,[F]),B?[j].concat(M):[].concat(M,[j])},w=function(M,F,j,B){if(v)return Promise.reject("Cancelled");if(typeof j>"u"&&!F&&M.length)return Promise.resolve(M);var k={queryKey:t.queryKey,signal:x,pageParam:j,meta:t.meta},N=g(k),z=Promise.resolve(N).then(function(K){return S(M,j,K,B)});if(Wd(N)){var H=z;H.cancel=N.cancel}return z},_;if(!h.length)_=w([]);else if(d){var $=typeof c<"u",P=$?c:RC(t.options,h);_=w(h,$,P)}else if(p){var T=typeof c<"u",R=T?c:C8(t.options,h);_=w(h,T,R,!0)}else(function(){b=[];var L=typeof t.options.getNextPageParam>"u",M=u&&h[0]?u(h[0],0,h):!0;_=M?w([],L,m[0]):Promise.resolve(S([],m[0],h[0]));for(var F=function(k){_=_.then(function(N){var z=u&&h[k]?u(h[k],k,h):!0;if(z){var H=L?m[k]:RC(t.options,N);return w(N,L,H)}return Promise.resolve(S(N,m[k],h[k]))})},j=1;j<h.length;j++)F(j)})();var I=_.then(function(L){return{pages:L,pageParams:b}}),A=I;return A.cancel=function(){v=!0,y==null||y.abort(),Wd(_)&&_.cancel()},I}}}}function RC(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function C8(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var $8=function(){function e(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new b8,this.mutationCache=r.mutationCache||new S8,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var n=this;this.unsubscribeFocus=Yl.subscribe(function(){Yl.isFocused()&&Df.isOnline()&&(n.mutationCache.onFocus(),n.queryCache.onFocus())}),this.unsubscribeOnline=Df.subscribe(function(){Yl.isFocused()&&Df.isOnline()&&(n.mutationCache.onOnline(),n.queryCache.onOnline())})},t.unmount=function(){var n,o;(n=this.unsubscribeFocus)==null||n.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(n,o){var a=Fo(n,o),i=a[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(n){return this.mutationCache.findAll(O({},n,{fetching:!0})).length},t.getQueryData=function(n,o){var a;return(a=this.queryCache.find(n,o))==null?void 0:a.state.data},t.getQueriesData=function(n){return this.getQueryCache().findAll(n).map(function(o){var a=o.queryKey,i=o.state,s=i.data;return[a,s]})},t.setQueryData=function(n,o,a){var i=Lf(n),s=this.defaultQueryOptions(i);return this.queryCache.build(this,s).setData(o,a)},t.setQueriesData=function(n,o,a){var i=this;return Ke.batch(function(){return i.getQueryCache().findAll(n).map(function(s){var u=s.queryKey;return[u,i.setQueryData(u,o,a)]})})},t.getQueryState=function(n,o){var a;return(a=this.queryCache.find(n,o))==null?void 0:a.state},t.removeQueries=function(n,o){var a=Fo(n,o),i=a[0],s=this.queryCache;Ke.batch(function(){s.findAll(i).forEach(function(u){s.remove(u)})})},t.resetQueries=function(n,o,a){var i=this,s=Fo(n,o,a),u=s[0],l=s[1],c=this.queryCache,d=O({},u,{active:!0});return Ke.batch(function(){return c.findAll(u).forEach(function(p){p.reset()}),i.refetchQueries(d,l)})},t.cancelQueries=function(n,o,a){var i=this,s=Fo(n,o,a),u=s[0],l=s[1],c=l===void 0?{}:l;typeof c.revert>"u"&&(c.revert=!0);var d=Ke.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.cancel(c)})});return Promise.all(d).then(zt).catch(zt)},t.invalidateQueries=function(n,o,a){var i,s,u,l=this,c=Fo(n,o,a),d=c[0],p=c[1],h=O({},d,{active:(i=(s=d.refetchActive)!=null?s:d.active)!=null?i:!0,inactive:(u=d.refetchInactive)!=null?u:!1});return Ke.batch(function(){return l.queryCache.findAll(d).forEach(function(m){m.invalidate()}),l.refetchQueries(h,p)})},t.refetchQueries=function(n,o,a){var i=this,s=Fo(n,o,a),u=s[0],l=s[1],c=Ke.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.fetch(void 0,O({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),d=Promise.all(c).then(zt);return l!=null&&l.throwOnError||(d=d.catch(zt)),d},t.fetchQuery=function(n,o,a){var i=Lf(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var u=this.queryCache.build(this,s);return u.isStaleByTime(s.staleTime)?u.fetch(s):Promise.resolve(u.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(zt).catch(zt)},t.fetchInfiniteQuery=function(n,o,a){var i=Lf(n,o,a);return i.behavior=_8(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(zt).catch(zt)},t.cancelMutations=function(){var n=this,o=Ke.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(zt).catch(zt)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return Wo(n)===Wo(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return Ud(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return Wo(n)===Wo(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return Ud(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=O({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=rx(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:O({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),O8=function(e){wo(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),kC(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return xy(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return xy(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var u=this.hasListeners();u&&IC(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),u&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==s||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},u=function(c){i.trackedProps.includes(c)||i.trackedProps.push(c)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return u(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&u("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var u=a.subscribe(function(l){l.isFetching||(u(),l.isError&&(o!=null&&o.throwOnError)?s(l.error):i(l))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(O({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(zt)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Bd||this.currentResult.isStale||!yy(this.options.staleTime))){var a=kk(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(Bd||this.options.enabled===!1||!yy(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Yl.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,u=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,d=o!==i,p=d?o.state:this.currentQueryInitialState,h=d?this.currentResult:this.previousQueryResult,m=o.state,y=m.dataUpdatedAt,x=m.error,b=m.errorUpdatedAt,v=m.isFetching,g=m.status,S=!1,w=!1,_;if(a.optimisticResults){var $=this.hasListeners(),P=!$&&kC(o,a),T=$&&IC(o,i,a,s);(P||T)&&(v=!0,y||(g="loading"))}if(a.keepPreviousData&&!m.dataUpdateCount&&(h!=null&&h.isSuccess)&&g!=="error")_=h.data,y=h.dataUpdatedAt,g=h.status,S=!0;else if(a.select&&typeof m.data<"u")if(u&&m.data===(l==null?void 0:l.data)&&a.select===this.selectFn)_=this.selectResult;else try{this.selectFn=a.select,_=a.select(m.data),a.structuralSharing!==!1&&(_=Vd(u==null?void 0:u.data,_)),this.selectResult=_,this.selectError=null}catch(A){Hd().error(A),this.selectError=A}else _=m.data;if(typeof a.placeholderData<"u"&&typeof _>"u"&&(g==="loading"||g==="idle")){var R;if(u!=null&&u.isPlaceholderData&&a.placeholderData===(c==null?void 0:c.placeholderData))R=u.data;else if(R=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof R<"u")try{R=a.select(R),a.structuralSharing!==!1&&(R=Vd(u==null?void 0:u.data,R)),this.selectError=null}catch(A){Hd().error(A),this.selectError=A}typeof R<"u"&&(g="success",_=R,w=!0)}this.selectError&&(x=this.selectError,_=this.selectResult,b=Date.now(),g="error");var I={status:g,isLoading:g==="loading",isSuccess:g==="success",isError:g==="error",isIdle:g==="idle",data:_,dataUpdatedAt:y,error:x,errorUpdatedAt:b,failureCount:m.fetchFailureCount,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:v,isRefetching:v&&g!=="loading",isLoadingError:g==="error"&&m.dataUpdatedAt===0,isPlaceholderData:w,isPreviousData:S,isRefetchError:g==="error"&&m.dataUpdatedAt!==0,isStale:nx(o,a),refetch:this.refetch,remove:this.remove};return I},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,u=i.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(c){var d=c,p=o[d]!==a[d],h=l==null?void 0:l.some(function(y){return y===c}),m=u==null?void 0:u.some(function(y){return y===c});return p&&!m&&(!l||h)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!f8(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(O({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!Bf(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Ke.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(Ws);function E8(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function kC(e,t){return E8(e,t)||e.state.dataUpdatedAt>0&&xy(e,t,t.refetchOnMount)}function xy(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&nx(e,t)}return!1}function IC(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&nx(e,r)}function nx(e,t){return e.isStaleByTime(t.staleTime)}var P8=function(e){wo(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,O({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:Nk(),a=O({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;Ke.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(Ws),T8=jl.unstable_batchedUpdates;Ke.setBatchNotifyFunction(T8);var R8=console;g8(R8);var AC=G.createContext(void 0),Lk=G.createContext(!1);function Dk(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=AC),window.ReactQueryClientContext):AC}var So=function(){var t=G.useContext(Dk(G.useContext(Lk)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},k8=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;G.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=Dk(o);return G.createElement(Lk.Provider,{value:o},G.createElement(i.Provider,{value:r},a))};function I8(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var A8=G.createContext(I8()),j8=function(){return G.useContext(A8)};function Bk(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function M8(e,t,r){var n=G.useRef(!1),o=G.useState(0),a=o[1],i=l8(e,t,r),s=So(),u=G.useRef();u.current?u.current.setOptions(i):u.current=new P8(s,i);var l=u.current.getCurrentResult();G.useEffect(function(){n.current=!0;var d=u.current.subscribe(Ke.batchCalls(function(){n.current&&a(function(p){return p+1})}));return function(){n.current=!1,d()}},[]);var c=G.useCallback(function(d,p){u.current.mutate(d,p).catch(zt)},[]);if(l.error&&Bk(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return O({},l,{mutate:c,mutateAsync:l.mutate})}function F8(e,t){var r=G.useRef(!1),n=G.useState(0),o=n[1],a=So(),i=j8(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Ke.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Ke.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Ke.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var u=G.useState(function(){return new t(a,s)}),l=u[0],c=l.getOptimisticResult(s);if(G.useEffect(function(){r.current=!0,i.clearReset();var d=l.subscribe(Ke.batchCalls(function(){r.current&&o(function(p){return p+1})}));return l.updateResult(),function(){r.current=!1,d()}},[i,l]),G.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&c.isLoading)throw l.fetchOptimistic(s).then(function(d){var p=d.data;s.onSuccess==null||s.onSuccess(p),s.onSettled==null||s.onSettled(p,null)}).catch(function(d){i.clearReset(),s.onError==null||s.onError(d),s.onSettled==null||s.onSettled(void 0,d)});if(c.isError&&!i.isReset()&&!c.isFetching&&Bk(s.suspense,s.useErrorBoundary,[c.error,l.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=l.trackResult(c,s)),c}function pa(e,t,r){var n=Lf(e,t,r);return F8(n,O8)}/**
|
62
|
+
* @remix-run/router v1.15.2
|
63
|
+
*
|
64
|
+
* Copyright (c) Remix Software Inc.
|
65
|
+
*
|
66
|
+
* This source code is licensed under the MIT license found in the
|
67
|
+
* LICENSE.md file in the root directory of this source tree.
|
68
|
+
*
|
69
|
+
* @license MIT
|
70
|
+
*/function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wy.apply(this,arguments)}var qd;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qd||(qd={}));function gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jC(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function cc(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var MC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(MC||(MC={}));function N8(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?cc(t):t,o=ox(n.pathname||"/",r);if(o==null)return null;let a=Uk(e);L8(a);let i=null;for(let s=0;i==null&&s<a.length;++s){let u=Q8(o);i=G8(a[s],u)}return i}function Uk(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};u.relativePath.startsWith("/")&&(gt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=na([n,u.relativePath]),c=r.concat(u);a.children&&a.children.length>0&&(gt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Uk(a.children,t,c,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:H8(l,a.index),routesMeta:c})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let u of Vk(a.path))o(a,i,u)}),t}function Vk(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Vk(n.join("/")),s=[];return s.push(...i.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function L8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:q8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const D8=/^:[\w-]+$/,B8=3,z8=2,U8=1,V8=10,W8=-2,FC=e=>e==="*";function H8(e,t){let r=e.split("/"),n=r.length;return r.some(FC)&&(n+=W8),t&&(n+=z8),r.filter(o=>!FC(o)).reduce((o,a)=>o+(D8.test(a)?B8:a===""?U8:V8),n)}function q8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function G8(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i<r.length;++i){let s=r[i],u=i===r.length-1,l=o==="/"?t:t.slice(o.length)||"/",c=Wk({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l);if(!c)return null;Object.assign(n,c.params);let d=s.route;a.push({params:n,pathname:na([o,c.pathname]),pathnameBase:Z8(na([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=na([o,c.pathnameBase]))}return a}function Wk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=K8(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((l,c,d)=>{let{paramName:p,isOptional:h}=c;if(p==="*"){let y=s[d]||"";i=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[p]=void 0:l[p]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function K8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),zk(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Q8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zk(!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 ox(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Y8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?cc(e):e;return{pathname:r?r.startsWith("/")?r:X8(r,t):t,search:e9(n),hash:t9(o)}}function X8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Sm(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function J8(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ax(e,t){let r=J8(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ix(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=cc(e):(o=wy({},e),gt(!o.pathname||!o.pathname.includes("?"),Sm("?","pathname","search",o)),gt(!o.pathname||!o.pathname.includes("#"),Sm("#","pathname","hash",o)),gt(!o.search||!o.search.includes("#"),Sm("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=Y8(o,s),l=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const na=e=>e.join("/").replace(/\/\/+/g,"/"),Z8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),e9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,t9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function r9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hk=["post","put","patch","delete"];new Set(Hk);const n9=["get",...Hk];new Set(n9);/**
|
71
|
+
* React Router v6.22.2
|
72
|
+
*
|
73
|
+
* Copyright (c) Remix Software Inc.
|
74
|
+
*
|
75
|
+
* This source code is licensed under the MIT license found in the
|
76
|
+
* LICENSE.md file in the root directory of this source tree.
|
77
|
+
*
|
78
|
+
* @license MIT
|
79
|
+
*/function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nu.apply(this,arguments)}const sx=f.createContext(null),o9=f.createContext(null),_o=f.createContext(null),Gv=f.createContext(null),Co=f.createContext({outlet:null,matches:[],isDataRoute:!1}),qk=f.createContext(null);function a9(e,t){let{relative:r}=t===void 0?{}:t;va()||gt(!1);let{basename:n,navigator:o}=f.useContext(_o),{hash:a,pathname:i,search:s}=Kk(e,{relative:r}),u=i;return n!=="/"&&(u=i==="/"?n:na([n,i])),o.createHref({pathname:u,search:s,hash:a})}function va(){return f.useContext(Gv)!=null}function Cr(){return va()||gt(!1),f.useContext(Gv).location}function i9(e){va()||gt(!1);let{pathname:t}=Cr();return f.useMemo(()=>Wk(e,t),[t,e])}function Gk(e){f.useContext(_o).static||f.useLayoutEffect(e)}function Kn(){let{isDataRoute:e}=f.useContext(Co);return e?x9():s9()}function s9(){va()||gt(!1);let e=f.useContext(sx),{basename:t,future:r,navigator:n}=f.useContext(_o),{matches:o}=f.useContext(Co),{pathname:a}=Cr(),i=JSON.stringify(ax(o,r.v7_relativeSplatPath)),s=f.useRef(!1);return Gk(()=>{s.current=!0}),f.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=ix(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:na([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,a,e])}function l9(){let{matches:e}=f.useContext(Co),t=e[e.length-1];return t?t.params:{}}function Kk(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=f.useContext(_o),{matches:o}=f.useContext(Co),{pathname:a}=Cr(),i=JSON.stringify(ax(o,n.v7_relativeSplatPath));return f.useMemo(()=>ix(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function u9(e,t){return c9(e,t)}function c9(e,t,r,n){va()||gt(!1);let{navigator:o}=f.useContext(_o),{matches:a}=f.useContext(Co),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=Cr(),c;if(t){var d;let x=typeof t=="string"?cc(t):t;u==="/"||(d=x.pathname)!=null&&d.startsWith(u)||gt(!1),c=x}else c=l;let p=c.pathname||"/",h=p;if(u!=="/"){let x=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let m=N8(e,{pathname:h}),y=h9(m&&m.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:na([u,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:na([u,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,r,n);return t&&y?f.createElement(Gv.Provider,{value:{location:Nu({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:qd.Pop}},y):y}function f9(){let e=b9(),t=r9(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:o},r):null,a)}const d9=f.createElement(f9,null);class p9 extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?f.createElement(Co.Provider,{value:this.props.routeContext},f.createElement(qk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v9(e){let{routeContext:t,match:r,children:n}=e,o=f.useContext(sx);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),f.createElement(Co.Provider,{value:t},n)}function h9(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let c=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||gt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=c),d.route.id){let{loaderData:p,errors:h}=r,m=d.route.loader&&p[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||m){u=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,d,p)=>{let h,m=!1,y=null,x=null;r&&(h=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||d9,u&&(l<0&&p===0?(w9("route-fallback",!1),m=!0,x=null):l===p&&(m=!0,x=d.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),v=()=>{let g;return h?g=y:m?g=x:d.route.Component?g=f.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,f.createElement(v9,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:r!=null},children:g})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?f.createElement(p9,{location:r.location,revalidation:r.revalidation,component:y,error:h,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var Qk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Qk||{}),Gd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Gd||{});function m9(e){let t=f.useContext(sx);return t||gt(!1),t}function g9(e){let t=f.useContext(o9);return t||gt(!1),t}function y9(e){let t=f.useContext(Co);return t||gt(!1),t}function Yk(e){let t=y9(),r=t.matches[t.matches.length-1];return r.route.id||gt(!1),r.route.id}function b9(){var e;let t=f.useContext(qk),r=g9(Gd.UseRouteError),n=Yk(Gd.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function x9(){let{router:e}=m9(Qk.UseNavigateStable),t=Yk(Gd.UseNavigateStable),r=f.useRef(!1);return Gk(()=>{r.current=!0}),f.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Nu({fromRouteId:t},a)))},[e,t])}const NC={};function w9(e,t,r){!t&&!NC[e]&&(NC[e]=!0)}function S9(e){let{to:t,replace:r,state:n,relative:o}=e;va()||gt(!1);let{future:a,static:i}=f.useContext(_o),{matches:s}=f.useContext(Co),{pathname:u}=Cr(),l=Kn(),c=ix(t,ax(s,a.v7_relativeSplatPath),u,o==="path"),d=JSON.stringify(c);return f.useEffect(()=>l(JSON.parse(d),{replace:r,state:n,relative:o}),[l,d,o,r,n]),null}function hr(e){gt(!1)}function _9(e){let{basename:t="/",children:r=null,location:n,navigationType:o=qd.Pop,navigator:a,static:i=!1,future:s}=e;va()&>(!1);let u=t.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:u,navigator:a,static:i,future:Nu({v7_relativeSplatPath:!1},s)}),[u,s,a,i]);typeof n=="string"&&(n=cc(n));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=n,y=f.useMemo(()=>{let x=ox(c,u);return x==null?null:{location:{pathname:x,search:d,hash:p,state:h,key:m},navigationType:o}},[u,c,d,p,h,m,o]);return y==null?null:f.createElement(_o.Provider,{value:l},f.createElement(Gv.Provider,{children:r,value:y}))}function Xl(e){let{children:t,location:r}=e;return u9(Sy(t),r)}new Promise(()=>{});function Sy(e,t){t===void 0&&(t=[]);let r=[];return f.Children.forEach(e,(n,o)=>{if(!f.isValidElement(n))return;let a=[...t,o];if(n.type===f.Fragment){r.push.apply(r,Sy(n.props.children,a));return}n.type!==hr&>(!1),!n.props.index||!n.props.children||gt(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=Sy(n.props.children,a)),r.push(i)}),r}/**
|
80
|
+
* React Router DOM v6.22.2
|
81
|
+
*
|
82
|
+
* Copyright (c) Remix Software Inc.
|
83
|
+
*
|
84
|
+
* This source code is licensed under the MIT license found in the
|
85
|
+
* LICENSE.md file in the root directory of this source tree.
|
86
|
+
*
|
87
|
+
* @license MIT
|
88
|
+
*/function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_y.apply(this,arguments)}function C9(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function $9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function O9(e,t){return e.button===0&&(!t||t==="_self")&&!$9(e)}const E9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],P9="6";try{window.__reactRouterVersion=P9}catch{}const T9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ai=f.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:d}=t,p=C9(t,E9),{basename:h}=f.useContext(_o),m,y=!1;if(typeof l=="string"&&R9.test(l)&&(m=l,T9))try{let g=new URL(window.location.href),S=l.startsWith("//")?new URL(g.protocol+l):new URL(l),w=ox(S.pathname,h);S.origin===g.origin&&w!=null?l=w+S.search+S.hash:y=!0}catch{}let x=a9(l,{relative:o}),b=k9(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:d});function v(g){n&&n(g),g.defaultPrevented||b(g)}return f.createElement("a",_y({},p,{href:m||x,onClick:y||a?n:v,ref:r,target:u}))});var LC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(LC||(LC={}));var DC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DC||(DC={}));function k9(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=Kn(),l=Cr(),c=Kk(e,{relative:i});return f.useCallback(d=>{if(O9(d,r)){d.preventDefault();let p=n!==void 0?n:jC(l)===jC(c);u(e,{replace:p,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,u,c,n,o,r,e,a,i,s])}var I9="RaStore",A9=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},Cy=A9(),j9=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(I9).concat(t),n=r.length,o={},a=function(s,u){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?BC(s.newValue):void 0;Object.keys(o).forEach(function(d){o[d]&&o[d].key===l&&(c===null?o[d].callback(void 0):o[d].callback(c??void 0))})}};return{setup:function(){if(Cy){var s=Jn().getItem("".concat(r,".version"));if(s&&s!==e){var u=Jn();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Jn().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){Cy&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Jn().getItem("".concat(r,".").concat(s));return l==null?u:BC(l)},setItem:function(s,u){u===void 0?Jn().removeItem("".concat(r,".").concat(s)):Jn().setItem("".concat(r,".").concat(s),JSON.stringify(u)),a(s,u)},removeItem:function(s){Jn().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var u=Jn();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);a(c,void 0)}})},reset:function(){var s=Jn();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);a(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return o[l]={key:s,callback:u},function(){delete o[l]}}}},BC=function(e){try{return JSON.parse(e)}catch{return e}},M9=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),F9=new M9,Jn=function(){return Cy?window.localStorage:F9},N9=typeof yn=="object"&&yn&&yn.Object===Object&&yn,Xk=N9,L9=Xk,D9=typeof self=="object"&&self&&self.Object===Object&&self,B9=L9||D9||Function("return this")(),_n=B9,z9=_n,U9=z9.Symbol,Hs=U9,zC=Hs,Jk=Object.prototype,V9=Jk.hasOwnProperty,W9=Jk.toString,xl=zC?zC.toStringTag:void 0;function H9(e){var t=V9.call(e,xl),r=e[xl];try{e[xl]=void 0;var n=!0}catch{}var o=W9.call(e);return n&&(t?e[xl]=r:delete e[xl]),o}var q9=H9,G9=Object.prototype,K9=G9.toString;function Q9(e){return K9.call(e)}var Y9=Q9,UC=Hs,X9=q9,J9=Y9,Z9="[object Null]",e7="[object Undefined]",VC=UC?UC.toStringTag:void 0;function t7(e){return e==null?e===void 0?e7:Z9:VC&&VC in Object(e)?X9(e):J9(e)}var fi=t7;function r7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ln=r7,n7=fi,o7=ln,a7="[object AsyncFunction]",i7="[object Function]",s7="[object GeneratorFunction]",l7="[object Proxy]";function u7(e){if(!o7(e))return!1;var t=n7(e);return t==i7||t==s7||t==a7||t==l7}var lx=u7,c7=_n,f7=c7["__core-js_shared__"],d7=f7,_m=d7,WC=function(){var e=/[^.]+$/.exec(_m&&_m.keys&&_m.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function p7(e){return!!WC&&WC in e}var v7=p7,h7=Function.prototype,m7=h7.toString;function g7(e){if(e!=null){try{return m7.call(e)}catch{}try{return e+""}catch{}}return""}var Zk=g7,y7=lx,b7=v7,x7=ln,w7=Zk,S7=/[\\^$.*+?()[\]{}|]/g,_7=/^\[object .+?Constructor\]$/,C7=Function.prototype,$7=Object.prototype,O7=C7.toString,E7=$7.hasOwnProperty,P7=RegExp("^"+O7.call(E7).replace(S7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T7(e){if(!x7(e)||b7(e))return!1;var t=y7(e)?P7:_7;return t.test(w7(e))}var R7=T7;function k7(e,t){return e==null?void 0:e[t]}var I7=k7,A7=R7,j7=I7;function M7(e,t){var r=j7(e,t);return A7(r)?r:void 0}var di=M7,F7=di,N7=function(){try{var e=F7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eI=N7,HC=eI;function L7(e,t,r){t=="__proto__"&&HC?HC(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ux=L7;function D7(e,t){return e===t||e!==e&&t!==t}var qs=D7,B7=ux,z7=qs,U7=Object.prototype,V7=U7.hasOwnProperty;function W7(e,t,r){var n=e[t];(!(V7.call(e,t)&&z7(n,r))||r===void 0&&!(t in e))&&B7(e,t,r)}var cx=W7,H7=Array.isArray,un=H7;function q7(e){return e!=null&&typeof e=="object"}var Qn=q7,G7=fi,K7=Qn,Q7="[object Symbol]";function Y7(e){return typeof e=="symbol"||K7(e)&&G7(e)==Q7}var Kv=Y7,X7=un,J7=Kv,Z7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eU=/^\w*$/;function tU(e,t){if(X7(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||J7(e)?!0:eU.test(e)||!Z7.test(e)||t!=null&&e in Object(t)}var fx=tU,rU=di,nU=rU(Object,"create"),Qv=nU,qC=Qv;function oU(){this.__data__=qC?qC(null):{},this.size=0}var aU=oU;function iU(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sU=iU,lU=Qv,uU="__lodash_hash_undefined__",cU=Object.prototype,fU=cU.hasOwnProperty;function dU(e){var t=this.__data__;if(lU){var r=t[e];return r===uU?void 0:r}return fU.call(t,e)?t[e]:void 0}var pU=dU,vU=Qv,hU=Object.prototype,mU=hU.hasOwnProperty;function gU(e){var t=this.__data__;return vU?t[e]!==void 0:mU.call(t,e)}var yU=gU,bU=Qv,xU="__lodash_hash_undefined__";function wU(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=bU&&t===void 0?xU:t,this}var SU=wU,_U=aU,CU=sU,$U=pU,OU=yU,EU=SU;function Gs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gs.prototype.clear=_U;Gs.prototype.delete=CU;Gs.prototype.get=$U;Gs.prototype.has=OU;Gs.prototype.set=EU;var PU=Gs;function TU(){this.__data__=[],this.size=0}var RU=TU,kU=qs;function IU(e,t){for(var r=e.length;r--;)if(kU(e[r][0],t))return r;return-1}var Yv=IU,AU=Yv,jU=Array.prototype,MU=jU.splice;function FU(e){var t=this.__data__,r=AU(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():MU.call(t,r,1),--this.size,!0}var NU=FU,LU=Yv;function DU(e){var t=this.__data__,r=LU(t,e);return r<0?void 0:t[r][1]}var BU=DU,zU=Yv;function UU(e){return zU(this.__data__,e)>-1}var VU=UU,WU=Yv;function HU(e,t){var r=this.__data__,n=WU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var qU=HU,GU=RU,KU=NU,QU=BU,YU=VU,XU=qU;function Ks(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ks.prototype.clear=GU;Ks.prototype.delete=KU;Ks.prototype.get=QU;Ks.prototype.has=YU;Ks.prototype.set=XU;var Xv=Ks,JU=di,ZU=_n,eV=JU(ZU,"Map"),dx=eV,GC=PU,tV=Xv,rV=dx;function nV(){this.size=0,this.__data__={hash:new GC,map:new(rV||tV),string:new GC}}var oV=nV;function aV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var iV=aV,sV=iV;function lV(e,t){var r=e.__data__;return sV(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Jv=lV,uV=Jv;function cV(e){var t=uV(this,e).delete(e);return this.size-=t?1:0,t}var fV=cV,dV=Jv;function pV(e){return dV(this,e).get(e)}var vV=pV,hV=Jv;function mV(e){return hV(this,e).has(e)}var gV=mV,yV=Jv;function bV(e,t){var r=yV(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xV=bV,wV=oV,SV=fV,_V=vV,CV=gV,$V=xV;function Qs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qs.prototype.clear=wV;Qs.prototype.delete=SV;Qs.prototype.get=_V;Qs.prototype.has=CV;Qs.prototype.set=$V;var px=Qs,tI=px,OV="Expected a function";function vx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(OV);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(vx.Cache||tI),r}vx.Cache=tI;var rI=vx;const nI=Ye(rI);var EV=rI,PV=500;function TV(e){var t=EV(e,function(n){return r.size===PV&&r.clear(),n}),r=t.cache;return t}var RV=TV,kV=RV,IV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,AV=/\\(\\)?/g,jV=kV(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(IV,function(r,n,o,a){t.push(o?a.replace(AV,"$1"):n||r)}),t}),MV=jV;function FV(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var hx=FV,KC=Hs,NV=hx,LV=un,DV=Kv,BV=1/0,QC=KC?KC.prototype:void 0,YC=QC?QC.toString:void 0;function oI(e){if(typeof e=="string")return e;if(LV(e))return NV(e,oI)+"";if(DV(e))return YC?YC.call(e):"";var t=e+"";return t=="0"&&1/e==-BV?"-0":t}var zV=oI,UV=zV;function VV(e){return e==null?"":UV(e)}var Zv=VV,WV=un,HV=fx,qV=MV,GV=Zv;function KV(e,t){return WV(e)?e:HV(e,t)?[e]:qV(GV(e))}var fc=KV,QV=9007199254740991,YV=/^(?:0|[1-9]\d*)$/;function XV(e,t){var r=typeof e;return t=t??QV,!!t&&(r=="number"||r!="symbol"&&YV.test(e))&&e>-1&&e%1==0&&e<t}var eh=XV,JV=Kv,ZV=1/0;function eW(e){if(typeof e=="string"||JV(e))return e;var t=e+"";return t=="0"&&1/e==-ZV?"-0":t}var Ys=eW,tW=cx,rW=fc,nW=eh,XC=ln,oW=Ys;function aW(e,t,r,n){if(!XC(e))return e;t=rW(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var u=oW(t[o]),l=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(o!=i){var c=s[u];l=n?n(c,u,s):void 0,l===void 0&&(l=XC(c)?c:nW(t[o+1])?[]:{})}tW(s,u,l),s=s[u]}return e}var aI=aW,iW=aI;function sW(e,t,r){return e==null?e:iW(e,t,r)}var lW=sW;const mx=Ye(lW);function uW(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var cW=uW,fW=fc,dW=Ys;function pW(e,t){t=fW(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dW(t[r++])];return r&&r==n?e:void 0}var th=pW;function vW(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}var iI=vW,hW=th,mW=iI;function gW(e,t){return t.length<2?e:hW(e,mW(t,0,-1))}var yW=gW,bW=fc,xW=cW,wW=yW,SW=Ys;function _W(e,t){return t=bW(t,e),e=wW(e,t),e==null||delete e[SW(xW(t))]}var CW=_W,$W=CW;function OW(e,t){return e==null?!0:$W(e,t)}var EW=OW;const zf=Ye(EW);var PW=th;function TW(e,t,r){var n=e==null?void 0:PW(e,t);return n===void 0?r:n}var sI=TW;const We=Ye(sI);var lI=function(e){e===void 0&&(e={});var t={},r=function(n,o){Object.keys(t).forEach(function(a){t[a]&&t[a].key===n&&t[a].callback(o)})};return{setup:function(){},teardown:function(){Object.keys(e).forEach(function(n){return delete e[n]})},getItem:function(n,o){return We(e,n,o)},setItem:function(n,o){mx(e,n,o),r(n,o)},removeItem:function(n){zf(e,n),r(n,void 0)},removeItems:function(n){var o=JC(e);Object.keys(o).forEach(function(a){a.startsWith(n)&&(zf(e,a),r(a,void 0))})},reset:function(){var n=JC(e);Object.keys(n).forEach(function(o){zf(e,o),r(o,void 0)})},subscribe:function(n,o){var a=Math.random().toString();return t[a]={key:n,callback:o},function(){delete t[a]}}}},JC=function(e){var t={};function r(n,o){if(Object(n)!==n)t[o]=n;else if(Array.isArray(n))t[o]=n;else{var a=!0;for(var i in n)a=!1,r(n[i],o?o+"."+i:i);a&&o&&(t[o]={})}}return r(e,""),t},RW=lI(),uI=f.createContext(RW),kW=function(e){var t=e.value,r=e.children;return f.useEffect(function(){return t.setup(),function(){t.teardown()}},[t]),f.createElement(uI.Provider,{value:t},r)},rh=function(){return f.useContext(uI)},IW=Xv;function AW(){this.__data__=new IW,this.size=0}var jW=AW;function MW(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var FW=MW;function NW(e){return this.__data__.get(e)}var LW=NW;function DW(e){return this.__data__.has(e)}var BW=DW,zW=Xv,UW=dx,VW=px,WW=200;function HW(e,t){var r=this.__data__;if(r instanceof zW){var n=r.__data__;if(!UW||n.length<WW-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new VW(n)}return r.set(e,t),this.size=r.size,this}var qW=HW,GW=Xv,KW=jW,QW=FW,YW=LW,XW=BW,JW=qW;function Xs(e){var t=this.__data__=new GW(e);this.size=t.size}Xs.prototype.clear=KW;Xs.prototype.delete=QW;Xs.prototype.get=YW;Xs.prototype.has=XW;Xs.prototype.set=JW;var nh=Xs,ZW="__lodash_hash_undefined__";function eH(e){return this.__data__.set(e,ZW),this}var tH=eH;function rH(e){return this.__data__.has(e)}var nH=rH,oH=px,aH=tH,iH=nH;function Kd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new oH;++t<r;)this.add(e[t])}Kd.prototype.add=Kd.prototype.push=aH;Kd.prototype.has=iH;var gx=Kd;function sH(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var lH=sH;function uH(e,t){return e.has(t)}var yx=uH,cH=gx,fH=lH,dH=yx,pH=1,vH=2;function hH(e,t,r,n,o,a){var i=r&pH,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var d=-1,p=!0,h=r&vH?new cH:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],y=t[d];if(n)var x=i?n(y,m,d,t,e,a):n(m,y,d,e,t,a);if(x!==void 0){if(x)continue;p=!1;break}if(h){if(!fH(t,function(b,v){if(!dH(h,v)&&(m===b||o(m,b,r,n,a)))return h.push(v)})){p=!1;break}}else if(!(m===y||o(m,y,r,n,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var cI=hH,mH=_n,gH=mH.Uint8Array,fI=gH;function yH(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}var bH=yH;function xH(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var bx=xH,ZC=Hs,e$=fI,wH=qs,SH=cI,_H=bH,CH=bx,$H=1,OH=2,EH="[object Boolean]",PH="[object Date]",TH="[object Error]",RH="[object Map]",kH="[object Number]",IH="[object RegExp]",AH="[object Set]",jH="[object String]",MH="[object Symbol]",FH="[object ArrayBuffer]",NH="[object DataView]",t$=ZC?ZC.prototype:void 0,Cm=t$?t$.valueOf:void 0;function LH(e,t,r,n,o,a,i){switch(r){case NH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FH:return!(e.byteLength!=t.byteLength||!a(new e$(e),new e$(t)));case EH:case PH:case kH:return wH(+e,+t);case TH:return e.name==t.name&&e.message==t.message;case IH:case jH:return e==t+"";case RH:var s=_H;case AH:var u=n&$H;if(s||(s=CH),e.size!=t.size&&!u)return!1;var l=i.get(e);if(l)return l==t;n|=OH,i.set(e,t);var c=SH(s(e),s(t),n,o,a,i);return i.delete(e),c;case MH:if(Cm)return Cm.call(e)==Cm.call(t)}return!1}var DH=LH;function BH(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var xx=BH,zH=xx,UH=un;function VH(e,t,r){var n=t(e);return UH(e)?n:zH(n,r(e))}var dI=VH;function WH(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}var HH=WH;function qH(){return[]}var pI=qH,GH=HH,KH=pI,QH=Object.prototype,YH=QH.propertyIsEnumerable,r$=Object.getOwnPropertySymbols,XH=r$?function(e){return e==null?[]:(e=Object(e),GH(r$(e),function(t){return YH.call(e,t)}))}:KH,wx=XH;function JH(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ZH=JH,eq=fi,tq=Qn,rq="[object Arguments]";function nq(e){return tq(e)&&eq(e)==rq}var oq=nq,n$=oq,aq=Qn,vI=Object.prototype,iq=vI.hasOwnProperty,sq=vI.propertyIsEnumerable,lq=n$(function(){return arguments}())?n$:function(e){return aq(e)&&iq.call(e,"callee")&&!sq.call(e,"callee")},oh=lq,Qd={exports:{}};function uq(){return!1}var cq=uq;Qd.exports;(function(e,t){var r=_n,n=cq,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})(Qd,Qd.exports);var ah=Qd.exports,fq=9007199254740991;function dq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fq}var Sx=dq,pq=fi,vq=Sx,hq=Qn,mq="[object Arguments]",gq="[object Array]",yq="[object Boolean]",bq="[object Date]",xq="[object Error]",wq="[object Function]",Sq="[object Map]",_q="[object Number]",Cq="[object Object]",$q="[object RegExp]",Oq="[object Set]",Eq="[object String]",Pq="[object WeakMap]",Tq="[object ArrayBuffer]",Rq="[object DataView]",kq="[object Float32Array]",Iq="[object Float64Array]",Aq="[object Int8Array]",jq="[object Int16Array]",Mq="[object Int32Array]",Fq="[object Uint8Array]",Nq="[object Uint8ClampedArray]",Lq="[object Uint16Array]",Dq="[object Uint32Array]",Je={};Je[kq]=Je[Iq]=Je[Aq]=Je[jq]=Je[Mq]=Je[Fq]=Je[Nq]=Je[Lq]=Je[Dq]=!0;Je[mq]=Je[gq]=Je[Tq]=Je[yq]=Je[Rq]=Je[bq]=Je[xq]=Je[wq]=Je[Sq]=Je[_q]=Je[Cq]=Je[$q]=Je[Oq]=Je[Eq]=Je[Pq]=!1;function Bq(e){return hq(e)&&vq(e.length)&&!!Je[pq(e)]}var zq=Bq;function Uq(e){return function(t){return e(t)}}var ih=Uq,Yd={exports:{}};Yd.exports;(function(e,t){var r=Xk,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Yd,Yd.exports);var _x=Yd.exports,Vq=zq,Wq=ih,o$=_x,a$=o$&&o$.isTypedArray,Hq=a$?Wq(a$):Vq,Cx=Hq,qq=ZH,Gq=oh,Kq=un,Qq=ah,Yq=eh,Xq=Cx,Jq=Object.prototype,Zq=Jq.hasOwnProperty;function eG(e,t){var r=Kq(e),n=!r&&Gq(e),o=!r&&!n&&Qq(e),a=!r&&!n&&!o&&Xq(e),i=r||n||o||a,s=i?qq(e.length,String):[],u=s.length;for(var l in e)(t||Zq.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Yq(l,u)))&&s.push(l);return s}var hI=eG,tG=Object.prototype;function rG(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tG;return e===r}var $x=rG;function nG(e,t){return function(r){return e(t(r))}}var mI=nG,oG=mI,aG=oG(Object.keys,Object),iG=aG,sG=$x,lG=iG,uG=Object.prototype,cG=uG.hasOwnProperty;function fG(e){if(!sG(e))return lG(e);var t=[];for(var r in Object(e))cG.call(e,r)&&r!="constructor"&&t.push(r);return t}var dG=fG,pG=lx,vG=Sx;function hG(e){return e!=null&&vG(e.length)&&!pG(e)}var sh=hG,mG=hI,gG=dG,yG=sh;function bG(e){return yG(e)?mG(e):gG(e)}var lh=bG,xG=dI,wG=wx,SG=lh;function _G(e){return xG(e,SG,wG)}var gI=_G,i$=gI,CG=1,$G=Object.prototype,OG=$G.hasOwnProperty;function EG(e,t,r,n,o,a){var i=r&CG,s=i$(e),u=s.length,l=i$(t),c=l.length;if(u!=c&&!i)return!1;for(var d=u;d--;){var p=s[d];if(!(i?p in t:OG.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var y=!0;a.set(e,t),a.set(t,e);for(var x=i;++d<u;){p=s[d];var b=e[p],v=t[p];if(n)var g=i?n(v,b,p,t,e,a):n(b,v,p,e,t,a);if(!(g===void 0?b===v||o(b,v,r,n,a):g)){y=!1;break}x||(x=p=="constructor")}if(y&&!x){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(y=!1)}return a.delete(e),a.delete(t),y}var PG=EG,TG=di,RG=_n,kG=TG(RG,"DataView"),IG=kG,AG=di,jG=_n,MG=AG(jG,"Promise"),FG=MG,NG=di,LG=_n,DG=NG(LG,"Set"),yI=DG,BG=di,zG=_n,UG=BG(zG,"WeakMap"),VG=UG,$y=IG,Oy=dx,Ey=FG,Py=yI,Ty=VG,bI=fi,Js=Zk,s$="[object Map]",WG="[object Object]",l$="[object Promise]",u$="[object Set]",c$="[object WeakMap]",f$="[object DataView]",HG=Js($y),qG=Js(Oy),GG=Js(Ey),KG=Js(Py),QG=Js(Ty),Ea=bI;($y&&Ea(new $y(new ArrayBuffer(1)))!=f$||Oy&&Ea(new Oy)!=s$||Ey&&Ea(Ey.resolve())!=l$||Py&&Ea(new Py)!=u$||Ty&&Ea(new Ty)!=c$)&&(Ea=function(e){var t=bI(e),r=t==WG?e.constructor:void 0,n=r?Js(r):"";if(n)switch(n){case HG:return f$;case qG:return s$;case GG:return l$;case KG:return u$;case QG:return c$}return t});var uh=Ea,$m=nh,YG=cI,XG=DH,JG=PG,d$=uh,p$=un,v$=ah,ZG=Cx,eK=1,h$="[object Arguments]",m$="[object Array]",tf="[object Object]",tK=Object.prototype,g$=tK.hasOwnProperty;function rK(e,t,r,n,o,a){var i=p$(e),s=p$(t),u=i?m$:d$(e),l=s?m$:d$(t);u=u==h$?tf:u,l=l==h$?tf:l;var c=u==tf,d=l==tf,p=u==l;if(p&&v$(e)){if(!v$(t))return!1;i=!0,c=!1}if(p&&!c)return a||(a=new $m),i||ZG(e)?YG(e,t,r,n,o,a):XG(e,t,u,r,n,o,a);if(!(r&eK)){var h=c&&g$.call(e,"__wrapped__"),m=d&&g$.call(t,"__wrapped__");if(h||m){var y=h?e.value():e,x=m?t.value():t;return a||(a=new $m),o(y,x,r,n,a)}}return p?(a||(a=new $m),JG(e,t,r,n,o,a)):!1}var nK=rK,oK=nK,y$=Qn;function xI(e,t,r,n,o){return e===t?!0:e==null||t==null||!y$(e)&&!y$(t)?e!==e&&t!==t:oK(e,t,r,n,xI,o)}var Ox=xI,aK=Ox;function iK(e,t){return aK(e,t)}var sK=iK;const zn=Ye(sK);var b$=function(e,t){return e&&t?String.prototype.replace.call(e,lK,function(r,n){return!t.hasOwnProperty(n)||t[n]==null?r:t[n]}):e},lK=/%\{(.*?)\}/g,uK={translate:function(e,t){return t!=null&&t._?b$(t._,t):b$(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},Ex=f.createContext(uK);Ex.displayName="I18nContext";var wI=f.createContext(function(){}),SI=f.createContext({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),x$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},cK=function(e){var t=e.children,r=f.useState([]),n=r[0],o=r[1],a=f.useCallback(function(l){o(function(c){return x$(x$([],c,!0),[l],!1)})},[]),i=f.useCallback(function(){var l=n[0],c=n.slice(1);return o(c),l},[n]),s=f.useCallback(function(){o([])},[]),u=f.useMemo(function(){return{notifications:n,addNotification:a,takeNotification:i,resetNotifications:s,setNotifications:o}},[n]);return f.createElement(SI.Provider,{value:u},f.createElement(wI.Provider,{value:a},t))},fK=function(){return f.useContext(wI)},_I=function(){return f.useContext(SI)},dK=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Br=function(){var e=fK();return f.useCallback(function(t,r){r===void 0&&(r={});var n=r.type,o=n===void 0?"info":n,a=dK(r,["type"]);e({message:t,type:o,notificationOptions:a})},[e])},pK=function(e){var t=e.value,r=t===void 0?vK:t,n=e.children,o=$n("locale")[0],a=Br(),i=f.useState(0),s=i[0],u=i[1],l=f.useState(o===r.getLocale()),c=l[0],d=l[1];return f.useEffect(function(){o&&r.getLocale()!==o?new Promise(function(p){p(r.changeLocale(o))}).then(function(){u(function(p){return p+1}),d(!0)}).catch(function(p){d(!0),a("ra.notification.i18n_error",{type:"error"}),console.error(p)}):d(!0)},[r,o,a]),c?f.createElement(Ex.Provider,{value:r,key:s},n):null},vK={translate:function(e){return e},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},hK=ux,mK=qs;function gK(e,t,r){(r!==void 0&&!mK(e[t],r)||r===void 0&&!(t in e))&&hK(e,t,r)}var CI=gK;function yK(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var u=i[e?s:++o];if(r(a[u],u,a)===!1)break}return t}}var bK=yK,xK=bK,wK=xK(),SK=wK,Xd={exports:{}};Xd.exports;(function(e,t){var r=_n,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var d=l.length,p=s?s(d):new l.constructor(d);return l.copy(p),p}e.exports=u})(Xd,Xd.exports);var $I=Xd.exports,w$=fI;function _K(e){var t=new e.constructor(e.byteLength);return new w$(t).set(new w$(e)),t}var Px=_K,CK=Px;function $K(e,t){var r=t?CK(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var OI=$K;function OK(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var EI=OK,EK=ln,S$=Object.create,PK=function(){function e(){}return function(t){if(!EK(t))return{};if(S$)return S$(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),TK=PK,RK=mI,kK=RK(Object.getPrototypeOf,Object),Tx=kK,IK=TK,AK=Tx,jK=$x;function MK(e){return typeof e.constructor=="function"&&!jK(e)?IK(AK(e)):{}}var PI=MK,FK=sh,NK=Qn;function LK(e){return NK(e)&&FK(e)}var Rx=LK,DK=fi,BK=Tx,zK=Qn,UK="[object Object]",VK=Function.prototype,WK=Object.prototype,TI=VK.toString,HK=WK.hasOwnProperty,qK=TI.call(Object);function GK(e){if(!zK(e)||DK(e)!=UK)return!1;var t=BK(e);if(t===null)return!0;var r=HK.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&TI.call(r)==qK}var KK=GK;function QK(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var RI=QK,YK=cx,XK=ux;function JK(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),o?XK(r,s,u):YK(r,s,u)}return r}var dc=JK;function ZK(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var eQ=ZK,tQ=ln,rQ=$x,nQ=eQ,oQ=Object.prototype,aQ=oQ.hasOwnProperty;function iQ(e){if(!tQ(e))return nQ(e);var t=rQ(e),r=[];for(var n in e)n=="constructor"&&(t||!aQ.call(e,n))||r.push(n);return r}var sQ=iQ,lQ=hI,uQ=sQ,cQ=sh;function fQ(e){return cQ(e)?lQ(e,!0):uQ(e)}var Zs=fQ,dQ=dc,pQ=Zs;function vQ(e){return dQ(e,pQ(e))}var hQ=vQ,_$=CI,mQ=$I,gQ=OI,yQ=EI,bQ=PI,C$=oh,$$=un,xQ=Rx,wQ=ah,SQ=lx,_Q=ln,CQ=KK,$Q=Cx,O$=RI,OQ=hQ;function EQ(e,t,r,n,o,a,i){var s=O$(e,r),u=O$(t,r),l=i.get(u);if(l){_$(e,r,l);return}var c=a?a(s,u,r+"",e,t,i):void 0,d=c===void 0;if(d){var p=$$(u),h=!p&&wQ(u),m=!p&&!h&&$Q(u);c=u,p||h||m?$$(s)?c=s:xQ(s)?c=yQ(s):h?(d=!1,c=mQ(u,!0)):m?(d=!1,c=gQ(u,!0)):c=[]:CQ(u)||C$(u)?(c=s,C$(s)?c=OQ(s):(!_Q(s)||SQ(s))&&(c=bQ(u))):d=!1}d&&(i.set(u,c),o(c,u,n,a,i),i.delete(u)),_$(e,r,c)}var PQ=EQ,TQ=nh,RQ=CI,kQ=SK,IQ=PQ,AQ=ln,jQ=Zs,MQ=RI;function kI(e,t,r,n,o){e!==t&&kQ(t,function(a,i){if(o||(o=new TQ),AQ(a))IQ(e,t,i,r,kI,n,o);else{var s=n?n(MQ(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),RQ(e,i,s)}},jQ)}var FQ=kI;function NQ(e){return e}var kx=NQ;function LQ(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var DQ=LQ,BQ=DQ,E$=Math.max;function zQ(e,t,r){return t=E$(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=E$(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),BQ(e,this,s)}}var II=zQ;function UQ(e){return function(){return e}}var VQ=UQ,WQ=VQ,P$=eI,HQ=kx,qQ=P$?function(e,t){return P$(e,"toString",{configurable:!0,enumerable:!1,value:WQ(t),writable:!0})}:HQ,GQ=qQ,KQ=800,QQ=16,YQ=Date.now;function XQ(e){var t=0,r=0;return function(){var n=YQ(),o=QQ-(n-r);if(r=n,o>0){if(++t>=KQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var JQ=XQ,ZQ=GQ,eY=JQ,tY=eY(ZQ),AI=tY,rY=kx,nY=II,oY=AI;function aY(e,t){return oY(nY(e,t,rY),e+"")}var ch=aY,iY=qs,sY=sh,lY=eh,uY=ln;function cY(e,t,r){if(!uY(r))return!1;var n=typeof t;return(n=="number"?sY(r)&&lY(t,r.length):n=="string"&&t in r)?iY(r[t],e):!1}var jI=cY,fY=ch,dY=jI;function pY(e){return fY(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&dY(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t})}var vY=pY,hY=FQ,mY=vY,gY=mY(function(e,t,r){hY(e,t,r)}),yY=gY;const MI=Ye(yY);var Ix=function(){return f.useContext(Ex)},FI=function(){var e=Ix(),t=f.useMemo(function(){return e.getLocale()},[e]);return $n("locale",t)},bY=function(){var e=FI()[0];return e},NI=function(e){var t,r=Ix(),n=f.useMemo(function(){return r!=null&&r.getLocales?r==null?void 0:r.getLocales():[]},[r]);return(t=e==null?void 0:e.locales)!==null&&t!==void 0?t:n},Hi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hi||(Hi={}));var T$=function(e){return e},R$="beforeunload",xY="hashchange",wY="popstate";function SY(e){e===void 0&&(e={});var t=e,r=t.window,n=r===void 0?document.defaultView:r,o=n.history;function a(){var P=Ry(n.location.hash.substr(1)),T=P.pathname,R=T===void 0?"/":T,I=P.search,A=I===void 0?"":I,L=P.hash,M=L===void 0?"":L,F=o.state||{};return[F.idx,T$({pathname:R,search:A,hash:M,state:F.usr||null,key:F.key||"default"})]}var i=null;function s(){if(i)h.call(i),i=null;else{var P=Hi.Pop,T=a(),R=T[0],I=T[1];if(h.length){if(R!=null){var A=c-R;A&&(i={action:P,location:I,retry:function(){_(A*-1)}},_(A))}}else g(P)}}n.addEventListener(wY,s),n.addEventListener(xY,function(){var P=a(),T=P[1];Om(T)!==Om(d)&&s()});var u=Hi.Pop,l=a(),c=l[0],d=l[1],p=I$(),h=I$();c==null&&(c=0,o.replaceState(O({},o.state,{idx:c}),""));function m(){var P=document.querySelector("base"),T="";if(P&&P.getAttribute("href")){var R=n.location.href,I=R.indexOf("#");T=I===-1?R:R.slice(0,I)}return T}function y(P){return m()+"#"+(typeof P=="string"?P:Om(P))}function x(P,T){return T===void 0&&(T=null),T$(O({pathname:d.pathname,hash:"",search:""},typeof P=="string"?Ry(P):P,{state:T,key:_Y()}))}function b(P,T){return[{usr:P.state,key:P.key,idx:T},y(P)]}function v(P,T,R){return!h.length||(h.call({action:P,location:T,retry:R}),!1)}function g(P){u=P;var T=a();c=T[0],d=T[1],p.call({action:u,location:d})}function S(P,T){var R=Hi.Push,I=x(P,T);function A(){S(P,T)}if(v(R,I,A)){var L=b(I,c+1),M=L[0],F=L[1];try{o.pushState(M,"",F)}catch{n.location.assign(F)}g(R)}}function w(P,T){var R=Hi.Replace,I=x(P,T);function A(){w(P,T)}if(v(R,I,A)){var L=b(I,c),M=L[0],F=L[1];o.replaceState(M,"",F),g(R)}}function _(P){o.go(P)}var $={get action(){return u},get location(){return d},createHref:y,push:S,replace:w,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(T){return p.push(T)},block:function(T){var R=h.push(T);return h.length===1&&n.addEventListener(R$,k$),function(){R(),h.length||n.removeEventListener(R$,k$)}}};return $}function k$(e){e.preventDefault(),e.returnValue=""}function I$(){var e=[];return{get length(){return e.length},push:function(r){return e.push(r),function(){e=e.filter(function(n){return n!==r})}},call:function(r){e.forEach(function(n){return n&&n(r)})}}}function _Y(){return Math.random().toString(36).substr(2,8)}function Om(e){var t=e.pathname,r=t===void 0?"/":t,n=e.search,o=n===void 0?"":n,a=e.hash,i=a===void 0?"":a;return o&&o!=="?"&&(r+=o.charAt(0)==="?"?o:"?"+o),i&&i!=="#"&&(r+=i.charAt(0)==="#"?i:"#"+i),r}function Ry(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function CY(e){var t=e.basename,r=e.children,n=e.history,o=f.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return f.useLayoutEffect(function(){return n.listen(i)},[n]),f.createElement(_9,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var LI=f.createContext(""),$Y=function(e){var t=e.children,r=e.basename;return f.createElement(LI.Provider,{value:r},t)},OY=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=va(),i=a?EY:PY;return f.createElement($Y,{basename:a?n:""},f.createElement(i,{basename:n,history:t},o))},EY=function(e){var t=e.children;return f.createElement(f.Fragment,null,t)},PY=function(e){var t=e.children,r=e.history,n=f.useMemo(function(){return r||SY()},[r]);return f.createElement(CY,{history:n},t)},ha=function(){return f.useContext(LI)},pi=function(){var e=ha();return f.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return In("".concat(e,"/").concat(r));case"create":return In("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?In("".concat(e,"/").concat(r)):In("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?In("".concat(e,"/").concat(r)):In("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},In=function(e){return e.replace("//","/")},Jl=globalThis&&globalThis.__assign||function(){return Jl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Jl.apply(this,arguments)},DI=function(){var e=Kn(),t=ha(),r=pi();return f.useCallback(function(n,o,a,i,s){if(o===void 0&&(o=""),s===void 0&&(s={}),n)if(typeof n=="function"){var u=n(o,a,i),l=typeof u=="string"?"".concat(t,"/").concat(u):Jl({pathname:"".concat(t,"/").concat(u.pathname)},u);e(typeof l=="string"?Ry(l):l,{state:Jl({_scrollToTop:!0},s)});return}else if(typeof n=="string"&&n.startsWith("http")&&window){window.location.href=n;return}else{e(r({resource:o,id:a,type:n}),{state:Jl({_scrollToTop:!0},s)});return}else return},[e,t,r])},TY=function(){var e=Cr();f.useEffect(function(){var t;!((t=e.state)===null||t===void 0)&&t._scrollToTop&&typeof window<"u"&&window.scrollTo(0,0)},[e])},Jd=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},RY="GET_LIST",kY="GET_ONE",IY="GET_MANY",AY="GET_MANY_REFERENCE",jY="CREATE",MY="UPDATE",FY="UPDATE_MANY",NY="DELETE",LY="DELETE_MANY",DY=["getOne","create","update"],BY=["getList","getMany","getManyReference"],zY=Jd(Jd([],BY,!0),["updateMany","deleteMany"],!1);var uTe=Jd(Jd([],DY,!0),zY,!0),Yn=function(){return Promise.resolve()};Yn.create=function(){return Promise.resolve(null)};Yn.delete=function(){return Promise.resolve(null)};Yn.deleteMany=function(){return Promise.resolve(null)};Yn.getList=function(){return Promise.resolve(null)};Yn.getMany=function(){return Promise.resolve(null)};Yn.getManyReference=function(){return Promise.resolve(null)};Yn.getOne=function(){return Promise.resolve(null)};Yn.update=function(){return Promise.resolve(null)};Yn.updateMany=function(){return Promise.resolve(null)};var A$={create:jY,delete:NY,deleteMany:LY,getList:RY,getMany:IY,getManyReference:AY,getOne:kY,update:MY,updateMany:FY},UY=function(e){var t=new Proxy(Yn,{get:function(r,n){return function(o,a){if(Object.keys(A$).includes(n.toString())){var i=A$[n.toString()];return e(i,o,a)}return e(n.toString(),o,a)}},apply:function(r,n,o){return e.apply(e,o)}});return t};const VY=UY;var BI=f.createContext(null);BI.displayName="DataProviderContext";const zI=BI;var WY=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),HY=function(e){WY(t,e);function t(r,n,o){o===void 0&&(o=null);var a=e.call(this,r)||this;return a.message=r,a.status=n,a.body=o,Object.setPrototypeOf(a,t.prototype),a.name=a.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(a,a.constructor):a.stack=new Error(r).stack,a.stack=new Error().stack,a}return t}(Error);const qY=HY;var fh={},GY=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),UI="%[a-f0-9]{2}",j$=new RegExp("("+UI+")|([^%]+?)","gi"),M$=new RegExp("("+UI+")+","gi");function ky(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ky(r),ky(n))}function KY(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(j$)||[],r=1;r<t.length;r++)e=ky(t,r).join(""),t=e.match(j$)||[];return e}}function QY(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=M$.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=KY(r[0]);n!==r[0]&&(t[r[0]]=n)}r=M$.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),a=0;a<o.length;a++){var i=o[a];e=e.replace(new RegExp(i,"g"),t[i])}return e}var YY=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return QY(e)}},XY=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},JY=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?t.indexOf(i)!==-1:t(i,s,e))&&(r[i]=s)}return r};(function(e){const t=GY,r=YY,n=XY,o=JY,a=v=>v==null,i=Symbol("encodeFragmentIdentifier");function s(v){switch(v.arrayFormat){case"index":return g=>(S,w)=>{const _=S.length;return w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?S:w===null?[...S,[c(g,v),"[",_,"]"].join("")]:[...S,[c(g,v),"[",c(_,v),"]=",c(w,v)].join("")]};case"bracket":return g=>(S,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?S:w===null?[...S,[c(g,v),"[]"].join("")]:[...S,[c(g,v),"[]=",c(w,v)].join("")];case"colon-list-separator":return g=>(S,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?S:w===null?[...S,[c(g,v),":list="].join("")]:[...S,[c(g,v),":list=",c(w,v)].join("")];case"comma":case"separator":case"bracket-separator":{const g=v.arrayFormat==="bracket-separator"?"[]=":"=";return S=>(w,_)=>_===void 0||v.skipNull&&_===null||v.skipEmptyString&&_===""?w:(_=_===null?"":_,w.length===0?[[c(S,v),g,c(_,v)].join("")]:[[w,c(_,v)].join(v.arrayFormatSeparator)])}default:return g=>(S,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?S:w===null?[...S,c(g,v)]:[...S,[c(g,v),"=",c(w,v)].join("")]}}function u(v){let g;switch(v.arrayFormat){case"index":return(S,w,_)=>{if(g=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!g){_[S]=w;return}_[S]===void 0&&(_[S]={}),_[S][g[1]]=w};case"bracket":return(S,w,_)=>{if(g=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!g){_[S]=w;return}if(_[S]===void 0){_[S]=[w];return}_[S]=[].concat(_[S],w)};case"colon-list-separator":return(S,w,_)=>{if(g=/(:list)$/.exec(S),S=S.replace(/:list$/,""),!g){_[S]=w;return}if(_[S]===void 0){_[S]=[w];return}_[S]=[].concat(_[S],w)};case"comma":case"separator":return(S,w,_)=>{const $=typeof w=="string"&&w.includes(v.arrayFormatSeparator),P=typeof w=="string"&&!$&&d(w,v).includes(v.arrayFormatSeparator);w=P?d(w,v):w;const T=$||P?w.split(v.arrayFormatSeparator).map(R=>d(R,v)):w===null?w:d(w,v);_[S]=T};case"bracket-separator":return(S,w,_)=>{const $=/(\[\])$/.test(S);if(S=S.replace(/\[\]$/,""),!$){_[S]=w&&d(w,v);return}const P=w===null?[]:w.split(v.arrayFormatSeparator).map(T=>d(T,v));if(_[S]===void 0){_[S]=P;return}_[S]=[].concat(_[S],P)};default:return(S,w,_)=>{if(_[S]===void 0){_[S]=w;return}_[S]=[].concat(_[S],w)}}}function l(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(v,g){return g.encode?g.strict?t(v):encodeURIComponent(v):v}function d(v,g){return g.decode?r(v):v}function p(v){return Array.isArray(v)?v.sort():typeof v=="object"?p(Object.keys(v)).sort((g,S)=>Number(g)-Number(S)).map(g=>v[g]):v}function h(v){const g=v.indexOf("#");return g!==-1&&(v=v.slice(0,g)),v}function m(v){let g="";const S=v.indexOf("#");return S!==-1&&(g=v.slice(S)),g}function y(v){v=h(v);const g=v.indexOf("?");return g===-1?"":v.slice(g+1)}function x(v,g){return g.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):g.parseBooleans&&v!==null&&(v.toLowerCase()==="true"||v.toLowerCase()==="false")&&(v=v.toLowerCase()==="true"),v}function b(v,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),l(g.arrayFormatSeparator);const S=u(g),w=Object.create(null);if(typeof v!="string"||(v=v.trim().replace(/^[?#&]/,""),!v))return w;for(const _ of v.split("&")){if(_==="")continue;let[$,P]=n(g.decode?_.replace(/\+/g," "):_,"=");P=P===void 0?null:["comma","separator","bracket-separator"].includes(g.arrayFormat)?P:d(P,g),S(d($,g),P,w)}for(const _ of Object.keys(w)){const $=w[_];if(typeof $=="object"&&$!==null)for(const P of Object.keys($))$[P]=x($[P],g);else w[_]=x($,g)}return g.sort===!1?w:(g.sort===!0?Object.keys(w).sort():Object.keys(w).sort(g.sort)).reduce((_,$)=>{const P=w[$];return P&&typeof P=="object"&&!Array.isArray(P)?_[$]=p(P):_[$]=P,_},Object.create(null))}e.extract=y,e.parse=b,e.stringify=(v,g)=>{if(!v)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),l(g.arrayFormatSeparator);const S=P=>g.skipNull&&a(v[P])||g.skipEmptyString&&v[P]==="",w=s(g),_={};for(const P of Object.keys(v))S(P)||(_[P]=v[P]);const $=Object.keys(_);return g.sort!==!1&&$.sort(g.sort),$.map(P=>{const T=v[P];return T===void 0?"":T===null?c(P,g):Array.isArray(T)?T.length===0&&g.arrayFormat==="bracket-separator"?c(P,g)+"[]":T.reduce(w(P),[]).join("&"):c(P,g)+"="+c(T,g)}).filter(P=>P.length>0).join("&")},e.parseUrl=(v,g)=>{g=Object.assign({decode:!0},g);const[S,w]=n(v,"#");return Object.assign({url:S.split("?")[0]||"",query:b(y(v),g)},g&&g.parseFragmentIdentifier&&w?{fragmentIdentifier:d(w,g)}:{})},e.stringifyUrl=(v,g)=>{g=Object.assign({encode:!0,strict:!0,[i]:!0},g);const S=h(v.url).split("?")[0]||"",w=e.extract(v.url),_=e.parse(w,{sort:!1}),$=Object.assign(_,v.query);let P=e.stringify($,g);P&&(P=`?${P}`);let T=m(v.url);return v.fragmentIdentifier&&(T=`#${g[i]?c(v.fragmentIdentifier,g):v.fragmentIdentifier}`),`${S}${P}${T}`},e.pick=(v,g,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[i]:!1},S);const{url:w,query:_,fragmentIdentifier:$}=e.parseUrl(v,S);return e.stringifyUrl({url:w,query:o(_,g),fragmentIdentifier:$},S)},e.exclude=(v,g,S)=>{const w=Array.isArray(g)?_=>!g.includes(_):(_,$)=>!g(_,$);return e.pick(v,w,S)}})(fh);var Zd=globalThis&&globalThis.__assign||function(){return Zd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Zd.apply(this,arguments)};globalThis&&globalThis.__spreadArray;var ZY=function(e){var t=e.headers||new Headers({Accept:"application/json"}),r=e&&e.body,n=t.has("Content-Type"),o=!(e!=null&&e.method)||(e==null?void 0:e.method)==="GET",a=(e==null?void 0:e.body)instanceof FormData,i=r&&!n&&!o&&!a;return i&&t.set("Content-Type","application/json"),e.user&&e.user.authenticated&&e.user.token&&t.set("Authorization",e.user.token),t},eX=function(e,t){t===void 0&&(t={});var r=ZY(t);return fetch(e,Zd(Zd({},t),{headers:r})).then(function(n){return n.text().then(function(o){return{status:n.status,statusText:n.statusText,headers:n.headers,body:o}})}).then(function(n){var o=n.status,a=n.statusText,i=n.headers,s=n.body,u;try{u=JSON.parse(s)}catch{}return o<200||o>=300?Promise.reject(new qY(u&&u.message||a,o,u)):Promise.resolve({status:o,headers:i,body:s,json:u})})},VI={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function a(u,l,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,d||u,p),m=r?r+l:l;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],h]:u._events[m].push(h):(u._events[m]=h,u._eventsCount++),u}function i(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)t.call(c,d)&&l.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,m=new Array(h);p<h;p++)m[p]=d[p].fn;return m},s.prototype.listenerCount=function(l){var c=r?r+l:l,d=this._events[c];return d?d.fn?1:d.length:0},s.prototype.emit=function(l,c,d,p,h,m){var y=r?r+l:l;if(!this._events[y])return!1;var x=this._events[y],b=arguments.length,v,g;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),b){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,c),!0;case 3:return x.fn.call(x.context,c,d),!0;case 4:return x.fn.call(x.context,c,d,p),!0;case 5:return x.fn.call(x.context,c,d,p,h),!0;case 6:return x.fn.call(x.context,c,d,p,h,m),!0}for(g=1,v=new Array(b-1);g<b;g++)v[g-1]=arguments[g];x.fn.apply(x.context,v)}else{var S=x.length,w;for(g=0;g<S;g++)switch(x[g].once&&this.removeListener(l,x[g].fn,void 0,!0),b){case 1:x[g].fn.call(x[g].context);break;case 2:x[g].fn.call(x[g].context,c);break;case 3:x[g].fn.call(x[g].context,c,d);break;case 4:x[g].fn.call(x[g].context,c,d,p);break;default:if(!v)for(w=1,v=new Array(b-1);w<b;w++)v[w-1]=arguments[w];x[g].fn.apply(x[g].context,v)}}return!0},s.prototype.on=function(l,c,d){return a(this,l,c,d,!1)},s.prototype.once=function(l,c,d){return a(this,l,c,d,!0)},s.prototype.removeListener=function(l,c,d,p){var h=r?r+l:l;if(!this._events[h])return this;if(!c)return i(this,h),this;var m=this._events[h];if(m.fn)m.fn===c&&(!p||m.once)&&(!d||m.context===d)&&i(this,h);else{for(var y=0,x=[],b=m.length;y<b;y++)(m[y].fn!==c||p&&!m[y].once||d&&m[y].context!==d)&&x.push(m[y]);x.length?this._events[h]=x.length===1?x[0]:x:i(this,h)}return this},s.prototype.removeAllListeners=function(l){var c;return l?(c=r?r+l:l,this._events[c]&&i(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(VI);var tX=VI.exports;const rX=Ye(tX),Iy=new rX;var WI={create:function(){return Promise.resolve({data:null})},delete:function(){return Promise.resolve({data:null})},deleteMany:function(){return Promise.resolve({data:[]})},getList:function(){return Promise.resolve({data:[],total:0})},getMany:function(){return Promise.resolve({data:[]})},getManyReference:function(){return Promise.resolve({data:[],total:0})},getOne:function(){return Promise.resolve({data:null})},update:function(){return Promise.resolve({data:null})},updateMany:function(){return Promise.resolve({data:[]})}},ep=globalThis&&globalThis.__assign||function(){return ep=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ep.apply(this,arguments)},Zn=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Pr=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},nX=function(e,t){return ep(ep({},e),{getList:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,x,u,l,c,d,x,p,h,m,y,x;return Pr(this,function(b){switch(b.label){case 0:o=n,a=t.filter(function(v){return v.resource===r&&v.beforeGetList}),i=0,s=a,b.label=1;case 1:return i<s.length?(x=s[i],[4,x.beforeGetList(o,e)]):[3,4];case 2:o=b.sent(),b.label=3;case 3:return i++,[3,1];case 4:return[4,e.getList(r,o)];case 5:u=b.sent(),l=t.filter(function(v){return v.resource===r&&v.afterGetList}),c=0,d=l,b.label=6;case 6:return c<d.length?(x=d[c],[4,x.afterGetList(u,e)]):[3,9];case 7:u=b.sent(),b.label=8;case 8:return c++,[3,6];case 9:p=t.filter(function(v){return v.resource===r&&v.afterRead}),h=function(v){var g;return Pr(this,function(S){switch(S.label){case 0:return g=u,[4,Promise.all(u.data.map(function(w){return v.afterRead(w,e)}))];case 1:return g.data=S.sent(),[2]}})},m=0,y=p,b.label=10;case 10:return m<y.length?(x=y[m],[5,h(x)]):[3,13];case 11:b.sent(),b.label=12;case 12:return m++,[3,10];case 13:return[2,u]}})})},getOne:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,y,u,l,c,d,y,p,h,m,y,x;return Pr(this,function(b){switch(b.label){case 0:o=n,a=t.filter(function(v){return v.resource===r&&v.beforeGetOne}),i=0,s=a,b.label=1;case 1:return i<s.length?(y=s[i],[4,y.beforeGetOne(o,e)]):[3,4];case 2:o=b.sent(),b.label=3;case 3:return i++,[3,1];case 4:return[4,e.getOne(r,o)];case 5:u=b.sent(),l=t.filter(function(v){return v.resource===r&&v.afterGetOne}),c=0,d=l,b.label=6;case 6:return c<d.length?(y=d[c],[4,y.afterGetOne(u,e)]):[3,9];case 7:u=b.sent(),b.label=8;case 8:return c++,[3,6];case 9:p=t.filter(function(v){return v.resource===r&&v.afterRead}),h=0,m=p,b.label=10;case 10:return h<m.length?(y=m[h],x=u,[4,y.afterRead(u.data,e)]):[3,13];case 11:x.data=b.sent(),b.label=12;case 12:return h++,[3,10];case 13:return[2,u]}})})},getMany:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,x,u,l,c,d,x,p,h,m,y,x;return Pr(this,function(b){switch(b.label){case 0:o=n,a=t.filter(function(v){return v.resource===r&&v.beforeGetMany}),i=0,s=a,b.label=1;case 1:return i<s.length?(x=s[i],[4,x.beforeGetMany(o,e)]):[3,4];case 2:o=b.sent(),b.label=3;case 3:return i++,[3,1];case 4:return[4,e.getMany(r,o)];case 5:u=b.sent(),l=t.filter(function(v){return v.resource===r&&v.afterGetMany}),c=0,d=l,b.label=6;case 6:return c<d.length?(x=d[c],[4,x.afterGetMany(u,e)]):[3,9];case 7:u=b.sent(),b.label=8;case 8:return c++,[3,6];case 9:p=t.filter(function(v){return v.resource===r&&v.afterRead}),h=function(v){var g;return Pr(this,function(S){switch(S.label){case 0:return g=u,[4,Promise.all(u.data.map(function(w){return v.afterRead(w,e)}))];case 1:return g.data=S.sent(),[2]}})},m=0,y=p,b.label=10;case 10:return m<y.length?(x=y[m],[5,h(x)]):[3,13];case 11:b.sent(),b.label=12;case 12:return m++,[3,10];case 13:return[2,u]}})})},getManyReference:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,x,u,l,c,d,x,p,h,m,y,x;return Pr(this,function(b){switch(b.label){case 0:o=n,a=t.filter(function(v){return v.resource===r&&v.beforeGetManyReference}),i=0,s=a,b.label=1;case 1:return i<s.length?(x=s[i],[4,x.beforeGetManyReference(o,e)]):[3,4];case 2:o=b.sent(),b.label=3;case 3:return i++,[3,1];case 4:return[4,e.getManyReference(r,o)];case 5:u=b.sent(),l=t.filter(function(v){return v.resource===r&&v.afterGetManyReference}),c=0,d=l,b.label=6;case 6:return c<d.length?(x=d[c],[4,x.afterGetManyReference(u,e)]):[3,9];case 7:u=b.sent(),b.label=8;case 8:return c++,[3,6];case 9:p=t.filter(function(v){return v.resource===r&&v.afterRead}),h=function(v){var g;return Pr(this,function(S){switch(S.label){case 0:return g=u,[4,Promise.all(u.data.map(function(w){return v.afterRead(w,e)}))];case 1:return g.data=S.sent(),[2]}})},m=0,y=p,b.label=10;case 10:return m<y.length?(x=y[m],[5,h(x)]):[3,13];case 11:b.sent(),b.label=12;case 12:return m++,[3,10];case 13:return[2,u]}})})},update:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,g,u,l,c,g,d,p,h,m,y,g,x,b,v,g,S;return Pr(this,function(w){switch(w.label){case 0:o=n,a=t.filter(function(_){return _.resource===r&&_.beforeUpdate}),i=0,s=a,w.label=1;case 1:return i<s.length?(g=s[i],[4,g.beforeUpdate(o,e)]):[3,4];case 2:o=w.sent(),w.label=3;case 3:return i++,[3,1];case 4:u=t.filter(function(_){return _.resource===r&&_.beforeSave}),l=0,c=u,w.label=5;case 5:return l<c.length?(g=c[l],d=o,[4,g.beforeSave(o.data,e)]):[3,8];case 6:d.data=w.sent(),w.label=7;case 7:return l++,[3,5];case 8:return[4,e.update(r,o)];case 9:p=w.sent(),h=t.filter(function(_){return _.resource===r&&_.afterUpdate}),m=0,y=h,w.label=10;case 10:return m<y.length?(g=y[m],[4,g.afterUpdate(p,e)]):[3,13];case 11:p=w.sent(),w.label=12;case 12:return m++,[3,10];case 13:x=t.filter(function(_){return _.resource===r&&_.afterSave}),b=0,v=x,w.label=14;case 14:return b<v.length?(g=v[b],S=p,[4,g.afterSave(p.data,e)]):[3,17];case 15:S.data=w.sent(),w.label=16;case 16:return b++,[3,14];case 17:return[2,p]}})})},create:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,g,u,l,c,g,d,p,h,m,y,g,x,b,v,g,S;return Pr(this,function(w){switch(w.label){case 0:o=n,a=t.filter(function(_){return _.resource===r&&_.beforeCreate}),i=0,s=a,w.label=1;case 1:return i<s.length?(g=s[i],[4,g.beforeCreate(o,e)]):[3,4];case 2:o=w.sent(),w.label=3;case 3:return i++,[3,1];case 4:u=t.filter(function(_){return _.resource===r&&_.beforeSave}),l=0,c=u,w.label=5;case 5:return l<c.length?(g=c[l],d=o,[4,g.beforeSave(o.data,e)]):[3,8];case 6:d.data=w.sent(),w.label=7;case 7:return l++,[3,5];case 8:return[4,e.create(r,o)];case 9:p=w.sent(),h=t.filter(function(_){return _.resource===r&&_.afterCreate}),m=0,y=h,w.label=10;case 10:return m<y.length?(g=y[m],[4,g.afterCreate(p,e)]):[3,13];case 11:p=w.sent(),w.label=12;case 12:return m++,[3,10];case 13:x=t.filter(function(_){return _.resource===r&&_.afterSave}),b=0,v=x,w.label=14;case 14:return b<v.length?(g=v[b],S=p,[4,g.afterSave(p.data,e)]):[3,17];case 15:S.data=w.sent(),w.label=16;case 16:return b++,[3,14];case 17:return[2,p]}})})},delete:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,p,u,l,c,d,p;return Pr(this,function(h){switch(h.label){case 0:o=n,a=t.filter(function(m){return m.resource===r&&m.beforeDelete}),i=0,s=a,h.label=1;case 1:return i<s.length?(p=s[i],[4,p.beforeDelete(o,e)]):[3,4];case 2:o=h.sent(),h.label=3;case 3:return i++,[3,1];case 4:return[4,e.delete(r,o)];case 5:u=h.sent(),l=t.filter(function(m){return m.resource===r&&m.afterDelete}),c=0,d=l,h.label=6;case 6:return c<d.length?(p=d[c],[4,p.afterDelete(u,e)]):[3,9];case 7:u=h.sent(),h.label=8;case 8:return c++,[3,6];case 9:return[2,u]}})})},updateMany:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,w,u,l,c,w,d,p,h,m,y,w,x,b,v,g,S,w;return Pr(this,function(_){switch(_.label){case 0:o=n,a=t.filter(function($){return $.resource===r&&$.beforeUpdateMany}),i=0,s=a,_.label=1;case 1:return i<s.length?(w=s[i],[4,w.beforeUpdateMany(o,e)]):[3,4];case 2:o=_.sent(),_.label=3;case 3:return i++,[3,1];case 4:u=t.filter(function($){return $.resource===r&&$.beforeSave}),l=0,c=u,_.label=5;case 5:return l<c.length?(w=c[l],d=o,[4,w.beforeSave(o.data,e)]):[3,8];case 6:d.data=_.sent(),_.label=7;case 7:return l++,[3,5];case 8:return[4,e.updateMany(r,o)];case 9:p=_.sent(),h=t.filter(function($){return $.resource===r&&$.afterUpdateMany}),m=0,y=h,_.label=10;case 10:return m<y.length?(w=y[m],[4,w.afterUpdateMany(p,e)]):[3,13];case 11:p=_.sent(),_.label=12;case 12:return m++,[3,10];case 13:return x=t.filter(function($){return $.resource===r&&$.afterSave}),x.length>0?[4,e.getMany(r,{ids:p.data})]:[3,18];case 14:b=_.sent().data,v=function($){return Pr(this,function(P){switch(P.label){case 0:return[4,Promise.all(b.map(function(T){return $.afterSave(T,e)}))];case 1:return P.sent(),[2]}})},g=0,S=x,_.label=15;case 15:return g<S.length?(w=S[g],[5,v(w)]):[3,18];case 16:_.sent(),_.label=17;case 17:return g++,[3,15];case 18:return[2,p]}})})},deleteMany:function(r,n){return Zn(this,void 0,void 0,function(){var o,a,i,s,p,u,l,c,d,p;return Pr(this,function(h){switch(h.label){case 0:o=n,a=t.filter(function(m){return m.resource===r&&m.beforeDeleteMany}),i=0,s=a,h.label=1;case 1:return i<s.length?(p=s[i],[4,p.beforeDeleteMany(o,e)]):[3,4];case 2:o=h.sent(),h.label=3;case 3:return i++,[3,1];case 4:return[4,e.deleteMany(r,o)];case 5:u=h.sent(),l=t.filter(function(m){return m.resource===r&&m.afterDeleteMany}),c=0,d=l,h.label=6;case 6:return c<d.length?(p=d[c],[4,p.afterDeleteMany(u,e)]):[3,9];case 7:u=h.sent(),h.label=8;case 8:return c++,[3,6];case 9:return[2,u]}})})}})};var oX=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},aX=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Em,iX=function(){var e=xo(),t=Ec(),r=Br(),n=Kn(),o=f.useCallback(function(a,i){return e.checkError(a).then(function(){return!1}).catch(function(s){return oX(void 0,void 0,void 0,function(){var u,l,c,d;return aX(this,function(p){return u=(d=s==null?void 0:s.logoutUser)!==null&&d!==void 0?d:!0,Em?[2,!0]:(Em=setTimeout(function(){Em=void 0},0),l=s&&s.redirectTo!=null?s.redirectTo:a&&a.redirectTo?a.redirectTo:void 0,c=!(i||s&&s.message===!1||a&&a.message===!1||l!=null&&l.startsWith("http")),c&&e.checkAuth({}).then(function(){u?r(F$(s,"ra.notification.logged_out"),{type:"error"}):r(F$(s,"ra.notification.not_authorized"),{type:"error"})}).catch(function(){}),u?t({},l):l.startsWith("http")?window.location.href=l:n(l),[2,!0])})})})},[e,t,r,n]);return e?o:sX},sX=function(){return Promise.resolve(!1)},F$=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message};const HI=iX;var lX=["getList","getMany","getManyReference"],el=function(){var e=f.useContext(zI)||WI,t=HI(),r=f.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var s=o.toString();if(typeof e[s]!="function")throw new Error("Unknown dataProvider function: ".concat(s));try{return e[s].apply(e,a).then(function(u){return u}).catch(function(u){return t(u).then(function(l){if(l)return{data:lX.includes(s)?[]:{}};throw u})})}catch{throw new Error("The dataProvider threw an error. It should return a rejected Promise instead.")}}}})},[e,t]);return r},uX=function(){var e=So(),t=G.useRef(!1),r=G.useRef(e.isFetching()>0),n=G.useRef(e.isMutating()>0),o=G.useState(r.current||n.current),a=o[0],i=o[1];return G.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Ke.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(Ke.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),a},dh=function(){var e=So();return f.useCallback(function(){e.invalidateQueries()},[e])},cX=function(e,t,r){var n=t.id,o=t.meta,a=el();return pa([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},qi=globalThis&&globalThis.__assign||function(){return qi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qi.apply(this,arguments)},fX=100,dX=function(e,t,r){t===void 0&&(t={});var n=t.pagination,o=n===void 0?{page:1,perPage:25}:n,a=t.sort,i=a===void 0?{field:"id",order:"DESC"}:a,s=t.filter,u=s===void 0?{}:s,l=t.meta,c=el(),d=So(),p=pa([e,"getList",{pagination:o,sort:i,filter:u,meta:l}],function(){return c.getList(e,{pagination:o,sort:i,filter:u,meta:l}).then(function(h){var m=h.data,y=h.total,x=h.pageInfo;return{data:m,total:y,pageInfo:x}})},qi(qi({},r),{onSuccess:function(h){h!=null&&h.data&&h.data.length<=fX&&h.data.forEach(function(m){d.setQueryData([e,"getOne",{id:String(m.id),meta:l}],function(y){return y??m})}),r!=null&&r.onSuccess&&r.onSuccess(h)}}));return f.useMemo(function(){var h,m,y;return p.data?qi(qi({},p),{data:(h=p.data)===null||h===void 0?void 0:h.data,total:(m=p.data)===null||m===void 0?void 0:m.total,pageInfo:(y=p.data)===null||y===void 0?void 0:y.pageInfo}):p},[p])},N$=Hs,pX=oh,vX=un,L$=N$?N$.isConcatSpreadable:void 0;function hX(e){return vX(e)||pX(e)||!!(L$&&e&&e[L$])}var mX=hX,gX=xx,yX=mX;function qI(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=yX),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?qI(s,t-1,r,n,o):gX(o,s):n||(o[o.length]=s)}return o}var Ax=qI;function bX(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var xX=bX;function wX(e){return e!==e}var SX=wX;function _X(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}var CX=_X,$X=xX,OX=SX,EX=CX;function PX(e,t,r){return t===t?EX(e,t,r):$X(e,OX,r)}var TX=PX,RX=TX;function kX(e,t){var r=e==null?0:e.length;return!!r&&RX(e,t,0)>-1}var GI=kX;function IX(e,t,r){for(var n=-1,o=e==null?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}var KI=IX;function AX(){}var jX=AX,Pm=yI,MX=jX,FX=bx,NX=1/0,LX=Pm&&1/FX(new Pm([,-0]))[1]==NX?function(e){return new Pm(e)}:MX,DX=LX,BX=gx,zX=GI,UX=KI,VX=yx,WX=DX,HX=bx,qX=200;function GX(e,t,r){var n=-1,o=zX,a=e.length,i=!0,s=[],u=s;if(r)i=!1,o=UX;else if(a>=qX){var l=t?null:WX(e);if(l)return HX(l);i=!1,o=VX,u=new BX}else u=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||c!==0?c:0,i&&d===d){for(var p=u.length;p--;)if(u[p]===d)continue e;t&&u.push(d),s.push(c)}else o(u,d,r)||(u!==s&&u.push(d),s.push(c))}return s}var KX=GX,QX=Ax,YX=ch,XX=KX,JX=Rx,ZX=YX(function(e){return XX(QX(e,1,JX,!0))}),eJ=ZX;const QI=Ye(eJ);var Ay=globalThis&&globalThis.__assign||function(){return Ay=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ay.apply(this,arguments)},tJ=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},rJ=function(e,t,r){r===void 0&&(r={});var n=el(),o=So(),a=o.getQueryCache(),i=t.ids,s=t.meta,u=f.useMemo(function(){var l=(Array.isArray(i)?i:[i]).map(function(c){var d,p,h=Wo([e,"getOne",{id:String(c),meta:s}]);return(p=(d=a.get(h))===null||d===void 0?void 0:d.state)===null||p===void 0?void 0:p.data});if(!l.some(function(c){return c===void 0}))return l},[i,a,e,s]);return pa([e,"getMany",{ids:(Array.isArray(i)?i:[i]).map(function(l){return String(l)}),meta:s}],function(){return new Promise(function(l,c){return!i||i.length===0?l([]):oJ({resource:e,ids:i,meta:s,resolve:l,reject:c,dataProvider:n,queryClient:o})})},Ay({placeholderData:u,onSuccess:function(l){(l??[]).forEach(function(c){o.setQueryData([e,"getOne",{id:String(c.id),meta:s}],function(d){return d??c})})},retry:!1},r))},nJ=function(e){var t=[],r=null;return function(n){t.push(n),r&&clearTimeout(r),r=setTimeout(function(){r=null,e(tJ([],t,!0)),t=[]},0)}},oJ=nJ(function(e){var t=e[0].dataProvider,r=e[0].queryClient,n=e.reduce(function(o,a){return o[a.resource]||(o[a.resource]=[]),o[a.resource].push(a),o},{});Object.keys(n).forEach(function(o){var a=n[o],i=a.reduce(function(h,m){var y=m.ids;return QI(h,y)},[]).filter(function(h){return h!=null&&h!==""}),s=a.reduce(function(h,m){var y=m.meta;return y||h},void 0);if(i.length===0){a.forEach(function(h){var m=h.resolve;m([])});return}var u=a.find(function(h){var m=h.ids;return JSON.stringify(m)===JSON.stringify(i)});if(u){var l=u.dataProvider,c=u.resource,d=u.ids,p=u.meta;l.getMany(c,{ids:d,meta:p}).then(function(h){var m=h.data;return m}).then(function(h){a.forEach(function(m){var y=m.ids,x=m.resolve;x(h.filter(function(b){return y.map(function(v){return String(v)}).includes(String(b.id))}))})},function(h){a.forEach(function(m){var y=m.reject;y(h)})});return}r.fetchQuery([o,"getMany",{ids:i.map(function(h){return String(h)}),meta:s}],function(){return t.getMany(o,{ids:i,meta:s}).then(function(h){var m=h.data;return m})}).then(function(h){a.forEach(function(m){var y=m.ids,x=m.resolve;x(h.filter(function(b){return y.map(function(v){return String(v)}).includes(String(b.id))}))})}).catch(function(h){return a.forEach(function(m){var y=m.reject;return y(h)})})})}),Zl=globalThis&&globalThis.__assign||function(){return Zl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Zl.apply(this,arguments)},aJ=function(e,t,r){t===void 0&&(t={});var n=t.target,o=t.id,a=t.pagination,i=a===void 0?{page:1,perPage:25}:a,s=t.sort,u=s===void 0?{field:"id",order:"DESC"}:s,l=t.filter,c=l===void 0?{}:l,d=t.meta,p=el(),h=So(),m=pa([e,"getManyReference",{target:n,id:o,pagination:i,sort:u,filter:c,meta:d}],function(){return!n||o==null?Promise.reject(new Error("target and id are required")):p.getManyReference(e,{target:n,id:o,pagination:i,sort:u,filter:c,meta:d}).then(function(y){var x=y.data,b=y.total,v=y.pageInfo;return{data:x,total:b,pageInfo:v}})},Zl({onSuccess:function(y){var x;(x=y==null?void 0:y.data)===null||x===void 0||x.forEach(function(b){h.setQueryData([e,"getOne",{id:String(b.id),meta:d}],function(v){return v??b})})}},r));return f.useMemo(function(){var y,x,b;return m.data?Zl(Zl({},m),{data:(y=m.data)===null||y===void 0?void 0:y.data,total:(x=m.data)===null||x===void 0?void 0:x.total,pageInfo:(b=m.data)===null||b===void 0?void 0:b.pageInfo}):m},[m])},iJ=_n,sJ=function(){return iJ.Date.now()},lJ=sJ,uJ=/\s/;function cJ(e){for(var t=e.length;t--&&uJ.test(e.charAt(t)););return t}var fJ=cJ,dJ=fJ,pJ=/^\s+/;function vJ(e){return e&&e.slice(0,dJ(e)+1).replace(pJ,"")}var hJ=vJ,mJ=hJ,D$=ln,gJ=Kv,B$=0/0,yJ=/^[-+]0x[0-9a-f]+$/i,bJ=/^0b[01]+$/i,xJ=/^0o[0-7]+$/i,wJ=parseInt;function SJ(e){if(typeof e=="number")return e;if(gJ(e))return B$;if(D$(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=D$(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mJ(e);var r=bJ.test(e);return r||xJ.test(e)?wJ(e.slice(2),r?2:8):yJ.test(e)?B$:+e}var _J=SJ,CJ=ln,Tm=lJ,z$=_J,$J="Expected a function",OJ=Math.max,EJ=Math.min;function PJ(e,t,r){var n,o,a,i,s,u,l=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError($J);t=z$(t)||0,CJ(r)&&(c=!!r.leading,d="maxWait"in r,a=d?OJ(z$(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function h(_){var $=n,P=o;return n=o=void 0,l=_,i=e.apply(P,$),i}function m(_){return l=_,s=setTimeout(b,t),c?h(_):i}function y(_){var $=_-u,P=_-l,T=t-$;return d?EJ(T,a-P):T}function x(_){var $=_-u,P=_-l;return u===void 0||$>=t||$<0||d&&P>=a}function b(){var _=Tm();if(x(_))return v(_);s=setTimeout(b,y(_))}function v(_){return s=void 0,p&&n?h(_):(n=o=void 0,i)}function g(){s!==void 0&&clearTimeout(s),l=0,n=u=o=s=void 0}function S(){return s===void 0?i:v(Tm())}function w(){var _=Tm(),$=x(_);if(n=arguments,o=this,u=_,$){if(s===void 0)return m(u);if(d)return clearTimeout(s),s=setTimeout(b,t),h(u)}return s===void 0&&(s=setTimeout(b,t)),i}return w.cancel=g,w.flush=S,w}var TJ=PJ;const YI=Ye(TJ);function U$(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var XI=function(e,t){if(U$(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!U$(e[r[o]],t[r[o]]))return!1;return!0},tp=globalThis&&globalThis.__assign||function(){return tp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tp.apply(this,arguments)},RJ=function(e){return e&&Object.prototype.toString.call(e)==="[object Object]"},kJ=function(e){return e instanceof Date?!1:e===""||e===null||e===void 0||XI(e,{})},JI=function(e){return Object.keys(e).reduce(function(t,r){var n,o=e[r];return RJ(e[r])&&(o=JI(e[r])),kJ(o)?t:tp(tp({},t),(n={},n[r]=o,n))},{})};const Lu=JI;var V$=function(e,t){return Object.keys(e).reduce(function(r,n){var o;return n!==t?Object.assign({},r,(o={},o[n]=e[n],o)):r},{})},ZI=function(e,t){var r,n=t.split(".");if(n.length===1)return V$(e,t);var o=n[0];if(e[o]===void 0)return e;var a=ZI(e[o],n.slice(1).join("."));return Object.keys(a).length===0?V$(e,o):Object.assign({},e,(r={},r[o]=a,r))};const IJ=ZI;var wt=globalThis&&globalThis.__assign||function(){return wt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wt.apply(this,arguments)},eA="SET_SORT",Va="ASC",jy="DESC",My="SET_PAGE",tA="SET_PER_PAGE",Fy="SET_FILTER",rA="SHOW_FILTER",nA="HIDE_FILTER",AJ=function(e){return e===jy?Va:jy},W$=function(e,t){var r;switch(t.type){case eA:return t.payload.field===e.sort?wt(wt({},e),{order:AJ(e.order),page:1}):wt(wt({},e),{sort:t.payload.field,order:t.payload.order||Va,page:1});case My:return wt(wt({},e),{page:t.payload});case tA:return wt(wt({},e),{page:1,perPage:t.payload});case Fy:return wt(wt({},e),{page:1,filter:t.payload.filter,displayedFilters:t.payload.displayedFilters?t.payload.displayedFilters:e.displayedFilters});case rA:return e.displayedFilters&&e.displayedFilters[t.payload.filterName]?e:wt(wt({},e),{filter:typeof t.payload.defaultValue<"u"?mx(e.filter,t.payload.filterName,t.payload.defaultValue):e.filter,displayedFilters:wt(wt({},e.displayedFilters),(r={},r[t.payload.filterName]=!0,r))});case nA:return wt(wt({},e),{filter:Lu(IJ(e.filter,t.payload)),displayedFilters:e.displayedFilters?Object.keys(e.displayedFilters).reduce(function(n,o){var a;return o!==t.payload?wt(wt({},n),(a={},a[o]=!0,a)):n},{}):e.displayedFilters});default:return e}},jJ=function(e,t){switch(t.type){case"SET_SORT":return t.payload;case"SET_SORT_FIELD":{var r=t.payload,n=e.field===r&&e.order===Va?jy:Va;return{field:r,order:n}}case"SET_SORT_ORDER":{var n=t.payload;if(!e.field)throw new Error("cannot change the order on an undefined sort field");return{field:e.field,order:n}}default:return e}},MJ={field:"",order:"ASC"},FJ=function(e){e===void 0&&(e=MJ);var t=f.useReducer(jJ,e),r=t[0],n=t[1],o=f.useRef(!0);return f.useEffect(function(){if(o.current){o.current=!1;return}n({type:"SET_SORT",payload:e})},[e.field,e.order]),{setSort:f.useCallback(function(a){return n({type:"SET_SORT",payload:a})},[n]),setSortField:f.useCallback(function(a){return n({type:"SET_SORT_FIELD",payload:a})},[n]),setSortOrder:f.useCallback(function(a){return n({type:"SET_SORT_ORDER",payload:a})},[n]),sort:r}};const NJ=FJ;var Es=globalThis&&globalThis.__assign||function(){return Es=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Es.apply(this,arguments)},LJ=function(e,t){return Es(Es({},e),t)},DJ={page:1,perPage:25};const BJ=function(e){e===void 0&&(e={});var t=f.useReducer(LJ,Es(Es({},DJ),e)),r=t[0],n=t[1],o=f.useRef(!0),a=f.useCallback(function(s){return n({perPage:s,page:1})},[]),i=f.useCallback(function(s){return n({page:s})},[]);return f.useEffect(function(){if(o.current){o.current=!1;return}a(e.perPage||25)},[e.perPage,a]),{page:r.page,perPage:r.perPage,pagination:r,setPage:i,setPerPage:a,setPagination:n}};var zJ=f.createContext(void 0),UJ=th,VJ=aI,WJ=fc;function HJ(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=UJ(e,i);r(s,i)&&VJ(a,WJ(i,e),s)}return a}var oA=HJ;function qJ(e,t){return e!=null&&t in Object(e)}var GJ=qJ,KJ=fc,QJ=oh,YJ=un,XJ=eh,JJ=Sx,ZJ=Ys;function eZ(e,t,r){t=KJ(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=ZJ(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&JJ(o)&&XJ(i,o)&&(YJ(e)||QJ(e)))}var tZ=eZ,rZ=GJ,nZ=tZ;function oZ(e,t){return e!=null&&nZ(e,t,rZ)}var aA=oZ,aZ=oA,iZ=aA;function sZ(e,t){return aZ(e,t,function(r,n){return iZ(e,n)})}var lZ=sZ,uZ=Ax;function cZ(e){var t=e==null?0:e.length;return t?uZ(e,1):[]}var fZ=cZ,dZ=fZ,pZ=II,vZ=AI;function hZ(e){return vZ(pZ(e,void 0,dZ),e+"")}var mZ=hZ,gZ=lZ,yZ=mZ,bZ=yZ(function(e,t){return e==null?{}:gZ(e,t)}),xZ=bZ;const jx=Ye(xZ);var wZ=function(e){return f.useContext(zJ)},Mx=f.createContext(void 0);Mx.displayName="RecordContext";var Du=function(e){var t=e.children,r=e.value;return f.createElement(Mx.Provider,{value:r},t)},SZ=ch,_Z=qs,CZ=jI,$Z=Zs,iA=Object.prototype,OZ=iA.hasOwnProperty,EZ=SZ(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&CZ(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=$Z(a),s=-1,u=i.length;++s<u;){var l=i[s],c=e[l];(c===void 0||_Z(c,iA[l])&&!OZ.call(e,l))&&(e[l]=a[l])}return e}),PZ=EZ;const pc=Ye(PZ);var Mt=function(e){var t=f.useContext(Mx);return e&&e.record||t},sA=function(e){var t=e.value,r=e.children;return t?f.createElement(Du,{value:t},r):r},lA=`
|
89
|
+
`,Xn={};Xn.isFunction=function(e){var t={};return e&&t.toString.call(e)==="[object Function]"};Xn.isArray=function(e){return Array.isArray(e)};Xn.isObject=function(e){return e instanceof Object};Xn.isString=function(e){return typeof e=="string"};Xn.isNumber=function(e){return typeof e=="number"};Xn.isBoolean=function(e){return typeof e=="boolean"};Xn.isDate=function(e){return e instanceof Date};var TZ=lA,RZ=Xn,kZ=function(t,r){if(!t||!RZ.isArray(t))throw new TypeError('Invalid params "rows" for joinRows. Must be an array of string.');var n=t.join(r||TZ||`
|
90
|
+
`);return n},uA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IZ=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function AZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Rm=Xn,jZ=function(){function e(t){AZ(this,e),this._options=t,this._options.typeHandlers=this._options.typeHandlers||{}}return IZ(e,[{key:"_setHeaders",value:function(r,n){var o=this;return n?r.map(function(a){return a.item=a.item?n+o._options.headerPathString+a.item:n,a}):r}},{key:"castValue",value:function(r,n,o,a){var i=this._options.typeHandlers;for(var s in i)if(NZ(r,s)){r=i[s].call(i,r,o,a);break}return r}},{key:"checkComplex",value:function(r,n){if(Rm.isDate(r))return[{item:n,value:(this._options.handleDate||this._handleDate)(r,n)}];if(Rm.isArray(r)){var o=this._handleArray(r,n);return this._setHeaders(o,n)}else if(Rm.isObject(r)){var a=this._handleObject(r);return this._setHeaders(a,n)}return[{item:n,value:""}]}},{key:"check",value:function(r,n,o,a){switch(r=this.castValue(r,n,o,a),typeof r>"u"?"undefined":uA(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i<r.length;++i){var s=r[i],u=n.check(s,null,i,r);if(u.length!==0){var l=u[0];if(!l.item&&a!==void 0){a.value+=n._options.arrayPathString+l.value;continue}else u.length>0&&!l.item&&a===void 0&&(a=l);o=o.concat(u)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),MZ=jZ,FZ=typeof window>"u"?yn:window;function NZ(e,t){if(e instanceof FZ[t])return!0;switch(typeof e>"u"?"undefined":uA(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var km,H$;function LZ(){return H$||(H$=1,km=function(t,r,n){var o=`
|
91
|
+
`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(o)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(o)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(a,i),(n||s(u))&&(u=t+u+t)),u}}),km}var DZ=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function BZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var q$=kZ,zZ=MZ,G$=Xn,UZ=function(){function e(t){BZ(this,e),this._options=t||{},this._handler=new zZ(this._options),this._headers=this._options.headers||[],this._escape=LZ()(this._options.textDelimiter,this._options.rowDelimiter,this._options.forceTextDelimiter)}return DZ(e,[{key:"parse",value:function(r,n,o){return G$.isArray(r)?n(null,this._parseArray(r,o)):G$.isObject(r)?n(null,this._parseObject(r)):n(new Error("Unable to parse the JSON object, its not an Array or Object."))}},{key:"_checkRows",value:function(r){var n=null,o=[],a=function(m,y){return m===""||m===void 0?n[y]:m},i=!0,s=!1,u=void 0;try{for(var l=r[Symbol.iterator](),c;!(i=(c=l.next()).done);i=!0){var d=c.value,p=this._headers.length-d.length;p>0&&(d=d.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(d=d.map(a)),o.push(d.join(this._options.rowDelimiter)),n=d}}catch(h){s=!0,u=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(x){var b=o._headers.indexOf(x);return b===-1&&(o._headers.push(x),b=o._headers.indexOf(x)),b};i=function(x){var b=[],v=function(M){return b.push(M.map(function(F){return F??""}))},g=function(){return new Array(o._headers.length).fill(null)},S={},w=g(),_=!0,$=!1,P=void 0;try{for(var T=x[Symbol.iterator](),R;!(_=(R=T.next()).done);_=!0){var I=R.value,A=s(I.item);if(w[A]!=null&&(v(w),w=g()),S[A]=S[A]||0,o._options.fillTopRow&&S[A]<b.length){b[S[A]][A]=o._escape(I.value),S[A]+=1;continue}w[A]=o._escape(I.value),S[A]+=1}}catch(L){$=!0,P=L}finally{try{!_&&T.return&&T.return()}finally{if($)throw P}}w.length>0&&v(w),a=a.concat(o._checkRows(b))};var u=!0,l=!1,c=void 0;try{for(var d=r[Symbol.iterator](),p;!(u=(p=d.next()).done);u=!0){var h=p.value,m=o._handler.check(h,o._options.mainPathItem,h,r);i(m)}}catch(y){l=!0,c=y}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),q$(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(d){var p=d.value||d.value===0?d.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var h=[d.item,p];o.push(h.join(n._options.rowDelimiter))}else s[0].push(d.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[u],l+u,u,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),q$(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),VZ=UZ,WZ=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},HZ=WZ,K$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q$=VZ,Y$=HZ,qZ=lA,GZ=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:qZ,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":K$(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":K$(u))==="object"){var l=Object.keys(e),c=Object.keys(u),d=c.every(function(m){return l.includes(m)});c.length>0&&d?r=u:t=u}else t=u}else return new Y$(new Q$(e));var p=Object.assign({},e,r),h=new Q$(p);return t?new Promise(function(m,y){h.parse(t,function(x,b){if(n)return n(x,b);if(x)return y(x);if(y)return m(b)})}):new Y$};const KZ=Ye(GZ),QZ=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var YZ=function(e,t,r,n){return KZ(e,function(o,a){return QZ(a,n)})};const XZ=YZ;var JZ=function(e){return function(t,r,n){return e.getMany(n,{ids:ZZ(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},ZZ=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))};const eee=JZ;var wi=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},cA=function(e){var t="".concat(e,".selectedIds"),r=$n(t,tee),n=r[0],o=r[1],a=Ure(t),i=f.useMemo(function(){return{select:function(s){s&&o(wi([],s,!0))},unselect:function(s){!s||s.length===0||o(function(u){return Array.isArray(u)?u.filter(function(l){return!s.includes(l)}):[]})},toggle:function(s){typeof s>"u"||o(function(u){if(!Array.isArray(u))return wi([],u,!0);var l=u.indexOf(s);return l>-1?wi(wi([],u.slice(0,l),!0),u.slice(l+1),!0):wi(wi([],u,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},tee=[],ree=nh,nee=Ox,oee=1,aee=2;function iee(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=r[o];var u=s[0],l=e[u],c=s[1];if(i&&s[2]){if(l===void 0&&!(u in e))return!1}else{var d=new ree;if(n)var p=n(l,c,u,e,t,d);if(!(p===void 0?nee(c,l,oee|aee,n,d):p))return!1}}return!0}var see=iee,lee=ln;function uee(e){return e===e&&!lee(e)}var fA=uee,cee=fA,fee=lh;function dee(e){for(var t=fee(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,cee(o)]}return t}var pee=dee;function vee(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var dA=vee,hee=see,mee=pee,gee=dA;function yee(e){var t=mee(e);return t.length==1&&t[0][2]?gee(t[0][0],t[0][1]):function(r){return r===e||hee(r,e,t)}}var bee=yee,xee=Ox,wee=sI,See=aA,_ee=fx,Cee=fA,$ee=dA,Oee=Ys,Eee=1,Pee=2;function Tee(e,t){return _ee(e)&&Cee(t)?$ee(Oee(e),t):function(r){var n=wee(r,e);return n===void 0&&n===t?See(r,e):xee(t,n,Eee|Pee)}}var Ree=Tee;function kee(e){return function(t){return t==null?void 0:t[e]}}var Iee=kee,Aee=th;function jee(e){return function(t){return Aee(t,e)}}var Mee=jee,Fee=Iee,Nee=Mee,Lee=fx,Dee=Ys;function Bee(e){return Lee(e)?Fee(Dee(e)):Nee(e)}var zee=Bee,Uee=bee,Vee=Ree,Wee=kx,Hee=un,qee=zee;function Gee(e){return typeof e=="function"?e:e==null?Wee:typeof e=="object"?Hee(e)?Vee(e[0],e[1]):Uee(e):qee(e)}var Kee=Gee,Qee=xx,Yee=Tx,Xee=wx,Jee=pI,Zee=Object.getOwnPropertySymbols,ete=Zee?function(e){for(var t=[];e;)Qee(t,Xee(e)),e=Yee(e);return t}:Jee,pA=ete,tte=dI,rte=pA,nte=Zs;function ote(e){return tte(e,nte,rte)}var vA=ote,ate=hx,ite=Kee,ste=oA,lte=vA;function ute(e,t){if(e==null)return{};var r=ate(lte(e),function(n){return[n]});return t=ite(t),ste(e,r,function(n,o){return t(n,o[0])})}var cte=ute;const fte=Ye(cte);function Ps(e){var t=f.useState(e),r=t[0],n=t[1],o=f.useRef(!1);f.useEffect(function(){return o.current=!0,function(){o.current=!1}},[]);var a=f.useCallback(function(i){if(o.current)return n(i)},[o,n]);return[r,a]}function Fx(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Ps(!1),n=r[0],o=r[1];return f.useEffect(function(){o(!1);var a=setTimeout(function(){o(!0)},e);return function(){clearTimeout(a)}},[t,e,o]),n}function dte(){var e=f.useRef(!0);return f.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var oa=globalThis&&globalThis.__assign||function(){return oa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},oa.apply(this,arguments)},X$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},pte=function(e){var t=e.debounce,r=t===void 0?500:t,n=e.disableSyncWithLocation,o=n===void 0?!1:n,a=e.filterDefaultValues,i=e.perPage,s=i===void 0?10:i,u=e.resource,l=e.sort,c=l===void 0?yte:l,d=e.storeKey,p=d===void 0?"".concat(u,".listParams"):d,h=Cr(),m=Kn(),y=f.useState(tO),x=y[0],b=y[1],v=$n(p||"".concat(u,".listParams"),tO),g=v[0],S=v[1],w=f.useRef(),_=dte(),$=p===!1,P=[h.search,u,p,JSON.stringify(o||$?x:g),JSON.stringify(a),JSON.stringify(c),s,o],T=o?{}:hte(h),R=f.useMemo(function(){return gte({queryFromLocation:T,params:o||$?x:g,filterDefaultValues:a,sort:c,perPage:s})},P);f.useEffect(function(){Object.keys(T).length>0&&!$&&S(R)},[h.search]);var I=f.useCallback(function(H){_.current&&(w.current?w.current=W$(w.current,H):(w.current=W$(R,H),setTimeout(function(){o?b(w.current):m({search:"?".concat(fh.stringify(oa(oa({},w.current),{filter:JSON.stringify(w.current.filter),displayedFilters:JSON.stringify(w.current.displayedFilters)})))},{state:{_scrollToTop:H.type===My}}),w.current=void 0},0)))},X$(X$([],P,!0),[m],!1)),A=f.useCallback(function(H){return I({type:eA,payload:H})},[I]),L=f.useCallback(function(H){return I({type:My,payload:H})},[I]),M=f.useCallback(function(H){return I({type:tA,payload:H})},[I]),F=R.filter||eO,j=R.displayedFilters||eO,B=YI(function(H,K){I({type:Fy,payload:{filter:Lu(H),displayedFilters:K}})},r),k=f.useCallback(function(H,K,J){return J===void 0&&(J=!0),J?B(H,K):I({type:Fy,payload:{filter:Lu(H),displayedFilters:K}})},[I]),N=f.useCallback(function(H){I({type:nA,payload:H})},[I]),z=f.useCallback(function(H,K){I({type:rA,payload:{filterName:H,defaultValue:K}})},[I]);return[oa({displayedFilters:j,filterValues:F,requestSignature:P},R),{changeParams:I,setPage:L,setPerPage:M,setSort:A,setFilters:k,hideFilter:N,showFilter:z}]},vte=["page","perPage","sort","order","filter","displayedFilters"],J$=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},hte=function(e){var t=e.search,r=fte(fh.parse(t),function(n,o){return vte.indexOf(o)!==-1});return J$(r,"filter"),J$(r,"displayedFilters"),r},mte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},gte=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:mte(r)?oa({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),oa(oa({},i),{page:Z$(i.page,1),perPage:Z$(i.perPage,10)})},Z$=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},eO={},yte={field:"id",order:Va},tO={},Nx=f.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});Nx.displayName="ListContext";var hA=f.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),bte=function(e){return f.useMemo(function(){return jx(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};hA.displayName="ListFilterContext";var mA=f.createContext({sort:null,setSort:null,resource:null}),xte=function(e){return f.useMemo(function(){return jx(e,["sort","setSort","resource"])},[e.sort,e.setSort])};mA.displayName="ListSortContext";var Lx=f.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});Lx.displayName="ListPaginationContext";var wte=function(e){return f.useMemo(function(){return jx(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},gA=function(e){var t=e.value,r=e.children;return f.createElement(Nx.Provider,{value:t},f.createElement(hA.Provider,{value:bte(t)},f.createElement(mA.Provider,{value:xte(t)},f.createElement(Lx.Provider,{value:wte(t)},r))))},Wa=globalThis&&globalThis.__assign||function(){return Wa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wa.apply(this,arguments)},Ste=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},_te=function(e){e===void 0&&(e={});var t=e.debounce,r=t===void 0?500:t,n=e.disableAuthentication,o=e.disableSyncWithLocation,a=e.exporter,i=a===void 0?XZ:a,s=e.filter,u=e.filterDefaultValues,l=e.perPage,c=l===void 0?10:l,d=e.queryOptions,p=d===void 0?{}:d,h=e.sort,m=h===void 0?Cte:h,y=e.storeKey;gh({enabled:!n});var x=xt(e),b=p.meta,v=Ste(p,["meta"]);if(!x)throw new Error("<List> was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&f.isValidElement(s))throw new Error("<List> received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var g=xe(),S=Br(),w=pte({debounce:r,disableSyncWithLocation:o,filterDefaultValues:u,perPage:c,resource:x,sort:m,storeKey:y}),_=w[0],$=w[1],P=cA(x),T=P[0],R=P[1],I=dX(x,{pagination:{page:_.page,perPage:_.perPage},sort:{field:_.sort,order:_.order},filter:Wa(Wa({},_.filter),s),meta:b},Wa({keepPreviousData:!0,retry:!1,onError:function(K){return S((K==null?void 0:K.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:K==null?void 0:K.message}})}},v)),A=I.data,L=I.pageInfo,M=I.total,F=I.error,j=I.isLoading,B=I.isFetching,k=I.refetch;f.useEffect(function(){if(_.page<=0||!B&&_.page>1&&(A==null||(A==null?void 0:A.length)===0)){$.setPage(1);return}if(M!=null){var K=Math.ceil(M/_.perPage)||1;!B&&_.page>K&&$.setPage(K)}},[B,_.page,_.perPage,A,$,M]);var N=f.useMemo(function(){return{field:_.sort,order:_.order}},[_.sort,_.order]),z=mh(),H=g("ra.page.list",{name:z(x,2)});return{sort:N,data:A,defaultTitle:H,displayedFilters:_.displayedFilters,error:F,exporter:i,filter:s,filterValues:_.filterValues,hideFilter:$.hideFilter,isFetching:B,isLoading:j,onSelect:R.select,onToggleItem:R.toggle,onUnselectItems:R.clearSelection,page:_.page,perPage:_.perPage,refetch:k,resource:x,selectedIds:T,setFilters:$.setFilters,setPage:$.setPage,setPerPage:$.setPerPage,setSort:$.setSort,showFilter:$.showFilter,total:M,hasNextPage:L?L.hasNextPage:M!=null?_.page*_.perPage<M:void 0,hasPreviousPage:L?L.hasPreviousPage:_.page>1}},Cte={field:"id",order:Va},$te=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Bu=function(e){return Object.keys(e).filter(function(t){return!$te.includes(t)}).reduce(function(t,r){var n;return Wa(Wa({},t),(n={},n[r]=e[r],n))},{})},Ote=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ete=function(e){var t=e.children,r=Ote(e,["children"]);return f.createElement(Oc,{value:r.resource},f.createElement(gA,{value:_te(r)},t))},rf=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Pte=function(e,t,r){r===void 0&&(r=!1);var n=$n("".concat(e,".datagrid.expanded"),[]),o=n[0],a=n[1],i=Array.isArray(o)?o.map(function(u){return u==t}).indexOf(!0)!==-1:!1,s=f.useCallback(function(){a(function(u){if(!Array.isArray(u))return[t];var l=u.findIndex(function(c){return c==t});return l>-1?r?[]:rf(rf([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:rf(rf([],u,!0),[t],!1)})},[a,t,r]);return[i,s]},Tte=function(e,t){var r=$n("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=f.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},zr=function(e){var t=f.useContext(Nx);return f.useMemo(function(){return pc({},e!=null?Rte(e):{},t)},[t,e])},Rte=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,u=e.hideFilter,l=e.isFetching,c=e.isLoading,d=e.onSelect,p=e.onToggleItem,h=e.onUnselectItems,m=e.page,y=e.perPage,x=e.refetch,b=e.resource,v=e.selectedIds,g=e.setFilters,S=e.setPage,w=e.setPerPage,_=e.setSort,$=e.showFilter,P=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:u,isFetching:l,isLoading:c,onSelect:d,onToggleItem:p,onUnselectItems:h,page:m,perPage:y,refetch:x,resource:b,selectedIds:v,setFilters:g,setPage:S,setPerPage:w,setSort:_,showFilter:$,total:P}},kte=function(e){var t=f.useContext(Lx);return f.useMemo(function(){return pc({},e!=null?Ite(e):{},t)},[t,e])},Ite=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,u=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:u,resource:l}},Gi=globalThis&&globalThis.__assign||function(){return Gi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gi.apply(this,arguments)},rO=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ate={},jte=function(e){var t=e.debounce,r=t===void 0?500:t,n=e.reference,o=e.record,a=e.target,i=e.filter,s=i===void 0?Ate:i,u=e.source,l=e.page,c=e.perPage,d=e.sort,p=d===void 0?{field:"id",order:"DESC"}:d,h=Br(),m=xt(e),y=BJ({page:l,perPage:c}),x=y.page,b=y.setPage,v=y.perPage,g=y.setPerPage,S=NJ(p),w=S.sort,_=S.setSort,$=f.useCallback(function(ue){_(ue),b(1)},[b,_]),P=cA("".concat(m,".").concat(o==null?void 0:o.id,".").concat(n)),T=P[0],R=P[1],I=f.useRef(s),A=Ps({}),L=A[0],M=A[1],F=Ps(s),j=F[0],B=F[1],k=f.useCallback(function(ue){M(function(se){var ye=se,ie=ue;ye[ie];var Pe=rO(ye,[typeof ie=="symbol"?ie:ie+""]);return Pe}),B(function(se){var ye=se,ie=ue;ye[ie];var Pe=rO(ye,[typeof ie=="symbol"?ie:ie+""]);return Pe})},[M,B]),N=f.useCallback(function(ue,se){M(function(ye){var ie;return Gi(Gi({},ye),(ie={},ie[ue]=!0,ie))}),B(function(ye){var ie;return Gi(Gi({},ye),(ie={},ie[ue]=se,ie))})},[M,B]),z=f.useCallback(YI(function(ue,se){B(Lu(ue)),M(se),b(1)},r),[M,B,b]),H=f.useCallback(function(ue,se,ye){ye===void 0&&(ye=!0),ye?z(ue,se):(B(Lu(ue)),M(se),b(1))},[M,B,b,z]);f.useEffect(function(){zn(s,I.current)||(I.current=s,B(s))});var K=aJ(n,{target:a,id:We(o,u),pagination:{page:x,perPage:v},sort:w,filter:j},{enabled:We(o,u)!=null,keepPreviousData:!0,onError:function(ue){return h(typeof ue=="string"?ue:ue.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ue=="string"?ue:ue&&ue.message?ue.message:void 0}})}}),J=K.data,te=K.total,ae=K.pageInfo,fe=K.error,Se=K.isFetching,_e=K.isLoading,he=K.refetch;return{sort:w,data:J,defaultTitle:null,displayedFilters:L,error:fe,filterValues:j,hideFilter:k,isFetching:Se,isLoading:_e,onSelect:R.select,onToggleItem:R.toggle,onUnselectItems:R.clearSelection,page:x,perPage:v,refetch:he,resource:n,selectedIds:T,setFilters:H,setPage:b,setPerPage:g,hasNextPage:ae?ae.hasNextPage:te!=null?x*v<te:void 0,hasPreviousPage:ae?ae.hasPreviousPage:x>1,setSort:$,showFilter:N,total:te}},vc=e=>e.type==="checkbox",Ki=e=>e instanceof Date,or=e=>e==null;const yA=e=>typeof e=="object";var Pt=e=>!or(e)&&!Array.isArray(e)&&yA(e)&&!Ki(e),bA=e=>Pt(e)&&e.target?vc(e.target)?e.target.checked:e.target.value:e,Mte=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,xA=(e,t)=>e.has(Mte(t)),Fte=e=>{const t=e.constructor&&e.constructor.prototype;return Pt(t)&&t.hasOwnProperty("isPrototypeOf")},Dx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pr(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Dx&&(e instanceof Blob||e instanceof FileList))&&(r||Pt(e)))if(t=r?[]:{},!r&&!Fte(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=pr(e[n]));else return e;return t}var hc=e=>Array.isArray(e)?e.filter(Boolean):[],ft=e=>e===void 0,ne=(e,t,r)=>{if(!t||!Pt(e))return r;const n=hc(t.split(/[,[\].]+?/)).reduce((o,a)=>or(o)?o:o[a],e);return ft(n)||n===e?ft(e[t])?r:e[t]:n},hn=e=>typeof e=="boolean";const rp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},gn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},eo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wA=G.createContext(null),mc=()=>G.useContext(wA),SA=e=>{const{children:t,...r}=e;return G.createElement(wA.Provider,{value:r},t)};var _A=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==gn.all&&(t._proxyFormState[i]=!n||gn.all),r&&(r[i]=!0),e[i]}});return o},Hr=e=>Pt(e)&&!Object.keys(e).length,CA=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Hr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||gn.all))},Uf=e=>Array.isArray(e)?e:[e],$A=(e,t,r)=>!e||!t||e===t||Uf(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Bx(e){const t=G.useRef(e);t.current=e,G.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function zx(e){const t=mc(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=G.useState(r._formState),u=G.useRef(!0),l=G.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=G.useRef(o);return c.current=o,Bx({disabled:n,next:d=>u.current&&$A(c.current,d.name,a)&&CA(d,l.current,r._updateFormState)&&s({...r._formState,...d}),subject:r._subjects.state}),G.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),_A(i,r,l.current,!1)}var Fn=e=>typeof e=="string",OA=(e,t,r,n,o)=>Fn(e)?(n&&t.watch.add(e),ne(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),ne(r,a))):(n&&(t.watchAll=!0),r);function Nte(e){const t=mc(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=G.useRef(n);s.current=n,Bx({disabled:a,subject:r._subjects.values,next:c=>{$A(s.current,c.name,i)&&l(pr(OA(s.current,r._names,c.values||r._formValues,!1,o)))}});const[u,l]=G.useState(r._getWatch(n,o));return G.useEffect(()=>r._removeUnmounted()),u}var Ux=e=>/^\w*$/.test(e),EA=e=>hc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ge=(e,t,r)=>{let n=-1;const o=Ux(t)?[t]:EA(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let u=r;if(n!==i){const l=e[s];u=Pt(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}e[s]=u,e=e[s]}return e};function Lte(e){const t=mc(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a}=e,i=xA(o._names.array,r),s=Nte({control:o,name:r,defaultValue:ne(o._formValues,r,ne(o._defaultValues,r,e.defaultValue)),exact:!0}),u=zx({control:o,name:r}),l=G.useRef(o.register(r,{...e.rules,value:s,...hn(e.disabled)?{disabled:e.disabled}:{}}));return G.useEffect(()=>{const c=o._options.shouldUnregister||a,d=(p,h)=>{const m=ne(o._fields,p);m&&(m._f.mount=h)};if(d(r,!0),c){const p=pr(ne(o._options.defaultValues,r));Ge(o._defaultValues,r,p),ft(ne(o._formValues,r))&&Ge(o._formValues,r,p)}return()=>{(i?c&&!o._state.action:c)?o.unregister(r):d(r,!1)}},[r,o,i,a]),G.useEffect(()=>{ne(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:ne(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...hn(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:G.useCallback(c=>l.current.onChange({target:{value:bA(c),name:r},type:rp.CHANGE}),[r]),onBlur:G.useCallback(()=>l.current.onBlur({target:{value:ne(o._formValues,r),name:r},type:rp.BLUR}),[r,o]),ref:c=>{const d=ne(o._fields,r);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ne(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ne(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ne(u.touchedFields,r)},error:{enumerable:!0,get:()=>ne(u.errors,r)}})}}var Dte=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},nO=e=>({isOnSubmit:!e||e===gn.onSubmit,isOnBlur:e===gn.onBlur,isOnChange:e===gn.onChange,isOnAll:e===gn.all,isOnTouch:e===gn.onTouched}),oO=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const eu=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=ne(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;eu(s,t)}else Pt(s)&&eu(s,t)}}};var Bte=(e,t,r)=>{const n=hc(ne(e,r));return Ge(n,"root",t[r]),Ge(e,r,n),e},Vx=e=>e.type==="file",Ho=e=>typeof e=="function",np=e=>{if(!Dx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Vf=e=>Fn(e),Wx=e=>e.type==="radio",op=e=>e instanceof RegExp;const aO={value:!1,isValid:!1},iO={value:!0,isValid:!0};var PA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ft(e[0].attributes.value)?ft(e[0].value)||e[0].value===""?iO:{value:e[0].value,isValid:!0}:iO:aO}return aO};const sO={isValid:!1,value:null};var TA=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,sO):sO;function lO(e,t,r="validate"){if(Vf(e)||Array.isArray(e)&&e.every(Vf)||hn(e)&&!e)return{type:r,message:Vf(e)?e:"",ref:t}}var Si=e=>Pt(e)&&!op(e)?e:{value:e,message:""},uO=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:u,minLength:l,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:y,mount:x,disabled:b}=e._f,v=ne(t,m);if(!x||b)return{};const g=i?i[0]:a,S=A=>{n&&g.reportValidity&&(g.setCustomValidity(hn(A)?"":A||""),g.reportValidity())},w={},_=Wx(a),$=vc(a),P=_||$,T=(y||Vx(a))&&ft(a.value)&&ft(v)||np(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,R=Dte.bind(null,m,r,w),I=(A,L,M,F=eo.maxLength,j=eo.minLength)=>{const B=A?L:M;w[m]={type:A?F:j,message:B,ref:a,...R(A?F:j,B)}};if(o?!Array.isArray(v)||!v.length:s&&(!P&&(T||or(v))||hn(v)&&!v||$&&!PA(i).isValid||_&&!TA(i).isValid)){const{value:A,message:L}=Vf(s)?{value:!!s,message:s}:Si(s);if(A&&(w[m]={type:eo.required,message:L,ref:g,...R(eo.required,L)},!r))return S(L),w}if(!T&&(!or(c)||!or(d))){let A,L;const M=Si(d),F=Si(c);if(!or(v)&&!isNaN(v)){const j=a.valueAsNumber||v&&+v;or(M.value)||(A=j>M.value),or(F.value)||(L=j<F.value)}else{const j=a.valueAsDate||new Date(v),B=z=>new Date(new Date().toDateString()+" "+z),k=a.type=="time",N=a.type=="week";Fn(M.value)&&v&&(A=k?B(v)>B(M.value):N?v>M.value:j>new Date(M.value)),Fn(F.value)&&v&&(L=k?B(v)<B(F.value):N?v<F.value:j<new Date(F.value))}if((A||L)&&(I(!!A,M.message,F.message,eo.max,eo.min),!r))return S(w[m].message),w}if((u||l)&&!T&&(Fn(v)||o&&Array.isArray(v))){const A=Si(u),L=Si(l),M=!or(A.value)&&v.length>+A.value,F=!or(L.value)&&v.length<+L.value;if((M||F)&&(I(M,A.message,L.message),!r))return S(w[m].message),w}if(p&&!T&&Fn(v)){const{value:A,message:L}=Si(p);if(op(A)&&!v.match(A)&&(w[m]={type:eo.pattern,message:L,ref:a,...R(eo.pattern,L)},!r))return S(L),w}if(h){if(Ho(h)){const A=await h(v,t),L=lO(A,g);if(L&&(w[m]={...L,...R(eo.validate,L.message)},!r))return S(L.message),w}else if(Pt(h)){let A={};for(const L in h){if(!Hr(A)&&!r)break;const M=lO(await h[L](v,t),g,L);M&&(A={...M,...R(L,M.message)},S(M.message),r&&(w[m]=A))}if(!Hr(A)&&(w[m]={ref:g,...A},!r))return w}}return S(!0),w};function zte(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ft(e)?n++:e[t[n++]];return e}function Ute(e){for(const t in e)if(e.hasOwnProperty(t)&&!ft(e[t]))return!1;return!0}function Lt(e,t){const r=Array.isArray(t)?t:Ux(t)?[t]:EA(t),n=r.length===1?e:zte(e,r),o=r.length-1,a=r[o];return n&&delete n[a],o!==0&&(Pt(n)&&Hr(n)||Array.isArray(n)&&Ute(n))&&Lt(e,r.slice(0,-1)),e}var Im=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},ap=e=>or(e)||!yA(e);function Na(e,t){if(ap(e)||ap(t))return e===t;if(Ki(e)&&Ki(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(Ki(a)&&Ki(i)||Pt(a)&&Pt(i)||Array.isArray(a)&&Array.isArray(i)?!Na(a,i):a!==i)return!1}}return!0}var RA=e=>e.type==="select-multiple",Vte=e=>Wx(e)||vc(e),Am=e=>np(e)&&e.isConnected,kA=e=>{for(const t in e)if(Ho(e[t]))return!0;return!1};function ip(e,t={}){const r=Array.isArray(e);if(Pt(e)||r)for(const n in e)Array.isArray(e[n])||Pt(e[n])&&!kA(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ip(e[n],t[n])):or(e[n])||(t[n]=!0);return t}function IA(e,t,r){const n=Array.isArray(e);if(Pt(e)||n)for(const o in e)Array.isArray(e[o])||Pt(e[o])&&!kA(e[o])?ft(t)||ap(r[o])?r[o]=Array.isArray(e[o])?ip(e[o],[]):{...ip(e[o])}:IA(e[o],or(t)?{}:t[o],r[o]):r[o]=!Na(e[o],t[o]);return r}var nf=(e,t)=>IA(e,t,ip(t)),AA=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ft(e)?e:t?e===""?NaN:e&&+e:r&&Fn(e)?new Date(e):n?n(e):e;function jm(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Vx(t)?t.files:Wx(t)?TA(e.refs).value:RA(t)?[...t.selectedOptions].map(({value:r})=>r):vc(t)?PA(e.refs).value:AA(ft(t.value)?e.ref.value:t.value,e)}var Wte=(e,t,r,n)=>{const o={};for(const a of e){const i=ne(t,a);i&&Ge(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},wl=e=>ft(e)?e:op(e)?e.source:Pt(e)?op(e.value)?e.value.source:e.value:e,Hte=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function cO(e,t,r){const n=ne(e,r);if(n||Ux(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=ne(t,a),s=ne(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var qte=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Gte=(e,t)=>!hc(ne(e,t)).length&&Lt(e,t);const Kte={mode:gn.onSubmit,reValidateMode:gn.onChange,shouldFocusError:!0};function Qte(e={},t){let r={...Kte,...e},n={submitCount:0,isDirty:!1,isLoading:Ho(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},a=Pt(r.values)||Pt(r.defaultValues)?pr(r.values||r.defaultValues)||{}:{},i=r.shouldUnregister?{}:pr(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Im(),array:Im(),state:Im()},h=nO(r.mode),m=nO(r.reValidateMode),y=r.criteriaMode===gn.all,x=D=>V=>{clearTimeout(c),c=setTimeout(D,V)},b=async D=>{if(d.isValid||D){const V=r.resolver?Hr((await T()).errors):await I(o,!0);V!==n.isValid&&p.state.next({isValid:V})}},v=D=>d.isValidating&&p.state.next({isValidating:D}),g=(D,V=[],W,re,Y=!0,q=!0)=>{if(re&&W){if(s.action=!0,q&&Array.isArray(ne(o,D))){const oe=W(ne(o,D),re.argA,re.argB);Y&&Ge(o,D,oe)}if(q&&Array.isArray(ne(n.errors,D))){const oe=W(ne(n.errors,D),re.argA,re.argB);Y&&Ge(n.errors,D,oe),Gte(n.errors,D)}if(d.touchedFields&&q&&Array.isArray(ne(n.touchedFields,D))){const oe=W(ne(n.touchedFields,D),re.argA,re.argB);Y&&Ge(n.touchedFields,D,oe)}d.dirtyFields&&(n.dirtyFields=nf(a,i)),p.state.next({name:D,isDirty:L(D,V),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ge(i,D,V)},S=(D,V)=>{Ge(n.errors,D,V),p.state.next({errors:n.errors})},w=D=>{n.errors=D,p.state.next({errors:n.errors,isValid:!1})},_=(D,V,W,re)=>{const Y=ne(o,D);if(Y){const q=ne(i,D,ft(W)?ne(a,D):W);ft(q)||re&&re.defaultChecked||V?Ge(i,D,V?q:jm(Y._f)):j(D,q),s.mount&&b()}},$=(D,V,W,re,Y)=>{let q=!1,oe=!1;const $e={name:D},Me=!!(ne(o,D)&&ne(o,D)._f.disabled);if(!W||re){d.isDirty&&(oe=n.isDirty,n.isDirty=$e.isDirty=L(),q=oe!==$e.isDirty);const Oe=Me||Na(ne(a,D),V);oe=!!(!Me&&ne(n.dirtyFields,D)),Oe||Me?Lt(n.dirtyFields,D):Ge(n.dirtyFields,D,!0),$e.dirtyFields=n.dirtyFields,q=q||d.dirtyFields&&oe!==!Oe}if(W){const Oe=ne(n.touchedFields,D);Oe||(Ge(n.touchedFields,D,W),$e.touchedFields=n.touchedFields,q=q||d.touchedFields&&Oe!==W)}return q&&Y&&p.state.next($e),q?$e:{}},P=(D,V,W,re)=>{const Y=ne(n.errors,D),q=d.isValid&&hn(V)&&n.isValid!==V;if(e.delayError&&W?(l=x(()=>S(D,W)),l(e.delayError)):(clearTimeout(c),l=null,W?Ge(n.errors,D,W):Lt(n.errors,D)),(W?!Na(Y,W):Y)||!Hr(re)||q){const oe={...re,...q&&hn(V)?{isValid:V}:{},errors:n.errors,name:D};n={...n,...oe},p.state.next(oe)}v(!1)},T=async D=>r.resolver(i,r.context,Wte(D||u.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),R=async D=>{const{errors:V}=await T(D);if(D)for(const W of D){const re=ne(V,W);re?Ge(n.errors,W,re):Lt(n.errors,W)}else n.errors=V;return V},I=async(D,V,W={valid:!0})=>{for(const re in D){const Y=D[re];if(Y){const{_f:q,...oe}=Y;if(q){const $e=u.array.has(q.name),Me=await uO(Y,i,y,r.shouldUseNativeValidation&&!V,$e);if(Me[q.name]&&(W.valid=!1,V))break;!V&&(ne(Me,q.name)?$e?Bte(n.errors,Me,q.name):Ge(n.errors,q.name,Me[q.name]):Lt(n.errors,q.name))}oe&&await I(oe,V,W)}}return W.valid},A=()=>{for(const D of u.unMount){const V=ne(o,D);V&&(V._f.refs?V._f.refs.every(W=>!Am(W)):!Am(V._f.ref))&&Se(D)}u.unMount=new Set},L=(D,V)=>(D&&V&&Ge(i,D,V),!Na(K(),a)),M=(D,V,W)=>OA(D,u,{...s.mount?i:ft(V)?a:Fn(D)?{[D]:V}:V},W,V),F=D=>hc(ne(s.mount?i:a,D,e.shouldUnregister?ne(a,D,[]):[])),j=(D,V,W={})=>{const re=ne(o,D);let Y=V;if(re){const q=re._f;q&&(!q.disabled&&Ge(i,D,AA(V,q)),Y=np(q.ref)&&or(V)?"":V,RA(q.ref)?[...q.ref.options].forEach(oe=>oe.selected=Y.includes(oe.value)):q.refs?vc(q.ref)?q.refs.length>1?q.refs.forEach(oe=>(!oe.defaultChecked||!oe.disabled)&&(oe.checked=Array.isArray(Y)?!!Y.find($e=>$e===oe.value):Y===oe.value)):q.refs[0]&&(q.refs[0].checked=!!Y):q.refs.forEach(oe=>oe.checked=oe.value===Y):Vx(q.ref)?q.ref.value="":(q.ref.value=Y,q.ref.type||p.values.next({name:D,values:{...i}})))}(W.shouldDirty||W.shouldTouch)&&$(D,Y,W.shouldTouch,W.shouldDirty,!0),W.shouldValidate&&H(D)},B=(D,V,W)=>{for(const re in V){const Y=V[re],q=`${D}.${re}`,oe=ne(o,q);(u.array.has(D)||!ap(Y)||oe&&!oe._f)&&!Ki(Y)?B(q,Y,W):j(q,Y,W)}},k=(D,V,W={})=>{const re=ne(o,D),Y=u.array.has(D),q=pr(V);Ge(i,D,q),Y?(p.array.next({name:D,values:{...i}}),(d.isDirty||d.dirtyFields)&&W.shouldDirty&&p.state.next({name:D,dirtyFields:nf(a,i),isDirty:L(D,q)})):re&&!re._f&&!or(q)?B(D,q,W):j(D,q,W),oO(D,u)&&p.state.next({...n}),p.values.next({name:D,values:{...i}}),!s.mount&&t()},N=async D=>{const V=D.target;let W=V.name,re=!0;const Y=ne(o,W),q=()=>V.type?jm(Y._f):bA(D),oe=$e=>{re=Number.isNaN($e)||$e===ne(i,W,$e)};if(Y){let $e,Me;const Oe=q(),me=D.type===rp.BLUR||D.type===rp.FOCUS_OUT,pt=!Hte(Y._f)&&!r.resolver&&!ne(n.errors,W)&&!Y._f.deps||qte(me,ne(n.touchedFields,W),n.isSubmitted,m,h),Or=oO(W,u,me);Ge(i,W,Oe),me?(Y._f.onBlur&&Y._f.onBlur(D),l&&l(0)):Y._f.onChange&&Y._f.onChange(D);const rr=$(W,Oe,me,!1),ge=!Hr(rr)||Or;if(!me&&p.values.next({name:W,type:D.type,values:{...i}}),pt)return d.isValid&&b(),ge&&p.state.next({name:W,...Or?{}:rr});if(!me&&Or&&p.state.next({...n}),v(!0),r.resolver){const{errors:Ne}=await T([W]);if(oe(Oe),re){const et=cO(n.errors,o,W),cr=cO(Ne,o,et.name||W);$e=cr.error,W=cr.name,Me=Hr(Ne)}}else $e=(await uO(Y,i,y,r.shouldUseNativeValidation))[W],oe(Oe),re&&($e?Me=!1:d.isValid&&(Me=await I(o,!0)));re&&(Y._f.deps&&H(Y._f.deps),P(W,Me,$e,rr))}},z=(D,V)=>{if(ne(n.errors,V)&&D.focus)return D.focus(),1},H=async(D,V={})=>{let W,re;const Y=Uf(D);if(v(!0),r.resolver){const q=await R(ft(D)?D:Y);W=Hr(q),re=D?!Y.some(oe=>ne(q,oe)):W}else D?(re=(await Promise.all(Y.map(async q=>{const oe=ne(o,q);return await I(oe&&oe._f?{[q]:oe}:oe)}))).every(Boolean),!(!re&&!n.isValid)&&b()):re=W=await I(o);return p.state.next({...!Fn(D)||d.isValid&&W!==n.isValid?{}:{name:D},...r.resolver||!D?{isValid:W}:{},errors:n.errors,isValidating:!1}),V.shouldFocus&&!re&&eu(o,z,D?Y:u.mount),re},K=D=>{const V={...a,...s.mount?i:{}};return ft(D)?V:Fn(D)?ne(V,D):D.map(W=>ne(V,W))},J=(D,V)=>({invalid:!!ne((V||n).errors,D),isDirty:!!ne((V||n).dirtyFields,D),isTouched:!!ne((V||n).touchedFields,D),error:ne((V||n).errors,D)}),te=D=>{D&&Uf(D).forEach(V=>Lt(n.errors,V)),p.state.next({errors:D?n.errors:{}})},ae=(D,V,W)=>{const re=(ne(o,D,{_f:{}})._f||{}).ref;Ge(n.errors,D,{...V,ref:re}),p.state.next({name:D,errors:n.errors,isValid:!1}),W&&W.shouldFocus&&re&&re.focus&&re.focus()},fe=(D,V)=>Ho(D)?p.values.subscribe({next:W=>D(M(void 0,V),W)}):M(D,V,!0),Se=(D,V={})=>{for(const W of D?Uf(D):u.mount)u.mount.delete(W),u.array.delete(W),V.keepValue||(Lt(o,W),Lt(i,W)),!V.keepError&&Lt(n.errors,W),!V.keepDirty&&Lt(n.dirtyFields,W),!V.keepTouched&&Lt(n.touchedFields,W),!r.shouldUnregister&&!V.keepDefaultValue&&Lt(a,W);p.values.next({values:{...i}}),p.state.next({...n,...V.keepDirty?{isDirty:L()}:{}}),!V.keepIsValid&&b()},_e=({disabled:D,name:V,field:W,fields:re,value:Y})=>{if(hn(D)){const q=D?void 0:ft(Y)?jm(W?W._f:ne(re,V)._f):Y;Ge(i,V,q),$(V,q,!1,!1,!0)}},he=(D,V={})=>{let W=ne(o,D);const re=hn(V.disabled);return Ge(o,D,{...W||{},_f:{...W&&W._f?W._f:{ref:{name:D}},name:D,mount:!0,...V}}),u.mount.add(D),W?_e({field:W,disabled:V.disabled,name:D,value:V.value}):_(D,!0,V.value),{...re?{disabled:V.disabled}:{},...r.progressive?{required:!!V.required,min:wl(V.min),max:wl(V.max),minLength:wl(V.minLength),maxLength:wl(V.maxLength),pattern:wl(V.pattern)}:{},name:D,onChange:N,onBlur:N,ref:Y=>{if(Y){he(D,V),W=ne(o,D);const q=ft(Y.value)&&Y.querySelectorAll&&Y.querySelectorAll("input,select,textarea")[0]||Y,oe=Vte(q),$e=W._f.refs||[];if(oe?$e.find(Me=>Me===q):q===W._f.ref)return;Ge(o,D,{_f:{...W._f,...oe?{refs:[...$e.filter(Am),q,...Array.isArray(ne(a,D))?[{}]:[]],ref:{type:q.type,name:D}}:{ref:q}}}),_(D,!1,void 0,q)}else W=ne(o,D,{}),W._f&&(W._f.mount=!1),(r.shouldUnregister||V.shouldUnregister)&&!(xA(u.array,D)&&s.action)&&u.unMount.add(D)}}},ue=()=>r.shouldFocusError&&eu(o,z,u.mount),se=D=>{hn(D)&&(p.state.next({disabled:D}),eu(o,(V,W)=>{let re=D;const Y=ne(o,W);Y&&hn(Y._f.disabled)&&(re||(re=Y._f.disabled)),V.disabled=re},0,!1))},ye=(D,V)=>async W=>{let re;W&&(W.preventDefault&&W.preventDefault(),W.persist&&W.persist());let Y=pr(i);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:q,values:oe}=await T();n.errors=q,Y=oe}else await I(o);if(Lt(n.errors,"root"),Hr(n.errors)){p.state.next({errors:{}});try{await D(Y,W)}catch(q){re=q}}else V&&await V({...n.errors},W),ue(),setTimeout(ue);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Hr(n.errors)&&!re,submitCount:n.submitCount+1,errors:n.errors}),re)throw re},ie=(D,V={})=>{ne(o,D)&&(ft(V.defaultValue)?k(D,pr(ne(a,D))):(k(D,V.defaultValue),Ge(a,D,pr(V.defaultValue))),V.keepTouched||Lt(n.touchedFields,D),V.keepDirty||(Lt(n.dirtyFields,D),n.isDirty=V.defaultValue?L(D,pr(ne(a,D))):L()),V.keepError||(Lt(n.errors,D),d.isValid&&b()),p.state.next({...n}))},Pe=(D,V={})=>{const W=D?pr(D):a,re=pr(W),Y=D&&!Hr(D)?re:a;if(V.keepDefaultValues||(a=W),!V.keepValues){if(V.keepDirtyValues)for(const q of u.mount)ne(n.dirtyFields,q)?Ge(Y,q,ne(i,q)):k(q,ne(Y,q));else{if(Dx&&ft(D))for(const q of u.mount){const oe=ne(o,q);if(oe&&oe._f){const $e=Array.isArray(oe._f.refs)?oe._f.refs[0]:oe._f.ref;if(np($e)){const Me=$e.closest("form");if(Me){Me.reset();break}}}}o={}}i=e.shouldUnregister?V.keepDefaultValues?pr(a):{}:pr(Y),p.array.next({values:{...Y}}),p.values.next({values:{...Y}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!V.keepIsValid||!!V.keepDirtyValues,s.watch=!!e.shouldUnregister,p.state.next({submitCount:V.keepSubmitCount?n.submitCount:0,isDirty:V.keepDirty?n.isDirty:!!(V.keepDefaultValues&&!Na(D,a)),isSubmitted:V.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V.keepDirtyValues?V.keepDefaultValues&&i?nf(a,i):n.dirtyFields:V.keepDefaultValues&&D?nf(a,D):{},touchedFields:V.keepTouched?n.touchedFields:{},errors:V.keepErrors?n.errors:{},isSubmitSuccessful:V.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Re=(D,V)=>Pe(Ho(D)?D(i):D,V);return{control:{register:he,unregister:Se,getFieldState:J,handleSubmit:ye,setError:ae,_executeSchema:T,_getWatch:M,_getDirty:L,_updateValid:b,_removeUnmounted:A,_updateFieldArray:g,_updateDisabledField:_e,_getFieldArray:F,_reset:Pe,_resetDefaultValues:()=>Ho(r.defaultValues)&&r.defaultValues().then(D=>{Re(D,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:D=>{n={...n,...D}},_disableForm:se,_subjects:p,_proxyFormState:d,_setErrors:w,get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(D){s=D},get _defaultValues(){return a},get _names(){return u},set _names(D){u=D},get _formState(){return n},set _formState(D){n=D},get _options(){return r},set _options(D){r={...r,...D}}},trigger:H,register:he,handleSubmit:ye,watch:fe,setValue:k,getValues:K,reset:Re,resetField:ie,clearErrors:te,unregister:Se,setError:ae,setFocus:(D,V={})=>{const W=ne(o,D),re=W&&W._f;if(re){const Y=re.refs?re.refs[0]:re.ref;Y.focus&&(Y.focus(),V.shouldSelect&&Y.select())}},getFieldState:J}}function jA(e={}){const t=G.useRef(),r=G.useRef(),[n,o]=G.useState({isDirty:!1,isValidating:!1,isLoading:Ho(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ho(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Qte(e,()=>o(i=>({...i}))),formState:n});const a=t.current.control;return a._options=e,Bx({subject:a._subjects.state,next:i=>{CA(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),G.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),G.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),G.useEffect(()=>{e.values&&!Na(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),G.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),G.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),G.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=_A(n,a),t.current}var Yte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Xte=function(e){var t=e.reference,r=e.id,n=e.options,o=n===void 0?{}:n,a=o.meta,i=Yte(o,["meta"]),s=rJ(t,{ids:[r],meta:a},i),u=s.data,l=s.error,c=s.isLoading,d=s.isFetching,p=s.refetch;return{referenceRecord:l?void 0:u?u[0]:void 0,refetch:p,error:l,isLoading:c,isFetching:d}},Ny=globalThis&&globalThis.__assign||function(){return Ny=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ny.apply(this,arguments)},Jte=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Zte=function(e){e===void 0&&(e={});var t=e.disableAuthentication,r=e.id,n=e.queryOptions,o=n===void 0?{}:n;gh({enabled:!t});var a=xt(e),i=YA(a),s=xe(),u=Br(),l=DI(),c=dh(),d=l9().id,p=r??decodeURIComponent(d),h=o.meta,m=Jte(o,["meta"]),y=cX(a,{id:p,meta:h},Ny({onError:function(){u("ra.notification.item_doesnt_exist",{type:"error"}),l("list",a),c()},retry:!1},m)),x=y.data,b=y.error,v=y.isLoading,g=y.isFetching,S=y.refetch;if(x&&x.id&&x.id!=p)throw new Error("useShowController: Fetched record's id attribute (".concat(x.id,") must match the requested 'id' (").concat(p,")"));var w=mh(),_=i(x),$=s("ra.page.show",{name:w(a,1),id:p,record:x,recordRepresentation:typeof _=="string"?_:""});return{defaultTitle:$,error:b,isLoading:v,isFetching:g,record:x,refetch:S,resource:a}},Hx=f.createContext({record:null,defaultTitle:null,isFetching:null,isLoading:null,refetch:null,resource:null});Hx.displayName="ShowContext";var ere=function(e){var t=e.children,r=e.value;return f.createElement(Hx.Provider,{value:r},f.createElement(Du,{value:r&&r.record},t))},tre=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},rre=function(e){var t=e.children,r=tre(e,["children"]),n=Zte(r),o=f.createElement(ere,{value:n},t);return r.resource?f.createElement(Oc,{value:r.resource},o):o},nre=function(e){var t=f.useContext(Hx);return f.useMemo(function(){return pc({},e!=null?ore(e):{},t)},[t,e])},ore=function(e){var t=e.record,r=e.data,n=e.defaultTitle,o=e.isFetching,a=e.isLoading,i=e.resource;return{record:t||r,data:t||r,defaultTitle:n,isFetching:o,isLoading:a,resource:i}},dr=globalThis&&globalThis.__assign||function(){return dr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dr.apply(this,arguments)},fO=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},dO=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},are=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Mm=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},MA=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=el(),o=So(),a=t.ids,i=r.mutationMode,s=i===void 0?"pessimistic":i,u=are(r,["mutationMode"]),l=f.useRef(s),c=f.useRef({}),d=f.useRef([]),p=function(y){var x=y.resource,b=y.ids,v=Date.now(),g=l.current==="undoable"?v+5*1e3:v,S=function(w){if(w){var _=Mm([],w,!0);return b.forEach(function($){var P=_.findIndex(function(T){return T.id==$});P!==-1&&(_=Mm(Mm([],_.slice(0,P),!0),_.slice(P+1),!0))}),_}};o.setQueriesData([x,"getList"],function(w){if(!w||!w.data)return w;var _=S(w.data),$=_.length<w.data.length;return $?{data:_,total:w.total?w.total-(w.data.length-_.length):void 0,pageInfo:w.pageInfo}:w},{updatedAt:g}),o.setQueriesData([x,"getInfiniteList"],function(w){return!w||!w.pages?w:dr(dr({},w),{pages:w.pages.map(function(_){var $=S(_.data),P=$.length<_.data.length;return P?dr(dr({},_),{data:$,total:_.total?_.total-(_.data.length-$.length):void 0,pageInfo:_.pageInfo}):_})})},{updatedAt:g}),o.setQueriesData([x,"getMany"],function(w){return w&&w.length>0?S(w):w},{updatedAt:g}),o.setQueriesData([x,"getManyReference"],function(w){if(!w||!w.data)return w;var _=S(w.data),$=_.length<w.data.length;return $?{data:_,total:w.total-(w.data.length-_.length)}:w},{updatedAt:g})},h=M8(function(y){var x=y===void 0?{}:y,b=x.resource,v=b===void 0?e:b,g=x.ids,S=g===void 0?c.current.ids:g,w=x.meta,_=w===void 0?c.current.meta:w;return n.deleteMany(v,{ids:S,meta:_}).then(function($){var P=$.data;return P})},dr(dr({},u),{onMutate:function(y){return fO(void 0,void 0,void 0,function(){var x;return dO(this,function(b){switch(b.label){case 0:return u.onMutate?[4,u.onMutate(y)]:[3,2];case 1:return x=b.sent()||{},[2,dr({snapshot:d.current},x)];case 2:return[2,{snapshot:d.current}]}})})},onError:function(y,x,b){if(x===void 0&&(x={}),(l.current==="optimistic"||l.current==="undoable")&&b.snapshot.forEach(function(v){var g=v[0],S=v[1];o.setQueryData(g,S)}),u.onError)return u.onError(y,x,b)},onSuccess:function(y,x,b){if(x===void 0&&(x={}),l.current==="pessimistic"){var v=x.resource,g=v===void 0?e:v,S=x.ids,w=S===void 0?a:S;p({resource:g,ids:w}),u.onSuccess&&u.onSuccess(y,x,b)}},onSettled:function(y,x,b,v){if(b===void 0&&(b={}),(l.current==="optimistic"||l.current==="undoable")&&v.snapshot.forEach(function(g){var S=g[0];o.invalidateQueries(S)}),u.onSettled)return u.onSettled(y,x,b,v)}})),m=function(y,x,b){return y===void 0&&(y=e),x===void 0&&(x={}),b===void 0&&(b={}),fO(void 0,void 0,void 0,function(){var v,g,S,w,_,$,P;return dO(this,function(T){switch(T.label){case 0:return v=b.mutationMode,g=b.onSuccess,S=b.onSettled,w=b.onError,c.current=t,v&&(l.current=v),l.current==="pessimistic"?[2,h.mutate(dr({resource:y},x),{onSuccess:g,onSettled:S,onError:w})]:(_=x.ids,$=_===void 0?a:_,P=[[y,"getList"],[y,"getInfiniteList"],[y,"getMany"],[y,"getManyReference"]],d.current=P.reduce(function(R,I){return R.concat(o.getQueriesData(I))},[]),[4,Promise.all(d.current.map(function(R){var I=R[0];return o.cancelQueries(I)}))]);case 1:return T.sent(),p({resource:y,ids:$}),g&&setTimeout(function(){return g($,dr({resource:y},x),{snapshot:d.current})},0),u.onSuccess&&setTimeout(function(){return u.onSuccess($,dr({resource:y},x),{snapshot:d.current})},0),l.current==="optimistic"?[2,h.mutate(dr({resource:y},x),{onSettled:S,onError:w})]:(Iy.once("end",function(R){var I=R.isUndo;I?d.current.forEach(function(A){var L=A[0],M=A[1];o.setQueryData(L,M)}):h.mutate(dr({resource:y},x),{onSettled:S,onError:w})}),[2])}})})};return[Uu(m),h]},FA=f.createContext(void 0),ire=function(e){var t=e.children,r=f.useState(!1),n=r[0],o=r[1],a=f.useState(null),i=a[0],s=a[1],u=f.useState(),l=u[0],c=u[1],d=f.useState(null),p=d[0],h=d[1],m=f.useState(null),y=m[0],x=m[1],b=f.useState(),v=b[0],g=b[1],S=f.useCallback(function(){return o(!0)},[]),w=f.useCallback(function(){o(!1),s(null)},[]),_=f.useCallback(function(P,T){x(P),g(T)},[]),$=f.useMemo(function(){return{editor:i,setEditor:s,preferenceKey:l,setPreferenceKey:c,title:y,titleOptions:v,setTitle:_,isEnabled:n,disable:w,enable:S,path:p,setPath:h}},[w,S,i,l,n,p,h,y,v,_]);return f.createElement(FA.Provider,{value:$},t)},sp=globalThis&&globalThis.__assign||function(){return sp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sp.apply(this,arguments)},sre=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},NA=f.createContext({definitions:{},register:function(){},unregister:function(){}}),lre=function(e){var t=e.definitions,r=t===void 0?{}:t,n=e.children,o=f.useState(r),a=o[0],i=o[1],s=f.useCallback(function(c){i(function(d){var p;return zn(d[c.name],c)?d:sp(sp({},d),(p={},p[c.name]=c,p))})},[]),u=f.useCallback(function(c){i(function(d){var p=d,h=c.name;p[h];var m=sre(p,[typeof h=="symbol"?h:h+""]);return m})},[]),l=f.useMemo(function(){return{definitions:a,register:s,unregister:u}},[a]);return f.createElement(NA.Provider,{value:l},n)},ure=lI(),cre=function(e){var t=e.authProvider,r=e.basename,n=e.dataProvider,o=n===void 0?WI:n,a=e.i18nProvider,i=e.store,s=i===void 0?ure:i,u=e.children,l=e.history,c=e.queryClient;if(!o)throw new Error(`Missing dataProvider prop.
|
92
|
+
React-admin requires a valid dataProvider function to work.`);var d=f.useMemo(function(){return c||new $8},[c]),p=f.useMemo(function(){return t instanceof Function?fne(t):t},[t]),h=f.useMemo(function(){return o instanceof Function?VY(o):o},[o]);return f.createElement(Rk.Provider,{value:p},f.createElement(zI.Provider,{value:h},f.createElement(kW,{value:s},f.createElement(ire,null,f.createElement(k8,{client:d},f.createElement(OY,{history:l,basename:r},f.createElement(pK,{value:a},f.createElement(cK,null,f.createElement(lre,null,u)))))))))},LA=function(){return f.useContext(NA)},Ly=globalThis&&globalThis.__assign||function(){return Ly=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ly.apply(this,arguments)},pO=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},vO=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fre=function(e){var t=oj(),r=t.permissions,n=t.isLoading,o=dre(e,r,n),a=o[0],i=o[1];return vre(a.resources,r),{customRoutesWithLayout:a.customRoutesWithLayout,customRoutesWithoutLayout:a.customRoutesWithoutLayout,status:i,resources:a.resources}},dre=function(e,t,r){var n=Ec(),o=pre(Ml(e)),a=o[0],i=o[1],s=o[2],u=Ps(function(){return hre(Ly({children:e},a))}),l=u[0],c=u[1];return f.useEffect(function(){var d=function(h){return pO(void 0,void 0,void 0,function(){var m;return vO(this,function(y){try{m=h(t),m!=null&&m.then?m.then(function(x){s(Ml(x)),c("ready")}):(s(Ml(m)),c("ready"))}catch(x){console.error(x),n()}return[2]})})},p=function(){return pO(void 0,void 0,void 0,function(){var h,m;return vO(this,function(y){return h=DA(e),m=Ml(e),i(m),c(h?"loading":m.resources.length>0||m.customRoutesWithLayout.length>0||m.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&d(h),[2]})})};r||p()},[e,n,r,s,t,i,c]),[a,l]},pre=function(e){var t=f.useState(e),r=t[0],n=t[1],o=f.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},vre=function(e,t){var r=LA(),n=r.register,o=r.unregister;f.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},hre=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return DA(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},DA=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},Ml=function(e){var t=[],r=[],n=[];return f.Children.forEach(e,function(o){if(f.isValidElement(o)){if(o.type===f.Fragment){var a=Ml(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},mre=function(e){TY();var t=pi(),r=fre(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,d=e.menu,p=e.requireAuth,h=e.ready,m=e.title,y=f.useState(!p),x=y[0],b=y[1],v=aj();return f.useEffect(function(){p&&v().then(function(){b(!0)}).catch(function(){})},[v,p]),a==="empty"?f.createElement(h,null):a==="loading"||!x?f.createElement(Xl,null,o,f.createElement(hr,{path:"*",element:f.createElement("div",{style:{height:"100vh"}},f.createElement(c,null))})):f.createElement(Xl,null,o,f.createElement(hr,{path:"/*",element:f.createElement("div",null,f.createElement(s,{dashboard:l,menu:d,title:m},f.createElement(Xl,null,n,f.Children.map(i,function(g){return f.createElement(hr,{key:g.props.name,path:"".concat(g.props.name,"/*"),element:g})}),f.createElement(hr,{path:"/",element:l?f.createElement(nne,{authParams:gre,component:l}):i.length>0?f.createElement(S9,{to:t({resource:i[0].props.name,type:"list"})}):null}),f.createElement(hr,{path:"*",element:f.createElement(u,{title:m})}))))}))},gre={params:{route:"dashboard"}},yre=function(e){var t=e.children;return f.createElement(f.Fragment,null,t)},bre=function(e){var t=e.catchAll,r=t===void 0?mO:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,u=s===void 0?yre:s,l=e.loading,c=l===void 0?mO:l,d=e.loginPage,p=d===void 0?!1:d,h=e.authCallbackPage,m=h===void 0?!1:h,y=e.menu,x=e.ready,b=x===void 0?Mre:x,v=e.title,g=v===void 0?"React Admin":v,S=e.requireAuth,w=S===void 0?!1:S;return f.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var _=new Image;_.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),f.createElement(Xl,null,p!==!1&&p!==!0?f.createElement(hr,{path:"/login",element:hO(p)}):null,m!==!1&&m!==!0?f.createElement(hr,{path:"/auth-callback",element:hO(m)}):null,f.createElement(hr,{path:"/*",element:f.createElement(mre,{catchAll:r,dashboard:o,layout:u,loading:c,menu:y,requireAuth:w,ready:b,title:g},n)}))},hO=function(e){return f.isValidElement(e)?e:f.createElement(e)},mO=function(){return null},BA=function(e){return null};BA.raName="CustomRoutes";var zA={exports:{}},He={};/** @license React v17.0.2
|
93
|
+
* react-is.production.min.js
|
94
|
+
*
|
95
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
96
|
+
*
|
97
|
+
* This source code is licensed under the MIT license found in the
|
98
|
+
* LICENSE file in the root directory of this source tree.
|
99
|
+
*/var ph=60103,vh=60106,gc=60107,yc=60108,bc=60114,xc=60109,wc=60110,Sc=60112,_c=60113,qx=60120,Cc=60115,$c=60116,UA=60121,VA=60122,WA=60117,HA=60129,qA=60131;if(typeof Symbol=="function"&&Symbol.for){var Nt=Symbol.for;ph=Nt("react.element"),vh=Nt("react.portal"),gc=Nt("react.fragment"),yc=Nt("react.strict_mode"),bc=Nt("react.profiler"),xc=Nt("react.provider"),wc=Nt("react.context"),Sc=Nt("react.forward_ref"),_c=Nt("react.suspense"),qx=Nt("react.suspense_list"),Cc=Nt("react.memo"),$c=Nt("react.lazy"),UA=Nt("react.block"),VA=Nt("react.server.block"),WA=Nt("react.fundamental"),HA=Nt("react.debug_trace_mode"),qA=Nt("react.legacy_hidden")}function Cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ph:switch(e=e.type,e){case gc:case bc:case yc:case _c:case qx:return e;default:switch(e=e&&e.$$typeof,e){case wc:case Sc:case $c:case Cc:case xc:return e;default:return t}}case vh:return t}}}var xre=xc,wre=ph,Sre=Sc,_re=gc,Cre=$c,$re=Cc,Ore=vh,Ere=bc,Pre=yc,Tre=_c;He.ContextConsumer=wc;He.ContextProvider=xre;He.Element=wre;He.ForwardRef=Sre;He.Fragment=_re;He.Lazy=Cre;He.Memo=$re;He.Portal=Ore;He.Profiler=Ere;He.StrictMode=Pre;He.Suspense=Tre;He.isAsyncMode=function(){return!1};He.isConcurrentMode=function(){return!1};He.isContextConsumer=function(e){return Cn(e)===wc};He.isContextProvider=function(e){return Cn(e)===xc};He.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ph};He.isForwardRef=function(e){return Cn(e)===Sc};He.isFragment=function(e){return Cn(e)===gc};He.isLazy=function(e){return Cn(e)===$c};He.isMemo=function(e){return Cn(e)===Cc};He.isPortal=function(e){return Cn(e)===vh};He.isProfiler=function(e){return Cn(e)===bc};He.isStrictMode=function(e){return Cn(e)===yc};He.isSuspense=function(e){return Cn(e)===_c};He.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gc||e===bc||e===HA||e===yc||e===_c||e===qx||e===qA||typeof e=="object"&&e!==null&&(e.$$typeof===$c||e.$$typeof===Cc||e.$$typeof===xc||e.$$typeof===wc||e.$$typeof===Sc||e.$$typeof===WA||e.$$typeof===UA||e[0]===VA)};He.typeOf=Cn;zA.exports=He;var GA=zA.exports,KA=f.createContext(void 0),Oc=function(e){var t=e.children,r=e.value;return r?f.createElement(KA.Provider,{value:r},t):t},Ct=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return f.createElement(Oc,{value:o},f.createElement(Xl,null,t&&f.createElement(hr,{path:"create/*",element:of(t)}),a&&f.createElement(hr,{path:":id/show/*",element:of(a)}),r&&f.createElement(hr,{path:":id/*",element:of(r)}),n&&f.createElement(hr,{path:"/*",element:of(n)}),e.children))},of=function(e){return f.isValidElement(e)?e:GA.isValidElementType(e)?f.createElement(e,null):null};Ct.raName="Resource";Ct.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,d=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!d,icon:n,recordRepresentation:u}};var QA={exports:{}};/*!
|
100
|
+
* inflection
|
101
|
+
* Copyright(c) 2011 Ben Lin <ben@dreamerslab.com>
|
102
|
+
* MIT Licensed
|
103
|
+
*
|
104
|
+
* @fileoverview
|
105
|
+
* A port of inflection-js to node.js module.
|
106
|
+
*/(function(e,t){(function(r,n){e.exports=n()})(yn,function(){var r=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],n={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[n.plural.men],[n.plural.people],[n.plural.children],[n.plural.tia],[n.plural.analyses],[n.plural.hives],[n.plural.curves],[n.plural.lrves],[n.plural.foves],[n.plural.aeiouyies],[n.plural.series],[n.plural.movies],[n.plural.xes],[n.plural.mice],[n.plural.buses],[n.plural.oes],[n.plural.shoes],[n.plural.crises],[n.plural.octopi],[n.plural.aliases],[n.plural.summonses],[n.plural.oxen],[n.plural.matrices],[n.plural.feet],[n.plural.teeth],[n.plural.geese],[n.plural.quizzes],[n.plural.whereases],[n.plural.criteria],[n.plural.genera],[n.singular.man,"$1en"],[n.singular.person,"$1ople"],[n.singular.child,"$1ren"],[n.singular.ox,"$1en"],[n.singular.axis,"$1es"],[n.singular.octopus,"$1i"],[n.singular.alias,"$1es"],[n.singular.summons,"$1es"],[n.singular.bus,"$1ses"],[n.singular.buffalo,"$1oes"],[n.singular.tium,"$1a"],[n.singular.sis,"ses"],[n.singular.ffe,"$1$2ves"],[n.singular.hive,"$1ves"],[n.singular.aeiouyy,"$1ies"],[n.singular.matrix,"$1ices"],[n.singular.vertex,"$1ices"],[n.singular.x,"$1es"],[n.singular.mouse,"$1ice"],[n.singular.foot,"feet"],[n.singular.tooth,"teeth"],[n.singular.goose,"geese"],[n.singular.quiz,"$1zes"],[n.singular.whereas,"$1es"],[n.singular.criterion,"$1a"],[n.singular.genus,"genera"],[n.singular.s,"s"],[n.singular.common,"s"]],a=[[n.singular.man],[n.singular.person],[n.singular.child],[n.singular.ox],[n.singular.axis],[n.singular.octopus],[n.singular.alias],[n.singular.summons],[n.singular.bus],[n.singular.buffalo],[n.singular.tium],[n.singular.sis],[n.singular.ffe],[n.singular.hive],[n.singular.aeiouyy],[n.singular.x],[n.singular.matrix],[n.singular.mouse],[n.singular.foot],[n.singular.tooth],[n.singular.goose],[n.singular.quiz],[n.singular.whereas],[n.singular.criterion],[n.singular.genus],[n.plural.men,"$1an"],[n.plural.people,"$1rson"],[n.plural.children,"$1"],[n.plural.genera,"genus"],[n.plural.criteria,"$1on"],[n.plural.tia,"$1um"],[n.plural.analyses,"$1$2sis"],[n.plural.hives,"$1ve"],[n.plural.curves,"$1"],[n.plural.lrves,"$1f"],[n.plural.aves,"$1ve"],[n.plural.foves,"$1fe"],[n.plural.movies,"$1ovie"],[n.plural.aeiouyies,"$1y"],[n.plural.series,"$1eries"],[n.plural.xes,"$1"],[n.plural.mice,"$1ouse"],[n.plural.buses,"$1"],[n.plural.oes,"$1"],[n.plural.shoes,"$1"],[n.plural.crises,"$1is"],[n.plural.octopi,"$1us"],[n.plural.aliases,"$1"],[n.plural.summonses,"$1"],[n.plural.oxen,"$1"],[n.plural.matrices,"$1ix"],[n.plural.vertices,"$1ex"],[n.plural.feet,"foot"],[n.plural.teeth,"tooth"],[n.plural.geese,"goose"],[n.plural.quizzes,"$1"],[n.plural.whereases,"$1"],[n.plural.ss,"ss"],[n.plural.s,""]],i=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],s=new RegExp("(_ids|_id)$","g"),u=new RegExp("_","g"),l=new RegExp("[ _]","g"),c=new RegExp("([A-Z])","g"),d=new RegExp("^_"),p={_apply_rules:function(h,m,y,x){if(x)h=x;else{var b=p.indexOf(y,h.toLowerCase())>-1;if(!b){for(var v=0,g=m.length;v<g;v++)if(h.match(m[v][0])){m[v][1]!==void 0&&(h=h.replace(m[v][0],m[v][1]));break}}}return h},indexOf:function(h,m,y,x){y||(y=-1);for(var b=-1,v=y,g=h.length;v<g;v++)if(h[v]===m||x&&x(h[v],m)){b=v;break}return b},pluralize:function(h,m){return p._apply_rules(h,o,r,m)},singularize:function(h,m){return p._apply_rules(h,a,r,m)},inflect:function(h,m,y,x){return m=parseInt(m,10),isNaN(m)?h:m===0||m>1?p._apply_rules(h,o,r,x):p._apply_rules(h,a,r,y)},camelize:function(h,m){for(var y=h.split("/"),x=0,b=y.length,v,g,S,w;x<b;x++){for(v=y[x].split("_"),g=0,S=v.length;g<S;g++)g!==0&&(v[g]=v[g].toLowerCase()),w=v[g].charAt(0),w=m&&x===0&&g===0?w.toLowerCase():w.toUpperCase(),v[g]=w+v[g].substring(1);y[x]=v.join("")}return y.join("::")},underscore:function(h,m){if(m&&h===h.toUpperCase())return h;for(var y=h.split("::"),x=0,b=y.length;x<b;x++)y[x]=y[x].replace(c,"_$1"),y[x]=y[x].replace(d,"");return y.join("/").toLowerCase()},humanize:function(h,m){return h=h.toLowerCase(),h=h.replace(s,""),h=h.replace(u," "),m||(h=p.capitalize(h)),h},capitalize:function(h){return h=h.toLowerCase(),h.substring(0,1).toUpperCase()+h.substring(1)},dasherize:function(h){return h.replace(l,"-")},titleize:function(h){h=h.toLowerCase().replace(u," ");for(var m=h.split(" "),y=0,x=m.length,b,v,g;y<x;y++){for(b=m[y].split("-"),v=0,g=b.length;v<g;v++)p.indexOf(i,b[v].toLowerCase())<0&&(b[v]=p.capitalize(b[v]));m[y]=b.join("-")}return h=m.join(" "),h=h.substring(0,1).toUpperCase()+h.substring(1),h},demodulize:function(h){var m=h.split("::");return m[m.length-1]},tableize:function(h){return h=p.underscore(h),h=p.pluralize(h),h},classify:function(h){return h=p.camelize(h),h=p.singularize(h),h},foreign_key:function(h,m){return h=p.demodulize(h),h=p.underscore(h)+(m?"":"_")+"id",h},ordinalize:function(h){for(var m=h.split(" "),y=0,x=m.length;y<x;y++){var b=parseInt(m[y],10);if(!isNaN(b)){var v=m[y].substring(m[y].length-2),g=m[y].substring(m[y].length-1),S="th";v!="11"&&v!="12"&&v!="13"&&(g==="1"?S="st":g==="2"?S="nd":g==="3"&&(S="rd")),m[y]+=S}}return m.join(" ")},transform:function(h,m){for(var y=0,x=m.length;y<x;y++){var b=m[y];p.hasOwnProperty(b)&&(h=p[b](h))}return h}};return p.version="1.12.0",p})})(QA);var Rre=QA.exports;const ss=Ye(Rre);var hh=function(){return LA().definitions},mh=function(){var e=xe(),t=hh();return function(r,n){n===void 0&&(n=2);var o=t[r],a=e("resources.".concat(r,".name"),{smart_count:n,_:o&&o.options&&o.options.label?e(o.options.label,{smart_count:n,_:o.options.label}):ss.humanize(n>1?ss.pluralize(r):ss.singularize(r))});return a}},xt=function(e){var t=f.useContext(KA);return e&&e.resource||t},tl=function(e){var t=xt(e),r=hh(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=f.useMemo(function(){return pc({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:u},r[t])},[t,r,o,a,i,s,u]);return l},YA=function(e){var t=tl({resource:e}).recordRepresentation;return f.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?We(r,t):f.isValidElement(t)?t:"#".concat(r.id):""},[t])},xe=function(){var e=Ix(),t=f.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:kre},kre=function(e){return e},XA=function(){var e=xe(),t=tj(),r=xt();return f.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,Ire({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},JA=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=XA();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:f.createElement("span",null,a({label:r,resource:n,source:t}),o&&f.createElement("span",{"aria-hidden":"true"}," *"))};JA.displayName="FieldTitle";const zu=f.memo(JA),Ire=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=Are(a),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=ss.transform(u.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:l}]:r?["".concat(r,".").concat(s),{_:l}]:["resources.".concat(o,".fields.").concat(s),{_:l}]};var Are=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){jre(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},jre=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const Gx=function(e,t,r){if(e[t]&&!GA.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))};var gO=globalThis&&globalThis.__assign||function(){return gO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gO.apply(this,arguments)};const Mre=function(){return f.createElement("span",null)},ZA=function(e,t){};var Fre=typeof window<"u"?f.useLayoutEffect:f.useEffect,Uu=function(e){var t=f.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Fre(function(){t.current=e}),f.useCallback(function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.current.apply(t,r)},[])},ej=f.createContext(""),tj=function(){return f.useContext(ej)},rj=function(e){var t=e.prefix,r=e.concatenate,n=r===void 0?!0:r,o=e.children,a=tj(),i=a&&n?"".concat(a,".").concat(t):t;return f.createElement(ej.Provider,{value:i},o)},Nre=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Lre=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Dre=function(e){var t=e.url,r=t===void 0?window.location.href:t,n=e.fetchOptions,o=e.interval,a=o===void 0?zre:o,i=e.onNewVersionAvailable,s=e.disabled,u=s===void 0?!1:s,l=f.useRef(),c=Uu(i);f.useEffect(function(){u||yO(r,n).then(function(d){d!=null&&(l.current=d)})},[u,r,JSON.stringify(n)]),f.useEffect(function(){if(!u){var d=setInterval(function(){yO(r,n).then(function(p){p!=null&&l.current!==p&&(l.current=p,c())}).catch(function(){})},a);return function(){return clearInterval(d)}}},[a,c,u,r,JSON.stringify(n)])},yO=function(e,t){return Nre(void 0,void 0,void 0,function(){var r,n;return Lre(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch(e,t)];case 1:return r=o.sent(),r.ok?[4,r.text()]:[2,null];case 2:return n=o.sent(),[2,Bre(n)];case 3:return o.sent(),[2,null];case 4:return[2]}})})},Bre=function(e,t){t===void 0&&(t=0);for(var r=3735928559^t,n=1103547991^t,o=0,a=void 0;o<e.length;o++)a=e.charCodeAt(o),r=Math.imul(r^a,2654435761),n=Math.imul(n^a,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},zre=1e3*60*60,$n=function(e,t){var r=rh(),n=r.getItem,o=r.setItem,a=r.subscribe,i=f.useState(function(){return n(e,t)}),s=i[0],u=i[1];f.useEffect(function(){var c=n(e,t);zn(s,c)||u(c);var d=a(e,function(p){u(typeof p>"u"?t:p)});return function(){return d()}},[e,a,t,n,s]);var l=Uu(function(c,d){var p=typeof c=="function"?c(s):c;o(e,typeof p>"u"?typeof d>"u"?t:d:p)});return[s,l]},Ure=function(e){var t=rh().removeItem;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Vre=function(e){var t=rh().removeItems;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Wre=function(){var e=rh().reset;return e},Hre=function(){var e=xo(),t=So(),r=Wre(),n=Kn(),o=f.useRef(n),a=Cr(),i=f.useRef(a),s=ha(),u=In("".concat(s,"/").concat(qv.loginUrl));f.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=f.useCallback(function(d,p,h){return d===void 0&&(d={}),p===void 0&&(p=u),h===void 0&&(h=!0),e.logout(d).then(function(m){if(m===!1||p===!1){r(),t.clear();return}var y=m||p;if(y!=null&&y.startsWith("http"))return r(),t.clear(),window.location.href=y,y;var x=y.split("?"),b={pathname:x[0]},v={};return h&&i.current&&i.current.pathname&&(v={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),x[1]&&(b.search=x[1]),o.current(b,v),r(),t.clear(),m})},[e,r,u,t]),c=f.useCallback(function(d){return n({pathname:u},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,u,t]);return e?l:c};const Ec=Hre;var Dy=globalThis&&globalThis.__assign||function(){return Dy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dy.apply(this,arguments)},qre={},Gre=function(e,t,r){e===void 0&&(e=qre),t===void 0&&(t=!1);var n=xo(),o=Ec(),a=ha(),i=Br(),s=pa(["auth","checkAuth",e],function(){return n==null?void 0:n.checkAuth(e).then(function(){return!0})},Dy({onError:function(u){var l=In("".concat(a,"/").concat(qv.loginUrl));if(t){o({},u&&u.redirectTo!=null?u.redirectTo:l);var c=u&&u.message===!1;!c&&i(Kre(u,"ra.auth.auth_check_error"),{type:"error"})}},retry:!1},r));return f.useMemo(function(){var u;return{authenticated:((u=s.data)!==null&&u!==void 0?u:s.isLoading)?!0:n==null,isLoading:s.isLoading,error:s.error}},[n,s])};const nj=Gre;var Kre=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},By=globalThis&&globalThis.__assign||function(){return By=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},By.apply(this,arguments)},Qre=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Yre=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Xre={},Jre=function(e,t){e===void 0&&(e=Xre),t===void 0&&(t={staleTime:5*60*1e3});var r=xo(),n=HI(),o=pa(["auth","getPermissions",e],r?function(){return r.getPermissions(e)}:function(){return Qre(void 0,void 0,void 0,function(){return Yre(this,function(a){return[2,[]]})})},By({onError:function(a){n(a)}},t));return f.useMemo(function(){return{permissions:o.data,isLoading:o.isLoading,error:o.error,refetch:o.refetch}},[o])};const oj=Jre;var Zre=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},gh=function(e){e===void 0&&(e={});var t=e.params,r=Zre(e,["params"]);nj(t??ene,!0,r)},ene={},tu=globalThis&&globalThis.__assign||function(){return tu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tu.apply(this,arguments)},tne=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},bO=function(e){return f.Children.count(e)===0},rne=function(e){var t=e.authParams,r=e.children,n=e.render,o=e.component;e.staticContext;var a=tne(e,["authParams","children","render","component","staticContext"]);ZA(n&&r&&!bO(r)||n&&o||o&&r&&!bO(r),"You should only use one of the `component`, `render` and `children` props in <WithPermissions>"),gh(t);var i=oj(t).permissions;if(o)return f.createElement(o,tu({permissions:i},a));if(n)return n(tu({permissions:i},a));if(r)return r(tu({permissions:i},a))};const nne=rne;var one=function(){var e=xo(),t=Cr(),r=t.state,n=Kn(),o=ha(),a=_I().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=In("".concat(o,"/").concat(qv.afterLoginUrl)),l=f.useCallback(function(d,p){return d===void 0&&(d={}),e.login(d).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var m=p||i+s||u;n(m)}return h})},[e,n,i,s,a,u]),c=f.useCallback(function(d,p){return a(),n(u),Promise.resolve()},[n,a,u]);return e?l:c};const ane=one;var ine="AUTH_LOGIN",sne="AUTH_CHECK",lne="AUTH_ERROR",une="AUTH_LOGOUT",cne="AUTH_GET_PERMISSIONS";const fne=function(e){var t=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.apply(null,r)};return t.login=function(r){return e(ine,r)},t.logout=function(r){return e(une,r)},t.checkAuth=function(r){return e(sne,r)},t.checkError=function(r){return e(lne,r)},t.getPermissions=function(r){return e(cne,r)},t};var aj=function(){var e=xo(),t=Br(),r=Ec(),n=ha(),o=In("".concat(n,"/").concat(qv.loginUrl)),a=f.useCallback(function(i,s,u,l){return i===void 0&&(i={}),s===void 0&&(s=!0),u===void 0&&(u=o),l===void 0&&(l=!1),e.checkAuth(i).catch(function(c){if(s){r({},c&&c.redirectTo!=null?c.redirectTo:u);var d=l||c&&c.message===!1;!d&&t(pne(c,"ra.auth.auth_check_error"),{type:"error"})}throw c})},[e,r,t,o]);return e?a:dne},dne=function(){return Promise.resolve()},pne=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},zy=globalThis&&globalThis.__assign||function(){return zy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zy.apply(this,arguments)},vne=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},hne=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},xO={id:""},mne={staleTime:5*60*1e3},gne=function(e){e===void 0&&(e=mne);var t=xo(),r=pa(["auth","getIdentity"],function(){return vne(void 0,void 0,void 0,function(){var n;return hne(this,function(o){switch(o.label){case 0:return t&&typeof t.getIdentity=="function"?[4,t.getIdentity()]:[3,2];case 1:return n=o.sent(),[2,n||xO];case 2:return[2,xO]}})})},zy({enabled:typeof(t==null?void 0:t.getIdentity)=="function"},e));return f.useMemo(function(){return r.isLoading?{isLoading:!0}:r.error?{error:r.error,isLoading:!1}:r.isSuccess?{data:r.data,identity:r.data,refetch:r.refetch,isLoading:!1}:{isLoading:!1}},[r])},Uy=globalThis&&globalThis.__assign||function(){return Uy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Uy.apply(this,arguments)},yne=function(e){var t=xo(),r=DI(),n=Cr(),o=n.state,a=o&&o.nextPathname,i=o&&o.nextSearch,s=a?a+i:"/";return pa(["auth","handleCallback"],function(){return t&&typeof t.handleCallback=="function"?t.handleCallback():Promise.resolve()},Uy({retry:!1,onSuccess:function(u){var l,c=localStorage.getItem(bne),d=(l=u==null?void 0:u.redirectTo)!==null&&l!==void 0?l:c;d!==!1&&r(d??s)}},e))},bne="@react-admin/nextPathname",ij=f.createContext(""),sj=function(e){var t=e.value,r=t===void 0?"":t,n=e.children;return f.createElement(ij.Provider,{value:r},n)},xne=function(){return f.useContext(ij)},lj=function(e,t){var r=xne();if(!r)throw new Error("usePreference cannot be used outside of a Configurable component. Did you forget to wrap your component with <Configurable>? If you don't want to use Configurable, you can use the useStore hook instead.");return $n(r&&e?"".concat(r,".").concat(e):r??e,t)},Kx=function(){return f.useContext(FA)},wne=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Sne=function(e,t){var r=lj(e,t),n=r[0],o=r[1],a=f.useState(n),i=a[0],s=a[1];f.useEffect(function(){s(n||t)},[n,t]);var u=function(d){s(d.target.value===""?t:d.target.value)},l=function(){o(i)},c=function(d){var p;if(d.key==="Enter"){o(i);var h=d.target.form;if(h){var m=wne([],h,!0).indexOf(d.target);(p=h.elements[m+1])===null||p===void 0||p.focus()}d.preventDefault()}};return{value:i,onChange:u,onBlur:l,onKeyDown:c}},_ne=function(e,t){var r=Kx().setTitle;f.useEffect(function(){r(e,t)},[e,JSON.stringify(t),r])},uj=f.createContext(void 0),Vy=globalThis&&globalThis.__assign||function(){return Vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vy.apply(this,arguments)},wO="@@react-admin@@",Cne=function(e){var t=e.error,r=t,n=xe();if(typeof t=="string"&&t.startsWith(wO)&&(r=JSON.parse(t.substring(wO.length))),r.message){var o=r,a=o.message,i=o.args;return f.createElement(f.Fragment,null,n(a,Vy({_:a},i)))}return f.createElement(f.Fragment,null,n(r,{_:r}))};const $ne=Cne;var No=globalThis&&globalThis.__assign||function(){return No=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},No.apply(this,arguments)},One=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Ene=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Pne=function(e){return function(t){return One(void 0,void 0,void 0,function(){var r,n;return Ene(this,function(o){switch(o.label){case 0:return[4,e(t)];case 1:return r=o.sent(),!r||lp(r)?[2,{values:t,errors:{}}]:(n=Wy(r),!n||lp(n)?[2,{values:t,errors:{}}]:[2,{values:{},errors:n}])}})})}},Wy=function(e){return Object.keys(e).reduce(function(t,r){var n,o,a;if(Array.isArray(e[r])){var i=!1,s=e[r].map(function(u){return lp(u)||(i=!0),Wy(u)});return i?No(No({},t),(n={},n[r]=s,n)):t}return lp(e[r])?t:typeof e[r]=="object"&&!cj(e[r])?No(No({},t),(o={},o[r]=Wy(e[r]),o)):No(No({},t),(a={},a[r]=Tne(e[r]),a))},{})},Tne=function(e){return{type:"manual",message:cj(e)?e:{message:e}}},cj=function(e){return Object.keys(e).includes("message")&&Object.keys(e).includes("args")},lp=function(e){return Object.getOwnPropertyNames(e).length===0},SO=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},fj=function(e){var t=e.children,r=f.useRef({}),n=f.useRef({}),o=f.useMemo(function(){return{subscribe:function(a,i){return n.current[a]||(n.current[a]=[]),n.current[a].push(i),function(){n.current[a]=n.current[a].filter(function(s){return s!==i})}},getGroupFields:function(a){return r.current[a]||[]},registerGroup:function(a){r.current[a]=r.current[a]||[]},unregisterGroup:function(a){delete r[a]},registerField:function(a,i){i!=null&&((r.current[i]||[]).includes(a)||(r.current[i]=SO(SO([],r.current[i]||[],!0),[a],!1),n.current[i]&&n.current[i].forEach(function(s){return s()})))},unregisterField:function(a,i){if(i!=null)if(!r.current[i])console.warn("Invalid form group ".concat(i));else{var s=new Set(r.current[i]);s.delete(a),r.current[i]=Array.from(s),n.current[i]&&n.current[i].forEach(function(u){return u()})}}}},[]);return f.createElement(uj.Provider,{value:o},t)};function Rne(e,t){var r=MI({},kne(e,t),t);return r}function kne(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Ine=function(e,t){var r=function(n,o){Object.entries(n).forEach(function(a){var i=a[0],s=a[1];if(typeof s=="object"){r(s,"".concat(o).concat(i,"."));return}t("".concat(o).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Ane=function(e,t){t===void 0&&(t=!0);var r=zx(e?{control:e}:void 0),n=r.submitCount,o=r.errors,a=f.useRef(n),i=Br();f.useEffect(function(){n>a.current&&t&&(a.current=n,Object.keys(o).length>0&&i("ra.message.invalid_form",{type:"error"}))},[o,n,i,t])},jne=function(e,t,r){var n=f.useContext(_o).navigator,o=Cr(),a=xe(),i=zx(r?{control:r}:void 0),s=i.isSubmitSuccessful,u=i.isSubmitting,l=i.dirtyFields,c=Object.keys(l).length>0,d=f.useRef(t||o.pathname);f.useEffect(function(){if(!(!e||!c)&&n.block){var p=n.block(function(h){var m=h.location.pathname.startsWith(d.current),y=h.location.pathname.startsWith("".concat(d.current,"/show")),x=m&&!y;!u&&(x||s||window.confirm(a("ra.message.unsaved_changes")))?(p(),h.retry()):u&&setTimeout(function(){h.retry()},100)});return p}},[e,o,n,c,u,s,a])},Mne=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},Hy=globalThis&&globalThis.__assign||function(){return Hy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hy.apply(this,arguments)},Fne=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Nne=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Lne=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Dne=function(e){var t=e.criteriaMode,r=t===void 0?"firstError":t,n=e.defaultValues,o=e.formRootPathname,a=e.resolver,i=e.reValidateMode,s=i===void 0?"onChange":i,u=e.onSubmit,l=e.sanitizeEmptyValues,c=e.warnWhenUnsavedChanges,d=e.validate,p=e.disableInvalidFormNotification,h=Lne(e,["criteriaMode","defaultValues","formRootPathname","resolver","reValidateMode","onSubmit","sanitizeEmptyValues","warnWhenUnsavedChanges","validate","disableInvalidFormNotification"]),m=Mt(e),y=wZ(),x=f.useMemo(function(){return Rne(n,m)},[JSON.stringify({defaultValues:typeof n=="function"?"function":n,record:m})]),b=a||(d?Pne(d):void 0),v=jA(Hy({criteriaMode:r,values:x,reValidateMode:s,resolver:b},h)),g=f.useRef(v);Ane(v.control,!p),jne(!!c,o,v.control);var S=f.useCallback(function(_,$){return Fne(void 0,void 0,void 0,function(){var P,T;return Nne(this,function(R){switch(R.label){case 0:return T=l?Mne(_,m):_,u?[4,u(T,$)]:[3,2];case 1:P=R.sent(),R.label=2;case 2:return u==null&&(y!=null&&y.save)?[4,y.save(T,$)]:[3,4];case 3:P=R.sent(),R.label=4;case 4:return P!=null&&Ine(P,g.current.setError),[2]}})})},[u,y,l,m]),w=f.useCallback(function(_){_.defaultPrevented||(_.stopPropagation(),v.handleSubmit(S)(_))},[v,S]);return{form:v,handleSubmit:S,formHandleSubmit:w}},qy=globalThis&&globalThis.__assign||function(){return qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qy.apply(this,arguments)},Bne=function(e){var t=e.children,r=e.id,n=e.className,o=e.noValidate,a=o===void 0?!1:o,i=Mt(e),s=xt(e),u=Dne(e),l=u.form,c=u.formHandleSubmit;return f.createElement(sA,{value:i},f.createElement(rj,{prefix:"resources.".concat(s,".fields"),concatenate:!1},f.createElement(SA,qy({},l),f.createElement(fj,null,f.createElement("form",{onSubmit:c,noValidate:a,id:r,className:n},t)))))},zne=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ma=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Une(e){return e?e.hasOwnProperty("message"):!1}var ga=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ya=function(e){return nI(e,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return JSON.stringify(t)})},Vne=function(e){return typeof e=="function"},Wne=function(e,t){return function(r,n,o){var a=e(r,n,o);return a?typeof a=="string"||Une(a)?a:a.then(function(i){return i||t(r,n,o)}):t(r,n,o)}},Hne=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(Array.isArray(e[0])?e[0]:e).filter(Vne);return r.reduce(Wne,function(){return null})},_O=ya(function(e){return e===void 0&&(e="ra.validation.required"),Object.assign(function(t,r){return ma(t)?ga(e,void 0,t,r):void 0},{isRequired:!0})});ya(function(e,t){return t===void 0&&(t="ra.validation.minLength"),function(r,n){return!ma(r)&&r.length<e?ga(t,{min:e},r,n):void 0}});ya(function(e,t){return t===void 0&&(t="ra.validation.maxLength"),function(r,n){return!ma(r)&&r.length>e?ga(t,{max:e},r,n):void 0}});ya(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!ma(r)&&r<e?ga(t,{min:e},r,n):void 0}});ya(function(e,t){return t===void 0&&(t="ra.validation.maxValue"),function(r,n){return!ma(r)&&r>e?ga(t,{max:e},r,n):void 0}});ya(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!ma(t)&&isNaN(Number(t))?ga(e,void 0,t,r):void 0}});var qne=nI(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!ma(r)&&typeof r=="string"&&!e.test(r)?ga(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ya(function(e){return e===void 0&&(e="ra.validation.email"),qne(zne,e)});var Gne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ya(function(e,t){return t===void 0&&(t=Gne),function(r,n){return!ma(r)&&e.indexOf(r)===-1?ga(t,{list:e},r,n):void 0}});var Kne=f.createContext(void 0),Qne=function(){var e=f.useContext(uj);return e},Yne=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=Mt(t),s=mc(),u=s.getValues,l=s.resetField,c=s.getFieldState,d=s.formState,p=s.reset,h=We(i,a),m=We(u(),a),y=c(a,d).isDirty;f.useEffect(function(){if(!(o==null||m!=null||h!=null||y)){var x=a.split(".").some(function(g){return Xne.test(g)});if(x){var b=a.split(".").slice(0,-1).join("."),v=We(u(),b);if(v==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),p({},{keepValues:!0});return}l(a,{defaultValue:o})}})},Xne=/^\d+$/,Jne=function(){var e=f.useContext(Kne);return e},Zne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const eoe=Zne;var Qi=globalThis&&globalThis.__assign||function(){return Qi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Qi.apply(this,arguments)},toe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},roe=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},noe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ooe=function(e){return e??""},aoe=function(e){return e===""?null:e},ioe=function(e){var t=e.defaultValue,r=e.format,n=r===void 0?ooe:r,o=e.id,a=e.isRequired,i=e.name,s=e.onBlur,u=e.onChange,l=e.parse,c=l===void 0?aoe:l,d=e.source,p=e.validate,h=noe(e,["defaultValue","format","id","isRequired","name","onBlur","onChange","parse","source","validate"]),m=i||d,y=Jne(),x=Qne(),b=Mt();f.useEffect(function(){if(!(!x||y==null))return x.registerField(d,y),function(){x.unregisterField(d,y)}},[x,y,d]);var v=Array.isArray(p)?Hne(p):p,g=Lte(Qi(Qi({name:m,defaultValue:We(b,d,t),rules:{validate:function(R,I){return toe(void 0,void 0,void 0,function(){var A;return roe(this,function(L){switch(L.label){case 0:return v?[4,v(R,I,e)]:[2,!0];case 1:return A=L.sent(),A?[2,"@@react-admin@@".concat(JSON.stringify(A))]:[2,!0]}})})}}},h),{disabled:h.disabled||void 0})),S=g.field,w=g.fieldState,_=g.formState;Yne({inputProps:e});var $=Uu(function(){for(var R=[],I=0;I<arguments.length;I++)R[I]=arguments[I];S.onBlur(),s&&s.apply(void 0,R)}),P=Uu(function(){for(var R,I,A,L,M,F=[],j=0;j<arguments.length;j++)F[j]=arguments[j];var B=e.type==="checkbox"&&((I=(R=F[0])===null||R===void 0?void 0:R.target)===null||I===void 0?void 0:I.value)==="on"?F[0].target.checked:(M=(L=(A=F[0])===null||A===void 0?void 0:A.target)===null||L===void 0?void 0:L.value)!==null&&M!==void 0?M:F[0];S.onChange(c?c(B):B),u&&u.apply(void 0,F)}),T=Qi(Qi({},S),{value:n?n(S.value):S.value,onBlur:$,onChange:P});return{id:o||d,field:T,fieldState:w,formState:_,isRequired:a||eoe(p)}};function soe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function loe({styles:e,themeId:t,defaultTheme:r={}}){const n=Uv(r),o=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(ek,{styles:o})}const uoe=["className","component"];function coe(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=A1("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(oc);return f.forwardRef(function(u,l){const c=Uv(r),d=Vv(u),{className:p,component:h="div"}=d,m=X(d,uoe);return E.jsx(a,O({as:h,ref:l,className:ee(p,o?o(n):n),theme:t&&c[t]||c},m))})}const foe=["ownerState"],doe=["variants"],poe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function voe(e){return Object.keys(e).length===0}function hoe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const moe=ac(),goe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function af({defaultTheme:e,theme:t,themeId:r}){return voe(t)?e:t[r]||t}function yoe(e){return e?(t,r)=>r[e]:null}function Wf(e,t){let{ownerState:r}=t,n=X(t,foe);const o=typeof e=="function"?e(O({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Wf(a,O({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=X(o,doe);return a.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(O({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(O({ownerState:r},n,r)):u.style))}),s}return o}function boe(e={}){const{themeId:t,defaultTheme:r=moe,rootShouldForwardProp:n=Fm,slotShouldForwardProp:o=Fm}=e,a=i=>oc(O({},i,{theme:af(O({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{tk(i,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=yoe(goe(l))}=s,h=X(s,poe),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=d||!1;let x,b=Fm;l==="Root"||l==="root"?b=n:l?b=o:hoe(i)&&(b=void 0);const v=A1(i,O({shouldForwardProp:b,label:x},h)),g=w=>typeof w=="function"&&w.__emotion_real!==w||io(w)?_=>Wf(w,O({},_,{theme:af({theme:_.theme,defaultTheme:r,themeId:t})})):w,S=(w,..._)=>{let $=g(w);const P=_?_.map(g):[];u&&p&&P.push(I=>{const A=af(O({},I,{defaultTheme:r,themeId:t}));if(!A.components||!A.components[u]||!A.components[u].styleOverrides)return null;const L=A.components[u].styleOverrides,M={};return Object.entries(L).forEach(([F,j])=>{M[F]=Wf(j,O({},I,{theme:A}))}),p(I,M)}),u&&!m&&P.push(I=>{var A;const L=af(O({},I,{defaultTheme:r,themeId:t})),M=L==null||(A=L.components)==null||(A=A[u])==null?void 0:A.variants;return Wf({variants:M},O({},I,{theme:L}))}),y||P.push(a);const T=P.length-_.length;if(Array.isArray(w)&&T>0){const I=new Array(T).fill("");$=[...w,...I],$.raw=[...w.raw,...I]}const R=v($,...P);return i.muiName&&(R.muiName=i.muiName),R};return v.withConfig&&(S.withConfig=v.withConfig),S}}const xoe=boe(),woe=xoe;function Soe(e,t,r,n,o){const[a,i]=f.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Mr(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),a}const dj=fd["useSyncExternalStore"];function _oe(e,t,r,n,o){const a=f.useCallback(()=>t,[t]),i=f.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,o,r]),[s,u]=f.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[a,r,e]);return dj(u,s,i)}function Ur(e,t={}){const r=j1(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=OR({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(dj!==void 0?_oe:Soe)(u,o,a,i,s)}function Qx(e,t=0,r=1){return CR(e,t,r)}function Coe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function yh(e){if(e.type)return e;if(e.charAt(0)==="#")return yh(Coe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(mo(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(mo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function Yx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ts(e,t){return e=yh(e),t=Qx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yx(e)}function Gy(e,t){if(e=yh(e),t=Qx(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Yx(e)}function Ky(e,t){if(e=yh(e),t=Qx(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Yx(e)}const $oe=f.createContext(null),pj=$oe;function vj(){return f.useContext(pj)}const Ooe=typeof Symbol=="function"&&Symbol.for,Eoe=Ooe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Poe(e,t){return typeof t=="function"?t(e):O({},e,t)}function Toe(e){const{children:t,theme:r}=e,n=vj(),o=f.useMemo(()=>{const a=n===null?r:Poe(n,r);return a!=null&&(a[Eoe]=n!==null),a},[r,n]);return E.jsx(pj.Provider,{value:o,children:t})}const CO={};function $O(e,t,r,n=!1){return f.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?O({},t,{[e]:a}):a;return n?()=>i:i}return e?O({},t,{[e]:r}):O({},t,r)},[e,t,r,n])}function Roe(e){const{children:t,theme:r,themeId:n}=e,o=j1(CO),a=vj()||CO,i=$O(n,o,r),s=$O(n,a,r,!0);return E.jsx(Toe,{theme:s,children:E.jsx(sc.Provider,{value:i,children:t})})}const koe=["component","direction","spacing","divider","children","className","useFlexGap"],Ioe=ac(),Aoe=woe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function joe(e){return rk({props:e,name:"MuiStack",defaultTheme:Ioe})}function Moe(e,t){const r=f.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(f.cloneElement(t,{key:`separator-${a}`})),n),[])}const Foe=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Noe=({ownerState:e,theme:t})=>{let r=O({display:"flex",flexDirection:"column"},Sn({theme:t},gm({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=C1(t),o=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),a=gm({values:e.direction,base:o}),i=gm({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,l,c)=>{if(!a[u]){const p=l>0?a[c[l-1]]:"column";a[u]=p}}),r=ir(r,Sn({theme:t},i,(u,l)=>e.useFlexGap?{gap:ni(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Foe(l?a[l]:e.direction)}`]:ni(n,u)}}))}return r=B5(t.breakpoints,r),r};function Loe(e={}){const{createStyledComponent:t=Aoe,useThemeProps:r=joe,componentName:n="MuiStack"}=e,o=()=>de({root:["root"]},u=>pe(n,u),{}),a=t(Noe);return f.forwardRef(function(u,l){const c=r(u),d=Vv(c),{component:p="div",direction:h="column",spacing:m=0,divider:y,children:x,className:b,useFlexGap:v=!1}=d,g=X(d,koe),S={direction:h,spacing:m,useFlexGap:v},w=o();return E.jsx(a,O({as:p,ownerState:S,ref:l,className:ee(w.root,b)},g,{children:y?Moe(x,y):x}))})}function $r(){const e=Uv(Wv);return e[oi]||e}const Doe=["theme"];function Boe(e){let{theme:t}=e,r=X(e,Doe);const n=t[oi];return E.jsx(Roe,O({},r,{themeId:n?oi:void 0,theme:n||t}))}const zoe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},OO=zoe,EO={disabled:!1},up=G.createContext(null);var Uoe=function(t){return t.scrollTop},Fl="unmounted",Pa="exited",Ta="entering",Ei="entered",Qy="exiting",$o=function(e){wo(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=Pa,a.appearStatus=Ta):u=Ei:n.unmountOnExit||n.mountOnEnter?u=Fl:u=Pa,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Fl?{status:Pa}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Ta&&i!==Ei&&(a=Ta):(i===Ta||i===Ei)&&(a=Qy)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Ta){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:jl.findDOMNode(this);i&&Uoe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pa&&this.setState({status:Fl})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[jl.findDOMNode(this),s],l=u[0],c=u[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!o&&!i||EO.disabled){this.safeSetState({status:Ei},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Ta},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:Ei},function(){a.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:jl.findDOMNode(this);if(!a||EO.disabled){this.safeSetState({status:Pa},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Qy},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Pa},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:jl.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Fl)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=X(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return G.createElement(up.Provider,{value:null},typeof i=="function"?i(o,s):G.cloneElement(G.Children.only(i),s))},t}(G.Component);$o.contextType=up;$o.propTypes={};function _i(){}$o.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};$o.UNMOUNTED=Fl;$o.EXITED=Pa;$o.ENTERING=Ta;$o.ENTERED=Ei;$o.EXITING=Qy;const Xx=$o;function Jx(e,t){var r=function(a){return t&&f.isValidElement(a)?t(a):a},n=Object.create(null);return e&&f.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Voe(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var u in t){if(n[u])for(i=0;i<n[u].length;i++){var l=n[u][i];s[n[u][i]]=r(l)}s[u]=r(u)}for(i=0;i<o.length;i++)s[o[i]]=r(o[i]);return s}function La(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Woe(e,t){return Jx(e.children,function(r){return f.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:La(r,"appear",e),enter:La(r,"enter",e),exit:La(r,"exit",e)})})}function Hoe(e,t,r){var n=Jx(e.children),o=Voe(t,n);return Object.keys(o).forEach(function(a){var i=o[a];if(f.isValidElement(i)){var s=a in t,u=a in n,l=t[a],c=f.isValidElement(l)&&!l.props.in;u&&(!s||c)?o[a]=f.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:La(i,"exit",e),enter:La(i,"enter",e)}):!u&&s&&!c?o[a]=f.cloneElement(i,{in:!1}):u&&s&&f.isValidElement(l)&&(o[a]=f.cloneElement(i,{onExited:r.bind(null,i),in:l.props.in,exit:La(i,"exit",e),enter:La(i,"enter",e)}))}}),o}var qoe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Goe={component:"div",childFactory:function(t){return t}},Zx=function(e){wo(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=a.handleExited.bind(soe(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,s=a.handleExited,u=a.firstRender;return{children:u?Woe(o,s):Hoe(o,i,s),firstRender:!1}},r.handleExited=function(o,a){var i=Jx(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var u=O({},s.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=X(o,["component","childFactory"]),u=this.state.contextValue,l=qoe(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?G.createElement(up.Provider,{value:u},l):G.createElement(up.Provider,{value:u},G.createElement(a,s,l))},t}(G.Component);Zx.propTypes={};Zx.defaultProps=Goe;const Koe=Zx,ew=e=>e.scrollTop;function Rs(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function Qoe(e){return pe("MuiPaper",e)}ce("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Yoe=["className","component","elevation","square","variant"],Xoe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return de(a,Qoe,o)},Joe=U("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return O({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&O({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Be("#fff",OO(t.elevation))}, ${Be("#fff",OO(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Zoe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=X(n,Yoe),c=O({},n,{component:a,elevation:i,square:s,variant:u}),d=Xoe(c);return E.jsx(Joe,O({as:a,ownerState:c,className:ee(d.root,o),ref:r},l))}),Oo=Zoe;function ii(e){return typeof e=="string"}function Yi(e,t,r){return e===void 0||ii(e)?t:O({},t,{ownerState:O({},t.ownerState,r)})}const eae={disableDefaultClasses:!1},tae=f.createContext(eae);function rae(e){const{disableDefaultClasses:t}=f.useContext(tae);return r=>t?"":e(r)}function cp(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function hj(e,t,r){return typeof e=="function"?e(t,r):e}function PO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function mj(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=ee(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=O({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=O({},r,o,n);return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const i=cp(O({},o,n)),s=PO(n),u=PO(o),l=t(i),c=ee(l==null?void 0:l.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d=O({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=O({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}const nae=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ua(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=X(e,nae),s=a?{}:hj(n,o),{props:u,internalRef:l}=mj(O({},i,{externalSlotProps:s})),c=ot(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Yi(r,O({},u,{ref:c}),o)}const oae=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],aae=["component","slots","slotProps"],iae=["component"];function Yy(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,u=X(t,oae),{component:l,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=X(a,aae),h=c[e]||n,m=hj(d[e],o),y=mj(O({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m})),{props:{component:x},internalRef:b}=y,v=X(y.props,iae),g=ot(b,m==null?void 0:m.ref,t.ref),S=i?i(v):{},w=O({},o,S),_=e==="root"?x||l:x,$=Yi(h,O({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,v,_&&{as:_},{ref:g}),w);return Object.keys(S).forEach(P=>{delete $[P]}),[h,$]}function sae(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,d]=f.useState(!1),p=ee(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},m=ee(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&d(!0),f.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),E.jsx("span",{className:p,style:h,children:E.jsx("span",{className:m})})}const lae=ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qr=lae,uae=["center","classes","className"];let bh=e=>e,TO,RO,kO,IO;const Xy=550,cae=80,fae=bo(TO||(TO=bh`
|
107
|
+
0% {
|
108
|
+
transform: scale(0);
|
109
|
+
opacity: 0.1;
|
110
|
+
}
|
111
|
+
|
112
|
+
100% {
|
113
|
+
transform: scale(1);
|
114
|
+
opacity: 0.3;
|
115
|
+
}
|
116
|
+
`)),dae=bo(RO||(RO=bh`
|
117
|
+
0% {
|
118
|
+
opacity: 1;
|
119
|
+
}
|
120
|
+
|
121
|
+
100% {
|
122
|
+
opacity: 0;
|
123
|
+
}
|
124
|
+
`)),pae=bo(kO||(kO=bh`
|
125
|
+
0% {
|
126
|
+
transform: scale(1);
|
127
|
+
}
|
128
|
+
|
129
|
+
50% {
|
130
|
+
transform: scale(0.92);
|
131
|
+
}
|
132
|
+
|
133
|
+
100% {
|
134
|
+
transform: scale(1);
|
135
|
+
}
|
136
|
+
`)),vae=U("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hae=U(sae,{name:"MuiTouchRipple",slot:"Ripple"})(IO||(IO=bh`
|
137
|
+
opacity: 0;
|
138
|
+
position: absolute;
|
139
|
+
|
140
|
+
&.${0} {
|
141
|
+
opacity: 0.3;
|
142
|
+
transform: scale(1);
|
143
|
+
animation-name: ${0};
|
144
|
+
animation-duration: ${0}ms;
|
145
|
+
animation-timing-function: ${0};
|
146
|
+
}
|
147
|
+
|
148
|
+
&.${0} {
|
149
|
+
animation-duration: ${0}ms;
|
150
|
+
}
|
151
|
+
|
152
|
+
& .${0} {
|
153
|
+
opacity: 1;
|
154
|
+
display: block;
|
155
|
+
width: 100%;
|
156
|
+
height: 100%;
|
157
|
+
border-radius: 50%;
|
158
|
+
background-color: currentColor;
|
159
|
+
}
|
160
|
+
|
161
|
+
& .${0} {
|
162
|
+
opacity: 0;
|
163
|
+
animation-name: ${0};
|
164
|
+
animation-duration: ${0}ms;
|
165
|
+
animation-timing-function: ${0};
|
166
|
+
}
|
167
|
+
|
168
|
+
& .${0} {
|
169
|
+
position: absolute;
|
170
|
+
/* @noflip */
|
171
|
+
left: 0px;
|
172
|
+
top: 0;
|
173
|
+
animation-name: ${0};
|
174
|
+
animation-duration: 2500ms;
|
175
|
+
animation-timing-function: ${0};
|
176
|
+
animation-iteration-count: infinite;
|
177
|
+
animation-delay: 200ms;
|
178
|
+
}
|
179
|
+
`),qr.rippleVisible,fae,Xy,({theme:e})=>e.transitions.easing.easeInOut,qr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qr.child,qr.childLeaving,dae,Xy,({theme:e})=>e.transitions.easing.easeInOut,qr.childPulsate,pae,({theme:e})=>e.transitions.easing.easeInOut),mae=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=X(n,uae),[u,l]=f.useState([]),c=f.useRef(0),d=f.useRef(null);f.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=f.useRef(!1),h=Fa(),m=f.useRef(null),y=f.useRef(null),x=f.useCallback(S=>{const{pulsate:w,rippleX:_,rippleY:$,rippleSize:P,cb:T}=S;l(R=>[...R,E.jsx(hae,{classes:{ripple:ee(a.ripple,qr.ripple),rippleVisible:ee(a.rippleVisible,qr.rippleVisible),ripplePulsate:ee(a.ripplePulsate,qr.ripplePulsate),child:ee(a.child,qr.child),childLeaving:ee(a.childLeaving,qr.childLeaving),childPulsate:ee(a.childPulsate,qr.childPulsate)},timeout:Xy,pulsate:w,rippleX:_,rippleY:$,rippleSize:P},c.current)]),c.current+=1,d.current=T},[a]),b=f.useCallback((S={},w={},_=()=>{})=>{const{pulsate:$=!1,center:P=o||w.pulsate,fakeElement:T=!1}=w;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const R=T?null:y.current,I=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,L,M;if(P||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)A=Math.round(I.width/2),L=Math.round(I.height/2);else{const{clientX:F,clientY:j}=S.touches&&S.touches.length>0?S.touches[0]:S;A=Math.round(F-I.left),L=Math.round(j-I.top)}if(P)M=Math.sqrt((2*I.width**2+I.height**2)/3),M%2===0&&(M+=1);else{const F=Math.max(Math.abs((R?R.clientWidth:0)-A),A)*2+2,j=Math.max(Math.abs((R?R.clientHeight:0)-L),L)*2+2;M=Math.sqrt(F**2+j**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{x({pulsate:$,rippleX:A,rippleY:L,rippleSize:M,cb:_})},h.start(cae,()=>{m.current&&(m.current(),m.current=null)})):x({pulsate:$,rippleX:A,rippleY:L,rippleSize:M,cb:_})},[o,x,h]),v=f.useCallback(()=>{b({},{pulsate:!0})},[b]),g=f.useCallback((S,w)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{g(S,w)});return}m.current=null,l(_=>_.length>0?_.slice(1):_),d.current=w},[h]);return f.useImperativeHandle(r,()=>({pulsate:v,start:b,stop:g}),[v,b,g]),E.jsx(vae,O({className:ee(qr.root,a.root,i),ref:y},s,{children:E.jsx(Koe,{component:null,exit:!0,children:u})}))}),gae=mae;function yae(e){return pe("MuiButtonBase",e)}const bae=ce("MuiButtonBase",["root","disabled","focusVisible"]),xae=bae,wae=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Sae=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=de({root:["root",t&&"disabled",r&&"focusVisible"]},yae,o);return r&&n&&(i.root+=` ${n}`),i},_ae=U("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xae.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cae=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:x,onDragLeave:b,onFocus:v,onFocusVisible:g,onKeyDown:S,onKeyUp:w,onMouseDown:_,onMouseLeave:$,onMouseUp:P,onTouchEnd:T,onTouchMove:R,onTouchStart:I,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:M,type:F}=n,j=X(n,wae),B=f.useRef(null),k=f.useRef(null),N=ot(k,M),{isFocusVisibleRef:z,onFocus:H,onBlur:K,ref:J}=_v(),[te,ae]=f.useState(!1);l&&te&&ae(!1),f.useImperativeHandle(o,()=>({focusVisible:()=>{ae(!0),B.current.focus()}}),[]);const[fe,Se]=f.useState(!1);f.useEffect(()=>{Se(!0)},[]);const _e=fe&&!c&&!l;f.useEffect(()=>{te&&p&&!c&&fe&&k.current.pulsate()},[c,p,te,fe]);function he(me,pt,Or=d){return Xr(rr=>(pt&&pt(rr),!Or&&k.current&&k.current[me](rr),!0))}const ue=he("start",_),se=he("stop",x),ye=he("stop",b),ie=he("stop",P),Pe=he("stop",me=>{te&&me.preventDefault(),$&&$(me)}),Re=he("start",I),Kt=he("stop",T),Tt=he("stop",R),dt=he("stop",me=>{K(me),z.current===!1&&ae(!1),m&&m(me)},!1),D=Xr(me=>{B.current||(B.current=me.currentTarget),H(me),z.current===!0&&(ae(!0),g&&g(me)),v&&v(me)}),V=()=>{const me=B.current;return u&&u!=="button"&&!(me.tagName==="A"&&me.href)},W=f.useRef(!1),re=Xr(me=>{p&&!W.current&&te&&k.current&&me.key===" "&&(W.current=!0,k.current.stop(me,()=>{k.current.start(me)})),me.target===me.currentTarget&&V()&&me.key===" "&&me.preventDefault(),S&&S(me),me.target===me.currentTarget&&V()&&me.key==="Enter"&&!l&&(me.preventDefault(),y&&y(me))}),Y=Xr(me=>{p&&me.key===" "&&k.current&&te&&!me.defaultPrevented&&(W.current=!1,k.current.stop(me,()=>{k.current.pulsate(me)})),w&&w(me),y&&me.target===me.currentTarget&&V()&&me.key===" "&&!me.defaultPrevented&&y(me)});let q=u;q==="button"&&(j.href||j.to)&&(q=h);const oe={};q==="button"?(oe.type=F===void 0?"button":F,oe.disabled=l):(!j.href&&!j.to&&(oe.role="button"),l&&(oe["aria-disabled"]=l));const $e=ot(r,J,B),Me=O({},n,{centerRipple:a,component:u,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:te}),Oe=Sae(Me);return E.jsxs(_ae,O({as:q,className:ee(Oe.root,s),ownerState:Me,onBlur:dt,onClick:y,onContextMenu:se,onFocus:D,onKeyDown:re,onKeyUp:Y,onMouseDown:ue,onMouseLeave:Pe,onMouseUp:ie,onDragLeave:ye,onTouchEnd:Kt,onTouchMove:Tt,onTouchStart:Re,ref:$e,tabIndex:l?-1:A,type:F},oe,j,{children:[i,_e?E.jsx(gae,O({ref:N,center:a},L)):null]}))}),ba=Cae,gj="base";function $ae(e){return`${gj}--${e}`}function Oae(e,t){return`${gj}-${e}-${t}`}function yj(e,t){const r=_R[t];return r?$ae(r):Oae(e,t)}function Eae(e,t){const r={};return t.forEach(n=>{r[n]=yj(e,n)}),r}function AO(e){return e.substring(2).toLowerCase()}function Pae(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Tae(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=f.useRef(!1),s=f.useRef(null),u=f.useRef(!1),l=f.useRef(!1);f.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=ot(t.ref,s),d=Xr(m=>{const y=l.current;l.current=!1;const x=Et(s.current);if(!u.current||!s.current||"clientX"in m&&Pae(m,x))return;if(i.current){i.current=!1;return}let b;m.composedPath?b=m.composedPath().indexOf(s.current)>-1:b=!x.documentElement.contains(m.target)||s.current.contains(m.target),!b&&(r||!y)&&o(m)}),p=m=>y=>{l.current=!0;const x=t.props[m];x&&x(y)},h={ref:c};return a!==!1&&(h[a]=p(a)),f.useEffect(()=>{if(a!==!1){const m=AO(a),y=Et(s.current),x=()=>{i.current=!0};return y.addEventListener(m,d),y.addEventListener("touchmove",x),()=>{y.removeEventListener(m,d),y.removeEventListener("touchmove",x)}}},[d,a]),n!==!1&&(h[n]=p(n)),f.useEffect(()=>{if(n!==!1){const m=AO(n),y=Et(s.current);return y.addEventListener(m,d),()=>{y.removeEventListener(m,d)}}},[d,n]),E.jsx(f.Fragment,{children:f.cloneElement(t,h)})}const Rae=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kae(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Iae(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Aae(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Iae(e))}function jae(e){const t=[],r=[];return Array.from(e.querySelectorAll(Rae)).forEach((n,o)=>{const a=kae(n);a===-1||!Aae(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function Mae(){return!0}function Fae(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=jae,isEnabled:i=Mae,open:s}=e,u=f.useRef(!1),l=f.useRef(null),c=f.useRef(null),d=f.useRef(null),p=f.useRef(null),h=f.useRef(!1),m=f.useRef(null),y=ot(t.ref,m),x=f.useRef(null);f.useEffect(()=>{!s||!m.current||(h.current=!r)},[r,s]),f.useEffect(()=>{if(!s||!m.current)return;const g=Et(m.current);return m.current.contains(g.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[s]),f.useEffect(()=>{if(!s||!m.current)return;const g=Et(m.current),S=$=>{x.current=$,!(n||!i()||$.key!=="Tab")&&g.activeElement===m.current&&$.shiftKey&&(u.current=!0,c.current&&c.current.focus())},w=()=>{const $=m.current;if($===null)return;if(!g.hasFocus()||!i()||u.current){u.current=!1;return}if($.contains(g.activeElement)||n&&g.activeElement!==l.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let P=[];if((g.activeElement===l.current||g.activeElement===c.current)&&(P=a(m.current)),P.length>0){var T,R;const I=!!((T=x.current)!=null&&T.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),A=P[0],L=P[P.length-1];typeof A!="string"&&typeof L!="string"&&(I?L.focus():A.focus())}else $.focus()};g.addEventListener("focusin",w),g.addEventListener("keydown",S,!0);const _=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(_),g.removeEventListener("focusin",w),g.removeEventListener("keydown",S,!0)}},[r,n,o,i,s,a]);const b=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0,p.current=g.target;const S=t.props.onFocus;S&&S(g)},v=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0};return E.jsxs(f.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:y,onFocus:b}),E.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function Nae(e){return typeof e=="function"?e():e}const bj=f.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=f.useState(null),u=ot(f.isValidElement(n)?n.ref:null,r);if(Mr(()=>{a||s(Nae(o)||document.body)},[o,a]),Mr(()=>{if(i&&!a)return Fd(r,i),()=>{Fd(r,null)}},[r,i,a]),a){if(f.isValidElement(n)){const l={ref:u};return f.cloneElement(n,l)}return E.jsx(f.Fragment,{children:n})}return E.jsx(f.Fragment,{children:i&&cv.createPortal(n,i)})});function Lae(e){const t=Et(e);return t.body===e?Vn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ru(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jO(e){return parseInt(Vn(e).getComputedStyle(e).paddingRight,10)||0}function Dae(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function MO(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,u=!Dae(i);s&&u&&ru(i,o)})}function Nm(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Bae(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Lae(n)){const i=SR(Et(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${jO(n)+i}px`;const s=Et(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${jO(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Et(n).body;else{const i=n.parentElement,s=Vn(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function zae(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Uae{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&ru(t.modalRef,!1);const o=zae(r);MO(r,t.mount,t.modalRef,o,!0);const a=Nm(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Nm(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Bae(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Nm(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ru(t.modalRef,r),MO(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&ru(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Vae(e){return typeof e=="function"?e():e}function Wae(e){return e?e.props.hasOwnProperty("in"):!1}const Hae=new Uae;function qae(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Hae,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:d}=e,p=f.useRef({}),h=f.useRef(null),m=f.useRef(null),y=ot(m,d),[x,b]=f.useState(!c),v=Wae(u);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const S=()=>Et(h.current),w=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),_=()=>{o.mount(w(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},$=Xr(()=>{const j=Vae(t)||S().body;o.add(w(),j),m.current&&_()}),P=f.useCallback(()=>o.isTopModal(w()),[o]),T=Xr(j=>{h.current=j,j&&(c&&P()?_():m.current&&ru(m.current,g))}),R=f.useCallback(()=>{o.remove(w(),g)},[g,o]);f.useEffect(()=>()=>{R()},[R]),f.useEffect(()=>{c?$():(!v||!a)&&R()},[c,R,v,a,$]);const I=j=>B=>{var k;(k=j.onKeyDown)==null||k.call(j,B),!(B.key!=="Escape"||B.which===229||!P())&&(r||(B.stopPropagation(),l&&l(B,"escapeKeyDown")))},A=j=>B=>{var k;(k=j.onClick)==null||k.call(j,B),B.target===B.currentTarget&&l&&l(B,"backdropClick")};return{getRootProps:(j={})=>{const B=cp(e);delete B.onTransitionEnter,delete B.onTransitionExited;const k=O({},B,j);return O({role:"presentation"},k,{onKeyDown:I(k),ref:y})},getBackdropProps:(j={})=>{const B=j;return O({"aria-hidden":!0},B,{onClick:A(B),open:c})},getTransitionProps:()=>{const j=()=>{b(!1),i&&i()},B=()=>{b(!0),s&&s(),a&&R()};return{onEnter:cy(j,u==null?void 0:u.props.onEnter),onExited:cy(B,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:T,isTopModal:P,exited:x,hasTransition:v}}var xr="top",nn="bottom",on="right",wr="left",tw="auto",Pc=[xr,nn,on,wr],ks="start",Vu="end",Gae="clippingParents",xj="viewport",Sl="popper",Kae="reference",FO=Pc.reduce(function(e,t){return e.concat([t+"-"+ks,t+"-"+Vu])},[]),wj=[].concat(Pc,[tw]).reduce(function(e,t){return e.concat([t,t+"-"+ks,t+"-"+Vu])},[]),Qae="beforeRead",Yae="read",Xae="afterRead",Jae="beforeMain",Zae="main",eie="afterMain",tie="beforeWrite",rie="write",nie="afterWrite",oie=[Qae,Yae,Xae,Jae,Zae,eie,tie,rie,nie];function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function Fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function si(e){var t=Fr(e).Element;return e instanceof t||e instanceof Element}function Zr(e){var t=Fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rw(e){if(typeof ShadowRoot>"u")return!1;var t=Fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aie(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Zr(a)||!Wn(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function iie(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!Zr(o)||!Wn(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const sie={name:"applyStyles",enabled:!0,phase:"write",fn:aie,effect:iie,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Ha=Math.max,fp=Math.min,Is=Math.round;function Jy(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Sj(){return!/^((?!chrome|android).)*safari/i.test(Jy())}function As(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Zr(e)&&(o=e.offsetWidth>0&&Is(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Is(n.height)/e.offsetHeight||1);var i=si(e)?Fr(e):window,s=i.visualViewport,u=!Sj()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/o,c=(n.top+(u&&s?s.offsetTop:0))/a,d=n.width/o,p=n.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function nw(e){var t=As(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function _j(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&rw(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function go(e){return Fr(e).getComputedStyle(e)}function lie(e){return["table","td","th"].indexOf(Wn(e))>=0}function xa(e){return((si(e)?e.ownerDocument:e.document)||window.document).documentElement}function xh(e){return Wn(e)==="html"?e:e.assignedSlot||e.parentNode||(rw(e)?e.host:null)||xa(e)}function NO(e){return!Zr(e)||go(e).position==="fixed"?null:e.offsetParent}function uie(e){var t=/firefox/i.test(Jy()),r=/Trident/i.test(Jy());if(r&&Zr(e)){var n=go(e);if(n.position==="fixed")return null}var o=xh(e);for(rw(o)&&(o=o.host);Zr(o)&&["html","body"].indexOf(Wn(o))<0;){var a=go(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Tc(e){for(var t=Fr(e),r=NO(e);r&&lie(r)&&go(r).position==="static";)r=NO(r);return r&&(Wn(r)==="html"||Wn(r)==="body"&&go(r).position==="static")?t:r||uie(e)||t}function ow(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nu(e,t,r){return Ha(e,fp(t,r))}function cie(e,t,r){var n=nu(e,t,r);return n>r?r:n}function Cj(){return{top:0,right:0,bottom:0,left:0}}function $j(e){return Object.assign({},Cj(),e)}function Oj(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var fie=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$j(typeof t!="number"?t:Oj(t,Pc))};function die(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Un(r.placement),u=ow(s),l=[wr,on].indexOf(s)>=0,c=l?"height":"width";if(!(!a||!i)){var d=fie(o.padding,r),p=nw(a),h=u==="y"?xr:wr,m=u==="y"?nn:on,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],x=i[u]-r.rects.reference[u],b=Tc(a),v=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,g=y/2-x/2,S=d[h],w=v-p[c]-d[m],_=v/2-p[c]/2+g,$=nu(S,_,w),P=u;r.modifiersData[n]=(t={},t[P]=$,t.centerOffset=$-_,t)}}function pie(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||_j(t.elements.popper,o)&&(t.elements.arrow=o))}const vie={name:"arrow",enabled:!0,phase:"main",fn:die,effect:pie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function js(e){return e.split("-")[1]}var hie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mie(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Is(r*o)/o||0,y:Is(n*o)/o||0}}function LO(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,h=p===void 0?0:p,m=i.y,y=m===void 0?0:m,x=typeof c=="function"?c({x:h,y}):{x:h,y};h=x.x,y=x.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),g=wr,S=xr,w=window;if(l){var _=Tc(r),$="clientHeight",P="clientWidth";if(_===Fr(r)&&(_=xa(r),go(_).position!=="static"&&s==="absolute"&&($="scrollHeight",P="scrollWidth")),_=_,o===xr||(o===wr||o===on)&&a===Vu){S=nn;var T=d&&_===w&&w.visualViewport?w.visualViewport.height:_[$];y-=T-n.height,y*=u?1:-1}if(o===wr||(o===xr||o===nn)&&a===Vu){g=on;var R=d&&_===w&&w.visualViewport?w.visualViewport.width:_[P];h-=R-n.width,h*=u?1:-1}}var I=Object.assign({position:s},l&&hie),A=c===!0?mie({x:h,y},Fr(r)):{x:h,y};if(h=A.x,y=A.y,u){var L;return Object.assign({},I,(L={},L[S]=v?"0":"",L[g]=b?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",L))}return Object.assign({},I,(t={},t[S]=v?y+"px":"",t[g]=b?h+"px":"",t.transform="",t))}function gie(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:Un(t.placement),variation:js(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,LO(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LO(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gie,data:{}};var sf={passive:!0};function bie(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,u=Fr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",r.update,sf)}),s&&u.addEventListener("resize",r.update,sf),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",r.update,sf)}),s&&u.removeEventListener("resize",r.update,sf)}}const xie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bie,data:{}};var wie={left:"right",right:"left",bottom:"top",top:"bottom"};function Hf(e){return e.replace(/left|right|bottom|top/g,function(t){return wie[t]})}var Sie={start:"end",end:"start"};function DO(e){return e.replace(/start|end/g,function(t){return Sie[t]})}function aw(e){var t=Fr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function iw(e){return As(xa(e)).left+aw(e).scrollLeft}function _ie(e,t){var r=Fr(e),n=xa(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;var l=Sj();(l||!l&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s+iw(e),y:u}}function Cie(e){var t,r=xa(e),n=aw(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ha(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ha(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+iw(e),u=-n.scrollTop;return go(o||r).direction==="rtl"&&(s+=Ha(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:u}}function sw(e){var t=go(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ej(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:Zr(e)&&sw(e)?e:Ej(xh(e))}function ou(e,t){var r;t===void 0&&(t=[]);var n=Ej(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Fr(n),i=o?[a].concat(a.visualViewport||[],sw(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(ou(xh(i)))}function Zy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $ie(e,t){var r=As(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function BO(e,t,r){return t===xj?Zy(_ie(e,r)):si(t)?$ie(t,r):Zy(Cie(xa(e)))}function Oie(e){var t=ou(xh(e)),r=["absolute","fixed"].indexOf(go(e).position)>=0,n=r&&Zr(e)?Tc(e):e;return si(n)?t.filter(function(o){return si(o)&&_j(o,n)&&Wn(o)!=="body"}):[]}function Eie(e,t,r,n){var o=t==="clippingParents"?Oie(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(u,l){var c=BO(e,l,n);return u.top=Ha(c.top,u.top),u.right=fp(c.right,u.right),u.bottom=fp(c.bottom,u.bottom),u.left=Ha(c.left,u.left),u},BO(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Pj(e){var t=e.reference,r=e.element,n=e.placement,o=n?Un(n):null,a=n?js(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case xr:u={x:i,y:t.y-r.height};break;case nn:u={x:i,y:t.y+t.height};break;case on:u={x:t.x+t.width,y:s};break;case wr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=o?ow(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case ks:u[l]=u[l]-(t[c]/2-r[c]/2);break;case Vu:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function Wu(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?Gae:s,l=r.rootBoundary,c=l===void 0?xj:l,d=r.elementContext,p=d===void 0?Sl:d,h=r.altBoundary,m=h===void 0?!1:h,y=r.padding,x=y===void 0?0:y,b=$j(typeof x!="number"?x:Oj(x,Pc)),v=p===Sl?Kae:Sl,g=e.rects.popper,S=e.elements[m?v:p],w=Eie(si(S)?S:S.contextElement||xa(e.elements.popper),u,c,i),_=As(e.elements.reference),$=Pj({reference:_,element:g,strategy:"absolute",placement:o}),P=Zy(Object.assign({},g,$)),T=p===Sl?P:_,R={top:w.top-T.top+b.top,bottom:T.bottom-w.bottom+b.bottom,left:w.left-T.left+b.left,right:T.right-w.right+b.right},I=e.modifiersData.offset;if(p===Sl&&I){var A=I[o];Object.keys(R).forEach(function(L){var M=[on,nn].indexOf(L)>=0?1:-1,F=[xr,nn].indexOf(L)>=0?"y":"x";R[L]+=A[F]*M})}return R}function Pie(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?wj:u,c=js(n),d=c?s?FO:FO.filter(function(m){return js(m)===c}):Pc,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,y){return m[y]=Wu(e,{placement:y,boundary:o,rootBoundary:a,padding:i})[Un(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function Tie(e){if(Un(e)===tw)return[];var t=Hf(e);return[DO(e),t,DO(t)]}function Rie(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,y=r.allowedAutoPlacements,x=t.options.placement,b=Un(x),v=b===x,g=u||(v||!m?[Hf(x)]:Tie(x)),S=[x].concat(g).reduce(function(te,ae){return te.concat(Un(ae)===tw?Pie(t,{placement:ae,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:y}):ae)},[]),w=t.rects.reference,_=t.rects.popper,$=new Map,P=!0,T=S[0],R=0;R<S.length;R++){var I=S[R],A=Un(I),L=js(I)===ks,M=[xr,nn].indexOf(A)>=0,F=M?"width":"height",j=Wu(t,{placement:I,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),B=M?L?on:wr:L?nn:xr;w[F]>_[F]&&(B=Hf(B));var k=Hf(B),N=[];if(a&&N.push(j[A]<=0),s&&N.push(j[B]<=0,j[k]<=0),N.every(function(te){return te})){T=I,P=!1;break}$.set(I,N)}if(P)for(var z=m?3:1,H=function(ae){var fe=S.find(function(Se){var _e=$.get(Se);if(_e)return _e.slice(0,ae).every(function(he){return he})});if(fe)return T=fe,"break"},K=z;K>0;K--){var J=H(K);if(J==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}const kie={name:"flip",enabled:!0,phase:"main",fn:Rie,requiresIfExists:["offset"],data:{_skip:!1}};function zO(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function UO(e){return[xr,on,nn,wr].some(function(t){return e[t]>=0})}function Iie(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Wu(t,{elementContext:"reference"}),s=Wu(t,{altBoundary:!0}),u=zO(i,n),l=zO(s,o,a),c=UO(u),d=UO(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Aie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Iie};function jie(e,t,r){var n=Un(e),o=[wr,xr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[wr,on].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Mie(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=wj.reduce(function(c,d){return c[d]=jie(d,t.rects,a),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Fie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mie};function Nie(e){var t=e.state,r=e.name;t.modifiersData[r]=Pj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Lie={name:"popperOffsets",enabled:!0,phase:"read",fn:Nie,data:{}};function Die(e){return e==="x"?"y":"x"}function Bie(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,h=p===void 0?!0:p,m=r.tetherOffset,y=m===void 0?0:m,x=Wu(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),b=Un(t.placement),v=js(t.placement),g=!v,S=ow(b),w=Die(S),_=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,R=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(_){if(a){var L,M=S==="y"?xr:wr,F=S==="y"?nn:on,j=S==="y"?"height":"width",B=_[S],k=B+x[M],N=B-x[F],z=h?-P[j]/2:0,H=v===ks?$[j]:P[j],K=v===ks?-P[j]:-$[j],J=t.elements.arrow,te=h&&J?nw(J):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Cj(),fe=ae[M],Se=ae[F],_e=nu(0,$[j],te[j]),he=g?$[j]/2-z-_e-fe-R.mainAxis:H-_e-fe-R.mainAxis,ue=g?-$[j]/2+z+_e+Se+R.mainAxis:K+_e+Se+R.mainAxis,se=t.elements.arrow&&Tc(t.elements.arrow),ye=se?S==="y"?se.clientTop||0:se.clientLeft||0:0,ie=(L=I==null?void 0:I[S])!=null?L:0,Pe=B+he-ie-ye,Re=B+ue-ie,Kt=nu(h?fp(k,Pe):k,B,h?Ha(N,Re):N);_[S]=Kt,A[S]=Kt-B}if(s){var Tt,dt=S==="x"?xr:wr,D=S==="x"?nn:on,V=_[w],W=w==="y"?"height":"width",re=V+x[dt],Y=V-x[D],q=[xr,wr].indexOf(b)!==-1,oe=(Tt=I==null?void 0:I[w])!=null?Tt:0,$e=q?re:V-$[W]-P[W]-oe+R.altAxis,Me=q?V+$[W]+P[W]-oe-R.altAxis:Y,Oe=h&&q?cie($e,V,Me):nu(h?$e:re,V,h?Me:Y);_[w]=Oe,A[w]=Oe-V}t.modifiersData[n]=A}}const zie={name:"preventOverflow",enabled:!0,phase:"main",fn:Bie,requiresIfExists:["offset"]};function Uie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vie(e){return e===Fr(e)||!Zr(e)?aw(e):Uie(e)}function Wie(e){var t=e.getBoundingClientRect(),r=Is(t.width)/e.offsetWidth||1,n=Is(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Hie(e,t,r){r===void 0&&(r=!1);var n=Zr(t),o=Zr(t)&&Wie(t),a=xa(t),i=As(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Wn(t)!=="body"||sw(a))&&(s=Vie(t)),Zr(t)?(u=As(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=iw(a))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function qie(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function Gie(e){var t=qie(e);return oie.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Kie(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Qie(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var VO={placement:"bottom",modifiers:[],strategy:"absolute"};function WO(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Yie(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?VO:o;return function(s,u,l){l===void 0&&(l=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},VO,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],p=!1,h={state:c,setOptions:function(b){var v=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,v),c.scrollParents={reference:si(s)?ou(s):s.contextElement?ou(s.contextElement):[],popper:ou(u)};var g=Gie(Qie([].concat(n,c.options.modifiers)));return c.orderedModifiers=g.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,v=b.reference,g=b.popper;if(WO(v,g)){c.rects={reference:Hie(v,Tc(g),c.options.strategy==="fixed"),popper:nw(g)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var w=c.orderedModifiers[S],_=w.fn,$=w.options,P=$===void 0?{}:$,T=w.name;typeof _=="function"&&(c=_({state:c,options:P,name:T,instance:h})||c)}}}},update:Kie(function(){return new Promise(function(x){h.forceUpdate(),x(c)})}),destroy:function(){y(),p=!0}};if(!WO(s,u))return h;h.setOptions(l).then(function(x){!p&&l.onFirstUpdate&&l.onFirstUpdate(x)});function m(){c.orderedModifiers.forEach(function(x){var b=x.name,v=x.options,g=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var w=S({state:c,name:b,instance:h,options:g}),_=function(){};d.push(w||_)}})}function y(){d.forEach(function(x){return x()}),d=[]}return h}}var Xie=[xie,Lie,yie,sie,Fie,kie,zie,vie,Aie],Jie=Yie({defaultModifiers:Xie});const Tj="Popper";function Zie(e){return yj(Tj,e)}Eae(Tj,["root"]);const ese=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tse=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function rse(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function eb(e){return typeof e=="function"?e():e}function nse(e){return e.nodeType!==void 0}const ose=()=>de({root:["root"]},rae(Zie)),ase={},ise=f.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:y}=t,x=X(t,ese),b=f.useRef(null),v=ot(b,r),g=f.useRef(null),S=ot(g,p),w=f.useRef(S);Mr(()=>{w.current=S},[S]),f.useImperativeHandle(p,()=>g.current,[]);const _=rse(c,i),[$,P]=f.useState(_),[T,R]=f.useState(eb(o));f.useEffect(()=>{g.current&&g.current.forceUpdate()}),f.useEffect(()=>{o&&R(eb(o))},[o]),Mr(()=>{if(!T||!l)return;const F=k=>{P(k.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:k})=>{F(k)}}];u!=null&&(j=j.concat(u)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const B=Jie(T,b.current,O({placement:_},d,{modifiers:j}));return w.current(B),()=>{B.destroy(),w.current(null)}},[T,s,u,l,d,_]);const I={placement:$};y!==null&&(I.TransitionProps=y);const A=ose(),L=(n=m.root)!=null?n:"div",M=ua({elementType:L,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:A.root});return E.jsx(L,O({},M,{children:typeof a=="function"?a(I):a}))}),sse=f.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=ase,popperRef:h,style:m,transition:y=!1,slotProps:x={},slots:b={}}=t,v=X(t,tse),[g,S]=f.useState(!0),w=()=>{S(!1)},_=()=>{S(!0)};if(!u&&!c&&(!y||g))return null;let $;if(a)$=a;else if(n){const R=eb(n);$=R&&nse(R)?Et(R).body:Et(null).body}const P=!c&&u&&(!y||g)?"none":void 0,T=y?{in:c,onEnter:w,onExited:_}:void 0;return E.jsx(bj,{disablePortal:s,container:$,children:E.jsx(ise,O({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!g:c,placement:d,popperOptions:p,popperRef:h,slotProps:x,slots:b},v,{style:O({position:"fixed",top:0,left:0,display:P},m),TransitionProps:T,children:o}))})});function lse(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Fa();f.useEffect(()=>{if(!o)return;function b(v){v.defaultPrevented||(v.key==="Escape"||v.key==="Esc")&&(n==null||n(v,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=Xr((b,v)=>{n==null||n(b,v)}),u=Xr(b=>{!n||b==null||i.start(b,()=>{s(null,"timeout")})});f.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const l=b=>{n==null||n(b,"clickaway")},c=i.clear,d=f.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),p=b=>v=>{const g=b.onBlur;g==null||g(v),d()},h=b=>v=>{const g=b.onFocus;g==null||g(v),c()},m=b=>v=>{const g=b.onMouseEnter;g==null||g(v),c()},y=b=>v=>{const g=b.onMouseLeave;g==null||g(v),d()};return f.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[r,o,d,c]),{getRootProps:(b={})=>{const v=O({},cp(e),cp(b));return O({role:"presentation"},b,v,{onBlur:p(v),onFocus:h(v),onMouseEnter:m(v),onMouseLeave:y(v)})},onClickAway:l}}const use=["onChange","maxRows","minRows","style","value"];function lf(e){return parseInt(e,10)||0}const cse={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function fse(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const dse=f.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,u=X(t,use),{current:l}=f.useRef(s!=null),c=f.useRef(null),d=ot(r,c),p=f.useRef(null),h=f.useCallback(()=>{const x=c.current,v=Vn(x).getComputedStyle(x);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const g=p.current;g.style.width=v.width,g.value=x.value||t.placeholder||"x",g.value.slice(-1)===`
|
180
|
+
`&&(g.value+=" ");const S=v.boxSizing,w=lf(v.paddingBottom)+lf(v.paddingTop),_=lf(v.borderBottomWidth)+lf(v.borderTopWidth),$=g.scrollHeight;g.value="x";const P=g.scrollHeight;let T=$;a&&(T=Math.max(Number(a)*P,T)),o&&(T=Math.min(Number(o)*P,T)),T=Math.max(T,P);const R=T+(S==="border-box"?w+_:0),I=Math.abs(T-$)<=1;return{outerHeightStyle:R,overflowing:I}},[o,a,t.placeholder]),m=f.useCallback(()=>{const x=h();if(fse(x))return;const b=c.current;b.style.height=`${x.outerHeightStyle}px`,b.style.overflow=x.overflowing?"hidden":""},[h]);Mr(()=>{const x=()=>{m()};let b;const v=wv(x),g=c.current,S=Vn(g);S.addEventListener("resize",v);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(x),w.observe(g)),()=>{v.clear(),cancelAnimationFrame(b),S.removeEventListener("resize",v),w&&w.disconnect()}},[h,m]),Mr(()=>{m()});const y=x=>{l||m(),n&&n(x)};return E.jsxs(f.Fragment,{children:[E.jsx("textarea",O({value:s,onChange:y,ref:d,rows:a},u)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:O({},cse.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function pse(e){return pe("MuiAlert",e)}const vse=ce("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),HO=vse;function hse(e){return pe("MuiIconButton",e)}const mse=ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),gse=mse,yse=["edge","children","className","color","disabled","disableFocusRipple","size"],bse=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Q(n)}`,o&&`edge${Q(o)}`,`size${Q(a)}`]};return de(i,hse,t)},xse=U(ba,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Q(r.color)}`],r.edge&&t[`edge${Q(r.edge)}`],t[`size${Q(r.size)}`]]}})(({theme:e,ownerState:t})=>O({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return O({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&O({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":O({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${gse.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),wse=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,d=X(n,yse),p=O({},n,{edge:o,color:s,disabled:u,disableFocusRipple:l,size:c}),h=bse(p);return E.jsx(xse,O({className:ee(h.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},d,{ownerState:p,children:a}))}),mt=wse,Sse=jt(E.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),_se=jt(E.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Cse=jt(E.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),$se=jt(E.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Ose=jt(E.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ese=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Pse=e=>{const{variant:t,color:r,severity:n,classes:o}=e,a={root:["root",`${t}${Q(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return de(a,pse,o)},Tse=U(Oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Q(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Gy:Ky,n=e.palette.mode==="light"?Ky:Gy,o=t.color||t.severity;return O({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${HO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${HO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&O({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),Rse=U("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),kse=U("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),qO=U("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),GO={success:E.jsx(Sse,{fontSize:"inherit"}),warning:E.jsx(_se,{fontSize:"inherit"}),error:E.jsx(Cse,{fontSize:"inherit"}),info:E.jsx($se,{fontSize:"inherit"})},Ise=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiAlert"}),{action:o,children:a,className:i,closeText:s="Close",color:u,components:l={},componentsProps:c={},icon:d,iconMapping:p=GO,onClose:h,role:m="alert",severity:y="success",slotProps:x={},slots:b={},variant:v="standard"}=n,g=X(n,Ese),S=O({},n,{color:u,severity:y,variant:v}),w=Pse(S),_={slots:O({closeButton:l.CloseButton,closeIcon:l.CloseIcon},b),slotProps:O({},c,x)},[$,P]=Yy("closeButton",{elementType:mt,externalForwardedProps:_,ownerState:S}),[T,R]=Yy("closeIcon",{elementType:Ose,externalForwardedProps:_,ownerState:S});return E.jsxs(Tse,O({role:m,elevation:0,ownerState:S,className:ee(w.root,i),ref:r},g,{children:[d!==!1?E.jsx(Rse,{ownerState:S,className:w.icon,children:d||p[y]||GO[y]}):null,E.jsx(kse,{ownerState:S,className:w.message,children:a}),o!=null?E.jsx(qO,{ownerState:S,className:w.action,children:o}):null,o==null&&h?E.jsx(qO,{ownerState:S,className:w.action,children:E.jsx($,O({size:"small","aria-label":s,title:s,color:"inherit",onClick:h},P,{children:E.jsx(T,O({fontSize:"small"},R))}))}):null]}))}),Ase=Ise;function jse(e){return pe("MuiTypography",e)}ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Mse=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Fse=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Q(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return de(s,jse,i)},Nse=U("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Q(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>O({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),KO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Lse={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Dse=e=>Lse[e]||e,Bse=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTypography"}),o=Dse(n.color),a=Vv(O({},n,{color:o})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=KO}=a,m=X(a,Mse),y=O({},a,{align:i,color:o,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:d,variant:p,variantMapping:h}),x=u||(d?"p":h[p]||KO[p])||"span",b=Fse(y);return E.jsx(Nse,O({as:x,ref:r,ownerState:y,className:ee(b.root,s)},m))}),Te=Bse;function zse(e){return pe("MuiAppBar",e)}ce("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Use=["className","color","enableColorOnDark","position"],Vse=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${Q(t)}`,`position${Q(r)}`]};return de(o,zse,n)},uf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Wse=U(Oo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Q(r.position)}`],t[`color${Q(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&O({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:uf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:uf(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:uf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:uf(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Hse=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=X(n,Use),l=O({},n,{color:a,position:s,enableColorOnDark:i}),c=Vse(l);return E.jsx(Wse,O({square:!0,component:"header",ownerState:l,elevation:4,className:ee(c.root,o,s==="fixed"&&"mui-fixed"),ref:r},u))}),qse=Hse;var lw={};Object.defineProperty(lw,"__esModule",{value:!0});var Rj=lw.default=void 0,Gse=Qse(f),Kse=uk;function kj(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kj=function(n){return n?r:t})(e)}function Qse(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kj(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Yse(e){return Object.keys(e).length===0}function Xse(e=null){const t=Gse.useContext(Kse.ThemeContext);return!t||Yse(t)?e:t}Rj=lw.default=Xse;const Jse=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Zse=U(sse,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ele=f.forwardRef(function(t,r){var n;const o=Rj(),a=ve({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:y,popperOptions:x,popperRef:b,transition:v,slots:g,slotProps:S}=a,w=X(a,Jse),_=(n=g==null?void 0:g.root)!=null?n:u==null?void 0:u.Root,$=O({anchorEl:i,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:y,popperOptions:x,popperRef:b,transition:v},w);return E.jsx(Zse,O({as:s,direction:o==null?void 0:o.direction,slots:{root:_},slotProps:S??l},$,{ref:r}))}),Ij=ele;function rl({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const tle=f.createContext(void 0),wh=tle;function wa(){return f.useContext(wh)}function rle(e){return E.jsx(loe,O({},e,{defaultTheme:Wv,themeId:oi}))}function QO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dp(e,t=!1){return e&&(QO(e.value)&&e.value!==""||t&&QO(e.defaultValue)&&e.defaultValue!=="")}function nle(e){return e.startAdornment}function ole(e){return pe("MuiInputBase",e)}const ale=ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ms=ale,ile=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Sh=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Q(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},_h=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},sle=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,y={root:["root",`color${Q(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Q(p)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return de(y,ole,t)},Ch=U("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sh})(({theme:e,ownerState:t})=>O({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ms.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&O({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),$h=U("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_h})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=O({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return O({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ms.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Ms.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),lle=E.jsx(rle,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ule=f.forwardRef(function(t,r){var n;const o=ve({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:y=!1,id:x,inputComponent:b="input",inputProps:v={},inputRef:g,maxRows:S,minRows:w,multiline:_=!1,name:$,onBlur:P,onChange:T,onClick:R,onFocus:I,onKeyDown:A,onKeyUp:L,placeholder:M,readOnly:F,renderSuffix:j,rows:B,slotProps:k={},slots:N={},startAdornment:z,type:H="text",value:K}=o,J=X(o,ile),te=v.value!=null?v.value:K,{current:ae}=f.useRef(te!=null),fe=f.useRef(),Se=f.useCallback(Oe=>{},[]),_e=ot(fe,g,v.ref,Se),[he,ue]=f.useState(!1),se=wa(),ye=rl({props:o,muiFormControl:se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=se?se.focused:he,f.useEffect(()=>{!se&&p&&he&&(ue(!1),P&&P())},[se,p,he,P]);const ie=se&&se.onFilled,Pe=se&&se.onEmpty,Re=f.useCallback(Oe=>{dp(Oe)?ie&&ie():Pe&&Pe()},[ie,Pe]);Mr(()=>{ae&&Re({value:te})},[te,Re,ae]);const Kt=Oe=>{if(ye.disabled){Oe.stopPropagation();return}I&&I(Oe),v.onFocus&&v.onFocus(Oe),se&&se.onFocus?se.onFocus(Oe):ue(!0)},Tt=Oe=>{P&&P(Oe),v.onBlur&&v.onBlur(Oe),se&&se.onBlur?se.onBlur(Oe):ue(!1)},dt=(Oe,...me)=>{if(!ae){const pt=Oe.target||fe.current;if(pt==null)throw new Error(mo(1));Re({value:pt.value})}v.onChange&&v.onChange(Oe,...me),T&&T(Oe,...me)};f.useEffect(()=>{Re(fe.current)},[]);const D=Oe=>{fe.current&&Oe.currentTarget===Oe.target&&fe.current.focus(),R&&R(Oe)};let V=b,W=v;_&&V==="input"&&(B?W=O({type:void 0,minRows:B,maxRows:B},W):W=O({type:void 0,maxRows:S,minRows:w},W),V=dse);const re=Oe=>{Re(Oe.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};f.useEffect(()=>{se&&se.setAdornedStart(!!z)},[se,z]);const Y=O({},o,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:m,error:ye.error,focused:ye.focused,formControl:se,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:_,size:ye.size,startAdornment:z,type:H}),q=sle(Y),oe=N.root||l.Root||Ch,$e=k.root||c.root||{},Me=N.input||l.Input||$h;return W=O({},W,(n=k.input)!=null?n:c.input),E.jsxs(f.Fragment,{children:[!h&&lle,E.jsxs(oe,O({},$e,!ii(oe)&&{ownerState:O({},Y,$e.ownerState)},{ref:r,onClick:D},J,{className:ee(q.root,$e.className,u,F&&"MuiInputBase-readOnly"),children:[z,E.jsx(wh.Provider,{value:null,children:E.jsx(Me,O({ownerState:Y,"aria-invalid":ye.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:d,disabled:ye.disabled,id:x,onAnimationStart:re,name:$,placeholder:M,readOnly:F,required:ye.required,rows:B,value:te,onKeyDown:A,onKeyUp:L,type:H},W,!ii(Me)&&{as:V,ownerState:O({},Y,W.ownerState)},{ref:_e,className:ee(q.input,W.className,F&&"MuiInputBase-readOnly"),onBlur:Tt,onChange:dt,onFocus:Kt}))}),m,j?j(O({},ye,{startAdornment:z})):null]}))]})}),Oh=ule;function cle(e){return pe("MuiInput",e)}const fle=O({},Ms,ce("MuiInput",["root","underline","input"])),_l=fle;function dle(e){return pe("MuiOutlinedInput",e)}const ple=O({},Ms,ce("MuiOutlinedInput",["root","notchedOutline","input"])),Io=ple;function vle(e){return pe("MuiFilledInput",e)}const hle=O({},Ms,ce("MuiFilledInput",["root","underline","input"])),_a=hle,mle=jt(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gle=jt(E.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function yle(e){return pe("MuiAvatar",e)}ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ble=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],xle=e=>{const{classes:t,variant:r,colorDefault:n}=e;return de({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},yle,t)},wle=U("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:O({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:O({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Sle=U("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),_le=U(gle,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Cle({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=f.useState(!1);return f.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const $le=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:d,src:p,srcSet:h,variant:m="circular"}=n,y=X(n,ble);let x=null;const b=Cle(O({},c,{src:p,srcSet:h})),v=p||h,g=v&&b!=="error",S=O({},n,{colorDefault:!g,component:s,variant:m}),w=xle(S),[_,$]=Yy("img",{className:w.img,elementType:Sle,externalForwardedProps:{slots:u,slotProps:{img:O({},c,l.img)}},additionalProps:{alt:o,src:p,srcSet:h,sizes:d},ownerState:S});return g?x=E.jsx(_,O({},$)):a||a===0?x=a:v&&o?x=o[0]:x=E.jsx(_le,{ownerState:S,className:w.fallback}),E.jsx(wle,O({as:s,ownerState:S,className:ee(w.root,i),ref:r},y,{children:x}))}),tb=$le,Ole=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ele={entering:{opacity:1},entered:{opacity:1}},Ple=f.forwardRef(function(t,r){const n=$r(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:y,style:x,timeout:b=o,TransitionComponent:v=Xx}=t,g=X(t,Ole),S=f.useRef(null),w=ot(S,s.ref,r),_=M=>F=>{if(M){const j=S.current;F===void 0?M(j):M(j,F)}},$=_(p),P=_((M,F)=>{ew(M);const j=Rs({style:x,timeout:b,easing:u},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",j),M.style.transition=n.transitions.create("opacity",j),c&&c(M,F)}),T=_(d),R=_(y),I=_(M=>{const F=Rs({style:x,timeout:b,easing:u},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",F),M.style.transition=n.transitions.create("opacity",F),h&&h(M)}),A=_(m),L=M=>{a&&a(S.current,M)};return E.jsx(v,O({appear:i,in:l,nodeRef:S,onEnter:P,onEntered:T,onEntering:$,onExit:I,onExited:A,onExiting:R,addEndListener:L,timeout:b},g,{children:(M,F)=>f.cloneElement(s,O({style:O({opacity:0,visibility:M==="exited"&&!l?"hidden":void 0},Ele[M],x,s.props.style),ref:w},F))}))}),Aj=Ple;function Tle(e){return pe("MuiBackdrop",e)}ce("MuiBackdrop",["root","invisible"]);const Rle=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],kle=e=>{const{classes:t,invisible:r}=e;return de({root:["root",r&&"invisible"]},Tle,t)},Ile=U("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>O({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Ale=f.forwardRef(function(t,r){var n,o,a;const i=ve({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:y={},TransitionComponent:x=Aj,transitionDuration:b}=i,v=X(i,Rle),g=O({},i,{component:l,invisible:p}),S=kle(g),w=(n=m.root)!=null?n:d.root;return E.jsx(x,O({in:h,timeout:b},v,{children:E.jsx(Ile,O({"aria-hidden":!0},w,{as:(o=(a=y.root)!=null?a:c.Root)!=null?o:l,className:ee(S.root,u,w==null?void 0:w.className),ownerState:O({},g,w==null?void 0:w.ownerState),classes:S,ref:r,children:s}))}))}),jj=Ale,jle=ce("MuiBox",["root"]),Mle=jle,Fle=Fu(),Nle=coe({themeId:oi,defaultTheme:Fle,defaultClassName:Mle.root,generateClassName:x1.generate}),uw=Nle;function Lle(e){return pe("MuiButton",e)}const Dle=ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),cf=Dle,Ble=f.createContext({}),zle=Ble,Ule=f.createContext(void 0),Vle=Ule,Wle=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Hle=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${Q(t)}`,`size${Q(o)}`,`${a}Size${Q(o)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Q(o)}`],endIcon:["endIcon",`iconSize${Q(o)}`]},u=de(s,Lle,i);return O({},i,u)},Mj=e=>O({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),qle=U(ba,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Q(r.color)}`],t[`size${Q(r.size)}`],t[`${r.variant}Size${Q(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return O({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":O({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":O({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${cf.focusVisible}`]:O({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${cf.disabled}`]:O({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Be(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${cf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cf.disabled}`]:{boxShadow:"none"}}),Gle=U("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Q(r.size)}`]]}})(({ownerState:e})=>O({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Mj(e))),Kle=U("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Q(r.size)}`]]}})(({ownerState:e})=>O({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Mj(e))),Qle=f.forwardRef(function(t,r){const n=f.useContext(zle),o=f.useContext(Vle),a=b1(n,t),i=ve({props:a,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:y,fullWidth:x=!1,size:b="medium",startIcon:v,type:g,variant:S="text"}=i,w=X(i,Wle),_=O({},i,{color:u,component:l,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:x,size:b,type:g,variant:S}),$=Hle(_),P=v&&E.jsx(Gle,{className:$.startIcon,ownerState:_,children:v}),T=m&&E.jsx(Kle,{className:$.endIcon,ownerState:_,children:m}),R=o||"";return E.jsxs(qle,O({ownerState:_,className:ee(n.className,$.root,c,R),component:l,disabled:d,focusRipple:!h,focusVisibleClassName:ee($.focusVisible,y),ref:r,type:g},w,{classes:$,children:[P,s,T]}))}),_r=Qle;function Yle(e){return pe("MuiCard",e)}ce("MuiCard",["root"]);const Xle=["className","raised"],Jle=e=>{const{classes:t}=e;return de({root:["root"]},Yle,t)},Zle=U(Oo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),eue=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=X(n,Xle),s=O({},n,{raised:a}),u=Jle(s);return E.jsx(Zle,O({className:ee(u.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),cw=eue;function tue(e){return pe("MuiCardContent",e)}ce("MuiCardContent",["root"]);const rue=["className","component"],nue=e=>{const{classes:t}=e;return de({root:["root"]},tue,t)},oue=U("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),aue=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=X(n,rue),s=O({},n,{component:a}),u=nue(s);return E.jsx(oue,O({as:a,className:ee(u.root,o),ownerState:s,ref:r},i))}),Fj=aue;function iue(e){return pe("PrivateSwitchBase",e)}ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sue=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],lue=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${Q(o)}`],input:["input"]};return de(a,iue,t)},uue=U(ba)(({ownerState:e})=>O({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),cue=U("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),fue=f.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:y,onBlur:x,onChange:b,onFocus:v,readOnly:g,required:S=!1,tabIndex:w,type:_,value:$}=t,P=X(t,sue),[T,R]=Cs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),I=wa(),A=N=>{v&&v(N),I&&I.onFocus&&I.onFocus(N)},L=N=>{x&&x(N),I&&I.onBlur&&I.onBlur(N)},M=N=>{if(N.nativeEvent.defaultPrevented)return;const z=N.target.checked;R(z),b&&b(N,z)};let F=u;I&&typeof F>"u"&&(F=I.disabled);const j=_==="checkbox"||_==="radio",B=O({},t,{checked:T,disabled:F,disableFocusRipple:l,edge:c}),k=lue(B);return E.jsxs(uue,O({component:"span",className:ee(k.root,i),centerRipple:!0,focusRipple:!l,disabled:F,tabIndex:null,role:void 0,onFocus:A,onBlur:L,ownerState:B,ref:r},P,{children:[E.jsx(cue,O({autoFocus:n,checked:o,defaultChecked:s,className:k.input,disabled:F,id:j?p:void 0,name:y,onChange:M,readOnly:g,ref:m,required:S,ownerState:B,tabIndex:w,type:_},_==="checkbox"&&$===void 0?{}:{value:$},h)),T?a:d]}))}),due=fue,pue=jt(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vue=jt(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),hue=jt(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function mue(e){return pe("MuiCheckbox",e)}const gue=ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Lm=gue,yue=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bue=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${Q(n)}`,`size${Q(o)}`]},i=de(a,mue,t);return O({},t,i)},xue=U(due,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Q(r.size)}`],r.color!=="default"&&t[`color${Q(r.color)}`]]}})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Lm.checked}, &.${Lm.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Lm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),wue=E.jsx(vue,{}),Sue=E.jsx(pue,{}),_ue=E.jsx(hue,{}),Cue=f.forwardRef(function(t,r){var n,o;const a=ve({props:t,name:"MuiCheckbox"}),{checkedIcon:i=wue,color:s="primary",icon:u=Sue,indeterminate:l=!1,indeterminateIcon:c=_ue,inputProps:d,size:p="medium",className:h}=a,m=X(a,yue),y=l?c:u,x=l?c:i,b=O({},a,{color:s,indeterminate:l,size:p}),v=bue(b);return E.jsx(xue,O({type:"checkbox",inputProps:O({"data-indeterminate":l},d),icon:f.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:f.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:b,ref:r,className:ee(v.root,h)},m,{classes:v}))}),pp=Cue;function $ue(e){return pe("MuiCircularProgress",e)}ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Oue=["className","color","disableShrink","size","style","thickness","value","variant"];let Eh=e=>e,YO,XO,JO,ZO;const Ao=44,Eue=bo(YO||(YO=Eh`
|
181
|
+
0% {
|
182
|
+
transform: rotate(0deg);
|
183
|
+
}
|
184
|
+
|
185
|
+
100% {
|
186
|
+
transform: rotate(360deg);
|
187
|
+
}
|
188
|
+
`)),Pue=bo(XO||(XO=Eh`
|
189
|
+
0% {
|
190
|
+
stroke-dasharray: 1px, 200px;
|
191
|
+
stroke-dashoffset: 0;
|
192
|
+
}
|
193
|
+
|
194
|
+
50% {
|
195
|
+
stroke-dasharray: 100px, 200px;
|
196
|
+
stroke-dashoffset: -15px;
|
197
|
+
}
|
198
|
+
|
199
|
+
100% {
|
200
|
+
stroke-dasharray: 100px, 200px;
|
201
|
+
stroke-dashoffset: -125px;
|
202
|
+
}
|
203
|
+
`)),Tue=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${Q(n)}`],svg:["svg"],circle:["circle",`circle${Q(r)}`,o&&"circleDisableShrink"]};return de(a,$ue,t)},Rue=U("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Q(r.color)}`]]}})(({ownerState:e,theme:t})=>O({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ci(JO||(JO=Eh`
|
204
|
+
animation: ${0} 1.4s linear infinite;
|
205
|
+
`),Eue)),kue=U("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Iue=U("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Q(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>O({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ci(ZO||(ZO=Eh`
|
206
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
207
|
+
`),Pue)),Aue=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,p=X(n,Oue),h=O({},n,{color:a,disableShrink:i,size:s,thickness:l,value:c,variant:d}),m=Tue(h),y={},x={},b={};if(d==="determinate"){const v=2*Math.PI*((Ao-l)/2);y.strokeDasharray=v.toFixed(3),b["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,x.transform="rotate(-90deg)"}return E.jsx(Rue,O({className:ee(m.root,o),style:O({width:s,height:s},x,u),ownerState:h,ref:r,role:"progressbar"},b,p,{children:E.jsx(kue,{className:m.svg,ownerState:h,viewBox:`${Ao/2} ${Ao/2} ${Ao} ${Ao}`,children:E.jsx(Iue,{className:m.circle,style:y,ownerState:h,cx:Ao,cy:Ao,r:(Ao-l)/2,fill:"none",strokeWidth:l})})}))}),fw=Aue,jue=(e,t)=>O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Mue=e=>O({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function Fue(e){return pe("MuiModal",e)}ce("MuiModal",["root","hidden","backdrop"]);const Nue=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Lue=e=>{const{open:t,exited:r,classes:n}=e;return de({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Fue,n)},Due=U("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>O({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Bue=U(jj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zue=f.forwardRef(function(t,r){var n,o,a,i,s,u;const l=ve({name:"MuiModal",props:t}),{BackdropComponent:c=Bue,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:y,component:x,components:b={},componentsProps:v={},disableAutoFocus:g=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:w=!1,disablePortal:_=!1,disableRestoreFocus:$=!1,disableScrollLock:P=!1,hideBackdrop:T=!1,keepMounted:R=!1,onBackdropClick:I,open:A,slotProps:L,slots:M}=l,F=X(l,Nue),j=O({},l,{closeAfterTransition:h,disableAutoFocus:g,disableEnforceFocus:S,disableEscapeKeyDown:w,disablePortal:_,disableRestoreFocus:$,disableScrollLock:P,hideBackdrop:T,keepMounted:R}),{getRootProps:B,getBackdropProps:k,getTransitionProps:N,portalRef:z,isTopModal:H,exited:K,hasTransition:J}=qae(O({},j,{rootRef:r})),te=O({},j,{exited:K}),ae=Lue(te),fe={};if(m.props.tabIndex===void 0&&(fe.tabIndex="-1"),J){const{onEnter:ie,onExited:Pe}=N();fe.onEnter=ie,fe.onExited=Pe}const Se=(n=(o=M==null?void 0:M.root)!=null?o:b.Root)!=null?n:Due,_e=(a=(i=M==null?void 0:M.backdrop)!=null?i:b.Backdrop)!=null?a:c,he=(s=L==null?void 0:L.root)!=null?s:v.root,ue=(u=L==null?void 0:L.backdrop)!=null?u:v.backdrop,se=ua({elementType:Se,externalSlotProps:he,externalForwardedProps:F,getSlotProps:B,additionalProps:{ref:r,as:x},ownerState:te,className:ee(p,he==null?void 0:he.className,ae==null?void 0:ae.root,!te.open&&te.exited&&(ae==null?void 0:ae.hidden))}),ye=ua({elementType:_e,externalSlotProps:ue,additionalProps:d,getSlotProps:ie=>k(O({},ie,{onClick:Pe=>{I&&I(Pe),ie!=null&&ie.onClick&&ie.onClick(Pe)}})),className:ee(ue==null?void 0:ue.className,d==null?void 0:d.className,ae==null?void 0:ae.backdrop),ownerState:te});return!R&&!A&&(!J||K)?null:E.jsx(bj,{ref:z,container:y,disablePortal:_,children:E.jsxs(Se,O({},se,{children:[!T&&c?E.jsx(_e,O({},ye)):null,E.jsx(Fae,{disableEnforceFocus:S,disableAutoFocus:g,disableRestoreFocus:$,isEnabled:H,open:A,children:f.cloneElement(m,fe)})]}))})}),dw=zue;function Uue(e){return pe("MuiDialog",e)}const Vue=ce("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Dm=Vue,Wue=f.createContext({}),Nj=Wue,Hue=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],que=U(jj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Gue=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Q(r)}`],paper:["paper",`paperScroll${Q(r)}`,`paperWidth${Q(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return de(i,Uue,t)},Kue=U(dw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Que=U("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Q(r.scroll)}`]]}})(({ownerState:e})=>O({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Yue=U(Oo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Q(r.scroll)}`],t[`paperWidth${Q(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>O({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Dm.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Dm.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Dm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Xue=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiDialog"}),o=$r(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:x,onClose:b,open:v,PaperComponent:g=Oo,PaperProps:S={},scroll:w="paper",TransitionComponent:_=Aj,transitionDuration:$=a,TransitionProps:P}=n,T=X(n,Hue),R=O({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:y,scroll:w}),I=Gue(R),A=f.useRef(),L=B=>{A.current=B.target===B.currentTarget},M=B=>{A.current&&(A.current=null,x&&x(B),b&&b(B,"backdropClick"))},F=ri(s),j=f.useMemo(()=>({titleId:F}),[F]);return E.jsx(Kue,O({className:ee(I.root,d),closeAfterTransition:!0,components:{Backdrop:que},componentsProps:{backdrop:O({transitionDuration:$,as:u},l)},disableEscapeKeyDown:p,onClose:b,open:v,ref:r,onClick:M,ownerState:R},T,{children:E.jsx(_,O({appear:!0,in:v,timeout:$,role:"presentation"},P,{children:E.jsx(Que,{className:ee(I.container),onMouseDown:L,ownerState:R,children:E.jsx(Yue,O({as:g,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":F},S,{className:ee(I.paper,S.className),ownerState:R,children:E.jsx(Nj.Provider,{value:j,children:c})}))})}))}))}),pw=Xue;function Jue(e){return pe("MuiDialogActions",e)}ce("MuiDialogActions",["root","spacing"]);const Zue=["className","disableSpacing"],ece=e=>{const{classes:t,disableSpacing:r}=e;return de({root:["root",!r&&"spacing"]},Jue,t)},tce=U("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>O({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),rce=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=X(n,Zue),s=O({},n,{disableSpacing:a}),u=ece(s);return E.jsx(tce,O({className:ee(u.root,o),ownerState:s,ref:r},i))}),vw=rce;function nce(e){return pe("MuiDialogContent",e)}ce("MuiDialogContent",["root","dividers"]);function oce(e){return pe("MuiDialogTitle",e)}const ace=ce("MuiDialogTitle",["root"]),ice=ace,sce=["className","dividers"],lce=e=>{const{classes:t,dividers:r}=e;return de({root:["root",r&&"dividers"]},nce,t)},uce=U("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>O({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${ice.root} + &`]:{paddingTop:0}})),cce=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=X(n,sce),s=O({},n,{dividers:a}),u=lce(s);return E.jsx(uce,O({className:ee(u.root,o),ownerState:s,ref:r},i))}),hw=cce;function fce(e){return pe("MuiDialogContentText",e)}ce("MuiDialogContentText",["root"]);const dce=["children","className"],pce=e=>{const{classes:t}=e,n=de({root:["root"]},fce,t);return O({},t,n)},vce=U(Te,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hce=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=X(n,dce),i=pce(a);return E.jsx(vce,O({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:ee(i.root,o)},n,{classes:i}))}),Lj=hce,mce=["className","id"],gce=e=>{const{classes:t}=e;return de({root:["root"]},oce,t)},yce=U(Te,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),bce=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=X(n,mce),s=n,u=gce(s),{titleId:l=a}=f.useContext(Nj);return E.jsx(yce,O({component:"h2",className:ee(u.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),mw=bce,xce=ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),eE=xce,wce=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Sce(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Vn(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=a.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+u-n.top}px)`:`translateY(${a.innerHeight+u-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function _ce(e){return typeof e=="function"?e():e}function ff(e,t,r){const n=_ce(r),o=Sce(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Cce=f.forwardRef(function(t,r){const n=$r(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:d=o,in:p,onEnter:h,onEntered:m,onEntering:y,onExit:x,onExited:b,onExiting:v,style:g,timeout:S=a,TransitionComponent:w=Xx}=t,_=X(t,wce),$=f.useRef(null),P=ot(u.ref,$,r),T=k=>N=>{k&&(N===void 0?k($.current):k($.current,N))},R=T((k,N)=>{ff(c,k,l),ew(k),h&&h(k,N)}),I=T((k,N)=>{const z=Rs({timeout:S,style:g,easing:d},{mode:"enter"});k.style.webkitTransition=n.transitions.create("-webkit-transform",O({},z)),k.style.transition=n.transitions.create("transform",O({},z)),k.style.webkitTransform="none",k.style.transform="none",y&&y(k,N)}),A=T(m),L=T(v),M=T(k=>{const N=Rs({timeout:S,style:g,easing:d},{mode:"exit"});k.style.webkitTransition=n.transitions.create("-webkit-transform",N),k.style.transition=n.transitions.create("transform",N),ff(c,k,l),x&&x(k)}),F=T(k=>{k.style.webkitTransition="",k.style.transition="",b&&b(k)}),j=k=>{i&&i($.current,k)},B=f.useCallback(()=>{$.current&&ff(c,$.current,l)},[c,l]);return f.useEffect(()=>{if(p||c==="down"||c==="right")return;const k=wv(()=>{$.current&&ff(c,$.current,l)}),N=Vn($.current);return N.addEventListener("resize",k),()=>{k.clear(),N.removeEventListener("resize",k)}},[c,p,l]),f.useEffect(()=>{p||B()},[p,B]),E.jsx(w,O({nodeRef:$,onEnter:R,onEntered:A,onEntering:I,onExit:M,onExited:F,onExiting:L,addEndListener:j,appear:s,in:p,timeout:S},_,{children:(k,N)=>f.cloneElement(u,O({ref:P,style:O({visibility:k==="exited"&&!p?"hidden":void 0},g,u.props.style)},N))}))}),Dj=Cce;function $ce(e){return pe("MuiDrawer",e)}ce("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Oce=["BackdropProps"],Ece=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Bj=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Pce=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Q(r)}`,n!=="temporary"&&`paperAnchorDocked${Q(r)}`]};return de(o,$ce,t)},Tce=U(dw,{name:"MuiDrawer",slot:"Root",overridesResolver:Bj})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),tE=U("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Bj})({flex:"0 0 auto"}),Rce=U(Oo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Q(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Q(r.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),zj={left:"right",right:"left",top:"down",bottom:"up"};function kce(e){return["left","right"].indexOf(e)!==-1}function Ice(e,t){return e.direction==="rtl"&&kce(t)?zj[t]:t}const Ace=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiDrawer"}),o=$r(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:s,children:u,className:l,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:y={},SlideProps:x,TransitionComponent:b=Dj,transitionDuration:v=a,variant:g="temporary"}=n,S=X(n.ModalProps,Oce),w=X(n,Ece),_=f.useRef(!1);f.useEffect(()=>{_.current=!0},[]);const $=Ice(o,i),T=O({},n,{anchor:i,elevation:c,open:m,variant:g},w),R=Pce(T),I=E.jsx(Rce,O({elevation:g==="temporary"?c:0,square:!0},y,{className:ee(R.paper,y.className),ownerState:T,children:u}));if(g==="permanent")return E.jsx(tE,O({className:ee(R.root,R.docked,l),ownerState:T,ref:r},w,{children:I}));const A=E.jsx(b,O({in:m,direction:zj[$],timeout:v,appear:_.current},x,{children:I}));return g==="persistent"?E.jsx(tE,O({className:ee(R.root,R.docked,l),ownerState:T,ref:r},w,{children:A})):E.jsx(Tce,O({BackdropProps:O({},s,p,{transitionDuration:v}),className:ee(R.root,R.modal,l),open:m,ownerState:T,onClose:h,hideBackdrop:d,ref:r},w,S,{children:A}))}),jce=Ace;function Mce(e){return pe("MuiFab",e)}const Fce=ce("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),rE=Fce,Nce=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Lce=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${Q(o)}`,t==="inherit"?"colorInherit":t]},i=de(a,Mce,n);return O({},n,i)},Dce=U(ba,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Ht(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Q(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Q(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return O({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${rE.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>O({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${rE.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Bce=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:d="large",variant:p="circular"}=n,h=X(n,Nce),m=O({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:d,variant:p}),y=Lce(m);return E.jsx(Dce,O({className:ee(y.root,a),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ee(y.focusVisible,c),ownerState:m,ref:r},h,{classes:y,children:o}))}),zce=Bce,Uce=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Vce=e=>{const{classes:t,disableUnderline:r}=e,o=de({root:["root",!r&&"underline"],input:["input"]},vle,t);return O({},t,o)},Wce=U(Ch,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sh(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return O({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${_a.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${_a.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_a.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_a.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_a.disabled}, .${_a.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_a.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&O({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Hce=U($h,{name:"MuiFilledInput",slot:"Input",overridesResolver:_h})(({theme:e,ownerState:t})=>O({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Uj=f.forwardRef(function(t,r){var n,o,a,i;const s=ve({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:y="text"}=s,x=X(s,Uce),b=O({},s,{fullWidth:c,inputComponent:d,multiline:p,type:y}),v=Vce(s),g={root:{ownerState:b},input:{ownerState:b}},S=h??l?ir(g,h??l):g,w=(n=(o=m.root)!=null?o:u.Root)!=null?n:Wce,_=(a=(i=m.input)!=null?i:u.Input)!=null?a:Hce;return E.jsx(Oh,O({slots:{root:w,input:_},componentsProps:S,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:y},x,{classes:v}))});Uj.muiName="Input";const Vj=Uj;function qce(e){return pe("MuiFormControl",e)}ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Gce=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Kce=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${Q(r)}`,n&&"fullWidth"]};return de(o,qce,t)},Qce=U("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>O({},t.root,t[`margin${Q(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>O({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Yce=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:y="medium",variant:x="outlined"}=n,b=X(n,Gce),v=O({},n,{color:i,component:s,disabled:u,error:l,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:y,variant:x}),g=Kce(v),[S,w]=f.useState(()=>{let L=!1;return o&&f.Children.forEach(o,M=>{if(!Kl(M,["Input","Select"]))return;const F=Kl(M,["Select"])?M.props.input:M;F&&nle(F.props)&&(L=!0)}),L}),[_,$]=f.useState(()=>{let L=!1;return o&&f.Children.forEach(o,M=>{Kl(M,["Input","Select"])&&(dp(M.props,!0)||dp(M.props.inputProps,!0))&&(L=!0)}),L}),[P,T]=f.useState(!1);u&&P&&T(!1);const R=c!==void 0&&!u?c:P;let I;const A=f.useMemo(()=>({adornedStart:S,setAdornedStart:w,color:i,disabled:u,error:l,filled:_,focused:R,fullWidth:d,hiddenLabel:p,size:y,onBlur:()=>{T(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{T(!0)},registerEffect:I,required:m,variant:x}),[S,i,u,l,_,R,d,p,I,m,y,x]);return E.jsx(wh.Provider,{value:A,children:E.jsx(Qce,O({as:s,ownerState:v,className:ee(g.root,a),ref:r},b,{children:o}))})}),Xce=Yce,Jce=Loe({createStyledComponent:U("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ve({props:e,name:"MuiStack"})}),Wj=Jce;function Zce(e){return pe("MuiFormHelperText",e)}const efe=ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),nE=efe;var oE;const tfe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],rfe=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:u}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${Q(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return de(l,Zce,t)},nfe=U("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Q(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nE.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),ofe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=X(n,tfe),u=wa(),l=rl({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=O({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=rfe(c);return E.jsx(nfe,O({as:i,ownerState:c,className:ee(d.root,a),ref:r},s,{children:o===" "?oE||(oE=E.jsx("span",{className:"notranslate",children:""})):o}))}),afe=ofe;function ife(e){return pe("MuiFormLabel",e)}const sfe=ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),au=sfe,lfe=["children","className","color","component","disabled","error","filled","focused","required"],ufe=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,u={root:["root",`color${Q(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return de(u,ife,t)},cfe=U("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>O({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${au.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${au.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${au.error}`]:{color:(e.vars||e).palette.error.main}})),ffe=U("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${au.error}`]:{color:(e.vars||e).palette.error.main}})),dfe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=X(n,lfe),u=wa(),l=rl({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=O({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=ufe(c);return E.jsxs(cfe,O({as:i,ownerState:c,className:ee(d.root,a),ref:r},s,{children:[o,l.required&&E.jsxs(ffe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),pfe=dfe,vfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rb(e){return`scale(${e}, ${e**2})`}const hfe={entering:{opacity:1,transform:rb(1)},entered:{opacity:1,transform:"none"}},Bm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Hj=f.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:y="auto",TransitionComponent:x=Xx}=t,b=X(t,vfe),v=Fa(),g=f.useRef(),S=$r(),w=f.useRef(null),_=ot(w,a.ref,r),$=F=>j=>{if(F){const B=w.current;j===void 0?F(B):F(B,j)}},P=$(c),T=$((F,j)=>{ew(F);const{duration:B,delay:k,easing:N}=Rs({style:m,timeout:y,easing:i},{mode:"enter"});let z;y==="auto"?(z=S.transitions.getAutoHeightDuration(F.clientHeight),g.current=z):z=B,F.style.transition=[S.transitions.create("opacity",{duration:z,delay:k}),S.transitions.create("transform",{duration:Bm?z:z*.666,delay:k,easing:N})].join(","),u&&u(F,j)}),R=$(l),I=$(h),A=$(F=>{const{duration:j,delay:B,easing:k}=Rs({style:m,timeout:y,easing:i},{mode:"exit"});let N;y==="auto"?(N=S.transitions.getAutoHeightDuration(F.clientHeight),g.current=N):N=j,F.style.transition=[S.transitions.create("opacity",{duration:N,delay:B}),S.transitions.create("transform",{duration:Bm?N:N*.666,delay:Bm?B:B||N*.333,easing:k})].join(","),F.style.opacity=0,F.style.transform=rb(.75),d&&d(F)}),L=$(p),M=F=>{y==="auto"&&v.start(g.current||0,F),n&&n(w.current,F)};return E.jsx(x,O({appear:o,in:s,nodeRef:w,onEnter:T,onEntered:R,onEntering:P,onExit:A,onExited:L,onExiting:I,addEndListener:M,timeout:y==="auto"?null:y},b,{children:(F,j)=>f.cloneElement(a,O({style:O({opacity:0,transform:rb(.75),visibility:F==="exited"&&!s?"hidden":void 0},hfe[F],m,a.props.style),ref:_},j))}))});Hj.muiSupportAuto=!0;const vp=Hj,mfe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gfe=e=>{const{classes:t,disableUnderline:r}=e,o=de({root:["root",!r&&"underline"],input:["input"]},cle,t);return O({},t,o)},yfe=U(Ch,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sh(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),O({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_l.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_l.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_l.disabled}, .${_l.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_l.disabled}:before`]:{borderBottomStyle:"dotted"}})}),bfe=U($h,{name:"MuiInput",slot:"Input",overridesResolver:_h})({}),qj=f.forwardRef(function(t,r){var n,o,a,i;const s=ve({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:y={},type:x="text"}=s,b=X(s,mfe),v=gfe(s),S={root:{ownerState:{disableUnderline:u}}},w=m??c?ir(m??c,S):S,_=(n=(o=y.root)!=null?o:l.Root)!=null?n:yfe,$=(a=(i=y.input)!=null?i:l.Input)!=null?a:bfe;return E.jsx(Oh,O({slots:{root:_,input:$},slotProps:w,fullWidth:d,inputComponent:p,multiline:h,ref:r,type:x},b,{classes:v}))});qj.muiName="Input";const Gj=qj;function xfe(e){return pe("MuiInputAdornment",e)}const wfe=ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),aE=wfe;var iE;const Sfe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_fe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Q(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Cfe=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${Q(o)}`,i,n&&"hiddenLabel",a&&`size${Q(a)}`]};return de(s,xfe,t)},$fe=U("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_fe})(({theme:e,ownerState:t})=>O({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${aE.positionStart}&:not(.${aE.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Ofe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,d=X(n,Sfe),p=wa()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=O({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:h}),y=Cfe(m);return E.jsx(wh.Provider,{value:null,children:E.jsx($fe,O({as:i,ownerState:m,className:ee(y.root,a),ref:r},d,{children:typeof o=="string"&&!u?E.jsx(Te,{color:"text.secondary",children:o}):E.jsxs(f.Fragment,{children:[l==="start"?iE||(iE=E.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),qf=Ofe;function Efe(e){return pe("MuiInputLabel",e)}ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Pfe=["disableAnimation","margin","shrink","variant","className"],Tfe=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${Q(n)}`,i],asterisk:[s&&"asterisk"]},l=de(u,Efe,t);return O({},t,l)},Rfe=U(pfe,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${au.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>O({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&O({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&O({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&O({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),kfe=f.forwardRef(function(t,r){const n=ve({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=X(n,Pfe),u=wa();let l=a;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=rl({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),d=O({},n,{disableAnimation:o,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Tfe(d);return E.jsx(Rfe,O({"data-shrink":l,ownerState:d,ref:r,className:ee(p.root,i)},s,{classes:p}))}),Ife=kfe;function Afe(e){return pe("MuiLinearProgress",e)}ce("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const jfe=["className","color","value","valueBuffer","variant"];let nl=e=>e,sE,lE,uE,cE,fE,dE;const nb=4,Mfe=bo(sE||(sE=nl`
|
208
|
+
0% {
|
209
|
+
left: -35%;
|
210
|
+
right: 100%;
|
211
|
+
}
|
212
|
+
|
213
|
+
60% {
|
214
|
+
left: 100%;
|
215
|
+
right: -90%;
|
216
|
+
}
|
217
|
+
|
218
|
+
100% {
|
219
|
+
left: 100%;
|
220
|
+
right: -90%;
|
221
|
+
}
|
222
|
+
`)),Ffe=bo(lE||(lE=nl`
|
223
|
+
0% {
|
224
|
+
left: -200%;
|
225
|
+
right: 100%;
|
226
|
+
}
|
227
|
+
|
228
|
+
60% {
|
229
|
+
left: 107%;
|
230
|
+
right: -8%;
|
231
|
+
}
|
232
|
+
|
233
|
+
100% {
|
234
|
+
left: 107%;
|
235
|
+
right: -8%;
|
236
|
+
}
|
237
|
+
`)),Nfe=bo(uE||(uE=nl`
|
238
|
+
0% {
|
239
|
+
opacity: 1;
|
240
|
+
background-position: 0 -23px;
|
241
|
+
}
|
242
|
+
|
243
|
+
60% {
|
244
|
+
opacity: 0;
|
245
|
+
background-position: 0 -23px;
|
246
|
+
}
|
247
|
+
|
248
|
+
100% {
|
249
|
+
opacity: 1;
|
250
|
+
background-position: -200px -23px;
|
251
|
+
}
|
252
|
+
`)),Lfe=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${Q(n)}`,r],dashed:["dashed",`dashedColor${Q(n)}`],bar1:["bar",`barColor${Q(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Q(n)}`,r==="buffer"&&`color${Q(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return de(o,Afe,t)},gw=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?F1(e.palette[t].main,.62):M1(e.palette[t].main,.5),Dfe=U("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Q(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>O({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:gw(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Bfe=U("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Q(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=gw(t,e.color);return O({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},ci(cE||(cE=nl`
|
253
|
+
animation: ${0} 3s infinite linear;
|
254
|
+
`),Nfe)),zfe=U("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Q(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>O({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${nb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${nb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ci(fE||(fE=nl`
|
255
|
+
width: auto;
|
256
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
257
|
+
`),Mfe)),Ufe=U("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Q(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>O({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:gw(t,e.color),transition:`transform .${nb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ci(dE||(dE=nl`
|
258
|
+
width: auto;
|
259
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
260
|
+
`),Ffe)),Vfe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:u="indeterminate"}=n,l=X(n,jfe),c=O({},n,{color:a,variant:u}),d=Lfe(c),p=$r(),h={},m={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let y=i-100;p.direction==="rtl"&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(u==="buffer"&&s!==void 0){let y=(s||0)-100;p.direction==="rtl"&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return E.jsxs(Dfe,O({className:ee(d.root,o),ownerState:c,role:"progressbar"},h,{ref:r},l,{children:[u==="buffer"?E.jsx(Bfe,{className:d.dashed,ownerState:c}):null,E.jsx(zfe,{className:d.bar1,ownerState:c,style:m.bar1}),u==="determinate"?null:E.jsx(Ufe,{className:d.bar2,ownerState:c,style:m.bar2})]}))}),Wfe=Vfe;function Hfe(e){return pe("MuiLink",e)}const qfe=ce("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Gfe=qfe,Kj={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Kfe=e=>Kj[e]||e,Qfe=({theme:e,ownerState:t})=>{const r=Kfe(t.color),n=$s(e,`palette.${r}`,!1)||t.color,o=$s(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Be(n,.4)},Yfe=Qfe,Xfe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Jfe=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${Q(o)}`,r==="button"&&"button",n&&"focusVisible"]};return de(a,Hfe,t)},Zfe=U(Te,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Q(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>O({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&O({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Yfe({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Gfe.focusVisible}`]:{outline:"auto"}})),ede=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:d="inherit",sx:p}=n,h=X(n,Xfe),{isFocusVisibleRef:m,onBlur:y,onFocus:x,ref:b}=_v(),[v,g]=f.useState(!1),S=ot(r,b),w=T=>{y(T),m.current===!1&&g(!1),s&&s(T)},_=T=>{x(T),m.current===!0&&g(!0),u&&u(T)},$=O({},n,{color:a,component:i,focusVisible:v,underline:c,variant:d}),P=Jfe($);return E.jsx(Zfe,O({color:a,className:ee(P.root,o),classes:l,component:i,onBlur:w,onFocus:_,ref:S,ownerState:$,variant:d,sx:[...Object.keys(Kj).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},h))}),Qj=ede,tde=f.createContext({}),co=tde;function rde(e){return pe("MuiList",e)}ce("MuiList",["root","padding","dense","subheader"]);const nde=["children","className","component","dense","disablePadding","subheader"],ode=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return de({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},rde,t)},ade=U("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>O({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ide=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=X(n,nde),d=f.useMemo(()=>({dense:s}),[s]),p=O({},n,{component:i,dense:s,disablePadding:u}),h=ode(p);return E.jsx(co.Provider,{value:d,children:E.jsxs(ade,O({as:i,className:ee(h.root,a),ref:r,ownerState:p},c,{children:[l,o]}))})}),Yj=ide;function sde(e){return pe("MuiListItem",e)}const lde=ce("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Pi=lde,ude=ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),cde=ude;function fde(e){return pe("MuiListItemSecondaryAction",e)}ce("MuiListItemSecondaryAction",["root","disableGutters"]);const dde=["className"],pde=e=>{const{disableGutters:t,classes:r}=e;return de({root:["root",t&&"disableGutters"]},fde,r)},vde=U("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>O({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Xj=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,a=X(n,dde),i=f.useContext(co),s=O({},n,{disableGutters:i.disableGutters}),u=pde(s);return E.jsx(vde,O({className:ee(u.root,o),ownerState:s,ref:r},a))});Xj.muiName="ListItemSecondaryAction";const hde=Xj,mde=["className"],gde=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],yde=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},bde=e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:u,hasSecondaryAction:l,selected:c}=e;return de({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",u&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",c&&"selected"],container:["container"]},sde,n)},xde=U("div",{name:"MuiListItem",slot:"Root",overridesResolver:yde})(({theme:e,ownerState:t})=>O({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&O({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${cde.root}`]:{paddingRight:48}},{[`&.${Pi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),wde=U("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Sde=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:u,component:l,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:y=!1,disableGutters:x=!1,disablePadding:b=!1,divider:v=!1,focusVisibleClassName:g,secondaryAction:S,selected:w=!1,slotProps:_={},slots:$={}}=n,P=X(n.ContainerProps,mde),T=X(n,gde),R=f.useContext(co),I=f.useMemo(()=>({dense:m||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,m,x]),A=f.useRef(null);Mr(()=>{a&&A.current&&A.current.focus()},[a]);const L=f.Children.toArray(s),M=L.length&&Kl(L[L.length-1],["ListItemSecondaryAction"]),F=O({},n,{alignItems:o,autoFocus:a,button:i,dense:I.dense,disabled:y,disableGutters:x,disablePadding:b,divider:v,hasSecondaryAction:M,selected:w}),j=bde(F),B=ot(A,r),k=$.root||c.Root||xde,N=_.root||d.root||{},z=O({className:ee(j.root,N.className,u),disabled:y},T);let H=l||"li";return i&&(z.component=l||"div",z.focusVisibleClassName=ee(Pi.focusVisible,g),H=ba),M?(H=!z.component&&!l?"div":H,p==="li"&&(H==="li"?H="div":z.component==="li"&&(z.component="div")),E.jsx(co.Provider,{value:I,children:E.jsxs(wde,O({as:p,className:ee(j.container,h),ref:B,ownerState:F},P,{children:[E.jsx(k,O({},N,!ii(k)&&{as:H,ownerState:O({},F,N.ownerState)},z,{children:L})),L.pop()]}))})):E.jsx(co.Provider,{value:I,children:E.jsxs(k,O({},N,{as:H,ref:B},!ii(k)&&{ownerState:O({},F,N.ownerState)},z,{children:[L,S&&E.jsx(hde,{children:S})]}))})}),_de=Sde;function Cde(e){return pe("MuiListItemIcon",e)}const $de=ce("MuiListItemIcon",["root","alignItemsFlexStart"]),pE=$de,Ode=["className"],Ede=e=>{const{alignItems:t,classes:r}=e;return de({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Cde,r)},Pde=U("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>O({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Tde=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=X(n,Ode),i=f.useContext(co),s=O({},n,{alignItems:i.alignItems}),u=Ede(s);return E.jsx(Pde,O({className:ee(u.root,o),ownerState:s,ref:r},a))}),yw=Tde;function Rde(e){return pe("MuiListItemText",e)}const kde=ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hp=kde,Ide=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ade=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return de({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Rde,t)},jde=U("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${hp.primary}`]:t.primary},{[`& .${hp.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>O({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Mde=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d}=n,p=X(n,Ide),{dense:h}=f.useContext(co);let m=u??o,y=c;const x=O({},n,{disableTypography:i,inset:s,primary:!!m,secondary:!!y,dense:h}),b=Ade(x);return m!=null&&m.type!==Te&&!i&&(m=E.jsx(Te,O({variant:h?"body2":"body1",className:b.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:m}))),y!=null&&y.type!==Te&&!i&&(y=E.jsx(Te,O({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:y}))),E.jsxs(jde,O({className:ee(b.root,a),ownerState:x,ref:r},p,{children:[m,y]}))}),bw=Mde,Fde=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zm(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function vE(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Jj(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Cl(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Jj(s,a)||u)s=o(e,s,r);else return s.focus(),!0}return!1}const Nde=f.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=X(t,Fde),h=f.useRef(null),m=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mr(()=>{o&&h.current.focus()},[o]),f.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(g,S)=>{const w=!h.current.style.width;if(g.clientHeight<h.current.clientHeight&&w){const _=`${SR(Et(g))}px`;h.current.style[S.direction==="rtl"?"paddingLeft":"paddingRight"]=_,h.current.style.width=`calc(100% + ${_})`}return h.current}}),[]);const y=g=>{const S=h.current,w=g.key,_=Et(S).activeElement;if(w==="ArrowDown")g.preventDefault(),Cl(S,_,l,u,zm);else if(w==="ArrowUp")g.preventDefault(),Cl(S,_,l,u,vE);else if(w==="Home")g.preventDefault(),Cl(S,null,l,u,zm);else if(w==="End")g.preventDefault(),Cl(S,null,l,u,vE);else if(w.length===1){const $=m.current,P=w.toLowerCase(),T=performance.now();$.keys.length>0&&(T-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&P!==$.keys[0]&&($.repeating=!1)),$.lastTime=T,$.keys.push(P);const R=_&&!$.repeating&&Jj(_,$);$.previousKeyMatched&&(R||Cl(S,_,!1,u,zm,$))?g.preventDefault():$.previousKeyMatched=!1}c&&c(g)},x=ot(h,r);let b=-1;f.Children.forEach(i,(g,S)=>{if(!f.isValidElement(g)){b===S&&(b+=1,b>=i.length&&(b=-1));return}g.props.disabled||(d==="selectedMenu"&&g.props.selected||b===-1)&&(b=S),b===S&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const v=f.Children.map(i,(g,S)=>{if(S===b){const w={};return a&&(w.autoFocus=!0),g.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),f.cloneElement(g,w)}return g});return E.jsx(Yj,O({role:"menu",ref:x,className:s,onKeyDown:y,tabIndex:o?0:-1},p,{children:v}))}),Zj=Nde;function Lde(e){return pe("MuiPopover",e)}ce("MuiPopover",["root","paper"]);const Dde=["onEntering"],Bde=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zde=["slotProps"];function hE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function mE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function gE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Um(e){return typeof e=="function"?e():e}const Ude=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"]},Lde,t)},Vde=U(dw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eM=U(Oo,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Wde=f.forwardRef(function(t,r){var n,o,a;const i=ve({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:y=8,marginThreshold:x=16,open:b,PaperProps:v={},slots:g,slotProps:S,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:_=vp,transitionDuration:$="auto",TransitionProps:{onEntering:P}={},disableScrollLock:T=!1}=i,R=X(i.TransitionProps,Dde),I=X(i,Bde),A=(n=S==null?void 0:S.paper)!=null?n:v,L=f.useRef(),M=ot(L,A.ref),F=O({},i,{anchorOrigin:l,anchorReference:d,elevation:y,marginThreshold:x,externalPaperSlotProps:A,transformOrigin:w,TransitionComponent:_,transitionDuration:$,TransitionProps:R}),j=Ude(F),B=f.useCallback(()=>{if(d==="anchorPosition")return c;const ie=Um(u),Re=(ie&&ie.nodeType===1?ie:Et(L.current).body).getBoundingClientRect();return{top:Re.top+hE(Re,l.vertical),left:Re.left+mE(Re,l.horizontal)}},[u,l.horizontal,l.vertical,c,d]),k=f.useCallback(ie=>({vertical:hE(ie,w.vertical),horizontal:mE(ie,w.horizontal)}),[w.horizontal,w.vertical]),N=f.useCallback(ie=>{const Pe={width:ie.offsetWidth,height:ie.offsetHeight},Re=k(Pe);if(d==="none")return{top:null,left:null,transformOrigin:gE(Re)};const Kt=B();let Tt=Kt.top-Re.vertical,dt=Kt.left-Re.horizontal;const D=Tt+Pe.height,V=dt+Pe.width,W=Vn(Um(u)),re=W.innerHeight-x,Y=W.innerWidth-x;if(x!==null&&Tt<x){const q=Tt-x;Tt-=q,Re.vertical+=q}else if(x!==null&&D>re){const q=D-re;Tt-=q,Re.vertical+=q}if(x!==null&&dt<x){const q=dt-x;dt-=q,Re.horizontal+=q}else if(V>Y){const q=V-Y;dt-=q,Re.horizontal+=q}return{top:`${Math.round(Tt)}px`,left:`${Math.round(dt)}px`,transformOrigin:gE(Re)}},[u,d,B,k,x]),[z,H]=f.useState(b),K=f.useCallback(()=>{const ie=L.current;if(!ie)return;const Pe=N(ie);Pe.top!==null&&(ie.style.top=Pe.top),Pe.left!==null&&(ie.style.left=Pe.left),ie.style.transformOrigin=Pe.transformOrigin,H(!0)},[N]);f.useEffect(()=>(T&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[u,T,K]);const J=(ie,Pe)=>{P&&P(ie,Pe),K()},te=()=>{H(!1)};f.useEffect(()=>{b&&K()}),f.useImperativeHandle(s,()=>b?{updatePosition:()=>{K()}}:null,[b,K]),f.useEffect(()=>{if(!b)return;const ie=wv(()=>{K()}),Pe=Vn(u);return Pe.addEventListener("resize",ie),()=>{ie.clear(),Pe.removeEventListener("resize",ie)}},[u,b,K]);let ae=$;$==="auto"&&!_.muiSupportAuto&&(ae=void 0);const fe=m||(u?Et(Um(u)).body:void 0),Se=(o=g==null?void 0:g.root)!=null?o:Vde,_e=(a=g==null?void 0:g.paper)!=null?a:eM,he=ua({elementType:_e,externalSlotProps:O({},A,{style:z?A.style:O({},A.style,{opacity:0})}),additionalProps:{elevation:y,ref:M},ownerState:F,className:ee(j.paper,A==null?void 0:A.className)}),ue=ua({elementType:Se,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:fe,open:b},ownerState:F,className:ee(j.root,h)}),{slotProps:se}=ue,ye=X(ue,zde);return E.jsx(Se,O({},ye,!ii(Se)&&{slotProps:se,disableScrollLock:T},{children:E.jsx(_,O({appear:!0,in:b,onEntering:J,onExited:te,timeout:ae},R,{children:E.jsx(_e,O({},he,{children:p}))}))}))}),tM=Wde;function Hde(e){return pe("MuiMenu",e)}ce("MuiMenu",["root","paper","list"]);const qde=["onEntering"],Gde=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kde={vertical:"top",horizontal:"right"},Qde={vertical:"top",horizontal:"left"},Yde=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"],list:["list"]},Hde,t)},Xde=U(tM,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jde=U(eM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Zde=U(Zj,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),epe=f.forwardRef(function(t,r){var n,o;const a=ve({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:b="selectedMenu",slots:v={},slotProps:g={}}=a,S=X(a.TransitionProps,qde),w=X(a,Gde),_=$r(),$=_.direction==="rtl",P=O({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:x,PaperProps:h,transitionDuration:y,TransitionProps:S,variant:b}),T=Yde(P),R=i&&!l&&p,I=f.useRef(null),A=(N,z)=>{I.current&&I.current.adjustStyleForScrollbar(N,_),x&&x(N,z)},L=N=>{N.key==="Tab"&&(N.preventDefault(),d&&d(N,"tabKeyDown"))};let M=-1;f.Children.map(s,(N,z)=>{f.isValidElement(N)&&(N.props.disabled||(b==="selectedMenu"&&N.props.selected||M===-1)&&(M=z))});const F=(n=v.paper)!=null?n:Jde,j=(o=g.paper)!=null?o:h,B=ua({elementType:v.root,externalSlotProps:g.root,ownerState:P,className:[T.root,u]}),k=ua({elementType:F,externalSlotProps:j,ownerState:P,className:T.paper});return E.jsx(Xde,O({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:$?"right":"left"},transformOrigin:$?Kde:Qde,slots:{paper:F,root:v.root},slotProps:{root:B,paper:k},open:p,ref:r,transitionDuration:y,TransitionProps:O({onEntering:A},S),ownerState:P},w,{classes:m,children:E.jsx(Zde,O({onKeyDown:L,actions:I,autoFocus:i&&(M===-1||l),autoFocusItem:R,variant:b},c,{className:ee(T.list,c.className),children:s}))}))}),Ph=epe;function tpe(e){return pe("MuiMenuItem",e)}const rpe=ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$l=rpe,npe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ope=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},ape=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,u=de({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},tpe,i);return O({},i,u)},ipe=U(ba,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ope})(({theme:e,ownerState:t})=>O({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$l.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$l.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$l.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$l.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$l.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${eE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${eE.inset}`]:{marginLeft:52},[`& .${hp.root}`]:{marginTop:0,marginBottom:0},[`& .${hp.inset}`]:{paddingLeft:36},[`& .${pE.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&O({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pE.root} svg`]:{fontSize:"1.25rem"}}))),spe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p}=n,h=X(n,npe),m=f.useContext(co),y=f.useMemo(()=>({dense:i||m.dense||!1,disableGutters:u}),[m.dense,i,u]),x=f.useRef(null);Mr(()=>{o&&x.current&&x.current.focus()},[o]);const b=O({},n,{dense:y.dense,divider:s,disableGutters:u}),v=ape(n),g=ot(x,r);let S;return n.disabled||(S=d!==void 0?d:-1),E.jsx(co.Provider,{value:y,children:E.jsx(ipe,O({ref:g,role:c,tabIndex:S,component:a,focusVisibleClassName:ee(v.focusVisible,l),className:ee(v.root,p)},h,{ownerState:b,classes:v}))})}),Nn=spe;function lpe(e){return pe("MuiNativeSelect",e)}const upe=ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xw=upe,cpe=["className","disabled","error","IconComponent","inputRef","variant"],fpe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Q(r)}`,a&&"iconOpen",n&&"disabled"]};return de(s,lpe,t)},rM=({ownerState:e,theme:t})=>O({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":O({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),dpe=U("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${xw.multiple}`]:t.multiple}]}})(rM),nM=({ownerState:e,theme:t})=>O({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ppe=U("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Q(r.variant)}`],r.open&&t.iconOpen]}})(nM),vpe=f.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=X(t,cpe),c=O({},t,{disabled:o,variant:u,error:a}),d=fpe(c);return E.jsxs(f.Fragment,{children:[E.jsx(dpe,O({ownerState:c,className:ee(d.select,n),disabled:o,ref:s||r},l)),t.multiple?null:E.jsx(ppe,{as:i,ownerState:c,className:d.icon})]})}),hpe=vpe;var yE;const mpe=["children","classes","className","label","notched"],gpe=U("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ype=U("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>O({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&O({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bpe(e){const{className:t,label:r,notched:n}=e,o=X(e,mpe),a=r!=null&&r!=="",i=O({},e,{notched:n,withLabel:a});return E.jsx(gpe,O({"aria-hidden":!0,className:t,ownerState:i},o,{children:E.jsx(ype,{ownerState:i,children:a?E.jsx("span",{children:r}):yE||(yE=E.jsx("span",{className:"notranslate",children:""}))})}))}const xpe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wpe=e=>{const{classes:t}=e,n=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dle,t);return O({},t,n)},Spe=U(Ch,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sh})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return O({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Io.focused} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Io.error} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Io.disabled} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&O({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),_pe=U(bpe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Cpe=U($h,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_h})(({theme:e,ownerState:t})=>O({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),oM=f.forwardRef(function(t,r){var n,o,a,i,s;const u=ve({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:y={},type:x="text"}=u,b=X(u,xpe),v=wpe(u),g=wa(),S=rl({props:u,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=O({},u,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:g,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:x}),_=(n=(o=y.root)!=null?o:l.Root)!=null?n:Spe,$=(a=(i=y.input)!=null?i:l.Input)!=null?a:Cpe;return E.jsx(Oh,O({slots:{root:_,input:$},renderSuffix:P=>E.jsx(_pe,{ownerState:w,className:v.notchedOutline,label:p!=null&&p!==""&&S.required?s||(s=E.jsxs(f.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:r,type:x},b,{classes:O({},v,{notchedOutline:null})}))});oM.muiName="Input";const aM=oM;function $pe(e){return pe("MuiPagination",e)}ce("MuiPagination",["root","ul","outlined","text"]);const Ope=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Epe(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:p=1}=e,h=X(e,Ope),[m,y]=Cs({controlled:l,default:o,name:r,state:"page"}),x=(T,R)=>{l||y(R),u&&u(T,R)},b=(T,R)=>{const I=R-T+1;return Array.from({length:I},(A,L)=>T+L)},v=b(1,Math.min(t,n)),g=b(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(m-p,n-t-p*2-1),t+2),w=Math.min(Math.max(m+p,t+p*2+2),g.length>0?g[0]-2:n-1),_=[...c?["first"]:[],...s?[]:["previous"],...v,...S>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...b(S,w),...w<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...g,...i?[]:["next"],...d?["last"]:[]],$=T=>{switch(T){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},P=_.map(T=>typeof T=="number"?{onClick:R=>{x(R,T)},type:"page",page:T,selected:T===m,disabled:a,"aria-current":T===m?"true":void 0}:{onClick:R=>{x(R,$(T))},type:T,page:$(T),selected:!1,disabled:a||T.indexOf("ellipsis")===-1&&(T==="next"||T==="last"?m>=n:m<=1)});return O({items:P},h)}function Ppe(e){return pe("MuiPaginationItem",e)}const Tpe=ce("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Vr=Tpe,ob=jt(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),ab=jt(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),bE=jt(E.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),xE=jt(E.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Rpe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],iM=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Q(r.size)}`],r.variant==="text"&&t[`text${Q(r.color)}`],r.variant==="outlined"&&t[`outlined${Q(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},kpe=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:u}=e,l={root:["root",`size${Q(a)}`,u,i,r!=="standard"&&`color${Q(r)}`,r!=="standard"&&`${u}${Q(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return de(l,Ppe,t)},Ipe=U("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:iM})(({theme:e,ownerState:t})=>O({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Vr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Ape=U(ba,{name:"MuiPaginationItem",slot:"Root",overridesResolver:iM})(({theme:e,ownerState:t})=>O({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Vr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vr.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Vr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Vr.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>O({},t.variant==="text"&&{[`&.${Vr.selected}`]:O({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Vr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Vr.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Vr.selected}`]:O({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Be(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Be(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Vr.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),jpe=U("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>O({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Mpe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:d="circular",size:p="medium",slots:h={},type:m="page",variant:y="text"}=n,x=X(n,Rpe),b=O({},n,{color:a,disabled:u,selected:c,shape:d,size:p,type:m,variant:y}),v=$r(),g=kpe(b),w=(v.direction==="rtl"?{previous:h.next||s.next||xE,next:h.previous||s.previous||bE,last:h.first||s.first||ob,first:h.last||s.last||ab}:{previous:h.previous||s.previous||bE,next:h.next||s.next||xE,first:h.first||s.first||ob,last:h.last||s.last||ab})[m];return m==="start-ellipsis"||m==="end-ellipsis"?E.jsx(Ipe,{ref:r,ownerState:b,className:ee(g.root,o),children:"…"}):E.jsxs(Ape,O({ref:r,ownerState:b,component:i,disabled:u,className:ee(g.root,o)},x,{children:[m==="page"&&l,w?E.jsx(jpe,{as:w,ownerState:b,className:g.icon}):null]}))}),Fpe=Mpe,Npe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Lpe=e=>{const{classes:t,variant:r}=e;return de({root:["root",r],ul:["ul"]},$pe,t)},Dpe=U("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Bpe=U("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function zpe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Upe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=zpe,hideNextButton:d=!1,hidePrevButton:p=!1,renderItem:h=P=>E.jsx(Fpe,O({},P)),shape:m="circular",showFirstButton:y=!1,showLastButton:x=!1,siblingCount:b=1,size:v="medium",variant:g="text"}=n,S=X(n,Npe),{items:w}=Epe(O({},n,{componentName:"Pagination"})),_=O({},n,{boundaryCount:o,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:d,hidePrevButton:p,renderItem:h,shape:m,showFirstButton:y,showLastButton:x,siblingCount:b,size:v,variant:g}),$=Lpe(_);return E.jsx(Dpe,O({"aria-label":"pagination navigation",className:ee($.root,a),ownerState:_,ref:r},S,{children:E.jsx(Bpe,{className:$.ul,ownerState:_,children:w.map((P,T)=>E.jsx("li",{children:h(O({},P,{color:i,"aria-label":c(P.type,P.page,P.selected),shape:m,size:v,variant:g}))},T))})}))}),Vpe=Upe;function Wpe(e){return pe("MuiScopedCssBaseline",e)}ce("MuiScopedCssBaseline",["root"]);const Hpe=["className","component","enableColorScheme"],qpe=e=>{const{classes:t}=e;return de({root:["root"]},Wpe,t)},Gpe=U("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),O({},jue(e,t.enableColorScheme),Mue(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),Kpe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=X(n,Hpe),s=O({},n,{component:a}),u=qpe(s);return E.jsx(Gpe,O({as:a,className:ee(u.root,o),ref:r,ownerState:s},i))}),Qpe=Kpe;function Ype(e){return pe("MuiSelect",e)}const Xpe=ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ol=Xpe;var wE;const Jpe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Zpe=U("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Ol.select}`]:t.select},{[`&.${Ol.select}`]:t[r.variant]},{[`&.${Ol.error}`]:t.error},{[`&.${Ol.multiple}`]:t.multiple}]}})(rM,{[`&.${Ol.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),eve=U("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Q(r.variant)}`],r.open&&t.iconOpen]}})(nM),tve=U("input",{shouldForwardProp:e=>ZB(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function SE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function rve(e){return e==null||typeof e=="string"&&!e.trim()}const nve=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Q(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return de(s,Ype,t)},ove=f.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:y,inputRef:x,labelId:b,MenuProps:v={},multiple:g,name:S,onBlur:w,onChange:_,onClose:$,onFocus:P,onOpen:T,open:R,readOnly:I,renderValue:A,SelectDisplayProps:L={},tabIndex:M,value:F,variant:j="standard"}=t,B=X(t,Jpe),[k,N]=Cs({controlled:F,default:d,name:"Select"}),[z,H]=Cs({controlled:R,default:c,name:"Select"}),K=f.useRef(null),J=f.useRef(null),[te,ae]=f.useState(null),{current:fe}=f.useRef(R!=null),[Se,_e]=f.useState(),he=ot(r,x),ue=f.useCallback(ge=>{J.current=ge,ge&&ae(ge)},[]),se=te==null?void 0:te.parentNode;f.useImperativeHandle(he,()=>({focus:()=>{J.current.focus()},node:K.current,value:k}),[k]),f.useEffect(()=>{c&&z&&te&&!fe&&(_e(s?null:se.clientWidth),J.current.focus())},[te,s]),f.useEffect(()=>{i&&J.current.focus()},[i]),f.useEffect(()=>{if(!b)return;const ge=Et(J.current).getElementById(b);if(ge){const Ne=()=>{getSelection().isCollapsed&&J.current.focus()};return ge.addEventListener("click",Ne),()=>{ge.removeEventListener("click",Ne)}}},[b]);const ye=(ge,Ne)=>{ge?T&&T(Ne):$&&$(Ne),fe||(_e(s?null:se.clientWidth),H(ge))},ie=ge=>{ge.button===0&&(ge.preventDefault(),J.current.focus(),ye(!0,ge))},Pe=ge=>{ye(!1,ge)},Re=f.Children.toArray(u),Kt=ge=>{const Ne=Re.find(et=>et.props.value===ge.target.value);Ne!==void 0&&(N(Ne.props.value),_&&_(ge,Ne))},Tt=ge=>Ne=>{let et;if(Ne.currentTarget.hasAttribute("tabindex")){if(g){et=Array.isArray(k)?k.slice():[];const cr=k.indexOf(ge.props.value);cr===-1?et.push(ge.props.value):et.splice(cr,1)}else et=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Ne),k!==et&&(N(et),_)){const cr=Ne.nativeEvent||Ne,vi=new cr.constructor(cr.type,cr);Object.defineProperty(vi,"target",{writable:!0,value:{value:et,name:S}}),_(vi,ge)}g||ye(!1,Ne)}},dt=ge=>{I||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ge.key)!==-1&&(ge.preventDefault(),ye(!0,ge))},D=te!==null&&z,V=ge=>{!D&&w&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:k,name:S}}),w(ge))};delete B["aria-invalid"];let W,re;const Y=[];let q=!1;(dp({value:k})||h)&&(A?W=A(k):q=!0);const oe=Re.map(ge=>{if(!f.isValidElement(ge))return null;let Ne;if(g){if(!Array.isArray(k))throw new Error(mo(2));Ne=k.some(et=>SE(et,ge.props.value)),Ne&&q&&Y.push(ge.props.children)}else Ne=SE(k,ge.props.value),Ne&&q&&(re=ge.props.children);return f.cloneElement(ge,{"aria-selected":Ne?"true":"false",onClick:Tt(ge),onKeyUp:et=>{et.key===" "&&et.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(et)},role:"option",selected:Ne,value:void 0,"data-value":ge.props.value})});q&&(g?Y.length===0?W=null:W=Y.reduce((ge,Ne,et)=>(ge.push(Ne),et<Y.length-1&&ge.push(", "),ge),[]):W=re);let $e=Se;!s&&fe&&te&&($e=se.clientWidth);let Me;typeof M<"u"?Me=M:Me=p?null:0;const Oe=L.id||(S?`mui-component-select-${S}`:void 0),me=O({},t,{variant:j,value:k,open:D,error:m}),pt=nve(me),Or=O({},v.PaperProps,(n=v.slotProps)==null?void 0:n.paper),rr=ri();return E.jsxs(f.Fragment,{children:[E.jsx(Zpe,O({ref:ue,tabIndex:Me,role:"combobox","aria-controls":rr,"aria-disabled":p?"true":void 0,"aria-expanded":D?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[b,Oe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:dt,onMouseDown:p||I?null:ie,onBlur:V,onFocus:P},L,{ownerState:me,className:ee(L.className,pt.select,l),id:Oe,children:rve(W)?wE||(wE=E.jsx("span",{className:"notranslate",children:""})):W})),E.jsx(tve,O({"aria-invalid":m,value:Array.isArray(k)?k.join(","):k,name:S,ref:K,"aria-hidden":!0,onChange:Kt,tabIndex:-1,disabled:p,className:pt.nativeInput,autoFocus:i,ownerState:me},B)),E.jsx(eve,{as:y,className:pt.icon,ownerState:me}),E.jsx(Ph,O({id:`menu-${S||""}`,anchorEl:se,open:D,onClose:Pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:O({"aria-labelledby":b,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:rr},v.MenuListProps),slotProps:O({},v.slotProps,{paper:O({},Or,{style:O({minWidth:$e},Or!=null?Or.style:null)})}),children:oe}))]})}),ave=ove,ive=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],sve=["root"],lve=e=>{const{classes:t}=e;return t},ww={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},uve=U(Gj,ww)(""),cve=U(aM,ww)(""),fve=U(Vj,ww)(""),sM=f.forwardRef(function(t,r){const n=ve({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=mle,id:d,input:p,inputProps:h,label:m,labelId:y,MenuProps:x,multiple:b=!1,native:v=!1,onClose:g,onOpen:S,open:w,renderValue:_,SelectDisplayProps:$,variant:P="outlined"}=n,T=X(n,ive),R=v?hpe:ave,I=wa(),A=rl({props:n,muiFormControl:I,states:["variant","error"]}),L=A.variant||P,M=O({},n,{variant:L,classes:i}),F=lve(M),j=X(F,sve),B=p||{standard:E.jsx(uve,{ownerState:M}),outlined:E.jsx(cve,{label:m,ownerState:M}),filled:E.jsx(fve,{ownerState:M})}[L],k=ot(r,B.ref);return E.jsx(f.Fragment,{children:f.cloneElement(B,O({inputComponent:R,inputProps:O({children:a,error:A.error,IconComponent:c,variant:L,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:x,onClose:g,onOpen:S,open:w,renderValue:_,SelectDisplayProps:O({id:d},$)},h,{classes:h?ir(j,h.classes):j},p?p.props.inputProps:{})},(b&&v||l)&&L==="outlined"?{notched:!0}:{},{ref:k,className:ee(B.props.className,s,F.root)},!p&&{variant:L},T))})});sM.muiName="Select";const lM=sM;function dve(e){return pe("MuiSnackbarContent",e)}ce("MuiSnackbarContent",["root","message","action"]);const pve=["action","className","message","role"],vve=e=>{const{classes:t}=e;return de({root:["root"],action:["action"],message:["message"]},dve,t)},hve=U(Oo,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=z6(e.palette.background.default,t);return O({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),mve=U("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),gve=U("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),yve=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,u=X(n,pve),l=n,c=vve(l);return E.jsxs(hve,O({role:s,square:!0,elevation:6,className:ee(c.root,a),ownerState:l,ref:r},u,{children:[E.jsx(mve,{className:c.message,ownerState:l,children:i}),o?E.jsx(gve,{className:c.action,ownerState:l,children:o}):null]}))}),bve=yve;function xve(e){return pe("MuiSnackbar",e)}ce("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const wve=["onEnter","onExited"],Sve=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],_ve=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Q(r.vertical)}${Q(r.horizontal)}`]};return de(n,xve,t)},_E=U("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Q(r.anchorOrigin.vertical)}${Q(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return O({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:O({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),Cve=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiSnackbar"}),o=$r(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:m=!1,message:y,open:x,TransitionComponent:b=vp,transitionDuration:v=a,TransitionProps:{onEnter:g,onExited:S}={}}=n,w=X(n.TransitionProps,wve),_=X(n,Sve),$=O({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:m,TransitionComponent:b,transitionDuration:v}),P=_ve($),{getRootProps:T,onClickAway:R}=lse(O({},$)),[I,A]=f.useState(!0),L=ua({elementType:_E,getSlotProps:T,externalForwardedProps:_,ownerState:$,additionalProps:{ref:r},className:[P.root,d]}),M=j=>{A(!0),S&&S(j)},F=(j,B)=>{A(!1),g&&g(j,B)};return!x&&I?null:E.jsx(Tae,O({onClickAway:R},p,{children:E.jsx(_E,O({},L,{children:E.jsx(b,O({appear:!0,in:x,timeout:v,direction:s==="top"?"down":"up",onEnter:F,onExited:M},w,{children:c||E.jsx(bve,O({message:y,action:i},h))}))}))}))}),$ve=Cve;function Ove(e){return pe("MuiTooltip",e)}const Eve=ce("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),qo=Eve,Pve=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Tve(e){return Math.round(e*1e5)/1e5}const Rve=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${Q(a.split("-")[0])}`],arrow:["arrow"]};return de(i,Ove,t)},kve=U(Ij,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>O({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${qo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qo.arrow}`]:O({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${qo.arrow}`]:O({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Ive=U("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Q(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>O({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Be(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Tve(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${qo.popper}[data-popper-placement*="left"] &`]:O({transformOrigin:"right center"},t.isRtl?O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):O({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${qo.popper}[data-popper-placement*="right"] &`]:O({transformOrigin:"left center"},t.isRtl?O({marginRight:"14px"},t.touch&&{marginRight:"24px"}):O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${qo.popper}[data-popper-placement*="top"] &`]:O({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${qo.popper}[data-popper-placement*="bottom"] &`]:O({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Ave=U("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Be(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let df=!1;const CE=new tc;let El={x:0,y:0};function pf(e,t){return r=>{t&&t(r),e(r)}}const jve=f.forwardRef(function(t,r){var n,o,a,i,s,u,l,c,d,p,h,m,y,x,b,v,g,S,w;const _=ve({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:P,components:T={},componentsProps:R={},describeChild:I=!1,disableFocusListener:A=!1,disableHoverListener:L=!1,disableInteractive:M=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:B=0,enterTouchDelay:k=700,followCursor:N=!1,id:z,leaveDelay:H=0,leaveTouchDelay:K=1500,onClose:J,onOpen:te,open:ae,placement:fe="bottom",PopperComponent:Se,PopperProps:_e={},slotProps:he={},slots:ue={},title:se,TransitionComponent:ye=vp,TransitionProps:ie}=_,Pe=X(_,Pve),Re=f.isValidElement(P)?P:E.jsx("span",{children:P}),Kt=$r(),Tt=Kt.direction==="rtl",[dt,D]=f.useState(),[V,W]=f.useState(null),re=f.useRef(!1),Y=M||N,q=Fa(),oe=Fa(),$e=Fa(),Me=Fa(),[Oe,me]=Cs({controlled:ae,default:!1,name:"Tooltip",state:"open"});let pt=Oe;const Or=ri(z),rr=f.useRef(),ge=Xr(()=>{rr.current!==void 0&&(document.body.style.WebkitUserSelect=rr.current,rr.current=void 0),Me.clear()});f.useEffect(()=>ge,[ge]);const Ne=Ie=>{CE.clear(),df=!0,me(!0),te&&!pt&&te(Ie)},et=Xr(Ie=>{CE.start(800+H,()=>{df=!1}),me(!1),J&&pt&&J(Ie),q.start(Kt.transitions.duration.shortest,()=>{re.current=!1})}),cr=Ie=>{re.current&&Ie.type!=="touchstart"||(dt&&dt.removeAttribute("title"),oe.clear(),$e.clear(),j||df&&B?oe.start(df?B:j,()=>{Ne(Ie)}):Ne(Ie))},vi=Ie=>{oe.clear(),$e.start(H,()=>{et(Ie)})},{isFocusVisibleRef:jS,onBlur:S3,onFocus:_3,ref:C3}=_v(),[,MS]=f.useState(!1),FS=Ie=>{S3(Ie),jS.current===!1&&(MS(!1),vi(Ie))},NS=Ie=>{dt||D(Ie.currentTarget),_3(Ie),jS.current===!0&&(MS(!0),cr(Ie))},LS=Ie=>{re.current=!0;const Er=Re.props;Er.onTouchStart&&Er.onTouchStart(Ie)},$3=Ie=>{LS(Ie),$e.clear(),q.clear(),ge(),rr.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Me.start(k,()=>{document.body.style.WebkitUserSelect=rr.current,cr(Ie)})},O3=Ie=>{Re.props.onTouchEnd&&Re.props.onTouchEnd(Ie),ge(),$e.start(K,()=>{et(Ie)})};f.useEffect(()=>{if(!pt)return;function Ie(Er){(Er.key==="Escape"||Er.key==="Esc")&&et(Er)}return document.addEventListener("keydown",Ie),()=>{document.removeEventListener("keydown",Ie)}},[et,pt]);const E3=ot(Re.ref,C3,D,r);!se&&se!==0&&(pt=!1);const Bh=f.useRef(),P3=Ie=>{const Er=Re.props;Er.onMouseMove&&Er.onMouseMove(Ie),El={x:Ie.clientX,y:Ie.clientY},Bh.current&&Bh.current.update()},sl={},zh=typeof se=="string";I?(sl.title=!pt&&zh&&!L?se:null,sl["aria-describedby"]=pt?Or:null):(sl["aria-label"]=zh?se:null,sl["aria-labelledby"]=pt&&!zh?Or:null);const cn=O({},sl,Pe,Re.props,{className:ee(Pe.className,Re.props.className),onTouchStart:LS,ref:E3},N?{onMouseMove:P3}:{}),ll={};F||(cn.onTouchStart=$3,cn.onTouchEnd=O3),L||(cn.onMouseOver=pf(cr,cn.onMouseOver),cn.onMouseLeave=pf(vi,cn.onMouseLeave),Y||(ll.onMouseOver=cr,ll.onMouseLeave=vi)),A||(cn.onFocus=pf(NS,cn.onFocus),cn.onBlur=pf(FS,cn.onBlur),Y||(ll.onFocus=NS,ll.onBlur=FS));const T3=f.useMemo(()=>{var Ie;let Er=[{name:"arrow",enabled:!!V,options:{element:V,padding:4}}];return(Ie=_e.popperOptions)!=null&&Ie.modifiers&&(Er=Er.concat(_e.popperOptions.modifiers)),O({},_e.popperOptions,{modifiers:Er})},[V,_e]),ul=O({},_,{isRtl:Tt,arrow:$,disableInteractive:Y,placement:fe,PopperComponentProp:Se,touch:re.current}),Uh=Rve(ul),DS=(n=(o=ue.popper)!=null?o:T.Popper)!=null?n:kve,BS=(a=(i=(s=ue.transition)!=null?s:T.Transition)!=null?i:ye)!=null?a:vp,zS=(u=(l=ue.tooltip)!=null?l:T.Tooltip)!=null?u:Ive,US=(c=(d=ue.arrow)!=null?d:T.Arrow)!=null?c:Ave,R3=Yi(DS,O({},_e,(p=he.popper)!=null?p:R.popper,{className:ee(Uh.popper,_e==null?void 0:_e.className,(h=(m=he.popper)!=null?m:R.popper)==null?void 0:h.className)}),ul),k3=Yi(BS,O({},ie,(y=he.transition)!=null?y:R.transition),ul),I3=Yi(zS,O({},(x=he.tooltip)!=null?x:R.tooltip,{className:ee(Uh.tooltip,(b=(v=he.tooltip)!=null?v:R.tooltip)==null?void 0:b.className)}),ul),A3=Yi(US,O({},(g=he.arrow)!=null?g:R.arrow,{className:ee(Uh.arrow,(S=(w=he.arrow)!=null?w:R.arrow)==null?void 0:S.className)}),ul);return E.jsxs(f.Fragment,{children:[f.cloneElement(Re,cn),E.jsx(DS,O({as:Se??Ij,placement:fe,anchorEl:N?{getBoundingClientRect:()=>({top:El.y,left:El.x,right:El.x,bottom:El.y,width:0,height:0})}:dt,popperRef:Bh,open:dt?pt:!1,id:Or,transition:!0},ll,R3,{popperOptions:T3,children:({TransitionProps:Ie})=>E.jsx(BS,O({timeout:Kt.transitions.duration.shorter},Ie,k3,{children:E.jsxs(zS,O({},I3,{children:[se,$?E.jsx(US,O({},A3,{ref:W})):null]}))}))}))]})}),Eo=jve,Mve=f.createContext(),uM=Mve;function Fve(e){return pe("MuiTable",e)}ce("MuiTable",["root","stickyHeader"]);const Nve=["className","component","padding","size","stickyHeader"],Lve=e=>{const{classes:t,stickyHeader:r}=e;return de({root:["root",r&&"stickyHeader"]},Fve,t)},Dve=U("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":O({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),$E="table",Bve=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTable"}),{className:o,component:a=$E,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=X(n,Nve),c=O({},n,{component:a,padding:i,size:s,stickyHeader:u}),d=Lve(c),p=f.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return E.jsx(uM.Provider,{value:p,children:E.jsx(Dve,O({as:a,role:a===$E?null:"table",ref:r,className:ee(d.root,o),ownerState:c},l))})}),cM=Bve,zve=f.createContext(),Th=zve;function Uve(e){return pe("MuiTableBody",e)}ce("MuiTableBody",["root"]);const Vve=["className","component"],Wve=e=>{const{classes:t}=e;return de({root:["root"]},Uve,t)},Hve=U("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),qve={variant:"body"},OE="tbody",Gve=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTableBody"}),{className:o,component:a=OE}=n,i=X(n,Vve),s=O({},n,{component:a}),u=Wve(s);return E.jsx(Th.Provider,{value:qve,children:E.jsx(Hve,O({className:ee(u.root,o),as:a,ref:r,role:a===OE?null:"rowgroup",ownerState:s},i))})}),fM=Gve;function Kve(e){return pe("MuiTableCell",e)}const Qve=ce("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Yve=Qve,Xve=["align","className","component","padding","scope","size","sortDirection","variant"],Jve=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Q(n)}`,o!=="normal"&&`padding${Q(o)}`,`size${Q(a)}`]};return de(s,Kve,t)},Zve=U("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Q(r.size)}`],r.padding!=="normal"&&t[`padding${Q(r.padding)}`],r.align!=="inherit"&&t[`align${Q(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
261
|
+
${e.palette.mode==="light"?F1(Be(e.palette.divider,1),.88):M1(Be(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Yve.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ehe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:d}=n,p=X(n,Xve),h=f.useContext(uM),m=f.useContext(Th),y=m&&m.variant==="head";let x;i?x=i:x=y?"th":"td";let b=u;x==="td"?b=void 0:!b&&y&&(b="col");const v=d||m&&m.variant,g=O({},n,{align:o,component:x,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:v==="head"&&h&&h.stickyHeader,variant:v}),S=Jve(g);let w=null;return c&&(w=c==="asc"?"ascending":"descending"),E.jsx(Zve,O({as:x,ref:r,className:ee(S.root,a),"aria-sort":w,scope:b,ownerState:g},p))}),Zt=ehe;function the(e){return pe("MuiTableHead",e)}ce("MuiTableHead",["root"]);const rhe=["className","component"],nhe=e=>{const{classes:t}=e;return de({root:["root"]},the,t)},ohe=U("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ahe={variant:"head"},EE="thead",ihe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTableHead"}),{className:o,component:a=EE}=n,i=X(n,rhe),s=O({},n,{component:a}),u=nhe(s);return E.jsx(Th.Provider,{value:ahe,children:E.jsx(ohe,O({as:a,className:ee(u.root,o),ref:r,role:a===EE?null:"rowgroup",ownerState:s},i))})}),dM=ihe;function she(e){return pe("MuiToolbar",e)}ce("MuiToolbar",["root","gutters","regular","dense"]);const lhe=["className","component","disableGutters","variant"],uhe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return de({root:["root",!r&&"gutters",n]},she,t)},che=U("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>O({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),fhe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,u=X(n,lhe),l=O({},n,{component:a,disableGutters:i,variant:s}),c=uhe(l);return E.jsx(che,O({as:a,className:ee(c.root,o),ref:r,ownerState:l},u))}),Rc=fhe,dhe=jt(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),phe=jt(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),vhe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],hhe=f.forwardRef(function(t,r){var n,o,a,i,s,u,l,c;const{backIconButtonProps:d,count:p,disabled:h=!1,getItemAriaLabel:m,nextIconButtonProps:y,onPageChange:x,page:b,rowsPerPage:v,showFirstButton:g,showLastButton:S,slots:w={},slotProps:_={}}=t,$=X(t,vhe),P=$r(),T=he=>{x(he,0)},R=he=>{x(he,b-1)},I=he=>{x(he,b+1)},A=he=>{x(he,Math.max(0,Math.ceil(p/v)-1))},L=(n=w.firstButton)!=null?n:mt,M=(o=w.lastButton)!=null?o:mt,F=(a=w.nextButton)!=null?a:mt,j=(i=w.previousButton)!=null?i:mt,B=(s=w.firstButtonIcon)!=null?s:ob,k=(u=w.lastButtonIcon)!=null?u:ab,N=(l=w.nextButtonIcon)!=null?l:phe,z=(c=w.previousButtonIcon)!=null?c:dhe,H=P.direction==="rtl"?M:L,K=P.direction==="rtl"?F:j,J=P.direction==="rtl"?j:F,te=P.direction==="rtl"?L:M,ae=P.direction==="rtl"?_.lastButton:_.firstButton,fe=P.direction==="rtl"?_.nextButton:_.previousButton,Se=P.direction==="rtl"?_.previousButton:_.nextButton,_e=P.direction==="rtl"?_.firstButton:_.lastButton;return E.jsxs("div",O({ref:r},$,{children:[g&&E.jsx(H,O({onClick:T,disabled:h||b===0,"aria-label":m("first",b),title:m("first",b)},ae,{children:P.direction==="rtl"?E.jsx(k,O({},_.lastButtonIcon)):E.jsx(B,O({},_.firstButtonIcon))})),E.jsx(K,O({onClick:R,disabled:h||b===0,color:"inherit","aria-label":m("previous",b),title:m("previous",b)},fe??d,{children:P.direction==="rtl"?E.jsx(N,O({},_.nextButtonIcon)):E.jsx(z,O({},_.previousButtonIcon))})),E.jsx(J,O({onClick:I,disabled:h||(p!==-1?b>=Math.ceil(p/v)-1:!1),color:"inherit","aria-label":m("next",b),title:m("next",b)},Se??y,{children:P.direction==="rtl"?E.jsx(z,O({},_.previousButtonIcon)):E.jsx(N,O({},_.nextButtonIcon))})),S&&E.jsx(te,O({onClick:A,disabled:h||b>=Math.ceil(p/v)-1,"aria-label":m("last",b),title:m("last",b)},_e,{children:P.direction==="rtl"?E.jsx(B,O({},_.firstButtonIcon)):E.jsx(k,O({},_.lastButtonIcon))}))]}))}),mhe=hhe;function ghe(e){return pe("MuiTablePagination",e)}const yhe=ce("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),iu=yhe;var PE;const bhe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],xhe=U(Zt,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),whe=U(Rc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>O({[`& .${iu.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${iu.actions}`]:{flexShrink:0,marginLeft:20}})),She=U("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),_he=U("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>O({},e.typography.body2,{flexShrink:0})),Che=U(lM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>O({[`& .${iu.selectIcon}`]:t.selectIcon,[`& .${iu.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${iu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),$he=U(Nn,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ohe=U("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>O({},e.typography.body2,{flexShrink:0}));function Ehe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function Phe(e){return`Go to ${e} page`}const The=e=>{const{classes:t}=e;return de({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ghe,t)},Rhe=f.forwardRef(function(t,r){var n;const o=ve({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=mhe,backIconButtonProps:i,className:s,colSpan:u,component:l=Zt,count:c,disabled:d=!1,getItemAriaLabel:p=Phe,labelDisplayedRows:h=Ehe,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:y,onPageChange:x,onRowsPerPageChange:b,page:v,rowsPerPage:g,rowsPerPageOptions:S=[10,25,50,100],SelectProps:w={},showFirstButton:_=!1,showLastButton:$=!1,slotProps:P={},slots:T={}}=o,R=X(o,bhe),I=o,A=The(I),L=(n=P==null?void 0:P.select)!=null?n:w,M=L.native?"option":$he;let F;(l===Zt||l==="td")&&(F=u||1e3);const j=ri(L.id),B=ri(L.labelId),k=()=>c===-1?(v+1)*g:g===-1?c:Math.min(c,(v+1)*g);return E.jsx(xhe,O({colSpan:F,ref:r,as:l,ownerState:I,className:ee(A.root,s)},R,{children:E.jsxs(whe,{className:A.toolbar,children:[E.jsx(She,{className:A.spacer}),S.length>1&&E.jsx(_he,{className:A.selectLabel,id:B,children:m}),S.length>1&&E.jsx(Che,O({variant:"standard"},!L.variant&&{input:PE||(PE=E.jsx(Oh,{}))},{value:g,onChange:b,id:j,labelId:B},L,{classes:O({},L.classes,{root:ee(A.input,A.selectRoot,(L.classes||{}).root),select:ee(A.select,(L.classes||{}).select),icon:ee(A.selectIcon,(L.classes||{}).icon)}),disabled:d,children:S.map(N=>f.createElement(M,O({},!ii(M)&&{ownerState:I},{className:A.menuItem,key:N.label?N.label:N,value:N.value?N.value:N}),N.label?N.label:N))})),E.jsx(Ohe,{className:A.displayedRows,children:h({from:c===0?0:v*g+1,to:k(),count:c===-1?-1:c,page:v})}),E.jsx(a,{className:A.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:x,page:v,rowsPerPage:g,showFirstButton:_,showLastButton:$,slotProps:P.actions,slots:T.actions,getItemAriaLabel:p,disabled:d})]})}))}),TE=Rhe;function khe(e){return pe("MuiTableRow",e)}const Ihe=ce("MuiTableRow",["root","selected","hover","head","footer"]),RE=Ihe,Ahe=["className","component","hover","selected"],jhe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return de({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},khe,t)},Mhe=U("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${RE.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${RE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),kE="tr",Fhe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTableRow"}),{className:o,component:a=kE,hover:i=!1,selected:s=!1}=n,u=X(n,Ahe),l=f.useContext(Th),c=O({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),d=jhe(c);return E.jsx(Mhe,O({as:a,ref:r,className:ee(d.root,o),role:a===kE?null:"row",ownerState:c},u))}),Hu=Fhe,Nhe=jt(E.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Lhe(e){return pe("MuiTableSortLabel",e)}const Dhe=ce("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Vm=Dhe,Bhe=["active","children","className","direction","hideSortIcon","IconComponent"],zhe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${Q(r)}`]};return de(o,Lhe,t)},Uhe=U(ba,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Vm.icon}`]:{opacity:.5}},[`&.${Vm.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Vm.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),Vhe=U("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Q(r.direction)}`]]}})(({theme:e,ownerState:t})=>O({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),Whe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=Nhe}=n,c=X(n,Bhe),d=O({},n,{active:o,direction:s,hideSortIcon:u,IconComponent:l}),p=zhe(d);return E.jsxs(Uhe,O({className:ee(p.root,i),component:"span",disableRipple:!0,ownerState:d,ref:r},c,{children:[a,u&&!o?null:E.jsx(Vhe,{as:l,className:ee(p.icon),ownerState:d})]}))}),Hhe=Whe;function qhe(e){return pe("MuiTextField",e)}ce("MuiTextField",["root"]);const Ghe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Khe={standard:Gj,filled:Vj,outlined:aM},Qhe=e=>{const{classes:t}=e;return de({root:["root"]},qhe,t)},Yhe=U(Xce,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xhe=f.forwardRef(function(t,r){const n=ve({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:y,InputLabelProps:x,inputProps:b,InputProps:v,inputRef:g,label:S,maxRows:w,minRows:_,multiline:$=!1,name:P,onBlur:T,onChange:R,onFocus:I,placeholder:A,required:L=!1,rows:M,select:F=!1,SelectProps:j,type:B,value:k,variant:N="outlined"}=n,z=X(n,Ghe),H=O({},n,{autoFocus:a,color:u,disabled:c,error:d,fullWidth:h,multiline:$,required:L,select:F,variant:N}),K=Qhe(H),J={};N==="outlined"&&(x&&typeof x.shrink<"u"&&(J.notched=x.shrink),J.label=S),F&&((!j||!j.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const te=ri(y),ae=m&&te?`${te}-helper-text`:void 0,fe=S&&te?`${te}-label`:void 0,Se=Khe[N],_e=E.jsx(Se,O({"aria-describedby":ae,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:$,name:P,rows:M,maxRows:w,minRows:_,type:B,value:k,id:te,inputRef:g,onBlur:T,onChange:R,onFocus:I,placeholder:A,inputProps:b},J,v));return E.jsxs(Yhe,O({className:ee(K.root,s),disabled:c,error:d,fullWidth:h,ref:r,required:L,color:u,variant:N,ownerState:H},z,{children:[S!=null&&S!==""&&E.jsx(Ife,O({htmlFor:te,id:fe},x,{children:S})),F?E.jsx(lM,O({"aria-describedby":ae,id:te,labelId:fe,value:k,input:_e},j,{children:i})):_e,m&&E.jsx(afe,O({id:ae},p,{children:m}))]}))}),Sw=Xhe,Jhe=["getTrigger","target"];function Zhe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.current<a?!1:e.current>n}const eme=typeof window<"u"?window:null;function pM(e={}){const{getTrigger:t=Zhe,target:r=eme}=e,n=X(e,Jhe),o=f.useRef(),[a,i]=f.useState(()=>t(o,n));return f.useEffect(()=>{const s=()=>{i(t(o,O({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var _w={},tme=we;Object.defineProperty(_w,"__esModule",{value:!0});var Cw=_w.default=void 0,rme=tme(Ce()),nme=E;Cw=_w.default=(0,rme.default)((0,nme.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var su=globalThis&&globalThis.__assign||function(){return su=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},su.apply(this,arguments)},vM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Po=function(e){var t=e.alignIcon,r=t===void 0?"left":t,n=e.children,o=e.className,a=e.disabled,i=e.label,s=e.color,u=s===void 0?"primary":s,l=e.size,c=l===void 0?"small":l,d=e.to,p=vM(e,["alignIcon","children","className","disabled","label","color","size","to"]),h=xe(),m=i?h(i,{_:i}):void 0,y=ime(d),x=Ur(function(b){return b.breakpoints.down("sm")});return x?i&&!a?f.createElement(Eo,{title:m},f.createElement(mt,su({"aria-label":m,className:o,color:u,size:"large"},y,p),n)):f.createElement(mt,su({className:o,color:u,disabled:a,size:"large"},y,p),n):f.createElement(ame,su({className:o,color:u,size:c,"aria-label":m,disabled:a,startIcon:r==="left"&&n?n:void 0,endIcon:r==="right"&&n?n:void 0},y,p),m)};Po.propTypes={alignIcon:C.oneOf(["left","right"]),children:C.element,className:C.string,color:C.oneOfType([C.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),C.string]),disabled:C.bool,label:C.string,size:C.oneOf(["small","medium","large"])};var ome="RaButton",ame=U(_r,{name:ome,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),ime=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,r=e.replace,n=e.state,o=vM(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:r,state:n}}},$w={},sme=we;Object.defineProperty($w,"__esModule",{value:!0});var hM=$w.default=void 0,lme=sme(Ce()),ume=E;hM=$w.default=(0,lme.default)((0,ume.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function mM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=mM(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ke(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=mM(e))&&(n&&(n+=" "),n+=t);return n}var mp=globalThis&&globalThis.__assign||function(){return mp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mp.apply(this,arguments)},gM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},yM=function(e){var t=e.className,r=e.icon,n=r===void 0?fme:r,o=e.label,a=o===void 0?"ra.action.create":o;e.resource;var i=e.scrollToTop,s=i===void 0?!0:i,u=e.variant,l=e.to,c=e.state,d=c===void 0?{}:c,p=gM(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),h=xt(e),m=pi(),y=xe(),x=Ur(function(g){return g.breakpoints.down("md")}),b=MI({},cme.get(String(s)),d),v=vme(l);return x?f.createElement(dme,mp({component:ai,to:m({resource:h,type:"create"}),state:b,color:"primary",className:ke(ib.floating,t),"aria-label":a&&y(a)},p,v),n):f.createElement(pme,mp({component:ai,to:m({resource:h,type:"create"}),state:b,className:ke(ib.root,t),label:a,variant:u},p,v),n)},cme=new Map([["true",{_scrollToTop:!0}],["false",{}]]),fme=f.createElement(hM,null);yM.propTypes={resource:C.string,className:C.string,icon:C.element,label:C.string};var gp="RaCreateButton",ib={root:"".concat(gp,"-root"),floating:"".concat(gp,"-floating")},dme=U(zce,{name:gp,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["&.".concat(ib.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),pme=U(Po,{name:gp,overridesResolver:function(e,t){return t.root}})({});const bM=f.memo(yM,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&zn(e.to,t.to)&&zn(e.state,t.state)});var vme=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,r=e.replace,n=e.state,o=gM(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:r,state:n}}},Ow={},hme=we;Object.defineProperty(Ow,"__esModule",{value:!0});var Ew=Ow.default=void 0,mme=hme(Ce()),gme=E;Ew=Ow.default=(0,mme.default)((0,gme.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Pw={},yme=we;Object.defineProperty(Pw,"__esModule",{value:!0});var xM=Pw.default=void 0,bme=yme(Ce()),xme=E;xM=Pw.default=(0,bme.default)((0,xme.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var kc=function(){var e=Ur(function(t){return t==null?void 0:t.breakpoints.down("sm")},{noSsr:!0});return $n("sidebar.open",!e)},wme=function(e){var t=xe(),r=e.className,n=kc(),o=n[0],a=n[1];return f.createElement(Eo,{className:r,title:t(o?"ra.action.close_menu":"ra.action.open_menu",{_:"Open/Close menu"}),enterDelay:500},f.createElement(Sme,{color:"inherit",onClick:function(){return a(!o)}},f.createElement(xM,{classes:{root:o?yp.menuButtonIconOpen:yp.menuButtonIconClosed}})))},sb="RaSidebarToggleButton",yp={menuButtonIconClosed:"".concat(sb,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(sb,"-menuButtonIconOpen")},Sme=U(mt,{name:sb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(yp.menuButtonIconClosed)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(0deg)"},t["& .".concat(yp.menuButtonIconOpen)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(180deg)"},t}),lb=globalThis&&globalThis.__assign||function(){return lb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lb.apply(this,arguments)},_me=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},vf,Wm,wM=function(e){var t=e.className,r=e.onClick,n=e.sx,o=_me(e,["className","onClick","sx"]),a=uX(),i=$r();return f.createElement(Cme,{className:t,sx:n},f.createElement(uF,{className:"".concat(ls.loadedIcon," ").concat(a&&ls.loadedLoading),onClick:r}),a&&f.createElement(fw,lb({className:ke("app-loader",ls.loader),color:"inherit",size:i.spacing(2),thickness:6},o)))};wM.propTypes={classes:C.object,className:C.string,width:C.string};var Gf="RaLoadingIndicator",ls={loader:"".concat(Gf,"-loader"),loadedLoading:"".concat(Gf,"-loadedLoading"),loadedIcon:"".concat(Gf,"-loadedIcon")},Cme=U("div",{name:Gf,overridesResolver:function(e,t){return t.root}})((vf={position:"relative"},vf["& .".concat(ls.loadedIcon)]=(Wm={},Wm["&.".concat(ls.loadedLoading)]={opacity:0},Wm),vf["& .".concat(ls.loader)]={position:"absolute",top:"30%",left:"30%"},vf)),Tw={},$me=we;Object.defineProperty(Tw,"__esModule",{value:!0});var SM=Tw.default=void 0,Ome=$me(Ce()),Eme=E;SM=Tw.default=(0,Ome.default)((0,Eme.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var _M=f.createContext(void 0),Pme=function(e){var t=e.children,r=e.value;return f.createElement(_M.Provider,{value:r},t)},Rw={},Tme=we;Object.defineProperty(Rw,"__esModule",{value:!0});var CM=Rw.default=void 0,Rme=Tme(Ce()),kme=E;CM=Rw.default=(0,Rme.default)((0,kme.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew");var ub=globalThis&&globalThis.__assign||function(){return ub=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ub.apply(this,arguments)},Ime=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Hm,kw=f.forwardRef(function(t,r){var n=t.className,o=t.redirectTo,a=t.icon,i=Ime(t,["className","redirectTo","icon"]),s=nj().authenticated,u=Ur(function(p){return p.breakpoints.down("sm")}),l=xe(),c=Ec(),d=f.useCallback(function(){return c(null,o,!1)},[o,c]);return s?f.createElement(Ame,ub({className:ke("logout",n),onClick:d,ref:r,component:u?"span":"li"},i),f.createElement(yw,{className:OM.icon},a||f.createElement(CM,{fontSize:"small"})),f.createElement(bw,null,l("ra.auth.logout",{_:"Logout"}))):null});kw.propTypes={className:C.string,redirectTo:C.string,icon:C.element};var $M="RaLogout",OM={icon:"".concat($M,"-icon")},Ame=U(Nn,{name:$M,overridesResolver:function(e,t){return t.root}})((Hm={},Hm["& .".concat(OM.icon)]={},Hm)),Rh=function(e){var t=f.useState(null),r=t[0],n=t[1],o=xe(),a=gne(),i=a.isLoading,s=a.identity,u=xo(),l=Ur(function(w){return w.breakpoints.up("sm")}),c=e.children,d=c===void 0?u?f.createElement(kw,null):null:c,p=e.className,h=e.label,m=h===void 0?"ra.auth.user_menu":h,y=e.icon,x=y===void 0?Mme:y,b=function(w){return n(w.currentTarget)},v=f.useCallback(function(){return n(null)},[]),g=f.useMemo(function(){return{onClose:v}},[v]);if(!d)return null;var S=!!r;return f.createElement(jme,{className:p},l&&!i&&(s!=null&&s.fullName)?f.createElement(_r,{"aria-label":m&&o(m,{_:m}),className:lu.userButton,color:"inherit",startIcon:s.avatar?f.createElement(tb,{className:lu.avatar,src:s.avatar,alt:s.fullName}):x,onClick:b,variant:"text"},s.fullName):f.createElement(Eo,{title:m&&o(m,{_:"Profile"})},f.createElement(mt,{"aria-label":m&&o(m,{_:"Profile"}),"aria-owns":S?"menu-appbar":null,"aria-haspopup":!0,color:"inherit",onClick:b},!i&&(s!=null&&s.avatar)?f.createElement(tb,{className:lu.avatar,src:s.avatar,alt:s.fullName}):x)),f.createElement(Pme,{value:g},f.createElement(Ph,{id:"menu-appbar",disableScrollLock:!0,anchorEl:r,anchorOrigin:Fme,transformOrigin:Nme,open:S,onClose:v},d)))};Rh.propTypes={children:C.node,classes:C.object,label:C.string,icon:C.node};var cb="RaUserMenu",lu={userButton:"".concat(cb,"-userButton"),avatar:"".concat(cb,"-avatar")},jme=U("div",{name:cb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(lu.userButton)]={textTransform:"none",marginInlineStart:r.spacing(.5)},t["& .".concat(lu.avatar)]={width:r.spacing(3),height:r.spacing(3)},t}),Mme=f.createElement(SM,null),Fme={vertical:"bottom",horizontal:"right"},Nme={vertical:"top",horizontal:"right"},EM=function(e){var t=e.children,r=e.className,n=pM();return f.createElement(Dj,{appear:!1,direction:"down",in:!n,className:r},t)};EM.propTypes={children:C.node.isRequired,className:C.string};var fb=globalThis&&globalThis.__assign||function(){return fb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fb.apply(this,arguments)},PM=function(e){return f.createElement(Te,fb({flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-title"},e))},TM=f.createContext({}),kh=function(e){var t=e||{},r=t.lightTheme,n=t.darkTheme,o=t.defaultTheme,a=f.useContext(TM);return{lightTheme:r||a.lightTheme,darkTheme:n||a.darkTheme,defaultTheme:o??a.defaultTheme}},Iw={},Lme=we;Object.defineProperty(Iw,"__esModule",{value:!0});var Aw=Iw.default=void 0,Dme=Lme(Ce()),Bme=E;Aw=Iw.default=(0,Dme.default)((0,Bme.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4");var jw={},zme=we;Object.defineProperty(jw,"__esModule",{value:!0});var Mw=jw.default=void 0,Ume=zme(Ce()),Vme=E;Mw=jw.default=(0,Ume.default)((0,Vme.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7");var Fw=function(e){var t=kh().darkTheme,r=Ur("(prefers-color-scheme: dark)",{noSsr:!0}),n=$n("theme",e??(r&&t?"dark":"light")),o=n[0],a=n[1];return[t!=null?o:"light",a]},Wme=function(e){var t=e.children,r=e.theme,n=kh(),o=n.lightTheme,a=n.darkTheme,i=n.defaultTheme,s=Ur("(prefers-color-scheme: dark)",{noSsr:!0}),u=Fw(i||(s&&a?"dark":"light"))[0],l=f.useMemo(function(){try{return Fu(typeof u=="object"?u:u==="dark"?a:o||r)}catch(c){return console.warn("Failed to reuse custom theme from store",c),Fu()}},[u,r,o,a]);return f.createElement(Boe,{theme:l},t)},Da=globalThis&&globalThis.__assign||function(){return Da=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Da.apply(this,arguments)},db={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small"},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small"}}}},Hme=Da(Da({palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}}},db),{components:Da(Da({},db.components),{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}})});Da({palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}},db);var qme=function(e){var t=xe(),r=e.darkTheme,n=e.lightTheme,o=Fw(),a=o[0],i=o[1],s=a==="dark"||(a==null?void 0:a.palette.mode)==="dark",u=function(){i(s?n:r)},l=t("ra.action.toggle_theme",{_:"Toggle Theme"});return G.createElement(Eo,{title:l,enterDelay:300},G.createElement(mt,{color:"inherit",onClick:u,"aria-label":l},s?G.createElement(Mw,null):G.createElement(Aw,null)))},Gme=function(e){var t=xe(),r=kh(e),n=r.darkTheme,o=r.defaultTheme,a=Ur("(prefers-color-scheme: dark)",{noSsr:!0}),i=Fw(o||(a&&n?"dark":"light")),s=i[0],u=i[1];if(e.darkTheme)return G.createElement(qme,{darkTheme:e.darkTheme,lightTheme:e.lightTheme});var l=function(){u(s==="dark"?"light":"dark")},c=t("ra.action.toggle_theme",{_:"Toggle Theme"});return G.createElement(Eo,{title:c,enterDelay:300},G.createElement(mt,{color:"inherit",onClick:l,"aria-label":c},s==="dark"?G.createElement(Mw,null):G.createElement(Aw,null)))},pb=globalThis&&globalThis.__assign||function(){return pb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pb.apply(this,arguments)},Kme=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Nw=f.memo(function(e){var t=e.alwaysOn,r=e.children,n=e.className,o=e.color,a=o===void 0?"secondary":o;e.open,e.title;var i=e.toolbar,s=i===void 0?Yme:i,u=e.userMenu,l=u===void 0?Xme:u,c=e.container,d=c===void 0?t?"div":EM:c,p=Kme(e,["alwaysOn","children","className","color","open","title","toolbar","userMenu","container"]),h=Ur(function(m){return m.breakpoints.down("sm")});return f.createElement(d,{className:n},f.createElement(Jme,pb({className:Ba.appBar,color:a},p),f.createElement(Rc,{disableGutters:!0,variant:h?"regular":"dense",className:Ba.toolbar},f.createElement(wme,{className:Ba.menuButton}),f.Children.count(r)===0?f.createElement(PM,{className:Ba.title}):r,s,typeof l=="boolean"?l===!0?f.createElement(Rh,null):null:l)))}),Qme=function(){var e=NI(),t=kh().darkTheme;return f.createElement(f.Fragment,null,e&&e.length>1?f.createElement(Gye,null):null,t&&f.createElement(Gme,null),f.createElement(wM,null))},Yme=f.createElement(Qme,null);Nw.propTypes={alwaysOn:C.bool,children:C.node,className:C.string,color:C.oneOf(["default","inherit","primary","secondary","transparent"]),container:Gx,open:C.bool,toolbar:C.element,userMenu:C.oneOfType([C.element,C.bool])};var Xme=f.createElement(Rh,null),Ra="RaAppBar",Ba={appBar:"".concat(Ra,"-appBar"),toolbar:"".concat(Ra,"-toolbar"),menuButton:"".concat(Ra,"-menuButton"),menuButtonIconClosed:"".concat(Ra,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Ra,"-menuButtonIconOpen"),title:"".concat(Ra,"-title")},Jme=U(qse,{name:Ra,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Ba.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Ba.menuButton)]={marginRight:"0.2em"},t["& .".concat(Ba.title)]={},t}),bp=globalThis&&globalThis.__assign||function(){return bp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bp.apply(this,arguments)},Zme=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ege=f.forwardRef(function(e,t){var r=e.ButtonProps,n=e.updateText,o=n===void 0?"ra.action.update_application":n,a=e.notificationText,i=a===void 0?"ra.notification.application_update_available":a,s=Zme(e,["ButtonProps","updateText","notificationText"]),u=xe(),l=function(){window.location.reload()};return f.createElement(Ase,bp({ref:t,severity:"info",action:f.createElement(_r,bp({color:"inherit",size:"small",onClick:l},r),u(o,{_:o}))},s),u(i,{_:i}))}),vb=globalThis&&globalThis.__assign||function(){return vb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vb.apply(this,arguments)},tge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},rge=function(e){var t=e.notification,r=t===void 0?nge:t,n=tge(e,["notification"]),o=Br(),a=function(){o(r,{type:"info",autoHideDuration:null})};return Dre(vb({onNewVersionAvailable:a},n)),null},nge=f.createElement(ege,null),Lw={},oge=we;Object.defineProperty(Lw,"__esModule",{value:!0});var RM=Lw.default=void 0,age=oge(Ce()),ige=E;RM=Lw.default=(0,age.default)((0,ige.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var Dw={},sge=we;Object.defineProperty(Dw,"__esModule",{value:!0});var kM=Dw.default=void 0,lge=sge(Ce()),uge=E;kM=Dw.default=(0,lge.default)((0,uge.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var uu=globalThis&&globalThis.__assign||function(){return uu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},uu.apply(this,arguments)},cge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},IM=function(e){var t,r=e.className,n=e.isOpen,o=n===void 0?!1:n,a=e.loading,i=e.title,s=e.content,u=e.cancel,l=u===void 0?"ra.action.cancel":u,c=e.confirm,d=c===void 0?"ra.action.confirm":c,p=e.confirmColor,h=p===void 0?"primary":p,m=e.ConfirmIcon,y=m===void 0?RM:m,x=e.CancelIcon,b=x===void 0?kM:x,v=e.onClose,g=e.onConfirm,S=e.translateOptions,w=S===void 0?{}:S,_=cge(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),$=xe(),P=f.useCallback(function(R){R.stopPropagation(),g(R)},[g]),T=f.useCallback(function(R){R.stopPropagation()},[]);return f.createElement(fge,uu({className:r,open:o,onClose:v,onClick:T,"aria-labelledby":"alert-dialog-title"},_),f.createElement(mw,{id:"alert-dialog-title"},typeof i=="string"?$(i,uu({_:i},w)):i),f.createElement(hw,null,typeof s=="string"?f.createElement(Lj,null,$(s,uu({_:s},w))):s),f.createElement(vw,null,f.createElement(_r,{disabled:a,onClick:v,startIcon:f.createElement(b,null)},$(l,{_:l})),f.createElement(_r,{disabled:a,onClick:P,className:ke("ra-confirm",(t={},t[xp.confirmWarning]=h==="warning",t[xp.confirmPrimary]=h==="primary",t)),autoFocus:!0,startIcon:f.createElement(y,null)},$(d,{_:d}))))};IM.propTypes={cancel:C.string,className:C.string,confirm:C.string,confirmColor:C.string,ConfirmIcon:C.elementType,CancelIcon:C.elementType,content:C.node.isRequired,isOpen:C.bool,loading:C.bool,onClose:C.func.isRequired,onConfirm:C.func.isRequired,title:C.node.isRequired,sx:C.any};var hb="RaConfirm",xp={confirmPrimary:"".concat(hb,"-confirmPrimary"),confirmWarning:"".concat(hb,"-confirmWarning")},fge=U(pw,{name:hb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(xp.confirmPrimary)]={color:r.palette.primary.main},t["& .".concat(xp.confirmWarning)]={color:r.palette.error.main,"&:hover":{backgroundColor:Ts(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),Bw={},dge=we;Object.defineProperty(Bw,"__esModule",{value:!0});var AM=Bw.default=void 0,pge=dge(Ce()),vge=E;AM=Bw.default=(0,pge.default)((0,vge.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard");var qu=globalThis&&globalThis.__assign||function(){return qu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qu.apply(this,arguments)},hge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ih=f.forwardRef(function(e,t){var r=e.className,n=e.primaryText,o=e.leftIcon,a=e.onClick;e.sidebarIsOpen;var i=e.tooltipProps,s=e.children,u=hge(e,["className","primaryText","leftIcon","onClick","sidebarIsOpen","tooltipProps","children"]),l=Ur(function(g){return g.breakpoints.down("md")}),c=xe(),d=ha(),p=kc(),h=p[0],m=p[1],y=f.useCallback(function(g){l&&m(!1),a&&a(g)},[m,l,a]),x=(typeof e.to=="string"?e.to:e.to.pathname)||"",b=i9({path:x,end:x==="".concat(d,"/")}),v=function(){var g;return G.createElement(mge,qu({className:ke(r,(g={},g[wp.active]=!!b,g)),component:gge,ref:t,tabIndex:0},u,{onClick:y}),o&&G.createElement(yw,{className:wp.icon},o),s||(typeof n=="string"?c(n,{_:n}):n))};return h?v():G.createElement(Eo,qu({title:typeof n=="string"?c(n,{_:n}):n,placement:"right"},i),v())});Ih.propTypes={className:C.string,leftIcon:C.element,onClick:C.func,primaryText:C.node,to:C.oneOfType([C.string,C.object]).isRequired,sidebarIsOpen:C.bool};var mb="RaMenuItemLink",wp={active:"".concat(mb,"-active"),icon:"".concat(mb,"-icon")},mge=U(Nn,{name:mb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={color:r.palette.text.secondary},t["&.".concat(wp.active)]={color:r.palette.text.primary},t["& .".concat(wp.icon)]={minWidth:r.spacing(5)},t}),gge=f.forwardRef(function(e,t){return G.createElement(ai,qu({ref:t},e))}),gb=globalThis&&globalThis.__assign||function(){return gb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gb.apply(this,arguments)},yge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},zw=function(e){var t=ha(),r=e.leftIcon,n=r===void 0?G.createElement(AM,null):r,o=e.to,a=o===void 0?"".concat(t,"/"):o,i=e.primaryText,s=i===void 0?"ra.page.dashboard":i,u=yge(e,["leftIcon","to","primaryText"]);return G.createElement(Ih,gb({leftIcon:n,to:a,primaryText:s},u))};zw.propTypes={leftIcon:C.element,locale:C.string,onClick:C.func,dense:C.bool,sidebarIsOpen:C.bool};var Uw={},bge=we;Object.defineProperty(Uw,"__esModule",{value:!0});var jM=Uw.default=void 0,xge=bge(Ce()),wge=E;jM=Uw.default=(0,xge.default)((0,wge.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"}),"Report");var Vw={},Sge=we;Object.defineProperty(Vw,"__esModule",{value:!0});var Ic=Vw.default=void 0,_ge=Sge(Ce()),Cge=E;Ic=Vw.default=(0,_ge.default)((0,Cge.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var Ww={},$ge=we;Object.defineProperty(Ww,"__esModule",{value:!0});var MM=Ww.default=void 0,Oge=$ge(Ce()),Ege=E;MM=Ww.default=(0,Oge.default)((0,Ege.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Pge=function(e){var t=e.children,r=e.editor,n=e.preferenceKey,o=e.openButtonLabel,a=o===void 0?"ra.configurable.customize":o,i=e.sx,s="preferences.".concat(n),u=Kx(),l=!!u,c=xe(),d=u||{},p=d.isEnabled,h=d.setEditor,m=d.preferenceKey,y=d.setPreferenceKey,x=s===m,b=f.useRef(x),v=f.useRef(null),g=f.useState(!1),S=g[0],w=g[1];if(f.useEffect(function(){b.current=x},[x]),f.useEffect(function(){return function(){b.current&&(y&&y(null),h&&h(null))}},[h,y]),!l)return t;var _=function(){h(f.cloneElement(r,{preferenceKey:s,key:s})),y(s)},$=function(){w(!0)},P=function(){w(!1)};return f.createElement(sj,{value:s},f.createElement(Tge,{className:ke(ao.root,p&&ao.editMode,x&&ao.editorActive),sx:i,ref:v,onMouseEnter:p?$:void 0,onMouseLeave:p?P:void 0},t),f.createElement(tM,{open:p&&(S||x),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:v.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:P,PaperProps:{elevation:1,onMouseEnter:$,onMouseLeave:P,title:c(a),onClick:_},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},f.createElement(MM,{fontSize:"12px"})))},Kf="RaConfigurable",ao={root:"".concat(Kf,"-root"),editMode:"".concat(Kf,"-editMode"),editorActive:"".concat(Kf,"-editorActive")},Tge=U("span",{name:Kf,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(ao.editMode)]={transition:r.transitions.create("outline"),outline:"".concat(Ts(r.palette.warning.main,.3)," solid 2px")},t["&.".concat(ao.editMode,":hover ")]={outline:"".concat(Ts(r.palette.warning.main,.5)," solid 2px")},t["&.".concat(ao.editMode,".").concat(ao.editorActive," , &.").concat(ao.editMode,".").concat(ao.editorActive,":hover ")]={outline:"".concat(r.palette.warning.main," solid 2px")},t}),Hw={},Rge=we;Object.defineProperty(Hw,"__esModule",{value:!0});var FM=Hw.default=void 0,kge=Rge(Ce()),Ige=E;FM=Hw.default=(0,kge.default)((0,Ige.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var qw={},Age=we;Object.defineProperty(qw,"__esModule",{value:!0});var NM=qw.default=void 0,jge=Age(Ce()),Mge=E;NM=qw.default=(0,jge.default)((0,Mge.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var Fge=function(){var e=xe();return _ne("ra.configurable.inspector.title",{_:"Inspector"}),f.createElement(Te,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},LM=function(){var e=Kx(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=f.useRef(!1),u=Vre(i),l=$r(),c=xe(),d=f.useState(0),p=d[0],h=d[1],m=$n("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),y=m[0],x=m[1],b=f.useState(),v=b[0],g=b[1],S=function($){var P=document==null?void 0:document.elementFromPoint($.clientX,$.clientY);P.id==="inspector-dialog-title"&&(s.current=!0,$.dataTransfer.effectAllowed="move",$.dataTransfer.setData("inspector",""),setTimeout(function(){$.target.classList.add("hide")},0),g({x:$.clientX-y.x,y:$.clientY-y.y}))},w=function($){s.current&&(x({x:$.clientX-v.x,y:$.clientY-v.y}),$.target.classList.remove("hide"),s.current=!1)};f.useEffect(function(){if(t){var $=function(P){P.dataTransfer.types.includes("inspector")&&P.preventDefault()};return document==null||document.addEventListener("dragover",$),function(){document==null||document.removeEventListener("dragover",$)}}},[t]),f.useEffect(function(){if(t){var $=function(){window==null||window.requestAnimationFrame(function(){x(function(P){return{x:Math.min(P.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(P.y,(window==null?void 0:window.innerHeight)-50)}})})};return $(),window==null||window.addEventListener("resize",$),function(){window==null||window.removeEventListener("resize",$)}}},[t,x,l.breakpoints.values.sm]);var _=function(){u(),h(function($){return $+1})};return t?f.createElement(Nge,{className:cu.modal,elevation:3,draggable:!0,onDragStart:S,onDragEnd:w,sx:{left:y.x,top:y.y}},f.createElement("div",{className:cu.title},f.createElement(Te,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&c(n,o)),f.createElement("span",{id:"inspector-toolbar"}),i&&f.createElement(mt,{"aria-label":c("ra.action.remove"),onClick:_,size:"small"},f.createElement(NM,{fontSize:"inherit"})),f.createElement(mt,{"aria-label":c("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},f.createElement(FM,{fontSize:"inherit"}))),f.createElement("div",{className:cu.content,key:p},f.createElement(sj,{value:i},a||f.createElement(Fge,null)))):null},Qf="RaInspector",cu={modal:"".concat(Qf,"-modal"),title:"".concat(Qf,"-title"),content:"".concat(Qf,"-content")},Nge=U(Oo,{name:Qf,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}},t["& .".concat(cu.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(cu.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});LM.displayName="Inspector";var Ia=globalThis&&globalThis.__assign||function(){return Ia=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ia.apply(this,arguments)},Lge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Dge=function(e){var t=e.title,r=e.defaultTitle,n=e.className,o=Lge(e,["title","defaultTitle","className"]),a=lj()[0],i=xe(),s=Mt();return a?f.createElement("span",Ia({className:n},o),i(a,Ia(Ia({},s),{_:a}))):f.createElement("span",{className:n},t?typeof t=="string"?f.createElement("span",Ia({},o),i(t,{_:t})):t:f.createElement("span",Ia({},o),r))},Sp=globalThis&&globalThis.__assign||function(){return Sp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Sp.apply(this,arguments)},Bge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},zge=function(){var e=Sne();return f.createElement("form",null,f.createElement(Sw,Sp({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},Uge=function(e){var t=e.preferenceKey,r=Bge(e,["preferenceKey"]),n=Cr().pathname;return f.createElement(Pge,{editor:f.createElement(zge,null),preferenceKey:t||"".concat(n,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},f.createElement(Dge,Sp({},r)))},yb=globalThis&&globalThis.__assign||function(){return yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yb.apply(this,arguments)},Vge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ac=function(e){var t=e.defaultTitle,r=e.title,n=e.preferenceKey,o=Vge(e,["defaultTitle","title","preferenceKey"]),a=f.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),i=a[0],s=a[1];return f.useEffect(function(){s(function(u){var l=typeof document<"u"&&document.body.contains(u);return u&&l?u:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),i?(ZA(!t&&!r,"Missing title prop in <Title> element"),cv.createPortal(f.createElement(Uge,yb({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},Ah=C.oneOfType([C.string,C.element]);Ac.propTypes={defaultTitle:C.string,className:C.string,record:C.any,title:Ah};var Wge=function(e){var t=Cr().pathname,r=f.useRef(t);f.useEffect(function(){t!==r.current&&e()},[t,e])},bb=globalThis&&globalThis.__assign||function(){return bb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bb.apply(this,arguments)},Hge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Gw=function(e){var t=e.error,r=e.errorComponent,n=e.errorInfo,o=e.resetErrorBoundary,a=e.className,i=e.title,s=Hge(e,["error","errorComponent","errorInfo","resetErrorBoundary","className","title"]),u=xe();return Wge(o),r?f.createElement(r,{error:t,errorInfo:n,title:i}):f.createElement(f.Fragment,null,i&&f.createElement(Ac,{title:i}),f.createElement(qge,bb({className:a},s),f.createElement("h1",{className:Tn.title,role:"alert"},f.createElement(jM,{className:Tn.icon}),u("ra.page.error")),f.createElement("div",null,u("ra.message.error")),!1,f.createElement("div",{className:Tn.toolbar},f.createElement(_r,{variant:"contained",startIcon:f.createElement(Hv,null),onClick:Gge},u("ra.action.back")))))};Gw.propTypes={className:C.string,error:C.object.isRequired,errorInfo:C.object,title:Ah};var to="RaError",Tn={container:"".concat(to,"-container"),title:"".concat(to,"-title"),icon:"".concat(to,"-icon"),panel:"".concat(to,"-panel"),panelSumary:"".concat(to,"-panelSumary"),panelDetails:"".concat(to,"-panelDetails"),toolbar:"".concat(to,"-toolbar"),advice:"".concat(to,"-advice")},qge=U("div",{name:to,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},t[r.breakpoints.down("md")]={padding:"1em"},t.fontFamily="Roboto, sans-serif",t.opacity=.5,t["& .".concat(Tn.title)]={display:"flex",alignItems:"center"},t["& .".concat(Tn.icon)]={width:"2em",height:"2em",marginRight:"0.5em"},t["& .".concat(Tn.panel)]={marginTop:"1em",maxWidth:"60em"},t["& .".concat(Tn.panelSumary)]={userSelect:"all"},t["& .".concat(Tn.panelDetails)]={whiteSpace:"pre-wrap"},t["& .".concat(Tn.toolbar)]={marginTop:"2em"},t["& .".concat(Tn.advice)]={marginTop:"2em"},t});function Gge(){window.history.go(-1)}var Kge=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),t.length!==r.length||t.some(function(n,o){return!Object.is(n,r[o])})},IE={error:null},Qge=function(e){wo(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=e.call.apply(e,[this].concat(a))||this,n.state=IE,n.resetErrorBoundary=function(){for(var s,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];n.props.onReset==null||(s=n.props).onReset.apply(s,l),n.reset()},n}t.getDerivedStateFromError=function(o){return{error:o}};var r=t.prototype;return r.reset=function(){this.setState(IE)},r.componentDidCatch=function(o,a){var i,s;(i=(s=this.props).onError)==null||i.call(s,o,a)},r.componentDidUpdate=function(o,a){var i=this.state.error,s=this.props.resetKeys;if(i!==null&&a.error!==null&&Kge(o.resetKeys,s)){var u,l;(u=(l=this.props).onResetKeysChange)==null||u.call(l,o.resetKeys,s),this.reset()}},r.render=function(){var o=this.state.error,a=this.props,i=a.fallbackRender,s=a.FallbackComponent,u=a.fallback;if(o!==null){var l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.isValidElement(u))return u;if(typeof i=="function")return i(l);if(s)return f.createElement(s,l);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.Component),_p=globalThis&&globalThis.__assign||function(){return _p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_p.apply(this,arguments)},Yge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},DM=function(e){var t=e.appBarAlwaysOn,r=e.children;e.closedSize,e.size;var n=Yge(e,["appBarAlwaysOn","children","closedSize","size"]),o=Ur(function(c){return c.breakpoints.down("sm")}),a=kc(),i=a[0],s=a[1];bY();var u=pM(),l=function(){return s(!i)};return o?f.createElement(AE,_p({variant:"temporary",open:i,onClose:l,classes:Dt},n),r):f.createElement(AE,_p({variant:"permanent",open:i,onClose:l,classes:Dt,className:u&&!t?Dt.appBarCollapsed:""},n),f.createElement("div",{className:Dt.fixed},r))};DM.propTypes={children:C.node.isRequired};var fr="RaSidebar",Dt={docked:"".concat(fr,"-docked"),paper:"".concat(fr,"-paper"),paperAnchorLeft:"".concat(fr,"-paperAnchorLeft"),paperAnchorRight:"".concat(fr,"-paperAnchorRight"),paperAnchorTop:"".concat(fr,"-paperAnchorTop"),paperAnchorBottom:"".concat(fr,"-paperAnchorBottom"),paperAnchorDockedLeft:"".concat(fr,"-paperAnchorDockedLeft"),paperAnchorDockedTop:"".concat(fr,"-paperAnchorDockedTop"),paperAnchorDockedRight:"".concat(fr,"-paperAnchorDockedRight"),paperAnchorDockedBottom:"".concat(fr,"-paperAnchorDockedBottom"),modal:"".concat(fr,"-modal"),fixed:"".concat(fr,"-fixed"),appBarCollapsed:"".concat(fr,"-appBarCollapsed")},AE=U(jce,{name:fr,slot:"Root",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(){return!0}})(function(e){var t,r,n,o=e.open,a=e.theme;return t={height:"calc(100vh - 3em)",marginTop:0,transition:a.transitions.create("margin",{easing:a.transitions.easing.easeOut,duration:a.transitions.duration.enteringScreen})},t["&.".concat(Dt.appBarCollapsed)]=(r={marginTop:a.spacing(-6)},r[a.breakpoints.down("sm")]={marginTop:a.spacing(-7)},r.transition=a.transitions.create("margin",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),r),t["& .".concat(Dt.docked)]={},t["& .".concat(Dt.paper)]={},t["& .".concat(Dt.paperAnchorLeft)]={},t["& .".concat(Dt.paperAnchorRight)]={},t["& .".concat(Dt.paperAnchorTop)]={},t["& .".concat(Dt.paperAnchorBottom)]={},t["& .".concat(Dt.paperAnchorDockedLeft)]={},t["& .".concat(Dt.paperAnchorDockedTop)]={},t["& .".concat(Dt.paperAnchorDockedRight)]={},t["& .".concat(Dt.paperAnchorDockedBottom)]={},t["& .".concat(Dt.modal)]={},t["& .".concat(Dt.fixed)]={position:"fixed",height:"calc(100vh - 3em)",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},t["& .MuiPaper-root"]=(n={position:"relative",width:o?We(a,"sidebar.width",BM):We(a,"sidebar.closedWidth",zM),transition:a.transitions.create("width",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),backgroundColor:"transparent",borderRight:"none"},n[a.breakpoints.only("xs")]={marginTop:0,height:"100vh",position:"inherit",backgroundColor:a.palette.background.default},n[a.breakpoints.up("md")]={border:"none"},n.zIndex="inherit",n),t}),BM=240,zM=55,Kw={},Xge=we;Object.defineProperty(Kw,"__esModule",{value:!0});var UM=Kw.default=void 0,Jge=Xge(Ce()),Zge=E;UM=Kw.default=(0,Jge.default)((0,Zge.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");var VM=function(e){var t=e.name,r=hh(),n=mh(),o=pi();return!r||!r[t]?null:f.createElement(Ih,{to:o({resource:t,type:"list"}),state:{_scrollToTop:!0},primaryText:f.createElement(f.Fragment,null,n(t,2)),leftIcon:r[t].icon?f.createElement(r[t].icon):f.createElement(UM,null)})},xb=function(){var e=hh();return f.createElement(f.Fragment,null,Object.keys(e).filter(function(t){return e[t].hasList}).map(function(t){return f.createElement(VM,{key:t,name:t})}))},wb=globalThis&&globalThis.__assign||function(){return wb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wb.apply(this,arguments)},eye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ol=function(e){var t,r=e.hasDashboard,n=e.children,o=n===void 0?r?[f.createElement(zw,{key:"default-dashboard-menu-item"}),f.createElement(xb,{key:"default-resource-menu-items"})]:f.createElement(xb,null):n,a=e.className,i=eye(e,["hasDashboard","children","className"]),s=kc()[0];return f.createElement(tye,wb({className:ke((t={},t[Cp.open]=s,t[Cp.closed]=!s,t),a)},i),o)};ol.propTypes={className:C.string,dense:C.bool,hasDashboard:C.bool};ol.Item=Ih;ol.DashboardItem=zw;ol.ResourceItem=VM;ol.ResourceItems=xb;var Sb="RaMenu",Cp={open:"".concat(Sb,"-open"),closed:"".concat(Sb,"-closed")},tye=U(Zj,{name:Sb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"flex-start"},t[r.breakpoints.only("xs")]={marginTop:0},t.transition=r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),t["&.".concat(Cp.open)]={width:We(r,"sidebar.width",BM)},t["&.".concat(Cp.closed)]={width:We(r,"sidebar.closedWidth",zM)},t}),_b=globalThis&&globalThis.__assign||function(){return _b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_b.apply(this,arguments)},rye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},jh=function(e){var t=e.className,r=e.loadingPrimary,n=r===void 0?"ra.page.loading":r,o=e.loadingSecondary,a=o===void 0?"ra.message.loading":o,i=rye(e,["className","loadingPrimary","loadingSecondary"]),s=Fx(1e3),u=xe();return s?f.createElement(nye,_b({className:t},i),f.createElement("div",{className:$p.message},f.createElement(fw,{className:$p.icon}),f.createElement(Te,{variant:"h5",mt:3,color:"text.secondary"},u(n,{_:n})),f.createElement(Te,{variant:"body2"},u(a,{_:a})))):null};jh.propTypes={className:C.string,loadingPrimary:C.string,loadingSecondary:C.string};var Yf="RaLoading",$p={root:"".concat(Yf,"-root"),icon:"".concat(Yf,"-icon"),message:"".concat(Yf,"-message")},nye=U("div",{name:Yf,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t["& .".concat($p.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:r.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat($p.icon)]={width:"9em",height:"9em"},t}),Cb=globalThis&&globalThis.__assign||function(){return Cb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Cb.apply(this,arguments)},oye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},WM=function(e){var t=e.appBar,r=t===void 0?Nw:t,n=e.appBarAlwaysOn,o=e.children,a=e.className,i=e.dashboard,s=e.error,u=e.menu,l=u===void 0?ol:u,c=e.sidebar,d=c===void 0?DM:c,p=e.title,h=oye(e,["appBar","appBarAlwaysOn","children","className","dashboard","error","menu","sidebar","title"]),m=kc()[0],y=f.useState(null),x=y[0],b=y[1],v=function(g,S){b(S)};return G.createElement(aye,Cb({className:ke("layout",a)},h),G.createElement(abe,null),G.createElement("div",{className:us.appFrame},G.createElement(r,{open:m,title:p,alwaysOn:n}),G.createElement("main",{className:us.contentWithSidebar},G.createElement(d,{appBarAlwaysOn:n},G.createElement(l,{hasDashboard:!!i})),G.createElement("div",{id:"main-content",className:us.content},G.createElement(Qge,{onError:v,fallbackRender:function(g){var S=g.error,w=g.resetErrorBoundary;return G.createElement(Gw,{error:S,errorComponent:s,errorInfo:x,resetErrorBoundary:w,title:p})}},G.createElement(f.Suspense,{fallback:G.createElement(jh,null)},o)))),G.createElement(LM,null)))},Xf="RaLayout",us={appFrame:"".concat(Xf,"-appFrame"),contentWithSidebar:"".concat(Xf,"-contentWithSidebar"),content:"".concat(Xf,"-content")},aye=U("div",{name:Xf,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,o=e.theme;return t={display:"flex",flexDirection:"column",zIndex:1,minHeight:"100vh",backgroundColor:o.palette.background.default,position:"relative",minWidth:"fit-content",width:"100%",color:o.palette.getContrastText(o.palette.background.default)},t["& .".concat(us.appFrame)]=(r={display:"flex",flexDirection:"column",flexGrow:1,marginTop:o.spacing(6)},r[o.breakpoints.down("sm")]={marginTop:o.spacing(7)},r),t["& .".concat(us.contentWithSidebar)]={display:"flex",flexGrow:1,transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen})},t["& .".concat(us.content)]=(n={backgroundColor:o.palette.background.default,zIndex:2,display:"flex",flexDirection:"column",flexGrow:1,flexBasis:0,padding:0},n[o.breakpoints.up("xs")]={paddingRight:o.spacing(1),paddingLeft:o.spacing(1)},n),t}),$b=globalThis&&globalThis.__assign||function(){return $b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$b.apply(this,arguments)},jE=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Qw=function(e){var t=e.timeout,r=t===void 0?1e3:t,n=jE(e,["timeout"]),o=n.className,a=jE(n,["className"]),i=Fx(r);return i?f.createElement(sye,$b({className:o},a)):f.createElement(uw,{my:1,height:4})};Qw.propTypes={className:C.string,timeout:C.number};Qw.displayName="LinearProgress";var iye="RaLinearProgress",sye=U(Wfe,{name:iye,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{margin:"".concat(t.spacing(1)," 0"),width:t.spacing(20)}}),Ob=globalThis&&globalThis.__assign||function(){return Ob=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ob.apply(this,arguments)},lye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},HM=function(e){var t=e.loadingPrimary,r=t===void 0?"ra.page.loading":t,n=e.loadingSecondary,o=n===void 0?"ra.message.loading":n,a=lye(e,["loadingPrimary","loadingSecondary"]);return f.createElement(jh,Ob({loadingPrimary:r,loadingSecondary:o},a))};HM.propTypes={theme:C.object,className:C.string,loadingPrimary:C.string,loadingSecondary:C.string};var Yw={},uye=we;Object.defineProperty(Yw,"__esModule",{value:!0});var qM=Yw.default=void 0,cye=uye(Ce()),ME=E;qM=Yw.default=(0,cye.default)([(0,ME.jsx)("circle",{cx:"7",cy:"6",r:"2"},"0"),(0,ME.jsx)("path",{d:"M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8zM7 20H5v-6h2zm4 0H9v-6h2zm4 0h-2v-6h2zm4 0h-2v-6h2zm-.35-14.14-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71m-4 0-.07-.07c-.57-.62-.82-1.41-.67-2.2L14 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71"},"1")],"HotTub");var Eb=globalThis&&globalThis.__assign||function(){return Eb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Eb.apply(this,arguments)},GM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},KM=function(e){var t=e.className,r=e.title,n=GM(e,["className","title"]),o=xe();return gh(),f.createElement(dye,Eb({className:t},fye(n)),f.createElement(Ac,{defaultTitle:r}),f.createElement("div",{className:cs.message},f.createElement(qM,{className:cs.icon}),f.createElement("h1",null,o("ra.page.not_found")),f.createElement("div",null,o("ra.message.not_found"),".")),f.createElement("div",{className:cs.toolbar},f.createElement(_r,{variant:"contained",startIcon:f.createElement(Hv,null),onClick:pye},o("ra.action.back"))))},fye=function(e){e.staticContext,e.history,e.location,e.match;var t=GM(e,["staticContext","history","location","match"]);return t};KM.propTypes={className:C.string,title:C.string,location:C.object};var Jf="RaNotFound",cs={icon:"".concat(Jf,"-icon"),message:"".concat(Jf,"-message"),toolbar:"".concat(Jf,"-toolbar")},dye=U("div",{name:Jf,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center"},t[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("md")]={height:"100vh",marginTop:"-3em"},t["& .".concat(cs.icon)]={width:"9em",height:"9em"},t["& .".concat(cs.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t["& .".concat(cs.toolbar)]={textAlign:"center",marginTop:"2em"},t});function pye(){window.history.go(-1)}var Pb=globalThis&&globalThis.__assign||function(){return Pb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pb.apply(this,arguments)},FE=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},vye={vertical:"bottom",horizontal:"center"},QM=function(e){var t,r=e.className,n=e.type,o=n===void 0?"info":n,a=e.autoHideDuration,i=a===void 0?4e3:a,s=e.multiLine,u=s===void 0?!1:s,l=e.anchorOrigin,c=l===void 0?vye:l,d=FE(e,["className","type","autoHideDuration","multiLine","anchorOrigin"]),p=_I(),h=p.notifications,m=p.takeNotification,y=f.useState(!1),x=y[0],b=y[1],v=f.useState(void 0),g=v[0],S=v[1],w=xe();f.useEffect(function(){var B,k=function(N){N.preventDefault();var z="";return N.returnValue=z,z};return!((B=g==null?void 0:g.notificationOptions)===null||B===void 0)&&B.undoable&&window.addEventListener("beforeunload",k),h.length&&!g?(S(m()),b(!0)):h.length&&g&&x&&b(!1),function(){var N;!((N=g==null?void 0:g.notificationOptions)===null||N===void 0)&&N.undoable&&window.removeEventListener("beforeunload",k)}},[h,g,x,m]);var _=f.useCallback(function(){b(!1)},[b]),$=f.useCallback(function(){g&&g.notificationOptions.undoable&&Iy.emit("end",{isUndo:!1}),S(void 0)},[g]),P=f.useCallback(function(){Iy.emit("end",{isUndo:!0}),b(!1)},[]);if(!g)return null;var T=g.message,R=g.type,I=g.notificationOptions,A=I.autoHideDuration,L=I.messageArgs,M=I.multiLine,F=I.undoable,j=FE(I,["autoHideDuration","messageArgs","multiLine","undoable"]);return f.createElement(hye,Pb({className:r,open:x,message:T&&typeof T=="string"&&w(T,L),autoHideDuration:A===void 0?i:A,disableWindowBlurListener:F,TransitionProps:{onExited:$},onClose:_,ContentProps:{className:ke(zo[R||o],(t={},t[zo.multiLine]=M||u,t))},action:F?f.createElement(_r,{color:"primary",className:zo.undo,size:"small",onClick:P},f.createElement(f.Fragment,null,w("ra.action.undo"))):null,anchorOrigin:c},d,j),T&&typeof T!="string"?T:null)};QM.propTypes={type:C.string,autoHideDuration:C.number,multiLine:C.bool};var Ti="RaNotification",zo={success:"".concat(Ti,"-success"),error:"".concat(Ti,"-error"),warning:"".concat(Ti,"-warning"),undo:"".concat(Ti,"-undo"),multiLine:"".concat(Ti,"-multiLine")},hye=U($ve,{name:Ti,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme,n=e.type;return t={},t["& .".concat(zo.success)]={backgroundColor:r.palette.success.main,color:r.palette.success.contrastText},t["& .".concat(zo.error)]={backgroundColor:r.palette.error.main,color:r.palette.error.contrastText},t["& .".concat(zo.warning)]={backgroundColor:r.palette.warning.main,color:r.palette.warning.contrastText},t["& .".concat(zo.undo)]={color:n==="success"?r.palette.success.contrastText:r.palette.primary.light},t["& .".concat(zo.multiLine)]={whiteSpace:"pre-wrap"},t}),Tb=globalThis&&globalThis.__assign||function(){return Tb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tb.apply(this,arguments)},mye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},YM=function(e){var t=Ur(function(r){return r.breakpoints.down("sm")});return f.createElement(yye,Tb({disableGutters:!0,variant:t?"regular":"dense"},bye(e)))};YM.propTypes={children:C.node,className:C.string};const Xw=YM;var gye="RaTopToolbar",yye=U(Rc,{name:gye,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:r.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",padding:r.spacing(.5),paddingBottom:r.spacing(1)},t[r.breakpoints.down("md")]={flex:"0 1 100%"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,padding:0,paddingBottom:0},t}),bye=function(e){e.hasCreate;var t=mye(e,["hasCreate"]);return t},xye=function(){return f.useContext(_M)},Op=globalThis&&globalThis.__assign||function(){return Op=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Op.apply(this,arguments)},Rb=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},XM=function(e){var t=e.confirmTitle,r=t===void 0?"ra.message.bulk_delete_title":t,n=e.confirmContent,o=n===void 0?"ra.message.bulk_delete_content":n,a=e.confirmColor,i=a===void 0?"primary":a,s=e.icon,u=s===void 0?Cye:s,l=e.label,c=l===void 0?"ra.action.delete":l,d=e.mutationMode,p=d===void 0?"pessimistic":d,h=e.mutationOptions,m=h===void 0?{}:h,y=e.onClick,x=Rb(e,["confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","mutationOptions","onClick"]),b=m.meta,v=Rb(m,["meta"]),g=zr(e),S=g.selectedIds,w=g.onUnselectItems,_=Ps(!1),$=_[0],P=_[1],T=Br(),R=xt(e),I=dh(),A=xe(),L=MA(R,{ids:S,meta:b},Op({onSuccess:function(){I(),T("ra.notification.deleted",{type:"info",messageArgs:{smart_count:S.length},undoable:p==="undoable"}),w(),P(!1)},onError:function(N){T(typeof N=="string"?N:N.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof N=="string"?N:N&&N.message?N.message:void 0}}),P(!1)},mutationMode:p},v)),M=L[0],F=L[1].isLoading,j=function(N){P(!0),N.stopPropagation()},B=function(){P(!1)},k=function(N){M(),typeof y=="function"&&y(N)};return f.createElement(f.Fragment,null,f.createElement(_ye,Op({onClick:j,label:c},wye(x)),u),f.createElement(IM,{isOpen:$,loading:F,title:r,content:o,confirmColor:i,translateOptions:{smart_count:S.length,name:A("resources.".concat(R,".forcedCaseName"),{smart_count:S.length,_:ss.humanize(A("resources.".concat(R,".name"),{smart_count:S.length,_:ss.inflect(R,S.length)}),!0)})},onConfirm:k,onClose:B}))},wye=function(e){e.classes,e.filterValues,e.label,e.selectedIds;var t=Rb(e,["classes","filterValues","label","selectedIds"]);return t},Sye="RaBulkDeleteWithConfirmButton",_ye=U(Po,{name:Sye,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:Ts(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}}),Cye=f.createElement(Ew,null);XM.propTypes={confirmTitle:C.node,confirmContent:C.node,confirmColor:C.string,icon:C.element,label:C.string,mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),resource:C.string,selectedIds:C.arrayOf(C.any)};var Ep=globalThis&&globalThis.__assign||function(){return Ep=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ep.apply(this,arguments)},kb=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},JM=function(e){var t=e.label,r=t===void 0?"ra.action.delete":t,n=e.icon,o=n===void 0?$ye:n,a=e.onClick,i=e.mutationOptions,s=i===void 0?{}:i,u=kb(e,["label","icon","onClick","mutationOptions"]),l=s.meta,c=kb(s,["meta"]),d=zr(e),p=d.selectedIds,h=d.onUnselectItems,m=Br(),y=xt(e),x=dh(),b=MA(),v=b[0],g=b[1].isLoading,S=function(w){v(y,{ids:p,meta:l},Ep({onSuccess:function(){m("ra.notification.deleted",{type:"info",messageArgs:{smart_count:p.length},undoable:!0}),h()},onError:function(_){m(typeof _=="string"?_:_.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof _=="string"?_:_&&_.message?_.message:void 0}}),x()},mutationMode:"undoable"},c)),typeof a=="function"&&a(w)};return f.createElement(Pye,Ep({onClick:S,label:r,disabled:g},Oye(u)),o)},$ye=f.createElement(Ew,null),Oye=function(e){e.classes,e.filterValues,e.label,e.selectedIds;var t=kb(e,["classes","filterValues","label","selectedIds"]);return t},Eye="RaBulkDeleteWithUndoButton",Pye=U(Po,{name:Eye,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:Ts(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}});JM.propTypes={label:C.string,resource:C.string,selectedIds:C.arrayOf(C.any),icon:C.element};var Pp=globalThis&&globalThis.__assign||function(){return Pp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pp.apply(this,arguments)},Tye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ZM=function(e){var t=e.mutationMode,r=t===void 0?"undoable":t,n=Tye(e,["mutationMode"]);return r==="undoable"?f.createElement(JM,Pp({},n)):f.createElement(XM,Pp({mutationMode:r},n))};ZM.propTypes={label:C.string,resource:C.string,selectedIds:C.arrayOf(C.any),mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),icon:C.element};var Jw={},Rye=we;Object.defineProperty(Jw,"__esModule",{value:!0});var eF=Jw.default=void 0,kye=Rye(Ce()),Iye=E;eF=Jw.default=(0,kye.default)((0,Iye.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");var Zw={},Aye=we;Object.defineProperty(Zw,"__esModule",{value:!0});var tF=Zw.default=void 0,jye=Aye(Ce()),Mye=E;tF=Zw.default=(0,jye.default)((0,Mye.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var Ib=globalThis&&globalThis.__assign||function(){return Ib=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ib.apply(this,arguments)},Fye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},rF=function(e){var t=e.icon,r=t===void 0?Lye:t,n=e.label,o=n===void 0?"ra.action.edit":n,a=e.scrollToTop,i=a===void 0?!0:a,s=e.className,u=Fye(e,["icon","label","scrollToTop","className"]),l=xt(e),c=Mt(e),d=pi();return c?f.createElement(zye,Ib({component:ai,to:d({type:"edit",resource:l,id:c.id}),state:Nye[String(i)],label:o,onClick:Dye,className:ke(Bye.root,s)},u),r):null},Nye={true:{_scrollToTop:!0},false:{}},Lye=f.createElement(tF,null),Dye=function(e){return e.stopPropagation()};rF.propTypes={icon:C.element,label:C.string,record:C.any,scrollToTop:C.bool};var nF="RaEditButton",Bye={root:"".concat(nF,"-root")},zye=U(Po,{name:nF,overridesResolver:function(e,t){return t.root}})({}),fu=globalThis&&globalThis.__assign||function(){return fu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fu.apply(this,arguments)},oF=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},aF=function(e){var t=e.maxResults,r=t===void 0?1e3:t,n=e.onClick,o=e.label,a=o===void 0?"ra.action.export":o,i=e.icon,s=i===void 0?Uye:i,u=e.exporter,l=e.meta,c=oF(e,["maxResults","onClick","label","icon","exporter","meta"]),d=zr(e),p=d.filter,h=d.filterValues,m=d.sort,y=d.exporter,x=d.total,b=xt(e),v=u||y,g=el(),S=Br(),w=f.useCallback(function(_){g.getList(b,{sort:m,filter:p?fu(fu({},h),p):h,pagination:{page:1,perPage:r},meta:l}).then(function($){var P=$.data;return v&&v(P,eee(g),g,b)}).catch(function($){console.error($),S("ra.notification.http_error",{type:"error"})}),typeof n=="function"&&n(_)},[g,v,p,h,r,S,n,b,m,l]);return f.createElement(Po,fu({onClick:w,label:a,disabled:x===0},Vye(c)),s)},Uye=f.createElement(eF,null),Vye=function(e){e.filterValues,e.resource;var t=oF(e,["filterValues","resource"]);return t};aF.propTypes={exporter:C.func,filterValues:C.object,label:C.string,maxResults:C.number,resource:C.string,sort:C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),icon:C.element,meta:C.any};var eS={},Wye=we;Object.defineProperty(eS,"__esModule",{value:!0});var iF=eS.default=void 0,Hye=Wye(Ce()),qye=E;iF=eS.default=(0,Hye.default)((0,qye.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate");var Gye=function(e){var t=e.icon,r=t===void 0?Kye:t,n=e.languages,o=f.useState(null),a=o[0],i=o[1],s=NI({locales:n}),u=FI(),l=u[0],c=u[1],d=function(y){var x=s.find(function(b){return b.locale===y});return x?x.name:""},p=function(y){return function(){c(y),i(null)}},h=function(y){i(y.currentTarget)},m=function(){i(null)};return f.createElement(Yye,{component:"span"},f.createElement(_r,{color:"inherit",variant:"text","aria-controls":"simple-menu","aria-label":"","aria-haspopup":"true",onClick:h,startIcon:r,endIcon:f.createElement(Ic,{fontSize:"small"})},d(l)),f.createElement(Ph,{id:"simple-menu",anchorEl:a,keepMounted:!0,open:!!a,onClose:m},s.map(function(y){return f.createElement(Nn,{key:y.locale,onClick:p(y.locale),selected:y.locale===l},y.name)})))},Kye=f.createElement(iF,null),Qye="RaLocalesMenuButton",Yye=U(uw,{name:Qye,overridesResolver:function(e,t){return t.root}})({}),tS={},Xye=we;Object.defineProperty(tS,"__esModule",{value:!0});var sF=tS.default=void 0,Jye=Xye(Ce()),Zye=E;sF=tS.default=(0,Jye.default)((0,Zye.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var rS={},ebe=we;Object.defineProperty(rS,"__esModule",{value:!0});var lF=rS.default=void 0,tbe=ebe(Ce()),rbe=E;lF=rS.default=(0,tbe.default)((0,rbe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var Ab=globalThis&&globalThis.__assign||function(){return Ab=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ab.apply(this,arguments)},nbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},uF=function(e){var t=e.label,r=t===void 0?"ra.action.refresh":t,n=e.icon,o=n===void 0?obe:n,a=e.onClick,i=e.className,s=nbe(e,["label","icon","onClick","className"]),u=dh(),l=xe(),c=f.useCallback(function(d){d.preventDefault(),u(),typeof a=="function"&&a(d)},[u,a]);return f.createElement(Eo,{title:r&&l(r,{_:"Refresh"})},f.createElement(mt,Ab({"aria-label":r&&l(r,{_:"Refresh"}),className:i,color:"inherit",onClick:c},s),o))},obe=f.createElement(lF,null);uF.propTypes={className:C.string,label:C.string,icon:C.element};var abe=function(){return G.createElement(sbe,{onClick:lbe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},ibe="RaSkipNavigationButton",sbe=U(Po,{name:ibe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),lbe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},jb=globalThis&&globalThis.__assign||function(){return jb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jb.apply(this,arguments)},ube=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},cF=function(e){var t=e.className,r=e.title,n=r===void 0?"ra.page.error":r,o=e.message,a=o===void 0?"ra.message.auth_error":o,i=ube(e,["className","title","message"]),s=xe();return f.createElement(cbe,jb({className:t},i),f.createElement("div",{className:fF.message},f.createElement("h1",null,s(n,{_:n})),f.createElement("div",null,s(a,{_:a})),f.createElement(Po,{component:ai,to:"/login",label:"ra.auth.sign_in"},f.createElement(Cw,null))))};cF.propTypes={className:C.string,title:C.string,message:C.string};var Mb="RaAuthError",fF={root:"".concat(Mb,"-root"),message:"".concat(Mb,"-message")},cbe=U("div",{name:Mb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center"},t[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("xl")]={height:"100vh",marginTop:"-3em"},t["& .".concat(fF.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t}),fbe=function(){var e=yne().error;return e?f.createElement(cF,{message:e?e.message:void 0}):f.createElement(jh,null)},dbe=function(e){var t=e.helperText,r=e.touched,n=e.error,o=xe();return r&&n?f.createElement($ne,{error:n}):t===!1?null:f.isValidElement(t)?t:typeof t=="string"?f.createElement(f.Fragment,null,o(t,{_:t})):f.createElement("span",{dangerouslySetInnerHTML:pbe})},pbe={__html:"​"},vbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},hbe=function(e){e.afterSubmit,e.allowNull,e.alwaysOn,e.beforeSubmit,e.component,e.data,e.defaultValue,e.error,e.format,e.formatOnBlur,e.formClassName,e.initialValue,e.initializeForm,e.input,e.isEqual,e.isRequired,e.label,e.limitChoicesToValue,e.locale,e.meta,e.multiple,e.name,e.options,e.optionText,e.optionValue,e.parse,e.record,e.ref,e.refetch,e.render,e.resource,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.source,e.submitError,e.subscription,e.textAlign,e.translate,e.translateChoice,e.validate,e.validateFields,e.value;var t=vbe(e,["afterSubmit","allowNull","alwaysOn","beforeSubmit","component","data","defaultValue","error","format","formatOnBlur","formClassName","initialValue","initializeForm","input","isEqual","isRequired","label","limitChoicesToValue","locale","meta","multiple","name","options","optionText","optionValue","parse","record","ref","refetch","render","resource","setFilter","setPagination","setSort","shouldUnregister","source","submitError","subscription","textAlign","translate","translateChoice","validate","validateFields","value"]);return t},Fb=globalThis&&globalThis.__assign||function(){return Fb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fb.apply(this,arguments)},mbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},hf,dF=function(e){var t,r,n,o=e.children,a=e.className,i=a===void 0?"":a,s=e.color,u=s===void 0?"text.secondary":s,l=e.component,c=l===void 0?"span":l,d=e.fullWidth,p=e.isRequired,h=e.label,m=e.resource,y=e.source,x=mbe(e,["children","className","color","component","fullWidth","isRequired","label","resource","source"]);return f.createElement(gbe,Fb({component:c,className:ke(i,(t={},t[Tp.fullWidth]=d,t))},x),h!==!1&&o.props.label!==!1&&typeof o.type!="string"&&((r=o.type)===null||r===void 0?void 0:r.displayName)!=="Labeled"&&((n=o.type)===null||n===void 0?void 0:n.displayName)!=="Labeled"?f.createElement(Te,{color:u,className:Tp.label},f.createElement(zu,{label:h||o.props.label,source:y||o.props.source,resource:m,isRequired:p})):null,o)};dF.displayName="Labeled";var Nb="RaLabeled",Tp={label:"".concat(Nb,"-label"),fullWidth:"".concat(Nb,"-fullWidth")},gbe=U(Wj,{name:Nb,overridesResolver:function(e,t){return t.root}})((hf={display:"inline-flex",marginBottom:"0.2em"},hf["&.".concat(Tp.fullWidth)]={width:"100%"},hf["& .".concat(Tp.label)]={fontSize:"0.75em",marginBottom:"0.2em"},hf)),nS={},ybe=we;Object.defineProperty(nS,"__esModule",{value:!0});var pF=nS.default=void 0,bbe=ybe(Ce()),xbe=E;pF=nS.default=(0,bbe.default)((0,xbe.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutline");var vt="RaDatagrid",be={root:"".concat(vt,"-root"),table:"".concat(vt,"-table"),tableWrapper:"".concat(vt,"-tableWrapper"),thead:"".concat(vt,"-thead"),tbody:"".concat(vt,"-tbody"),headerRow:"".concat(vt,"-headerRow"),headerCell:"".concat(vt,"-headerCell"),checkbox:"".concat(vt,"-checkbox"),row:"".concat(vt,"-row"),clickableRow:"".concat(vt,"-clickableRow"),rowEven:"".concat(vt,"-rowEven"),rowOdd:"".concat(vt,"-rowOdd"),rowCell:"".concat(vt,"-rowCell"),selectable:"".concat(vt,"-selectable"),expandHeader:"".concat(vt,"-expandHeader"),expandIconCell:"".concat(vt,"-expandIconCell"),expandIcon:"".concat(vt,"-expandIcon"),expandable:"".concat(vt,"-expandable"),expanded:"".concat(vt,"-expanded"),expandedPanel:"".concat(vt,"-expandedPanel")},wbe=U("div",{name:vt,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(be.table)]={tableLayout:"auto"},t["& .".concat(be.tableWrapper)]={},t["& .".concat(be.thead)]={},t["& .".concat(be.tbody)]={},t["& .".concat(be.headerRow)]={},t["& .".concat(be.headerCell)]={position:"sticky",top:0,zIndex:2,backgroundColor:r.palette.background.paper,"&:first-of-type":{borderTopLeftRadius:r.shape.borderRadius},"&:last-child":{borderTopRightRadius:r.shape.borderRadius}},t["& .".concat(be.checkbox)]={},t["& .".concat(be.row)]={},t["& .".concat(be.clickableRow)]={cursor:"pointer"},t["& .".concat(be.rowEven)]={},t["& .".concat(be.rowOdd)]={},t["& .".concat(be.rowCell)]={},t["& .".concat(be.expandHeader)]={padding:0,width:r.spacing(6)},t["& .".concat(be.expandIconCell)]={width:r.spacing(6)},t["& .".concat(be.expandIcon)]={padding:r.spacing(1),transform:"rotate(-90deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest})},t["& .".concat(be.expandIcon,".").concat(be.expanded)]={transform:"rotate(0deg)"},t["& .".concat(be.expandedPanel)]={},t}),Lb=globalThis&&globalThis.__assign||function(){return Lb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lb.apply(this,arguments)},Sbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},oS=f.forwardRef(function(e,t){var r=e.className,n=e.field;e.record,e.resource;var o=Sbe(e,["className","field","record","resource"]);return f.createElement(Zt,Lb({className:ke(r,n.props.cellClassName),align:n.props.textAlign,ref:t},o),n)});oS.propTypes={className:C.string,field:C.element,record:C.object,resource:C.string};oS.displayName="DatagridCell";const _be=oS;var Db=globalThis&&globalThis.__assign||function(){return Db=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Db.apply(this,arguments)},Cbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},$be=function(e){var t=e.expanded,r=e.expandContentId,n=Cbe(e,["expanded","expandContentId"]),o=xe();return f.createElement(mt,Db({"aria-label":o(t?"ra.action.close":"ra.action.expand"),"aria-expanded":t,"aria-controls":r,tabIndex:-1,"aria-hidden":"true",component:"div"},n,{size:"small"}),f.createElement(Ic,{fontSize:"inherit"}))};const Obe=f.memo($be);var vF=f.createContext({});vF.displayName="DatagridContext";const hF=vF;var mF=function(e){var t=f.useContext(hF);return f.useMemo(function(){return pc({},e!=null?{isRowExpandable:e.isRowExpandable}:{},t)},[t,e])},Bb=globalThis&&globalThis.__assign||function(){return Bb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bb.apply(this,arguments)},Ebe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Pbe=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},zb=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},NE=function(e,t,r){return e?1+(r?1:0)+G.Children.toArray(t).filter(function(n){return!!n}).length:0},aS=G.forwardRef(function(e,t){var r,n,o=e.children,a=e.className,i=e.expand,s=e.hasBulkActions,u=s===void 0?!1:s,l=e.hover,c=l===void 0?!0:l,d=e.id,p=e.onToggleItem;e.record;var h=e.rowClick,m=e.selected,y=m===void 0?!1:m,x=e.style,b=e.selectable,v=b===void 0?!0:b,g=zb(e,["children","className","expand","hasBulkActions","hover","id","onToggleItem","record","rowClick","selected","style","selectable"]),S=mF(),w=xe(),_=Mt(e),$=(!S||!S.isRowExpandable||S.isRowExpandable(_))&&i,P=xt(e),T=pi(),R=Pte(P,d,S&&S.expandSingle),I=R[0],A=R[1],L=f.useState(function(){return NE($,o,u)}),M=L[0],F=L[1];f.useEffect(function(){var z=NE($,o,u);z!==M&&F(z)},[$,M,o,u]);var j=Kn(),B=f.useCallback(function(z){A(),z.stopPropagation()},[A]),k=f.useCallback(function(z){v&&(p(d,z),z.stopPropagation())},[d,p,v]),N=f.useCallback(function(z){return Ebe(void 0,void 0,void 0,function(){var H,K;return Pbe(this,function(J){switch(J.label){case 0:return z.persist(),typeof h!="function"?[3,2]:[4,h(d,P,_)];case 1:return K=J.sent(),[3,3];case 2:K=h,J.label=3;case 3:return H=K,H===!1||H==null?[2]:["edit","show"].includes(H)?(j(T({resource:P,id:d,type:H}),{state:{_scrollToTop:!0}}),[2]):H==="expand"?(B(z),[2]):H==="toggleSelection"?(k(z),[2]):(j(H),[2])}})})},[h,d,P,_,j,T,B,k]);return G.createElement(Du,{value:_},G.createElement(Hu,Bb({ref:t,className:ke(a,(r={},r[be.expandable]=$,r[be.selectable]=v,r[be.clickableRow]=typeof h=="function"?!0:h,r)),key:d,style:x,hover:c,onClick:N},g),i&&G.createElement(Zt,{padding:"none",className:be.expandIconCell},$&&G.createElement(Obe,{className:ke(be.expandIcon,(n={},n[be.expanded]=I,n)),expanded:I,onClick:B,expandContentId:"".concat(d,"-expand")})),u&&G.createElement(Zt,{padding:"checkbox"},G.createElement(pp,{"aria-label":w("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(be.checkbox),checked:v&&y,onClick:k,disabled:!v})),G.Children.map(o,function(z,H){return f.isValidElement(z)?G.createElement(_be,{key:"".concat(d,"-").concat(z.props.source||H),className:ke("column-".concat(z.props.source),be.rowCell),record:_,field:z,resource:P}):null})),$&&I&&G.createElement(Hu,{key:"".concat(d,"-expand"),id:"".concat(d,"-expand"),className:be.expandedPanel},G.createElement(Zt,{colSpan:M},uy.isElement(i)?f.cloneElement(i,{record:_,resource:P,id:String(d)}):f.createElement(i,{record:_,resource:P,id:String(d)}))))});aS.propTypes={children:C.node,className:C.string,expand:C.oneOfType([C.element,C.elementType]),hasBulkActions:C.bool,hover:C.bool,id:C.any,onToggleItem:C.func,record:C.object,resource:C.string,rowClick:C.oneOfType([C.string,C.func,C.bool]),selected:C.bool,style:C.object,selectable:C.bool};var Tbe=function(e,t){e.children,e.expand;var r=zb(e,["children","expand"]);t.children,t.expand;var n=zb(t,["children","expand"]);return XI(r,n)},gF=f.memo(aS,Tbe);gF.displayName="PureDatagridRow";const Rbe=aS;var Rp=globalThis&&globalThis.__assign||function(){return Rp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Rp.apply(this,arguments)},kbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Mh=f.forwardRef(function(e,t){var r=e.children,n=e.className,o=e.data,a=o===void 0?Abe:o,i=e.expand,s=e.hasBulkActions,u=s===void 0?!1:s,l=e.hover,c=e.onToggleItem,d=e.resource,p=e.row,h=p===void 0?Ibe:p,m=e.rowClick,y=e.rowSx,x=e.rowStyle,b=e.selectedIds,v=e.isRowSelectable,g=kbe(e,["children","className","data","expand","hasBulkActions","hover","onToggleItem","resource","row","rowClick","rowSx","rowStyle","selectedIds","isRowSelectable"]);return f.createElement(fM,Rp({ref:t,className:ke("datagrid-body",n,be.tbody)},g),a.map(function(S,w){var _,$,P;return f.cloneElement(h,{className:ke(be.row,(_={},_[be.rowEven]=w%2===0,_[be.rowOdd]=w%2!==0,_)),expand:i,hasBulkActions:u&&!!b,hover:l,id:($=S.id)!==null&&$!==void 0?$:"row".concat(w),key:(P=S.id)!==null&&P!==void 0?P:"row".concat(w),onToggleItem:c,record:S,resource:d,rowClick:m,selectable:!v||v(S),selected:b==null?void 0:b.includes(S.id),sx:y==null?void 0:y(S,w),style:x==null?void 0:x(S,w)},r)}))}),Ibe=f.createElement(Rbe,null);Mh.propTypes={className:C.string,children:C.node,data:C.arrayOf(C.object),expand:C.oneOfType([C.element,C.elementType]),hasBulkActions:C.bool,hover:C.bool,onToggleItem:C.func,resource:C.string,row:C.element,rowClick:C.oneOfType([C.string,C.func,C.bool]),rowSx:C.func,rowStyle:C.func,selectedIds:C.arrayOf(C.any),styles:C.object,isRowSelectable:C.func};var Abe=[];Mh.muiName="TableBody";var yF=f.memo(function(e){return f.createElement(Mh,Rp({row:f.createElement(gF,null)},e))});yF.muiName="TableBody";const jbe=Mh;var Ub=globalThis&&globalThis.__assign||function(){return Ub=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ub.apply(this,arguments)},Mbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},mf,bF=function(e){var t=e.className,r=e.field,n=e.sort,o=e.updateSort;e.isSorting;var a=Mbe(e,["className","field","sort","updateSort","isSorting"]),i=xt(e),s=xe(),u=XA(),l=s("ra.sort.sort_by",{field:u({label:r.props.label,resource:i,source:r.props.source}),order:s("ra.sort.".concat(n.order==="ASC"?"DESC":"ASC")),_:s("ra.action.sort")});return f.createElement(Lbe,Ub({className:ke(t,r.props.headerClassName),align:r.props.textAlign,variant:"head"},a),o&&r.props.sortable!==!1&&(r.props.sortBy||r.props.source)?f.createElement(Eo,{title:l,placement:r.props.textAlign==="right"?"bottom-end":"bottom-start",enterDelay:300},f.createElement(Hhe,{active:n.field===(r.props.sortBy||r.props.source),direction:n.order==="ASC"?"asc":"desc","data-field":r.props.sortBy||r.props.source,"data-order":r.props.sortByOrder||"ASC",onClick:o,classes:Nbe},f.createElement(zu,{label:r.props.label,source:r.props.source,resource:i}))):f.createElement(zu,{label:r.props.label,source:r.props.source,resource:i}))};bF.propTypes={className:C.string,field:C.element,sort:C.shape({field:C.string,order:C.oneOf(["ASC","DESC"])}).isRequired,isSorting:C.bool,resource:C.string,updateSort:C.func};const Fbe=f.memo(bF,function(e,t){return e.updateSort===t.updateSort&&e.sort.field===t.sort.field&&e.sort.order===t.sort.order&&e.isSorting===t.isSorting&&e.resource===t.resource});var xF="RaDatagridHeaderCell",Nbe={icon:"".concat(xF,"-icon")},Lbe=U(Zt,{name:xF,overridesResolver:function(e,t){return t.root}})((mf={},mf["& .MuiTableSortLabel-icon"]={display:"none"},mf["& .Mui-active .MuiTableSortLabel-icon"]={display:"inline"},mf)),LE=function(e){return f.createElement(Bbe,{className:e.className}," ")},Dbe="RaPlaceholder",Bbe=U("span",{name:Dbe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{backgroundColor:t.palette.grey[300],display:"flex"}}),qm=function(e,t){return Array.from({length:e},function(r,n){return t(n)})},wF=function(e){var t=e.className,r=e.expand,n=e.hasBulkActions,o=e.nbChildren,a=e.nbFakeLines,i=a===void 0?5:a,s=e.size,u=Fx(1e3);return u?f.createElement("div",{className:be.root},f.createElement(cM,{className:ke(be.table,t),size:s},f.createElement(dM,null,f.createElement(Hu,{className:be.row},r&&f.createElement(Zt,{padding:"none",className:be.expandHeader}),n&&f.createElement(Zt,{padding:"checkbox",className:be.expandIconCell},f.createElement(pp,{className:"select-all",color:"primary",checked:!1})),qm(o,function(l){return f.createElement(Zt,{variant:"head",className:be.headerCell,key:l},f.createElement(LE,null))}))),f.createElement(fM,null,qm(i,function(l){return f.createElement(Hu,{key:l,style:{opacity:1/(l+1)}},r&&f.createElement(Zt,{padding:"none",className:be.expandIconCell},f.createElement(mt,{className:be.expandIcon,component:"div","aria-hidden":"true",size:"large"},f.createElement(Ic,null))),n&&f.createElement(Zt,{padding:"checkbox",className:be.expandIconCell},f.createElement(pp,{className:"select-all",color:"primary",checked:!1})),qm(o,function(c){return f.createElement(Zt,{className:be.rowCell,key:c},f.createElement(LE,null))}))})))):null};wF.propTypes={className:C.string,expand:C.oneOfType([C.element,C.elementType]),hasBulkActions:C.bool,nbChildren:C.number,nbFakeLines:C.number,size:C.oneOf(["small","medium"])};const zbe=f.memo(wF);var Ube=gx,Vbe=GI,Wbe=KI,Hbe=hx,qbe=ih,Gbe=yx,Kbe=200;function Qbe(e,t,r,n){var o=-1,a=Vbe,i=!0,s=e.length,u=[],l=t.length;if(!s)return u;r&&(t=Hbe(t,qbe(r))),n?(a=Wbe,i=!1):t.length>=Kbe&&(a=Gbe,i=!1,t=new Ube(t));e:for(;++o<s;){var c=e[o],d=r==null?c:r(c);if(c=n||c!==0?c:0,i&&d===d){for(var p=l;p--;)if(t[p]===d)continue e;u.push(c)}else a(t,d,n)||u.push(c)}return u}var Ybe=Qbe,Xbe=Ybe,Jbe=Ax,Zbe=ch,DE=Rx,e0e=Zbe(function(e,t){return DE(e)?Xbe(e,Jbe(t,1,DE,!0)):[]}),t0e=e0e;const r0e=Ye(t0e);var n0e=function(e){var t,r=e.resource,n=e.ids,o=xe(),a=Tte(r,n),i=a[0],s=a[1];return f.createElement(mt,{className:ke(be.expandIcon,(t={},t[be.expanded]=i,t)),"aria-label":o(i?"ra.action.close":"ra.action.expand"),"aria-expanded":i,tabIndex:-1,"aria-hidden":"true",onClick:s,size:"small"},f.createElement(Ic,{fontSize:"inherit"}))};const o0e=f.memo(n0e);var iS=function(e){var t=e.children,r=e.className,n=e.hasExpand,o=n===void 0?!1:n,a=e.hasBulkActions,i=a===void 0?!1:a,s=e.isRowSelectable,u=xt(e),l=xe(),c=zr(e),d=c.sort,p=c.data,h=c.onSelect,m=c.selectedIds,y=c.setSort,x=mF().expandSingle,b=f.useCallback(function(w){w.stopPropagation();var _=w.currentTarget.dataset.field,$=d.field===_?d.order==="ASC"?"DESC":"ASC":w.currentTarget.dataset.order;y({field:_,order:$})},[d.field,d.order,y]),v=y?b:null,g=f.useCallback(function(w){return h(w.target.checked?m.concat(p.filter(function(_){return!m.includes(_.id)}).filter(function(_){return s?s(_):!0}).map(function(_){return _.id})):[])},[p,h,s,m]),S=Array.isArray(p)?s?p.filter(function(w){return s(w)}).map(function(w){return w.id}):p.map(function(w){return w.id}):[];return f.createElement(dM,{className:ke(r,be.thead)},f.createElement(Hu,{className:ke(be.row,be.headerRow)},o&&f.createElement(Zt,{padding:"none",className:ke(be.headerCell,be.expandHeader)},x?null:f.createElement(o0e,{resource:u,ids:p.map(function(w){return w.id})})),i&&m&&f.createElement(Zt,{padding:"checkbox",className:be.headerCell},f.createElement(pp,{"aria-label":l("ra.action.select_all",{_:"Select all"}),className:"select-all",color:"primary",checked:m.length>0&&S.length>0&&S.every(function(w){return m.includes(w)}),onChange:g,onClick:function(w){return w.stopPropagation()}})),f.Children.map(t,function(w,_){return f.isValidElement(w)?f.createElement(Fbe,{className:ke(be.headerCell,"column-".concat(w.props.source)),sort:d,field:w,isSorting:d.field===(w.props.sortBy||w.props.source),key:w.props.source||_,resource:u,updateSort:v}):null})))};iS.propTypes={children:C.node,className:C.string,sort:C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),data:C.arrayOf(C.any),hasExpand:C.bool,hasBulkActions:C.bool,isRowSelectable:C.func,isRowExpandable:C.func,onSelect:C.func,onToggleItem:C.func,resource:C.string,selectedIds:C.arrayOf(C.any),setSort:C.func};iS.displayName="DatagridHeader";var a0e=function(e){var t=e.children,r=e.value;return G.createElement(hF.Provider,{value:r},t)};const i0e=a0e;var sS={},s0e=we;Object.defineProperty(sS,"__esModule",{value:!0});var SF=sS.default=void 0,l0e=s0e(Ce()),u0e=E;SF=sS.default=(0,l0e.default)((0,u0e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Vb=globalThis&&globalThis.__assign||function(){return Vb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vb.apply(this,arguments)},c0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},_F=function(e){var t,r=e.label,n=r===void 0?"ra.action.bulk_actions":r,o=e.children,a=e.className,i=c0e(e,["label","children","className"]),s=zr(e),u=s.filterValues,l=s.resource,c=s.selectedIds,d=c===void 0?[]:c,p=s.onUnselectItems,h=xe(),m=f.useCallback(function(){p()},[p]);return f.createElement(f0e,{className:a},f.createElement(Rc,Vb({"data-test":"bulk-actions-toolbar",className:ke(mn.toolbar,(t={},t[mn.collapsed]=d.length===0,t))},Bu(i)),f.createElement("div",{className:mn.title},f.createElement(mt,{className:mn.icon,"aria-label":h("ra.action.unselect"),title:h("ra.action.unselect"),onClick:m,size:"small"},f.createElement(SF,{fontSize:"small"})),f.createElement(Te,{color:"inherit",variant:"subtitle1"},h(n,{_:n,smart_count:d.length}))),f.createElement(Xw,{className:mn.topToolbar},f.Children.map(o,function(y){return f.isValidElement(y)?f.cloneElement(y,{filterValues:u,resource:l,selectedIds:d}):null}))))};_F.propTypes={children:C.node,label:C.string};var ka="RaBulkActionsToolbar",mn={toolbar:"".concat(ka,"-toolbar"),topToolbar:"".concat(ka,"-topToolbar"),buttons:"".concat(ka,"-buttons"),collapsed:"".concat(ka,"-collapsed"),title:"".concat(ka,"-title"),icon:"".concat(ka,"-icon")},f0e=U("div",{name:ka,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={position:"relative"},t["& .".concat(mn.toolbar)]={position:"absolute",left:0,right:0,zIndex:3,color:n.palette.mode==="light"?n.palette.primary.main:n.palette.text.primary,justifyContent:"space-between",backgroundColor:n.palette.mode==="light"?Ky(n.palette.primary.light,.8):n.palette.primary.dark,minHeight:n.spacing(6),height:n.spacing(6),transform:"translateY(-".concat(n.spacing(6),")"),transition:"".concat(n.transitions.create("height"),", ").concat(n.transitions.create("min-height"),", ").concat(n.transitions.create("transform")),borderTopLeftRadius:n.shape.borderRadius,borderTopRightRadius:n.shape.borderRadius},t["& .".concat(mn.topToolbar)]=(r={paddingBottom:n.spacing(1),minHeight:"auto"},r[n.breakpoints.down("sm")]={backgroundColor:"transparent"},r),t["& .".concat(mn.buttons)]={},t["& .".concat(mn.collapsed)]={minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},t["& .".concat(mn.title)]={display:"flex",flex:"0 0 auto"},t["& .".concat(mn.icon)]={marginLeft:"-0.5em",marginRight:"0.5em"},t}),d0e=f.memo(function(){var e=xe(),t=xt();return f.createElement(Fj,null,f.createElement(Te,{variant:"body2"},e("ra.navigation.no_results",{resource:t})))}),Gu=globalThis&&globalThis.__assign||function(){return Gu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gu.apply(this,arguments)},p0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},BE=f.createElement(ZM,null),lS=f.forwardRef(function(e,t){var r=e.optimized,n=r===void 0?!1:r,o=e.body,a=o===void 0?n?yF:jbe:o,i=e.header,s=i===void 0?iS:i,u=e.children,l=e.className,c=e.empty,d=c===void 0?m0e:c,p=e.expand,h=e.bulkActionButtons,m=h===void 0?BE:h,y=e.hover,x=e.isRowSelectable,b=e.isRowExpandable,v=e.resource,g=e.rowClick,S=e.rowSx,w=e.rowStyle,_=e.size,$=_===void 0?"small":_,P=e.sx,T=e.expandSingle,R=T===void 0?!1:T,I=p0e(e,["optimized","body","header","children","className","empty","expand","bulkActionButtons","hover","isRowSelectable","isRowExpandable","resource","rowClick","rowSx","rowStyle","size","sx","expandSingle"]),A=zr(e),L=A.sort,M=A.data,F=A.isLoading,j=A.onSelect,B=A.onToggleItem,k=A.selectedIds,N=A.setSort,z=A.total,H=!!m,K=f.useMemo(function(){return{isRowExpandable:b,expandSingle:R}},[b,R]),J=f.useRef(null);f.useEffect(function(){(!k||k.length===0)&&(J.current=null)},[JSON.stringify(k)]);var te=f.useCallback(function(ae,fe){var Se=M.map(function(ye){return ye.id}),_e=Se.indexOf(J.current);if(J.current=fe.target.checked?ae:null,fe.shiftKey&&_e!==-1){var he=Se.indexOf(ae),ue=Se.slice(Math.min(_e,he),Math.max(_e,he)+1),se=fe.target.checked?QI(k,ue):r0e(k,ue);j(x?se.filter(function(ye){return x(M.find(function(ie){return ie.id===ye}))}):se)}else B(ae)},[M,x,j,B,k]);return F===!0?f.createElement(zbe,{className:l,expand:p,hasBulkActions:H,nbChildren:f.Children.count(u),size:$}):M==null||M.length===0||z===0?d||null:f.createElement(i0e,{value:K},f.createElement(wbe,{sx:P,className:ke(be.root,l)},m!==!1?f.createElement(_F,{selectedIds:k},f.isValidElement(m)?m:BE):null,f.createElement("div",{className:be.tableWrapper},f.createElement(cM,Gu({ref:t,className:be.table,size:$},h0e(I)),zE(s,{children:u,sort:L,data:M,hasExpand:!!p,hasBulkActions:H,isRowSelectable:x,onSelect:j,resource:v,selectedIds:k,setSort:N},u),zE(a,{expand:p,rowClick:g,data:M,hasBulkActions:H,hover:y,onToggleItem:te,resource:v,rowSx:S,rowStyle:w,selectedIds:k,isRowSelectable:x},u)))))}),zE=function(e,t,r){return f.isValidElement(e)?f.cloneElement(e,t,r):f.createElement(e,t,r)};lS.propTypes={body:C.oneOfType([C.element,C.elementType]),bulkActionButtons:C.oneOfType([C.bool,C.element]),children:C.node.isRequired,className:C.string,sort:C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),data:C.arrayOf(C.any),empty:C.element,expand:C.oneOfType([C.element,C.elementType]),header:C.oneOfType([C.element,C.elementType]),hover:C.bool,isLoading:C.bool,onSelect:C.func,onToggleItem:C.func,resource:C.string,rowClick:C.oneOfType([C.string,C.func,C.bool]),rowSx:C.func,rowStyle:C.func,selectedIds:C.arrayOf(C.any),setSort:C.func,total:C.number,isRowSelectable:C.func,isRowExpandable:C.func,expandSingle:C.bool};var v0e=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],h0e=function(e){return Object.keys(Bu(e)).filter(function(t){return!v0e.includes(t)}).reduce(function(t,r){var n;return Gu(Gu({},t),(n={},n[r]=e[r],n))},{})};lS.displayName="Datagrid";var m0e=f.createElement(d0e,null);function g0e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var y0e=g0e,b0e=dc,x0e=lh;function w0e(e,t){return e&&b0e(t,x0e(t),e)}var S0e=w0e,_0e=dc,C0e=Zs;function $0e(e,t){return e&&_0e(t,C0e(t),e)}var O0e=$0e,E0e=dc,P0e=wx;function T0e(e,t){return E0e(e,P0e(e),t)}var R0e=T0e,k0e=dc,I0e=pA;function A0e(e,t){return k0e(e,I0e(e),t)}var j0e=A0e,M0e=Object.prototype,F0e=M0e.hasOwnProperty;function N0e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&F0e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var L0e=N0e,D0e=Px;function B0e(e,t){var r=t?D0e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var z0e=B0e,U0e=/\w*$/;function V0e(e){var t=new e.constructor(e.source,U0e.exec(e));return t.lastIndex=e.lastIndex,t}var W0e=V0e,UE=Hs,VE=UE?UE.prototype:void 0,WE=VE?VE.valueOf:void 0;function H0e(e){return WE?Object(WE.call(e)):{}}var q0e=H0e,G0e=Px,K0e=z0e,Q0e=W0e,Y0e=q0e,X0e=OI,J0e="[object Boolean]",Z0e="[object Date]",e1e="[object Map]",t1e="[object Number]",r1e="[object RegExp]",n1e="[object Set]",o1e="[object String]",a1e="[object Symbol]",i1e="[object ArrayBuffer]",s1e="[object DataView]",l1e="[object Float32Array]",u1e="[object Float64Array]",c1e="[object Int8Array]",f1e="[object Int16Array]",d1e="[object Int32Array]",p1e="[object Uint8Array]",v1e="[object Uint8ClampedArray]",h1e="[object Uint16Array]",m1e="[object Uint32Array]";function g1e(e,t,r){var n=e.constructor;switch(t){case i1e:return G0e(e);case J0e:case Z0e:return new n(+e);case s1e:return K0e(e,r);case l1e:case u1e:case c1e:case f1e:case d1e:case p1e:case v1e:case h1e:case m1e:return X0e(e,r);case e1e:return new n;case t1e:case o1e:return new n(e);case r1e:return Q0e(e);case n1e:return new n;case a1e:return Y0e(e)}}var y1e=g1e,b1e=uh,x1e=Qn,w1e="[object Map]";function S1e(e){return x1e(e)&&b1e(e)==w1e}var _1e=S1e,C1e=_1e,$1e=ih,HE=_x,qE=HE&&HE.isMap,O1e=qE?$1e(qE):C1e,E1e=O1e,P1e=uh,T1e=Qn,R1e="[object Set]";function k1e(e){return T1e(e)&&P1e(e)==R1e}var I1e=k1e,A1e=I1e,j1e=ih,GE=_x,KE=GE&&GE.isSet,M1e=KE?j1e(KE):A1e,F1e=M1e,N1e=nh,L1e=y0e,D1e=cx,B1e=S0e,z1e=O0e,U1e=$I,V1e=EI,W1e=R0e,H1e=j0e,q1e=gI,G1e=vA,K1e=uh,Q1e=L0e,Y1e=y1e,X1e=PI,J1e=un,Z1e=ah,exe=E1e,txe=ln,rxe=F1e,nxe=lh,oxe=Zs,axe=1,ixe=2,sxe=4,CF="[object Arguments]",lxe="[object Array]",uxe="[object Boolean]",cxe="[object Date]",fxe="[object Error]",$F="[object Function]",dxe="[object GeneratorFunction]",pxe="[object Map]",vxe="[object Number]",OF="[object Object]",hxe="[object RegExp]",mxe="[object Set]",gxe="[object String]",yxe="[object Symbol]",bxe="[object WeakMap]",xxe="[object ArrayBuffer]",wxe="[object DataView]",Sxe="[object Float32Array]",_xe="[object Float64Array]",Cxe="[object Int8Array]",$xe="[object Int16Array]",Oxe="[object Int32Array]",Exe="[object Uint8Array]",Pxe="[object Uint8ClampedArray]",Txe="[object Uint16Array]",Rxe="[object Uint32Array]",qe={};qe[CF]=qe[lxe]=qe[xxe]=qe[wxe]=qe[uxe]=qe[cxe]=qe[Sxe]=qe[_xe]=qe[Cxe]=qe[$xe]=qe[Oxe]=qe[pxe]=qe[vxe]=qe[OF]=qe[hxe]=qe[mxe]=qe[gxe]=qe[yxe]=qe[Exe]=qe[Pxe]=qe[Txe]=qe[Rxe]=!0;qe[fxe]=qe[$F]=qe[bxe]=!1;function Zf(e,t,r,n,o,a){var i,s=t&axe,u=t&ixe,l=t&sxe;if(r&&(i=o?r(e,n,o,a):r(e)),i!==void 0)return i;if(!txe(e))return e;var c=J1e(e);if(c){if(i=Q1e(e),!s)return V1e(e,i)}else{var d=K1e(e),p=d==$F||d==dxe;if(Z1e(e))return U1e(e,s);if(d==OF||d==CF||p&&!o){if(i=u||p?{}:X1e(e),!s)return u?H1e(e,z1e(i,e)):W1e(e,B1e(i,e))}else{if(!qe[d])return o?e:{};i=Y1e(e,d,s)}}a||(a=new N1e);var h=a.get(e);if(h)return h;a.set(e,i),rxe(e)?e.forEach(function(x){i.add(Zf(x,t,r,x,e,a))}):exe(e)&&e.forEach(function(x,b){i.set(b,Zf(x,t,r,b,e,a))});var m=l?u?G1e:q1e:u?oxe:nxe,y=c?void 0:m(e);return L1e(y||e,function(x,b){y&&(b=x,x=e[b]),D1e(i,b,Zf(x,t,r,b,e,a))}),i}var kxe=Zf,Ixe=kxe,Axe=1,jxe=4;function Mxe(e){return Ixe(e,Axe|jxe)}var Fxe=Mxe;const EF=Ye(Fxe);var PF=function(e){var t,r=e.filterElement,n=e.handleHide,o=e.className,a=xt(e),i=xe();return f.createElement(Nxe,{"data-source":r.props.source,className:ke("filter-field",o)},f.cloneElement(r,{resource:a,record:Lxe,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&f.createElement(mt,{className:ke("hide-filter",kp.hideButton),onClick:n,"data-key":r.props.source,title:i("ra.action.remove_filter"),size:"small"},f.createElement(pF,null)),f.createElement("div",{className:kp.spacer}," "))};PF.propTypes={filterElement:C.node,handleHide:C.func,resource:C.string,className:C.string};var Wb="RaFilterFormInput",kp={spacer:"".concat(Wb,"-spacer"),hideButton:"".concat(Wb,"-hideButton")},Nxe=U("div",{name:Wb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(kp.spacer)]={width:r.spacing(2)},t["& .".concat(kp.hideButton)]={marginBottom:r.spacing(1)},t}),Lxe={},Fh=f.createContext(void 0),aa=globalThis&&globalThis.__assign||function(){return aa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},aa.apply(this,arguments)},Dxe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{l(n.next(c))}catch(d){i(d)}}function u(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){c.done?a(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},Bxe=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},uS=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},zxe=function(e){var t=e.defaultValues,r=e.filters,n=uS(e,["defaultValues","filters"]),o=zr(e),a=o.setFilters,i=o.displayedFilters,s=o.filterValues,u=f.useContext(Fh)||r,l=Wxe(t||s,u),c=jA({defaultValues:l}),d=c.getValues,p=c.reset,h=c.trigger,m=c.watch;return f.useEffect(function(){var y=Gxe(d(),s),x=d();zn(y,x)||p(y)},[JSON.stringify(s),s,d,p]),f.useEffect(function(){var y=m(function(x,b){var v=b.name;return Dxe(void 0,void 0,void 0,function(){var g,S;return Bxe(this,function(w){switch(w.label){case 0:return[4,h()];case 1:return g=w.sent(),v&&g&&(We(x,v)===""?(S=EF(x),zf(S,v),a(S,i)):a(x,i)),[2]}})})});return function(){return y.unsubscribe()}},[i,a,h,m]),f.createElement(SA,aa({},c),f.createElement(fj,null,f.createElement(TF,aa({onSubmit:Hxe,filters:u},n))))},TF=function(e){var t=e.className,r=e.filters,n=uS(e,["className","filters"]),o=xt(e),a=mc(),i=zr(e),s=i.displayedFilters,u=s===void 0?{}:s,l=i.hideFilter;f.useEffect(function(){r.forEach(function(p){if(p.props.alwaysOn&&p.props.defaultValue)throw new Error("Cannot use alwaysOn and defaultValue on a filter input. Please set the filterDefaultValues props on the <List> element instead.")})},[r]);var c=function(){var p=a.getValues();return r.filter(function(h){var m=We(p,h.props.source);return h.props.alwaysOn||u[h.props.source]||m!==""&&typeof m<"u"})},d=f.useCallback(function(p){return l(p.currentTarget.dataset.key)},[l]);return f.createElement(rj,{prefix:"resources.".concat(o,".fields"),concatenate:!1},f.createElement(qxe,aa({className:t},Vxe(n),{onSubmit:Uxe}),c().map(function(p){return f.createElement(PF,{key:p.key||p.props.source,filterElement:p,handleHide:d,resource:o,className:Ip.filterFormInput})}),f.createElement("div",{className:Ip.clearFix})))},Uxe=function(e){return e.preventDefault(),!1};TF.propTypes={resource:C.string,filters:C.arrayOf(C.node).isRequired,displayedFilters:C.object,hideFilter:C.func,initialValues:C.object,className:C.string};var Vxe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=uS(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},Wxe=function(e,t){return aa(aa({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return mx(aa({},r),n.props.source,n.props.defaultValue)},{})),e)},Hxe=function(e){return e.preventDefault(),e.stopPropagation(),!1},Hb="RaFilterForm",Ip={clearFix:"".concat(Hb,"-clearFix"),filterFormInput:"".concat(Hb,"-filterFormInput")},qxe=U("form",{name:Hb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Ip.clearFix)]={clear:"right"},t["& .".concat(Ip.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Gxe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=RF(e,o,t),n},(r=EF(t))!==null&&r!==void 0?r:{})},RF=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return We(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=RF(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return We(r,t,"")},cS={},Kxe=we;Object.defineProperty(cS,"__esModule",{value:!0});var kF=cS.default=void 0,Qxe=Kxe(Ce()),Yxe=E;kF=cS.default=(0,Qxe.default)((0,Yxe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var IF=f.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=xt(e),i=f.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return f.createElement(Nn,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},f.createElement(zu,{label:r.props.label,source:r.props.source,resource:a}))});IF.propTypes={filter:C.element.isRequired,onShow:C.func.isRequired,resource:C.string,autoFocus:C.bool};var fS=function(e){return $n("".concat(e,".savedQueries"),[])},dS=function(e){return Array.isArray(e)?e.filter(function(t){return Xxe(t)}):[]},Xxe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},Jxe=function(e){var t=e.open,r=e.onClose,n=xe(),o=zr(),a=o.resource,i=o.filterValues,s=o.displayedFilters,u=o.sort,l=o.perPage,c=fS(a),d=c[0],p=c[1],h=f.useState(""),m=h[0],y=h[1],x=function(g){y(g.target.value)},b=function(g){g.preventDefault(),v()},v=function(){var g={label:m,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},S=dS(d);p(S.concat(g)),y(""),r()};return f.createElement(pw,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},f.createElement(mw,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),f.createElement(hw,null,f.createElement("form",{onSubmit:b},f.createElement(Sw,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:m,onChange:x}))),f.createElement(vw,null,f.createElement(_r,{onClick:r},n("ra.action.cancel")),f.createElement(_r,{onClick:v,color:"primary"},n("ra.action.save"))))},QE=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},Zxe=function(e){var t=e.open,r=e.onClose,n=xe(),o=zr(),a=o.resource,i=o.filterValues,s=o.sort,u=o.perPage,l=o.displayedFilters,c=fS(a),d=c[0],p=c[1],h=function(){var m={filter:i,sort:s,perPage:u,displayedFilters:l},y=dS(d),x=y.findIndex(function(b){return zn(b.value,m)});p(QE(QE([],y.slice(0,x),!0),y.slice(x+1),!0)),r()};return f.createElement(pw,{open:t,onClose:r,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},f.createElement(mw,{id:"alert-dialog-title"},n("ra.saved_queries.remove_dialog_title",{_:"Remove saved query?"})),f.createElement(hw,null,f.createElement(Lj,null,n("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"}))),f.createElement(vw,null,f.createElement(_r,{onClick:r},n("ra.action.cancel")),f.createElement(_r,{onClick:h,color:"primary",autoFocus:!0},n("ra.action.confirm"))))},qb=globalThis&&globalThis.__assign||function(){return qb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qb.apply(this,arguments)},AF=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},jF=function(e){var t=e.filters,r=e.className,n=e.disableSaveQuery,o=AF(e,["filters","className","disableSaveQuery"]),a=f.useContext(Fh)||t,i=xt(e),s=xe(),u=fS(i)[0],l=Kn(),c=zr(e),d=c.displayedFilters,p=d===void 0?{}:d,h=c.filterValues,m=c.perPage,y=c.setFilters,x=c.showFilter,b=c.sort,v=!zn(h,{}),g=dS(u),S=g.some(function(J){return zn(J.value,{filter:h,sort:b,perPage:m,displayedFilters:p})}),w=f.useState(!1),_=w[0],$=w[1],P=f.useRef();if(a===void 0)throw new Error("The <FilterButton> component requires the <List filters> prop to be set");var T=a.filter(function(J){return!J.props.alwaysOn&&!p[J.props.source]&&typeof We(h,J.props.source)>"u"}),R=f.useCallback(function(J){J.preventDefault(),$(!0),P.current=J.currentTarget},[P,$]),I=f.useCallback(function(){$(!1)},[$]),A=f.useCallback(function(J){var te=J.source,ae=J.defaultValue;x(te,ae===""?void 0:ae),setTimeout(function(){var fe=document.querySelector("input[name='".concat(te,"']"));fe&&fe.focus()},50),$(!1)},[x,$]),L=f.useState(!1),M=L[0],F=L[1],j=function(){F(!1)},B=function(){$(!1),F(!0)},k=f.useState(!1),N=k[0],z=k[1],H=function(){z(!1)},K=function(){$(!1),z(!0)};return T.length===0&&g.length===0&&!v?null:f.createElement(rwe,qb({className:r},ewe(o)),f.createElement(Po,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:R},f.createElement(kF,null)),f.createElement(Ph,{open:_,anchorEl:P.current,onClose:I},T.map(function(J,te){return f.createElement(IF,{key:J.props.source,filter:J,resource:i,onShow:A,autoFocus:te===0})}),g.map(function(J,te){return zn(J.value,{filter:h,sort:b,perPage:m,displayedFilters:p})?f.createElement(Nn,{onClick:K,key:te},s("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:J.label})):f.createElement(Nn,{onClick:function(){l({search:fh.stringify({filter:JSON.stringify(J.value.filter),sort:J.value.sort.field,order:J.value.sort.order,page:1,perPage:J.value.perPage,displayedFilters:JSON.stringify(J.value.displayedFilters)})}),$(!1)},key:te},J.label)}),v&&!S&&!n&&f.createElement(Nn,{onClick:B},s("ra.saved_queries.new_label",{_:"Save current query..."})),v&&f.createElement(Nn,{onClick:function(){y({},{},!1),$(!1)}},s("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&f.createElement(f.Fragment,null,f.createElement(Jxe,{open:M,onClose:j}),f.createElement(Zxe,{open:N,onClose:H})))},ewe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=AF(e,["displayedFilters","filterValues","showFilter"]);return t};jF.propTypes={resource:C.string,filters:C.arrayOf(C.node),displayedFilters:C.object,filterValues:C.object,showFilter:C.func,className:C.string};var twe="RaFilterButton",rwe=U("div",{name:twe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),pS={},nwe=we;Object.defineProperty(pS,"__esModule",{value:!0});var MF=pS.default=void 0,owe=nwe(Ce()),awe=E;MF=pS.default=(0,owe.default)((0,awe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var Gb=globalThis&&globalThis.__assign||function(){return Gb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gb.apply(this,arguments)},FF=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},NF=f.memo(function(e){var t=e.page,r=e.rowsPerPage,n=e.count,o=e.onPageChange,a=e.size,i=a===void 0?"small":a,s=e.className,u=FF(e,["page","rowsPerPage","count","onPageChange","size","className"]),l=xe(),c=Math.ceil(n/r)||1;if(c===1)return f.createElement(YE,{className:s});var d=function(p,h,m){return p==="page"?m?l("ra.navigation.current_page",{page:h,_:"page ".concat(h)}):l("ra.navigation.page",{page:h,_:"Go to page ".concat(h)}):l("ra.navigation.".concat(p),{_:"Go to ".concat(p," page")})};return f.createElement(YE,{className:s},f.createElement(Vpe,Gb({size:i,count:c,page:t+1,onChange:function(p,h){return o(p,h-1)}},swe(u),{getItemAriaLabel:d})))});NF.propTypes={count:C.number.isRequired,onPageChange:C.func.isRequired,page:C.number.isRequired,rowsPerPage:C.number.isRequired,color:C.oneOf(["primary","secondary","standard"]),size:C.oneOf(["small","medium","large"])};var iwe="RaPaginationActions",YE=U("div",{name:iwe,overridesResolver:function(e,t){return t.root}})(function(){return{flexShrink:0,ml:4}}),swe=function(e){e.nextIconButtonProps,e.backIconButtonProps,e.slotProps;var t=FF(e,["nextIconButtonProps","backIconButtonProps","slotProps"]);return t},Ap=globalThis&&globalThis.__assign||function(){return Ap=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ap.apply(this,arguments)},lwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},LF=f.memo(function(e){var t=e.rowsPerPageOptions,r=t===void 0?uwe:t,n=e.actions,o=e.limit,a=o===void 0?null:o,i=lwe(e,["rowsPerPageOptions","actions","limit"]),s=kte(e),u=s.isLoading,l=s.hasNextPage,c=s.page,d=s.perPage,p=s.total,h=s.setPage,m=s.setPerPage,y=xe(),x=Ur(function($){return $.breakpoints.down("md")}),b=f.useMemo(function(){return p!=null?Math.ceil(p/d):void 0},[d,p]),v=f.useCallback(function($,P){if($&&$.stopPropagation(),P<0||P>b-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:P+1}));h(P+1)},[b,h,y]),g=f.useCallback(function($){m($.target.value)},[m]),S=f.useCallback(function($){var P=$.from,T=$.to,R=$.count;return R===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:P,offsetEnd:T,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:P,offsetEnd:T,total:R===-1?T:R,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),w=f.useCallback(function($){return y("ra.navigation.".concat($),{_:"Go to ".concat($," page")})},[y]);if(u)return f.createElement(Rc,{variant:"dense"});if(p===0||c<1||p!=null&&c>b)return a!=null,null;if(x)return f.createElement(TE,Ap({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:v,rowsPerPageOptions:cwe,component:"span",labelDisplayedRows:S},Bu(i)));var _=n||(!u&&p!=null?NF:void 0);return f.createElement(TE,Ap({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:v,onRowsPerPageChange:g,ActionsComponent:_,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:S,getItemAriaLabel:w,rowsPerPageOptions:r},Bu(i)))});LF.propTypes={actions:Gx,limit:C.element,rowsPerPageOptions:C.arrayOf(C.oneOfType([C.number,C.exact({label:C.string.isRequired,value:C.number.isRequired})]))};var uwe=[5,10,25,50],cwe=[],vS={},fwe=we;Object.defineProperty(vS,"__esModule",{value:!0});var jp=vS.default=void 0,dwe=fwe(Ce()),pwe=E;jp=vS.default=(0,dwe.default)((0,pwe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Mp=globalThis&&globalThis.__assign||function(){return Mp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mp.apply(this,arguments)},XE=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ca,hS=f.forwardRef(function(e,t){var r=e.clearAlwaysVisible,n=e.InputProps,o=e.value,a=e.resettable,i=e.disabled,s=e.readOnly,u=e.variant,l=e.margin,c=e.className,d=XE(e,["clearAlwaysVisible","InputProps","value","resettable","disabled","readOnly","variant","margin","className"]),p=xe(),h=e.onChange,m=e.onFocus,y=e.onBlur,x=f.useCallback(function(A){A.preventDefault(),h("")},[h]),b=f.useCallback(function(A){m&&m(A)},[m]),v=f.useCallback(function(A){y&&y(A)},[y]),g=Mn.clearButton,S=Mn.clearIcon,w=Mn.inputAdornedEnd,_=Mn.selectAdornment,$=Mn.visibleClearIcon,P=n||{},T=P.endAdornment,R=XE(P,["endAdornment"]);if(r&&T)throw new Error("ResettableTextField cannot display both an endAdornment and a clear button always visible");var I=function(){var A;return a?o?f.createElement(qf,{position:"end",classes:{root:e.select?_:null}},f.createElement(mt,{className:g,"aria-label":p("ra.action.clear_input_value"),title:p("ra.action.clear_input_value"),onClick:x,onMouseDown:vwe,disabled:i||s,size:"large"},f.createElement(jp,{className:ke(S,(A={},A[$]=r||o,A))}))):r?f.createElement(qf,{position:"end",classes:{root:e.select?_:null}},f.createElement(mt,{className:g,"aria-label":p("ra.action.clear_input_value"),title:p("ra.action.clear_input_value"),disabled:!0,size:"large"},f.createElement(jp,{className:ke(S,$)}))):T||f.createElement(qf,{position:"end",classes:{root:e.select?_:null}},f.createElement("span",{className:g}," ")):T};return f.createElement(mwe,Mp({value:o,InputProps:Mp({readOnly:s,classes:e.select&&u==="filled"?{adornedEnd:w}:{},endAdornment:I()},R),disabled:i||s,variant:u,margin:l,className:c,size:"small"},d,{onFocus:b,onBlur:v,inputRef:t}))});hS.displayName="ResettableTextField";var vwe=function(e){e.preventDefault()};hS.propTypes={clearAlwaysVisible:C.bool,readOnly:C.bool,disabled:C.bool,InputProps:C.object,onBlur:C.func,onChange:C.func.isRequired,onFocus:C.func,resettable:C.bool,value:C.any};var Ri="RaResettableTextField",Mn={clearIcon:"".concat(Ri,"-clearIcon"),visibleClearIcon:"".concat(Ri,"-visibleClearIcon"),clearButton:"".concat(Ri,"-clearButton"),selectAdornment:"".concat(Ri,"-selectAdornment"),inputAdornedEnd:"".concat(Ri,"-inputAdornedEnd")},hwe=(Ca={},Ca["& .".concat(Mn.clearIcon)]={height:16,width:0},Ca["& .".concat(Mn.visibleClearIcon)]={width:16},Ca["& .".concat(Mn.clearButton)]={height:24,width:24,padding:0},Ca["& .".concat(Mn.selectAdornment)]={position:"absolute",right:24},Ca["& .".concat(Mn.inputAdornedEnd)]={paddingRight:0},Ca),mwe=U(Sw,{name:Ri,overridesResolver:function(e,t){return t.root}})(hwe),Fp=globalThis&&globalThis.__assign||function(){return Fp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fp.apply(this,arguments)},gwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Np=function(e){var t=e.className,r=e.defaultValue,n=e.label,o=e.format,a=e.helperText,i=e.onBlur,s=e.onChange,u=e.parse,l=e.resource,c=e.source,d=e.validate,p=gwe(e,["className","defaultValue","label","format","helperText","onBlur","onChange","parse","resource","source","validate"]),h=ioe(Fp({defaultValue:r,format:o,parse:u,resource:l,source:c,type:"text",validate:d,onBlur:i,onChange:s},p)),m=h.field,y=h.fieldState,x=y.error,b=y.invalid,v=y.isTouched,g=h.formState.isSubmitted,S=h.id,w=h.isRequired,_=a!==!1||(v||g)&&b;return f.createElement(hS,Fp({id:S},m,{className:ke("ra-input","ra-input-".concat(c),t),label:n!==""&&n!==!1?f.createElement(zu,{label:n,source:c,resource:l,isRequired:w}):null,error:(v||g)&&b,helperText:_?f.createElement(dbe,{touched:v||g,error:x==null?void 0:x.message,helperText:a}):null},hbe(p)))};Np.propTypes={className:C.string,label:C.oneOfType([C.string,C.bool,C.element]),resource:C.string,source:C.string};var Kb=globalThis&&globalThis.__assign||function(){return Kb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Kb.apply(this,arguments)},ywe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},bwe=function(e){var t=e.label,r=ywe(e,["label"]),n=xe();if(t)throw new Error("<SearchInput> isn't designed to be used with a label prop. Use <TextInput> if you need a label.");return f.createElement(wwe,Kb({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:f.createElement(qf,{position:"end"},f.createElement(MF,{color:"disabled"}))},size:"small"},r))},xwe="RaSearchInput",wwe=U(Np,{name:xwe,overridesResolver:function(e,t){return t.root}})({marginTop:0}),DF=function(e){var t=e.redirectTo,r=e.className,n=Ps(!1),o=n[0],a=n[1],i=ane(),s=xe(),u=Br(),l=function(c){a(!0),i(c,t).then(function(){a(!1)}).catch(function(d){a(!1),u(typeof d=="string"?d:typeof d>"u"||!d.message?"ra.auth.sign_in_error":d.message,{type:"error",messageArgs:{_:typeof d=="string"?d:d&&d.message?d.message:void 0}})})};return f.createElement(Swe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},f.createElement(Fj,{className:fs.content},f.createElement(Np,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:_O(),fullWidth:!0}),f.createElement(Np,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:_O(),fullWidth:!0}),f.createElement(_r,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:fs.button},o?f.createElement(fw,{className:fs.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},ed="RaLoginForm",fs={content:"".concat(ed,"-content"),button:"".concat(ed,"-button"),icon:"".concat(ed,"-icon")},Swe=U(Bne,{name:ed,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(fs.content)]={width:300},t["& .".concat(fs.button)]={marginTop:r.spacing(2)},t["& .".concat(fs.icon)]={margin:r.spacing(.3)},t});DF.propTypes={redirectTo:C.string};var Qb=globalThis&&globalThis.__assign||function(){return Qb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Qb.apply(this,arguments)},_we=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},mS=function(e){var t=e.children,r=t===void 0?Cwe:t,n=e.backgroundImage,o=_we(e,["children","backgroundImage"]),a=f.useRef(),i=!1,s=aj(),u=Kn();f.useEffect(function(){s({},!1).then(function(){u("/")}).catch(function(){})},[s,u]);var l=function(){!i&&a.current&&(a.current.style.backgroundImage="url(".concat(n,")"),i=!0)},c=function(){if(n){var d=new Image;d.onload=l,d.src=n}};return f.useEffect(function(){i||c()}),f.createElement($we,Qb({},o,{ref:a}),f.createElement(cw,{className:ds.card},f.createElement("div",{className:ds.avatar},f.createElement(tb,{className:ds.icon},f.createElement(Cw,null))),r))},Cwe=f.createElement(DF,null),td="RaLogin",ds={card:"".concat(td,"-card"),avatar:"".concat(td,"-avatar"),icon:"".concat(td,"-icon")},$we=U("div",{name:td,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)"},t["& .".concat(ds.card)]={minWidth:300,marginTop:"6em"},t["& .".concat(ds.avatar)]={margin:"1em",display:"flex",justifyContent:"center"},t["& .".concat(ds.icon)]={backgroundColor:r.palette.secondary[500]},t});mS.propTypes={backgroundImage:C.string,children:C.node,className:C.string};var BF=function(e){var t=Mt(e),r=tl().hasEdit;return r?f.createElement(Xw,{className:e.className},f.createElement(rF,{record:t})):null};BF.propTypes={className:C.string,record:C.any};var Yb=globalThis&&globalThis.__assign||function(){return Yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Yb.apply(this,arguments)},zF=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Pl,Owe=f.createElement(BF,null),UF=function(e){var t,r=e.actions,n=e.aside,o=e.children,a=e.className,i=e.component,s=i===void 0?cw:i,u=e.emptyWhileLoading,l=u===void 0?!1:u,c=e.title,d=zF(e,["actions","aside","children","className","component","emptyWhileLoading","title"]),p=nre(e),h=p.resource,m=p.defaultTitle,y=p.record,x=tl(e).hasEdit,b=typeof r>"u"&&x?Owe:r;return!o||!y&&l?null:f.createElement(Pwe,Yb({className:ke("show-page",a)},Ewe(d)),f.createElement(Ac,{title:c,defaultTitle:m,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,f.createElement("div",{className:ke(ps.main,(t={},t[ps.noActions]=!b,t))},f.createElement(s,{className:ps.card},o),n))};UF.propTypes={actions:C.oneOfType([C.element,C.bool]),children:C.node,className:C.string,emptyWhileLoading:C.bool,title:C.any};var Ewe=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=zF(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},rd="RaShow",ps={main:"".concat(rd,"-main"),noActions:"".concat(rd,"-noActions"),card:"".concat(rd,"-card")},Pwe=U("div",{name:rd,overridesResolver:function(e,t){return t.root}})((Pl={},Pl["& .".concat(ps.main)]={display:"flex"},Pl["& .".concat(ps.noActions)]={marginTop:"1em"},Pl["& .".concat(ps.card)]={flex:"1 1 auto"},Pl)),Xb=globalThis&&globalThis.__assign||function(){return Xb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xb.apply(this,arguments)},Twe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},VF=function(e){var t=e.id,r=e.resource,n=e.queryOptions,o=e.disableAuthentication,a=Twe(e,["id","resource","queryOptions","disableAuthentication"]);return f.createElement(rre,{id:t,disableAuthentication:o,queryOptions:n,resource:r},f.createElement(UF,Xb({},a)))};VF.propTypes={actions:C.oneOfType([C.element,C.bool]),children:C.node.isRequired,className:C.string,disableAuthentication:C.bool,emptyWhileLoading:C.bool,component:C.elementType,resource:C.string,title:C.node,sx:C.any};var Hn={sortBy:C.string,sortByOrder:C.oneOf(["ASC","DESC"]),source:C.string,label:C.oneOfType([C.string,C.element,C.bool]),sortable:C.bool,className:C.string,cellClassName:C.string,headerClassName:C.string,textAlign:C.oneOf(["inherit","left","center","right","justify"]),emptyText:C.string},al=function(e){var t,r=f.memo(e);return r.propTypes=e.propTypes,r.defaultProps=e.defaultProps,r.displayName=(t=e.displayName)===null||t===void 0?void 0:t.replace("Impl",""),r},gS={},Rwe=we;Object.defineProperty(gS,"__esModule",{value:!0});var WF=gS.default=void 0,kwe=Rwe(Ce()),Iwe=E;WF=gS.default=(0,kwe.default)((0,Iwe.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");var Awe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},qn=function(e){e.cellClassName,e.className,e.emptyText,e.formClassName,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;var t=Awe(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"]);return t},qa=globalThis&&globalThis.__assign||function(){return qa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qa.apply(this,arguments)},jwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},gf,yS=function(e){var t=e.className,r=e.emptyText,n=e.source,o=e.valueLabelTrue,a=e.valueLabelFalse,i=e.TrueIcon,s=i===void 0?WF:i,u=e.FalseIcon,l=u===void 0?jp:u,c=e.looseValue,d=c===void 0?!1:c,p=jwe(e,["className","emptyText","source","valueLabelTrue","valueLabelFalse","TrueIcon","FalseIcon","looseValue"]),h=Mt(e),m=xe(),y=We(h,n),x=y===!0||d&&y,b=y?o:a;return b||(b=x?"ra.boolean.true":"ra.boolean.false"),d||y===!1||y===!0?f.createElement(Fwe,qa({component:"span",variant:"body2",className:t},qn(p)),f.createElement(Eo,{title:m(b,{_:b})},x?s?f.createElement(s,{"data-testid":"true",fontSize:"small",className:Lp.trueIcon}):f.createElement(f.Fragment,null):l?f.createElement(l,{"data-testid":"false",fontSize:"small",className:Lp.falseIcon}):f.createElement(f.Fragment,null))):f.createElement(Te,qa({component:"span",variant:"body2",className:t},qn(p)),r&&m(r,{_:r}))};yS.propTypes=qa(qa(qa({},Te.propTypes),Hn),{valueLabelFalse:C.string,valueLabelTrue:C.string,TrueIcon:C.elementType,FalseIcon:C.elementType,looseValue:C.bool});yS.displayName="BooleanFieldImpl";var Mwe=al(yS),Jb="RaBooleanField",Lp={trueIcon:"".concat(Jb,"-trueIcon"),falseIcon:"".concat(Jb,"-falseIcon")},Fwe=U(Te,{name:Jb,overridesResolver:function(e,t){return t.root}})((gf={display:"inline-flex",verticalAlign:"middle",lineHeight:0},gf["& .".concat(Lp.trueIcon)]={},gf["& .".concat(Lp.falseIcon)]={},gf)),Ga=globalThis&&globalThis.__assign||function(){return Ga=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ga.apply(this,arguments)},Nwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},bS=function(e){var t=e.className,r=e.emptyText,n=e.locales,o=e.options,a=e.showTime,i=a===void 0?!1:a,s=e.showDate,u=s===void 0?!0:s,l=e.source,c=e.transform,d=c===void 0?Lwe:c,p=Nwe(e,["className","emptyText","locales","options","showTime","showDate","source","transform"]),h=xe();if(!i&&!u)throw new Error("<DateField> cannot have showTime and showDate false at the same time");var m=Mt(e);if(!m)return null;var y=We(m,l);if(y==null||y==="")return r?f.createElement(Te,Ga({component:"span",variant:"body2",className:t},qn(p)),r&&h(r,{_:r})):null;var x=d(y),b="";if(i&&u)b=Km?x.toLocaleString(n,o):x.toLocaleString();else if(u){var v=o??(typeof y=="string"&&y.length<=10?{timeZone:"UTC"}:void 0);b=Km?x.toLocaleDateString(n,v):x.toLocaleDateString()}else i&&(b=Km?x.toLocaleTimeString(n,o):x.toLocaleTimeString());return f.createElement(Te,Ga({component:"span",variant:"body2",className:t},qn(p)),b)};bS.propTypes=Ga(Ga(Ga({},Te.propTypes),Hn),{locales:C.oneOfType([C.string,C.arrayOf(C.string)]),options:C.object,showTime:C.bool,showDate:C.bool});bS.displayName="DateFieldImpl";var Gm=al(bS),Lwe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},Km=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Dp=globalThis&&globalThis.__assign||function(){return Dp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dp.apply(this,arguments)},Dwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},xS=function(e){var t=e.className,r=e.source,n=e.emptyText,o=Dwe(e,["className","source","emptyText"]),a=Mt(e),i=We(a,r),s=xe();return i==null?n?f.createElement(Te,Dp({component:"span",variant:"body2",className:t},qn(o)),n&&s(n,{_:n})):null:f.createElement(Qj,Dp({className:t,href:"mailto:".concat(i),onClick:zwe,variant:"body2"},qn(o)),i)};xS.propTypes=Hn;xS.displayName="EmailFieldImpl";var Bwe=al(xS),zwe=function(e){return e.stopPropagation()},vs=globalThis&&globalThis.__assign||function(){return vs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vs.apply(this,arguments)},Uwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Nh=function(e){var t=e.className,r=e.source,n=r===void 0?"":r,o=e.render,a=Uwe(e,["className","source","render"]),i=Mt(e);return f.useMemo(function(){return i?f.createElement(Te,vs({component:"span",variant:"body2",className:t},qn(a)),o(i,n)):null},[t,i,n,o,a])};Nh.propTypes=vs(vs(vs({},Te.propTypes),Hn),{render:C.func.isRequired});var Ka=globalThis&&globalThis.__assign||function(){return Ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ka.apply(this,arguments)},Vwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Lh=function(e){var t=e.className,r=e.emptyText,n=e.source,o=e.locales,a=e.options;e.textAlign;var i=e.transform,s=i===void 0?Wwe:i,u=Vwe(e,["className","emptyText","source","locales","options","textAlign","transform"]),l=Mt(e),c=xe();if(!l)return null;var d=We(l,n);return d==null?r?f.createElement(Te,Ka({component:"span",variant:"body2",className:t},qn(u)),r&&c(r,{_:r})):null:(s&&(d=s(d)),f.createElement(Te,Ka({variant:"body2",component:"span",className:t},qn(u)),qwe&&typeof d=="number"?d.toLocaleString(o,a):d))},Wwe=function(e){return e&&typeof e=="string"&&!isNaN(e)?+e:e};Lh.propTypes=Ka(Ka(Ka({},Te.propTypes),Hn),{locales:C.oneOfType([C.string,C.arrayOf(C.string)]),options:C.object});Lh.displayName="NumberFieldImpl";Lh.defaultProps={textAlign:"right"};var Hwe=al(Lh),qwe=!!(typeof Intl=="object"&&Intl&&typeof Intl.NumberFormat=="function"),Zb=globalThis&&globalThis.__assign||function(){return Zb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Zb.apply(this,arguments)},Gwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},HF=function(e){var t=e.to,r=e.children,n=e.className,o=Gwe(e,["to","children","className"]);return f.createElement(Ywe,Zb({component:ai,to:t,className:ke(Qwe.link,n),underline:"none"},o),r)},Kwe="RaLink",Qwe={link:"".concat(Kwe,"-link")},Ywe=U(Qj)({});HF.propTypes={className:C.string,children:C.node,to:C.oneOfType([C.string,C.object])};var Bp=globalThis&&globalThis.__assign||function(){return Bp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bp.apply(this,arguments)},qF=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},e0=function(e){var t=e.source,r=e.emptyText,n=e.link,o=n===void 0?"edit":n,a=qF(e,["source","emptyText","link"]),i=Mt(e),s=We(i,t),u=xe();return s==null?r?f.createElement(Te,{component:"span",variant:"body2"},r&&u(r,{_:r})):null:f.createElement(Xwe,Bp({},a,{link:o,emptyText:r,record:i,id:s}))};e0.propTypes={children:C.node,className:C.string,cellClassName:C.string,headerClassName:C.string,label:Hn.label,record:C.any,reference:C.string.isRequired,resource:C.string,sortBy:C.string,sortByOrder:Hn.sortByOrder,source:C.string.isRequired,translateChoice:C.oneOfType([C.func,C.bool]),link:C.oneOfType([C.string,C.bool,C.func])};var Xwe=function(e){var t=e.children,r=e.id,n=e.reference,o=e.queryOptions,a=e.link,i=qF(e,["children","id","reference","queryOptions","link"]);return f.createElement(Oc,{value:n},f.createElement(Zwe,Bp({reference:n},i,Xte({reference:n,id:r,options:o}),{resourceLinkPath:a}),t))},Jwe=function(e){return e.stopPropagation()},GF=function(e){var t=e.children,r=e.className,n=e.emptyText,o=e.error,a=e.isLoading,i=e.reference,s=e.referenceRecord,u=e.resourceLinkPath,l=e.sx,c=YA(i),d=xe(),p=pi(),h=tl({resource:i});if(o)return f.createElement(sF,{"aria-errormessage":o.message?o.message:o,role:"presentation",color:"error",fontSize:"small"});if(a)return f.createElement(Qw,null);if(!s)return n?f.createElement(f.Fragment,null,n&&d(n,{_:n})):null;var m=u===!1||u==="edit"&&!h.hasEdit||u==="show"&&!h.hasShow?!1:p({resource:i,id:s.id,type:typeof u=="function"?u(s,i):u}),y=t||f.createElement(Te,{component:"span",variant:"body2"},c(s));return m?f.createElement(JE,{className:r,sx:l},f.createElement(Du,{value:s},f.createElement(HF,{to:m,className:QF.link,onClick:Jwe,state:{_scrollToTop:!0}},y))):f.createElement(JE,{className:r,sx:l},f.createElement(Du,{value:s},y))};GF.propTypes={children:C.element,className:C.string,isLoading:C.bool,record:C.any,reference:C.string,referenceRecord:C.any,resource:C.string,resourceLinkPath:C.oneOfType([C.string,C.bool,C.func]).isRequired,source:C.string,translateChoice:C.oneOfType([C.func,C.bool])};var Zwe=al(GF),KF="RaReferenceField",QF={link:"".concat(KF,"-link")},JE=U("span",{name:KF,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={lineHeight:"initial"},t["& .".concat(QF.link)]={"& > *":{color:r.palette.primary.main}},t}),ia=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?eSe:n,a=e.page,i=a===void 0?1:a,s=e.pagination,u=s===void 0?null:s,l=e.perPage,c=l===void 0?25:l,d=e.reference,p=e.resource,h=e.sort,m=h===void 0?tSe:h,y=e.source,x=y===void 0?"id":y,b=e.target,v=Mt(e),g=jte({debounce:r,filter:o,page:i,perPage:c,record:v,reference:d,resource:p,sort:m,source:x,target:b});return G.createElement(Oc,{value:d},G.createElement(gA,{value:g},t,u))};ia.propTypes={children:C.node.isRequired,className:C.string,filter:C.object,label:Hn.label,perPage:C.number,record:C.any,reference:C.string.isRequired,resource:C.string,sortBy:C.string,sortByOrder:Hn.sortByOrder,source:C.string,sort:C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),target:C.string.isRequired};C.element,C.string,C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),C.any,C.bool,C.element,C.string,C.func;var eSe={},tSe={field:"id",order:"DESC"},Ku=globalThis&&globalThis.__assign||function(){return Ku=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ku.apply(this,arguments)},rSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},wS=function(e){var t,r=e.className,n=e.source,o=e.emptyText,a=rSe(e,["className","source","emptyText"]),i=Mt(e),s=(t=We(i,n))===null||t===void 0?void 0:t.toString(),u=xe();return f.createElement(Te,Ku({component:"span",variant:"body2",className:r},qn(a)),s!=null&&typeof s!="string"?JSON.stringify(s):s||(o?u(o,{_:o}):null))};wS.propTypes=Ku(Ku({},Te.propTypes),Hn);wS.displayName="TextFieldImpl";var yf=al(wS),t0=globalThis&&globalThis.__assign||function(){return t0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},t0.apply(this,arguments)},YF=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ft=function(e){var t=e.className,r=e.children,n=e.divider,o=e.spacing,a=o===void 0?1:o,i=YF(e,["className","children","divider","spacing"]),s=Mt(e);return s?f.createElement(sA,{value:e.record},f.createElement(nSe,t0({className:t},oSe(i)),f.createElement(Wj,{spacing:a,divider:n,className:zp.stack},f.Children.map(r,function(u){return u&&f.isValidElement(u)?f.createElement(dF,{key:u.props.source,className:ke("ra-field",u.props.source&&"ra-field-".concat(u.props.source),zp.row,u.props.className)},u):null})))):null};Ft.propTypes={children:C.node,className:C.string,record:C.object,spacing:C.any,sx:C.any};var r0="RaSimpleShowLayout",zp={stack:"".concat(r0,"-stack"),row:"".concat(r0,"-row")},nSe=U("div",{name:r0,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={flex:1,padding:"".concat(r.spacing(1)," ").concat(r.spacing(2))},t["& .".concat(zp.stack)]={},t["& .".concat(zp.row)]={display:"inline"},t}),oSe=function(e){e.record,e.resource,e.initialValues,e.translate;var t=YF(e,["record","resource","initialValues","translate"]);return t},SS={},aSe=we;Object.defineProperty(SS,"__esModule",{value:!0});var XF=SS.default=void 0,iSe=aSe(Ce()),sSe=E;XF=SS.default=(0,iSe.default)((0,sSe.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");var lSe=function(e){var t=e.className,r=tl(e).hasCreate,n=xt(e),o=xe(),a=mh(),i=o("resources.".concat(n,".forcedCaseName"),{smart_count:0,_:a(n,0)}),s=o("ra.page.empty",{name:i}),u=o("ra.page.invite");return f.createElement(uSe,{className:t},f.createElement("div",{className:hs.message},f.createElement(XF,{className:hs.icon}),f.createElement(Te,{variant:"h4",paragraph:!0},o("resources.".concat(n,".empty"),{_:s})),r&&f.createElement(Te,{variant:"body1"},o("resources.".concat(n,".invite"),{_:u}))),r&&f.createElement("div",{className:hs.toolbar},f.createElement(bM,{variant:"contained"})))},nd="RaEmpty",hs={message:"".concat(nd,"-message"),icon:"".concat(nd,"-icon"),toolbar:"".concat(nd,"-toolbar")},uSe=U("span",{name:nd,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={flex:1},t["& .".concat(hs.message)]={textAlign:"center",opacity:r.palette.mode==="light"?.5:.8,margin:"0 1em",color:r.palette.mode==="light"?"inherit":r.palette.text.primary},t["& .".concat(hs.icon)]={width:"9em",height:"9em"},t["& .".concat(hs.toolbar)]={textAlign:"center",marginTop:"2em"},t}),no=globalThis&&globalThis.__assign||function(){return no=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},no.apply(this,arguments)},cSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},JF=f.memo(function(e){var t=e.filters,r=e.actions,n=e.className,o=cSe(e,["filters","actions","className"]);return Array.isArray(t)?f.createElement(Fh.Provider,{value:t},f.createElement(ZE,{className:n},f.createElement(zxe,null),f.createElement("span",null),r&&f.cloneElement(r,no(no({},o),r.props)))):f.createElement(ZE,{className:n},t&&f.cloneElement(t,no(no({},o),{context:"form"})),f.createElement("span",null),r&&f.cloneElement(r,no(no(no({},o),{filters:t}),r.props)))});JF.propTypes={filters:C.oneOfType([C.element,C.arrayOf(C.element)]),actions:C.oneOfType([C.bool,C.element]),exporter:C.oneOfType([C.func,C.bool])};var fSe="RaListToolbar",ZE=U("div",{name:fSe,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%"},t[r.breakpoints.down("md")]={flexWrap:"wrap"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"},t}),du=globalThis&&globalThis.__assign||function(){return du=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},du.apply(this,arguments)},dSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ZF=function(e){var t=e.className,r=e.filters;e.hasCreate;var n=e.selectedIds,o=n===void 0?pSe:n,a=e.onUnselectItems,i=a===void 0?vSe:a,s=dSe(e,["className","filters","hasCreate","selectedIds","onUnselectItems"]),u=zr(du(du({},e),{selectedIds:o,onUnselectItems:i})),l=u.sort,c=u.displayedFilters,d=u.filterValues,p=u.exporter,h=u.showFilter,m=u.total,y=xt(e),x=tl(e).hasCreate,b=f.useContext(Fh)||r;return f.useMemo(function(){return f.createElement(Xw,du({className:t},Bu(s)),r?f.cloneElement(r,{resource:y,showFilter:h,displayedFilters:c,filterValues:d,context:"button"}):b&&f.createElement(jF,null),x&&f.createElement(bM,null),p!==!1&&f.createElement(aF,{disabled:m===0,resource:y,sort:l,filterValues:d}))},[y,c,d,r,h,b,m,t,l,p,x])};ZF.propTypes={className:C.string,sort:C.shape({field:C.string,order:C.oneOf(["ASC","DESC"])}),displayedFilters:C.object,exporter:C.oneOfType([C.func,C.bool]),filters:C.element,filterValues:C.object,hasCreate:C.bool,resource:C.string,onUnselectItems:C.func,selectedIds:C.arrayOf(C.any),showFilter:C.func,total:C.number};var pSe=[],vSe=function(){return null},n0=globalThis&&globalThis.__assign||function(){return n0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},n0.apply(this,arguments)},hSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},mSe=f.createElement(ZF,null),gSe=f.createElement(LF,null),ySe=f.createElement(lSe,null),bSe=cw,eN=function(e){var t=e.actions,r=t===void 0?mSe:t,n=e.aside,o=e.filters,a=e.bulkActionButtons,i=e.emptyWhileLoading,s=e.hasCreate,u=e.pagination,l=u===void 0?gSe:u,c=e.children,d=e.className,p=e.component,h=p===void 0?bSe:p,m=e.title,y=e.empty,x=y===void 0?ySe:y,b=hSe(e,["actions","aside","filters","bulkActionButtons","emptyWhileLoading","hasCreate","pagination","children","className","component","title","empty"]),v=zr(e),g=v.defaultTitle,S=v.data,w=v.error,_=v.isLoading,$=v.filterValues,P=v.resource;if(!c||!S&&_&&i)return null;var T=function(){return f.createElement("div",{className:Go.main},(o||r)&&f.createElement(JF,{className:Go.actions,filters:o,actions:r,hasCreate:s}),f.createElement(h,{className:Go.content},a&&c&&f.isValidElement(c)?f.cloneElement(c,{bulkActionButtons:a}):c),w?f.createElement(Gw,{error:w,resetErrorBoundary:null}):l!==!1&&l)},R=function(){return x!==!1&&f.cloneElement(x,{className:Go.noResults,hasCreate:s})},I=!_&&(S==null?void 0:S.length)===0&&!Object.keys($).length&&x!==!1;return f.createElement(xSe,n0({className:ke("list-page",d)},b),f.createElement(Ac,{title:m,defaultTitle:g,preferenceKey:"".concat(P,".list.title")}),I?R():T(),n)};eN.propTypes={actions:C.oneOfType([C.bool,C.element]),aside:C.element,children:C.node,className:C.string,component:Gx,emptyWhileLoading:C.bool,filters:C.oneOfType([C.element,C.arrayOf(C.element)]),hasCreate:C.bool,pagination:C.oneOfType([C.element,C.bool]),title:Ah};var Nl="RaList",Go={main:"".concat(Nl,"-main"),content:"".concat(Nl,"-content"),actions:"".concat(Nl,"-actions"),noResults:"".concat(Nl,"-noResults")},xSe=U("div",{name:Nl,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={display:"flex"},t["& .".concat(Go.main)]={flex:"1 1 auto",display:"flex",flexDirection:"column"},t["& .".concat(Go.content)]=(r={position:"relative"},r[n.breakpoints.down("sm")]={boxShadow:"none"},r.overflow="inherit",r),t["& .".concat(Go.actions)]={},t["& .".concat(Go.noResults)]={},t}),o0=globalThis&&globalThis.__assign||function(){return o0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o0.apply(this,arguments)},wSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},tN=function(e){var t=e.debounce,r=e.disableAuthentication,n=e.disableSyncWithLocation,o=e.exporter,a=e.filter,i=a===void 0?SSe:a,s=e.filterDefaultValues,u=e.perPage,l=u===void 0?10:u,c=e.queryOptions,d=e.resource,p=e.sort,h=e.storeKey,m=wSe(e,["debounce","disableAuthentication","disableSyncWithLocation","exporter","filter","filterDefaultValues","perPage","queryOptions","resource","sort","storeKey"]);return f.createElement(Ete,{debounce:t,disableAuthentication:r,disableSyncWithLocation:n,exporter:o,filter:i,filterDefaultValues:s,perPage:l,queryOptions:c,resource:d,sort:p,storeKey:h},f.createElement(eN,o0({},m)))};tN.propTypes={actions:C.oneOfType([C.bool,C.element]),aside:C.element,children:C.node.isRequired,className:C.string,emptyWhileLoading:C.bool,filter:C.object,filterDefaultValues:C.object,filters:C.oneOfType([C.element,C.arrayOf(C.element)]),pagination:C.oneOfType([C.element,C.bool]),perPage:C.number,sort:C.shape({field:C.string,order:C.oneOf(["ASC","DESC"])}),sx:C.any,title:Ah,disableSyncWithLocation:C.bool,hasCreate:C.bool,resource:C.string};var SSe={},a0=globalThis&&globalThis.__assign||function(){return a0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a0.apply(this,arguments)},_Se=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},CSe=function(e){var t=e.layout,r=t===void 0?WM:t,n=e.catchAll,o=n===void 0?KM:n,a=e.loading,i=a===void 0?HM:a,s=e.loginPage,u=s===void 0?mS:s,l=e.authCallbackPage,c=l===void 0?fbe:l,d=e.notification,p=d===void 0?QM:d,h=_Se(e,["layout","catchAll","loading","loginPage","authCallbackPage","notification"]);return f.createElement(Qpe,{enableColorScheme:!0},f.createElement(bre,a0({layout:r,catchAll:o,loading:i,loginPage:u,authCallbackPage:c},h)),f.createElement(p))},i0=globalThis&&globalThis.__assign||function(){return i0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i0.apply(this,arguments)},$Se=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},rN=function(e){var t=e.theme,r=e.lightTheme,n=r===void 0?Hme:r,o=e.darkTheme,a=e.defaultTheme,i=e.children,s=$Se(e,["theme","lightTheme","darkTheme","defaultTheme","children"]);return f.createElement(cre,i0({},s),f.createElement(TM.Provider,{value:{lightTheme:t||n,darkTheme:o,defaultTheme:a}},f.createElement(Wme,null,i)))};rN.displayName="AdminContext";var OSe={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:" "},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",are_you_sure:"Are you sure?",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update this %{name}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this item?",delete_title:"Delete %{name} #%{id}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",yes:"Yes",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?"},navigation:{no_results:"No results found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}},eP=Object.prototype.toString,nN=function(t){var r=eP.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&eP.call(t.callee)==="[object Function]"),n},Qm,tP;function ESe(){if(tP)return Qm;tP=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=nN,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var h=p.constructor;return h&&h.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(h){var m=h!==null&&typeof h=="object",y=r.call(h)==="[object Function]",x=n(h),b=m&&r.call(h)==="[object String]",v=[];if(!m&&!y&&!x)throw new TypeError("Object.keys called on a non-object");var g=i&&y;if(b&&h.length>0&&!t.call(h,0))for(var S=0;S<h.length;++S)v.push(String(S));if(x&&h.length>0)for(var w=0;w<h.length;++w)v.push(String(w));else for(var _ in h)!(g&&_==="prototype")&&t.call(h,_)&&v.push(String(_));if(a)for(var $=d(h),P=0;P<s.length;++P)!($&&s[P]==="constructor")&&t.call(h,s[P])&&v.push(s[P]);return v}}return Qm=e,Qm}var PSe=Array.prototype.slice,TSe=nN,rP=Object.keys,od=rP?function(t){return rP(t)}:ESe(),nP=Object.keys;od.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return TSe(n)?nP(PSe.call(n)):nP(n)})}else Object.keys=od;return Object.keys||od};var RSe=od,kSe=Error,ISe=EvalError,ASe=RangeError,jSe=ReferenceError,oN=SyntaxError,ur=TypeError,MSe=URIError,aN=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0},oP=typeof Symbol<"u"&&Symbol,FSe=aN,iN=function(){return typeof oP!="function"||typeof Symbol!="function"||typeof oP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:FSe()},Ym={__proto__:null,foo:{}},NSe=Object,LSe=function(){return{__proto__:Ym}.foo===Ym.foo&&!(Ym instanceof NSe)},DSe="Function.prototype.bind called on incompatible ",BSe=Object.prototype.toString,zSe=Math.max,USe="[object Function]",aP=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},VSe=function(t,r){for(var n=[],o=r||0,a=0;o<t.length;o+=1,a+=1)n[a]=t[o];return n},WSe=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},HSe=function(t){var r=this;if(typeof r!="function"||BSe.apply(r)!==USe)throw new TypeError(DSe+r);for(var n=VSe(arguments,1),o,a=function(){if(this instanceof o){var c=r.apply(this,aP(n,arguments));return Object(c)===c?c:this}return r.apply(t,aP(n,arguments))},i=zSe(0,r.length-n.length),s=[],u=0;u<i;u++)s[u]="$"+u;if(o=Function("binder","return function ("+WSe(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o},qSe=HSe,_S=Function.prototype.bind||qSe,GSe=Function.prototype.call,KSe=Object.prototype.hasOwnProperty,QSe=_S,YSe=QSe.call(GSe,KSe),Ae,XSe=kSe,JSe=ISe,ZSe=ASe,e_e=jSe,Fs=oN,ms=ur,t_e=MSe,sN=Function,Xm=function(e){try{return sN('"use strict"; return ('+e+").constructor;")()}catch{}},Qa=Object.getOwnPropertyDescriptor;if(Qa)try{Qa({},"")}catch{Qa=null}var Jm=function(){throw new ms},r_e=Qa?function(){try{return arguments.callee,Jm}catch{try{return Qa(arguments,"callee").get}catch{return Jm}}}():Jm,Ci=iN(),n_e=LSe(),Rt=Object.getPrototypeOf||(n_e?function(e){return e.__proto__}:null),ki={},o_e=typeof Uint8Array>"u"||!Rt?Ae:Rt(Uint8Array),Ya={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ae:ArrayBuffer,"%ArrayIteratorPrototype%":Ci&&Rt?Rt([][Symbol.iterator]()):Ae,"%AsyncFromSyncIteratorPrototype%":Ae,"%AsyncFunction%":ki,"%AsyncGenerator%":ki,"%AsyncGeneratorFunction%":ki,"%AsyncIteratorPrototype%":ki,"%Atomics%":typeof Atomics>"u"?Ae:Atomics,"%BigInt%":typeof BigInt>"u"?Ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XSe,"%eval%":eval,"%EvalError%":JSe,"%Float32Array%":typeof Float32Array>"u"?Ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ae:FinalizationRegistry,"%Function%":sN,"%GeneratorFunction%":ki,"%Int8Array%":typeof Int8Array>"u"?Ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ci&&Rt?Rt(Rt([][Symbol.iterator]())):Ae,"%JSON%":typeof JSON=="object"?JSON:Ae,"%Map%":typeof Map>"u"?Ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ci||!Rt?Ae:Rt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ae:Promise,"%Proxy%":typeof Proxy>"u"?Ae:Proxy,"%RangeError%":ZSe,"%ReferenceError%":e_e,"%Reflect%":typeof Reflect>"u"?Ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ci||!Rt?Ae:Rt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ci&&Rt?Rt(""[Symbol.iterator]()):Ae,"%Symbol%":Ci?Symbol:Ae,"%SyntaxError%":Fs,"%ThrowTypeError%":r_e,"%TypedArray%":o_e,"%TypeError%":ms,"%Uint8Array%":typeof Uint8Array>"u"?Ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ae:Uint32Array,"%URIError%":t_e,"%WeakMap%":typeof WeakMap>"u"?Ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ae:WeakSet};if(Rt)try{null.error}catch(e){var a_e=Rt(Rt(e));Ya["%Error.prototype%"]=a_e}var i_e=function e(t){var r;if(t==="%AsyncFunction%")r=Xm("async function () {}");else if(t==="%GeneratorFunction%")r=Xm("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Xm("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Rt&&(r=Rt(o.prototype))}return Ya[t]=r,r},iP={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},jc=_S,Up=YSe,s_e=jc.call(Function.call,Array.prototype.concat),l_e=jc.call(Function.apply,Array.prototype.splice),sP=jc.call(Function.call,String.prototype.replace),Vp=jc.call(Function.call,String.prototype.slice),u_e=jc.call(Function.call,RegExp.prototype.exec),c_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f_e=/\\(\\)?/g,d_e=function(t){var r=Vp(t,0,1),n=Vp(t,-1);if(r==="%"&&n!=="%")throw new Fs("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Fs("invalid intrinsic syntax, expected opening `%`");var o=[];return sP(t,c_e,function(a,i,s,u){o[o.length]=s?sP(u,f_e,"$1"):i||a}),o},p_e=function(t,r){var n=t,o;if(Up(iP,n)&&(o=iP[n],n="%"+o[0]+"%"),Up(Ya,n)){var a=Ya[n];if(a===ki&&(a=i_e(n)),typeof a>"u"&&!r)throw new ms("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Fs("intrinsic "+t+" does not exist!")},On=function(t,r){if(typeof t!="string"||t.length===0)throw new ms("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ms('"allowMissing" argument must be a boolean');if(u_e(/^%?[^%]*%?$/,t)===null)throw new Fs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=d_e(t),o=n.length>0?n[0]:"",a=p_e("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],l_e(n,s_e([0,1],l)));for(var c=1,d=!0;c<n.length;c+=1){var p=n[c],h=Vp(p,0,1),m=Vp(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Fs("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(u=!0),o+="."+p,i="%"+o+"%",Up(Ya,i))s=Ya[i];else if(s!=null){if(!(p in s)){if(!r)throw new ms("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qa&&c+1>=n.length){var y=Qa(s,p);d=!!y,d&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else d=Up(s,p),s=s[p];d&&!u&&(Ya[i]=s)}}return s},v_e=On,ad=v_e("%Object.defineProperty%",!0)||!1;if(ad)try{ad({},"a",{value:1})}catch{ad=!1}var CS=ad,h_e=On,id=h_e("%Object.getOwnPropertyDescriptor%",!0);if(id)try{id([],"length")}catch{id=null}var lN=id,lP=CS,m_e=oN,$i=ur,uP=lN,uN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new $i("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new $i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $i("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!uP&&uP(t,r);if(lP)lP(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:a===null&&u?u.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new m_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},s0=CS,cN=function(){return!!s0};cN.hasArrayLengthDefineBug=function(){if(!s0)return null;try{return s0([],"length",{value:1}).length!==1}catch{return!0}};var fN=cN,g_e=RSe,y_e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b_e=Object.prototype.toString,x_e=Array.prototype.concat,cP=uN,w_e=function(e){return typeof e=="function"&&b_e.call(e)==="[object Function]"},dN=fN(),S_e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!w_e(n)||!n())return}dN?cP(e,t,r,!0):cP(e,t,r)},pN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=g_e(t);y_e&&(n=x_e.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)S_e(e,n[o],t[n[o]],r[n[o]])};pN.supportsDescriptors=!!dN;var il=pN,vN={exports:{}},__e=On,fP=uN,C_e=fN(),dP=lN,pP=ur,$_e=__e("%Math.floor%"),O_e=function(t,r){if(typeof t!="function")throw new pP("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||$_e(r)!==r)throw new pP("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&dP){var i=dP(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(C_e?fP(t,"length",r,!0,!0):fP(t,"length",r)),t};(function(e){var t=_S,r=On,n=O_e,o=ur,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),u=CS,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,a,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(vN);var Dh=vN.exports,hN=On,mN=Dh,E_e=mN(hN("String.prototype.indexOf")),To=function(t,r){var n=hN(t,!!r);return typeof n=="function"&&E_e(t,".prototype.")>-1?mN(n):n},P_e=ur,T_e=function(t,r){if(t==null)throw new P_e(r||"Cannot call method on "+t);return t},Mc=T_e,R_e=On,gN=R_e("%Array%"),k_e=!gN.isArray&&To("Object.prototype.toString"),I_e=gN.isArray||function(t){return k_e(t)==="[object Array]"},A_e=I_e,j_e=On,M_e=To,F_e=ur,N_e=A_e,L_e=j_e("%Reflect.apply%",!0)||M_e("Function.prototype.apply"),D_e=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!N_e(n))throw new F_e("Assertion failed: optional `argumentsList`, if provided, must be a List");return L_e(t,r,n)};const B_e={},z_e=Object.freeze(Object.defineProperty({__proto__:null,default:B_e},Symbol.toStringTag,{value:"Module"})),U_e=Gn(z_e);var $S=typeof Map=="function"&&Map.prototype,Zm=Object.getOwnPropertyDescriptor&&$S?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wp=$S&&Zm&&typeof Zm.get=="function"?Zm.get:null,vP=$S&&Map.prototype.forEach,OS=typeof Set=="function"&&Set.prototype,eg=Object.getOwnPropertyDescriptor&&OS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hp=OS&&eg&&typeof eg.get=="function"?eg.get:null,hP=OS&&Set.prototype.forEach,V_e=typeof WeakMap=="function"&&WeakMap.prototype,pu=V_e?WeakMap.prototype.has:null,W_e=typeof WeakSet=="function"&&WeakSet.prototype,vu=W_e?WeakSet.prototype.has:null,H_e=typeof WeakRef=="function"&&WeakRef.prototype,mP=H_e?WeakRef.prototype.deref:null,q_e=Boolean.prototype.valueOf,G_e=Object.prototype.toString,K_e=Function.prototype.toString,Q_e=String.prototype.match,ES=String.prototype.slice,Ko=String.prototype.replace,Y_e=String.prototype.toUpperCase,gP=String.prototype.toLowerCase,yN=RegExp.prototype.test,yP=Array.prototype.concat,An=Array.prototype.join,X_e=Array.prototype.slice,bP=Math.floor,l0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,tg=Object.getOwnPropertySymbols,u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ns||"symbol")?Symbol.toStringTag:null,bN=Object.prototype.propertyIsEnumerable,xP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function wP(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||yN.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-bP(-e):bP(e);if(n!==e){var o=String(n),a=ES.call(t,o.length+1);return Ko.call(o,r,"$&_")+"."+Ko.call(Ko.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ko.call(t,r,"$&_")}var c0=U_e,SP=c0.custom,_P=wN(SP)?SP:null,J_e=function e(t,r,n,o){var a=r||{};if(Lo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Lo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Lo(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Lo(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Lo(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return _N(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?wP(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?wP(t,l):l}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return f0(t)?"[Array]":"[Object]";var d=mCe(a,n);if(typeof o>"u")o=[];else if(SN(o,t)>=0)return"[Circular]";function p(L,M,F){if(M&&(o=X_e.call(o),o.push(M)),F){var j={depth:a.depth};return Lo(a,"quoteStyle")&&(j.quoteStyle=a.quoteStyle),e(L,j,n+1,o)}return e(L,a,n+1,o)}if(typeof t=="function"&&!CP(t)){var h=sCe(t),m=bf(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+An.call(m,", ")+" }":"")}if(wN(t)){var y=Ns?Ko.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):u0.call(t);return typeof t=="object"&&!Ns?Tl(y):y}if(pCe(t)){for(var x="<"+gP.call(String(t.nodeName)),b=t.attributes||[],v=0;v<b.length;v++)x+=" "+b[v].name+"="+xN(Z_e(b[v].value),"double",a);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+gP.call(String(t.nodeName))+">",x}if(f0(t)){if(t.length===0)return"[]";var g=bf(t,p);return d&&!hCe(g)?"["+d0(g,d)+"]":"[ "+An.call(g,", ")+" ]"}if(tCe(t)){var S=bf(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!bN.call(t,"cause")?"{ ["+String(t)+"] "+An.call(yP.call("[cause]: "+p(t.cause),S),", ")+" }":S.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+An.call(S,", ")+" }"}if(typeof t=="object"&&i){if(_P&&typeof t[_P]=="function"&&c0)return c0(t,{depth:c-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(lCe(t)){var w=[];return vP&&vP.call(t,function(L,M){w.push(p(M,t,!0)+" => "+p(L,t))}),$P("Map",Wp.call(t),w,d)}if(fCe(t)){var _=[];return hP&&hP.call(t,function(L){_.push(p(L,t))}),$P("Set",Hp.call(t),_,d)}if(uCe(t))return rg("WeakMap");if(dCe(t))return rg("WeakSet");if(cCe(t))return rg("WeakRef");if(nCe(t))return Tl(p(Number(t)));if(aCe(t))return Tl(p(l0.call(t)));if(oCe(t))return Tl(q_e.call(t));if(rCe(t))return Tl(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===yn)return"{ [object globalThis] }";if(!eCe(t)&&!CP(t)){var $=bf(t,p),P=xP?xP(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",R=!P&&tr&&Object(t)===t&&tr in t?ES.call(Sa(t),8,-1):T?"Object":"",I=P||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",A=I+(R||T?"["+An.call(yP.call([],R||[],T||[]),": ")+"] ":"");return $.length===0?A+"{}":d?A+"{"+d0($,d)+"}":A+"{ "+An.call($,", ")+" }"}return String(t)};function xN(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Z_e(e){return Ko.call(String(e),/"/g,""")}function f0(e){return Sa(e)==="[object Array]"&&(!tr||!(typeof e=="object"&&tr in e))}function eCe(e){return Sa(e)==="[object Date]"&&(!tr||!(typeof e=="object"&&tr in e))}function CP(e){return Sa(e)==="[object RegExp]"&&(!tr||!(typeof e=="object"&&tr in e))}function tCe(e){return Sa(e)==="[object Error]"&&(!tr||!(typeof e=="object"&&tr in e))}function rCe(e){return Sa(e)==="[object String]"&&(!tr||!(typeof e=="object"&&tr in e))}function nCe(e){return Sa(e)==="[object Number]"&&(!tr||!(typeof e=="object"&&tr in e))}function oCe(e){return Sa(e)==="[object Boolean]"&&(!tr||!(typeof e=="object"&&tr in e))}function wN(e){if(Ns)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!u0)return!1;try{return u0.call(e),!0}catch{}return!1}function aCe(e){if(!e||typeof e!="object"||!l0)return!1;try{return l0.call(e),!0}catch{}return!1}var iCe=Object.prototype.hasOwnProperty||function(e){return e in this};function Lo(e,t){return iCe.call(e,t)}function Sa(e){return G_e.call(e)}function sCe(e){if(e.name)return e.name;var t=Q_e.call(K_e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function SN(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function lCe(e){if(!Wp||!e||typeof e!="object")return!1;try{Wp.call(e);try{Hp.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function uCe(e){if(!pu||!e||typeof e!="object")return!1;try{pu.call(e,pu);try{vu.call(e,vu)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function cCe(e){if(!mP||!e||typeof e!="object")return!1;try{return mP.call(e),!0}catch{}return!1}function fCe(e){if(!Hp||!e||typeof e!="object")return!1;try{Hp.call(e);try{Wp.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function dCe(e){if(!vu||!e||typeof e!="object")return!1;try{vu.call(e,vu);try{pu.call(e,pu)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function pCe(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function _N(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return _N(ES.call(e,0,t.maxStringLength),t)+n}var o=Ko.call(Ko.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,vCe);return xN(o,"single",t)}function vCe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Y_e.call(t.toString(16))}function Tl(e){return"Object("+e+")"}function rg(e){return e+" { ? }"}function $P(e,t,r,n){var o=n?d0(r,n):An.call(r,", ");return e+" ("+t+") {"+o+"}"}function hCe(e){for(var t=0;t<e.length;t++)if(SN(e[t],`
|
262
|
+
`)>=0)return!1;return!0}function mCe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=An.call(Array(e.indent+1)," ");else return null;return{base:r,prev:An.call(Array(t+1),r)}}function d0(e,t){if(e.length===0)return"";var r=`
|
263
|
+
`+t.prev+t.base;return r+An.call(e,","+r)+`
|
264
|
+
`+t.prev}function bf(e,t){var r=f0(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Lo(e,o)?t(e[o],e):""}var a=typeof tg=="function"?tg(e):[],i;if(Ns){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in e)Lo(e,u)&&(r&&String(Number(u))===u&&u<e.length||Ns&&i["$"+u]instanceof Symbol||(yN.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof tg=="function")for(var l=0;l<a.length;l++)bN.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var CN=function(t){return typeof t=="string"||typeof t=="symbol"},gCe=function(t){if(t===null)return"Null";if(typeof t>"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},yCe=gCe,PS=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":yCe(t)},OP=ur,bCe=J_e,xCe=CN,wCe=PS,$N=function(t,r){if(wCe(t)!=="Object")throw new OP("Assertion failed: Type(O) is not Object");if(!xCe(r))throw new OP("Assertion failed: IsPropertyKey(P) is not true, got "+bCe(r));return t[r]},EP=ur,SCe=CN,_Ce=PS,CCe=function(t,r){if(_Ce(t)!=="Object")throw new EP("Assertion failed: `O` must be an Object");if(!SCe(r))throw new EP("Assertion failed: `P` must be a Property Key");return r in t},ON=Function.prototype.toString,Xi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,p0,sd;if(typeof Xi=="function"&&typeof Object.defineProperty=="function")try{p0=Object.defineProperty({},"length",{get:function(){throw sd}}),sd={},Xi(function(){throw 42},null,p0)}catch(e){e!==sd&&(Xi=null)}else Xi=null;var $Ce=/^\s*class\b/,v0=function(t){try{var r=ON.call(t);return $Ce.test(r)}catch{return!1}},ng=function(t){try{return v0(t)?!1:(ON.call(t),!0)}catch{return!1}},ld=Object.prototype.toString,OCe="[object Object]",ECe="[object Function]",PCe="[object GeneratorFunction]",TCe="[object HTMLAllCollection]",RCe="[object HTML document.all class]",kCe="[object HTMLCollection]",ICe=typeof Symbol=="function"&&!!Symbol.toStringTag,ACe=!(0 in[,]),h0=function(){return!1};if(typeof document=="object"){var jCe=document.all;ld.call(jCe)===ld.call(document.all)&&(h0=function(t){if((ACe||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=ld.call(t);return(r===TCe||r===RCe||r===kCe||r===OCe)&&t("")==null}catch{}return!1})}var EN=Xi?function(t){if(h0(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Xi(t,null,p0)}catch(r){if(r!==sd)return!1}return!v0(t)&&ng(t)}:function(t){if(h0(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(ICe)return ng(t);if(v0(t))return!1;var r=ld.call(t);return r!==ECe&&r!==PCe&&!/^\[object HTML/.test(r)?!1:ng(t)},MCe=EN,FCe=Number.MAX_SAFE_INTEGER||9007199254740991,og,PP;function NCe(){return PP||(PP=1,og=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),og}var ag,TP;function LCe(){return TP||(TP=1,ag=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),ag}var DCe=aN,TS=function(){return DCe()&&!!Symbol.toStringTag},ig,RP;function BCe(){if(RP)return ig;RP=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=TS();return ig=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},ig}var xf={exports:{}},kP;function zCe(){if(kP)return xf.exports;kP=1;var e=Object.prototype.toString,t=iN();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};xf.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return o(i)}catch{return!1}}}else xf.exports=function(i){return!1};return xf.exports}var sg,IP;function UCe(){if(IP)return sg;IP=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=LCe(),r=EN,n=BCe(),o=zCe(),a=function(u,l){if(typeof u>"u"||u===null)throw new TypeError("Cannot call method on "+u);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var c=l==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,h;for(h=0;h<c.length;++h)if(d=u[c[h]],r(d)&&(p=d.call(u),t(p)))return p;throw new TypeError("No default value")},i=function(u,l){var c=u[l];if(c!==null&&typeof c<"u"){if(!r(c))throw new TypeError(c+" returned for property "+l+" of object "+u+" is not a function");return c}};return sg=function(u){if(t(u))return u;var l="default";arguments.length>1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var c;if(e&&(Symbol.toPrimitive?c=i(u,Symbol.toPrimitive):o(u)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(u,l);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(u)||o(u))&&(l="string"),a(u,l==="default"?"number":l)},sg}var lg,AP;function VCe(){if(AP)return lg;AP=1;var e=UCe();return lg=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},lg}var ug,jP;function WCe(){if(jP)return ug;jP=1;var e=To,t=TS(),r,n,o,a;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var i=function(){throw o};a={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,l="[object RegExp]";return ug=t?function(d){if(!d||typeof d!="object")return!1;var p=u(d,"lastIndex"),h=p&&r(p,"value");if(!h)return!1;try{n(d,a)}catch(m){return m===o}}:function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:s(d)===l},ug}var cg,MP;function HCe(){if(MP)return cg;MP=1;var e=To,t=WCe(),r=e("RegExp.prototype.exec"),n=ur;return cg=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},cg}var qCe=On,GCe=qCe("%String%"),KCe=ur,PN=function(t){if(typeof t=="symbol")throw new KCe("Cannot convert a Symbol value to a string");return GCe(t)},QCe=Mc,YCe=PN,XCe=To,FP=XCe("String.prototype.replace"),TN=/^\s$/.test(""),JCe=TN?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,ZCe=TN?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,RN=function(){var t=YCe(QCe(this));return FP(FP(t,JCe,""),ZCe,"")},e$e=RN,NP="",Oi="",kN=function(){return String.prototype.trim&&NP.trim()===NP&&Oi.trim()===Oi&&("_"+Oi).trim()==="_"+Oi&&(Oi+"_").trim()===Oi+"_"?String.prototype.trim:e$e},t$e=il,r$e=kN,n$e=function(){var t=r$e();return t$e(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},o$e=Dh,a$e=il,i$e=Mc,s$e=RN,IN=kN,l$e=n$e,u$e=o$e(IN()),AN=function(t){return i$e(t),u$e(t)};a$e(AN,{getPolyfill:IN,implementation:s$e,shim:l$e});var jN=AN,fg,LP;function c$e(){if(LP)return fg;LP=1;var e=On,t=e("%Number%"),r=e("%RegExp%"),n=ur,o=e("%parseInt%"),a=To,i=HCe(),s=a("String.prototype.slice"),u=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),c=i(/^[-+]0x[0-9a-f]+$/i),d=["
","",""].join(""),p=new r("["+d+"]","g"),h=i(p),m=jN;return fg=function y(x){if(typeof x!="string")throw new n("Assertion failed: `argument` is not a String");if(u(x))return t(o(s(x,2),2));if(l(x))return t(o(s(x,2),8));if(h(x)||c(x))return NaN;var b=m(x);return b!==x?y(b):t(x)},fg}var f$e=On,DP=ur,BP=f$e("%Number%"),d$e=NCe(),p$e=VCe(),v$e=c$e(),h$e=function(t){var r=d$e(t)?t:p$e(t,BP);if(typeof r=="symbol")throw new DP("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new DP("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?v$e(r):BP(r)},m$e=Math.floor,g$e=function(t){return typeof t=="bigint"?t:m$e(t)},zP=g$e,y$e=ur,b$e=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new y$e("argument must be a Number or a BigInt");var r=t<0?-zP(-t):zP(t);return r===0?0:r},MN=Number.isNaN||function(t){return t!==t},x$e=MN,w$e=function(e){return(typeof e=="number"||typeof e=="bigint")&&!x$e(e)&&e!==1/0&&e!==-1/0},S$e=h$e,_$e=b$e,C$e=MN,$$e=w$e,O$e=function(t){var r=S$e(t);return C$e(r)||r===0?0:$$e(r)?_$e(r):r},UP=FCe,E$e=O$e,P$e=function(t){var r=E$e(t);return r<=0?0:r>UP?UP:r},T$e=ur,R$e=$N,k$e=P$e,I$e=PS,A$e=function(t){if(I$e(t)!=="Object")throw new T$e("Assertion failed: `obj` must be an Object");return k$e(R$e(t,"length"))},j$e=On,M$e=j$e("%Object%"),F$e=Mc,N$e=function(t){return F$e(t),M$e(t)},L$e=String.prototype.valueOf,D$e=function(t){try{return L$e.call(t),!0}catch{return!1}},B$e=Object.prototype.toString,z$e="[object String]",U$e=TS(),V$e=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:U$e?D$e(t):B$e.call(t)===z$e},W$e=To,H$e=ur,q$e=D_e,G$e=$N,K$e=CCe,Q$e=MCe,Y$e=A$e,X$e=N$e,J$e=PN,Z$e=V$e,eOe=W$e("String.prototype.split"),VP=Object("a"),tOe=VP[0]!=="a"||!(0 in VP),FN=function(t){var r=X$e(this),n=tOe&&Z$e(this)?eOe(this,""):r,o=Y$e(n);if(!Q$e(t))throw new H$e("Array.prototype.forEach callback must be a function");var a;arguments.length>1&&(a=arguments[1]);for(var i=0;i<o;){var s=J$e(i),u=K$e(n,s);if(u){var l=G$e(n,s);q$e(t,a,[l,i,n])}i+=1}},rOe=function(t){var r=!0,n=!0,o=!1;if(typeof t=="function"){try{t.call("f",function(a,i,s){typeof s!="object"&&(r=!1)}),t.call([null],function(){"use strict";n=typeof this=="string"},"x")}catch{o=!0}return!o&&r&&n}return!1},nOe=rOe,oOe=FN,NN=function(){var t=Array.prototype.forEach;return nOe(t)?t:oOe},dg,WP;function aOe(){if(WP)return dg;WP=1;var e=il,t=NN;return dg=function(){var n=t();return e(Array.prototype,{forEach:n},{forEach:function(){return Array.prototype.forEach!==n}}),n},dg}var iOe=il,sOe=Dh,lOe=To,uOe=Mc,cOe=FN,LN=NN,fOe=LN(),dOe=aOe(),pOe=lOe("Array.prototype.slice"),vOe=sOe.apply(fOe),DN=function(t,r){return uOe(t),vOe(t,pOe(arguments,1))};iOe(DN,{getPolyfill:LN,implementation:cOe,shim:dOe});var hOe=DN,mOe=Mc,BN=To,gOe=BN("Object.prototype.propertyIsEnumerable"),yOe=BN("Array.prototype.push"),zN=function(t){var r=mOe(t),n=[];for(var o in r)gOe(r,o)&&yOe(n,[o,r[o]]);return n},bOe=zN,UN=function(){return typeof Object.entries=="function"?Object.entries:bOe},xOe=UN,wOe=il,SOe=function(){var t=xOe();return wOe(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},_Oe=il,COe=Dh,$Oe=zN,VN=UN,OOe=SOe,WN=COe(VN(),Object);_Oe(WN,{getPolyfill:VN,implementation:$Oe,shim:OOe});var EOe=WN,HP={}.hasOwnProperty,pg=Function.prototype.call,POe=pg.bind?pg.bind(HP):function(e,t){return pg.call(HP,e,t)},qp=hOe,RS=EOe,HN=POe,TOe=jN,ROe=function(t){},qN=String.prototype.replace,GN=String.prototype.split,ud="||||",vg=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},KN={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:vg,chinese:function(){return 0},croatian:vg,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:vg,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function kOe(e){var t={};return qp(RS(e),function(r){var n=r[0],o=r[1];qp(o,function(a){t[a]=n})}),t}function IOe(e,t){var r=kOe(e.pluralTypeToLanguages);return r[t]||r[GN.call(t,/-/,1)[0]]||r.en}function AOe(e,t,r){return e.pluralTypes[t](r)}function jOe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=IOe(t,r),n&&(e[r]=n)),n}}function qP(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function MOe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===ud||r===ud)throw new RangeError('"'+ud+'" token is reserved for pluralization');return new RegExp(qP(t)+"(.*?)"+qP(r),"g")}var FOe=jOe(),NOe=/%\{(.*?)\}/g;function kS(e,t,r,n,o,a){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||NOe,u=a||qN,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var c=o||KN,d=GN.call(e,ud),p=r||"en",h=FOe(c,p),m=AOe(c,h,l.smart_count);i=TOe(d[m]||d[0])}return i=u.call(i,s,function(y,x){return!HN(l,x)||l[x]==null?y:l[x]}),i}function Ro(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?kS:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||ROe,this.replaceImplementation=t.replace||qN,this.tokenRegex=MOe(t.interpolation),this.pluralRules=t.pluralRules||KN}Ro.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};Ro.prototype.extend=function(e,t){qp(RS(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.extend(o,a):this.phrases[a]=o},this)};Ro.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:qp(RS(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.unset(o,a):delete this.phrases[a]},this)};Ro.prototype.clear=function(){this.phrases={}};Ro.prototype.replace=function(e){this.clear(),this.extend(e)};Ro.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=kS(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};Ro.prototype.has=function(e){return HN(this.phrases,e)};Ro.transformPhrase=function(t,r,n){return kS(t,r,n)};var LOe=Ro;const GP=Ye(LOe);var Ji=globalThis&&globalThis.__assign||function(){return Ji=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ji.apply(this,arguments)};const DOe=function(e,t,r,n){t===void 0&&(t="en"),r===void 0&&(r=[{locale:"en",name:"English"}]),n===void 0&&(n={});var o=t,a=e(t);if(a instanceof Promise)throw new Error("The i18nProvider returned a Promise for the messages of the default locale (".concat(t,"). Please update your i18nProvider to return the messages of the default locale in a synchronous way."));var i,s;Array.isArray(r)?(i=r,s=n):(i=[{locale:"en",name:"English"}],s=r);var u=new GP(Ji({locale:o,phrases:Ji({"":""},a)},s)),l=u.t.bind(u);return{translate:function(c,d){return d===void 0&&(d={}),l(c,d)},changeLocale:function(c){return Promise.resolve(e(c)).then(function(d){o=c;var p=new GP(Ji({locale:c,phrases:Ji({"":""},d)},n));l=p.t.bind(p)})},getLocale:function(){return o},getLocales:function(){return i}}};var BOe=DOe(function(){return OSe},"en",[{name:"en",value:"English"}],{allowMissing:!0}),zOe=j9(),UOe=function(e){var t=e.authProvider,r=e.basename,n=e.catchAll,o=e.children,a=e.dashboard,i=e.dataProvider,s=e.disableTelemetry,u=e.history,l=e.i18nProvider,c=l===void 0?BOe:l,d=e.layout,p=e.loading,h=e.loginPage,m=e.authCallbackPage,y=e.menu,x=e.notification,b=e.queryClient,v=e.requireAuth,g=e.store,S=g===void 0?zOe:g,w=e.ready,_=e.theme,$=e.lightTheme,P=e.darkTheme,T=e.defaultTheme,R=e.title,I=R===void 0?"React Admin":R;return f.createElement(rN,{authProvider:t,basename:r,dataProvider:i,i18nProvider:c,store:S,history:u,queryClient:b,theme:_,lightTheme:$,darkTheme:P,defaultTheme:T},f.createElement(CSe,{layout:d,dashboard:a,disableTelemetry:s,menu:y,catchAll:n,title:I,loading:p,loginPage:h,authCallbackPage:m,notification:x,requireAuth:v,ready:w},o))};function VOe(){return E.jsx(mS,{})}var QN={exports:{}};(function(e){(function(t){var r=function(v,g,S){if(!l(g)||d(g)||h(g)||m(g)||u(g)||p(g))return g;var w,_=0,$=0;if(c(g))for(w=[],$=g.length;_<$;_++)w.push(r(v,g[_],S));else{w={};for(var P in g)Object.prototype.hasOwnProperty.call(g,P)&&(w[v(P,S)]=r(v,g[P],S))}return w},n=function(v,g){g=g||{};var S=g.separator||"_",w=g.split||/(?=[A-Z])/;return v.split(w).join(S)},o=function(v){return y(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(g,S){return S?S.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},a=function(v){var g=o(v);return g.substr(0,1).toUpperCase()+g.substr(1)},i=function(v,g){return n(v,g).toLowerCase()},s=Object.prototype.toString,u=function(v){return typeof v=="function"},l=function(v){return v===Object(v)},c=function(v){return s.call(v)=="[object Array]"},d=function(v){return s.call(v)=="[object Date]"},p=function(v){return v instanceof Blob},h=function(v){return s.call(v)=="[object RegExp]"},m=function(v){return s.call(v)=="[object Boolean]"},y=function(v){return v=v-0,v===v},x=function(v,g){var S=g&&"process"in g?g.process:g;return typeof S!="function"?v:function(w,_){return S(w,v,_)}},b={camelize:o,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(v,g){return r(x(o,g),v)},decamelizeKeys:function(v,g){return r(x(i,g),v,g)},pascalizeKeys:function(v,g){return r(x(a,g),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b})(yn)})(QN);var WOe=QN.exports;const m0=Ye(WOe),cd=window.whdbDynamicEnv||{BASE_URL:"/admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let Ll=cd.VITE_API_ROOT;Ll==="/"?Ll="":Ll||(Ll="http://localhost:18001");const Qu={apiHost:Ll,environment:cd.NODE_ENV||"development",releaseCommit:cd.VITE_RELEASE_COMMIT||"000000",backendEnv:cd.VITE_BACKEND_ENV||"development"};function Gp(e,t,r){if(t!==null){const n=m0.decamelizeKeys(t);r.body=JSON.stringify(n)}return g0(e,r).then(({json:n})=>m0.camelizeKeys(n))}function g0(e,t){const r=`${Qu.apiHost}${e}`,n={credentials:"include",...t};return eX(r,n)}const hg=()=>Promise.resolve();function HOe(){return{login:({username:e,password:t})=>Gp("/admin_api/v1/auth/login",{email:e,password:t},{method:"POST"}).then(hg),logout:()=>g0("/v1/auth/logout",{method:"POST"}).then(hg),checkAuth:()=>g0("/admin_api/v1/auth",{method:"GET"}).then(hg),checkError:e=>e.status===401?Promise.reject():Promise.resolve(),getIdentity:()=>Gp("/admin_api/v1/auth",null,{method:"GET"}),getPermissions:()=>Promise.resolve("")}}function qOe(){const e=n=>(a,i)=>{const s=`/admin_api/v1/data_provider/${n}`,u={resource:a,...i};return u.sort&&(u.sort.field=m0.decamelize(u.sort.field)),Gp(s,u,{method:"POST"})},t={getList:e("get_list"),getOne:e("get_one"),getMany:e("get_many"),getManyReference:e("get_many_reference"),create:e("create"),update:e("update"),updateMany:e("update_many"),delete:e("delete"),deleteMany:e("delete_many"),enqueueCurIngest:({curSettingsId:n})=>Gp("/admin_api/v1/actions/enqueue_cur_ingest",{curSettingsId:n},{method:"POST"})};return nX(t,[GOe])}const GOe={resource:"contract_uploaded_files",beforeCreate:async e=>{const t={...e.data};return t.uploadedFile&&(t.uploadedFile.dataUrl=await KOe(t.uploadedFile.rawFile),t.uploadedFile.type=t.uploadedFile.rawFile.type,t.uploadedFile.size=t.uploadedFile.rawFile.size,t.uploadedFile.name=t.uploadedFile.rawFile.name,delete t.uploadedFile.rawFile),{...e,data:t}}},KOe=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)});var IS={},QOe=we;Object.defineProperty(IS,"__esModule",{value:!0});var YN=IS.default=void 0,YOe=QOe(Ce()),XOe=E;YN=IS.default=(0,YOe.default)((0,XOe.jsx)("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86m-4 1.8-1 .6-1-.6V3h2z"}),"MilitaryTech");const y0=G.forwardRef(function(t,r){const{href:n,...o}=t;return E.jsx(ai,{ref:r,to:n,...o})});function JOe(){const e=$r(),t=Qu.backendEnv==="production"?e.palette.error.main:e.palette.warning.main,r=e.palette.background.default;return E.jsxs(Nw,{userMenu:E.jsxs(Rh,{children:[E.jsx(ZOe,{}),E.jsx(kw,{})]}),children:[E.jsx(PM,{}),E.jsx(Te,{style:{backgroundColor:t,color:r,textTransform:"capitalize",fontSize:"90%"},sx:{padding:1,marginRight:1,borderRadius:.5},children:Qu.backendEnv})]})}const ZOe=G.forwardRef(function(t,r){const{onClose:n}=xye();return E.jsxs(Nn,{component:y0,onClick:n,ref:r,href:"/status",...t,children:[E.jsx(yw,{children:E.jsx(YN,{fontSize:"small"})}),E.jsx(bw,{children:"Status"})]})});function eEe({children:e,...t}){return E.jsxs(WM,{...t,appBar:JOe,children:[e,E.jsx(rge,{interval:20*rEe,url:Qu.apiHost+"/statusz"})]})}const tEe=1e3,rEe=60*tEe;function qt({noSearch:e,filters:t,...r}){const n=[e?null:E.jsx(bwe,{source:"q",alwaysOn:!0,autoFocus:!0},"search"),...t||[]].filter(Boolean);return E.jsx(tN,{sort:{field:"id",order:"DESC"},perPage:50,filters:n.length===0?null:n,...r})}function Gt(e){return E.jsx(VF,{...e})}function nt(e){return E.jsx(lS,{rowClick:"show",...e})}var nEe=fi,oEe=un,aEe=Qn,iEe="[object String]";function sEe(e){return typeof e=="string"||!oEe(e)&&aEe(e)&&nEe(e)==iEe}var lEe=sEe;const uEe=Ye(lEe);function cEe(e,t,r,n){var o=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}var fEe=cEe;function dEe(e){return function(t){return e==null?void 0:e[t]}}var pEe=dEe,vEe=pEe,hEe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mEe=vEe(hEe),gEe=mEe,yEe=gEe,bEe=Zv,xEe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wEe="\\u0300-\\u036f",SEe="\\ufe20-\\ufe2f",_Ee="\\u20d0-\\u20ff",CEe=wEe+SEe+_Ee,$Ee="["+CEe+"]",OEe=RegExp($Ee,"g");function EEe(e){return e=bEe(e),e&&e.replace(xEe,yEe).replace(OEe,"")}var PEe=EEe,TEe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function REe(e){return e.match(TEe)||[]}var kEe=REe,IEe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function AEe(e){return IEe.test(e)}var jEe=AEe,XN="\\ud800-\\udfff",MEe="\\u0300-\\u036f",FEe="\\ufe20-\\ufe2f",NEe="\\u20d0-\\u20ff",LEe=MEe+FEe+NEe,JN="\\u2700-\\u27bf",ZN="a-z\\xdf-\\xf6\\xf8-\\xff",DEe="\\xac\\xb1\\xd7\\xf7",BEe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zEe="\\u2000-\\u206f",UEe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e3="A-Z\\xc0-\\xd6\\xd8-\\xde",VEe="\\ufe0e\\ufe0f",t3=DEe+BEe+zEe+UEe,r3="['’]",KP="["+t3+"]",WEe="["+LEe+"]",n3="\\d+",HEe="["+JN+"]",o3="["+ZN+"]",a3="[^"+XN+t3+n3+JN+ZN+e3+"]",qEe="\\ud83c[\\udffb-\\udfff]",GEe="(?:"+WEe+"|"+qEe+")",KEe="[^"+XN+"]",i3="(?:\\ud83c[\\udde6-\\uddff]){2}",s3="[\\ud800-\\udbff][\\udc00-\\udfff]",Ii="["+e3+"]",QEe="\\u200d",QP="(?:"+o3+"|"+a3+")",YEe="(?:"+Ii+"|"+a3+")",YP="(?:"+r3+"(?:d|ll|m|re|s|t|ve))?",XP="(?:"+r3+"(?:D|LL|M|RE|S|T|VE))?",l3=GEe+"?",u3="["+VEe+"]?",XEe="(?:"+QEe+"(?:"+[KEe,i3,s3].join("|")+")"+u3+l3+")*",JEe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ZEe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ePe=u3+l3+XEe,tPe="(?:"+[HEe,i3,s3].join("|")+")"+ePe,rPe=RegExp([Ii+"?"+o3+"+"+YP+"(?="+[KP,Ii,"$"].join("|")+")",YEe+"+"+XP+"(?="+[KP,Ii+QP,"$"].join("|")+")",Ii+"?"+QP+"+"+YP,Ii+"+"+XP,ZEe,JEe,n3,tPe].join("|"),"g");function nPe(e){return e.match(rPe)||[]}var oPe=nPe,aPe=kEe,iPe=jEe,sPe=Zv,lPe=oPe;function uPe(e,t,r){return e=sPe(e),t=r?void 0:t,t===void 0?iPe(e)?lPe(e):aPe(e):e.match(t)||[]}var cPe=uPe,fPe=fEe,dPe=PEe,pPe=cPe,vPe="['’]",hPe=RegExp(vPe,"g");function mPe(e){return function(t){return fPe(pPe(dPe(t).replace(hPe,"")),e,"")}}var gPe=mPe,yPe=iI;function bPe(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:yPe(e,t,r)}var xPe=bPe,wPe="\\ud800-\\udfff",SPe="\\u0300-\\u036f",_Pe="\\ufe20-\\ufe2f",CPe="\\u20d0-\\u20ff",$Pe=SPe+_Pe+CPe,OPe="\\ufe0e\\ufe0f",EPe="\\u200d",PPe=RegExp("["+EPe+wPe+$Pe+OPe+"]");function TPe(e){return PPe.test(e)}var c3=TPe;function RPe(e){return e.split("")}var kPe=RPe,f3="\\ud800-\\udfff",IPe="\\u0300-\\u036f",APe="\\ufe20-\\ufe2f",jPe="\\u20d0-\\u20ff",MPe=IPe+APe+jPe,FPe="\\ufe0e\\ufe0f",NPe="["+f3+"]",b0="["+MPe+"]",x0="\\ud83c[\\udffb-\\udfff]",LPe="(?:"+b0+"|"+x0+")",d3="[^"+f3+"]",p3="(?:\\ud83c[\\udde6-\\uddff]){2}",v3="[\\ud800-\\udbff][\\udc00-\\udfff]",DPe="\\u200d",h3=LPe+"?",m3="["+FPe+"]?",BPe="(?:"+DPe+"(?:"+[d3,p3,v3].join("|")+")"+m3+h3+")*",zPe=m3+h3+BPe,UPe="(?:"+[d3+b0+"?",b0,p3,v3,NPe].join("|")+")",VPe=RegExp(x0+"(?="+x0+")|"+UPe+zPe,"g");function WPe(e){return e.match(VPe)||[]}var HPe=WPe,qPe=kPe,GPe=c3,KPe=HPe;function QPe(e){return GPe(e)?KPe(e):qPe(e)}var YPe=QPe,XPe=xPe,JPe=c3,ZPe=YPe,e2e=Zv;function t2e(e){return function(t){t=e2e(t);var r=JPe(t)?ZPe(t):void 0,n=r?r[0]:t.charAt(0),o=r?XPe(r,1).join(""):t.slice(1);return n[e]()+o}}var r2e=t2e,n2e=r2e,o2e=n2e("toUpperCase"),a2e=o2e,i2e=gPe,s2e=a2e,l2e=i2e(function(e,t,r){return e+(r?" ":"")+s2e(t)}),u2e=l2e;const c2e=Ye(u2e);function w0({source:e,sx:t,render:r,json:n,...o}){let a;return r?a=r:n?a=i=>JSON.stringify(We(i,e),null,2):a=i=>We(i,e),E.jsx(Nh,{source:e,render:a,component:"code",sx:{whiteSpace:"pre-wrap",fontFamily:"monospace",...t},...o})}w0.defaultProps={label:""};function f2e({source:e,render:t,getKey:r,...n}){const o=Mt();if(!t)t=a=>a;else if(typeof t=="string"){const a=t;t=i=>i[a]}return r||(r=(a,i)=>`${i}${a}`),E.jsx("ul",{...n,children:We(o,e).map((a,i)=>{const s=r(a,i),u=t(a,i);return E.jsx("li",{children:u},s)})})}function Ee(...e){return e.map((t,r)=>{if(G.isValidElement(t))return t;if(uEe(t))return t==="id"?E.jsx(yf,{source:"id"},r):t==="opaqueId"?E.jsx(yf,{source:"opaqueId",label:"Opaque ID"},r):t.endsWith("At")?E.jsx(Gm,{showTime:!0,source:t,sortable:!1},t):t==="createdBy"?E.jsx(e0,{label:"Created by",source:"createdBy.id",reference:"customers",link:"show",sortable:!1},t):(console.error("unhandled field list shorthand:",t),null);const[n,o,a]=t,i={key:r,source:o,...a};switch(i.label||(i.label=c2e(i.source)),typeof i.sortable>"u"&&(i.sortable=!1),n){case"id":return i.source=i.source||"id",E.jsx(yf,{...i});case"reference":return!o.includes(".")&&o!=="id"&&(i.source=o+".id"),E.jsx(e0,{link:"show",sortable:!1,...i});case"text":return E.jsx(yf,{...i});case"boolean":return E.jsx(Mwe,{...i});case"code":return E.jsx(w0,{...i});case"date":return E.jsx(Gm,{...i});case"datetime":return E.jsx(Gm,{showTime:!0,...i});case"email":return E.jsx(Bwe,{...i});case"json":return E.jsx(w0,{...i,render:s=>JSON.stringify(s[i.source],null," ")});case"number":return E.jsx(Hwe,{...i});case"array":return E.jsx(f2e,{...i});default:return console.error("unhandled field list:",t),null}})}const d2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],"startedAt","finishedAt")})}),p2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],"createdAt","updatedAt","startedAt","finishedAt",["text","opaqueId"],["boolean","incremental"],["reference","parentJob",{reference:"backfill_jobs"}],"createdBy")})}),v2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["email","email",{sortable:!0}],["text","name"])})}),h2e=()=>E.jsx(Gt,{children:E.jsxs(Ft,{children:[Ee("id","createdAt","updatedAt","softDeletedAt",["text","name"],["email","email"]),E.jsx(ia,{label:"Memberships",reference:"organization_memberships",target:"customer_id",children:E.jsx(nt,{children:Ee(["reference","id",{label:"Membership",reference:"organization_memberships"}],["reference","organization",{reference:"organizations"}],["reference","membershipRole",{label:"Role",reference:"roles"}],["boolean","verified"],["boolean","isDefault"],["text","invitationCode"])})}),E.jsx(ia,{label:"Roles",reference:"customer_roles",target:"customer_id",sortable:!1,sort:{field:"role_id",order:"ASC"},children:E.jsx(nt,{children:Ee(["reference","role.id",{label:"Role",reference:"roles"}])})})]})}),m2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","customer",{reference:"customers"}],["text","token"],["boolean","used"],"expireAt")})}),g2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","customer",{reference:"customers"}],"createdAt","updatedAt","expireAt",["text","token"],["boolean","used"])})}),y2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],"startedAt","updatedAt","finishedAt")})}),b2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],"createdAt","updatedAt","startedAt","finishedAt",["reference","startedBy",{reference:"customers"}],["text","organizationSchema"],["number","lastMigratedServiceIntegrationId"],["reference","lastMigratedServiceIntegration",{reference:"service_integrations"}],["datetime","lastMigratedTimestamp"])})});function x2e(e){const t=[],r=e.length-1;return e.forEach((n,o)=>{t.push(n),o!==r&&t.push(E.jsx("br",{},o))}),t}const w2e=()=>E.jsx(qt,{noSearch:!0,children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],"insertedAt",["text","requestMethod"],["text","requestPath"])})}),S2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],["text","serviceIntegrationOpaqueId"],"insertedAt","truncatedAt",["text","requestMethod"],["text","requestPath"],E.jsx(Nh,{label:"Request headers",render:e=>x2e(e.requestHeaders.map(([t,r])=>`${t}: ${r}`))},"headers"),["code","requestBody"],["number","responseStatus"])})}),_2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","customer",{reference:"customers"}],["reference","membershipRole",{reference:"roles"}],["text","invitationCode"])})}),C2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","customer",{reference:"customers"}],["reference","membershipRole",{reference:"roles"}],["text","invitationCode"],["boolean","verified"],["boolean","isDefault",{label:"Default"}])})}),$2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","delivery",{reference:"message_deliveries"}],["text","mediatype"])})}),O2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","delivery",{reference:"message_deliveries"}],["text","mediatype"],E.jsx(Nh,{label:"Rendered Content",render:E2e},"rendered"),["code","content",{label:"Raw Content"}])})});function E2e(e){return e.mediatype!=="text/html"?"(same as raw)":E.jsx("span",{dangerouslySetInnerHTML:{__html:e.content}})}const P2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["datetime","sentAt",{sortable:!0}],["text","template"],["email","to"],["reference","recipient",{reference:"customers"}])})}),T2e=()=>E.jsx(Gt,{children:E.jsxs(Ft,{children:[Ee("id","createdAt","updatedAt","sentAt",["text","template"],["reference","recipient",{reference:"customers"}],["email","to"],["text","transportService"],["text","transportMessageId"]),E.jsx(ia,{label:"Bodies",reference:"message_bodies",target:"delivery_id",children:E.jsx(nt,{children:Ee(["reference","id",{label:"Body",reference:"message_bodies"}],["text","mediatype"])})})]})}),R2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["text","name"])})}),k2e=()=>E.jsx(Gt,{children:E.jsxs(Ft,{children:[Ee("id",["text","key",{sortable:!0}],["text","name",{sortable:!0}],"createdAt","updatedAt","softDeletedAt",["email","billingEmail"]),E.jsx(ia,{label:"Memberships",reference:"organization_memberships",target:"organization_id",children:E.jsx(nt,{children:Ee(["reference","id",{reference:"organization_memberships"}],["reference","customer",{reference:"customers"}],["reference","membershipRole",{reference:"roles"}],["boolean","verified"],["text","invitationCode"])})}),E.jsx(ia,{label:"Service Integrations",reference:"service_integrations",target:"organization_id",children:E.jsx(nt,{children:Ee(["reference","id",{reference:"service_integrations"}],"opaqueId",["text","serviceName"],["text","tableName"])})}),E.jsx(ia,{label:"Database Tables",reference:"replicated_databases",target:"organization_id",children:E.jsx(nt,{children:Ee(["text","tableName",{label:"Table"}],["text","sizePretty"],["number","size"])})})]})}),I2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["text","name",{sortable:!0}])})}),A2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["text","name"])})}),j2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],"createdBy",["text","opaqueId"],["text","description"])})}),M2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],"createdBy","createdAt","updatedAt",["text","opaqueId"],["text","description"],["boolean","public"],["code","sql"])})}),F2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],"createdBy",["text","name"])})}),N2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],"createdBy","createdAt","updatedAt",["text","name"],["code","sql"])})}),L2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],"opaqueId",["text","serviceName",{sortable:!1}],["text","tableName"])})}),D2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],"opaqueId",["text","serviceName"],["text","tableName"],"lastBackfilledAt",["reference","dependsOn",{reference:"service_integrations"}],["boolean","skipWebhookVerification"])})}),B2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],["text","stripeId",{sortable:!0}],["text","stripeCustomerId",{sortable:!0}])})}),z2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],"createdAt","updatedAt","softDeletedAt",["text","stripeId"],["text","stripeCustomerId"],["json","stripeJson"])})}),U2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],["text","opaqueId"],["datetime","lastSyncedAt",{sortable:!0}])})}),V2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],"createdAt","updatedAt","createdBy",["text","opaqueId"],["number","periodSeconds"],["text","schema"],["text","table"],"lastSyncedAt",["text","lastAppliedSchema"],["number","pageSize"])})}),W2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","webhookSubscription",{reference:"webhook_subscriptions"}],["array","attemptTimestamps"],["array","attemptHttpResponseStatuses"])})}),H2e=()=>E.jsx(Gt,{children:E.jsx(Ft,{children:Ee("id",["reference","webhookSubscription",{reference:"webhook_subscriptions"}],"createdAt",["array","attemptTimestamps"],["array","attemptHttpResponseStatuses"],["json","payload"])})}),q2e=()=>E.jsx(qt,{children:E.jsx(nt,{children:Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],["text","opaqueId"],["text","deliverToUrl"])})}),G2e=()=>E.jsx(Gt,{children:E.jsxs(Ft,{children:[Ee("id",["reference","organization",{reference:"organizations"}],["reference","serviceIntegration",{reference:"service_integrations"}],"createdBy","createdAt","updatedAt","deactivatedAt",["text","opaqueId"],["text","deliverToUrl"]),E.jsx(ia,{label:"Deliveries",reference:"webhook_subscription_deliveries",target:"webhook_subscription_id",children:E.jsx(nt,{children:Ee(["reference","id",{label:"Delivery",reference:"webhook_subscription_deliveries"}],["array","attemptTimestamps"],["array","attemptHttpResponseStatuses"])})})]})});var g3={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(yn,function(){var r=1e3,n=6e4,o=36e5,a="millisecond",i="second",s="minute",u="hour",l="day",c="week",d="month",p="quarter",h="year",m="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,v={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(M){var F=["th","st","nd","rd"],j=M%100;return"["+M+(F[(j-20)%10]||F[j]||F[0])+"]"}},g=function(M,F,j){var B=String(M);return!B||B.length>=F?M:""+Array(F+1-B.length).join(j)+M},S={s:g,z:function(M){var F=-M.utcOffset(),j=Math.abs(F),B=Math.floor(j/60),k=j%60;return(F<=0?"+":"-")+g(B,2,"0")+":"+g(k,2,"0")},m:function M(F,j){if(F.date()<j.date())return-M(j,F);var B=12*(j.year()-F.year())+(j.month()-F.month()),k=F.clone().add(B,d),N=j-k<0,z=F.clone().add(B+(N?-1:1),d);return+(-(B+(j-k)/(N?k-z:z-k))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:d,y:h,w:c,d:l,D:m,h:u,m:s,s:i,ms:a,Q:p}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},w="en",_={};_[w]=v;var $="$isDayjsObject",P=function(M){return M instanceof A||!(!M||!M[$])},T=function M(F,j,B){var k;if(!F)return w;if(typeof F=="string"){var N=F.toLowerCase();_[N]&&(k=N),j&&(_[N]=j,k=N);var z=F.split("-");if(!k&&z.length>1)return M(z[0])}else{var H=F.name;_[H]=F,k=H}return!B&&k&&(w=k),k||!B&&w},R=function(M,F){if(P(M))return M.clone();var j=typeof F=="object"?F:{};return j.date=M,j.args=arguments,new A(j)},I=S;I.l=T,I.i=P,I.w=function(M,F){return R(M,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var A=function(){function M(j){this.$L=T(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[$]=!0}var F=M.prototype;return F.parse=function(j){this.$d=function(B){var k=B.date,N=B.utc;if(k===null)return new Date(NaN);if(I.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var z=k.match(x);if(z){var H=z[2]-1||0,K=(z[7]||"0").substring(0,3);return N?new Date(Date.UTC(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,K)):new Date(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,K)}}return new Date(k)}(j),this.init()},F.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},F.$utils=function(){return I},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(j,B){var k=R(j);return this.startOf(B)<=k&&k<=this.endOf(B)},F.isAfter=function(j,B){return R(j)<this.startOf(B)},F.isBefore=function(j,B){return this.endOf(B)<R(j)},F.$g=function(j,B,k){return I.u(j)?this[B]:this.set(k,j)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(j,B){var k=this,N=!!I.u(B)||B,z=I.p(j),H=function(he,ue){var se=I.w(k.$u?Date.UTC(k.$y,ue,he):new Date(k.$y,ue,he),k);return N?se:se.endOf(l)},K=function(he,ue){return I.w(k.toDate()[he].apply(k.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ue)),k)},J=this.$W,te=this.$M,ae=this.$D,fe="set"+(this.$u?"UTC":"");switch(z){case h:return N?H(1,0):H(31,11);case d:return N?H(1,te):H(0,te+1);case c:var Se=this.$locale().weekStart||0,_e=(J<Se?J+7:J)-Se;return H(N?ae-_e:ae+(6-_e),te);case l:case m:return K(fe+"Hours",0);case u:return K(fe+"Minutes",1);case s:return K(fe+"Seconds",2);case i:return K(fe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(j){return this.startOf(j,!1)},F.$set=function(j,B){var k,N=I.p(j),z="set"+(this.$u?"UTC":""),H=(k={},k[l]=z+"Date",k[m]=z+"Date",k[d]=z+"Month",k[h]=z+"FullYear",k[u]=z+"Hours",k[s]=z+"Minutes",k[i]=z+"Seconds",k[a]=z+"Milliseconds",k)[N],K=N===l?this.$D+(B-this.$W):B;if(N===d||N===h){var J=this.clone().set(m,1);J.$d[H](K),J.init(),this.$d=J.set(m,Math.min(this.$D,J.daysInMonth())).$d}else H&&this.$d[H](K);return this.init(),this},F.set=function(j,B){return this.clone().$set(j,B)},F.get=function(j){return this[I.p(j)]()},F.add=function(j,B){var k,N=this;j=Number(j);var z=I.p(B),H=function(te){var ae=R(N);return I.w(ae.date(ae.date()+Math.round(te*j)),N)};if(z===d)return this.set(d,this.$M+j);if(z===h)return this.set(h,this.$y+j);if(z===l)return H(1);if(z===c)return H(7);var K=(k={},k[s]=n,k[u]=o,k[i]=r,k)[z]||1,J=this.$d.getTime()+j*K;return I.w(J,this)},F.subtract=function(j,B){return this.add(-1*j,B)},F.format=function(j){var B=this,k=this.$locale();if(!this.isValid())return k.invalidDate||y;var N=j||"YYYY-MM-DDTHH:mm:ssZ",z=I.z(this),H=this.$H,K=this.$m,J=this.$M,te=k.weekdays,ae=k.months,fe=k.meridiem,Se=function(ue,se,ye,ie){return ue&&(ue[se]||ue(B,N))||ye[se].slice(0,ie)},_e=function(ue){return I.s(H%12||12,ue,"0")},he=fe||function(ue,se,ye){var ie=ue<12?"AM":"PM";return ye?ie.toLowerCase():ie};return N.replace(b,function(ue,se){return se||function(ye){switch(ye){case"YY":return String(B.$y).slice(-2);case"YYYY":return I.s(B.$y,4,"0");case"M":return J+1;case"MM":return I.s(J+1,2,"0");case"MMM":return Se(k.monthsShort,J,ae,3);case"MMMM":return Se(ae,J);case"D":return B.$D;case"DD":return I.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Se(k.weekdaysMin,B.$W,te,2);case"ddd":return Se(k.weekdaysShort,B.$W,te,3);case"dddd":return te[B.$W];case"H":return String(H);case"HH":return I.s(H,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return he(H,K,!0);case"A":return he(H,K,!1);case"m":return String(K);case"mm":return I.s(K,2,"0");case"s":return String(B.$s);case"ss":return I.s(B.$s,2,"0");case"SSS":return I.s(B.$ms,3,"0");case"Z":return z}return null}(ue)||z.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(j,B,k){var N,z=this,H=I.p(B),K=R(j),J=(K.utcOffset()-this.utcOffset())*n,te=this-K,ae=function(){return I.m(z,K)};switch(H){case h:N=ae()/12;break;case d:N=ae();break;case p:N=ae()/3;break;case c:N=(te-J)/6048e5;break;case l:N=(te-J)/864e5;break;case u:N=te/o;break;case s:N=te/n;break;case i:N=te/r;break;default:N=te}return k?N:I.a(N)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return _[this.$L]},F.locale=function(j,B){if(!j)return this.$L;var k=this.clone(),N=T(j,B,!0);return N&&(k.$L=N),k},F.clone=function(){return I.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},M}(),L=A.prototype;return R.prototype=L,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",l],["$M",d],["$y",h],["$D",m]].forEach(function(M){L[M[1]]=function(F){return this.$g(F,M[0],M[1])}}),R.extend=function(M,F){return M.$i||(M(F,A,R),M.$i=!0),R},R.locale=T,R.isDayjs=P,R.unix=function(M){return R(1e3*M)},R.en=_[w],R.Ls=_,R.p={},R})})(g3);var K2e=g3.exports;const AS=Ye(K2e);var y3={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(yn,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,o,a){var i=o.prototype,s=i.format;a.en.formats=r,i.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,c=function(d,p){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,y){var x=y&&y.toUpperCase();return m||p[y]||r[y]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,v,g){return v||g.slice(1)})})}(u,l===void 0?{}:l);return s.call(this,c)}}})})(y3);var Q2e=y3.exports;const Y2e=Ye(Q2e);var b3={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(yn,function(){return function(r,n,o){r=r||{};var a=n.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(l,c,d,p){return a.fromToBase(l,c,d,p)}o.en.relativeTime=i,a.fromToBase=function(l,c,d,p,h){for(var m,y,x,b=d.$locale().relativeTime||i,v=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],g=v.length,S=0;S<g;S+=1){var w=v[S];w.d&&(m=p?o(l).diff(d,w.d,!0):d.diff(l,w.d,!0));var _=(r.rounding||Math.round)(Math.abs(m));if(x=m>0,_<=w.r||!w.r){_<=1&&S>0&&(w=v[S-1]);var $=b[w.l];h&&(_=h(""+_)),y=typeof $=="string"?$.replace("%d",_):$(_,c,w.l,x);break}}if(c)return y;var P=x?b.future:b.past;return typeof P=="function"?P(y):P.replace("%s",y)},a.to=function(l,c){return s(l,c,this,!0)},a.from=function(l,c){return s(l,c,this)};var u=function(l){return l.$u?o.utc():o()};a.toNow=function(l){return this.to(u(this),l)},a.fromNow=function(l){return this.from(u(this),l)}}})})(b3);var X2e=b3.exports;const J2e=Ye(X2e);AS.extend(Y2e);AS.extend(J2e);function Z2e(){const[e,t]=G.useState({}),[r,n]=G.useState({}),[o,a]=G.useState(),[i,s]=G.useState();G.useEffect(()=>{ZP("/statusz",t,a),ZP("/healthz",n,s)},[]);let u={...e};return e.released_at&&(u.released_ago=AS(e.released_at).fromNow()),E.jsxs(uw,{marginTop:3,children:[E.jsx(Te,{variant:"h5",children:"Health"}),E.jsx(JP,{o:r}),i&&E.jsx(Te,{gutterBottom:!0,children:"/healthz error, check console."}),E.jsx(Te,{variant:"h5",children:"Status"}),E.jsx(JP,{o:u}),o&&E.jsx(Te,{gutterBottom:!0,children:"/statusz error, check console."})]})}function JP({o:e}){const t=Object.entries(e);return t.sort(),E.jsx(Yj,{dense:!0,children:t.map(([r,n])=>E.jsx(_de,{children:E.jsx(bw,{primary:r,secondary:n})},r))})}function ZP(e,t,r){fetch(Qu.apiHost+e).then(n=>{if(n.status>=400)throw n;return n.json()}).then(n=>{t(n),r(null)}).catch(n=>{console.error(`Calling ${e}:`,n),r(n),t({})})}const eTe=e=>({MuiBackdrop:{styleOverrides:{root:{backgroundColor:Ts(Gy("#000C57",.4),.2),backdropFilter:"blur(2px)","&.MuiBackdrop-invisible":{backgroundColor:"transparent",backdropFilter:"blur(2px)"}}}},MuiButtonBase:{defaultProps:{LinkComponent:y0}},MuiFormControl:{defaultProps:{margin:"dense"}},MuiLink:{defaultProps:{component:y0}},MuiOutlinedInput:{styleOverrides:{input:{padding:`${e.spacing(1)} ${e.spacing(2)}`}}},MuiTab:{styleOverrides:{root:{padding:0,height:38,minHeight:38,borderRadius:6,transition:"color .2s","&.MuiButtonBase-root":{minWidth:"auto",paddingLeft:20,paddingRight:20,marginRight:4},"&.Mui-selected, &.Mui-selected:hover":{color:e.palette.primary.contrastText,zIndex:5},"&:hover":{color:e.palette.primary.main}}}},MuiTableRow:{styleOverrides:{root:{"&:last-child td":{border:0}}}},MuiTableCell:{styleOverrides:{root:{padding:e.spacing(2),"&.MuiTableCell-sizeSmall":{padding:e.spacing(1.5)},"&.MuiTableCell-paddingNone":{padding:e.spacing(.5)}}}},MuiTabs:{styleOverrides:{root:{height:38,minHeight:38,overflow:"visible"},indicator:{height:38,minHeight:38,borderRadius:6,border:`1px solid ${e.palette.primary.light}`,boxShadow:e.shadows[1]},scrollableX:{overflow:"visible !important"}}},MuiTextField:{defaultProps:{variant:"outlined"}},RaAppBar:{styleOverrides:{root:{color:e.palette.text.primary,"& .RaAppBar-toolbar":{backgroundColor:e.palette.primary.main,color:e.palette.background.default,backgroundImage:`linear-gradient(310deg, ${e.palette.primary.light}, ${e.palette.secondary.dark})`}}}},RaDatagrid:{styleOverrides:{root:{marginTop:e.spacing(1.5)}}},RaMenuItemLink:{styleOverrides:{root:{padding:10,marginRight:10,marginLeft:10,"&:hover":{borderRadius:5},"&.RaMenuItemLink-active":{borderRadius:10,backgroundColor:e.palette.common.white,color:e.palette.primary.main,"&:before":{content:'""',position:"absolute",top:"0; right: 0; bottom: 0; left: 0",zIndex:"-1",margin:"-2px",borderRadius:"12px",background:`linear-gradient(310deg, ${e.palette.primary.light}, ${e.palette.secondary.main})`},"& .MuiSvgIcon-root":{fill:e.palette.primary.main}}}}}}),x3={error:{main:"#f61908"},warning:{main:"#e1970e"},info:{main:"#3ED0EB"},success:{main:"#0FBF9F"}},tTe={primary:{main:"#ffcd00",dark:"#deb800",light:"#ffcd00"},secondary:{main:"#0083da",dark:"#0083da",light:"#21a4ff"},background:{default:"#363D40",paper:"#2B3033"},...x3,mode:"dark"},rTe={primary:{main:"#0083da",light:"#0099ff"},secondary:{main:"#ffcd00",dark:"#deb800"},background:{default:"#f4faff",paper:"#ffffff"},...x3,mode:"light"},w3=e=>{const r=Fu({palette:e,shape:{borderRadius:20},sidebar:{width:250},spacing:9,typography:{fontFamily:"'Open Sans', sans-serif"}});return r.components=eTe(r),r},nTe=w3(rTe),oTe=w3(tTe),aTe=qOe(),iTe=HOe();function sTe(){return E.jsx(lTe,{})}function lTe(){return E.jsxs(UOe,{dataProvider:aTe,authProvider:iTe,loginPage:VOe,theme:nTe,darkTheme:oTe,layout:eEe,children:[E.jsx(Ct,{name:"customers",list:v2e,show:h2e,icon:bk,options:{label:"Customers"},recordRepresentation:"email"}),E.jsx(Ct,{name:"customer_reset_codes",list:m2e,show:g2e,icon:hk,options:{label:"Customer Reset Codes"},recordRepresentation:"id"}),E.jsx(Ct,{name:"organizations",list:R2e,show:k2e,icon:pk,options:{label:"Organizations"},recordRepresentation:"name"}),E.jsx(Ct,{name:"organization_memberships",list:_2e,show:C2e,icon:xk,options:{label:"Memberships"},recordRepresentation:"id"}),E.jsx(Ct,{name:"subscriptions",list:B2e,show:z2e,icon:Ok,options:{label:"Subscriptions"},recordRepresentation:"stripeId"}),E.jsx(Ct,{name:"organization_database_migrations",list:y2e,show:b2e,icon:$k,options:{label:"Database Migrations"},recordRepresentation:"id"}),E.jsx(Ct,{name:"saved_queries",list:j2e,show:M2e,icon:wk,options:{label:"Saved Queries"},recordRepresentation:"id"}),E.jsx(Ct,{name:"saved_views",list:F2e,show:N2e,icon:yk,options:{label:"Saved Views"},recordRepresentation:"id"}),E.jsx(Ct,{name:"service_integrations",list:L2e,show:D2e,icon:vk,options:{label:"Service Integrations"},recordRepresentation:"serviceName"}),E.jsx(Ct,{name:"sync_targets",list:U2e,show:V2e,icon:Ek,options:{label:"Sync Targets"},recordRepresentation:"id"}),E.jsx(Ct,{name:"webhook_subscriptions",list:q2e,show:G2e,icon:Sk,options:{label:"Webhook Subscriptions"},recordRepresentation:"deliverToUrl"}),E.jsx(Ct,{name:"webhook_subscription_deliveries",list:W2e,show:H2e,icon:_k,options:{label:"Webhook Deliveries"},recordRepresentation:"id"}),E.jsx(Ct,{name:"backfill_jobs",list:d2e,show:p2e,icon:Pk,options:{label:"Backfill Jobs"},recordRepresentation:"id"}),E.jsx(Ct,{name:"roles",list:I2e,show:A2e,icon:Ck,options:{label:"Roles"},recordRepresentation:"name"}),E.jsx(Ct,{name:"message_deliveries",list:P2e,show:T2e,icon:mk,options:{label:"Message Deliveries"},recordRepresentation:"id"}),E.jsx(Ct,{name:"message_bodies",list:$2e,show:O2e,icon:gk,options:{label:"Message Bodies"},recordRepresentation:"id"}),E.jsx(Ct,{name:"logged_webhooks",list:w2e,show:S2e,icon:Hv,options:{label:"Logged Webhooks"},recordRepresentation:"id"}),E.jsx(BA,{children:E.jsx(hr,{path:"/status",element:E.jsx(Z2e,{})})})]})}mg.createRoot(document.getElementById("root")).render(E.jsx(G.StrictMode,{children:E.jsx(sTe,{})}));
|