@digital-realty/ui-mfe-dcim 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1099 @@
1
+ var WK=Object.defineProperty;var zK=(e,t,r)=>t in e?WK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var nt=(e,t,r)=>zK(e,typeof t!="symbol"?t+"":t,r);import*as P from"react";import ot,{useSyncExternalStore as FF,useState as qr,useRef as Dr,useCallback as At,useEffect as It,useMemo as Jr,forwardRef as Ea,useContext as Ra,isValidElement as ng,cloneElement as gf,Children as VK,createElement as ya,createContext as gp,Component as GK,Fragment as KK,useReducer as XK,useLayoutEffect as IE}from"react";import*as jF from"react-dom";import yl from"react-dom";import{html as YK}from"lit";import{ifDefined as ZK}from"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";var ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function po(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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var BF={exports:{}},ty={};/**
2
+ * @license React
3
+ * react-jsx-runtime.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 JK=ot,QK=Symbol.for("react.element"),eX=Symbol.for("react.fragment"),tX=Object.prototype.hasOwnProperty,rX=JK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nX={key:!0,ref:!0,__self:!0,__source:!0};function UF(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)tX.call(t,n)&&!nX.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:QK,type:e,key:o,ref:a,props:i,_owner:rX.current}}ty.Fragment=eX;ty.jsx=UF;ty.jsxs=UF;BF.exports=ty;var E=BF.exports;function Ag(e,t){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ag(e,t)}function Pa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ag(e,t)}var Nc=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(n){var i=this,o=n||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(a){return a!==o}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}const iX=Object.freeze(Object.defineProperty({__proto__:null,get default(){return A}},Symbol.toStringTag,{value:"Module"}));var Ig=typeof window>"u";function vn(){}function oX(e,t){return typeof e=="function"?e(t):e}function kC(e){return typeof e=="number"&&e>=0&&e!==1/0}function $g(e){return Array.isArray(e)?e:[e]}function qF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ig(e,t,r){return vp(e)?typeof t=="function"?A({},r,{queryKey:e,queryFn:t}):A({},t,{queryKey:e}):e}function aX(e,t,r){return vp(e)?typeof t=="function"?A({},r,{mutationKey:e,mutationFn:t}):A({},t,{mutationKey:e}):typeof e=="function"?A({},t,{mutationFn:e}):A({},e)}function is(e,t,r){return vp(e)?[A({},t,{queryKey:e}),r]:[e||{},t]}function sX(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 iI(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,l=e.stale;if(vp(s)){if(n){if(t.queryHash!==$E(s,t.options))return!1}else if(!Dg(t.queryKey,s))return!1}var u=sX(r,o);if(u==="none")return!1;if(u!=="all"){var d=t.isActive();if(u==="active"&&!d||u==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i=="boolean"&&t.isFetching()!==i||a&&!a(t))}function oI(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(vp(o)){if(!t.options.mutationKey)return!1;if(r){if(bl(t.options.mutationKey)!==bl(o))return!1}else if(!Dg(t.options.mutationKey,o))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function $E(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||bl;return r(e)}function bl(e){var t=$g(e);return lX(t)}function lX(e){return JSON.stringify(e,function(t,r){return NC(r)?Object.keys(r).sort().reduce(function(n,i){return n[i]=r[i],n},{}):r})}function Dg(e,t){return HF($g(e),$g(t))}function HF(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!HF(e[r],t[r])}):!1}function Lg(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||NC(e)&&NC(t)){for(var n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},s=0,l=0;l<o;l++){var u=r?l:i[l];a[u]=Lg(e[u],t[u]),a[u]===e[u]&&s++}return n===o&&s===n?e:a}return t}function uX(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function NC(e){if(!aI(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var r=t.prototype;return!(!aI(r)||!r.hasOwnProperty("isPrototypeOf"))}function aI(e){return Object.prototype.toString.call(e)==="[object Object]"}function vp(e){return typeof e=="string"||Array.isArray(e)}function cX(e){return new Promise(function(t){setTimeout(t,e)})}function sI(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function WF(){if(typeof AbortController=="function")return new AbortController}var dX=function(e){Pa(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(i){var o;if(!Ig&&((o=window)!=null&&o.addEventListener)){var a=function(){return i()};return window.addEventListener("visibilitychange",a,!1),window.addEventListener("focus",a,!1),function(){window.removeEventListener("visibilitychange",a),window.removeEventListener("focus",a)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},r.setEventListener=function(i){var o,a=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(s){typeof s=="boolean"?a.setFocused(s):a.onFocus()})},r.setFocused=function(i){this.focused=i,i&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(i){i()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Nc),vf=new dX,fX=function(e){Pa(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(i){var o;if(!Ig&&((o=window)!=null&&o.addEventListener)){var a=function(){return i()};return window.addEventListener("online",a,!1),window.addEventListener("offline",a,!1),function(){window.removeEventListener("online",a),window.removeEventListener("offline",a)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},r.setEventListener=function(i){var o,a=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(s){typeof s=="boolean"?a.setOnline(s):a.onOnline()})},r.setOnline=function(i){this.online=i,i&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(i){i()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Nc),og=new fX;function pX(e){return Math.min(1e3*Math.pow(2,e),3e4)}function kg(e){return typeof(e==null?void 0:e.cancel)=="function"}var zF=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function ag(e){return e instanceof zF}var VF=function(t){var r=this,n=!1,i,o,a,s;this.abort=t.abort,this.cancel=function(h){return i==null?void 0:i(h)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(h,m){a=h,s=m});var l=function(m){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(m),o==null||o(),a(m))},u=function(m){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(m),o==null||o(),s(m))},d=function(){return new Promise(function(m){o=m,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){o=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},p=function h(){if(!r.isResolved){var m;try{m=t.fn()}catch(g){m=Promise.reject(g)}i=function(y){if(!r.isResolved&&(u(new zF(y)),r.abort==null||r.abort(),kg(m)))try{m.cancel()}catch{}},r.isTransportCancelable=kg(m),Promise.resolve(m).then(l).catch(function(g){var y,x;if(!r.isResolved){var b=(y=t.retry)!=null?y:3,S=(x=t.retryDelay)!=null?x:pX,w=typeof S=="function"?S(r.failureCount,g):S,_=b===!0||typeof b=="number"&&r.failureCount<b||typeof b=="function"&&b(r.failureCount,g);if(n||!_){u(g);return}r.failureCount++,t.onFail==null||t.onFail(r.failureCount,g),cX(w).then(function(){if(!vf.isFocused()||!og.isOnline())return d()}).then(function(){n?u(g):h()})}})}};p()},hX=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 i;this.transactions++;try{i=n()}finally{this.transactions--,this.transactions||this.flush()}return i},t.schedule=function(n){var i=this;this.transactions?this.queue.push(n):sI(function(){i.notifyFn(n)})},t.batchCalls=function(n){var i=this;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];i.schedule(function(){n.apply(void 0,a)})}},t.flush=function(){var n=this,i=this.queue;this.queue=[],i.length&&sI(function(){n.batchNotifyFn(function(){i.forEach(function(o){n.notifyFn(o)})})})},t.setNotifyFunction=function(n){this.notifyFn=n},t.setBatchNotifyFunction=function(n){this.batchNotifyFn=n},e}(),mr=new hX,GF=console;function Ng(){return GF}function mX(e){GF=e}var gX=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 i;this.options=A({},this.defaultOptions,n),this.meta=n==null?void 0:n.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},t.setDefaultOptions=function(n){this.defaultOptions=n},t.scheduleGc=function(){var n=this;this.clearGcTimeout(),kC(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,i){var o,a,s=this.state.data,l=oX(n,s);return(o=(a=this.options).isDataEqual)!=null&&o.call(a,s,l)?l=s:this.options.structuralSharing!==!1&&(l=Lg(s,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),l},t.setState=function(n,i){this.dispatch({type:"setState",state:n,setStateOptions:i})},t.cancel=function(n){var i,o=this.promise;return(i=this.retryer)==null||i.cancel(n),o?o.then(vn).catch(vn):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||!qF(this.state.dataUpdatedAt,n)},t.onFocus=function(){var n,i=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},t.onOnline=function(){var n,i=this.observers.find(function(o){return o.shouldFetchOnReconnect()});i&&i.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(i){return i!==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,i){var o=this,a,s,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(n&&this.setOptions(n),!this.options.queryFn){var d=this.observers.find(function(S){return S.options.queryFn});d&&this.setOptions(d.options)}var p=$g(this.queryKey),h=WF(),m={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(h)return o.abortSignalConsumed=!0,h.signal}});var g=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(m)):Promise.reject("Missing queryFn")},y={fetchOptions:i,options:this.options,queryKey:p,state:this.state,fetchFn:g,meta:this.meta};if((a=this.options.behavior)!=null&&a.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 VF({fn:y.fetchFn,abort:h==null||(l=h.abort)==null?void 0:l.bind(h),onSuccess:function(w){o.setData(w),o.cache.config.onSuccess==null||o.cache.config.onSuccess(w,o),o.cacheTime===0&&o.optionalRemove()},onError:function(w){ag(w)&&w.silent||o.dispatch({type:"error",error:w}),ag(w)||(o.cache.config.onError==null||o.cache.config.onError(w,o),Ng().error(w)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(n){var i=this;this.state=this.reducer(this.state,n),mr.batch(function(){i.observers.forEach(function(o){o.onQueryUpdate(n)}),i.cache.notify({query:i,type:"queryUpdated",action:n})})},t.getDefaultState=function(n){var i=typeof n.initialData=="function"?n.initialData():n.initialData,o=typeof n.initialData<"u",a=o?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0,s=typeof i<"u";return{data:i,dataUpdateCount:0,dataUpdatedAt:s?a??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,i){var o,a;switch(i.type){case"failed":return A({},n,{fetchFailureCount:n.fetchFailureCount+1});case"pause":return A({},n,{isPaused:!0});case"continue":return A({},n,{isPaused:!1});case"fetch":return A({},n,{fetchFailureCount:0,fetchMeta:(o=i.meta)!=null?o:null,isFetching:!0,isPaused:!1},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return A({},n,{data:i.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=i.dataUpdatedAt)!=null?a:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=i.error;return ag(s)&&s.revert&&this.revertState?A({},this.revertState):A({},n,{error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return A({},n,{isInvalidated:!0});case"setState":return A({},n,i.state);default:return n}},e}(),vX=function(e){Pa(t,e);function t(n){var i;return i=e.call(this)||this,i.config=n||{},i.queries=[],i.queriesMap={},i}var r=t.prototype;return r.build=function(i,o,a){var s,l=o.queryKey,u=(s=o.queryHash)!=null?s:$E(l,o),d=this.get(u);return d||(d=new gX({cache:this,queryKey:l,queryHash:u,options:i.defaultQueryOptions(o),state:a,defaultOptions:i.getQueryDefaults(l),meta:o.meta}),this.add(d)),d},r.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},r.remove=function(i){var o=this.queriesMap[i.queryHash];o&&(i.destroy(),this.queries=this.queries.filter(function(a){return a!==i}),o===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},r.clear=function(){var i=this;mr.batch(function(){i.queries.forEach(function(o){i.remove(o)})})},r.get=function(i){return this.queriesMap[i]},r.getAll=function(){return this.queries},r.find=function(i,o){var a=is(i,o),s=a[0];return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(function(l){return iI(s,l)})},r.findAll=function(i,o){var a=is(i,o),s=a[0];return Object.keys(s).length>0?this.queries.filter(function(l){return iI(s,l)}):this.queries},r.notify=function(i){var o=this;mr.batch(function(){o.listeners.forEach(function(a){a(i)})})},r.onFocus=function(){var i=this;mr.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},r.onOnline=function(){var i=this;mr.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},t}(Nc),yX=function(){function e(r){this.options=A({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||KF(),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(i){return i!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(vn).catch(vn)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,i,o=this.state.status==="loading",a=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),a=a.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})})),a.then(function(){return n.executeMutation()}).then(function(s){i=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(i,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(i,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(i,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:i}),i}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),Ng().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,i;return this.retryer=new VF({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:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var i=this;this.state=bX(this.state,n),mr.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(n)}),i.mutationCache.notify(i)})},e}();function KF(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function bX(e,t){switch(t.type){case"failed":return A({},e,{failureCount:e.failureCount+1});case"pause":return A({},e,{isPaused:!0});case"continue":return A({},e,{isPaused:!1});case"loading":return A({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return A({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return A({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return A({},e,t.state);default:return e}}var xX=function(e){Pa(t,e);function t(n){var i;return i=e.call(this)||this,i.config=n||{},i.mutations=[],i.mutationId=0,i}var r=t.prototype;return r.build=function(i,o,a){var s=new yX({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:a,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(s),s},r.add=function(i){this.mutations.push(i),this.notify(i)},r.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},r.clear=function(){var i=this;mr.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},r.getAll=function(){return this.mutations},r.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return oI(i,o)})},r.findAll=function(i){return this.mutations.filter(function(o){return oI(i,o)})},r.notify=function(i){var o=this;mr.batch(function(){o.listeners.forEach(function(a){a(i)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return mr.batch(function(){return i.reduce(function(o,a){return o.then(function(){return a.continue().catch(vn)})},Promise.resolve())})},t}(Nc);function wX(){return{onFetch:function(t){t.fetchFn=function(){var r,n,i,o,a,s,l=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,u=(i=t.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,d=u==null?void 0:u.pageParam,p=(u==null?void 0:u.direction)==="forward",h=(u==null?void 0:u.direction)==="backward",m=((a=t.state.data)==null?void 0:a.pages)||[],g=((s=t.state.data)==null?void 0:s.pageParams)||[],y=WF(),x=y==null?void 0:y.signal,b=g,S=!1,w=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},_=function(U,F,j,V){return b=V?[F].concat(b):[].concat(b,[F]),V?[j].concat(U):[].concat(U,[j])},O=function(U,F,j,V){if(S)return Promise.reject("Cancelled");if(typeof j>"u"&&!F&&U.length)return Promise.resolve(U);var z={queryKey:t.queryKey,signal:x,pageParam:j,meta:t.meta},Q=w(z),oe=Promise.resolve(Q).then(function(he){return _(U,j,he,V)});if(kg(Q)){var ae=oe;ae.cancel=Q.cancel}return oe},C;if(!m.length)C=O([]);else if(p){var T=typeof d<"u",M=T?d:lI(t.options,m);C=O(m,T,M)}else if(h){var D=typeof d<"u",$=D?d:_X(t.options,m);C=O(m,D,$,!0)}else(function(){b=[];var q=typeof t.options.getNextPageParam>"u",U=l&&m[0]?l(m[0],0,m):!0;C=U?O([],q,g[0]):Promise.resolve(_([],g[0],m[0]));for(var F=function(z){C=C.then(function(Q){var oe=l&&m[z]?l(m[z],z,m):!0;if(oe){var ae=q?g[z]:lI(t.options,Q);return O(Q,q,ae)}return Promise.resolve(_(Q,g[z],m[z]))})},j=1;j<m.length;j++)F(j)})();var N=C.then(function(q){return{pages:q,pageParams:b}}),B=N;return B.cancel=function(){S=!0,y==null||y.abort(),kg(C)&&C.cancel()},N}}}}function lI(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function _X(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var CX=function(){function e(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new vX,this.mutationCache=r.mutationCache||new xX,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var n=this;this.unsubscribeFocus=vf.subscribe(function(){vf.isFocused()&&og.isOnline()&&(n.mutationCache.onFocus(),n.queryCache.onFocus())}),this.unsubscribeOnline=og.subscribe(function(){vf.isFocused()&&og.isOnline()&&(n.mutationCache.onOnline(),n.queryCache.onOnline())})},t.unmount=function(){var n,i;(n=this.unsubscribeFocus)==null||n.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},t.isFetching=function(n,i){var o=is(n,i),a=o[0];return a.fetching=!0,this.queryCache.findAll(a).length},t.isMutating=function(n){return this.mutationCache.findAll(A({},n,{fetching:!0})).length},t.getQueryData=function(n,i){var o;return(o=this.queryCache.find(n,i))==null?void 0:o.state.data},t.getQueriesData=function(n){return this.getQueryCache().findAll(n).map(function(i){var o=i.queryKey,a=i.state,s=a.data;return[o,s]})},t.setQueryData=function(n,i,o){var a=ig(n),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(i,o)},t.setQueriesData=function(n,i,o){var a=this;return mr.batch(function(){return a.getQueryCache().findAll(n).map(function(s){var l=s.queryKey;return[l,a.setQueryData(l,i,o)]})})},t.getQueryState=function(n,i){var o;return(o=this.queryCache.find(n,i))==null?void 0:o.state},t.removeQueries=function(n,i){var o=is(n,i),a=o[0],s=this.queryCache;mr.batch(function(){s.findAll(a).forEach(function(l){s.remove(l)})})},t.resetQueries=function(n,i,o){var a=this,s=is(n,i,o),l=s[0],u=s[1],d=this.queryCache,p=A({},l,{active:!0});return mr.batch(function(){return d.findAll(l).forEach(function(h){h.reset()}),a.refetchQueries(p,u)})},t.cancelQueries=function(n,i,o){var a=this,s=is(n,i,o),l=s[0],u=s[1],d=u===void 0?{}:u;typeof d.revert>"u"&&(d.revert=!0);var p=mr.batch(function(){return a.queryCache.findAll(l).map(function(h){return h.cancel(d)})});return Promise.all(p).then(vn).catch(vn)},t.invalidateQueries=function(n,i,o){var a,s,l,u=this,d=is(n,i,o),p=d[0],h=d[1],m=A({},p,{active:(a=(s=p.refetchActive)!=null?s:p.active)!=null?a:!0,inactive:(l=p.refetchInactive)!=null?l:!1});return mr.batch(function(){return u.queryCache.findAll(p).forEach(function(g){g.invalidate()}),u.refetchQueries(m,h)})},t.refetchQueries=function(n,i,o){var a=this,s=is(n,i,o),l=s[0],u=s[1],d=mr.batch(function(){return a.queryCache.findAll(l).map(function(h){return h.fetch(void 0,A({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),p=Promise.all(d).then(vn);return u!=null&&u.throwOnError||(p=p.catch(vn)),p},t.fetchQuery=function(n,i,o){var a=ig(n,i,o),s=this.defaultQueryOptions(a);typeof s.retry>"u"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(n,i,o){return this.fetchQuery(n,i,o).then(vn).catch(vn)},t.fetchInfiniteQuery=function(n,i,o){var a=ig(n,i,o);return a.behavior=wX(),this.fetchQuery(a)},t.prefetchInfiniteQuery=function(n,i,o){return this.fetchInfiniteQuery(n,i,o).then(vn).catch(vn)},t.cancelMutations=function(){var n=this,i=mr.batch(function(){return n.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(vn).catch(vn)},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,i){var o=this.queryDefaults.find(function(a){return bl(n)===bl(a.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:n,defaultOptions:i})},t.getQueryDefaults=function(n){var i;return n?(i=this.queryDefaults.find(function(o){return Dg(n,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(n,i){var o=this.mutationDefaults.find(function(a){return bl(n)===bl(a.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:n,defaultOptions:i})},t.getMutationDefaults=function(n){var i;return n?(i=this.mutationDefaults.find(function(o){return Dg(n,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var i=A({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=$E(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:A({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),TX=function(e){Pa(t,e);function t(n,i){var o;return o=e.call(this)||this,o.client=n,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}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),uI(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return FC(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return FC(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(i,o){var a=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=a.queryKey),this.updateQuery();var l=this.hasListeners();l&&cI(this.currentQuery,s,this.options,a)&&this.executeFetch(),this.updateResult(o),l&&(this.currentQuery!==s||this.options.enabled!==a.enabled||this.options.staleTime!==a.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==a.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},r.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),a=this.client.getQueryCache().build(this.client,o);return this.createResult(a,o)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(i,o){var a=this,s={},l=function(d){a.trackedProps.includes(d)||a.trackedProps.push(d)};return Object.keys(i).forEach(function(u){Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:function(){return l(u),i[u]}})}),(o.useErrorBoundary||o.suspense)&&l("error"),s},r.getNextResult=function(i){var o=this;return new Promise(function(a,s){var l=o.subscribe(function(u){u.isFetching||(l(),u.isError&&(i!=null&&i.throwOnError)?s(u.error):a(u))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(i){return this.fetch(A({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},r.fetchOptimistic=function(i){var o=this,a=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,a);return s.fetch().then(function(){return o.createResult(s,a)})},r.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},r.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(vn)),o},r.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Ig||this.currentResult.isStale||!kC(this.options.staleTime))){var o=qF(this.currentResult.dataUpdatedAt,this.options.staleTime),a=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},a)}},r.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},r.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Ig||this.options.enabled===!1||!kC(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||vf.isFocused())&&o.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(i,o){var a=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,d=this.currentResultOptions,p=i!==a,h=p?i.state:this.currentQueryInitialState,m=p?this.currentResult:this.previousQueryResult,g=i.state,y=g.dataUpdatedAt,x=g.error,b=g.errorUpdatedAt,S=g.isFetching,w=g.status,_=!1,O=!1,C;if(o.optimisticResults){var T=this.hasListeners(),M=!T&&uI(i,o),D=T&&cI(i,a,o,s);(M||D)&&(S=!0,y||(w="loading"))}if(o.keepPreviousData&&!g.dataUpdateCount&&(m!=null&&m.isSuccess)&&w!=="error")C=m.data,y=m.dataUpdatedAt,w=m.status,_=!0;else if(o.select&&typeof g.data<"u")if(l&&g.data===(u==null?void 0:u.data)&&o.select===this.selectFn)C=this.selectResult;else try{this.selectFn=o.select,C=o.select(g.data),o.structuralSharing!==!1&&(C=Lg(l==null?void 0:l.data,C)),this.selectResult=C,this.selectError=null}catch(B){Ng().error(B),this.selectError=B}else C=g.data;if(typeof o.placeholderData<"u"&&typeof C>"u"&&(w==="loading"||w==="idle")){var $;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(d==null?void 0:d.placeholderData))$=l.data;else if($=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof $<"u")try{$=o.select($),o.structuralSharing!==!1&&($=Lg(l==null?void 0:l.data,$)),this.selectError=null}catch(B){Ng().error(B),this.selectError=B}typeof $<"u"&&(w="success",C=$,O=!0)}this.selectError&&(x=this.selectError,C=this.selectResult,b=Date.now(),w="error");var N={status:w,isLoading:w==="loading",isSuccess:w==="success",isError:w==="error",isIdle:w==="idle",data:C,dataUpdatedAt:y,error:x,errorUpdatedAt:b,failureCount:g.fetchFailureCount,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:S,isRefetching:S&&w!=="loading",isLoadingError:w==="error"&&g.dataUpdatedAt===0,isPlaceholderData:O,isPreviousData:_,isRefetchError:w==="error"&&g.dataUpdatedAt!==0,isStale:DE(i,o),refetch:this.refetch,remove:this.remove};return N},r.shouldNotifyListeners=function(i,o){if(!o)return!0;var a=this.options,s=a.notifyOnChangeProps,l=a.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var u=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(d){var p=d,h=i[p]!==o[p],m=u==null?void 0:u.some(function(y){return y===d}),g=l==null?void 0:l.some(function(y){return y===d});return h&&!g&&(!u||m)})},r.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!uX(this.currentResult,o)){var a={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(a.listeners=!0),this.notify(A({},a,i))}},r.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},r.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!ag(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},r.notify=function(i){var o=this;mr.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(a){a(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},t}(Nc);function SX(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function uI(e,t){return SX(e,t)||e.state.dataUpdatedAt>0&&FC(e,t,t.refetchOnMount)}function FC(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&DE(e,t)}return!1}function cI(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&DE(e,r)}function DE(e,t){return e.isStaleByTime(t.staleTime)}var EX=function(e){Pa(t,e);function t(n,i){var o;return o=e.call(this)||this,o.client=n,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},r.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},r.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,A({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:KF(),o=A({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},r.notify=function(i){var o=this;mr.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(a){a(o.currentResult)})})},t}(Nc),RX=yl.unstable_batchedUpdates;mr.setBatchNotifyFunction(RX);var PX=console;mX(PX);var dI=ot.createContext(void 0),XF=ot.createContext(!1);function YF(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=dI),window.ReactQueryClientContext):dI}var ZF=function(){var t=ot.useContext(YF(ot.useContext(XF)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},FJe=function(t){var r=t.client,n=t.contextSharing,i=n===void 0?!1:n,o=t.children;ot.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var a=YF(i);return ot.createElement(XF.Provider,{value:i},ot.createElement(a.Provider,{value:r},o))};function OX(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var MX=ot.createContext(OX()),AX=function(){return ot.useContext(MX)};function JF(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function LE(e,t,r){var n=ot.useRef(!1),i=ot.useState(0),o=i[1],a=aX(e,t,r),s=ZF(),l=ot.useRef();l.current?l.current.setOptions(a):l.current=new EX(s,a);var u=l.current.getCurrentResult();ot.useEffect(function(){n.current=!0;var p=l.current.subscribe(mr.batchCalls(function(){n.current&&o(function(h){return h+1})}));return function(){n.current=!1,p()}},[]);var d=ot.useCallback(function(p,h){l.current.mutate(p,h).catch(vn)},[]);if(u.error&&JF(void 0,l.current.options.useErrorBoundary,[u.error]))throw u.error;return A({},u,{mutate:d,mutateAsync:u.mutate})}function IX(e,t){var r=ot.useRef(!1),n=ot.useState(0),i=n[1],o=ZF(),a=AX(),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=mr.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=mr.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=mr.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var l=ot.useState(function(){return new t(o,s)}),u=l[0],d=u.getOptimisticResult(s);if(ot.useEffect(function(){r.current=!0,a.clearReset();var p=u.subscribe(mr.batchCalls(function(){r.current&&i(function(h){return h+1})}));return u.updateResult(),function(){r.current=!1,p()}},[a,u]),ot.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&d.isLoading)throw u.fetchOptimistic(s).then(function(p){var h=p.data;s.onSuccess==null||s.onSuccess(h),s.onSettled==null||s.onSettled(h,null)}).catch(function(p){a.clearReset(),s.onError==null||s.onError(p),s.onSettled==null||s.onSettled(void 0,p)});if(d.isError&&!a.isReset()&&!d.isFetching&&JF(s.suspense,s.useErrorBoundary,[d.error,u.getCurrentQuery()]))throw d.error;return s.notifyOnChangeProps==="tracked"&&(d=u.trackResult(d,s)),d}function Oa(e,t,r){var n=ig(e,t,r);return IX(n,TX)}/**
10
+ * @remix-run/router v1.23.0
11
+ *
12
+ * Copyright (c) Remix Software Inc.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE.md file in the root directory of this source tree.
16
+ *
17
+ * @license MIT
18
+ */function pr(){return pr=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},pr.apply(this,arguments)}var Ur;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ur||(Ur={}));const fI="popstate";function $X(e){e===void 0&&(e={});function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return Bf("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Dl(i)}return LX(t,r,null,e)}function vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DX(){return Math.random().toString(36).substr(2,8)}function pI(e,t){return{usr:e.state,key:e.key,idx:t}}function Bf(e,t,r,n){return r===void 0&&(r=null),pr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Os(t):t,{state:r,key:t&&t.key||n||DX()})}function Dl(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 Os(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}function LX(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=Ur.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(pr({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function p(){s=Ur.Pop;let x=d(),b=x==null?null:x-u;u=x,l&&l({action:s,location:y.location,delta:b})}function h(x,b){s=Ur.Push;let S=Bf(y.location,x,b);u=d()+1;let w=pI(S,u),_=y.createHref(S);try{a.pushState(w,"",_)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(_)}o&&l&&l({action:s,location:y.location,delta:1})}function m(x,b){s=Ur.Replace;let S=Bf(y.location,x,b);u=d();let w=pI(S,u),_=y.createHref(S);a.replaceState(w,"",_),o&&l&&l({action:s,location:y.location,delta:0})}function g(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof x=="string"?x:Dl(x);return S=S.replace(/ $/,"%20"),vt(b,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,b)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(fI,p),l=x,()=>{i.removeEventListener(fI,p),l=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let b=g(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:m,go(x){return a.go(x)}};return y}var Ht;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ht||(Ht={}));const kX=new Set(["lazy","caseSensitive","path","id","index","children"]);function NX(e){return e.index===!0}function Fg(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,o)=>{let a=[...r,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(vt(i.index!==!0||!i.children,"Cannot specify children on an index route"),vt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),NX(i)){let l=pr({},i,t(i),{id:s});return n[s]=l,l}else{let l=pr({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=Fg(i.children,t,a,n)),l}})}function hl(e,t,r){return r===void 0&&(r="/"),sg(e,t,r,!1)}function sg(e,t,r,n){let i=typeof t=="string"?Os(t):t,o=Ca(i.pathname||"/",r);if(o==null)return null;let a=QF(e);jX(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=YX(o);s=KX(a[l],u,n)}return s}function FX(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function QF(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(vt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ba([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(vt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),QF(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:VX(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of ej(o.path))i(o,a,l)}),t}function ej(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=ej(n.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function jX(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:GX(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const BX=/^:[\w-]+$/,UX=3,qX=2,HX=1,WX=10,zX=-2,hI=e=>e==="*";function VX(e,t){let r=e.split("/"),n=r.length;return r.some(hI)&&(n+=zX),t&&(n+=qX),r.filter(i=>!hI(i)).reduce((i,o)=>i+(BX.test(o)?UX:o===""?HX:WX),n)}function GX(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function KX(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=jg({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!p&&u&&r&&!n[n.length-1].route.index&&(p=jg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:ba([o,p.pathname]),pathnameBase:QX(ba([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=ba([o,p.pathnameBase]))}return a}function jg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=XX(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,d,p)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let y=s[p]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[p];return m&&!g?u[h]=void 0:u[h]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function XX(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),dc(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function YX(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dc(!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 Ca(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 ZX(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Os(e):e;return{pathname:r?r.startsWith("/")?r:JX(r,t):t,search:eY(n),hash:tY(i)}}function JX(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Gw(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 tj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ry(e,t){let r=tj(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ny(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Os(e):(i=pr({},e),vt(!i.pathname||!i.pathname.includes("?"),Gw("?","pathname","search",i)),vt(!i.pathname||!i.pathname.includes("#"),Gw("#","pathname","hash",i)),vt(!i.search||!i.search.includes("#"),Gw("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;i.pathname=h.join("/")}s=p>=0?t[p]:"/"}let l=ZX(i,s),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const ba=e=>e.join("/").replace(/\/\/+/g,"/"),QX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),eY=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Bg{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Uf(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rj=["post","put","patch","delete"],rY=new Set(rj),nY=["get",...rj],iY=new Set(nY),oY=new Set([301,302,303,307,308]),aY=new Set([307,308]),Kw={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sY={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Md={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},kE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lY=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),nj="remix-router-transitions";function uY(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;vt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let G=e.detectErrorBoundary;i=Z=>({hasErrorBoundary:G(Z)})}else i=lY;let o={},a=Fg(e.routes,i,void 0,o),s,l=e.basename||"/",u=e.dataStrategy||pY,d=e.patchRoutesOnNavigation,p=pr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,m=new Set,g=null,y=null,x=null,b=e.hydrationData!=null,S=hl(a,e.history.location,l),w=!1,_=null;if(S==null&&!d){let G=zn(404,{pathname:e.history.location.pathname}),{matches:Z,route:ee}=SI(a);S=Z,_={[ee.id]:G}}S&&!e.hydrationData&&Fs(S,a,e.history.location.pathname).active&&(S=null);let O;if(S)if(S.some(G=>G.route.lazy))O=!1;else if(!S.some(G=>G.route.loader))O=!0;else if(p.v7_partialHydration){let G=e.hydrationData?e.hydrationData.loaderData:null,Z=e.hydrationData?e.hydrationData.errors:null;if(Z){let ee=S.findIndex(ue=>Z[ue.route.id]!==void 0);O=S.slice(0,ee+1).every(ue=>!BC(ue.route,G,Z))}else O=S.every(ee=>!BC(ee.route,G,Z))}else O=e.hydrationData!=null;else if(O=!1,S=[],p.v7_partialHydration){let G=Fs(null,a,e.history.location.pathname);G.active&&G.matches&&(w=!0,S=G.matches)}let C,T={historyAction:e.history.action,location:e.history.location,matches:S,initialized:O,navigation:Kw,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},M=Ur.Pop,D=!1,$,N=!1,B=new Map,q=null,U=!1,F=!1,j=[],V=new Set,z=new Map,Q=0,oe=-1,ae=new Map,he=new Set,Ae=new Map,ve=new Map,fe=new Set,Ee=new Map,_e=new Map,le;function ce(){if(h=e.history.listen(G=>{let{action:Z,location:ee,delta:ue}=G;if(le){le(),le=void 0;return}dc(_e.size===0||ue!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Se=yh({currentLocation:T.location,nextLocation:ee,historyAction:Z});if(Se&&ue!=null){let Ge=new Promise(rt=>{le=rt});e.history.go(ue*-1),cu(Se,{state:"blocked",location:ee,proceed(){cu(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Ge.then(()=>e.history.go(ue))},reset(){let rt=new Map(T.blockers);rt.set(Se,Md),be({blockers:rt})}});return}return at(Z,ee)}),r){RY(t,B);let G=()=>PY(t,B);t.addEventListener("pagehide",G),q=()=>t.removeEventListener("pagehide",G)}return T.initialized||at(Ur.Pop,T.location,{initialHydration:!0}),C}function Ve(){h&&h(),q&&q(),m.clear(),$&&$.abort(),T.fetchers.forEach((G,Z)=>en(Z)),T.blockers.forEach((G,Z)=>vh(Z))}function je(G){return m.add(G),()=>m.delete(G)}function be(G,Z){Z===void 0&&(Z={}),T=pr({},T,G);let ee=[],ue=[];p.v7_fetcherPersist&&T.fetchers.forEach((Se,Ge)=>{Se.state==="idle"&&(fe.has(Ge)?ue.push(Ge):ee.push(Ge))}),fe.forEach(Se=>{!T.fetchers.has(Se)&&!z.has(Se)&&ue.push(Se)}),[...m].forEach(Se=>Se(T,{deletedFetchers:ue,viewTransitionOpts:Z.viewTransitionOpts,flushSync:Z.flushSync===!0})),p.v7_fetcherPersist?(ee.forEach(Se=>T.fetchers.delete(Se)),ue.forEach(Se=>en(Se))):ue.forEach(Se=>fe.delete(Se))}function me(G,Z,ee){var ue,Se;let{flushSync:Ge}=ee===void 0?{}:ee,rt=T.actionData!=null&&T.navigation.formMethod!=null&&no(T.navigation.formMethod)&&T.navigation.state==="loading"&&((ue=G.state)==null?void 0:ue._isRedirect)!==!0,Fe;Z.actionData?Object.keys(Z.actionData).length>0?Fe=Z.actionData:Fe=null:rt?Fe=T.actionData:Fe=null;let Be=Z.loaderData?CI(T.loaderData,Z.loaderData,Z.matches||[],Z.errors):T.loaderData,Le=T.blockers;Le.size>0&&(Le=new Map(Le),Le.forEach((Ct,Kr)=>Le.set(Kr,Md)));let ze=D===!0||T.navigation.formMethod!=null&&no(T.navigation.formMethod)&&((Se=G.state)==null?void 0:Se._isRedirect)!==!0;s&&(a=s,s=void 0),U||M===Ur.Pop||(M===Ur.Push?e.history.push(G,G.state):M===Ur.Replace&&e.history.replace(G,G.state));let lt;if(M===Ur.Pop){let Ct=B.get(T.location.pathname);Ct&&Ct.has(G.pathname)?lt={currentLocation:T.location,nextLocation:G}:B.has(G.pathname)&&(lt={currentLocation:G,nextLocation:T.location})}else if(N){let Ct=B.get(T.location.pathname);Ct?Ct.add(G.pathname):(Ct=new Set([G.pathname]),B.set(T.location.pathname,Ct)),lt={currentLocation:T.location,nextLocation:G}}be(pr({},Z,{actionData:Fe,loaderData:Be,historyAction:M,location:G,initialized:!0,navigation:Kw,revalidation:"idle",restoreScrollPosition:xh(G,Z.matches||T.matches),preventScrollReset:ze,blockers:Le}),{viewTransitionOpts:lt,flushSync:Ge===!0}),M=Ur.Pop,D=!1,N=!1,U=!1,F=!1,j=[]}async function Ie(G,Z){if(typeof G=="number"){e.history.go(G);return}let ee=jC(T.location,T.matches,l,p.v7_prependBasename,G,p.v7_relativeSplatPath,Z==null?void 0:Z.fromRouteId,Z==null?void 0:Z.relative),{path:ue,submission:Se,error:Ge}=mI(p.v7_normalizeFormMethod,!1,ee,Z),rt=T.location,Fe=Bf(T.location,ue,Z&&Z.state);Fe=pr({},Fe,e.history.encodeLocation(Fe));let Be=Z&&Z.replace!=null?Z.replace:void 0,Le=Ur.Push;Be===!0?Le=Ur.Replace:Be===!1||Se!=null&&no(Se.formMethod)&&Se.formAction===T.location.pathname+T.location.search&&(Le=Ur.Replace);let ze=Z&&"preventScrollReset"in Z?Z.preventScrollReset===!0:void 0,lt=(Z&&Z.flushSync)===!0,Ct=yh({currentLocation:rt,nextLocation:Fe,historyAction:Le});if(Ct){cu(Ct,{state:"blocked",location:Fe,proceed(){cu(Ct,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),Ie(G,Z)},reset(){let Kr=new Map(T.blockers);Kr.set(Ct,Md),be({blockers:Kr})}});return}return await at(Le,Fe,{submission:Se,pendingError:Ge,preventScrollReset:ze,replace:Z&&Z.replace,enableViewTransition:Z&&Z.viewTransition,flushSync:lt})}function Je(){if(Ye(),be({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){at(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}at(M||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:N===!0})}}async function at(G,Z,ee){$&&$.abort(),$=null,M=G,U=(ee&&ee.startUninterruptedRevalidation)===!0,D1(T.location,T.matches),D=(ee&&ee.preventScrollReset)===!0,N=(ee&&ee.enableViewTransition)===!0;let ue=s||a,Se=ee&&ee.overrideNavigation,Ge=ee!=null&&ee.initialHydration&&T.matches&&T.matches.length>0&&!w?T.matches:hl(ue,Z,l),rt=(ee&&ee.flushSync)===!0;if(Ge&&T.initialized&&!F&&bY(T.location,Z)&&!(ee&&ee.submission&&no(ee.submission.formMethod))){me(Z,{matches:Ge},{flushSync:rt});return}let Fe=Fs(Ge,ue,Z.pathname);if(Fe.active&&Fe.matches&&(Ge=Fe.matches),!Ge){let{error:Gt,notFoundMatches:Mt,route:lr}=du(Z.pathname);me(Z,{matches:Mt,loaderData:{},errors:{[lr.id]:Gt}},{flushSync:rt});return}$=new AbortController;let Be=Pu(e.history,Z,$.signal,ee&&ee.submission),Le;if(ee&&ee.pendingError)Le=[ml(Ge).route.id,{type:Ht.error,error:ee.pendingError}];else if(ee&&ee.submission&&no(ee.submission.formMethod)){let Gt=await ct(Be,Z,ee.submission,Ge,Fe.active,{replace:ee.replace,flushSync:rt});if(Gt.shortCircuited)return;if(Gt.pendingActionResult){let[Mt,lr]=Gt.pendingActionResult;if(di(lr)&&Uf(lr.error)&&lr.error.status===404){$=null,me(Z,{matches:Gt.matches,loaderData:{},errors:{[Mt]:lr.error}});return}}Ge=Gt.matches||Ge,Le=Gt.pendingActionResult,Se=Xw(Z,ee.submission),rt=!1,Fe.active=!1,Be=Pu(e.history,Be.url,Be.signal)}let{shortCircuited:ze,matches:lt,loaderData:Ct,errors:Kr}=await Vt(Be,Z,Ge,Fe.active,Se,ee&&ee.submission,ee&&ee.fetcherSubmission,ee&&ee.replace,ee&&ee.initialHydration===!0,rt,Le);ze||($=null,me(Z,pr({matches:lt||Ge},TI(Le),{loaderData:Ct,errors:Kr})))}async function ct(G,Z,ee,ue,Se,Ge){Ge===void 0&&(Ge={}),Ye();let rt=SY(Z,ee);if(be({navigation:rt},{flushSync:Ge.flushSync===!0}),Se){let Le=await pu(ue,Z.pathname,G.signal);if(Le.type==="aborted")return{shortCircuited:!0};if(Le.type==="error"){let ze=ml(Le.partialMatches).route.id;return{matches:Le.partialMatches,pendingActionResult:[ze,{type:Ht.error,error:Le.error}]}}else if(Le.matches)ue=Le.matches;else{let{notFoundMatches:ze,error:lt,route:Ct}=du(Z.pathname);return{matches:ze,pendingActionResult:[Ct.id,{type:Ht.error,error:lt}]}}}let Fe,Be=af(ue,Z);if(!Be.route.action&&!Be.route.lazy)Fe={type:Ht.error,error:zn(405,{method:G.method,pathname:Z.pathname,routeId:Be.route.id})};else if(Fe=(await Te("action",T,G,[Be],ue,null))[Be.route.id],G.signal.aborted)return{shortCircuited:!0};if(xl(Fe)){let Le;return Ge&&Ge.replace!=null?Le=Ge.replace:Le=xI(Fe.response.headers.get("Location"),new URL(G.url),l)===T.location.pathname+T.location.search,await pe(G,Fe,!0,{submission:ee,replace:Le}),{shortCircuited:!0}}if(ls(Fe))throw zn(400,{type:"defer-action"});if(di(Fe)){let Le=ml(ue,Be.route.id);return(Ge&&Ge.replace)!==!0&&(M=Ur.Push),{matches:ue,pendingActionResult:[Le.route.id,Fe]}}return{matches:ue,pendingActionResult:[Be.route.id,Fe]}}async function Vt(G,Z,ee,ue,Se,Ge,rt,Fe,Be,Le,ze){let lt=Se||Xw(Z,Ge),Ct=Ge||rt||RI(lt),Kr=!U&&(!p.v7_partialHydration||!Be);if(ue){if(Kr){let ur=_r(ze);be(pr({navigation:lt},ur!==void 0?{actionData:ur}:{}),{flushSync:Le})}let St=await pu(ee,Z.pathname,G.signal);if(St.type==="aborted")return{shortCircuited:!0};if(St.type==="error"){let ur=ml(St.partialMatches).route.id;return{matches:St.partialMatches,loaderData:{},errors:{[ur]:St.error}}}else if(St.matches)ee=St.matches;else{let{error:ur,notFoundMatches:ja,route:qs}=du(Z.pathname);return{matches:ja,loaderData:{},errors:{[qs.id]:ur}}}}let Gt=s||a,[Mt,lr]=vI(e.history,T,ee,Ct,Z,p.v7_partialHydration&&Be===!0,p.v7_skipActionErrorRevalidation,F,j,V,fe,Ae,he,Gt,l,ze);if(fu(St=>!(ee&&ee.some(ur=>ur.route.id===St))||Mt&&Mt.some(ur=>ur.route.id===St)),oe=++Q,Mt.length===0&&lr.length===0){let St=sr();return me(Z,pr({matches:ee,loaderData:{},errors:ze&&di(ze[1])?{[ze[0]]:ze[1].error}:null},TI(ze),St?{fetchers:new Map(T.fetchers)}:{}),{flushSync:Le}),{shortCircuited:!0}}if(Kr){let St={};if(!ue){St.navigation=lt;let ur=_r(ze);ur!==void 0&&(St.actionData=ur)}lr.length>0&&(St.fetchers=jt(lr)),be(St,{flushSync:Le})}lr.forEach(St=>{ke(St.key),St.controller&&z.set(St.key,St.controller)});let Fa=()=>lr.forEach(St=>ke(St.key));$&&$.signal.addEventListener("abort",Fa);let{loaderResults:bo,fetcherResults:Xi}=await Xe(T,ee,Mt,lr,G);if(G.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Fa),lr.forEach(St=>z.delete(St.key));let Mn=lm(bo);if(Mn)return await pe(G,Mn.result,!0,{replace:Fe}),{shortCircuited:!0};if(Mn=lm(Xi),Mn)return he.add(Mn.key),await pe(G,Mn.result,!0,{replace:Fe}),{shortCircuited:!0};let{loaderData:pd,errors:js}=_I(T,ee,bo,ze,lr,Xi,Ee);Ee.forEach((St,ur)=>{St.subscribe(ja=>{(ja||St.done)&&Ee.delete(ur)})}),p.v7_partialHydration&&Be&&T.errors&&(js=pr({},T.errors,js));let Wo=sr(),Bs=ri(oe),Us=Wo||Bs||lr.length>0;return pr({matches:ee,loaderData:pd,errors:js},Us?{fetchers:new Map(T.fetchers)}:{})}function _r(G){if(G&&!di(G[1]))return{[G[0]]:G[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function jt(G){return G.forEach(Z=>{let ee=T.fetchers.get(Z.key),ue=Ad(void 0,ee?ee.data:void 0);T.fetchers.set(Z.key,ue)}),new Map(T.fetchers)}function st(G,Z,ee,ue){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ke(G);let Se=(ue&&ue.flushSync)===!0,Ge=s||a,rt=jC(T.location,T.matches,l,p.v7_prependBasename,ee,p.v7_relativeSplatPath,Z,ue==null?void 0:ue.relative),Fe=hl(Ge,rt,l),Be=Fs(Fe,Ge,rt);if(Be.active&&Be.matches&&(Fe=Be.matches),!Fe){Oe(G,Z,zn(404,{pathname:rt}),{flushSync:Se});return}let{path:Le,submission:ze,error:lt}=mI(p.v7_normalizeFormMethod,!0,rt,ue);if(lt){Oe(G,Z,lt,{flushSync:Se});return}let Ct=af(Fe,Le),Kr=(ue&&ue.preventScrollReset)===!0;if(ze&&no(ze.formMethod)){J(G,Z,Le,Ct,Fe,Be.active,Se,Kr,ze);return}Ae.set(G,{routeId:Z,path:Le}),ye(G,Z,Le,Ct,Fe,Be.active,Se,Kr,ze)}async function J(G,Z,ee,ue,Se,Ge,rt,Fe,Be){Ye(),Ae.delete(G);function Le(Cr){if(!Cr.route.action&&!Cr.route.lazy){let zo=zn(405,{method:Be.formMethod,pathname:ee,routeId:Z});return Oe(G,Z,zo,{flushSync:rt}),!0}return!1}if(!Ge&&Le(ue))return;let ze=T.fetchers.get(G);Ue(G,EY(Be,ze),{flushSync:rt});let lt=new AbortController,Ct=Pu(e.history,ee,lt.signal,Be);if(Ge){let Cr=await pu(Se,new URL(Ct.url).pathname,Ct.signal,G);if(Cr.type==="aborted")return;if(Cr.type==="error"){Oe(G,Z,Cr.error,{flushSync:rt});return}else if(Cr.matches){if(Se=Cr.matches,ue=af(Se,ee),Le(ue))return}else{Oe(G,Z,zn(404,{pathname:ee}),{flushSync:rt});return}}z.set(G,lt);let Kr=Q,Mt=(await Te("action",T,Ct,[ue],Se,G))[ue.route.id];if(Ct.signal.aborted){z.get(G)===lt&&z.delete(G);return}if(p.v7_fetcherPersist&&fe.has(G)){if(xl(Mt)||di(Mt)){Ue(G,es(void 0));return}}else{if(xl(Mt))if(z.delete(G),oe>Kr){Ue(G,es(void 0));return}else return he.add(G),Ue(G,Ad(Be)),pe(Ct,Mt,!1,{fetcherSubmission:Be,preventScrollReset:Fe});if(di(Mt)){Oe(G,Z,Mt.error);return}}if(ls(Mt))throw zn(400,{type:"defer-action"});let lr=T.navigation.location||T.location,Fa=Pu(e.history,lr,lt.signal),bo=s||a,Xi=T.navigation.state!=="idle"?hl(bo,T.navigation.location,l):T.matches;vt(Xi,"Didn't find any matches after fetcher action");let Mn=++Q;ae.set(G,Mn);let pd=Ad(Be,Mt.data);T.fetchers.set(G,pd);let[js,Wo]=vI(e.history,T,Xi,Be,lr,!1,p.v7_skipActionErrorRevalidation,F,j,V,fe,Ae,he,bo,l,[ue.route.id,Mt]);Wo.filter(Cr=>Cr.key!==G).forEach(Cr=>{let zo=Cr.key,hd=T.fetchers.get(zo),wh=Ad(void 0,hd?hd.data:void 0);T.fetchers.set(zo,wh),ke(zo),Cr.controller&&z.set(zo,Cr.controller)}),be({fetchers:new Map(T.fetchers)});let Bs=()=>Wo.forEach(Cr=>ke(Cr.key));lt.signal.addEventListener("abort",Bs);let{loaderResults:Us,fetcherResults:St}=await Xe(T,Xi,js,Wo,Fa);if(lt.signal.aborted)return;lt.signal.removeEventListener("abort",Bs),ae.delete(G),z.delete(G),Wo.forEach(Cr=>z.delete(Cr.key));let ur=lm(Us);if(ur)return pe(Fa,ur.result,!1,{preventScrollReset:Fe});if(ur=lm(St),ur)return he.add(ur.key),pe(Fa,ur.result,!1,{preventScrollReset:Fe});let{loaderData:ja,errors:qs}=_I(T,Xi,Us,void 0,Wo,St,Ee);if(T.fetchers.has(G)){let Cr=es(Mt.data);T.fetchers.set(G,Cr)}ri(Mn),T.navigation.state==="loading"&&Mn>oe?(vt(M,"Expected pending action"),$&&$.abort(),me(T.navigation.location,{matches:Xi,loaderData:ja,errors:qs,fetchers:new Map(T.fetchers)})):(be({errors:qs,loaderData:CI(T.loaderData,ja,Xi,qs),fetchers:new Map(T.fetchers)}),F=!1)}async function ye(G,Z,ee,ue,Se,Ge,rt,Fe,Be){let Le=T.fetchers.get(G);Ue(G,Ad(Be,Le?Le.data:void 0),{flushSync:rt});let ze=new AbortController,lt=Pu(e.history,ee,ze.signal);if(Ge){let Mt=await pu(Se,new URL(lt.url).pathname,lt.signal,G);if(Mt.type==="aborted")return;if(Mt.type==="error"){Oe(G,Z,Mt.error,{flushSync:rt});return}else if(Mt.matches)Se=Mt.matches,ue=af(Se,ee);else{Oe(G,Z,zn(404,{pathname:ee}),{flushSync:rt});return}}z.set(G,ze);let Ct=Q,Gt=(await Te("loader",T,lt,[ue],Se,G))[ue.route.id];if(ls(Gt)&&(Gt=await NE(Gt,lt.signal,!0)||Gt),z.get(G)===ze&&z.delete(G),!lt.signal.aborted){if(fe.has(G)){Ue(G,es(void 0));return}if(xl(Gt))if(oe>Ct){Ue(G,es(void 0));return}else{he.add(G),await pe(lt,Gt,!1,{preventScrollReset:Fe});return}if(di(Gt)){Oe(G,Z,Gt.error);return}vt(!ls(Gt),"Unhandled fetcher deferred data"),Ue(G,es(Gt.data))}}async function pe(G,Z,ee,ue){let{submission:Se,fetcherSubmission:Ge,preventScrollReset:rt,replace:Fe}=ue===void 0?{}:ue;Z.response.headers.has("X-Remix-Revalidate")&&(F=!0);let Be=Z.response.headers.get("Location");vt(Be,"Expected a Location header on the redirect Response"),Be=xI(Be,new URL(G.url),l);let Le=Bf(T.location,Be,{_isRedirect:!0});if(r){let Mt=!1;if(Z.response.headers.has("X-Remix-Reload-Document"))Mt=!0;else if(kE.test(Be)){const lr=e.history.createURL(Be);Mt=lr.origin!==t.location.origin||Ca(lr.pathname,l)==null}if(Mt){Fe?t.location.replace(Be):t.location.assign(Be);return}}$=null;let ze=Fe===!0||Z.response.headers.has("X-Remix-Replace")?Ur.Replace:Ur.Push,{formMethod:lt,formAction:Ct,formEncType:Kr}=T.navigation;!Se&&!Ge&&lt&&Ct&&Kr&&(Se=RI(T.navigation));let Gt=Se||Ge;if(aY.has(Z.response.status)&&Gt&&no(Gt.formMethod))await at(ze,Le,{submission:pr({},Gt,{formAction:Be}),preventScrollReset:rt||D,enableViewTransition:ee?N:void 0});else{let Mt=Xw(Le,Se);await at(ze,Le,{overrideNavigation:Mt,fetcherSubmission:Ge,preventScrollReset:rt||D,enableViewTransition:ee?N:void 0})}}async function Te(G,Z,ee,ue,Se,Ge){let rt,Fe={};try{rt=await hY(u,G,Z,ee,ue,Se,Ge,o,i)}catch(Be){return ue.forEach(Le=>{Fe[Le.route.id]={type:Ht.error,error:Be}}),Fe}for(let[Be,Le]of Object.entries(rt))if(xY(Le)){let ze=Le.result;Fe[Be]={type:Ht.redirect,response:vY(ze,ee,Be,Se,l,p.v7_relativeSplatPath)}}else Fe[Be]=await gY(Le);return Fe}async function Xe(G,Z,ee,ue,Se){let Ge=G.matches,rt=Te("loader",G,Se,ee,Z,null),Fe=Promise.all(ue.map(async ze=>{if(ze.matches&&ze.match&&ze.controller){let Ct=(await Te("loader",G,Pu(e.history,ze.path,ze.controller.signal),[ze.match],ze.matches,ze.key))[ze.match.route.id];return{[ze.key]:Ct}}else return Promise.resolve({[ze.key]:{type:Ht.error,error:zn(404,{pathname:ze.path})}})})),Be=await rt,Le=(await Fe).reduce((ze,lt)=>Object.assign(ze,lt),{});return await Promise.all([CY(Z,Be,Se.signal,Ge,G.loaderData),TY(Z,Le,ue)]),{loaderResults:Be,fetcherResults:Le}}function Ye(){F=!0,j.push(...fu()),Ae.forEach((G,Z)=>{z.has(Z)&&V.add(Z),ke(Z)})}function Ue(G,Z,ee){ee===void 0&&(ee={}),T.fetchers.set(G,Z),be({fetchers:new Map(T.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function Oe(G,Z,ee,ue){ue===void 0&&(ue={});let Se=ml(T.matches,Z);en(G),be({errors:{[Se.route.id]:ee},fetchers:new Map(T.fetchers)},{flushSync:(ue&&ue.flushSync)===!0})}function Br(G){return ve.set(G,(ve.get(G)||0)+1),fe.has(G)&&fe.delete(G),T.fetchers.get(G)||sY}function en(G){let Z=T.fetchers.get(G);z.has(G)&&!(Z&&Z.state==="loading"&&ae.has(G))&&ke(G),Ae.delete(G),ae.delete(G),he.delete(G),p.v7_fetcherPersist&&fe.delete(G),V.delete(G),T.fetchers.delete(G)}function ti(G){let Z=(ve.get(G)||0)-1;Z<=0?(ve.delete(G),fe.add(G),p.v7_fetcherPersist||en(G)):ve.set(G,Z),be({fetchers:new Map(T.fetchers)})}function ke(G){let Z=z.get(G);Z&&(Z.abort(),z.delete(G))}function Ot(G){for(let Z of G){let ee=Br(Z),ue=es(ee.data);T.fetchers.set(Z,ue)}}function sr(){let G=[],Z=!1;for(let ee of he){let ue=T.fetchers.get(ee);vt(ue,"Expected fetcher: "+ee),ue.state==="loading"&&(he.delete(ee),G.push(ee),Z=!0)}return Ot(G),Z}function ri(G){let Z=[];for(let[ee,ue]of ae)if(ue<G){let Se=T.fetchers.get(ee);vt(Se,"Expected fetcher: "+ee),Se.state==="loading"&&(ke(ee),ae.delete(ee),Z.push(ee))}return Ot(Z),Z.length>0}function Na(G,Z){let ee=T.blockers.get(G)||Md;return _e.get(G)!==Z&&_e.set(G,Z),ee}function vh(G){T.blockers.delete(G),_e.delete(G)}function cu(G,Z){let ee=T.blockers.get(G)||Md;vt(ee.state==="unblocked"&&Z.state==="blocked"||ee.state==="blocked"&&Z.state==="blocked"||ee.state==="blocked"&&Z.state==="proceeding"||ee.state==="blocked"&&Z.state==="unblocked"||ee.state==="proceeding"&&Z.state==="unblocked","Invalid blocker state transition: "+ee.state+" -> "+Z.state);let ue=new Map(T.blockers);ue.set(G,Z),be({blockers:ue})}function yh(G){let{currentLocation:Z,nextLocation:ee,historyAction:ue}=G;if(_e.size===0)return;_e.size>1&&dc(!1,"A router only supports one blocker at a time");let Se=Array.from(_e.entries()),[Ge,rt]=Se[Se.length-1],Fe=T.blockers.get(Ge);if(!(Fe&&Fe.state==="proceeding")&&rt({currentLocation:Z,nextLocation:ee,historyAction:ue}))return Ge}function du(G){let Z=zn(404,{pathname:G}),ee=s||a,{matches:ue,route:Se}=SI(ee);return fu(),{notFoundMatches:ue,route:Se,error:Z}}function fu(G){let Z=[];return Ee.forEach((ee,ue)=>{(!G||G(ue))&&(ee.cancel(),Z.push(ue),Ee.delete(ue))}),Z}function $1(G,Z,ee){if(g=G,x=Z,y=ee||null,!b&&T.navigation===Kw){b=!0;let ue=xh(T.location,T.matches);ue!=null&&be({restoreScrollPosition:ue})}return()=>{g=null,x=null,y=null}}function bh(G,Z){return y&&y(G,Z.map(ue=>FX(ue,T.loaderData)))||G.key}function D1(G,Z){if(g&&x){let ee=bh(G,Z);g[ee]=x()}}function xh(G,Z){if(g){let ee=bh(G,Z),ue=g[ee];if(typeof ue=="number")return ue}return null}function Fs(G,Z,ee){if(d)if(G){if(Object.keys(G[0].params).length>0)return{active:!0,matches:sg(Z,ee,l,!0)}}else return{active:!0,matches:sg(Z,ee,l,!0)||[]};return{active:!1,matches:null}}async function pu(G,Z,ee,ue){if(!d)return{type:"success",matches:G};let Se=G;for(;;){let Ge=s==null,rt=s||a,Fe=o;try{await d({signal:ee,path:Z,matches:Se,fetcherKey:ue,patch:(ze,lt)=>{ee.aborted||bI(ze,lt,rt,Fe,i)}})}catch(ze){return{type:"error",error:ze,partialMatches:Se}}finally{Ge&&!ee.aborted&&(a=[...a])}if(ee.aborted)return{type:"aborted"};let Be=hl(rt,Z,l);if(Be)return{type:"success",matches:Be};let Le=sg(rt,Z,l,!0);if(!Le||Se.length===Le.length&&Se.every((ze,lt)=>ze.route.id===Le[lt].route.id))return{type:"success",matches:null};Se=Le}}function L1(G){o={},s=Fg(G,i,void 0,o)}function k1(G,Z){let ee=s==null;bI(G,Z,s||a,o,i),ee&&(a=[...a],be({}))}return C={get basename(){return l},get future(){return p},get state(){return T},get routes(){return a},get window(){return t},initialize:ce,subscribe:je,enableScrollRestoration:$1,navigate:Ie,fetch:st,revalidate:Je,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Br,deleteFetcher:ti,dispose:Ve,getBlocker:Na,deleteBlocker:vh,patchRoutes:k1,_internalFetchControllers:z,_internalActiveDeferreds:Ee,_internalSetRoutes:L1},C}function cY(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function jC(e,t,r,n,i,o,a,s){let l,u;if(a){l=[];for(let p of t)if(l.push(p),p.route.id===a){u=p;break}}else l=t,u=t[t.length-1];let d=ny(i||".",ry(l,o),Ca(e.pathname,r)||e.pathname,s==="path");if(i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u){let p=FE(d.search);if(u.route.index&&!p)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&p){let h=new URLSearchParams(d.search),m=h.getAll("index");h.delete("index"),m.filter(y=>y).forEach(y=>h.append("index",y));let g=h.toString();d.search=g?"?"+g:""}}return n&&r!=="/"&&(d.pathname=d.pathname==="/"?r:ba([r,d.pathname])),Dl(d)}function mI(e,t,r,n){if(!n||!cY(n))return{path:r};if(n.formMethod&&!_Y(n.formMethod))return{path:r,error:zn(405,{method:n.formMethod})};let i=()=>({path:r,error:zn(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=aj(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!no(a))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,g)=>{let[y,x]=g;return""+m+y+"="+x+`
19
+ `},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!no(a))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}vt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=UC(n.formData),u=n.formData;else if(n.body instanceof FormData)l=UC(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=wI(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=wI(l)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(no(d.formMethod))return{path:r,submission:d};let p=Os(r);return t&&p.search&&FE(p.search)&&l.append("index",""),p.search="?"+l,{path:Dl(p),submission:d}}function gI(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function vI(e,t,r,n,i,o,a,s,l,u,d,p,h,m,g,y){let x=y?di(y[1])?y[1].error:y[1].data:void 0,b=e.createURL(t.location),S=e.createURL(i),w=r;o&&t.errors?w=gI(r,Object.keys(t.errors)[0],!0):y&&di(y[1])&&(w=gI(r,y[0]));let _=y?y[1].statusCode:void 0,O=a&&_&&_>=400,C=w.filter((M,D)=>{let{route:$}=M;if($.lazy)return!0;if($.loader==null)return!1;if(o)return BC($,t.loaderData,t.errors);if(dY(t.loaderData,t.matches[D],M)||l.some(q=>q===M.route.id))return!0;let N=t.matches[D],B=M;return yI(M,pr({currentUrl:b,currentParams:N.params,nextUrl:S,nextParams:B.params},n,{actionResult:x,actionStatus:_,defaultShouldRevalidate:O?!1:s||b.pathname+b.search===S.pathname+S.search||b.search!==S.search||ij(N,B)}))}),T=[];return p.forEach((M,D)=>{if(o||!r.some(U=>U.route.id===M.routeId)||d.has(D))return;let $=hl(m,M.path,g);if(!$){T.push({key:D,routeId:M.routeId,path:M.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(D),B=af($,M.path),q=!1;h.has(D)?q=!1:u.has(D)?(u.delete(D),q=!0):N&&N.state!=="idle"&&N.data===void 0?q=s:q=yI(B,pr({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:_,defaultShouldRevalidate:O?!1:s})),q&&T.push({key:D,routeId:M.routeId,path:M.path,matches:$,match:B,controller:new AbortController})}),[C,T]}function BC(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function dY(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function ij(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function yI(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function bI(e,t,r,n,i){var o;let a;if(e){let u=n[e];vt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),a=u.children}else a=r;let s=t.filter(u=>!a.some(d=>oj(u,d))),l=Fg(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],n);a.push(...l)}function oj(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(o=>oj(r,o))}):!1}async function fY(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];vt(i,"No route found in manifest");let o={};for(let a in n){let l=i[a]!==void 0&&a!=="hasErrorBoundary";dc(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!kX.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,pr({},t(i),{lazy:void 0}))}async function pY(e){let{matches:t}=e,r=t.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[r[a].route.id]:o}),{})}async function hY(e,t,r,n,i,o,a,s,l,u){let d=o.map(m=>m.route.lazy?fY(m.route,l,s):void 0),p=o.map((m,g)=>{let y=d[g],x=i.some(S=>S.route.id===m.route.id);return pr({},m,{shouldLoad:x,resolve:async S=>(S&&n.method==="GET"&&(m.route.lazy||m.route.loader)&&(x=!0),x?mY(t,n,m,y,S,u):Promise.resolve({type:Ht.data,result:void 0}))})}),h=await e({matches:p,request:n,params:o[0].params,fetcherKey:a,context:u});try{await Promise.all(d)}catch{}return h}async function mY(e,t,r,n,i,o){let a,s,l=u=>{let d,p=new Promise((g,y)=>d=y);s=()=>d(),t.signal.addEventListener("abort",s);let h=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),m=(async()=>{try{return{type:"data",result:await(i?i(y=>h(y)):h())}}catch(g){return{type:"error",result:g}}})();return Promise.race([m,p])};try{let u=r.route[e];if(n)if(u){let d,[p]=await Promise.all([l(u).catch(h=>{d=h}),n]);if(d!==void 0)throw d;a=p}else if(await n,u=r.route[e],u)a=await l(u);else if(e==="action"){let d=new URL(t.url),p=d.pathname+d.search;throw zn(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:Ht.data,result:void 0};else if(u)a=await l(u);else{let d=new URL(t.url),p=d.pathname+d.search;throw zn(404,{pathname:p})}vt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Ht.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function gY(e){let{result:t,type:r}=e;if(sj(t)){let p;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?p=null:p=await t.json():p=await t.text()}catch(h){return{type:Ht.error,error:h}}return r===Ht.error?{type:Ht.error,error:new Bg(t.status,t.statusText,p),statusCode:t.status,headers:t.headers}:{type:Ht.data,data:p,statusCode:t.status,headers:t.headers}}if(r===Ht.error){if(EI(t)){var n,i;if(t.data instanceof Error){var o,a;return{type:Ht.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:Ht.error,error:new Bg(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Uf(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:Ht.error,error:t,statusCode:Uf(t)?t.status:void 0}}if(wY(t)){var s,l;return{type:Ht.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(EI(t)){var u,d;return{type:Ht.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:Ht.data,data:t}}function vY(e,t,r,n,i,o){let a=e.headers.get("Location");if(vt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!kE.test(a)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);a=jC(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function xI(e,t,r){if(kE.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Ca(i.pathname,r)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Pu(e,t,r,n){let i=e.createURL(aj(t)).toString(),o={signal:r};if(n&&no(n.formMethod)){let{formMethod:a,formEncType:s}=n;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=UC(n.formData):o.body=n.formData}return new Request(i,o)}function UC(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function wI(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function yY(e,t,r,n,i){let o={},a=null,s,l=!1,u={},d=r&&di(r[1])?r[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let h=p.route.id,m=t[h];if(vt(!xl(m),"Cannot handle redirect results in processLoaderData"),di(m)){let g=m.error;d!==void 0&&(g=d,d=void 0),a=a||{};{let y=ml(e,h);a[y.route.id]==null&&(a[y.route.id]=g)}o[h]=void 0,l||(l=!0,s=Uf(m.error)?m.error.status:500),m.headers&&(u[h]=m.headers)}else ls(m)?(n.set(h,m.deferredData),o[h]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(u[h]=m.headers)):(o[h]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(u[h]=m.headers))}),d!==void 0&&r&&(a={[r[0]]:d},o[r[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function _I(e,t,r,n,i,o,a){let{loaderData:s,errors:l}=yY(t,r,n,a);return i.forEach(u=>{let{key:d,match:p,controller:h}=u,m=o[d];if(vt(m,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(di(m)){let g=ml(e.matches,p==null?void 0:p.route.id);l&&l[g.route.id]||(l=pr({},l,{[g.route.id]:m.error})),e.fetchers.delete(d)}else if(xl(m))vt(!1,"Unhandled fetcher revalidation redirect");else if(ls(m))vt(!1,"Unhandled fetcher deferred data");else{let g=es(m.data);e.fetchers.set(d,g)}}),{loaderData:s,errors:l}}function CI(e,t,r,n){let i=pr({},t);for(let o of r){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),n&&n.hasOwnProperty(a))break}return i}function TI(e){return e?di(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ml(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function SI(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function zn(e,t){let{pathname:r,routeId:n,method:i,type:o,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Bg(e||500,s,new Error(l),!0)}function lm(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if(xl(i))return{key:n,result:i}}}function aj(e){let t=typeof e=="string"?Os(e):e;return Dl(pr({},t,{hash:""}))}function bY(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xY(e){return sj(e.result)&&oY.has(e.result.status)}function ls(e){return e.type===Ht.deferred}function di(e){return e.type===Ht.error}function xl(e){return(e&&e.type)===Ht.redirect}function EI(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function wY(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function sj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function _Y(e){return iY.has(e.toLowerCase())}function no(e){return rY.has(e.toLowerCase())}async function CY(e,t,r,n,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],u=e.find(h=>(h==null?void 0:h.route.id)===s);if(!u)continue;let d=n.find(h=>h.route.id===u.route.id),p=d!=null&&!ij(d,u)&&(i&&i[u.route.id])!==void 0;ls(l)&&p&&await NE(l,r,!1).then(h=>{h&&(t[s]=h)})}}async function TY(e,t,r){for(let n=0;n<r.length;n++){let{key:i,routeId:o,controller:a}=r[n],s=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&ls(s)&&(vt(a,"Expected an AbortController for revalidating fetcher deferred result"),await NE(s,a.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function NE(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Ht.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ht.error,error:i}}return{type:Ht.data,data:e.deferredData.data}}}function FE(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function af(e,t){let r=typeof t=="string"?Os(t).search:t.search;if(e[e.length-1].route.index&&FE(r||""))return e[e.length-1];let n=tj(e);return n[n.length-1]}function RI(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:a}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function Xw(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SY(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ad(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function EY(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function es(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function RY(e,t){try{let r=e.sessionStorage.getItem(nj);if(r){let n=JSON.parse(r);for(let[i,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function PY(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(nj,JSON.stringify(r))}catch(n){dc(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
20
+ * React Router v6.30.1
21
+ *
22
+ * Copyright (c) Remix Software Inc.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE.md file in the root directory of this source tree.
26
+ *
27
+ * @license MIT
28
+ */function Ug(){return Ug=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},Ug.apply(this,arguments)}const yp=P.createContext(null),jE=P.createContext(null),Ma=P.createContext(null),BE=P.createContext(null),Ms=P.createContext({outlet:null,matches:[],isDataRoute:!1}),lj=P.createContext(null);function OY(e,t){let{relative:r}=t===void 0?{}:t;Fc()||vt(!1);let{basename:n,navigator:i}=P.useContext(Ma),{hash:o,pathname:a,search:s}=oy(e,{relative:r}),l=a;return n!=="/"&&(l=a==="/"?n:ba([n,a])),i.createHref({pathname:l,search:s,hash:o})}function Fc(){return P.useContext(BE)!=null}function Kl(){return Fc()||vt(!1),P.useContext(BE).location}function uj(e){P.useContext(Ma).static||P.useLayoutEffect(e)}function iy(){let{isDataRoute:e}=P.useContext(Ms);return e?UY():MY()}function MY(){Fc()||vt(!1);let e=P.useContext(yp),{basename:t,future:r,navigator:n}=P.useContext(Ma),{matches:i}=P.useContext(Ms),{pathname:o}=Kl(),a=JSON.stringify(ry(i,r.v7_relativeSplatPath)),s=P.useRef(!1);return uj(()=>{s.current=!0}),P.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=ny(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ba([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,a,o,e])}function oy(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=P.useContext(Ma),{matches:i}=P.useContext(Ms),{pathname:o}=Kl(),a=JSON.stringify(ry(i,n.v7_relativeSplatPath));return P.useMemo(()=>ny(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function AY(e,t,r,n){Fc()||vt(!1);let{navigator:i}=P.useContext(Ma),{matches:o}=P.useContext(Ms),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Kl(),d;d=u;let p=d.pathname||"/",h=p;if(l!=="/"){let y=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=hl(e,{pathname:h});return kY(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:ba([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:ba([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r,n)}function IY(){let e=BY(),t=Uf(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),r?P.createElement("pre",{style:i},r):null,null)}const $Y=P.createElement(IY,null);class DY extends P.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?P.createElement(Ms.Provider,{value:this.props.routeContext},P.createElement(lj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function LY(e){let{routeContext:t,match:r,children:n}=e,i=P.useContext(yp);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),P.createElement(Ms.Provider,{value:t},n)}function kY(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let d=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);d>=0||vt(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<a.length;d++){let p=a[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:h,errors:m}=r,g=p.route.loader&&h[p.route.id]===void 0&&(!m||m[p.route.id]===void 0);if(p.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,p,h)=>{let m,g=!1,y=null,x=null;r&&(m=s&&p.route.id?s[p.route.id]:void 0,y=p.route.errorElement||$Y,l&&(u<0&&h===0?(qY("route-fallback"),g=!0,x=null):u===h&&(g=!0,x=p.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,h+1)),S=()=>{let w;return m?w=y:g?w=x:p.route.Component?w=P.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=d,P.createElement(LY,{match:p,routeContext:{outlet:d,matches:b,isDataRoute:r!=null},children:w})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?P.createElement(DY,{location:r.location,revalidation:r.revalidation,component:y,error:m,children:S(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):S()},null)}var cj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cj||{}),dj=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}(dj||{});function NY(e){let t=P.useContext(yp);return t||vt(!1),t}function FY(e){let t=P.useContext(jE);return t||vt(!1),t}function jY(e){let t=P.useContext(Ms);return t||vt(!1),t}function fj(e){let t=jY(),r=t.matches[t.matches.length-1];return r.route.id||vt(!1),r.route.id}function BY(){var e;let t=P.useContext(lj),r=FY(dj.UseRouteError),n=fj();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function UY(){let{router:e}=NY(cj.UseNavigateStable),t=fj(),r=P.useRef(!1);return uj(()=>{r.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ug({fromRouteId:t},o)))},[e,t])}const PI={};function qY(e,t,r){PI[e]||(PI[e]=!0)}function HY(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function WY(e){let{to:t,replace:r,state:n,relative:i}=e;Fc()||vt(!1);let{future:o,static:a}=P.useContext(Ma),{matches:s}=P.useContext(Ms),{pathname:l}=Kl(),u=iy(),d=ny(t,ry(s,o.v7_relativeSplatPath),l,i==="path"),p=JSON.stringify(d);return P.useEffect(()=>u(JSON.parse(p),{replace:r,state:n,relative:i}),[u,p,i,r,n]),null}function zY(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Ur.Pop,navigator:o,static:a=!1,future:s}=e;Fc()&&vt(!1);let l=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:l,navigator:o,static:a,future:Ug({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof n=="string"&&(n=Os(n));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:g="default"}=n,y=P.useMemo(()=>{let x=Ca(d,l);return x==null?null:{location:{pathname:x,search:p,hash:h,state:m,key:g},navigationType:i}},[l,d,p,h,m,g,i]);return y==null?null:P.createElement(Ma.Provider,{value:u},P.createElement(BE.Provider,{children:r,value:y}))}new Promise(()=>{});function VY(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
29
+ * React Router DOM v6.30.1
30
+ *
31
+ * Copyright (c) Remix Software Inc.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE.md file in the root directory of this source tree.
35
+ *
36
+ * @license MIT
37
+ */function fc(){return fc=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},fc.apply(this,arguments)}function pj(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function GY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KY(e,t){return e.button===0&&(!t||t==="_self")&&!GY(e)}const XY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],YY=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ZY="6";try{window.__reactRouterVersion=ZY}catch{}function jJe(e,t){return uY({basename:t==null?void 0:t.basename,future:fc({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:$X({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||JY(),routes:e,mapRouteProperties:VY,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function JY(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=fc({},t,{errors:QY(t.errors)})),t}function QY(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new Bg(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let o=new Error(i.message);o.stack="",r[n]=o}}else r[n]=i;return r}const hj=P.createContext({isTransitioning:!1}),eZ=P.createContext(new Map),tZ="startTransition",OI=P[tZ],rZ="flushSync",MI=jF[rZ];function nZ(e){OI?OI(e):e()}function Id(e){MI?MI(e):e()}class iZ{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function BJe(e){let{fallbackElement:t,router:r,future:n}=e,[i,o]=P.useState(r.state),[a,s]=P.useState(),[l,u]=P.useState({isTransitioning:!1}),[d,p]=P.useState(),[h,m]=P.useState(),[g,y]=P.useState(),x=P.useRef(new Map),{v7_startTransition:b}=n||{},S=P.useCallback(M=>{b?nZ(M):M()},[b]),w=P.useCallback((M,D)=>{let{deletedFetchers:$,flushSync:N,viewTransitionOpts:B}=D;M.fetchers.forEach((U,F)=>{U.data!==void 0&&x.current.set(F,U.data)}),$.forEach(U=>x.current.delete(U));let q=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||q){N?Id(()=>o(M)):S(()=>o(M));return}if(N){Id(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let U=r.window.document.startViewTransition(()=>{Id(()=>o(M))});U.finished.finally(()=>{Id(()=>{p(void 0),m(void 0),s(void 0),u({isTransitioning:!1})})}),Id(()=>m(U));return}h?(d&&d.resolve(),h.skipTransition(),y({state:M,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(M),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,h,d,x,S]);P.useLayoutEffect(()=>r.subscribe(w),[r,w]),P.useEffect(()=>{l.isTransitioning&&!l.flushSync&&p(new iZ)},[l]),P.useEffect(()=>{if(d&&a&&r.window){let M=a,D=d.promise,$=r.window.document.startViewTransition(async()=>{S(()=>o(M)),await D});$.finished.finally(()=>{p(void 0),m(void 0),s(void 0),u({isTransitioning:!1})}),m($)}},[S,a,d,r.window]),P.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,h,i.location,a]),P.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[l.isTransitioning,g]),P.useEffect(()=>{},[]);let _=P.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:M=>r.navigate(M),push:(M,D,$)=>r.navigate(M,{state:D,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(M,D,$)=>r.navigate(M,{replace:!0,state:D,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[r]),O=r.basename||"/",C=P.useMemo(()=>({router:r,navigator:_,static:!1,basename:O}),[r,_,O]),T=P.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return P.useEffect(()=>HY(n,r.future),[n,r.future]),P.createElement(P.Fragment,null,P.createElement(yp.Provider,{value:C},P.createElement(jE.Provider,{value:i},P.createElement(eZ.Provider,{value:x.current},P.createElement(hj.Provider,{value:l},P.createElement(zY,{basename:O,location:i.location,navigationType:i.historyAction,navigator:_,future:T},i.initialized||r.future.v7_partialHydration?P.createElement(oZ,{routes:r.routes,future:r.future,state:i}):t))))),null)}const oZ=P.memo(aZ);function aZ(e){let{routes:t,future:r,state:n}=e;return AY(t,void 0,n,r)}const sZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uZ=P.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,h=pj(t,XY),{basename:m}=P.useContext(Ma),g,y=!1;if(typeof u=="string"&&lZ.test(u)&&(g=u,sZ))try{let w=new URL(window.location.href),_=u.startsWith("//")?new URL(w.protocol+u):new URL(u),O=Ca(_.pathname,m);_.origin===w.origin&&O!=null?u=O+_.search+_.hash:y=!0}catch{}let x=OY(u,{relative:i}),b=fZ(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:p});function S(w){n&&n(w),w.defaultPrevented||b(w)}return P.createElement("a",fc({},h,{href:g||x,onClick:y||o?n:S,ref:r,target:l}))}),cZ=P.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,viewTransition:u,children:d}=t,p=pj(t,YY),h=oy(l,{relative:p.relative}),m=Kl(),g=P.useContext(jE),{navigator:y,basename:x}=P.useContext(Ma),b=g!=null&&pZ(h)&&u===!0,S=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,w=m.pathname,_=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,S=S.toLowerCase()),_&&x&&(_=Ca(_,x)||_);const O=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let C=w===S||!a&&w.startsWith(S)&&w.charAt(O)==="/",T=_!=null&&(_===S||!a&&_.startsWith(S)&&_.charAt(S.length)==="/"),M={isActive:C,isPending:T,isTransitioning:b},D=C?n:void 0,$;typeof o=="function"?$=o(M):$=[o,C?"active":null,T?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(M):s;return P.createElement(uZ,fc({},p,{"aria-current":D,className:$,ref:r,style:N,to:l,viewTransition:u}),typeof d=="function"?d(M):d)});var qC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qC||(qC={}));var AI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AI||(AI={}));function dZ(e){let t=P.useContext(yp);return t||vt(!1),t}function fZ(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=iy(),u=Kl(),d=oy(e,{relative:a});return P.useCallback(p=>{if(KY(p,r)){p.preventDefault();let h=n!==void 0?n:Dl(u)===Dl(d);l(e,{replace:h,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,d,n,i,r,e,o,a,s])}function pZ(e,t){t===void 0&&(t={});let r=P.useContext(hj);r==null&&vt(!1);let{basename:n}=dZ(qC.useViewTransitionState),i=oy(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=Ca(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=Ca(r.nextLocation.pathname,n)||r.nextLocation.pathname;return jg(i.pathname,a)!=null||jg(i.pathname,o)!=null}const Js=new Map;function UJe(e,t){if(FF===void 0)throw new TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');const[r]=qr(t==null?void 0:t.defaultValue);if(typeof window>"u")return[r,()=>{},{isPersistent:!0,removeItem:()=>{}}];const n=t==null?void 0:t.serializer;return hZ(e,r,t==null?void 0:t.storageSync,n==null?void 0:n.parse,n==null?void 0:n.stringify)}function hZ(e,t,r=!0,n=mZ,i=JSON.stringify){!Js.has(e)&&t!==void 0&&$d(()=>localStorage.getItem(e))===null&&$d(()=>localStorage.setItem(e,i(t)));const o=Dr({item:null,parsed:t}),a=FF(At(l=>{const u=d=>{e===d&&l()};return HC.add(u),()=>{HC.delete(u)}},[e]),()=>{var l;const u=(l=$d(()=>localStorage.getItem(e)))!==null&&l!==void 0?l:null;if(Js.has(e))o.current={item:u,parsed:Js.get(e)};else if(u!==o.current.item){let d;try{d=u===null?t:n(u)}catch{d=t}o.current={item:u,parsed:d}}return o.current.parsed},()=>t),s=At(l=>{const u=l instanceof Function?l(o.current.parsed):l;try{localStorage.setItem(e,i(u)),Js.delete(e)}catch{Js.set(e,u)}Yw(e)},[e,i]);return It(()=>{if(!r)return;const l=u=>{u.storageArea===$d(()=>localStorage)&&u.key===e&&Yw(e)};return window.addEventListener("storage",l),()=>window.removeEventListener("storage",l)},[e,r]),Jr(()=>[a,s,{isPersistent:a===t||!Js.has(e),removeItem(){$d(()=>localStorage.removeItem(e)),Js.delete(e),Yw(e)}}],[e,s,a,t])}const HC=new Set;function Yw(e){for(const t of[...HC])t(e)}function mZ(e){return e==="undefined"?void 0:JSON.parse(e)}function $d(e){try{return e()}catch{return}}function gZ(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 vZ(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 yZ=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},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(vZ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gZ(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),wn="-ms-",qg="-moz-",kt="-webkit-",mj="comm",UE="rule",qE="decl",bZ="@import",gj="@keyframes",xZ="@layer",wZ=Math.abs,ay=String.fromCharCode,_Z=Object.assign;function CZ(e,t){return yn(e,0)^45?(((t<<2^yn(e,0))<<2^yn(e,1))<<2^yn(e,2))<<2^yn(e,3):0}function vj(e){return e.trim()}function TZ(e,t){return(e=t.exec(e))?e[0]:e}function Nt(e,t,r){return e.replace(t,r)}function WC(e,t){return e.indexOf(t)}function yn(e,t){return e.charCodeAt(t)|0}function qf(e,t,r){return e.slice(t,r)}function Mo(e){return e.length}function HE(e){return e.length}function um(e,t){return t.push(e),e}function SZ(e,t){return e.map(t).join("")}var sy=1,pc=1,yj=0,Zn=0,Wr=0,jc="";function ly(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:sy,column:pc,length:a,return:""}}function Dd(e,t){return _Z(ly("",null,null,"",null,null,0),e,{length:-e.length},t)}function EZ(){return Wr}function RZ(){return Wr=Zn>0?yn(jc,--Zn):0,pc--,Wr===10&&(pc=1,sy--),Wr}function pi(){return Wr=Zn<yj?yn(jc,Zn++):0,pc++,Wr===10&&(pc=1,sy++),Wr}function ko(){return yn(jc,Zn)}function lg(){return Zn}function bp(e,t){return qf(jc,e,t)}function Hf(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 bj(e){return sy=pc=1,yj=Mo(jc=e),Zn=0,[]}function xj(e){return jc="",e}function ug(e){return vj(bp(Zn-1,zC(e===91?e+2:e===40?e+1:e)))}function PZ(e){for(;(Wr=ko())&&Wr<33;)pi();return Hf(e)>2||Hf(Wr)>3?"":" "}function OZ(e,t){for(;--t&&pi()&&!(Wr<48||Wr>102||Wr>57&&Wr<65||Wr>70&&Wr<97););return bp(e,lg()+(t<6&&ko()==32&&pi()==32))}function zC(e){for(;pi();)switch(Wr){case e:return Zn;case 34:case 39:e!==34&&e!==39&&zC(Wr);break;case 40:e===41&&zC(e);break;case 92:pi();break}return Zn}function MZ(e,t){for(;pi()&&e+Wr!==57;)if(e+Wr===84&&ko()===47)break;return"/*"+bp(t,Zn-1)+"*"+ay(e===47?e:pi())}function AZ(e){for(;!Hf(ko());)pi();return bp(e,Zn)}function IZ(e){return xj(cg("",null,null,null,[""],e=bj(e),0,[0],e))}function cg(e,t,r,n,i,o,a,s,l){for(var u=0,d=0,p=a,h=0,m=0,g=0,y=1,x=1,b=1,S=0,w="",_=i,O=o,C=n,T=w;x;)switch(g=S,S=pi()){case 40:if(g!=108&&yn(T,p-1)==58){WC(T+=Nt(ug(S),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=ug(S);break;case 9:case 10:case 13:case 32:T+=PZ(g);break;case 92:T+=OZ(lg()-1,7);continue;case 47:switch(ko()){case 42:case 47:um($Z(MZ(pi(),lg()),t,r),l);break;default:T+="/"}break;case 123*y:s[u++]=Mo(T)*b;case 125*y:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+d:b==-1&&(T=Nt(T,/\f/g,"")),m>0&&Mo(T)-p&&um(m>32?$I(T+";",n,r,p-1):$I(Nt(T," ","")+";",n,r,p-2),l);break;case 59:T+=";";default:if(um(C=II(T,t,r,u,d,i,s,w,_=[],O=[],p),o),S===123)if(d===0)cg(T,t,C,C,_,o,p,s,O);else switch(h===99&&yn(T,3)===110?100:h){case 100:case 108:case 109:case 115:cg(e,C,C,n&&um(II(e,C,C,0,0,i,s,w,i,_=[],p),O),i,O,p,s,n?_:O);break;default:cg(T,C,C,C,[""],O,0,s,O)}}u=d=m=0,y=b=1,w=T="",p=a;break;case 58:p=1+Mo(T),m=g;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&RZ()==125)continue}switch(T+=ay(S),S*y){case 38:b=d>0?1:(T+="\f",-1);break;case 44:s[u++]=(Mo(T)-1)*b,b=1;break;case 64:ko()===45&&(T+=ug(pi())),h=ko(),d=p=Mo(w=T+=AZ(lg())),S++;break;case 45:g===45&&Mo(T)==2&&(y=0)}}return o}function II(e,t,r,n,i,o,a,s,l,u,d){for(var p=i-1,h=i===0?o:[""],m=HE(h),g=0,y=0,x=0;g<n;++g)for(var b=0,S=qf(e,p+1,p=wZ(y=a[g])),w=e;b<m;++b)(w=vj(y>0?h[b]+" "+S:Nt(S,/&\f/g,h[b])))&&(l[x++]=w);return ly(e,t,r,i===0?UE:s,l,u,d)}function $Z(e,t,r){return ly(e,t,r,mj,ay(EZ()),qf(e,2,-2),0)}function $I(e,t,r,n){return ly(e,t,r,qE,qf(e,0,n),qf(e,n+1,-1),n)}function tc(e,t){for(var r="",n=HE(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function DZ(e,t,r,n){switch(e.type){case xZ:if(e.children.length)break;case bZ:case qE:return e.return=e.return||e.value;case mj:return"";case gj:return e.return=e.value+"{"+tc(e.children,n)+"}";case UE:e.value=e.props.join(",")}return Mo(r=tc(e.children,n))?e.return=e.value+"{"+r+"}":""}function LZ(e){var t=HE(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function kZ(e){return function(t){t.root||(t=t.return)&&e(t)}}function wj(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var NZ=function(t,r,n){for(var i=0,o=0;i=o,o=ko(),i===38&&o===12&&(r[n]=1),!Hf(o);)pi();return bp(t,Zn)},FZ=function(t,r){var n=-1,i=44;do switch(Hf(i)){case 0:i===38&&ko()===12&&(r[n]=1),t[n]+=NZ(Zn-1,r,n);break;case 2:t[n]+=ug(i);break;case 4:if(i===44){t[++n]=ko()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ay(i)}while(i=pi());return t},jZ=function(t,r){return xj(FZ(bj(t),r))},DI=new WeakMap,BZ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=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&&!DI.get(n))&&!i){DI.set(t,!0);for(var o=[],a=jZ(r,o),s=n.props,l=0,u=0;l<a.length;l++)for(var d=0;d<s.length;d++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},UZ=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function _j(e,t){switch(CZ(e,t)){case 5103:return kt+"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 kt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return kt+e+qg+e+wn+e+e;case 6828:case 4268:return kt+e+wn+e+e;case 6165:return kt+e+wn+"flex-"+e+e;case 5187:return kt+e+Nt(e,/(\w+).+(:[^]+)/,kt+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return kt+e+wn+"flex-item-"+Nt(e,/flex-|-self/,"")+e;case 4675:return kt+e+wn+"flex-line-pack"+Nt(e,/align-content|flex-|-self/,"")+e;case 5548:return kt+e+wn+Nt(e,"shrink","negative")+e;case 5292:return kt+e+wn+Nt(e,"basis","preferred-size")+e;case 6060:return kt+"box-"+Nt(e,"-grow","")+kt+e+wn+Nt(e,"grow","positive")+e;case 4554:return kt+Nt(e,/([^-])(transform)/g,"$1"+kt+"$2")+e;case 6187:return Nt(Nt(Nt(e,/(zoom-|grab)/,kt+"$1"),/(image-set)/,kt+"$1"),e,"")+e;case 5495:case 3959:return Nt(e,/(image-set\([^]*)/,kt+"$1$`$1");case 4968:return Nt(Nt(e,/(.+:)(flex-)?(.*)/,kt+"box-pack:$3"+wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kt+e+e;case 4095:case 3583:case 4068:case 2532:return Nt(e,/(.+)-inline(.+)/,kt+"$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(Mo(e)-1-t>6)switch(yn(e,t+1)){case 109:if(yn(e,t+4)!==45)break;case 102:return Nt(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+qg+(yn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~WC(e,"stretch")?_j(Nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yn(e,t+1)!==115)break;case 6444:switch(yn(e,Mo(e)-3-(~WC(e,"!important")&&10))){case 107:return Nt(e,":",":"+kt)+e;case 101:return Nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(yn(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+wn+"$2box$3")+e}break;case 5936:switch(yn(e,t+11)){case 114:return kt+e+wn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+wn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+wn+Nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+wn+e+e}return e}var qZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case qE:t.return=_j(t.value,t.length);break;case gj:return tc([Dd(t,{value:Nt(t.value,"@","@"+kt)})],i);case UE:if(t.length)return SZ(t.props,function(o){switch(TZ(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tc([Dd(t,{props:[Nt(o,/:(read-\w+)/,":"+qg+"$1")]})],i);case"::placeholder":return tc([Dd(t,{props:[Nt(o,/:(plac\w+)/,":"+kt+"input-$1")]}),Dd(t,{props:[Nt(o,/:(plac\w+)/,":"+qg+"$1")]}),Dd(t,{props:[Nt(o,/:(plac\w+)/,wn+"input-$1")]})],i)}return""})}},HZ=[qZ],Cj=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 i=t.stylisPlugins||HZ,o={},a,s=[];a=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++)o[x[b]]=!0;s.push(y)});var l,u=[BZ,UZ];{var d,p=[DZ,kZ(function(y){d.insert(y)})],h=LZ(u.concat(i,p)),m=function(x){return tc(IZ(x),h)};l=function(x,b,S,w){d=S,m(x?x+"{"+b.styles+"}":b.styles),w&&(g.inserted[b.name]=!0)}}var g={key:r,sheet:new yZ({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},Tj={exports:{}},zt={};/** @license React v16.13.1
38
+ * react-is.production.min.js
39
+ *
40
+ * Copyright (c) Facebook, Inc. and its affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */var dn=typeof Symbol=="function"&&Symbol.for,WE=dn?Symbol.for("react.element"):60103,zE=dn?Symbol.for("react.portal"):60106,uy=dn?Symbol.for("react.fragment"):60107,cy=dn?Symbol.for("react.strict_mode"):60108,dy=dn?Symbol.for("react.profiler"):60114,fy=dn?Symbol.for("react.provider"):60109,py=dn?Symbol.for("react.context"):60110,VE=dn?Symbol.for("react.async_mode"):60111,hy=dn?Symbol.for("react.concurrent_mode"):60111,my=dn?Symbol.for("react.forward_ref"):60112,gy=dn?Symbol.for("react.suspense"):60113,WZ=dn?Symbol.for("react.suspense_list"):60120,vy=dn?Symbol.for("react.memo"):60115,yy=dn?Symbol.for("react.lazy"):60116,zZ=dn?Symbol.for("react.block"):60121,VZ=dn?Symbol.for("react.fundamental"):60117,GZ=dn?Symbol.for("react.responder"):60118,KZ=dn?Symbol.for("react.scope"):60119;function vi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case WE:switch(e=e.type,e){case VE:case hy:case uy:case dy:case cy:case gy:return e;default:switch(e=e&&e.$$typeof,e){case py:case my:case yy:case vy:case fy:return e;default:return t}}case zE:return t}}}function Sj(e){return vi(e)===hy}zt.AsyncMode=VE;zt.ConcurrentMode=hy;zt.ContextConsumer=py;zt.ContextProvider=fy;zt.Element=WE;zt.ForwardRef=my;zt.Fragment=uy;zt.Lazy=yy;zt.Memo=vy;zt.Portal=zE;zt.Profiler=dy;zt.StrictMode=cy;zt.Suspense=gy;zt.isAsyncMode=function(e){return Sj(e)||vi(e)===VE};zt.isConcurrentMode=Sj;zt.isContextConsumer=function(e){return vi(e)===py};zt.isContextProvider=function(e){return vi(e)===fy};zt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===WE};zt.isForwardRef=function(e){return vi(e)===my};zt.isFragment=function(e){return vi(e)===uy};zt.isLazy=function(e){return vi(e)===yy};zt.isMemo=function(e){return vi(e)===vy};zt.isPortal=function(e){return vi(e)===zE};zt.isProfiler=function(e){return vi(e)===dy};zt.isStrictMode=function(e){return vi(e)===cy};zt.isSuspense=function(e){return vi(e)===gy};zt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===uy||e===hy||e===dy||e===cy||e===gy||e===WZ||typeof e=="object"&&e!==null&&(e.$$typeof===yy||e.$$typeof===vy||e.$$typeof===fy||e.$$typeof===py||e.$$typeof===my||e.$$typeof===VZ||e.$$typeof===GZ||e.$$typeof===KZ||e.$$typeof===zZ)};zt.typeOf=vi;Tj.exports=zt;var XZ=Tj.exports,Ej=XZ,YZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ZZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Rj={};Rj[Ej.ForwardRef]=YZ;Rj[Ej.Memo]=ZZ;var JZ=!0;function Pj(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var GE=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||JZ===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},KE=function(t,r,n){GE(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function QZ(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=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(i){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 eJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tJ=/[A-Z]|^ms/g,rJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oj=function(t){return t.charCodeAt(1)===45},LI=function(t){return t!=null&&typeof t!="boolean"},Zw=wj(function(e){return Oj(e)?e:e.replace(tJ,"-$&").toLowerCase()}),kI=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(rJ,function(n,i,o){return Ao={name:i,styles:o,next:Ao},i})}return eJ[t]!==1&&!Oj(t)&&typeof r=="number"&&r!==0?r+"px":r};function Wf(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ao={name:i.name,styles:i.styles,next:Ao},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ao={name:a.name,styles:a.styles,next:Ao},a=a.next;var s=o.styles+";";return s}return nJ(e,t,r)}case"function":{if(e!==void 0){var l=Ao,u=r(e);return Ao=l,Wf(e,t,u)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function nJ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Wf(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":LI(s)&&(n+=Zw(o)+":"+kI(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)LI(a[l])&&(n+=Zw(o)+":"+kI(o,a[l])+";");else{var u=Wf(e,t,a);switch(o){case"animation":case"animationName":{n+=Zw(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}var NI=/label:\s*([^\s;{]+)\s*(;|$)/g,Ao;function xp(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ao=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Wf(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Wf(r,t,e[s]),n){var l=o;i+=l[s]}NI.lastIndex=0;for(var u="",d;(d=NI.exec(i))!==null;)u+="-"+d[1];var p=QZ(i)+u;return{name:p,styles:i,next:Ao}}var iJ=function(t){return t()},Mj=P.useInsertionEffect?P.useInsertionEffect:!1,Aj=Mj||iJ,FI=Mj||P.useLayoutEffect,Ij=P.createContext(typeof HTMLElement<"u"?Cj({key:"css"}):null),oJ=Ij.Provider,XE=function(t){return Ea(function(r,n){var i=Ra(Ij);return t(r,i,n)})},Bc=P.createContext({}),YE={}.hasOwnProperty,VC="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",aJ=function(t,r){var n={};for(var i in r)YE.call(r,i)&&(n[i]=r[i]);return n[VC]=t,n},sJ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return GE(r,n,i),Aj(function(){return KE(r,n,i)}),null},lJ=XE(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[VC],o=[n],a="";typeof e.className=="string"?a=Pj(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=xp(o,void 0,P.useContext(Bc));a+=t.key+"-"+s.name;var l={};for(var u in e)YE.call(e,u)&&u!=="css"&&u!==VC&&(l[u]=e[u]);return l.className=a,r&&(l.ref=r),P.createElement(P.Fragment,null,P.createElement(sJ,{cache:t,serialized:s,isStringTag:typeof i=="string"}),P.createElement(i,l))}),uJ=lJ,jI=function(t,r){var n=arguments;if(r==null||!YE.call(r,"css"))return P.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=uJ,o[1]=aJ(t,r);for(var a=2;a<i;a++)o[a]=n[a];return P.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(jI||(jI={}));var cJ=XE(function(e,t){var r=e.styles,n=xp([r],void 0,P.useContext(Bc)),i=P.useRef();return FI(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),FI(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&KE(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Fi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return xp(t)}function ho(){var e=Fi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function hc(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 Ll="$$material";function de(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Hg(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 dJ=Object.freeze(Object.defineProperty({__proto__:null,default:Hg},Symbol.toStringTag,{value:"Module"}));var fJ=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,pJ=wj(function(e){return fJ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hJ=pJ,mJ=function(t){return t!=="theme"},BI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hJ:mJ},UI=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},gJ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return GE(r,n,i),Aj(function(){return KE(r,n,i)}),null},vJ=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=UI(t,r,n),l=s||BI(i),u=!l("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var m=d.length,g=1;g<m;g++)p.push(d[g],h[g])}var y=XE(function(x,b,S){var w=u&&x.as||i,_="",O=[],C=x;if(x.theme==null){C={};for(var T in x)C[T]=x[T];C.theme=P.useContext(Bc)}typeof x.className=="string"?_=Pj(b.registered,O,x.className):x.className!=null&&(_=x.className+" ");var M=xp(p.concat(O),b.registered,C);_+=b.key+"-"+M.name,a!==void 0&&(_+=" "+a);var D=u&&s===void 0?BI(w):l,$={};for(var N in x)u&&N==="as"||D(N)&&($[N]=x[N]);return $.className=_,S&&($.ref=S),P.createElement(P.Fragment,null,P.createElement(gJ,{cache:b,serialized:M,isStringTag:typeof w=="string"}),P.createElement(w,$))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=p,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(x,b){var S=e(x,A({},r,b,{shouldForwardProp:UI(y,b,!0)}));return S.apply(void 0,p)},y}},yJ=["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"],GC=vJ.bind(null);yJ.forEach(function(e){GC[e]=GC(e)});var $j={exports:{}},bJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xJ=bJ,wJ=xJ;function Dj(){}function Lj(){}Lj.resetWarningCache=Dj;var _J=function(){function e(n,i,o,a,s,l){if(l!==wJ){var u=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 u.name="Invariant Violation",u}}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:Lj,resetWarningCache:Dj};return r.PropTypes=r,r};$j.exports=_J();var CJ=$j.exports;const kj=gi(CJ);function TJ(e,t){const r=Cj({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...i)=>(i[1].styles.match(/^@layer\s+[^{]*$/)||(i[1].styles=`@layer mui {${i[1].styles}}`),n(...i))}return r}const Jw=new Map;function Nj(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,i=P.useMemo(()=>{const o=`${t}-${r}`;if(typeof document=="object"&&Jw.has(o))return Jw.get(o);const a=TJ(t,r);return Jw.set(o,a),a},[t,r]);return t||r?E.jsx(oJ,{value:i,children:n}):n}function SJ(e){return e==null||Object.keys(e).length===0}function Fj(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(SJ(i)?r:i):t;return E.jsx(cJ,{styles:n})}function ZE(e,t){return GC(e,t)}const jj=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},qI=[];function Wg(e){return qI[0]=e,xp(qI)}const EJ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Fj,StyledEngineProvider:Nj,ThemeContext:Bc,css:Fi,default:ZE,internal_processStyles:jj,internal_serializeStyles:Wg,keyframes:ho},Symbol.toStringTag,{value:"Module"}));function fa(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 Bj(e){if(P.isValidElement(e)||!fa(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Bj(e[r])}),t}function kl(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return fa(e)&&fa(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])?n[i]=t[i]:fa(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fa(e[i])?n[i]=kl(e[i],t[i],r):r.clone?n[i]=fa(t[i])?Bj(t[i]):t[i]:n[i]=t[i]}),n}const RJ=Object.freeze(Object.defineProperty({__proto__:null,default:kl,isPlainObject:fa},Symbol.toStringTag,{value:"Module"})),PJ=["values","unit","step"],OJ=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)=>A({},r,{[n.key]:n.val}),{})};function Uj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=de(e,PJ),o=OJ(t),a=Object.keys(o);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-n/100}${r})`}function d(h){return a.indexOf(h)+1<a.length?u(h,a[a.indexOf(h)+1]):s(h)}function p(h){const m=a.indexOf(h);return m===0?s(a[1]):m===a.length-1?l(a[m]):u(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return A({keys:a,values:o,up:s,down:l,between:u,only:d,not:p,unit:r},i)}const MJ={borderRadius:4};function yf(e,t){return t?kl(e,t,{clone:!1}):e}const JE={xs:0,sm:600,md:900,lg:1200,xl:1536},HI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${JE[e]}px)`};function Jn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||HI;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||HI;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||JE).indexOf(s)!==-1){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function qj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function KC(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function AJ(e,...t){const r=qj(e),n=[r,...t].reduce((i,o)=>kl(i,o),{});return KC(Object.keys(r),n)}function IJ(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,o)=>{o<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function Sl({values:e,breakpoints:t,base:r}){const n=r||IJ(e,t),i=Object.keys(n);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function QE(e){if(typeof e!="string")throw new Error(Hg(7));return e.charAt(0).toUpperCase()+e.slice(1)}const $J=Object.freeze(Object.defineProperty({__proto__:null,default:QE},Symbol.toStringTag,{value:"Module"}));function by(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function zg(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=by(e,r)||n,t&&(i=t(i,n,e)),i}function Nr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=by(l,n)||{};return Jn(a,s,p=>{let h=zg(u,i,p);return p===h&&typeof p=="string"&&(h=zg(u,i,`${t}${p==="default"?"":QE(p)}`,p)),r===!1?h:{[r]:h}})};return o.propTypes={},o.filterProps=[t],o}function DJ(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const LJ={m:"margin",p:"padding"},kJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},WI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NJ=DJ(e=>{if(e.length>2)if(WI[e])e=WI[e];else return[e];const[t,r]=e.split(""),n=LJ[t],i=kJ[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),eR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...eR,...tR];function wp(e,t,r,n){var i;const o=(i=by(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function rR(e){return wp(e,"spacing",8)}function Nl(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 FJ(e,t){return r=>e.reduce((n,i)=>(n[i]=Nl(t,r),n),{})}function jJ(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=NJ(r),o=FJ(i,n),a=e[r];return Jn(e,a,o)}function Hj(e,t){const r=rR(e.theme);return Object.keys(e).map(n=>jJ(e,t,n,r)).reduce(yf,{})}function Sr(e){return Hj(e,eR)}Sr.propTypes={};Sr.filterProps=eR;function Er(e){return Hj(e,tR)}Er.propTypes={};Er.filterProps=tR;function BJ(e=8){if(e.mui)return e;const t=rR({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function xy(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?yf(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function $i(e){return typeof e!="number"?e:`${e}px solid`}function Wi(e,t){return Nr({prop:e,themeKey:"borders",transform:t})}const UJ=Wi("border",$i),qJ=Wi("borderTop",$i),HJ=Wi("borderRight",$i),WJ=Wi("borderBottom",$i),zJ=Wi("borderLeft",$i),VJ=Wi("borderColor"),GJ=Wi("borderTopColor"),KJ=Wi("borderRightColor"),XJ=Wi("borderBottomColor"),YJ=Wi("borderLeftColor"),ZJ=Wi("outline",$i),JJ=Wi("outlineColor"),wy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Nl(t,n)});return Jn(e,e.borderRadius,r)}return null};wy.propTypes={};wy.filterProps=["borderRadius"];xy(UJ,qJ,HJ,WJ,zJ,VJ,GJ,KJ,XJ,YJ,wy,ZJ,JJ);const _y=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wp(e.theme,"spacing",8),r=n=>({gap:Nl(t,n)});return Jn(e,e.gap,r)}return null};_y.propTypes={};_y.filterProps=["gap"];const Cy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wp(e.theme,"spacing",8),r=n=>({columnGap:Nl(t,n)});return Jn(e,e.columnGap,r)}return null};Cy.propTypes={};Cy.filterProps=["columnGap"];const Ty=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wp(e.theme,"spacing",8),r=n=>({rowGap:Nl(t,n)});return Jn(e,e.rowGap,r)}return null};Ty.propTypes={};Ty.filterProps=["rowGap"];const QJ=Nr({prop:"gridColumn"}),eQ=Nr({prop:"gridRow"}),tQ=Nr({prop:"gridAutoFlow"}),rQ=Nr({prop:"gridAutoColumns"}),nQ=Nr({prop:"gridAutoRows"}),iQ=Nr({prop:"gridTemplateColumns"}),oQ=Nr({prop:"gridTemplateRows"}),aQ=Nr({prop:"gridTemplateAreas"}),sQ=Nr({prop:"gridArea"});xy(_y,Cy,Ty,QJ,eQ,tQ,rQ,nQ,iQ,oQ,aQ,sQ);function rc(e,t){return t==="grey"?t:e}const lQ=Nr({prop:"color",themeKey:"palette",transform:rc}),uQ=Nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rc}),cQ=Nr({prop:"backgroundColor",themeKey:"palette",transform:rc});xy(lQ,uQ,cQ);function fi(e){return e<=1&&e!==0?`${e*100}%`:e}const dQ=Nr({prop:"width",transform:fi}),nR=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||JE[r];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:fi(r)}};return Jn(e,e.maxWidth,t)}return null};nR.filterProps=["maxWidth"];const fQ=Nr({prop:"minWidth",transform:fi}),pQ=Nr({prop:"height",transform:fi}),hQ=Nr({prop:"maxHeight",transform:fi}),mQ=Nr({prop:"minHeight",transform:fi});Nr({prop:"size",cssProperty:"width",transform:fi});Nr({prop:"size",cssProperty:"height",transform:fi});const gQ=Nr({prop:"boxSizing"});xy(dQ,nR,fQ,pQ,hQ,mQ,gQ);const _p={border:{themeKey:"borders",transform:$i},borderTop:{themeKey:"borders",transform:$i},borderRight:{themeKey:"borders",transform:$i},borderBottom:{themeKey:"borders",transform:$i},borderLeft:{themeKey:"borders",transform:$i},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$i},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wy},color:{themeKey:"palette",transform:rc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rc},backgroundColor:{themeKey:"palette",transform:rc},p:{style:Er},pt:{style:Er},pr:{style:Er},pb:{style:Er},pl:{style:Er},px:{style:Er},py:{style:Er},padding:{style:Er},paddingTop:{style:Er},paddingRight:{style:Er},paddingBottom:{style:Er},paddingLeft:{style:Er},paddingX:{style:Er},paddingY:{style:Er},paddingInline:{style:Er},paddingInlineStart:{style:Er},paddingInlineEnd:{style:Er},paddingBlock:{style:Er},paddingBlockStart:{style:Er},paddingBlockEnd:{style:Er},m:{style:Sr},mt:{style:Sr},mr:{style:Sr},mb:{style:Sr},ml:{style:Sr},mx:{style:Sr},my:{style:Sr},margin:{style:Sr},marginTop:{style:Sr},marginRight:{style:Sr},marginBottom:{style:Sr},marginLeft:{style:Sr},marginX:{style:Sr},marginY:{style:Sr},marginInline:{style:Sr},marginInlineStart:{style:Sr},marginInlineEnd:{style:Sr},marginBlock:{style:Sr},marginBlockStart:{style:Sr},marginBlockEnd:{style:Sr},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:_y},rowGap:{style:Ty},columnGap:{style:Cy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fi},maxWidth:{style:nR},minWidth:{transform:fi},height:{transform:fi},maxHeight:{transform:fi},minHeight:{transform:fi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vQ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function yQ(e,t){return typeof e=="function"?e(t):e}function Wj(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:d,style:p}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=by(i,u)||{};return p?p(a):Jn(a,n,g=>{let y=zg(h,d,g);return g===y&&typeof g=="string"&&(y=zg(h,d,`${r}${g==="default"?"":QE(g)}`,g)),l===!1?y:{[l]:y}})}function t(r){var n;const{sx:i,theme:o={},nested:a}=r||{};if(!i)return null;const s=(n=o.unstable_sxConfig)!=null?n:_p;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=qj(o.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(g=>{const y=yQ(d[g],o);if(y!=null)if(typeof y=="object")if(s[g])m=yf(m,e(g,y,o,s));else{const x=Jn({theme:o},y,b=>({[g]:b}));vQ(x,y)?m[g]=t({sx:y,theme:o,nested:!0}):m=yf(m,x)}else m=yf(m,e(g,y,o,s))}),!a&&o.modularCssLayers?{"@layer sx":KC(h,m)}:KC(h,m)}return Array.isArray(i)?i.map(l):l(i)}return t}const Uc=Wj();Uc.filterProps=["sx"];function zj(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 bQ=["breakpoints","palette","spacing","shape"];function Cp(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=de(e,bQ),s=Uj(r),l=BJ(i);let u=kl({breakpoints:s,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:l,shape:A({},MJ,o)},a);return u.applyStyles=zj,u=t.reduce((d,p)=>kl(d,p),u),u.unstable_sxConfig=A({},_p,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return Uc({sx:p,theme:this})},u}const xQ=Object.freeze(Object.defineProperty({__proto__:null,default:Cp,private_createBreakpoints:Uj,unstable_applyStyles:zj},Symbol.toStringTag,{value:"Module"}));function wQ(e){return Object.keys(e).length===0}function Sy(e=null){const t=P.useContext(Bc);return!t||wQ(t)?e:t}const _Q=Cp();function Ey(e=_Q){return Sy(e)}function Qw(e){const t=Wg(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Vj({styles:e,themeId:t,defaultTheme:r={}}){const n=Ey(r),i=t&&n[t]||n;let o=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>Qw(typeof a=="function"?a(i):a)):o=Qw(o)),E.jsx(Fj,{styles:o})}const CQ=["sx"],TQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:_p;return Object.keys(e).forEach(o=>{i[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Tp(e){const{sx:t}=e,r=de(e,CQ),{systemProps:n,otherProps:i}=TQ(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return fa(s)?A({},n,s):n}:o=A({},n,t),A({},i,{sx:o})}const SQ=Object.freeze(Object.defineProperty({__proto__:null,default:Uc,extendSxProp:Tp,unstable_createStyleFunctionSx:Wj,unstable_defaultSxConfig:_p},Symbol.toStringTag,{value:"Module"})),zI=e=>e,EQ=()=>{let e=zI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zI}}},RQ=EQ();function Gj(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Gj(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Pe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Gj(e))&&(n&&(n+=" "),n+=t);return n}const PQ=["className","component"];function OQ(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,o=ZE("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Uc);return P.forwardRef(function(l,u){const d=Ey(r),p=Tp(l),{className:h,component:m="div"}=p,g=de(p,PQ);return E.jsx(o,A({as:m,ref:u,className:Pe(h,i?i(n):n),theme:t&&d[t]||d},g))})}const MQ={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 AQ(e,t,r="Mui"){const n=MQ[t];return n?`${r}-${n}`:`${RQ.generate(e)}-${t}`}var Kj={exports:{}},Jt={};/**
45
+ * @license React
46
+ * react-is.production.js
47
+ *
48
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE file in the root directory of this source tree.
52
+ */var iR=Symbol.for("react.transitional.element"),oR=Symbol.for("react.portal"),Ry=Symbol.for("react.fragment"),Py=Symbol.for("react.strict_mode"),Oy=Symbol.for("react.profiler"),My=Symbol.for("react.consumer"),Ay=Symbol.for("react.context"),Iy=Symbol.for("react.forward_ref"),$y=Symbol.for("react.suspense"),Dy=Symbol.for("react.suspense_list"),Ly=Symbol.for("react.memo"),ky=Symbol.for("react.lazy"),IQ=Symbol.for("react.view_transition"),$Q=Symbol.for("react.client.reference");function zi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iR:switch(e=e.type,e){case Ry:case Oy:case Py:case $y:case Dy:case IQ:return e;default:switch(e=e&&e.$$typeof,e){case Ay:case Iy:case ky:case Ly:return e;case My:return e;default:return t}}case oR:return t}}}Jt.ContextConsumer=My;Jt.ContextProvider=Ay;Jt.Element=iR;Jt.ForwardRef=Iy;Jt.Fragment=Ry;Jt.Lazy=ky;Jt.Memo=Ly;Jt.Portal=oR;Jt.Profiler=Oy;Jt.StrictMode=Py;Jt.Suspense=$y;Jt.SuspenseList=Dy;Jt.isContextConsumer=function(e){return zi(e)===My};Jt.isContextProvider=function(e){return zi(e)===Ay};Jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iR};Jt.isForwardRef=function(e){return zi(e)===Iy};Jt.isFragment=function(e){return zi(e)===Ry};Jt.isLazy=function(e){return zi(e)===ky};Jt.isMemo=function(e){return zi(e)===Ly};Jt.isPortal=function(e){return zi(e)===oR};Jt.isProfiler=function(e){return zi(e)===Oy};Jt.isStrictMode=function(e){return zi(e)===Py};Jt.isSuspense=function(e){return zi(e)===$y};Jt.isSuspenseList=function(e){return zi(e)===Dy};Jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ry||e===Oy||e===Py||e===$y||e===Dy||typeof e=="object"&&e!==null&&(e.$$typeof===ky||e.$$typeof===Ly||e.$$typeof===Ay||e.$$typeof===My||e.$$typeof===Iy||e.$$typeof===$Q||e.getModuleId!==void 0)};Jt.typeOf=zi;Kj.exports=Jt;var VI=Kj.exports;const DQ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xj(e){const t=`${e}`.match(DQ);return t&&t[1]||""}function Yj(e,t=""){return e.displayName||e.name||Xj(e)||t}function GI(e,t,r){const n=Yj(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function LQ(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Yj(e,"Component");if(typeof e=="object")switch(e.$$typeof){case VI.ForwardRef:return GI(e,e.render,"ForwardRef");case VI.Memo:return GI(e,e.type,"memo");default:return}}}const kQ=Object.freeze(Object.defineProperty({__proto__:null,default:LQ,getFunctionName:Xj},Symbol.toStringTag,{value:"Module"})),NQ=["ownerState"],FQ=["variants"],jQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BQ(e){return Object.keys(e).length===0}function UQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function KI(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const qQ=Cp(),HQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cm({defaultTheme:e,theme:t,themeId:r}){return BQ(t)?e:t[r]||t}function WQ(e){return e?(t,r)=>r[e]:null}function dg(e,t,r){let{ownerState:n}=t,i=de(t,NQ);const o=typeof e=="function"?e(A({ownerState:n},i)):e;if(Array.isArray(o))return o.flatMap(a=>dg(a,A({ownerState:n},i),r));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=de(o,FQ);return a.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props(A({ownerState:n},i,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&i[p]!==u.props[p]&&(d=!1)}),d){Array.isArray(l)||(l=[l]);const p=typeof u.style=="function"?u.style(A({ownerState:n},i,n)):u.style;l.push(r?KI(Wg(p),r):p)}}),l}return r?KI(Wg(o),r):o}function zQ(e={}){const{themeId:t,defaultTheme:r=qQ,rootShouldForwardProp:n=e_,slotShouldForwardProp:i=e_}=e,o=a=>Uc(A({},a,{theme:cm(A({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{jj(a,C=>C.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:h=WQ(HQ(u))}=s,m=de(s,jQ),g=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=p||!1;let b,S=e_;u==="Root"||u==="root"?S=n:u?S=i:UQ(a)&&(S=void 0);const w=ZE(a,A({shouldForwardProp:S,label:b},m)),_=C=>typeof C=="function"&&C.__emotion_real!==C||fa(C)?T=>{const M=cm({theme:T.theme,defaultTheme:r,themeId:t});return dg(C,A({},T,{theme:M}),M.modularCssLayers?g:void 0)}:C,O=(C,...T)=>{let M=_(C);const D=T?T.map(_):[];l&&h&&D.push(B=>{const q=cm(A({},B,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[l]||!q.components[l].styleOverrides)return null;const U=q.components[l].styleOverrides,F={};return Object.entries(U).forEach(([j,V])=>{F[j]=dg(V,A({},B,{theme:q}),q.modularCssLayers?"theme":void 0)}),h(B,F)}),l&&!y&&D.push(B=>{var q;const U=cm(A({},B,{defaultTheme:r,themeId:t})),F=U==null||(q=U.components)==null||(q=q[l])==null?void 0:q.variants;return dg({variants:F},A({},B,{theme:U}),U.modularCssLayers?"theme":void 0)}),x||D.push(o);const $=D.length-T.length;if(Array.isArray(C)&&$>0){const B=new Array($).fill("");M=[...C,...B],M.raw=[...C.raw,...B]}const N=w(M,...D);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(O.withConfig=w.withConfig),O}}const VQ=zQ();function Vg(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=A({},o),Object.keys(i).forEach(a=>{r[n][a]=Vg(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Zj(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Vg(t.components[r].defaultProps,n)}function Jj({props:e,name:t,defaultTheme:r,themeId:n}){let i=Ey(r);return n&&(i=i[n]||i),Zj({theme:i,name:t,props:e})}const Qj=typeof window<"u"?P.useLayoutEffect:P.useEffect;function GQ(e,t,r,n,i){const[o,a]=P.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return Qj(()=>{let s=!0;if(!r)return;const l=r(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,r]),o}const eB=P.useSyncExternalStore;function KQ(e,t,r,n,i){const o=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return o},[o,e,n,i,r]),[s,l]=P.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const d=r(e);return[()=>d.matches,p=>(d.addListener(p),()=>{d.removeListener(p)})]},[o,r,e]);return eB(l,s,a)}function Ts(e,t={}){const r=Sy(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=Zj({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(eB!==void 0?KQ:GQ)(l,i,o,a,s)}function tB(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const XQ=Object.freeze(Object.defineProperty({__proto__:null,default:tB},Symbol.toStringTag,{value:"Module"}));function YQ(e,t=0,r=1){return tB(e,t,r)}function ZQ(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,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function rB(e){if(e.type)return e;if(e.charAt(0)==="#")return rB(ZQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Hg(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=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(i)===-1)throw new Error(Hg(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}function JQ(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):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 zf(e,t){return e=rB(e),t=YQ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,JQ(e)}const nB=P.createContext(null);function iB(){return P.useContext(nB)}const QQ=typeof Symbol=="function"&&Symbol.for,eee=QQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function tee(e,t){return typeof t=="function"?t(e):A({},e,t)}function ree(e){const{children:t,theme:r}=e,n=iB(),i=P.useMemo(()=>{const o=n===null?r:tee(n,r);return o!=null&&(o[eee]=n!==null),o},[r,n]);return E.jsx(nB.Provider,{value:i,children:t})}const nee=["value"],oB=P.createContext();function iee(e){let{value:t}=e,r=de(e,nee);return E.jsx(oB.Provider,A({value:t??!0},r))}const Ny=()=>{const e=P.useContext(oB);return e??!1},aB=P.createContext(void 0);function oee({value:e,children:t}){return E.jsx(aB.Provider,{value:e,children:t})}function aee(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Vg(i.defaultProps,n):!i.styleOverrides&&!i.variants?Vg(i,n):n}function see({props:e,name:t}){const r=P.useContext(aB);return aee({props:e,name:t,theme:{components:r}})}let XI=0;function lee(e){const[t,r]=P.useState(e),n=e||t;return P.useEffect(()=>{t==null&&(XI+=1,r(`mui-${XI}`))},[t]),n}const YI=P.useId;function uee(e){return YI!==void 0?YI():lee(e)}function cee(e){const t=Sy(),r=uee()||"",{modularCssLayers:n}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?i="":typeof n=="string"?i=n.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,Qj(()=>{const o=document.querySelector("head");if(!o)return;const a=o.firstChild;if(i){var s;if(a&&(s=a.hasAttribute)!=null&&s.call(a,"data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===r)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",r),u.textContent=i,o.prepend(u)}else{var l;(l=o.querySelector(`style[data-mui-layer-order="${r}"]`))==null||l.remove()}},[i,r]),i?E.jsx(Vj,{styles:i}):null}const ZI={};function JI(e,t,r,n=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?A({},t,{[e]:o}):o;return n?()=>a:a}return e?A({},t,{[e]:r}):A({},t,r)},[e,t,r,n])}function dee(e){const{children:t,theme:r,themeId:n}=e,i=Sy(ZI),o=iB()||ZI,a=JI(n,i,r),s=JI(n,o,r,!0),l=a.direction==="rtl",u=cee(a);return E.jsx(ree,{theme:s,children:E.jsx(Bc.Provider,{value:a,children:E.jsx(iee,{value:l,children:E.jsxs(oee,{value:a==null?void 0:a.components,children:[u,t]})})})})}function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}function fee(e,t){if(Fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sB(e){var t=fee(e,"string");return Fo(t)=="symbol"?t:t+""}function pee(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}const hee=["component","direction","spacing","divider","children","className","useFlexGap"],mee=Cp(),gee=VQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function vee(e){return Jj({props:e,name:"MuiStack",defaultTheme:mee})}function yee(e,t){const r=P.Children.toArray(e).filter(Boolean);return r.reduce((n,i,o)=>(n.push(i),o<r.length-1&&n.push(P.cloneElement(t,{key:`separator-${o}`})),n),[])}const bee=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],xee=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},Jn({theme:t},Sl({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=rR(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=Sl({values:e.direction,base:i}),a=Sl({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,d)=>{if(!o[l]){const h=u>0?o[d[u-1]]:"column";o[l]=h}}),r=kl(r,Jn({theme:t},a,(l,u)=>e.useFlexGap?{gap:Nl(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${bee(u?o[u]:e.direction)}`]:Nl(n,l)}}))}return r=AJ(t.breakpoints,r),r};function wee(e={}){const{createStyledComponent:t=gee,useThemeProps:r=vee,componentName:n="MuiStack"}=e,i=()=>pee({root:["root"]},l=>AQ(n,l),{}),o=t(xee);return P.forwardRef(function(l,u){const d=r(l),p=Tp(d),{component:h="div",direction:m="column",spacing:g=0,divider:y,children:x,className:b,useFlexGap:S=!1}=p,w=de(p,hee),_={direction:m,spacing:g,useFlexGap:S},O=i();return E.jsx(o,A({as:h,ownerState:_,ref:u,className:Pe(O.root,b)},w,{children:y?yee(x,y):x}))})}function Ku(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 lB(e){if(P.isValidElement(e)||!Ku(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=lB(e[r])}),t}function xa(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return Ku(e)&&Ku(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])?n[i]=t[i]:Ku(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ku(e[i])?n[i]=xa(e[i],t[i],r):r.clone?n[i]=Ku(t[i])?lB(t[i]):t[i]:n[i]=t[i]}),n}const QI=e=>e,_ee=()=>{let e=QI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=QI}}},aR=_ee(),Cee={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 qe(e,t,r="Mui"){const n=Cee[t];return n?`${r}-${n}`:`${aR.generate(e)}-${t}`}function Tee(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fr={},uB={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})(uB);var Ut=uB.exports;const See=po(dJ),Eee=po(XQ);var cB=Ut;Object.defineProperty(Fr,"__esModule",{value:!0});var sn=Fr.alpha=hB;Fr.blend=Nee;Fr.colorChannel=void 0;var Fy=Fr.darken=lR;Fr.decomposeColor=ji;Fr.emphasize=mB;var Ree=Fr.getContrastRatio=Iee;Fr.getLuminance=Gg;Fr.hexToRgb=dB;Fr.hslToRgb=pB;var jy=Fr.lighten=uR;Fr.private_safeAlpha=$ee;Fr.private_safeColorChannel=void 0;Fr.private_safeDarken=Dee;Fr.private_safeEmphasize=kee;Fr.private_safeLighten=Lee;Fr.recomposeColor=qc;Fr.rgbToHex=Aee;var e$=cB(See),Pee=cB(Eee);function sR(e,t=0,r=1){return(0,Pee.default)(e,t,r)}function dB(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,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Oee(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ji(e){if(e.type)return e;if(e.charAt(0)==="#")return ji(dB(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,e$.default)(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=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(i)===-1)throw new Error((0,e$.default)(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const fB=e=>{const t=ji(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Fr.colorChannel=fB;const Mee=(e,t)=>{try{return fB(e)}catch{return e}};Fr.private_safeColorChannel=Mee;function qc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):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 Aee(e){if(e.indexOf("#")===0)return e;const{values:t}=ji(e);return`#${t.map((r,n)=>Oee(n===3?Math.round(255*r):r)).join("")}`}function pB(e){e=ji(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(u,d=(u+r/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),qc({type:s,values:l})}function Gg(e){e=ji(e);let t=e.type==="hsl"||e.type==="hsla"?ji(pB(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 Iee(e,t){const r=Gg(e),n=Gg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function hB(e,t){return e=ji(e),t=sR(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qc(e)}function $ee(e,t,r){try{return hB(e,t)}catch{return e}}function lR(e,t){if(e=ji(e),t=sR(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 qc(e)}function Dee(e,t,r){try{return lR(e,t)}catch{return e}}function uR(e,t){if(e=ji(e),t=sR(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 qc(e)}function Lee(e,t,r){try{return uR(e,t)}catch{return e}}function mB(e,t=.15){return Gg(e)>.5?lR(e,t):uR(e,t)}function kee(e,t,r){try{return mB(e,t)}catch{return e}}function Nee(e,t,r,n=1){const i=(l,u)=>Math.round((l**(1/n)*(1-r)+u**(1/n)*r)**n),o=ji(e),a=ji(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return qc({type:"rgb",values:s})}const Vf={black:"#000",white:"#fff"},Fee={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"},Ou={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Mu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ld={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Au={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Iu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},$u={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},jee=["mode","contrastThreshold","tonalOffset"],t$={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:Vf.white,default:Vf.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}},t_={text:{primary:Vf.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:Vf.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 r$(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=jy(e.main,i):t==="dark"&&(e.dark=Fy(e.main,o)))}function Bee(e="light"){return e==="dark"?{main:Au[200],light:Au[50],dark:Au[400]}:{main:Au[700],light:Au[400],dark:Au[800]}}function Uee(e="light"){return e==="dark"?{main:Ou[200],light:Ou[50],dark:Ou[400]}:{main:Ou[500],light:Ou[300],dark:Ou[700]}}function qee(e="light"){return e==="dark"?{main:Mu[500],light:Mu[300],dark:Mu[700]}:{main:Mu[700],light:Mu[400],dark:Mu[800]}}function Hee(e="light"){return e==="dark"?{main:Iu[400],light:Iu[300],dark:Iu[700]}:{main:Iu[700],light:Iu[500],dark:Iu[900]}}function Wee(e="light"){return e==="dark"?{main:$u[400],light:$u[300],dark:$u[700]}:{main:$u[800],light:$u[500],dark:$u[900]}}function zee(e="light"){return e==="dark"?{main:Ld[400],light:Ld[300],dark:Ld[700]}:{main:"#ed6c02",light:Ld[500],dark:Ld[900]}}function Vee(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=de(e,jee),o=e.primary||Bee(t),a=e.secondary||Uee(t),s=e.error||qee(t),l=e.info||Hee(t),u=e.success||Wee(t),d=e.warning||zee(t);function p(y){return Ree(y,t_.text.primary)>=r?t_.text.primary:t$.text.primary}const h=({color:y,name:x,mainShade:b=500,lightShade:S=300,darkShade:w=700})=>{if(y=A({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(hc(11,x?` (${x})`:"",b));if(typeof y.main!="string")throw new Error(hc(12,x?` (${x})`:"",JSON.stringify(y.main)));return r$(y,"light",S,n),r$(y,"dark",w,n),y.contrastText||(y.contrastText=p(y.main)),y},m={dark:t_,light:t$};return xa(A({common:A({},Vf),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:Fee,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n},m[t]),i)}const Gee=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Kee(e){return Math.round(e*1e5)/1e5}const n$={textTransform:"uppercase"},i$='"Roboto", "Helvetica", "Arial", sans-serif';function Xee(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=i$,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:p}=r,h=de(r,Gee),m=i/14,g=p||(b=>`${b/u*m}rem`),y=(b,S,w,_,O)=>A({fontFamily:n,fontWeight:b,fontSize:g(S),lineHeight:w},n===i$?{letterSpacing:`${Kee(_/S)}em`}:{},O,d),x={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,n$),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,n$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xa(A({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},x),h,{clone:!1})}const Yee=.2,Zee=.14,Jee=.12;function dr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yee})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zee})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Jee})`].join(",")}const Qee=["none",dr(0,2,1,-1,0,1,1,0,0,1,3,0),dr(0,3,1,-2,0,2,2,0,0,1,5,0),dr(0,3,3,-2,0,3,4,0,0,1,8,0),dr(0,2,4,-1,0,4,5,0,0,1,10,0),dr(0,3,5,-1,0,5,8,0,0,1,14,0),dr(0,3,5,-1,0,6,10,0,0,1,18,0),dr(0,4,5,-2,0,7,10,1,0,2,16,1),dr(0,5,5,-3,0,8,10,1,0,3,14,2),dr(0,5,6,-3,0,9,12,1,0,3,16,2),dr(0,6,6,-3,0,10,14,1,0,4,18,3),dr(0,6,7,-4,0,11,15,1,0,4,20,3),dr(0,7,8,-4,0,12,17,2,0,5,22,4),dr(0,7,8,-4,0,13,19,2,0,5,24,4),dr(0,7,9,-4,0,14,21,2,0,5,26,4),dr(0,8,9,-5,0,15,22,2,0,6,28,5),dr(0,8,10,-5,0,16,24,2,0,6,30,5),dr(0,8,11,-5,0,17,26,2,0,6,32,5),dr(0,9,11,-5,0,18,28,2,0,7,34,6),dr(0,9,12,-6,0,19,29,2,0,7,36,6),dr(0,10,13,-6,0,20,31,3,0,8,38,7),dr(0,10,13,-6,0,21,33,3,0,8,40,7),dr(0,10,14,-6,0,22,35,3,0,8,42,7),dr(0,11,14,-7,0,23,36,3,0,9,44,8),dr(0,11,15,-7,0,24,38,3,0,9,46,8)],ete=["duration","easing","delay"],tte={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)"},rte={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o$(e){return`${Math.round(e)}ms`}function nte(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ite(e){const t=A({},tte,e.easing),r=A({},rte,e.duration);return A({getAutoHeightDuration:nte,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=o;return de(o,ete),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:o$(a)} ${s} ${typeof l=="string"?l:o$(l)}`).join(",")}},e,{easing:t,duration:r})}const ote={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ate=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cR(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=de(e,ate);if(e.vars&&e.generateCssVars===void 0)throw new Error(hc(18));const s=Vee(n),l=Cp(e);let u=xa(l,{mixins:Tee(l.breakpoints,r),palette:s,shadows:Qee.slice(),typography:Xee(s,o),transitions:ite(i),zIndex:A({},ote)});return u=xa(u,a),u=t.reduce((d,p)=>xa(d,p),u),u.unstable_sxConfig=A({},_p,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return Uc({sx:p,theme:this})},u}function ste(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function lte(e){return parseFloat(e)}const By=cR();function fn(){const e=Ey(By);return e[Ll]||e}function Fn({props:e,name:t}){return Jj({props:e,name:t,defaultTheme:By,themeId:Ll})}var Sp={};const ute=po(iX);var r_={exports:{}},a$;function cte(){return a$||(a$=1,function(e){function t(r,n){if(r==null)return{};var i={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)!==-1)continue;i[o]=r[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(r_)),r_.exports}const gB=po(EJ),dte=po(RJ),fte=po($J),pte=po(kQ),hte=po(xQ),mte=po(SQ);var Hc=Ut;Object.defineProperty(Sp,"__esModule",{value:!0});var gte=Sp.default=Ote;Sp.shouldForwardProp=fg;Sp.systemDefaultTheme=void 0;var Mi=Hc(ute),XC=Hc(cte()),Kg=Cte(gB),vte=dte;Hc(fte);Hc(pte);var yte=Hc(hte),bte=Hc(mte);const xte=["ownerState"],wte=["variants"],_te=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vB(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(vB=function(n){return n?r:t})(e)}function Cte(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=vB(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Tte(e){return Object.keys(e).length===0}function Ste(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function s$(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Ete=Sp.systemDefaultTheme=(0,yte.default)(),Rte=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dm({defaultTheme:e,theme:t,themeId:r}){return Tte(t)?e:t[r]||t}function Pte(e){return e?(t,r)=>r[e]:null}function pg(e,t,r){let{ownerState:n}=t,i=(0,XC.default)(t,xte);const o=typeof e=="function"?e((0,Mi.default)({ownerState:n},i)):e;if(Array.isArray(o))return o.flatMap(a=>pg(a,(0,Mi.default)({ownerState:n},i),r));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,XC.default)(o,wte);return a.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props((0,Mi.default)({ownerState:n},i,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&i[p]!==u.props[p]&&(d=!1)}),d){Array.isArray(l)||(l=[l]);const p=typeof u.style=="function"?u.style((0,Mi.default)({ownerState:n},i,n)):u.style;l.push(r?s$((0,Kg.internal_serializeStyles)(p),r):p)}}),l}return r?s$((0,Kg.internal_serializeStyles)(o),r):o}function Ote(e={}){const{themeId:t,defaultTheme:r=Ete,rootShouldForwardProp:n=fg,slotShouldForwardProp:i=fg}=e,o=a=>(0,bte.default)((0,Mi.default)({},a,{theme:dm((0,Mi.default)({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{(0,Kg.internal_processStyles)(a,C=>C.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:h=Pte(Rte(u))}=s,m=(0,XC.default)(s,_te),g=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=p||!1;let b,S=fg;u==="Root"||u==="root"?S=n:u?S=i:Ste(a)&&(S=void 0);const w=(0,Kg.default)(a,(0,Mi.default)({shouldForwardProp:S,label:b},m)),_=C=>typeof C=="function"&&C.__emotion_real!==C||(0,vte.isPlainObject)(C)?T=>{const M=dm({theme:T.theme,defaultTheme:r,themeId:t});return pg(C,(0,Mi.default)({},T,{theme:M}),M.modularCssLayers?g:void 0)}:C,O=(C,...T)=>{let M=_(C);const D=T?T.map(_):[];l&&h&&D.push(B=>{const q=dm((0,Mi.default)({},B,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[l]||!q.components[l].styleOverrides)return null;const U=q.components[l].styleOverrides,F={};return Object.entries(U).forEach(([j,V])=>{F[j]=pg(V,(0,Mi.default)({},B,{theme:q}),q.modularCssLayers?"theme":void 0)}),h(B,F)}),l&&!y&&D.push(B=>{var q;const U=dm((0,Mi.default)({},B,{defaultTheme:r,themeId:t})),F=U==null||(q=U.components)==null||(q=q[l])==null?void 0:q.variants;return pg({variants:F},(0,Mi.default)({},B,{theme:U}),U.modularCssLayers?"theme":void 0)}),x||D.push(o);const $=D.length-T.length;if(Array.isArray(C)&&$>0){const B=new Array($).fill("");M=[...C,...B],M.raw=[...C.raw,...B]}const N=w(M,...D);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(O.withConfig=w.withConfig),O}}function yB(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rn=e=>yB(e)&&e!=="classes",W=gte({themeId:Ll,defaultTheme:By,rootShouldForwardProp:Rn}),Mte=["theme"];function Ate(e){let{theme:t}=e,r=de(e,Mte);const n=t[Ll];let i=n||t;return typeof t!="function"&&(n&&!n.vars?i=A({},n,{vars:null}):t&&!t.vars&&(i=A({},t,{vars:null}))),E.jsx(dee,A({},r,{themeId:n?Ll:void 0,theme:i}))}const l$=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ge(e){if(typeof e!="string")throw new Error(hc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function YC(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Uy(e,t=166){let r;function n(...i){const o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Ite(e,t){return()=>null}function hg(e,t){var r,n;return P.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 Qr(e){return e&&e.ownerDocument||document}function jo(e){return Qr(e).defaultView||window}function $te(e,t){return()=>null}function Xg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fo=typeof window<"u"?P.useLayoutEffect:P.useEffect;let u$=0;function Dte(e){const[t,r]=P.useState(e),n=e||t;return P.useEffect(()=>{t==null&&(u$+=1,r(`mui-${u$}`))},[t]),n}const c$=P.useId;function Fl(e){if(c$!==void 0){const t=c$();return e??t}return Dte(e)}function Lte(e,t,r,n,i){return null}function Yg({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=P.useRef(e!==void 0),[o,a]=P.useState(t),s=i?e:o,l=P.useCallback(u=>{i||a(u)},[]);return[s,l]}function ha(e){const t=P.useRef(e);return fo(()=>{t.current=e}),P.useRef((...r)=>(0,t.current)(...r)).current}function xr(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Xg(r,t)})},e)}const d$={};function kte(e,t){const r=P.useRef(d$);return r.current===d$&&(r.current=e(t)),r}const Nte=[];function Fte(e){P.useEffect(e,Nte)}let bB=class xB{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xB}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function wB(){const e=kte(bB.create).current;return Fte(e.disposeEffect),e}let qy=!0,ZC=!1;const jte=new bB,Bte={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 Ute(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Bte[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function qte(e){e.metaKey||e.altKey||e.ctrlKey||(qy=!0)}function n_(){qy=!1}function Hte(){this.visibilityState==="hidden"&&ZC&&(qy=!0)}function Wte(e){e.addEventListener("keydown",qte,!0),e.addEventListener("mousedown",n_,!0),e.addEventListener("pointerdown",n_,!0),e.addEventListener("touchstart",n_,!0),e.addEventListener("visibilitychange",Hte,!0)}function zte(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return qy||Ute(t)}function _B(){const e=P.useCallback(i=>{i!=null&&Wte(i.ownerDocument)},[]),t=P.useRef(!1);function r(){return t.current?(ZC=!0,jte.start(100,()=>{ZC=!1}),t.current=!1,!0):!1}function n(i){return zte(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function CB(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Vte(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}function TB(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=A({},o),Object.keys(i).forEach(a=>{r[n][a]=TB(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function He(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}function Ne(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=qe(e,i,r)}),n}function Gf(e){return typeof e=="string"}function Gte(e,t,r){return e===void 0||Gf(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function SB(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 f$(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 Kte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const m=Pe(r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),g=A({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),y=A({},r,i,n);return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=SB(A({},i,n)),s=f$(n),l=f$(i),u=t(a),d=Pe(u==null?void 0:u.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),p=A({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),h=A({},u,r,l,s);return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function Xte(e,t,r){return typeof e=="function"?e(t,r):e}const Yte=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=de(e,Yte),s=o?{}:Xte(n,i),{props:l,internalRef:u}=Kte(A({},a,{externalSlotProps:s})),d=xr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Gte(r,A({},l,{ref:d}),i)}function Wc(e){if(parseInt(P.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}function tt(e){return see(e)}function Zte(e){return qe("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jte=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Qte=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return He(i,Zte,n)},ere=W("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,a,s,l,u,d,p,h,m,g;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:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?p:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Kf=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24"}=n,m=de(n,Jte),g=P.isValidElement(i)&&i.type==="svg",y=A({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g}),x={};d||(x.viewBox=h);const b=Qte(y);return E.jsxs(ere,A({as:s,className:Pe(b.root,o),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},x,m,g&&i.props,{ownerState:y,children:[g?i.props.children:i,p?E.jsx("title",{children:p}):null]}))});Kf.muiName="SvgIcon";function jr(e,t){function r(n,i){return E.jsx(Kf,A({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=Kf.muiName,P.memo(P.forwardRef(r))}const tre={configure:e=>{aR.configure(e)}},rre=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:YC,createSvgIcon:jr,debounce:Uy,deprecatedPropType:Ite,isMuiElement:hg,ownerDocument:Qr,ownerWindow:jo,requirePropFactory:$te,setRef:Xg,unstable_ClassNameGenerator:tre,unstable_useEnhancedEffect:fo,unstable_useId:Fl,unsupportedProp:Lte,useControlled:Yg,useEventCallback:ha,useForkRef:xr,useIsFocusVisible:_B},Symbol.toStringTag,{value:"Module"}));function nre(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ire(e,t){e.classList?e.classList.add(t):nre(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function p$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ore(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=p$(e.className,t):e.setAttribute("class",p$(e.className&&e.className.baseVal||"",t))}const h$={disabled:!1},Zg=ot.createContext(null);var EB=function(t){return t.scrollTop},sf="unmounted",nl="exited",il="entering",Xu="entered",JC="exiting",Vi=function(e){Pa(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=nl,o.appearStatus=il):l=Xu:n.unmountOnExit||n.mountOnEnter?l=sf:l=nl,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===sf?{status:nl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==il&&a!==Xu&&(o=il):(a===il||a===Xu)&&(o=JC)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===il){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:yl.findDOMNode(this);a&&EB(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nl&&this.setState({status:sf})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[yl.findDOMNode(this),s],u=l[0],d=l[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!i&&!a||h$.disabled){this.safeSetState({status:Xu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:il},function(){o.props.onEntering(u,d),o.onTransitionEnd(h,function(){o.safeSetState({status:Xu},function(){o.props.onEntered(u,d)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:yl.findDOMNode(this);if(!o||h$.disabled){this.safeSetState({status:nl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:JC},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:nl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:yl.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===sf)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=de(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ot.createElement(Zg.Provider,{value:null},typeof a=="function"?a(i,s):ot.cloneElement(ot.Children.only(a),s))},t}(ot.Component);Vi.contextType=Zg;Vi.propTypes={};function Du(){}Vi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Du,onEntering:Du,onEntered:Du,onExit:Du,onExiting:Du,onExited:Du};Vi.UNMOUNTED=sf;Vi.EXITED=nl;Vi.ENTERING=il;Vi.ENTERED=Xu;Vi.EXITING=JC;var are=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return ire(t,n)})},i_=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return ore(t,n)})},dR=function(e){Pa(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var u=n.resolveArguments(s,l),d=u[0],p=u[1];n.removeClasses(d,"exit"),n.addClass(d,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var u=n.resolveArguments(s,l),d=u[0],p=u[1],h=p?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var u=n.resolveArguments(s,l),d=u[0],p=u[1],h=p?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"appear"),n.removeClasses(u,"enter"),n.addClass(u,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),u=l[0];n.addClass(u,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"exit"),n.addClass(u,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,u=typeof l=="string",d=u&&l?l+"-":"",p=u?""+d+s:l[s],h=u?p+"-active":l[s+"Active"],m=u?p+"-done":l[s+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:m}},n}var r=t.prototype;return r.addClass=function(i,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&a==="done"&&u&&(s+=" "+u),a==="active"&&i&&EB(i),s&&(this.appliedClasses[o][a]=s,are(i,s))},r.removeClasses=function(i,o){var a=this.appliedClasses[o],s=a.base,l=a.active,u=a.done;this.appliedClasses[o]={},s&&i_(i,s),l&&i_(i,l),u&&i_(i,u)},r.render=function(){var i=this.props;i.classNames;var o=de(i,["classNames"]);return ot.createElement(Vi,A({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ot.Component);dR.defaultProps={classNames:""};dR.propTypes={};function $e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fR(e,t){var r=function(o){return t&&ng(o)?t(o):o},n=Object.create(null);return e&&VK.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function sre(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var o in e)o in t?i.length&&(n[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var u=n[l][a];s[n[l][a]]=r(u)}s[l]=r(l)}for(a=0;a<i.length;a++)s[i[a]]=r(i[a]);return s}function wl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function lre(e,t){return fR(e.children,function(r){return gf(r,{onExited:t.bind(null,r),in:!0,appear:wl(r,"appear",e),enter:wl(r,"enter",e),exit:wl(r,"exit",e)})})}function ure(e,t,r){var n=fR(e.children),i=sre(t,n);return Object.keys(i).forEach(function(o){var a=i[o];if(ng(a)){var s=o in t,l=o in n,u=t[o],d=ng(u)&&!u.props.in;l&&(!s||d)?i[o]=gf(a,{onExited:r.bind(null,a),in:!0,exit:wl(a,"exit",e),enter:wl(a,"enter",e)}):!l&&s&&!d?i[o]=gf(a,{in:!1}):l&&s&&ng(u)&&(i[o]=gf(a,{onExited:r.bind(null,a),in:u.props.in,exit:wl(a,"exit",e),enter:wl(a,"enter",e)}))}}),i}var cre=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},dre={component:"div",childFactory:function(t){return t}},Ep=function(e){Pa(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=o.handleExited.bind($e(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}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(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?lre(i,s):ure(i,a,s),firstRender:!1}},r.handleExited=function(i,o){var a=fR(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=A({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=de(i,["component","childFactory"]),l=this.state.contextValue,u=cre(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?ot.createElement(Zg.Provider,{value:l},u):ot.createElement(Zg.Provider,{value:l},ot.createElement(o,s,u))},t}(ot.Component);Ep.propTypes={};Ep.defaultProps=dre;const pR=e=>e.scrollTop;function mc(e,t){var r,n;const{timeout:i,easing:o,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function fre(e){return qe("MuiPaper",e)}Ne("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 pre=["className","component","elevation","square","variant"],hre=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return He(o,fre,i)},mre=W("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 A({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"&&A({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sn("#fff",l$(t.elevation))}, ${sn("#fff",l$(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),As=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,u=de(n,pre),d=A({},n,{component:o,elevation:a,square:s,variant:l}),p=hre(d);return E.jsx(mre,A({as:o,ownerState:d,className:Pe(p.root,i),ref:r},u))});function gre(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[d,p]=P.useState(!1),h=Pe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=Pe(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&p(!0),P.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),E.jsx("span",{className:h,style:m,children:E.jsx("span",{className:g})})}const Ai=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vre=["center","classes","className"];let Hy=e=>e,m$,g$,v$,y$;const QC=550,yre=80,bre=ho(m$||(m$=Hy`
53
+ 0% {
54
+ transform: scale(0);
55
+ opacity: 0.1;
56
+ }
57
+
58
+ 100% {
59
+ transform: scale(1);
60
+ opacity: 0.3;
61
+ }
62
+ `)),xre=ho(g$||(g$=Hy`
63
+ 0% {
64
+ opacity: 1;
65
+ }
66
+
67
+ 100% {
68
+ opacity: 0;
69
+ }
70
+ `)),wre=ho(v$||(v$=Hy`
71
+ 0% {
72
+ transform: scale(1);
73
+ }
74
+
75
+ 50% {
76
+ transform: scale(0.92);
77
+ }
78
+
79
+ 100% {
80
+ transform: scale(1);
81
+ }
82
+ `)),_re=W("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cre=W(gre,{name:"MuiTouchRipple",slot:"Ripple"})(y$||(y$=Hy`
83
+ opacity: 0;
84
+ position: absolute;
85
+
86
+ &.${0} {
87
+ opacity: 0.3;
88
+ transform: scale(1);
89
+ animation-name: ${0};
90
+ animation-duration: ${0}ms;
91
+ animation-timing-function: ${0};
92
+ }
93
+
94
+ &.${0} {
95
+ animation-duration: ${0}ms;
96
+ }
97
+
98
+ & .${0} {
99
+ opacity: 1;
100
+ display: block;
101
+ width: 100%;
102
+ height: 100%;
103
+ border-radius: 50%;
104
+ background-color: currentColor;
105
+ }
106
+
107
+ & .${0} {
108
+ opacity: 0;
109
+ animation-name: ${0};
110
+ animation-duration: ${0}ms;
111
+ animation-timing-function: ${0};
112
+ }
113
+
114
+ & .${0} {
115
+ position: absolute;
116
+ /* @noflip */
117
+ left: 0px;
118
+ top: 0;
119
+ animation-name: ${0};
120
+ animation-duration: 2500ms;
121
+ animation-timing-function: ${0};
122
+ animation-iteration-count: infinite;
123
+ animation-delay: 200ms;
124
+ }
125
+ `),Ai.rippleVisible,bre,QC,({theme:e})=>e.transitions.easing.easeInOut,Ai.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ai.child,Ai.childLeaving,xre,QC,({theme:e})=>e.transitions.easing.easeInOut,Ai.childPulsate,wre,({theme:e})=>e.transitions.easing.easeInOut),Tre=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,s=de(n,vre),[l,u]=P.useState([]),d=P.useRef(0),p=P.useRef(null);P.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=P.useRef(!1),m=wB(),g=P.useRef(null),y=P.useRef(null),x=P.useCallback(_=>{const{pulsate:O,rippleX:C,rippleY:T,rippleSize:M,cb:D}=_;u($=>[...$,E.jsx(Cre,{classes:{ripple:Pe(o.ripple,Ai.ripple),rippleVisible:Pe(o.rippleVisible,Ai.rippleVisible),ripplePulsate:Pe(o.ripplePulsate,Ai.ripplePulsate),child:Pe(o.child,Ai.child),childLeaving:Pe(o.childLeaving,Ai.childLeaving),childPulsate:Pe(o.childPulsate,Ai.childPulsate)},timeout:QC,pulsate:O,rippleX:C,rippleY:T,rippleSize:M},d.current)]),d.current+=1,p.current=D},[o]),b=P.useCallback((_={},O={},C=()=>{})=>{const{pulsate:T=!1,center:M=i||O.pulsate,fakeElement:D=!1}=O;if((_==null?void 0:_.type)==="mousedown"&&h.current){h.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(h.current=!0);const $=D?null:y.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,q,U;if(M||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)B=Math.round(N.width/2),q=Math.round(N.height/2);else{const{clientX:F,clientY:j}=_.touches&&_.touches.length>0?_.touches[0]:_;B=Math.round(F-N.left),q=Math.round(j-N.top)}if(M)U=Math.sqrt((2*N.width**2+N.height**2)/3),U%2===0&&(U+=1);else{const F=Math.max(Math.abs(($?$.clientWidth:0)-B),B)*2+2,j=Math.max(Math.abs(($?$.clientHeight:0)-q),q)*2+2;U=Math.sqrt(F**2+j**2)}_!=null&&_.touches?g.current===null&&(g.current=()=>{x({pulsate:T,rippleX:B,rippleY:q,rippleSize:U,cb:C})},m.start(yre,()=>{g.current&&(g.current(),g.current=null)})):x({pulsate:T,rippleX:B,rippleY:q,rippleSize:U,cb:C})},[i,x,m]),S=P.useCallback(()=>{b({},{pulsate:!0})},[b]),w=P.useCallback((_,O)=>{if(m.clear(),(_==null?void 0:_.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{w(_,O)});return}g.current=null,u(C=>C.length>0?C.slice(1):C),p.current=O},[m]);return P.useImperativeHandle(r,()=>({pulsate:S,start:b,stop:w}),[S,b,w]),E.jsx(_re,A({className:Pe(Ai.root,o.root,a),ref:y},s,{children:E.jsx(Ep,{component:null,exit:!0,children:l})}))});function Sre(e){return qe("MuiButtonBase",e)}const Ere=Ne("MuiButtonBase",["root","disabled","focusVisible"]),Rre=["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"],Pre=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a=He({root:["root",t&&"disabled",r&&"focusVisible"]},Sre,i);return r&&n&&(a.root+=` ${n}`),a},Ore=W("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"},[`&.${Ere.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Aa=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:x,onDragLeave:b,onFocus:S,onFocusVisible:w,onKeyDown:_,onKeyUp:O,onMouseDown:C,onMouseLeave:T,onMouseUp:M,onTouchEnd:D,onTouchMove:$,onTouchStart:N,tabIndex:B=0,TouchRippleProps:q,touchRippleRef:U,type:F}=n,j=de(n,Rre),V=P.useRef(null),z=P.useRef(null),Q=xr(z,U),{isFocusVisibleRef:oe,onFocus:ae,onBlur:he,ref:Ae}=_B(),[ve,fe]=P.useState(!1);u&&ve&&fe(!1),P.useImperativeHandle(i,()=>({focusVisible:()=>{fe(!0),V.current.focus()}}),[]);const[Ee,_e]=P.useState(!1);P.useEffect(()=>{_e(!0)},[]);const le=Ee&&!d&&!u;P.useEffect(()=>{ve&&h&&!d&&Ee&&z.current.pulsate()},[d,h,ve,Ee]);function ce(Oe,Br,en=p){return ha(ti=>(Br&&Br(ti),!en&&z.current&&z.current[Oe](ti),!0))}const Ve=ce("start",C),je=ce("stop",x),be=ce("stop",b),me=ce("stop",M),Ie=ce("stop",Oe=>{ve&&Oe.preventDefault(),T&&T(Oe)}),Je=ce("start",N),at=ce("stop",D),ct=ce("stop",$),Vt=ce("stop",Oe=>{he(Oe),oe.current===!1&&fe(!1),g&&g(Oe)},!1),_r=ha(Oe=>{V.current||(V.current=Oe.currentTarget),ae(Oe),oe.current===!0&&(fe(!0),w&&w(Oe)),S&&S(Oe)}),jt=()=>{const Oe=V.current;return l&&l!=="button"&&!(Oe.tagName==="A"&&Oe.href)},st=P.useRef(!1),J=ha(Oe=>{h&&!st.current&&ve&&z.current&&Oe.key===" "&&(st.current=!0,z.current.stop(Oe,()=>{z.current.start(Oe)})),Oe.target===Oe.currentTarget&&jt()&&Oe.key===" "&&Oe.preventDefault(),_&&_(Oe),Oe.target===Oe.currentTarget&&jt()&&Oe.key==="Enter"&&!u&&(Oe.preventDefault(),y&&y(Oe))}),ye=ha(Oe=>{h&&Oe.key===" "&&z.current&&ve&&!Oe.defaultPrevented&&(st.current=!1,z.current.stop(Oe,()=>{z.current.pulsate(Oe)})),O&&O(Oe),y&&Oe.target===Oe.currentTarget&&jt()&&Oe.key===" "&&!Oe.defaultPrevented&&y(Oe)});let pe=l;pe==="button"&&(j.href||j.to)&&(pe=m);const Te={};pe==="button"?(Te.type=F===void 0?"button":F,Te.disabled=u):(!j.href&&!j.to&&(Te.role="button"),u&&(Te["aria-disabled"]=u));const Xe=xr(r,Ae,V),Ye=A({},n,{centerRipple:o,component:l,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:B,focusVisible:ve}),Ue=Pre(Ye);return E.jsxs(Ore,A({as:pe,className:Pe(Ue.root,s),ownerState:Ye,onBlur:Vt,onClick:y,onContextMenu:je,onFocus:_r,onKeyDown:J,onKeyUp:ye,onMouseDown:Ve,onMouseLeave:Ie,onMouseUp:me,onDragLeave:be,onTouchEnd:at,onTouchMove:ct,onTouchStart:Je,ref:Xe,tabIndex:u?-1:B,type:F},Te,j,{children:[a,le?E.jsx(Tre,A({ref:Q,center:o},q)):null]}))});function Mre(e){return qe("MuiIconButton",e)}const Are=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ire=["edge","children","className","color","disabled","disableFocusRipple","size"],$re=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,i&&`edge${ge(i)}`,`size${ge(o)}`]};return He(a,Mre,t)},Dre=W(Aa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})(({theme:e,ownerState:t})=>A({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})`:sn(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 A({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&A({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":A({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:sn(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)},{[`&.${Are.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),us=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=n,p=de(n,Ire),h=A({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:d}),m=$re(h);return E.jsx(Dre,A({className:Pe(m.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:r},p,{ownerState:h,children:o}))});function Lre(e){return qe("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kre=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Nre=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return He(s,Lre,a)},Fre=W("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${ge(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({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})),b$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},jre={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Bre=e=>jre[e]||e,Ke=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiTypography"}),i=Bre(n.color),o=Tp(A({},n,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=b$}=o,g=de(o,kre),y=A({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:d,paragraph:p,variant:h,variantMapping:m}),x=l||(p?"p":m[h]||b$[h])||"span",b=Nre(y);return E.jsx(Fre,A({as:x,ref:r,ownerState:y,className:Pe(b.root,s)},g))});function Ure(e){return qe("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qre=["className","color","enableColorOnDark","position"],Hre=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return He(i,Ure,n)},fm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Wre=W(As,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return A({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&&A({},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"&&A({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&A({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:fm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:fm(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:fm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:fm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),zre=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=n,l=de(n,qre),u=A({},n,{color:o,position:s,enableColorOnDark:a}),d=Hre(u);return E.jsx(Wre,A({square:!0,component:"header",ownerState:u,elevation:4,className:Pe(d.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});var hR={};Object.defineProperty(hR,"__esModule",{value:!0});var RB=hR.default=void 0,Vre=Kre(ot),Gre=gB;function PB(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(PB=function(n){return n?r:t})(e)}function Kre(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=PB(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Xre(e){return Object.keys(e).length===0}function Yre(e=null){const t=Vre.useContext(Gre.ThemeContext);return!t||Xre(t)?e:t}RB=hR.default=Yre;var Kn="top",Bi="bottom",Ui="right",Xn="left",mR="auto",Rp=[Kn,Bi,Ui,Xn],gc="start",Xf="end",Zre="clippingParents",OB="viewport",kd="popper",Jre="reference",x$=Rp.reduce(function(e,t){return e.concat([t+"-"+gc,t+"-"+Xf])},[]),MB=[].concat(Rp,[mR]).reduce(function(e,t){return e.concat([t,t+"-"+gc,t+"-"+Xf])},[]),Qre="beforeRead",ene="read",tne="afterRead",rne="beforeMain",nne="main",ine="afterMain",one="beforeWrite",ane="write",sne="afterWrite",lne=[Qre,ene,tne,rne,nne,ine,one,ane,sne];function Bo(e){return e?(e.nodeName||"").toLowerCase():null}function hi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bl(e){var t=hi(e).Element;return e instanceof t||e instanceof Element}function Li(e){var t=hi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gR(e){if(typeof ShadowRoot>"u")return!1;var t=hi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function une(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Li(o)||!Bo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function cne(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 i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,u){return l[u]="",l},{});!Li(i)||!Bo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const dne={name:"applyStyles",enabled:!0,phase:"write",fn:une,effect:cne,requires:["computeStyles"]};function No(e){return e.split("-")[0]}var El=Math.max,Jg=Math.min,vc=Math.round;function eT(){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 AB(){return!/^((?!chrome|android).)*safari/i.test(eT())}function yc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Li(e)&&(i=e.offsetWidth>0&&vc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vc(n.height)/e.offsetHeight||1);var a=Bl(e)?hi(e):window,s=a.visualViewport,l=!AB()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,d=(n.top+(l&&s?s.offsetTop:0))/o,p=n.width/i,h=n.height/o;return{width:p,height:h,top:d,right:u+p,bottom:d+h,left:u,x:u,y:d}}function vR(e){var t=yc(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 IB(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&gR(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ta(e){return hi(e).getComputedStyle(e)}function fne(e){return["table","td","th"].indexOf(Bo(e))>=0}function Is(e){return((Bl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wy(e){return Bo(e)==="html"?e:e.assignedSlot||e.parentNode||(gR(e)?e.host:null)||Is(e)}function w$(e){return!Li(e)||Ta(e).position==="fixed"?null:e.offsetParent}function pne(e){var t=/firefox/i.test(eT()),r=/Trident/i.test(eT());if(r&&Li(e)){var n=Ta(e);if(n.position==="fixed")return null}var i=Wy(e);for(gR(i)&&(i=i.host);Li(i)&&["html","body"].indexOf(Bo(i))<0;){var o=Ta(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Pp(e){for(var t=hi(e),r=w$(e);r&&fne(r)&&Ta(r).position==="static";)r=w$(r);return r&&(Bo(r)==="html"||Bo(r)==="body"&&Ta(r).position==="static")?t:r||pne(e)||t}function yR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bf(e,t,r){return El(e,Jg(t,r))}function hne(e,t,r){var n=bf(e,t,r);return n>r?r:n}function $B(){return{top:0,right:0,bottom:0,left:0}}function DB(e){return Object.assign({},$B(),e)}function LB(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var mne=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,DB(typeof t!="number"?t:LB(t,Rp))};function gne(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=No(r.placement),l=yR(s),u=[Xn,Ui].indexOf(s)>=0,d=u?"height":"width";if(!(!o||!a)){var p=mne(i.padding,r),h=vR(o),m=l==="y"?Kn:Xn,g=l==="y"?Bi:Ui,y=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],x=a[l]-r.rects.reference[l],b=Pp(o),S=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=y/2-x/2,_=p[m],O=S-h[d]-p[g],C=S/2-h[d]/2+w,T=bf(_,C,O),M=l;r.modifiersData[n]=(t={},t[M]=T,t.centerOffset=T-C,t)}}function vne(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||IB(t.elements.popper,i)&&(t.elements.arrow=i))}const yne={name:"arrow",enabled:!0,phase:"main",fn:gne,effect:vne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bc(e){return e.split("-")[1]}var bne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xne(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:vc(r*i)/i||0,y:vc(n*i)/i||0}}function _$(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,y=g===void 0?0:g,x=typeof d=="function"?d({x:m,y}):{x:m,y};m=x.x,y=x.y;var b=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),w=Xn,_=Kn,O=window;if(u){var C=Pp(r),T="clientHeight",M="clientWidth";if(C===hi(r)&&(C=Is(r),Ta(C).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),C=C,i===Kn||(i===Xn||i===Ui)&&o===Xf){_=Bi;var D=p&&C===O&&O.visualViewport?O.visualViewport.height:C[T];y-=D-n.height,y*=l?1:-1}if(i===Xn||(i===Kn||i===Bi)&&o===Xf){w=Ui;var $=p&&C===O&&O.visualViewport?O.visualViewport.width:C[M];m-=$-n.width,m*=l?1:-1}}var N=Object.assign({position:s},u&&bne),B=d===!0?xne({x:m,y},hi(r)):{x:m,y};if(m=B.x,y=B.y,l){var q;return Object.assign({},N,(q={},q[_]=S?"0":"",q[w]=b?"0":"",q.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",q))}return Object.assign({},N,(t={},t[_]=S?y+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function wne(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:No(t.placement),variation:bc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wne,data:{}};var pm={passive:!0};function Cne(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=hi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",r.update,pm)}),s&&l.addEventListener("resize",r.update,pm),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",r.update,pm)}),s&&l.removeEventListener("resize",r.update,pm)}}const Tne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cne,data:{}};var Sne={left:"right",right:"left",bottom:"top",top:"bottom"};function mg(e){return e.replace(/left|right|bottom|top/g,function(t){return Sne[t]})}var Ene={start:"end",end:"start"};function C$(e){return e.replace(/start|end/g,function(t){return Ene[t]})}function bR(e){var t=hi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function xR(e){return yc(Is(e)).left+bR(e).scrollLeft}function Rne(e,t){var r=hi(e),n=Is(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=AB();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+xR(e),y:l}}function Pne(e){var t,r=Is(e),n=bR(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=El(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=El(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+xR(e),l=-n.scrollTop;return Ta(i||r).direction==="rtl"&&(s+=El(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function wR(e){var t=Ta(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function kB(e){return["html","body","#document"].indexOf(Bo(e))>=0?e.ownerDocument.body:Li(e)&&wR(e)?e:kB(Wy(e))}function xf(e,t){var r;t===void 0&&(t=[]);var n=kB(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=hi(n),a=i?[o].concat(o.visualViewport||[],wR(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(xf(Wy(a)))}function tT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function One(e,t){var r=yc(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 T$(e,t,r){return t===OB?tT(Rne(e,r)):Bl(t)?One(t,r):tT(Pne(Is(e)))}function Mne(e){var t=xf(Wy(e)),r=["absolute","fixed"].indexOf(Ta(e).position)>=0,n=r&&Li(e)?Pp(e):e;return Bl(n)?t.filter(function(i){return Bl(i)&&IB(i,n)&&Bo(i)!=="body"}):[]}function Ane(e,t,r,n){var i=t==="clippingParents"?Mne(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,u){var d=T$(e,u,n);return l.top=El(d.top,l.top),l.right=Jg(d.right,l.right),l.bottom=Jg(d.bottom,l.bottom),l.left=El(d.left,l.left),l},T$(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function NB(e){var t=e.reference,r=e.element,n=e.placement,i=n?No(n):null,o=n?bc(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Kn:l={x:a,y:t.y-r.height};break;case Bi:l={x:a,y:t.y+t.height};break;case Ui:l={x:t.x+t.width,y:s};break;case Xn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?yR(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case gc:l[u]=l[u]-(t[d]/2-r[d]/2);break;case Xf:l[u]=l[u]+(t[d]/2-r[d]/2);break}}return l}function Yf(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?Zre:s,u=r.rootBoundary,d=u===void 0?OB:u,p=r.elementContext,h=p===void 0?kd:p,m=r.altBoundary,g=m===void 0?!1:m,y=r.padding,x=y===void 0?0:y,b=DB(typeof x!="number"?x:LB(x,Rp)),S=h===kd?Jre:kd,w=e.rects.popper,_=e.elements[g?S:h],O=Ane(Bl(_)?_:_.contextElement||Is(e.elements.popper),l,d,a),C=yc(e.elements.reference),T=NB({reference:C,element:w,placement:i}),M=tT(Object.assign({},w,T)),D=h===kd?M:C,$={top:O.top-D.top+b.top,bottom:D.bottom-O.bottom+b.bottom,left:O.left-D.left+b.left,right:D.right-O.right+b.right},N=e.modifiersData.offset;if(h===kd&&N){var B=N[i];Object.keys($).forEach(function(q){var U=[Ui,Bi].indexOf(q)>=0?1:-1,F=[Kn,Bi].indexOf(q)>=0?"y":"x";$[q]+=B[F]*U})}return $}function Ine(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?MB:l,d=bc(n),p=d?s?x$:x$.filter(function(g){return bc(g)===d}):Rp,h=p.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=p);var m=h.reduce(function(g,y){return g[y]=Yf(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[No(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function $ne(e){if(No(e)===mR)return[];var t=mg(e);return[C$(e),t,C$(t)]}function Dne(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,m=r.flipVariations,g=m===void 0?!0:m,y=r.allowedAutoPlacements,x=t.options.placement,b=No(x),S=b===x,w=l||(S||!g?[mg(x)]:$ne(x)),_=[x].concat(w).reduce(function(ve,fe){return ve.concat(No(fe)===mR?Ine(t,{placement:fe,boundary:d,rootBoundary:p,padding:u,flipVariations:g,allowedAutoPlacements:y}):fe)},[]),O=t.rects.reference,C=t.rects.popper,T=new Map,M=!0,D=_[0],$=0;$<_.length;$++){var N=_[$],B=No(N),q=bc(N)===gc,U=[Kn,Bi].indexOf(B)>=0,F=U?"width":"height",j=Yf(t,{placement:N,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),V=U?q?Ui:Xn:q?Bi:Kn;O[F]>C[F]&&(V=mg(V));var z=mg(V),Q=[];if(o&&Q.push(j[B]<=0),s&&Q.push(j[V]<=0,j[z]<=0),Q.every(function(ve){return ve})){D=N,M=!1;break}T.set(N,Q)}if(M)for(var oe=g?3:1,ae=function(fe){var Ee=_.find(function(_e){var le=T.get(_e);if(le)return le.slice(0,fe).every(function(ce){return ce})});if(Ee)return D=Ee,"break"},he=oe;he>0;he--){var Ae=ae(he);if(Ae==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const Lne={name:"flip",enabled:!0,phase:"main",fn:Dne,requiresIfExists:["offset"],data:{_skip:!1}};function S$(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 E$(e){return[Kn,Ui,Bi,Xn].some(function(t){return e[t]>=0})}function kne(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Yf(t,{elementContext:"reference"}),s=Yf(t,{altBoundary:!0}),l=S$(a,n),u=S$(s,i,o),d=E$(l),p=E$(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Nne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kne};function Fne(e,t,r){var n=No(e),i=[Xn,Kn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Xn,Ui].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function jne(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=MB.reduce(function(d,p){return d[p]=Fne(p,t.rects,o),d},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const Bne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jne};function Une(e){var t=e.state,r=e.name;t.modifiersData[r]=NB({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const qne={name:"popperOffsets",enabled:!0,phase:"read",fn:Une,data:{}};function Hne(e){return e==="x"?"y":"x"}function Wne(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,m=h===void 0?!0:h,g=r.tetherOffset,y=g===void 0?0:g,x=Yf(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),b=No(t.placement),S=bc(t.placement),w=!S,_=yR(b),O=Hne(_),C=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(C){if(o){var q,U=_==="y"?Kn:Xn,F=_==="y"?Bi:Ui,j=_==="y"?"height":"width",V=C[_],z=V+x[U],Q=V-x[F],oe=m?-M[j]/2:0,ae=S===gc?T[j]:M[j],he=S===gc?-M[j]:-T[j],Ae=t.elements.arrow,ve=m&&Ae?vR(Ae):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$B(),Ee=fe[U],_e=fe[F],le=bf(0,T[j],ve[j]),ce=w?T[j]/2-oe-le-Ee-$.mainAxis:ae-le-Ee-$.mainAxis,Ve=w?-T[j]/2+oe+le+_e+$.mainAxis:he+le+_e+$.mainAxis,je=t.elements.arrow&&Pp(t.elements.arrow),be=je?_==="y"?je.clientTop||0:je.clientLeft||0:0,me=(q=N==null?void 0:N[_])!=null?q:0,Ie=V+ce-me-be,Je=V+Ve-me,at=bf(m?Jg(z,Ie):z,V,m?El(Q,Je):Q);C[_]=at,B[_]=at-V}if(s){var ct,Vt=_==="x"?Kn:Xn,_r=_==="x"?Bi:Ui,jt=C[O],st=O==="y"?"height":"width",J=jt+x[Vt],ye=jt-x[_r],pe=[Kn,Xn].indexOf(b)!==-1,Te=(ct=N==null?void 0:N[O])!=null?ct:0,Xe=pe?J:jt-T[st]-M[st]-Te+$.altAxis,Ye=pe?jt+T[st]+M[st]-Te-$.altAxis:ye,Ue=m&&pe?hne(Xe,jt,Ye):bf(m?Xe:J,jt,m?Ye:ye);C[O]=Ue,B[O]=Ue-jt}t.modifiersData[n]=B}}const zne={name:"preventOverflow",enabled:!0,phase:"main",fn:Wne,requiresIfExists:["offset"]};function Vne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gne(e){return e===hi(e)||!Li(e)?bR(e):Vne(e)}function Kne(e){var t=e.getBoundingClientRect(),r=vc(t.width)/e.offsetWidth||1,n=vc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Xne(e,t,r){r===void 0&&(r=!1);var n=Li(t),i=Li(t)&&Kne(t),o=Is(t),a=yc(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Bo(t)!=="body"||wR(o))&&(s=Gne(t)),Li(t)?(l=yc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=xR(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yne(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function Zne(e){var t=Yne(e);return lne.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Jne(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Qne(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var R$={placement:"bottom",modifiers:[],strategy:"absolute"};function P$(){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 eie(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?R$:i;return function(s,l,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},R$,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},p=[],h=!1,m={state:d,setOptions:function(b){var S=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},o,d.options,S),d.scrollParents={reference:Bl(s)?xf(s):s.contextElement?xf(s.contextElement):[],popper:xf(l)};var w=Zne(Qne([].concat(n,d.options.modifiers)));return d.orderedModifiers=w.filter(function(_){return _.enabled}),g(),m.update()},forceUpdate:function(){if(!h){var b=d.elements,S=b.reference,w=b.popper;if(P$(S,w)){d.rects={reference:Xne(S,Pp(w),d.options.strategy==="fixed"),popper:vR(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function($){return d.modifiersData[$.name]=Object.assign({},$.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var O=d.orderedModifiers[_],C=O.fn,T=O.options,M=T===void 0?{}:T,D=O.name;typeof C=="function"&&(d=C({state:d,options:M,name:D,instance:m})||d)}}}},update:Jne(function(){return new Promise(function(x){m.forceUpdate(),x(d)})}),destroy:function(){y(),h=!0}};if(!P$(s,l))return m;m.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function g(){d.orderedModifiers.forEach(function(x){var b=x.name,S=x.options,w=S===void 0?{}:S,_=x.effect;if(typeof _=="function"){var O=_({state:d,name:b,instance:m,options:w}),C=function(){};p.push(O||C)}})}function y(){p.forEach(function(x){return x()}),p=[]}return m}}var tie=[Tne,qne,_ne,dne,Bne,Lne,zne,yne,Nne],rie=eie({defaultModifiers:tie});function nie(e){return typeof e=="function"?e():e}const FB=P.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,s]=P.useState(null),l=xr(P.isValidElement(n)?Wc(n):null,r);if(fo(()=>{o||s(nie(i)||document.body)},[i,o]),fo(()=>{if(a&&!o)return Xg(r,a),()=>{Xg(r,null)}},[r,a,o]),o){if(P.isValidElement(n)){const u={ref:l};return P.cloneElement(n,u)}return E.jsx(P.Fragment,{children:n})}return E.jsx(P.Fragment,{children:a&&jF.createPortal(n,a)})});function iie(e){return qe("MuiPopper",e)}Ne("MuiPopper",["root"]);const oie=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],aie=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function sie(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 rT(e){return typeof e=="function"?e():e}function lie(e){return e.nodeType!==void 0}const uie=e=>{const{classes:t}=e;return He({root:["root"]},iie,t)},cie={},die=P.forwardRef(function(t,r){var n;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:m={},slots:g={},TransitionProps:y}=t,x=de(t,oie),b=P.useRef(null),S=xr(b,r),w=P.useRef(null),_=xr(w,h),O=P.useRef(_);fo(()=>{O.current=_},[_]),P.useImperativeHandle(h,()=>w.current,[]);const C=sie(d,a),[T,M]=P.useState(C),[D,$]=P.useState(rT(i));P.useEffect(()=>{w.current&&w.current.forceUpdate()}),P.useEffect(()=>{i&&$(rT(i))},[i]),fo(()=>{if(!D||!u)return;const F=z=>{M(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{F(z)}}];l!=null&&(j=j.concat(l)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const V=rie(D,b.current,A({placement:C},p,{modifiers:j}));return O.current(V),()=>{V.destroy(),O.current(null)}},[D,s,l,u,p,C]);const N={placement:T};y!==null&&(N.TransitionProps=y);const B=uie(t),q=(n=g.root)!=null?n:"div",U=jl({elementType:q,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:B.root});return E.jsx(q,A({},U,{children:typeof o=="function"?o(N):o}))}),fie=P.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=cie,popperRef:m,style:g,transition:y=!1,slotProps:x={},slots:b={}}=t,S=de(t,aie),[w,_]=P.useState(!0),O=()=>{_(!1)},C=()=>{_(!0)};if(!l&&!d&&(!y||w))return null;let T;if(o)T=o;else if(n){const $=rT(n);T=$&&lie($)?Qr($).body:Qr(null).body}const M=!d&&l&&(!y||w)?"none":void 0,D=y?{in:d,onEnter:O,onExited:C}:void 0;return E.jsx(FB,{disablePortal:s,container:T,children:E.jsx(die,A({anchorEl:n,direction:a,disablePortal:s,modifiers:u,ref:r,open:y?!w:d,placement:p,popperOptions:h,popperRef:m,slotProps:x,slots:b},S,{style:A({position:"fixed",top:0,left:0,display:M},g),TransitionProps:D,children:i}))})}),pie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hie=W(fie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mie=P.forwardRef(function(t,r){var n;const i=RB(),o=tt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:m,open:g,placement:y,popperOptions:x,popperRef:b,transition:S,slots:w,slotProps:_}=o,O=de(o,pie),C=(n=w==null?void 0:w.root)!=null?n:l==null?void 0:l.Root,T=A({anchorEl:a,container:d,disablePortal:p,keepMounted:h,modifiers:m,open:g,placement:y,popperOptions:x,popperRef:b,transition:S},O);return E.jsx(hie,A({as:s,direction:i==null?void 0:i.direction,slots:{root:C},slotProps:_??u},T,{ref:r}))}),gie=["onChange","maxRows","minRows","style","value"];function hm(e){return parseInt(e,10)||0}const vie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function yie(e){for(const t in e)return!1;return!0}function O$(e){return yie(e)||e.outerHeightStyle===0&&!e.overflowing}const bie=P.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s}=t,l=de(t,gie),{current:u}=P.useRef(s!=null),d=P.useRef(null),p=xr(r,d),h=P.useRef(null),m=P.useRef(null),g=P.useCallback(()=>{const w=d.current,_=m.current;if(!w||!_)return;const C=jo(w).getComputedStyle(w);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=C.width,_.value=w.value||t.placeholder||"x",_.value.slice(-1)===`
126
+ `&&(_.value+=" ");const T=C.boxSizing,M=hm(C.paddingBottom)+hm(C.paddingTop),D=hm(C.borderBottomWidth)+hm(C.borderTopWidth),$=_.scrollHeight;_.value="x";const N=_.scrollHeight;let B=$;o&&(B=Math.max(Number(o)*N,B)),i&&(B=Math.min(Number(i)*N,B)),B=Math.max(B,N);const q=B+(T==="border-box"?M+D:0),U=Math.abs(B-$)<=1;return{outerHeightStyle:q,overflowing:U}},[i,o,t.placeholder]),y=ha(()=>{const w=d.current,_=g();if(!w||!_||O$(_))return!1;const O=_.outerHeightStyle;return h.current!=null&&h.current!==O}),x=P.useCallback(()=>{const w=d.current,_=g();if(!w||!_||O$(_))return;const O=_.outerHeightStyle;h.current!==O&&(h.current=O,w.style.height=`${O}px`),w.style.overflow=_.overflowing?"hidden":""},[g]),b=P.useRef(-1);fo(()=>{const w=Uy(x),_=d==null?void 0:d.current;if(!_)return;const O=jo(_);O.addEventListener("resize",w);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{y()&&(C.unobserve(_),cancelAnimationFrame(b.current),x(),b.current=requestAnimationFrame(()=>{C.observe(_)}))}),C.observe(_)),()=>{w.clear(),cancelAnimationFrame(b.current),O.removeEventListener("resize",w),C&&C.disconnect()}},[g,x,y]),fo(()=>{x()});const S=w=>{u||x(),n&&n(w)};return E.jsxs(P.Fragment,{children:[E.jsx("textarea",A({value:s,onChange:S,ref:p,rows:o,style:a},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:A({},vie.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function $s({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const zy=P.createContext(void 0);function Uo(){return P.useContext(zy)}function jB(e){return E.jsx(Vj,A({},e,{defaultTheme:By,themeId:Ll}))}function M$(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Qg(e,t=!1){return e&&(M$(e.value)&&e.value!==""||t&&M$(e.defaultValue)&&e.defaultValue!=="")}function xie(e){return e.startAdornment}function wie(e){return qe("MuiInputBase",e)}const xc=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_ie=["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"],Vy=(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${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Gy=(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]},Cie=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:m,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${ge(h)}`,d&&"multiline",m&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return He(y,wie,t)},Ky=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Vy})(({theme:e,ownerState:t})=>A({},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",[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&A({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Xy=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Gy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=A({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return A({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] + .${xc.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${xc.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"})}),Tie=E.jsx(jB,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Yy=P.forwardRef(function(t,r){var n;const i=tt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:y=!1,id:x,inputComponent:b="input",inputProps:S={},inputRef:w,maxRows:_,minRows:O,multiline:C=!1,name:T,onBlur:M,onChange:D,onClick:$,onFocus:N,onKeyDown:B,onKeyUp:q,placeholder:U,readOnly:F,renderSuffix:j,rows:V,slotProps:z={},slots:Q={},startAdornment:oe,type:ae="text",value:he}=i,Ae=de(i,_ie),ve=S.value!=null?S.value:he,{current:fe}=P.useRef(ve!=null),Ee=P.useRef(),_e=P.useCallback(Ue=>{},[]),le=xr(Ee,w,S.ref,_e),[ce,Ve]=P.useState(!1),je=Uo(),be=$s({props:i,muiFormControl:je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=je?je.focused:ce,P.useEffect(()=>{!je&&h&&ce&&(Ve(!1),M&&M())},[je,h,ce,M]);const me=je&&je.onFilled,Ie=je&&je.onEmpty,Je=P.useCallback(Ue=>{Qg(Ue)?me&&me():Ie&&Ie()},[me,Ie]);fo(()=>{fe&&Je({value:ve})},[ve,Je,fe]);const at=Ue=>{if(be.disabled){Ue.stopPropagation();return}N&&N(Ue),S.onFocus&&S.onFocus(Ue),je&&je.onFocus?je.onFocus(Ue):Ve(!0)},ct=Ue=>{M&&M(Ue),S.onBlur&&S.onBlur(Ue),je&&je.onBlur?je.onBlur(Ue):Ve(!1)},Vt=(Ue,...Oe)=>{if(!fe){const Br=Ue.target||Ee.current;if(Br==null)throw new Error(hc(1));Je({value:Br.value})}S.onChange&&S.onChange(Ue,...Oe),D&&D(Ue,...Oe)};P.useEffect(()=>{Je(Ee.current)},[]);const _r=Ue=>{Ee.current&&Ue.currentTarget===Ue.target&&Ee.current.focus(),$&&$(Ue)};let jt=b,st=S;C&&jt==="input"&&(V?st=A({type:void 0,minRows:V,maxRows:V},st):st=A({type:void 0,maxRows:_,minRows:O},st),jt=bie);const J=Ue=>{Je(Ue.animationName==="mui-auto-fill-cancel"?Ee.current:{value:"x"})};P.useEffect(()=>{je&&je.setAdornedStart(!!oe)},[je,oe]);const ye=A({},i,{color:be.color||"primary",disabled:be.disabled,endAdornment:g,error:be.error,focused:be.focused,formControl:je,fullWidth:y,hiddenLabel:be.hiddenLabel,multiline:C,size:be.size,startAdornment:oe,type:ae}),pe=Cie(ye),Te=Q.root||u.Root||Ky,Xe=z.root||d.root||{},Ye=Q.input||u.Input||Xy;return st=A({},st,(n=z.input)!=null?n:d.input),E.jsxs(P.Fragment,{children:[!m&&Tie,E.jsxs(Te,A({},Xe,!Gf(Te)&&{ownerState:A({},ye,Xe.ownerState)},{ref:r,onClick:_r},Ae,{className:Pe(pe.root,Xe.className,l,F&&"MuiInputBase-readOnly"),children:[oe,E.jsx(zy.Provider,{value:null,children:E.jsx(Ye,A({ownerState:ye,"aria-invalid":be.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:p,disabled:be.disabled,id:x,onAnimationStart:J,name:T,placeholder:U,readOnly:F,required:be.required,rows:V,value:ve,onKeyDown:B,onKeyUp:q,type:ae},st,!Gf(Ye)&&{as:jt,ownerState:A({},ye,st.ownerState)},{ref:le,className:Pe(pe.input,st.className,F&&"MuiInputBase-readOnly"),onBlur:ct,onChange:Vt,onFocus:at}))}),g,j?j(A({},be,{startAdornment:oe})):null]}))]})});function Sie(e){return qe("MuiInput",e)}const Nd=A({},xc,Ne("MuiInput",["root","underline","input"]));function Eie(e){return qe("MuiOutlinedInput",e)}const aa=A({},xc,Ne("MuiOutlinedInput",["root","notchedOutline","input"]));function Rie(e){return qe("MuiFilledInput",e)}const Qs=A({},xc,Ne("MuiFilledInput",["root","underline","input"])),Pie=jr(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Oie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Mie={entering:{opacity:1},entered:{opacity:1}},Zy=P.forwardRef(function(t,r){const n=fn(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:g,onExiting:y,style:x,timeout:b=i,TransitionComponent:S=Vi}=t,w=de(t,Oie),_=P.useRef(null),O=xr(_,Wc(s),r),C=U=>F=>{if(U){const j=_.current;F===void 0?U(j):U(j,F)}},T=C(h),M=C((U,F)=>{pR(U);const j=mc({style:x,timeout:b,easing:l},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",j),U.style.transition=n.transitions.create("opacity",j),d&&d(U,F)}),D=C(p),$=C(y),N=C(U=>{const F=mc({style:x,timeout:b,easing:l},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",F),U.style.transition=n.transitions.create("opacity",F),m&&m(U)}),B=C(g),q=U=>{o&&o(_.current,U)};return E.jsx(S,A({appear:a,in:u,nodeRef:_,onEnter:M,onEntered:D,onEntering:T,onExit:N,onExited:B,onExiting:$,addEndListener:q,timeout:b},w,{children:(U,F)=>P.cloneElement(s,A({style:A({opacity:0,visibility:U==="exited"&&!u?"hidden":void 0},Mie[U],x,s.props.style),ref:O},F))}))});function Aie(e){return qe("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const Iie=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$ie=e=>{const{classes:t,invisible:r}=e;return He({root:["root",r&&"invisible"]},Aie,t)},Die=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>A({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"})),BB=P.forwardRef(function(t,r){var n,i,o;const a=tt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:d={},componentsProps:p={},invisible:h=!1,open:m,slotProps:g={},slots:y={},TransitionComponent:x=Zy,transitionDuration:b}=a,S=de(a,Iie),w=A({},a,{component:u,invisible:h}),_=$ie(w),O=(n=g.root)!=null?n:p.root;return E.jsx(x,A({in:m,timeout:b},S,{children:E.jsx(Die,A({"aria-hidden":!0},O,{as:(i=(o=y.root)!=null?o:d.Root)!=null?i:u,className:Pe(_.root,l,O==null?void 0:O.className),ownerState:A({},w,O==null?void 0:O.ownerState),classes:_,ref:r,children:s}))}))}),Lie=Ne("MuiBox",["root"]),kie=cR(),Mr=OQ({themeId:Ll,defaultTheme:kie,defaultClassName:Lie.root,generateClassName:aR.generate});function Nie(e){return qe("MuiButton",e)}const mm=Ne("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),UB=P.createContext({}),Fie=P.createContext(void 0),jie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Bie=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(i)}`,`${o}Size${ge(i)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(i)}`],endIcon:["icon","endIcon",`iconSize${ge(i)}`]},l=He(s,Nie,a);return A({},a,l)},qB=e=>A({},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}}),Uie=W(Aa,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return A({},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":A({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:sn(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})`:sn(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})`:sn(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:o,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":A({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mm.focusVisible}`]:A({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mm.disabled}`]:A({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 ${sn(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:i,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"},[`&.${mm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mm.disabled}`]:{boxShadow:"none"}}),qie=W("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>A({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},qB(e))),Hie=W("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>A({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},qB(e))),ma=P.forwardRef(function(t,r){const n=P.useContext(UB),i=P.useContext(Fie),o=TB(n,t),a=tt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:x=!1,size:b="medium",startIcon:S,type:w,variant:_="text"}=a,O=de(a,jie),C=A({},a,{color:l,component:u,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:x,size:b,type:w,variant:_}),T=Bie(C),M=S&&E.jsx(qie,{className:T.startIcon,ownerState:C,children:S}),D=g&&E.jsx(Hie,{className:T.endIcon,ownerState:C,children:g}),$=i||"";return E.jsxs(Uie,A({ownerState:C,className:Pe(n.className,T.root,d,$),component:u,disabled:p,focusRipple:!m,focusVisibleClassName:Pe(T.focusVisible,y),ref:r,type:w},O,{classes:T,children:[M,s,D]}))});function Wie(e){return qe("MuiCard",e)}Ne("MuiCard",["root"]);const zie=["className","raised"],Vie=e=>{const{classes:t}=e;return He({root:["root"]},Wie,t)},Gie=W(As,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),_R=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=n,a=de(n,zie),s=A({},n,{raised:o}),l=Vie(s);return E.jsx(Gie,A({className:Pe(l.root,i),elevation:o?8:void 0,ref:r,ownerState:s},a))});function Kie(e){return qe("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Xie=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Yie=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${ge(i)}`],input:["input"]};return He(o,Kie,t)},Zie=W(Aa,{name:"MuiSwitchBase"})(({ownerState:e})=>A({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Jie=W("input",{name:"MuiSwitchBase",shouldForwardProp:Rn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),HB=P.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:m,inputRef:g,name:y,onBlur:x,onChange:b,onFocus:S,readOnly:w,required:_=!1,tabIndex:O,type:C,value:T}=t,M=de(t,Xie),[D,$]=Yg({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),N=Uo(),B=Q=>{S&&S(Q),N&&N.onFocus&&N.onFocus(Q)},q=Q=>{x&&x(Q),N&&N.onBlur&&N.onBlur(Q)},U=Q=>{if(Q.nativeEvent.defaultPrevented)return;const oe=Q.target.checked;$(oe),b&&b(Q,oe)};let F=l;N&&typeof F>"u"&&(F=N.disabled);const j=C==="checkbox"||C==="radio",V=A({},t,{checked:D,disabled:F,disableFocusRipple:u,edge:d}),z=Yie(V);return E.jsxs(Zie,A({component:"span",className:Pe(z.root,a),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:B,onBlur:q,ownerState:V,ref:r},M,{children:[E.jsx(Jie,A({autoFocus:n,checked:i,defaultChecked:s,className:z.input,disabled:F,id:j?h:void 0,name:y,onChange:U,readOnly:w,ref:g,required:_,ownerState:V,tabIndex:O,type:C},C==="checkbox"&&T===void 0?{}:{value:T},m)),D?o:p]}))}),Qie=jr(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"),eoe=jr(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"),toe=jr(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 roe(e){return qe("MuiCheckbox",e)}const o_=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),noe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ioe=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(i)}`]},a=He(o,roe,t);return A({},t,a)},ooe=W(HB,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e,ownerState:t})=>A({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})`:sn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${o_.checked}, &.${o_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${o_.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),aoe=E.jsx(eoe,{}),soe=E.jsx(Qie,{}),loe=E.jsx(toe,{}),WB=P.forwardRef(function(t,r){var n,i;const o=tt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=aoe,color:s="primary",icon:l=soe,indeterminate:u=!1,indeterminateIcon:d=loe,inputProps:p,size:h="medium",className:m}=o,g=de(o,noe),y=u?d:l,x=u?d:a,b=A({},o,{color:s,indeterminate:u,size:h}),S=ioe(b);return E.jsx(ooe,A({type:"checkbox",inputProps:A({"data-indeterminate":u},p),icon:P.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:h}),checkedIcon:P.cloneElement(x,{fontSize:(i=x.props.fontSize)!=null?i:h}),ownerState:b,ref:r,className:Pe(S.root,m)},g,{classes:S}))});function uoe(e){return qe("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const coe=["className","color","disableShrink","size","style","thickness","value","variant"];let Jy=e=>e,A$,I$,$$,D$;const Xa=44,doe=ho(A$||(A$=Jy`
127
+ 0% {
128
+ transform: rotate(0deg);
129
+ }
130
+
131
+ 100% {
132
+ transform: rotate(360deg);
133
+ }
134
+ `)),foe=ho(I$||(I$=Jy`
135
+ 0% {
136
+ stroke-dasharray: 1px, 200px;
137
+ stroke-dashoffset: 0;
138
+ }
139
+
140
+ 50% {
141
+ stroke-dasharray: 100px, 200px;
142
+ stroke-dashoffset: -15px;
143
+ }
144
+
145
+ 100% {
146
+ stroke-dasharray: 100px, 200px;
147
+ stroke-dashoffset: -125px;
148
+ }
149
+ `)),poe=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,i&&"circleDisableShrink"]};return He(o,uoe,t)},hoe=W("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>A({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"&&Fi($$||($$=Jy`
150
+ animation: ${0} 1.4s linear infinite;
151
+ `),doe)),moe=W("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),goe=W("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>A({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&&Fi(D$||(D$=Jy`
152
+ animation: ${0} 1.4s ease-in-out infinite;
153
+ `),foe)),Qy=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:d=0,variant:p="indeterminate"}=n,h=de(n,coe),m=A({},n,{color:o,disableShrink:a,size:s,thickness:u,value:d,variant:p}),g=poe(m),y={},x={},b={};if(p==="determinate"){const S=2*Math.PI*((Xa-u)/2);y.strokeDasharray=S.toFixed(3),b["aria-valuenow"]=Math.round(d),y.strokeDashoffset=`${((100-d)/100*S).toFixed(3)}px`,x.transform="rotate(-90deg)"}return E.jsx(hoe,A({className:Pe(g.root,i),style:A({width:s,height:s},x,l),ownerState:m,ref:r,role:"progressbar"},b,h,{children:E.jsx(moe,{className:g.svg,ownerState:m,viewBox:`${Xa/2} ${Xa/2} ${Xa} ${Xa}`,children:E.jsx(goe,{className:g.circle,style:y,ownerState:m,cx:Xa,cy:Xa,r:(Xa-u)/2,fill:"none",strokeWidth:u})})}))}),voe=(e,t)=>A({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),yoe=e=>A({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}}),boe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;n[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=A({html:voe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:A({margin:0},yoe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(i=[i,o]),i};function xoe(e){const t=tt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(P.Fragment,{children:[E.jsx(jB,{styles:i=>boe(i,n)}),r]})}function woe(e){const t=Qr(e);return t.body===e?jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function L$(e){return parseInt(jo(e).getComputedStyle(e).paddingRight,10)||0}function _oe(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 k$(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!_oe(a);s&&l&&wf(a,i)})}function a_(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Coe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(woe(n)){const a=CB(Qr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${L$(n)+a}px`;const s=Qr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${L$(l)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Qr(n).body;else{const a=n.parentElement,s=jo(n);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function Toe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Soe{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&&wf(t.modalRef,!1);const i=Toe(r);k$(r,t.mount,t.modalRef,i,!0);const o=a_(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=a_(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Coe(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=a_(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&wf(t.modalRef,r),k$(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&wf(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Eoe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Roe(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 Poe(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 Ooe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Poe(e))}function Moe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Eoe)).forEach((n,i)=>{const o=Roe(n);o===-1||!Ooe(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Aoe(){return!0}function zB(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=Moe,isEnabled:a=Aoe,open:s}=e,l=P.useRef(!1),u=P.useRef(null),d=P.useRef(null),p=P.useRef(null),h=P.useRef(null),m=P.useRef(!1),g=P.useRef(null),y=xr(Wc(t),g),x=P.useRef(null);P.useEffect(()=>{!s||!g.current||(m.current=!r)},[r,s]),P.useEffect(()=>{if(!s||!g.current)return;const w=Qr(g.current);return g.current.contains(w.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),P.useEffect(()=>{if(!s||!g.current)return;const w=Qr(g.current),_=T=>{x.current=T,!(n||!a()||T.key!=="Tab")&&w.activeElement===g.current&&T.shiftKey&&(l.current=!0,d.current&&d.current.focus())},O=()=>{const T=g.current;if(T===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(T.contains(w.activeElement)||n&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let M=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(M=o(g.current)),M.length>0){var D,$;const N=!!((D=x.current)!=null&&D.shiftKey&&(($=x.current)==null?void 0:$.key)==="Tab"),B=M[0],q=M[M.length-1];typeof B!="string"&&typeof q!="string"&&(N?q.focus():B.focus())}else T.focus()};w.addEventListener("focusin",O),w.addEventListener("keydown",_,!0);const C=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(C),w.removeEventListener("focusin",O),w.removeEventListener("keydown",_,!0)}},[r,n,i,a,s,o]);const b=w=>{p.current===null&&(p.current=w.relatedTarget),m.current=!0,h.current=w.target;const _=t.props.onFocus;_&&_(w)},S=w=>{p.current===null&&(p.current=w.relatedTarget),m.current=!0};return E.jsxs(P.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:y,onFocus:b}),E.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}function Ioe(e){return typeof e=="function"?e():e}function $oe(e){return e?e.props.hasOwnProperty("in"):!1}const Doe=new Soe;function Loe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Doe,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:p}=e,h=P.useRef({}),m=P.useRef(null),g=P.useRef(null),y=xr(g,p),[x,b]=P.useState(!d),S=$oe(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const _=()=>Qr(m.current),O=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),C=()=>{i.mount(O(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},T=ha(()=>{const j=Ioe(t)||_().body;i.add(O(),j),g.current&&C()}),M=P.useCallback(()=>i.isTopModal(O()),[i]),D=ha(j=>{m.current=j,j&&(d&&M()?C():g.current&&wf(g.current,w))}),$=P.useCallback(()=>{i.remove(O(),w)},[w,i]);P.useEffect(()=>()=>{$()},[$]),P.useEffect(()=>{d?T():(!S||!o)&&$()},[d,$,S,o,T]);const N=j=>V=>{var z;(z=j.onKeyDown)==null||z.call(j,V),!(V.key!=="Escape"||V.which===229||!M())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},B=j=>V=>{var z;(z=j.onClick)==null||z.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=SB(e);delete V.onTransitionEnter,delete V.onTransitionExited;const z=A({},V,j);return A({role:"presentation"},z,{onKeyDown:N(z),ref:y})},getBackdropProps:(j={})=>{const V=j;return A({"aria-hidden":!0},V,{onClick:B(V),open:d})},getTransitionProps:()=>{const j=()=>{b(!1),a&&a()},V=()=>{b(!0),s&&s(),o&&$()};return{onEnter:YC(j,l==null?void 0:l.props.onEnter),onExited:YC(V,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:D,isTopModal:M,exited:x,hasTransition:S}}function koe(e){return qe("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const Noe=["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"],Foe=e=>{const{open:t,exited:r,classes:n}=e;return He({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},koe,n)},joe=W("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})=>A({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Boe=W(BB,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),CR=P.forwardRef(function(t,r){var n,i,o,a,s,l;const u=tt({name:"MuiModal",props:t}),{BackdropComponent:d=Boe,BackdropProps:p,className:h,closeAfterTransition:m=!1,children:g,container:y,component:x,components:b={},componentsProps:S={},disableAutoFocus:w=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:O=!1,disablePortal:C=!1,disableRestoreFocus:T=!1,disableScrollLock:M=!1,hideBackdrop:D=!1,keepMounted:$=!1,onBackdropClick:N,open:B,slotProps:q,slots:U}=u,F=de(u,Noe),j=A({},u,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:_,disableEscapeKeyDown:O,disablePortal:C,disableRestoreFocus:T,disableScrollLock:M,hideBackdrop:D,keepMounted:$}),{getRootProps:V,getBackdropProps:z,getTransitionProps:Q,portalRef:oe,isTopModal:ae,exited:he,hasTransition:Ae}=Loe(A({},j,{rootRef:r})),ve=A({},j,{exited:he}),fe=Foe(ve),Ee={};if(g.props.tabIndex===void 0&&(Ee.tabIndex="-1"),Ae){const{onEnter:me,onExited:Ie}=Q();Ee.onEnter=me,Ee.onExited=Ie}const _e=(n=(i=U==null?void 0:U.root)!=null?i:b.Root)!=null?n:joe,le=(o=(a=U==null?void 0:U.backdrop)!=null?a:b.Backdrop)!=null?o:d,ce=(s=q==null?void 0:q.root)!=null?s:S.root,Ve=(l=q==null?void 0:q.backdrop)!=null?l:S.backdrop,je=jl({elementType:_e,externalSlotProps:ce,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:r,as:x},ownerState:ve,className:Pe(h,ce==null?void 0:ce.className,fe==null?void 0:fe.root,!ve.open&&ve.exited&&(fe==null?void 0:fe.hidden))}),be=jl({elementType:le,externalSlotProps:Ve,additionalProps:p,getSlotProps:me=>z(A({},me,{onClick:Ie=>{N&&N(Ie),me!=null&&me.onClick&&me.onClick(Ie)}})),className:Pe(Ve==null?void 0:Ve.className,p==null?void 0:p.className,fe==null?void 0:fe.backdrop),ownerState:ve});return!$&&!B&&(!Ae||he)?null:E.jsx(FB,{ref:oe,container:y,disablePortal:C,children:E.jsxs(_e,A({},je,{children:[!D&&d?E.jsx(le,A({},be)):null,E.jsx(zB,{disableEnforceFocus:_,disableAutoFocus:w,disableRestoreFocus:T,isEnabled:ae,open:B,children:P.cloneElement(g,Ee)})]}))})});function Uoe(e){return qe("MuiDialog",e)}const _f=Ne("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),VB=P.createContext({}),qoe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Hoe=W(BB,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Woe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return He(a,Uoe,t)},zoe=W(CR,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Voe=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(r.scroll)}`]]}})(({ownerState:e})=>A({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"}})),Goe=W(As,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>A({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)`,[`&.${_f.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}`,[`&.${_f.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,[`&.${_f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),GB=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDialog"}),i=fn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:x,onClick:b,onClose:S,open:w,PaperComponent:_=As,PaperProps:O={},scroll:C="paper",TransitionComponent:T=Zy,transitionDuration:M=o,TransitionProps:D}=n,$=de(n,qoe),N=A({},n,{disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:C}),B=Woe(N),q=P.useRef(),U=z=>{q.current=z.target===z.currentTarget},F=z=>{b&&b(z),q.current&&(q.current=null,x&&x(z),S&&S(z,"backdropClick"))},j=Fl(s),V=P.useMemo(()=>({titleId:j}),[j]);return E.jsx(zoe,A({className:Pe(B.root,p),closeAfterTransition:!0,components:{Backdrop:Hoe},componentsProps:{backdrop:A({transitionDuration:M,as:l},u)},disableEscapeKeyDown:h,onClose:S,open:w,ref:r,onClick:F,ownerState:N},$,{children:E.jsx(T,A({appear:!0,in:w,timeout:M,role:"presentation"},D,{children:E.jsx(Voe,{className:Pe(B.container),onMouseDown:U,ownerState:N,children:E.jsx(Goe,A({as:_,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},O,{className:Pe(B.paper,O.className),ownerState:N,children:E.jsx(VB.Provider,{value:V,children:d})}))})}))}))});function Koe(e){return qe("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const Xoe=["className","disableSpacing"],Yoe=e=>{const{classes:t,disableSpacing:r}=e;return He({root:["root",!r&&"spacing"]},Koe,t)},Zoe=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>A({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),KB=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,a=de(n,Xoe),s=A({},n,{disableSpacing:o}),l=Yoe(s);return E.jsx(Zoe,A({className:Pe(l.root,i),ownerState:s,ref:r},a))});function Joe(e){return qe("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);function Qoe(e){return qe("MuiDialogTitle",e)}const eae=Ne("MuiDialogTitle",["root"]),tae=["className","dividers"],rae=e=>{const{classes:t,dividers:r}=e;return He({root:["root",r&&"dividers"]},Joe,t)},nae=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>A({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}`}:{[`.${eae.root} + &`]:{paddingTop:0}})),XB=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,a=de(n,tae),s=A({},n,{dividers:o}),l=rae(s);return E.jsx(nae,A({className:Pe(l.root,i),ownerState:s,ref:r},a))});function iae(e){return qe("MuiDialogContentText",e)}Ne("MuiDialogContentText",["root"]);const oae=["children","className"],aae=e=>{const{classes:t}=e,n=He({root:["root"]},iae,t);return A({},t,n)},sae=W(Ke,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lae=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDialogContentText"}),{className:i}=n,o=de(n,oae),a=aae(o);return E.jsx(sae,A({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:Pe(a.root,i)},n,{classes:a}))}),uae=["className","id"],cae=e=>{const{classes:t}=e;return He({root:["root"]},Qoe,t)},dae=W(Ke,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),fae=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=n,a=de(n,uae),s=n,l=cae(s),{titleId:u=o}=P.useContext(VB);return E.jsx(dae,A({component:"h2",className:Pe(l.root,i),ownerState:s,ref:r,variant:"h6",id:o??u},a))});function pae(e){return qe("MuiDivider",e)}const N$=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hae=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mae=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return He({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},pae,n)},gae=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>A({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:sn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>A({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>A({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>A({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),vae=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>A({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),YB=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:p=s!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth"}=n,g=de(n,hae),y=A({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:d,role:p,textAlign:h,variant:m}),x=mae(y);return E.jsx(gae,A({as:s,className:Pe(x.root,a),role:p,ref:r,ownerState:y},g,{children:o?E.jsx(vae,{className:x.wrapper,ownerState:y,children:o}):null}))});YB.muiSkipListHighlight=!0;const yae=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bae(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=jo(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function xae(e){return typeof e=="function"?e():e}function gm(e,t,r){const n=xae(r),i=bae(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const wae=P.forwardRef(function(t,r){const n=fn(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:d="down",easing:p=i,in:h,onEnter:m,onEntered:g,onEntering:y,onExit:x,onExited:b,onExiting:S,style:w,timeout:_=o,TransitionComponent:O=Vi}=t,C=de(t,yae),T=P.useRef(null),M=xr(Wc(l),T,r),D=z=>Q=>{z&&(Q===void 0?z(T.current):z(T.current,Q))},$=D((z,Q)=>{gm(d,z,u),pR(z),m&&m(z,Q)}),N=D((z,Q)=>{const oe=mc({timeout:_,style:w,easing:p},{mode:"enter"});z.style.webkitTransition=n.transitions.create("-webkit-transform",A({},oe)),z.style.transition=n.transitions.create("transform",A({},oe)),z.style.webkitTransform="none",z.style.transform="none",y&&y(z,Q)}),B=D(g),q=D(S),U=D(z=>{const Q=mc({timeout:_,style:w,easing:p},{mode:"exit"});z.style.webkitTransition=n.transitions.create("-webkit-transform",Q),z.style.transition=n.transitions.create("transform",Q),gm(d,z,u),x&&x(z)}),F=D(z=>{z.style.webkitTransition="",z.style.transition="",b&&b(z)}),j=z=>{a&&a(T.current,z)},V=P.useCallback(()=>{T.current&&gm(d,T.current,u)},[d,u]);return P.useEffect(()=>{if(h||d==="down"||d==="right")return;const z=Uy(()=>{T.current&&gm(d,T.current,u)}),Q=jo(T.current);return Q.addEventListener("resize",z),()=>{z.clear(),Q.removeEventListener("resize",z)}},[d,h,u]),P.useEffect(()=>{h||V()},[h,V]),E.jsx(O,A({nodeRef:T,onEnter:$,onEntered:B,onEntering:N,onExit:U,onExited:F,onExiting:q,addEndListener:j,appear:s,in:h,timeout:_},C,{children:(z,Q)=>P.cloneElement(l,A({ref:M,style:A({visibility:z==="exited"&&!h?"hidden":void 0},w,l.props.style)},Q))}))});function _ae(e){return qe("MuiDrawer",e)}Ne("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Cae=["BackdropProps"],Tae=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],ZB=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Sae=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return He(i,_ae,t)},Eae=W(CR,{name:"MuiDrawer",slot:"Root",overridesResolver:ZB})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),F$=W("div",{shouldForwardProp:Rn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:ZB})({flex:"0 0 auto"}),Rae=W(As,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(r.anchor)}`]]}})(({theme:e,ownerState:t})=>A({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}`})),JB={left:"right",right:"left",top:"down",bottom:"up"};function Pae(e){return["left","right"].indexOf(e)!==-1}function Oae({direction:e},t){return e==="rtl"&&Pae(t)?JB[t]:t}const Mae=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiDrawer"}),i=fn(),o=Ny(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:u,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:g,open:y=!1,PaperProps:x={},SlideProps:b,TransitionComponent:S=wae,transitionDuration:w=a,variant:_="temporary"}=n,O=de(n.ModalProps,Cae),C=de(n,Tae),T=P.useRef(!1);P.useEffect(()=>{T.current=!0},[]);const M=Oae({direction:o?"rtl":"ltr"},s),$=A({},n,{anchor:s,elevation:p,open:y,variant:_},C),N=Sae($),B=E.jsx(Rae,A({elevation:_==="temporary"?p:0,square:!0},x,{className:Pe(N.paper,x.className),ownerState:$,children:u}));if(_==="permanent")return E.jsx(F$,A({className:Pe(N.root,N.docked,d),ownerState:$,ref:r},C,{children:B}));const q=E.jsx(S,A({in:y,direction:JB[M],timeout:w,appear:T.current},b,{children:B}));return _==="persistent"?E.jsx(F$,A({className:Pe(N.root,N.docked,d),ownerState:$,ref:r},C,{children:q})):E.jsx(Eae,A({BackdropProps:A({},l,m,{transitionDuration:w}),className:Pe(N.root,N.modal,d),open:y,ownerState:$,onClose:g,hideBackdrop:h,ref:r},C,O,{children:q}))}),Aae=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Iae=e=>{const{classes:t,disableUnderline:r}=e,i=He({root:["root",!r&&"underline"],input:["input"]},Rie,t);return A({},t,i)},$ae=W(Ky,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vy(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=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 A({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Qs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Qs.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"},[`&.${Qs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qs.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})`:i}`,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(.${Qs.disabled}, .${Qs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&A({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}))}),Dae=W(Xy,{name:"MuiFilledInput",slot:"Input",overridesResolver:Gy})(({theme:e,ownerState:t})=>A({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})),TR=P.forwardRef(function(t,r){var n,i,o,a;const s=tt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:g={},type:y="text"}=s,x=de(s,Aae),b=A({},s,{fullWidth:d,inputComponent:p,multiline:h,type:y}),S=Iae(s),w={root:{ownerState:b},input:{ownerState:b}},_=m??u?xa(w,m??u):w,O=(n=(i=g.root)!=null?i:l.Root)!=null?n:$ae,C=(o=(a=g.input)!=null?a:l.Input)!=null?o:Dae;return E.jsx(Yy,A({slots:{root:O,input:C},componentsProps:_,fullWidth:d,inputComponent:p,multiline:h,ref:r,type:y},x,{classes:S}))});TR.muiName="Input";function Lae(e){return qe("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kae=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nae=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return He(i,Lae,t)},Fae=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>A({},t.root,t[`margin${ge(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>A({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%"})),QB=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:m="none",required:g=!1,size:y="medium",variant:x="outlined"}=n,b=de(n,kae),S=A({},n,{color:a,component:s,disabled:l,error:u,fullWidth:p,hiddenLabel:h,margin:m,required:g,size:y,variant:x}),w=Nae(S),[_,O]=P.useState(()=>{let q=!1;return i&&P.Children.forEach(i,U=>{if(!hg(U,["Input","Select"]))return;const F=hg(U,["Select"])?U.props.input:U;F&&xie(F.props)&&(q=!0)}),q}),[C,T]=P.useState(()=>{let q=!1;return i&&P.Children.forEach(i,U=>{hg(U,["Input","Select"])&&(Qg(U.props,!0)||Qg(U.props.inputProps,!0))&&(q=!0)}),q}),[M,D]=P.useState(!1);l&&M&&D(!1);const $=d!==void 0&&!l?d:M;let N;const B=P.useMemo(()=>({adornedStart:_,setAdornedStart:O,color:a,disabled:l,error:u,filled:C,focused:$,fullWidth:p,hiddenLabel:h,size:y,onBlur:()=>{D(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{D(!0)},registerEffect:N,required:g,variant:x}),[_,a,l,u,C,$,p,h,N,g,y,x]);return E.jsx(zy.Provider,{value:B,children:E.jsx(Fae,A({as:s,ownerState:S,className:Pe(w.root,o),ref:r},b,{children:i}))})}),mo=wee({createStyledComponent:W("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>tt({props:e,name:"MuiStack"})});function jae(e){return qe("MuiFormControlLabel",e)}const lf=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Bae=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Uae=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return He(a,jae,t)},qae=W("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${lf.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>A({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${lf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${lf.label}`]:{[`&.${lf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Hae=W("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${lf.error}`]:{color:(e.vars||e).palette.error.main}})),ev=P.forwardRef(function(t,r){var n,i;const o=tt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:d,label:p,labelPlacement:h="end",required:m,slotProps:g={}}=o,y=de(o,Bae),x=Uo(),b=(n=u??l.props.disabled)!=null?n:x==null?void 0:x.disabled,S=m??l.props.required,w={disabled:b,required:S};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof o[D]<"u"&&(w[D]=o[D])});const _=$s({props:o,muiFormControl:x,states:["error"]}),O=A({},o,{disabled:b,labelPlacement:h,required:S,error:_.error}),C=Uae(O),T=(i=g.typography)!=null?i:s.typography;let M=p;return M!=null&&M.type!==Ke&&!d&&(M=E.jsx(Ke,A({component:"span"},T,{className:Pe(C.label,T==null?void 0:T.className),children:M}))),E.jsxs(qae,A({className:Pe(C.root,a),ownerState:O,ref:r},y,{children:[P.cloneElement(l,w),S?E.jsxs(mo,{display:"block",children:[M,E.jsxs(Hae,{ownerState:O,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):M]}))});function Wae(e){return qe("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const zae=["className","row"],Vae=e=>{const{classes:t,row:r,error:n}=e;return He({root:["root",r&&"row",n&&"error"]},Wae,t)},Gae=W("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>A({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),eU=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=n,a=de(n,zae),s=Uo(),l=$s({props:n,muiFormControl:s,states:["error"]}),u=A({},n,{row:o,error:l.error}),d=Vae(u);return E.jsx(Gae,A({className:Pe(d.root,i),ownerState:u,ref:r},a))});function Kae(e){return qe("MuiFormHelperText",e)}const j$=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var B$;const Xae=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Yae=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return He(u,Kae,t)},Zae=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j$.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Jae=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=n,s=de(n,Xae),l=Uo(),u=$s({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=A({},n,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=Yae(d);return E.jsx(Zae,A({as:a,ownerState:d,className:Pe(p.root,o),ref:r},s,{children:i===" "?B$||(B$=E.jsx("span",{className:"notranslate",children:"​"})):i}))});function Qae(e){return qe("MuiFormLabel",e)}const Cf=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ese=["children","className","color","component","disabled","error","filled","focused","required"],tse=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ge(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return He(l,Qae,t)},rse=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>A({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>A({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Cf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Cf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cf.error}`]:{color:(e.vars||e).palette.error.main}})),nse=W("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Cf.error}`]:{color:(e.vars||e).palette.error.main}})),tU=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=n,s=de(n,ese),l=Uo(),u=$s({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=A({},n,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=tse(d);return E.jsxs(rse,A({as:a,ownerState:d,className:Pe(p.root,o),ref:r},s,{children:[i,u.required&&E.jsxs(nse,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),U$=P.createContext();function ise(e){return qe("MuiGrid",e)}const ose=[0,1,2,3,4,5,6,7,8,9,10],ase=["column-reverse","column","row-reverse","row"],sse=["nowrap","wrap-reverse","wrap"],Fd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Zf=Ne("MuiGrid",["root","container","item","zeroMinWidth",...ose.map(e=>`spacing-xs-${e}`),...ase.map(e=>`direction-xs-${e}`),...sse.map(e=>`wrap-xs-${e}`),...Fd.map(e=>`grid-xs-${e}`),...Fd.map(e=>`grid-sm-${e}`),...Fd.map(e=>`grid-md-${e}`),...Fd.map(e=>`grid-lg-${e}`),...Fd.map(e=>`grid-xl-${e}`)]),lse=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function nc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function use({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,i)=>{let o={};if(t[i]&&(r=t[i]),!r)return n;if(r===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Sl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const p=`calc(${l} + ${nc(d)})`;u={flexBasis:p,maxWidth:p}}}o=A({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(n,o):n[e.breakpoints.up(i)]=o,n},{})}function cse({theme:e,ownerState:t}){const r=Sl({values:t.direction,breakpoints:e.breakpoints.values});return Jn({theme:e},r,n=>{const i={flexDirection:n};return n.indexOf("column")===0&&(i[`& > .${Zf.item}`]={maxWidth:"none"}),i})}function rU({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(i=>{r===""&&t[i]!==0&&(r=i)});const n=Object.keys(e).sort((i,o)=>e[i]-e[o]);return n.slice(0,n.indexOf(r))}function dse({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let i={};if(r&&n!==0){const o=Sl({values:n,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=rU({breakpoints:e.breakpoints.values,values:o})),i=Jn({theme:e},o,(s,l)=>{var u;const d=e.spacing(s);return d!=="0px"?{marginTop:`-${nc(d)}`,[`& > .${Zf.item}`]:{paddingTop:nc(d)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Zf.item}`]:{paddingTop:0}}})}return i}function fse({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let i={};if(r&&n!==0){const o=Sl({values:n,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=rU({breakpoints:e.breakpoints.values,values:o})),i=Jn({theme:e},o,(s,l)=>{var u;const d=e.spacing(s);return d!=="0px"?{width:`calc(100% + ${nc(d)})`,marginLeft:`-${nc(d)}`,[`& > .${Zf.item}`]:{paddingLeft:nc(d)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Zf.item}`]:{paddingLeft:0}}})}return i}function pse(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&n.push(r[`spacing-${i}-${String(o)}`])}),n}const hse=W("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let d=[];n&&(d=pse(a,u,t));const p=[];return u.forEach(h=>{const m=r[h];m&&p.push(t[`grid-${h}-${String(m)}`])}),[t.root,n&&t.container,o&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...p]}})(({ownerState:e})=>A({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),cse,dse,fse,use);function mse(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const i=e[n];if(Number(i)>0){const o=`spacing-${n}-${String(i)}`;r.push(o)}}),r}const gse=e=>{const{classes:t,container:r,direction:n,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=mse(o,l));const d=[];l.forEach(h=>{const m=e[h];m&&d.push(`grid-${h}-${String(m)}`)});const p={root:["root",r&&"container",i&&"item",s&&"zeroMinWidth",...u,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...d]};return He(p,ise,t)},zr=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiGrid"}),{breakpoints:i}=fn(),o=Tp(n),{className:a,columns:s,columnSpacing:l,component:u="div",container:d=!1,direction:p="row",item:h=!1,rowSpacing:m,spacing:g=0,wrap:y="wrap",zeroMinWidth:x=!1}=o,b=de(o,lse),S=m||g,w=l||g,_=P.useContext(U$),O=d?s||12:_,C={},T=A({},b);i.keys.forEach($=>{b[$]!=null&&(C[$]=b[$],delete T[$])});const M=A({},o,{columns:O,container:d,direction:p,item:h,rowSpacing:S,columnSpacing:w,wrap:y,zeroMinWidth:x,spacing:g},C,{breakpoints:i.keys}),D=gse(M);return E.jsx(U$.Provider,{value:O,children:E.jsx(hse,A({ownerState:M,className:Pe(D.root,a),as:u,ref:r},T))})}),vse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nT(e){return`scale(${e}, ${e**2})`}const yse={entering:{opacity:1,transform:nT(1)},entered:{opacity:1,transform:"none"}},s_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SR=P.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:m,style:g,timeout:y="auto",TransitionComponent:x=Vi}=t,b=de(t,vse),S=wB(),w=P.useRef(),_=fn(),O=P.useRef(null),C=xr(O,Wc(o),r),T=F=>j=>{if(F){const V=O.current;j===void 0?F(V):F(V,j)}},M=T(d),D=T((F,j)=>{pR(F);const{duration:V,delay:z,easing:Q}=mc({style:g,timeout:y,easing:a},{mode:"enter"});let oe;y==="auto"?(oe=_.transitions.getAutoHeightDuration(F.clientHeight),w.current=oe):oe=V,F.style.transition=[_.transitions.create("opacity",{duration:oe,delay:z}),_.transitions.create("transform",{duration:s_?oe:oe*.666,delay:z,easing:Q})].join(","),l&&l(F,j)}),$=T(u),N=T(m),B=T(F=>{const{duration:j,delay:V,easing:z}=mc({style:g,timeout:y,easing:a},{mode:"exit"});let Q;y==="auto"?(Q=_.transitions.getAutoHeightDuration(F.clientHeight),w.current=Q):Q=j,F.style.transition=[_.transitions.create("opacity",{duration:Q,delay:V}),_.transitions.create("transform",{duration:s_?Q:Q*.666,delay:s_?V:V||Q*.333,easing:z})].join(","),F.style.opacity=0,F.style.transform=nT(.75),p&&p(F)}),q=T(h),U=F=>{y==="auto"&&S.start(w.current||0,F),n&&n(O.current,F)};return E.jsx(x,A({appear:i,in:s,nodeRef:O,onEnter:D,onEntered:$,onEntering:M,onExit:B,onExited:q,onExiting:N,addEndListener:U,timeout:y==="auto"?null:y},b,{children:(F,j)=>P.cloneElement(o,A({style:A({opacity:0,transform:nT(.75),visibility:F==="exited"&&!s?"hidden":void 0},yse[F],g,o.props.style),ref:C},j))}))});SR.muiSupportAuto=!0;const bse=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xse=e=>{const{classes:t,disableUnderline:r}=e,i=He({root:["root",!r&&"underline"],input:["input"]},Sie,t);return A({},t,i)},wse=W(Ky,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vy(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})`),A({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"},[`&.${Nd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nd.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(.${Nd.disabled}, .${Nd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Nd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),_se=W(Xy,{name:"MuiInput",slot:"Input",overridesResolver:Gy})({}),ER=P.forwardRef(function(t,r){var n,i,o,a;const s=tt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:g,slots:y={},type:x="text"}=s,b=de(s,bse),S=xse(s),_={root:{ownerState:{disableUnderline:l}}},O=g??d?xa(g??d,_):_,C=(n=(i=y.root)!=null?i:u.Root)!=null?n:wse,T=(o=(a=y.input)!=null?a:u.Input)!=null?o:_se;return E.jsx(Yy,A({slots:{root:C,input:T},slotProps:O,fullWidth:p,inputComponent:h,multiline:m,ref:r,type:x},b,{classes:S}))});ER.muiName="Input";function Cse(e){return qe("MuiInputAdornment",e)}const q$=Ne("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var H$;const Tse=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Sse=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Ese=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${ge(i)}`,a,n&&"hiddenLabel",o&&`size${ge(o)}`]};return He(s,Cse,t)},Rse=W("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Sse})(({theme:e,ownerState:t})=>A({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${q$.positionStart}&:not(.${q$.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),W$=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:d}=n,p=de(n,Tse),h=Uo()||{};let m=d;d&&h.variant,h&&!m&&(m=h.variant);const g=A({},n,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:u,variant:m}),y=Ese(g);return E.jsx(zy.Provider,{value:null,children:E.jsx(Rse,A({as:a,ownerState:g,className:Pe(y.root,o),ref:r},p,{children:typeof i=="string"&&!l?E.jsx(Ke,{color:"text.secondary",children:i}):E.jsxs(P.Fragment,{children:[u==="start"?H$||(H$=E.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function Pse(e){return qe("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ose=["disableAnimation","margin","shrink","variant","className"],Mse=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,a],asterisk:[s&&"asterisk"]},u=He(l,Pse,t);return A({},t,u)},Ase=W(tU,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Cf.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})=>A({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"&&A({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&&A({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"&&A({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)"}))),Ise=P.forwardRef(function(t,r){const n=tt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=n,s=de(n,Ose),l=Uo();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=$s({props:n,muiFormControl:l,states:["size","variant","required","focused"]}),p=A({},n,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=Mse(p);return E.jsx(Ase,A({"data-shrink":u,ownerState:p,ref:r,className:Pe(h.root,a)},s,{classes:h}))});function $se(e){return qe("MuiLinearProgress",e)}Ne("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Dse=["className","color","value","valueBuffer","variant"];let zc=e=>e,z$,V$,G$,K$,X$,Y$;const iT=4,Lse=ho(z$||(z$=zc`
154
+ 0% {
155
+ left: -35%;
156
+ right: 100%;
157
+ }
158
+
159
+ 60% {
160
+ left: 100%;
161
+ right: -90%;
162
+ }
163
+
164
+ 100% {
165
+ left: 100%;
166
+ right: -90%;
167
+ }
168
+ `)),kse=ho(V$||(V$=zc`
169
+ 0% {
170
+ left: -200%;
171
+ right: 100%;
172
+ }
173
+
174
+ 60% {
175
+ left: 107%;
176
+ right: -8%;
177
+ }
178
+
179
+ 100% {
180
+ left: 107%;
181
+ right: -8%;
182
+ }
183
+ `)),Nse=ho(G$||(G$=zc`
184
+ 0% {
185
+ opacity: 1;
186
+ background-position: 0 -23px;
187
+ }
188
+
189
+ 60% {
190
+ opacity: 0;
191
+ background-position: 0 -23px;
192
+ }
193
+
194
+ 100% {
195
+ opacity: 1;
196
+ background-position: -200px -23px;
197
+ }
198
+ `)),Fse=e=>{const{classes:t,variant:r,color:n}=e,i={root:["root",`color${ge(n)}`,r],dashed:["dashed",`dashedColor${ge(n)}`],bar1:["bar",`barColor${ge(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${ge(n)}`,r==="buffer"&&`color${ge(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return He(i,$se,t)},RR=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?jy(e.palette[t].main,.62):Fy(e.palette[t].main,.5),jse=W("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${ge(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>A({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:RR(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)"})),Bse=W("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${ge(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=RR(t,e.color);return A({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"})},Fi(K$||(K$=zc`
199
+ animation: ${0} 3s infinite linear;
200
+ `),Nse)),Use=W("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ge(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>A({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 .${iT}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${iT}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Fi(X$||(X$=zc`
201
+ width: auto;
202
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
203
+ `),Lse)),qse=W("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ge(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>A({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:RR(t,e.color),transition:`transform .${iT}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Fi(Y$||(Y$=zc`
204
+ width: auto;
205
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
206
+ `),kse)),Hse=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:a,valueBuffer:s,variant:l="indeterminate"}=n,u=de(n,Dse),d=A({},n,{color:o,variant:l}),p=Fse(d),h=Ny(),m={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let y=a-100;h&&(y=-y),g.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&s!==void 0){let y=(s||0)-100;h&&(y=-y),g.bar2.transform=`translateX(${y}%)`}return E.jsxs(jse,A({className:Pe(p.root,i),ownerState:d,role:"progressbar"},m,{ref:r},u,{children:[l==="buffer"?E.jsx(Bse,{className:p.dashed,ownerState:d}):null,E.jsx(Use,{className:p.bar1,ownerState:d,style:g.bar1}),l==="determinate"?null:E.jsx(qse,{className:p.bar2,ownerState:d,style:g.bar2})]}))}),oT=P.createContext({});function Wse(e){return qe("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const zse=["children","className","component","dense","disablePadding","subheader"],Vse=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return He({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Wse,t)},Gse=W("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})=>A({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Kse=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,d=de(n,zse),p=P.useMemo(()=>({dense:s}),[s]),h=A({},n,{component:a,dense:s,disablePadding:l}),m=Vse(h);return E.jsx(oT.Provider,{value:p,children:E.jsxs(Gse,A({as:a,className:Pe(m.root,o),ref:r,ownerState:h},d,{children:[u,i]}))})}),Z$=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),J$=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Xse=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l_(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Q$(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function nU(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 jd(e,t,r,n,i,o){let a=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!nU(s,o)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Yse=P.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu"}=t,h=de(t,Xse),m=P.useRef(null),g=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fo(()=>{i&&m.current.focus()},[i]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(w,{direction:_})=>{const O=!m.current.style.width;if(w.clientHeight<m.current.clientHeight&&O){const C=`${CB(Qr(w))}px`;m.current.style[_==="rtl"?"paddingLeft":"paddingRight"]=C,m.current.style.width=`calc(100% + ${C})`}return m.current}}),[]);const y=w=>{const _=m.current,O=w.key,C=Qr(_).activeElement;if(O==="ArrowDown")w.preventDefault(),jd(_,C,u,l,l_);else if(O==="ArrowUp")w.preventDefault(),jd(_,C,u,l,Q$);else if(O==="Home")w.preventDefault(),jd(_,null,u,l,l_);else if(O==="End")w.preventDefault(),jd(_,null,u,l,Q$);else if(O.length===1){const T=g.current,M=O.toLowerCase(),D=performance.now();T.keys.length>0&&(D-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&M!==T.keys[0]&&(T.repeating=!1)),T.lastTime=D,T.keys.push(M);const $=C&&!T.repeating&&nU(C,T);T.previousKeyMatched&&($||jd(_,C,!1,l,l_,T))?w.preventDefault():T.previousKeyMatched=!1}d&&d(w)},x=xr(m,r);let b=-1;P.Children.forEach(a,(w,_)=>{if(!P.isValidElement(w)){b===_&&(b+=1,b>=a.length&&(b=-1));return}w.props.disabled||(p==="selectedMenu"&&w.props.selected||b===-1)&&(b=_),b===_&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const S=P.Children.map(a,(w,_)=>{if(_===b){const O={};return o&&(O.autoFocus=!0),w.props.tabIndex===void 0&&p==="selectedMenu"&&(O.tabIndex=0),P.cloneElement(w,O)}return w});return E.jsx(Kse,A({role:"menu",ref:x,className:s,onKeyDown:y,tabIndex:i?0:-1},h,{children:S}))});function Zse(e){return qe("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);const Jse=["onEntering"],Qse=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ele=["slotProps"];function eD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function tD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function rD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u_(e){return typeof e=="function"?e():e}const tle=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"]},Zse,t)},rle=W(CR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iU=W(As,{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}),nle=P.forwardRef(function(t,r){var n,i,o;const a=tt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:p="anchorEl",children:h,className:m,container:g,elevation:y=8,marginThreshold:x=16,open:b,PaperProps:S={},slots:w,slotProps:_,transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:C=SR,transitionDuration:T="auto",TransitionProps:{onEntering:M}={},disableScrollLock:D=!1}=a,$=de(a.TransitionProps,Jse),N=de(a,Qse),B=(n=_==null?void 0:_.paper)!=null?n:S,q=P.useRef(),U=xr(q,B.ref),F=A({},a,{anchorOrigin:u,anchorReference:p,elevation:y,marginThreshold:x,externalPaperSlotProps:B,transformOrigin:O,TransitionComponent:C,transitionDuration:T,TransitionProps:$}),j=tle(F),V=P.useCallback(()=>{if(p==="anchorPosition")return d;const me=u_(l),Je=(me&&me.nodeType===1?me:Qr(q.current).body).getBoundingClientRect();return{top:Je.top+eD(Je,u.vertical),left:Je.left+tD(Je,u.horizontal)}},[l,u.horizontal,u.vertical,d,p]),z=P.useCallback(me=>({vertical:eD(me,O.vertical),horizontal:tD(me,O.horizontal)}),[O.horizontal,O.vertical]),Q=P.useCallback(me=>{const Ie={width:me.offsetWidth,height:me.offsetHeight},Je=z(Ie);if(p==="none")return{top:null,left:null,transformOrigin:rD(Je)};const at=V();let ct=at.top-Je.vertical,Vt=at.left-Je.horizontal;const _r=ct+Ie.height,jt=Vt+Ie.width,st=jo(u_(l)),J=st.innerHeight-x,ye=st.innerWidth-x;if(x!==null&&ct<x){const pe=ct-x;ct-=pe,Je.vertical+=pe}else if(x!==null&&_r>J){const pe=_r-J;ct-=pe,Je.vertical+=pe}if(x!==null&&Vt<x){const pe=Vt-x;Vt-=pe,Je.horizontal+=pe}else if(jt>ye){const pe=jt-ye;Vt-=pe,Je.horizontal+=pe}return{top:`${Math.round(ct)}px`,left:`${Math.round(Vt)}px`,transformOrigin:rD(Je)}},[l,p,V,z,x]),[oe,ae]=P.useState(b),he=P.useCallback(()=>{const me=q.current;if(!me)return;const Ie=Q(me);Ie.top!==null&&(me.style.top=Ie.top),Ie.left!==null&&(me.style.left=Ie.left),me.style.transformOrigin=Ie.transformOrigin,ae(!0)},[Q]);P.useEffect(()=>(D&&window.addEventListener("scroll",he),()=>window.removeEventListener("scroll",he)),[l,D,he]);const Ae=(me,Ie)=>{M&&M(me,Ie),he()},ve=()=>{ae(!1)};P.useEffect(()=>{b&&he()}),P.useImperativeHandle(s,()=>b?{updatePosition:()=>{he()}}:null,[b,he]),P.useEffect(()=>{if(!b)return;const me=Uy(()=>{he()}),Ie=jo(l);return Ie.addEventListener("resize",me),()=>{me.clear(),Ie.removeEventListener("resize",me)}},[l,b,he]);let fe=T;T==="auto"&&!C.muiSupportAuto&&(fe=void 0);const Ee=g||(l?Qr(u_(l)).body:void 0),_e=(i=w==null?void 0:w.root)!=null?i:rle,le=(o=w==null?void 0:w.paper)!=null?o:iU,ce=jl({elementType:le,externalSlotProps:A({},B,{style:oe?B.style:A({},B.style,{opacity:0})}),additionalProps:{elevation:y,ref:U},ownerState:F,className:Pe(j.paper,B==null?void 0:B.className)}),Ve=jl({elementType:_e,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Ee,open:b},ownerState:F,className:Pe(j.root,m)}),{slotProps:je}=Ve,be=de(Ve,ele);return E.jsx(_e,A({},be,!Gf(_e)&&{slotProps:je,disableScrollLock:D},{children:E.jsx(C,A({appear:!0,in:b,onEntering:Ae,onExited:ve,timeout:fe},$,{children:E.jsx(le,A({},ce,{children:h}))}))}))});function ile(e){return qe("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const ole=["onEntering"],ale=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],sle={vertical:"top",horizontal:"right"},lle={vertical:"top",horizontal:"left"},ule=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"],list:["list"]},ile,t)},cle=W(nle,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dle=W(iU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fle=W(Yse,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ple=P.forwardRef(function(t,r){var n,i;const o=tt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:p,open:h,PaperProps:m={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:b="selectedMenu",slots:S={},slotProps:w={}}=o,_=de(o.TransitionProps,ole),O=de(o,ale),C=Ny(),T=A({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:x,PaperProps:m,transitionDuration:y,TransitionProps:_,variant:b}),M=ule(T),D=a&&!u&&h,$=P.useRef(null),N=(z,Q)=>{$.current&&$.current.adjustStyleForScrollbar(z,{direction:C?"rtl":"ltr"}),x&&x(z,Q)},B=z=>{z.key==="Tab"&&(z.preventDefault(),p&&p(z,"tabKeyDown"))};let q=-1;P.Children.map(s,(z,Q)=>{P.isValidElement(z)&&(z.props.disabled||(b==="selectedMenu"&&z.props.selected||q===-1)&&(q=Q))});const U=(n=S.paper)!=null?n:dle,F=(i=w.paper)!=null?i:m,j=jl({elementType:S.root,externalSlotProps:w.root,ownerState:T,className:[M.root,l]}),V=jl({elementType:U,externalSlotProps:F,ownerState:T,className:M.paper});return E.jsx(cle,A({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?sle:lle,slots:{paper:U,root:S.root},slotProps:{root:j,paper:V},open:h,ref:r,transitionDuration:y,TransitionProps:A({onEntering:N},_),ownerState:T},O,{classes:g,children:E.jsx(fle,A({onKeyDown:B,actions:$,autoFocus:a&&(q===-1||u),autoFocusItem:D,variant:b},d,{className:Pe(M.list,d.className),children:s}))}))});function hle(e){return qe("MuiMenuItem",e)}const Bd=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),mle=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gle=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},vle=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:a}=e,l=He({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},hle,a);return A({},a,l)},yle=W(Aa,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:gle})(({theme:e,ownerState:t})=>A({},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"}},[`&.${Bd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:sn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:sn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sn(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})`:sn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${N$.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${N$.inset}`]:{marginLeft:52},[`& .${J$.root}`]:{marginTop:0,marginBottom:0},[`& .${J$.inset}`]:{paddingLeft:36},[`& .${Z$.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&A({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Z$.root} svg`]:{fontSize:"1.25rem"}}))),PR=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h}=n,m=de(n,mle),g=P.useContext(oT),y=P.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),x=P.useRef(null);fo(()=>{i&&x.current&&x.current.focus()},[i]);const b=A({},n,{dense:y.dense,divider:s,disableGutters:l}),S=vle(n),w=xr(x,r);let _;return n.disabled||(_=p!==void 0?p:-1),E.jsx(oT.Provider,{value:y,children:E.jsx(yle,A({ref:w,role:d,tabIndex:_,component:o,focusVisibleClassName:Pe(S.focusVisible,u),className:Pe(S.root,h)},m,{ownerState:b,classes:S}))})});function ble(e){return qe("MuiNativeSelect",e)}const OR=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xle=["className","disabled","error","IconComponent","inputRef","variant"],wle=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return He(s,ble,t)},oU=({ownerState:e,theme:t})=>A({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":A({},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"},[`&.${OR.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}}),_le=W("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Rn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${OR.multiple}`]:t.multiple}]}})(oU),aU=({ownerState:e,theme:t})=>A({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${OR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Cle=W("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(aU),Tle=P.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=de(t,xle),d=A({},t,{disabled:i,variant:l,error:o}),p=wle(d);return E.jsxs(P.Fragment,{children:[E.jsx(_le,A({ownerState:d,className:Pe(p.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(Cle,{as:a,ownerState:d,className:p.icon})]})});var nD;const Sle=["children","classes","className","label","notched"],Ele=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Rn})({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%"}),Rle=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Rn})(({ownerState:e,theme:t})=>A({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&&A({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 Ple(e){const{className:t,label:r,notched:n}=e,i=de(e,Sle),o=r!=null&&r!=="",a=A({},e,{notched:n,withLabel:o});return E.jsx(Ele,A({"aria-hidden":!0,className:t,ownerState:a},i,{children:E.jsx(Rle,{ownerState:a,children:o?E.jsx("span",{children:r}):nD||(nD=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const Ole=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Mle=e=>{const{classes:t}=e,n=He({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Eie,t);return A({},t,n)},Ale=W(Ky,{shouldForwardProp:e=>Rn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return A({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${aa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${aa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${aa.focused} .${aa.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${aa.error} .${aa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${aa.disabled} .${aa.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&A({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ile=W(Ple,{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}}),$le=W(Xy,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Gy})(({theme:e,ownerState:t})=>A({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})),MR=P.forwardRef(function(t,r){var n,i,o,a,s;const l=tt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:p="input",label:h,multiline:m=!1,notched:g,slots:y={},type:x="text"}=l,b=de(l,Ole),S=Mle(l),w=Uo(),_=$s({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),O=A({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:w,fullWidth:d,hiddenLabel:_.hiddenLabel,multiline:m,size:_.size,type:x}),C=(n=(i=y.root)!=null?i:u.Root)!=null?n:Ale,T=(o=(a=y.input)!=null?a:u.Input)!=null?o:$le;return E.jsx(Yy,A({slots:{root:C,input:T},renderSuffix:M=>E.jsx(Ile,{ownerState:O,className:S.notchedOutline,label:h!=null&&h!==""&&_.required?s||(s=E.jsxs(P.Fragment,{children:[h," ","*"]})):h,notched:typeof g<"u"?g:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:d,inputComponent:p,multiline:m,ref:r,type:x},b,{classes:A({},S,{notchedOutline:null})}))});MR.muiName="Input";const Dle=jr(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Lle=jr(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function kle(e){return qe("MuiSelect",e)}const Ud=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var iD;const Nle=["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"],Fle=W("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Ud.select}`]:t.select},{[`&.${Ud.select}`]:t[r.variant]},{[`&.${Ud.error}`]:t.error},{[`&.${Ud.multiple}`]:t.multiple}]}})(oU,{[`&.${Ud.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jle=W("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(aU),Ble=W("input",{shouldForwardProp:e=>yB(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 oD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Ule(e){return e==null||typeof e=="string"&&!e.trim()}const qle=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return He(s,kle,t)},Hle=P.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:m,error:g=!1,IconComponent:y,inputRef:x,labelId:b,MenuProps:S={},multiple:w,name:_,onBlur:O,onChange:C,onClose:T,onFocus:M,onOpen:D,open:$,readOnly:N,renderValue:B,SelectDisplayProps:q={},tabIndex:U,value:F,variant:j="standard"}=t,V=de(t,Nle),[z,Q]=Yg({controlled:F,default:p,name:"Select"}),[oe,ae]=Yg({controlled:$,default:d,name:"Select"}),he=P.useRef(null),Ae=P.useRef(null),[ve,fe]=P.useState(null),{current:Ee}=P.useRef($!=null),[_e,le]=P.useState(),ce=xr(r,x),Ve=P.useCallback(ke=>{Ae.current=ke,ke&&fe(ke)},[]),je=ve==null?void 0:ve.parentNode;P.useImperativeHandle(ce,()=>({focus:()=>{Ae.current.focus()},node:he.current,value:z}),[z]),P.useEffect(()=>{d&&oe&&ve&&!Ee&&(le(s?null:je.clientWidth),Ae.current.focus())},[ve,s]),P.useEffect(()=>{a&&Ae.current.focus()},[a]),P.useEffect(()=>{if(!b)return;const ke=Qr(Ae.current).getElementById(b);if(ke){const Ot=()=>{getSelection().isCollapsed&&Ae.current.focus()};return ke.addEventListener("click",Ot),()=>{ke.removeEventListener("click",Ot)}}},[b]);const be=(ke,Ot)=>{ke?D&&D(Ot):T&&T(Ot),Ee||(le(s?null:je.clientWidth),ae(ke))},me=ke=>{ke.button===0&&(ke.preventDefault(),Ae.current.focus(),be(!0,ke))},Ie=ke=>{be(!1,ke)},Je=P.Children.toArray(l),at=ke=>{const Ot=Je.find(sr=>sr.props.value===ke.target.value);Ot!==void 0&&(Q(Ot.props.value),C&&C(ke,Ot))},ct=ke=>Ot=>{let sr;if(Ot.currentTarget.hasAttribute("tabindex")){if(w){sr=Array.isArray(z)?z.slice():[];const ri=z.indexOf(ke.props.value);ri===-1?sr.push(ke.props.value):sr.splice(ri,1)}else sr=ke.props.value;if(ke.props.onClick&&ke.props.onClick(Ot),z!==sr&&(Q(sr),C)){const ri=Ot.nativeEvent||Ot,Na=new ri.constructor(ri.type,ri);Object.defineProperty(Na,"target",{writable:!0,value:{value:sr,name:_}}),C(Na,ke)}w||be(!1,Ot)}},Vt=ke=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ke.key)!==-1&&(ke.preventDefault(),be(!0,ke))},_r=ve!==null&&oe,jt=ke=>{!_r&&O&&(Object.defineProperty(ke,"target",{writable:!0,value:{value:z,name:_}}),O(ke))};delete V["aria-invalid"];let st,J;const ye=[];let pe=!1;(Qg({value:z})||m)&&(B?st=B(z):pe=!0);const Te=Je.map(ke=>{if(!P.isValidElement(ke))return null;let Ot;if(w){if(!Array.isArray(z))throw new Error(hc(2));Ot=z.some(sr=>oD(sr,ke.props.value)),Ot&&pe&&ye.push(ke.props.children)}else Ot=oD(z,ke.props.value),Ot&&pe&&(J=ke.props.children);return P.cloneElement(ke,{"aria-selected":Ot?"true":"false",onClick:ct(ke),onKeyUp:sr=>{sr.key===" "&&sr.preventDefault(),ke.props.onKeyUp&&ke.props.onKeyUp(sr)},role:"option",selected:Ot,value:void 0,"data-value":ke.props.value})});pe&&(w?ye.length===0?st=null:st=ye.reduce((ke,Ot,sr)=>(ke.push(Ot),sr<ye.length-1&&ke.push(", "),ke),[]):st=J);let Xe=_e;!s&&Ee&&ve&&(Xe=je.clientWidth);let Ye;typeof U<"u"?Ye=U:Ye=h?null:0;const Ue=q.id||(_?`mui-component-select-${_}`:void 0),Oe=A({},t,{variant:j,value:z,open:_r,error:g}),Br=qle(Oe),en=A({},S.PaperProps,(n=S.slotProps)==null?void 0:n.paper),ti=Fl();return E.jsxs(P.Fragment,{children:[E.jsx(Fle,A({ref:Ve,tabIndex:Ye,role:"combobox","aria-controls":ti,"aria-disabled":h?"true":void 0,"aria-expanded":_r?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,Ue].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:Vt,onMouseDown:h||N?null:me,onBlur:jt,onFocus:M},q,{ownerState:Oe,className:Pe(q.className,Br.select,u),id:Ue,children:Ule(st)?iD||(iD=E.jsx("span",{className:"notranslate",children:"​"})):st})),E.jsx(Ble,A({"aria-invalid":g,value:Array.isArray(z)?z.join(","):z,name:_,ref:he,"aria-hidden":!0,onChange:at,tabIndex:-1,disabled:h,className:Br.nativeInput,autoFocus:a,ownerState:Oe},V)),E.jsx(jle,{as:y,className:Br.icon,ownerState:Oe}),E.jsx(ple,A({id:`menu-${_||""}`,anchorEl:je,open:_r,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:A({"aria-labelledby":b,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:ti},S.MenuListProps),slotProps:A({},S.slotProps,{paper:A({},en,{style:A({minWidth:Xe},en!=null?en.style:null)})}),children:Te}))]})}),Wle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],zle=["root"],Vle=e=>{const{classes:t}=e;return t},AR={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Rn(e)&&e!=="variant",slot:"Root"},Gle=W(ER,AR)(""),Kle=W(MR,AR)(""),Xle=W(TR,AR)(""),Op=P.forwardRef(function(t,r){const n=tt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=Pie,id:p,input:h,inputProps:m,label:g,labelId:y,MenuProps:x,multiple:b=!1,native:S=!1,onClose:w,onOpen:_,open:O,renderValue:C,SelectDisplayProps:T,variant:M="outlined"}=n,D=de(n,Wle),$=S?Tle:Hle,N=Uo(),B=$s({props:n,muiFormControl:N,states:["variant","error"]}),q=B.variant||M,U=A({},n,{variant:q,classes:a}),F=Vle(U),j=de(F,zle),V=h||{standard:E.jsx(Gle,{ownerState:U}),outlined:E.jsx(Kle,{label:g,ownerState:U}),filled:E.jsx(Xle,{ownerState:U})}[q],z=xr(r,Wc(V));return E.jsx(P.Fragment,{children:P.cloneElement(V,A({inputComponent:$,inputProps:A({children:o,error:B.error,IconComponent:d,variant:q,type:void 0,multiple:b},S?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:w,onOpen:_,open:O,renderValue:C,SelectDisplayProps:A({id:p},T)},m,{classes:m?xa(j,m.classes):j},h?h.props.inputProps:{})},(b&&S||u)&&q==="outlined"?{notched:!0}:{},{ref:z,className:Pe(V.props.className,s,F.root)},!h&&{variant:q},D))})});Op.muiName="Select";function Yle(e){return qe("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Zle=["animation","className","component","height","style","variant","width"];let tv=e=>e,aD,sD,lD,uD;const Jle=e=>{const{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:a}=e;return He({root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},Yle,t)},Qle=ho(aD||(aD=tv`
207
+ 0% {
208
+ opacity: 1;
209
+ }
210
+
211
+ 50% {
212
+ opacity: 0.4;
213
+ }
214
+
215
+ 100% {
216
+ opacity: 1;
217
+ }
218
+ `)),eue=ho(sD||(sD=tv`
219
+ 0% {
220
+ transform: translateX(-100%);
221
+ }
222
+
223
+ 50% {
224
+ /* +0.5s of delay between each loop */
225
+ transform: translateX(100%);
226
+ }
227
+
228
+ 100% {
229
+ transform: translateX(100%);
230
+ }
231
+ `)),tue=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.animation!==!1&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const r=ste(e.shape.borderRadius)||"px",n=lte(e.shape.borderRadius);return A({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:zf(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Fi(lD||(lD=tv`
232
+ animation: ${0} 2s ease-in-out 0.5s infinite;
233
+ `),Qle),({ownerState:e,theme:t})=>e.animation==="wave"&&Fi(uD||(uD=tv`
234
+ position: relative;
235
+ overflow: hidden;
236
+
237
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
238
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
239
+
240
+ &::after {
241
+ animation: ${0} 2s linear 0.5s infinite;
242
+ background: linear-gradient(
243
+ 90deg,
244
+ transparent,
245
+ ${0},
246
+ transparent
247
+ );
248
+ content: '';
249
+ position: absolute;
250
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
251
+ bottom: 0;
252
+ left: 0;
253
+ right: 0;
254
+ top: 0;
255
+ }
256
+ `),eue,(t.vars||t).palette.action.hover)),ic=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:a="span",height:s,style:l,variant:u="text",width:d}=n,p=de(n,Zle),h=A({},n,{animation:i,component:a,variant:u,hasChildren:!!p.children}),m=Jle(h);return E.jsx(tue,A({as:a,ref:r,className:Pe(m.root,o),ownerState:h},p,{style:A({width:d,height:s},l)}))});function rue(e){return qe("MuiSwitch",e)}const vr=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),nue=["className","color","edge","size","sx"],iue=e=>{const{classes:t,edge:r,size:n,color:i,checked:o,disabled:a}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=He(s,rue,t);return A({},t,l)},oue=W("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${vr.thumb}`]:{width:16,height:16},[`& .${vr.switchBase}`]:{padding:4,[`&.${vr.checked}`]:{transform:"translateX(16px)"}}}}]}),aue=W(HB,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${vr.input}`]:t.input},r.color!=="default"&&t[`color${ge(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${vr.checked}`]:{transform:"translateX(20px)"},[`&.${vr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${vr.checked} + .${vr.track}`]:{opacity:.5},[`&.${vr.disabled} + .${vr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${vr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:sn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${vr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:sn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?jy(e.palette[t].main,.62):Fy(e.palette[t].main,.55)}`}},[`&.${vr.checked} + .${vr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),sue=W("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),lue=W("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),aT=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=n,u=de(n,nue),d=A({},n,{color:o,edge:a,size:s}),p=iue(d),h=E.jsx(lue,{className:p.thumb,ownerState:d});return E.jsxs(oue,{className:Pe(p.root,i),sx:l,ownerState:d,children:[E.jsx(aue,A({type:"checkbox",icon:h,checkedIcon:h,ref:r,ownerState:d},u,{classes:A({},p,{root:p.switchBase})})),E.jsx(sue,{className:p.track,ownerState:d})]})}),uue=P.createContext(),cue=P.createContext();function due(e){return qe("MuiTableCell",e)}const fue=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pue=["align","className","component","padding","scope","size","sortDirection","variant"],hue=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,s={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,i!=="normal"&&`padding${ge(i)}`,`size${ge(o)}`]};return He(s,due,t)},mue=W("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>A({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
257
+ ${e.palette.mode==="light"?jy(sn(e.palette.divider,1),.88):Fy(sn(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",[`&.${fue.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})),sT=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:u,sortDirection:d,variant:p}=n,h=de(n,pue),m=P.useContext(uue),g=P.useContext(cue),y=g&&g.variant==="head";let x;a?x=a:x=y?"th":"td";let b=l;x==="td"?b=void 0:!b&&y&&(b="col");const S=p||g&&g.variant,w=A({},n,{align:i,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:S==="head"&&m&&m.stickyHeader,variant:S}),_=hue(w);let O=null;return d&&(O=d==="asc"?"ascending":"descending"),E.jsx(mue,A({as:x,ref:r,className:Pe(_.root,o),"aria-sort":O,scope:b,ownerState:w},h))});function gue(e){return qe("MuiToolbar",e)}Ne("MuiToolbar",["root","gutters","regular","dense"]);const vue=["className","component","disableGutters","variant"],yue=e=>{const{classes:t,disableGutters:r,variant:n}=e;return He({root:["root",!r&&"gutters",n]},gue,t)},bue=W("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})=>A({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),sU=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=n,l=de(n,vue),u=A({},n,{component:o,disableGutters:a,variant:s}),d=yue(u);return E.jsx(bue,A({as:o,className:Pe(d.root,i),ref:r,ownerState:u},l))}),xue=jr(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wue=jr(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),_ue=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Cue=P.forwardRef(function(t,r){var n,i,o,a,s,l,u,d;const{backIconButtonProps:p,count:h,disabled:m=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:x,page:b,rowsPerPage:S,showFirstButton:w,showLastButton:_,slots:O={},slotProps:C={}}=t,T=de(t,_ue),M=Ny(),D=ce=>{x(ce,0)},$=ce=>{x(ce,b-1)},N=ce=>{x(ce,b+1)},B=ce=>{x(ce,Math.max(0,Math.ceil(h/S)-1))},q=(n=O.firstButton)!=null?n:us,U=(i=O.lastButton)!=null?i:us,F=(o=O.nextButton)!=null?o:us,j=(a=O.previousButton)!=null?a:us,V=(s=O.firstButtonIcon)!=null?s:Dle,z=(l=O.lastButtonIcon)!=null?l:Lle,Q=(u=O.nextButtonIcon)!=null?u:wue,oe=(d=O.previousButtonIcon)!=null?d:xue,ae=M?U:q,he=M?F:j,Ae=M?j:F,ve=M?q:U,fe=M?C.lastButton:C.firstButton,Ee=M?C.nextButton:C.previousButton,_e=M?C.previousButton:C.nextButton,le=M?C.firstButton:C.lastButton;return E.jsxs("div",A({ref:r},T,{children:[w&&E.jsx(ae,A({onClick:D,disabled:m||b===0,"aria-label":g("first",b),title:g("first",b)},fe,{children:M?E.jsx(z,A({},C.lastButtonIcon)):E.jsx(V,A({},C.firstButtonIcon))})),E.jsx(he,A({onClick:$,disabled:m||b===0,color:"inherit","aria-label":g("previous",b),title:g("previous",b)},Ee??p,{children:M?E.jsx(Q,A({},C.nextButtonIcon)):E.jsx(oe,A({},C.previousButtonIcon))})),E.jsx(Ae,A({onClick:N,disabled:m||(h!==-1?b>=Math.ceil(h/S)-1:!1),color:"inherit","aria-label":g("next",b),title:g("next",b)},_e??y,{children:M?E.jsx(oe,A({},C.previousButtonIcon)):E.jsx(Q,A({},C.nextButtonIcon))})),_&&E.jsx(ve,A({onClick:B,disabled:m||b>=Math.ceil(h/S)-1,"aria-label":g("last",b),title:g("last",b)},le,{children:M?E.jsx(V,A({},C.firstButtonIcon)):E.jsx(z,A({},C.lastButtonIcon))}))]}))});function Tue(e){return qe("MuiTablePagination",e)}const Tf=Ne("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var cD;const Sue=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Eue=W(sT,{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}})),Rue=W(sU,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>A({[`& .${Tf.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},[`& .${Tf.actions}`]:{flexShrink:0,marginLeft:20}})),Pue=W("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Oue=W("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>A({},e.typography.body2,{flexShrink:0})),Mue=W(Op,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>A({[`& .${Tf.selectIcon}`]:t.selectIcon,[`& .${Tf.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Tf.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Aue=W(PR,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Iue=W("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>A({},e.typography.body2,{flexShrink:0}));function $ue({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function Due(e){return`Go to ${e} page`}const Lue=e=>{const{classes:t}=e;return He({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Tue,t)},kue=P.forwardRef(function(t,r){var n;const i=tt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Cue,backIconButtonProps:a,className:s,colSpan:l,component:u=sT,count:d,disabled:p=!1,getItemAriaLabel:h=Due,labelDisplayedRows:m=$ue,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:x,onRowsPerPageChange:b,page:S,rowsPerPage:w,rowsPerPageOptions:_=[10,25,50,100],SelectProps:O={},showFirstButton:C=!1,showLastButton:T=!1,slotProps:M={},slots:D={}}=i,$=de(i,Sue),N=i,B=Lue(N),q=(n=M==null?void 0:M.select)!=null?n:O,U=q.native?"option":Aue;let F;(u===sT||u==="td")&&(F=l||1e3);const j=Fl(q.id),V=Fl(q.labelId),z=()=>d===-1?(S+1)*w:w===-1?d:Math.min(d,(S+1)*w);return E.jsx(Eue,A({colSpan:F,ref:r,as:u,ownerState:N,className:Pe(B.root,s)},$,{children:E.jsxs(Rue,{className:B.toolbar,children:[E.jsx(Pue,{className:B.spacer}),_.length>1&&E.jsx(Oue,{className:B.selectLabel,id:V,children:g}),_.length>1&&E.jsx(Mue,A({variant:"standard"},!q.variant&&{input:cD||(cD=E.jsx(Yy,{}))},{value:w,onChange:b,id:j,labelId:V},q,{classes:A({},q.classes,{root:Pe(B.input,B.selectRoot,(q.classes||{}).root),select:Pe(B.select,(q.classes||{}).select),icon:Pe(B.selectIcon,(q.classes||{}).icon)}),disabled:p,children:_.map(Q=>ya(U,A({},!Gf(U)&&{ownerState:N},{className:B.menuItem,key:Q.label?Q.label:Q,value:Q.value?Q.value:Q}),Q.label?Q.label:Q))})),E.jsx(Iue,{className:B.displayedRows,children:m({from:d===0?0:S*w+1,to:z(),count:d===-1?-1:d,page:S})}),E.jsx(o,{className:B.actions,backIconButtonProps:a,count:d,nextIconButtonProps:y,onPageChange:x,page:S,rowsPerPage:w,showFirstButton:C,showLastButton:T,slotProps:M.actions,slots:D.actions,getItemAriaLabel:h,disabled:p})]})}))});function Nue(e){return qe("MuiTextField",e)}Ne("MuiTextField",["root"]);const Fue=["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"],jue={standard:ER,filled:TR,outlined:MR},Bue=e=>{const{classes:t}=e;return He({root:["root"]},Nue,t)},Uue=W(QB,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IR=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:x,inputProps:b,InputProps:S,inputRef:w,label:_,maxRows:O,minRows:C,multiline:T=!1,name:M,onBlur:D,onChange:$,onFocus:N,placeholder:B,required:q=!1,rows:U,select:F=!1,SelectProps:j,type:V,value:z,variant:Q="outlined"}=n,oe=de(n,Fue),ae=A({},n,{autoFocus:o,color:l,disabled:d,error:p,fullWidth:m,multiline:T,required:q,select:F,variant:Q}),he=Bue(ae),Ae={};Q==="outlined"&&(x&&typeof x.shrink<"u"&&(Ae.notched=x.shrink),Ae.label=_),F&&((!j||!j.native)&&(Ae.id=void 0),Ae["aria-describedby"]=void 0);const ve=Fl(y),fe=g&&ve?`${ve}-helper-text`:void 0,Ee=_&&ve?`${ve}-label`:void 0,_e=jue[Q],le=E.jsx(_e,A({"aria-describedby":fe,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:m,multiline:T,name:M,rows:U,maxRows:O,minRows:C,type:V,value:z,id:ve,inputRef:w,onBlur:D,onChange:$,onFocus:N,placeholder:B,inputProps:b},Ae,S));return E.jsxs(Uue,A({className:Pe(he.root,s),disabled:d,error:p,fullWidth:m,ref:r,required:q,color:l,variant:Q,ownerState:ae},oe,{children:[_!=null&&_!==""&&E.jsx(Ise,A({htmlFor:ve,id:Ee},x,{children:_})),F?E.jsx(Op,A({"aria-describedby":fe,id:ve,labelId:Ee,value:z,input:le},j,{children:a})):le,g&&E.jsx(Jae,A({id:fe},h,{children:g}))]}))}),vm=Ne("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),que=P.createContext({}),Hue=P.createContext(void 0);function Wue(e){return qe("MuiToggleButtonGroup",e)}const fr=Ne("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),zue=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Vue=e=>{const{classes:t,orientation:r,fullWidth:n,disabled:i}=e,o={root:["root",r==="vertical"&&"vertical",n&&"fullWidth"],grouped:["grouped",`grouped${ge(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return He(o,Wue,t)},Gue=W("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${fr.grouped}`]:t.grouped},{[`& .${fr.grouped}`]:t[`grouped${ge(r.orientation)}`]},{[`& .${fr.firstButton}`]:t.firstButton},{[`& .${fr.lastButton}`]:t.lastButton},{[`& .${fr.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>A({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${fr.grouped}`]:A({},e.orientation==="horizontal"?{[`&.${fr.selected} + .${fr.grouped}.${fr.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${fr.selected} + .${fr.grouped}.${fr.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${fr.firstButton},& .${fr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${fr.lastButton},& .${fr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${fr.firstButton},& .${fr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${fr.lastButton},& .${fr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${fr.lastButton}.${vm.disabled},& .${fr.middleButton}.${vm.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${fr.lastButton}.${vm.disabled},& .${fr.middleButton}.${vm.disabled}`]:{borderTop:"1px solid transparent"}})),Kue=P.forwardRef(function(t,r){const n=tt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:p="horizontal",size:h="medium",value:m}=n,g=de(n,zue),y=A({},n,{disabled:s,fullWidth:u,orientation:p,size:h}),x=Vue(y),b=P.useCallback((T,M)=>{if(!d)return;const D=m&&m.indexOf(M);let $;m&&D>=0?($=m.slice(),$.splice(D,1)):$=m?m.concat(M):[M],d(T,$)},[d,m]),S=P.useCallback((T,M)=>{d&&d(T,m===M?null:M)},[d,m]),w=P.useMemo(()=>({className:x.grouped,onChange:l?S:b,value:m,size:h,fullWidth:u,color:a,disabled:s}),[x.grouped,l,S,b,m,h,u,a,s]),_=Vte(i),O=_.length,C=T=>{const M=T===0,D=T===O-1;return M&&D?"":M?x.firstButton:D?x.lastButton:x.middleButton};return E.jsx(Gue,A({role:"group",className:Pe(x.root,o),ref:r,ownerState:y},g,{children:E.jsx(que.Provider,{value:w,children:_.map((T,M)=>E.jsx(Hue.Provider,{value:C(M),children:T},M))})}))});function lU(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=A({},o),Object.keys(i).forEach(a=>{r[n][a]=lU(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Xue(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}const dD=e=>e,Yue=()=>{let e=dD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=dD}}},Zue=Yue(),Jue={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 uU(e,t,r="Mui"){const n=Jue[t];return n?`${r}-${n}`:`${Zue.generate(e)}-${t}`}function Que(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=uU(e,i,r)}),n}function ece(e){return uU("MuiLoadingButton",e)}const ta=Que("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),tce=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],rce=e=>{const{loading:t,loadingPosition:r,classes:n}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ge(r)}`],endIcon:[t&&`endIconLoading${ge(r)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ge(r)}`]},o=Xue(i,ece,n);return A({},n,o)},nce=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",ice=W(ma,{shouldForwardProp:e=>nce(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ta.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ta.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>A({[`& .${ta.startIconLoadingStart}, & .${ta.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ta.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ta.startIconLoadingStart}, & .${ta.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ta.startIconLoadingStart}, & .${ta.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),oce=W("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.loadingIndicator,t[`loadingIndicator${ge(r.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>A({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),ace=P.forwardRef(function(t,r){const n=P.useContext(UB),i=lU(n,t),o=tt({props:i,name:"MuiLoadingButton"}),{children:a,disabled:s=!1,id:l,loading:u=!1,loadingIndicator:d,loadingPosition:p="center",variant:h="text"}=o,m=de(o,tce),g=Fl(l),y=d??E.jsx(Qy,{"aria-labelledby":g,color:"inherit",size:16}),x=A({},o,{disabled:s,loading:u,loadingIndicator:y,loadingPosition:p,variant:h}),b=rce(x),S=u?E.jsx(oce,{className:b.loadingIndicator,ownerState:x,children:y}):null;return E.jsxs(ice,A({disabled:s||u,id:g,ref:r},m,{variant:h,classes:b,ownerState:x,children:[x.loadingPosition==="end"?a:S,x.loadingPosition==="end"?S:a]}))}),sce=W(GB)`
258
+ .MuiDialog-paper {
259
+ min-height: 124px;
260
+ }
261
+
262
+ ${({theme:e})=>e.breakpoints.down("sm")} {
263
+ padding-top: 72px;
264
+ }
265
+ `,lce=W(fae)`
266
+ padding-top: 24px;
267
+ padding-bottom: 24px;
268
+ `,uce=W(XB)`
269
+ padding-top: 8px !important;
270
+ overflow: hidden;
271
+
272
+ ${({theme:e})=>e.breakpoints.down("sm")} {
273
+ padding: 16px 16px;
274
+ }
275
+ `,cce=W(KB)`
276
+ padding: 8px 15px 8px 20px;
277
+ flex-wrap: wrap;
278
+ `,fD=W(ace)`
279
+ margin: 0 !important;
280
+ white-space: nowrap;
281
+ `,dce=W(sU)`
282
+ display: flex;
283
+ flex-direction: row;
284
+ justify-content: space-between;
285
+ height: 72px;
286
+ padding-right: 16px;
287
+ `,$R=({title:e,actions:t,children:r,PaperComponent:n,PaperProps:i,dividers:o,...a})=>{const s=fn(),l=Ts(s.breakpoints.down("sm")),{fullScreen:u,fullWidth:d}=a,p=l&&(u||d);return E.jsxs(sce,{PaperComponent:n,PaperProps:{...i},...a,children:[p&&E.jsx(zre,{color:"inherit",variant:"elevation",elevation:0,children:E.jsx(dce,{disableGutters:!0,children:t==null?void 0:t.map(h=>E.jsx(fD,{onClick:h.trigger,variant:"text",type:h.type,disabled:h.disabled,children:h.mobileLabel},`${h.label}-${h.type}`))})}),E.jsx(lce,{id:"dialog-title",color:"initial",children:e}),!!r&&E.jsx(uce,{dividers:o,children:r}),!p&&E.jsx(cce,{children:t==null?void 0:t.map(h=>E.jsx(fD,{loading:h.loading,onClick:h.trigger,variant:"text",type:h.type,disabled:h.disabled,children:h.label},`${h.label}-${h.type}`))})]})},fce=W(IR,{shouldForwardProp:e=>e!=="$customBorder"})`
288
+ & .MuiOutlinedInput-root {
289
+ &:hover fieldset {
290
+ border: ${({$customBorder:e})=>!!e&&e};
291
+ }
292
+ }
293
+
294
+ & .${aa.notchedOutline} {
295
+ border: ${({$customBorder:e})=>!!e&&e};
296
+ }
297
+ `,pce=({options:e=[],label:t,value:r,inputId:n,getOptionLabel:i=l=>l.name,getOptionValue:o=l=>l.id,$customBorder:a,...s})=>E.jsx(fce,{inputProps:{id:n},label:t,value:r??"",select:!0,InputLabelProps:{htmlFor:n},...s,$customBorder:a,children:e.map(l=>{const u=i(l),d=o(l);return E.jsx(PR,{value:d,children:u},`${u}-${d}`)})});function hce(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Rl(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const pD={};function lT(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Rl(t[0])&&pD[t[0]]||(Rl(t[0])&&(pD[t[0]]=new Date),hce(...t))}const cU=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},hD=(e,t,r)=>{e.loadNamespaces(t,cU(e,r))},mD=(e,t,r,n)=>{Rl(r)&&(r=[r]),r.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,cU(e,n))},mce=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const u=t.services.backendConnector.state[`${s}|${l}`];return u===-1||u===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!i||a(o,e)))},gce=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(lT("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(i,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):mce(e,t,r)},Rl=e=>typeof e=="string",vce=e=>typeof e=="object"&&e!==null,yce=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,bce={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},xce=e=>bce[e],wce=e=>e.replace(yce,xce);let uT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:wce};const _ce=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};uT={...uT,...e}},Cce=()=>uT;let dU;const Tce=e=>{dU=e},Sce=()=>dU,Ece={type:"3rdParty",init(e){_ce(e.options.react),Tce(e)}},Rce=gp();class Pce{constructor(){nt(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}}const Oce=(e,t)=>{const r=Dr();return It(()=>{r.current=e},[e,t]),r.current},fU=(e,t,r,n)=>e.getFixedT(t,r,n),Mce=(e,t,r,n)=>At(fU(e,t,r,n),[e,t,r,n]),wr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:i}=Ra(Rce)||{},o=r||n||Sce();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Pce),!o){lT("You will need to pass in an i18next instance by using initReactI18next");const _=(C,T)=>Rl(T)?T:vce(T)&&Rl(T.defaultValue)?T.defaultValue:Array.isArray(C)?C[C.length-1]:C,O=[_,{},!1];return O.t=_,O.i18n={},O.ready=!1,O}o.options.react&&o.options.react.wait!==void 0&&lT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...Cce(),...o.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let u=e||i||o.options&&o.options.defaultNS;u=Rl(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(_=>gce(_,o,a)),p=Mce(o,t.lng||null,a.nsMode==="fallback"?u:u[0],l),h=()=>p,m=()=>fU(o,t.lng||null,a.nsMode==="fallback"?u:u[0],l),[g,y]=qr(h);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const b=Oce(x),S=Dr(!0);It(()=>{const{bindI18n:_,bindI18nStore:O}=a;S.current=!0,!d&&!s&&(t.lng?mD(o,t.lng,u,()=>{S.current&&y(m)}):hD(o,u,()=>{S.current&&y(m)})),d&&b&&b!==x&&S.current&&y(m);const C=()=>{S.current&&y(m)};return _&&o&&o.on(_,C),O&&o&&o.store.on(O,C),()=>{S.current=!1,_&&o&&_.split(" ").forEach(T=>o.off(T,C)),O&&o&&O.split(" ").forEach(T=>o.store.off(T,C))}},[o,x]),It(()=>{S.current&&d&&y(h)},[o,l,d]);const w=[g,o,d];if(w.t=g,w.i18n=o,w.ready=d,d||!d&&!s)return w;throw new Promise(_=>{t.lng?mD(o,t.lng,u,()=>_()):hD(o,u,()=>_())})};var DR={},c_={};const Ace=po(rre);var gD;function Mp(){return gD||(gD=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ace}(c_)),c_}var Ice=Ut;Object.defineProperty(DR,"__esModule",{value:!0});var pU=DR.default=void 0,$ce=Ice(Mp()),Dce=E;pU=DR.default=(0,$ce.default)((0,Dce.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");const hU={shouldForwardProp:e=>e!=="$direction"},LR=W("div")`
298
+ display: flex;
299
+ flex-direction: column;
300
+ align-items: center;
301
+ gap: 8px;
302
+ padding: 24px;
303
+ `,Lce=W("div",hU)`
304
+ display: flex;
305
+ align-items: center;
306
+ gap: 16px;
307
+
308
+ ${({$direction:e})=>e==="vertical"?Fi`
309
+ flex-direction: column;
310
+ text-align: center;
311
+ `:Fi`
312
+ flex-direction: row;
313
+ `};
314
+ `,kce=W(pU)`
315
+ color: ${({theme:e})=>e.palette.error.main};
316
+ `,Nce=W("div",hU)`
317
+ display: flex;
318
+ flex-direction: column;
319
+ gap: 8px;
320
+
321
+ ${({$direction:e})=>{if(e==="vertical")return Fi`
322
+ text-align: center;
323
+ `}};
324
+ `,Fce=({error:e,title:t,message:r,direction:n="horizontal"})=>{const{t:i}=wr("common");return E.jsxs(Lce,{$direction:n,"data-testid":"common-error-msg",children:[E.jsx(kce,{}),E.jsxs(Nce,{$direction:n,children:[E.jsx(Ke,{variant:"subtitle1","data-testid":"common-error-msg-title",component:"p",children:t||i("error-title")}),E.jsx(Ke,{variant:"body2","data-testid":"common-error-msg-description",children:(e==null?void 0:e.message)||r||i("error-message")})]})]})},jce=()=>E.jsx(LR,{children:E.jsx(Fce,{direction:"vertical"})});class qJe extends GK{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t){console.error("Client side error",{error:t})}render(){return this.state.hasError?E.jsx(jce,{}):this.props.children}}const Bce=W("div")`
325
+ display: flex;
326
+ flex-direction: column;
327
+ height: 100%;
328
+ justify-content: flex-start;
329
+ overflow-y: overlay;
330
+ width: 100%;
331
+
332
+ @-moz-document url-prefix() {
333
+ overflow: auto;
334
+ }
335
+ `,kR=({children:e,className:t})=>E.jsx(Bce,{className:t,children:e}),Uce=W(Mae)`
336
+ .MuiDrawer-paper {
337
+ width: 100%;
338
+
339
+ ${({theme:e})=>e.breakpoints.up("md")} {
340
+ width: 816px;
341
+ border-top-left-radius: 16px;
342
+ border-bottom-left-radius: 16px;
343
+ }
344
+ }
345
+ `,qce=({children:e,onClose:t,open:r,...n})=>E.jsx(Uce,{anchor:"right",open:r,onClose:t,...n,children:e}),Hce=W("div")`
346
+ display: flex;
347
+ align-items: center;
348
+ justify-content: center;
349
+ `,Wce=({linear:e,...t})=>e?E.jsx(Hse,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"linear-progress",...t}):E.jsx(Hce,{children:E.jsx(Qy,{role:"progressbar","aria-label":"Loading...","aria-busy":"true","data-testid":"circular-progress",...t})});var rv={exports:{}};/**
350
+ * @license
351
+ * Lodash <https://lodash.com/>
352
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
353
+ * Released under MIT license <https://lodash.com/license>
354
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
355
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
356
+ */rv.exports;(function(e,t){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",p=1,h=2,m=4,g=1,y=2,x=1,b=2,S=4,w=8,_=16,O=32,C=64,T=128,M=256,D=512,$=30,N="...",B=800,q=16,U=1,F=2,j=3,V=1/0,z=9007199254740991,Q=17976931348623157e292,oe=NaN,ae=4294967295,he=ae-1,Ae=ae>>>1,ve=[["ary",T],["bind",x],["bindKey",b],["curry",w],["curryRight",_],["flip",D],["partial",O],["partialRight",C],["rearg",M]],fe="[object Arguments]",Ee="[object Array]",_e="[object AsyncFunction]",le="[object Boolean]",ce="[object Date]",Ve="[object DOMException]",je="[object Error]",be="[object Function]",me="[object GeneratorFunction]",Ie="[object Map]",Je="[object Number]",at="[object Null]",ct="[object Object]",Vt="[object Promise]",_r="[object Proxy]",jt="[object RegExp]",st="[object Set]",J="[object String]",ye="[object Symbol]",pe="[object Undefined]",Te="[object WeakMap]",Xe="[object WeakSet]",Ye="[object ArrayBuffer]",Ue="[object DataView]",Oe="[object Float32Array]",Br="[object Float64Array]",en="[object Int8Array]",ti="[object Int16Array]",ke="[object Int32Array]",Ot="[object Uint8Array]",sr="[object Uint8ClampedArray]",ri="[object Uint16Array]",Na="[object Uint32Array]",vh=/\b__p \+= '';/g,cu=/\b(__p \+=) '' \+/g,yh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,du=/&(?:amp|lt|gt|quot|#39);/g,fu=/[&<>"']/g,$1=RegExp(du.source),bh=RegExp(fu.source),D1=/<%-([\s\S]+?)%>/g,xh=/<%([\s\S]+?)%>/g,Fs=/<%=([\s\S]+?)%>/g,pu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L1=/^\w*$/,k1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(G.source),ee=/^\s+/,ue=/\s/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,rt=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/[()=,{}\[\]\/\s]/,Le=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,Ct=/^[-+]0x[0-9a-f]+$/i,Kr=/^0b[01]+$/i,Gt=/^\[object .+?Constructor\]$/,Mt=/^0o[0-7]+$/i,lr=/^(?:0|[1-9]\d*)$/,Fa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo=/($^)/,Xi=/['\n\r\u2028\u2029\\]/g,Mn="\\ud800-\\udfff",pd="\\u0300-\\u036f",js="\\ufe20-\\ufe2f",Wo="\\u20d0-\\u20ff",Bs=pd+js+Wo,Us="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",ur="\\xac\\xb1\\xd7\\xf7",ja="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qs="\\u2000-\\u206f",Cr=" \\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",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",hd="\\ufe0e\\ufe0f",wh=ur+ja+qs+Cr,N1="['’]",Wz="["+Mn+"]",jO="["+wh+"]",_h="["+Bs+"]",BO="\\d+",zz="["+Us+"]",UO="["+St+"]",qO="[^"+Mn+wh+BO+Us+St+zo+"]",F1="\\ud83c[\\udffb-\\udfff]",Vz="(?:"+_h+"|"+F1+")",HO="[^"+Mn+"]",j1="(?:\\ud83c[\\udde6-\\uddff]){2}",B1="[\\ud800-\\udbff][\\udc00-\\udfff]",hu="["+zo+"]",WO="\\u200d",zO="(?:"+UO+"|"+qO+")",Gz="(?:"+hu+"|"+qO+")",VO="(?:"+N1+"(?:d|ll|m|re|s|t|ve))?",GO="(?:"+N1+"(?:D|LL|M|RE|S|T|VE))?",KO=Vz+"?",XO="["+hd+"]?",Kz="(?:"+WO+"(?:"+[HO,j1,B1].join("|")+")"+XO+KO+")*",Xz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",YO=XO+KO+Kz,Zz="(?:"+[zz,j1,B1].join("|")+")"+YO,Jz="(?:"+[HO+_h+"?",_h,j1,B1,Wz].join("|")+")",Qz=RegExp(N1,"g"),e6=RegExp(_h,"g"),U1=RegExp(F1+"(?="+F1+")|"+Jz+YO,"g"),t6=RegExp([hu+"?"+UO+"+"+VO+"(?="+[jO,hu,"$"].join("|")+")",Gz+"+"+GO+"(?="+[jO,hu+zO,"$"].join("|")+")",hu+"?"+zO+"+"+VO,hu+"+"+GO,Yz,Xz,BO,Zz].join("|"),"g"),r6=RegExp("["+WO+Mn+Bs+hd+"]"),n6=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,i6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],o6=-1,nr={};nr[Oe]=nr[Br]=nr[en]=nr[ti]=nr[ke]=nr[Ot]=nr[sr]=nr[ri]=nr[Na]=!0,nr[fe]=nr[Ee]=nr[Ye]=nr[le]=nr[Ue]=nr[ce]=nr[je]=nr[be]=nr[Ie]=nr[Je]=nr[ct]=nr[jt]=nr[st]=nr[J]=nr[Te]=!1;var er={};er[fe]=er[Ee]=er[Ye]=er[Ue]=er[le]=er[ce]=er[Oe]=er[Br]=er[en]=er[ti]=er[ke]=er[Ie]=er[Je]=er[ct]=er[jt]=er[st]=er[J]=er[ye]=er[Ot]=er[sr]=er[ri]=er[Na]=!0,er[je]=er[be]=er[Te]=!1;var a6={À:"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"},s6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},l6={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},u6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},c6=parseFloat,d6=parseInt,ZO=typeof ao=="object"&&ao&&ao.Object===Object&&ao,f6=typeof self=="object"&&self&&self.Object===Object&&self,pn=ZO||f6||Function("return this")(),q1=t&&!t.nodeType&&t,Hs=q1&&!0&&e&&!e.nodeType&&e,JO=Hs&&Hs.exports===q1,H1=JO&&ZO.process,bi=function(){try{var X=Hs&&Hs.require&&Hs.require("util").types;return X||H1&&H1.binding&&H1.binding("util")}catch{}}(),QO=bi&&bi.isArrayBuffer,eM=bi&&bi.isDate,tM=bi&&bi.isMap,rM=bi&&bi.isRegExp,nM=bi&&bi.isSet,iM=bi&&bi.isTypedArray;function ni(X,re,te){switch(te.length){case 0:return X.call(re);case 1:return X.call(re,te[0]);case 2:return X.call(re,te[0],te[1]);case 3:return X.call(re,te[0],te[1],te[2])}return X.apply(re,te)}function p6(X,re,te,De){for(var ut=-1,Lt=X==null?0:X.length;++ut<Lt;){var Xr=X[ut];re(De,Xr,te(Xr),X)}return De}function xi(X,re){for(var te=-1,De=X==null?0:X.length;++te<De&&re(X[te],te,X)!==!1;);return X}function h6(X,re){for(var te=X==null?0:X.length;te--&&re(X[te],te,X)!==!1;);return X}function oM(X,re){for(var te=-1,De=X==null?0:X.length;++te<De;)if(!re(X[te],te,X))return!1;return!0}function Ba(X,re){for(var te=-1,De=X==null?0:X.length,ut=0,Lt=[];++te<De;){var Xr=X[te];re(Xr,te,X)&&(Lt[ut++]=Xr)}return Lt}function Ch(X,re){var te=X==null?0:X.length;return!!te&&mu(X,re,0)>-1}function W1(X,re,te){for(var De=-1,ut=X==null?0:X.length;++De<ut;)if(te(re,X[De]))return!0;return!1}function cr(X,re){for(var te=-1,De=X==null?0:X.length,ut=Array(De);++te<De;)ut[te]=re(X[te],te,X);return ut}function Ua(X,re){for(var te=-1,De=re.length,ut=X.length;++te<De;)X[ut+te]=re[te];return X}function z1(X,re,te,De){var ut=-1,Lt=X==null?0:X.length;for(De&&Lt&&(te=X[++ut]);++ut<Lt;)te=re(te,X[ut],ut,X);return te}function m6(X,re,te,De){var ut=X==null?0:X.length;for(De&&ut&&(te=X[--ut]);ut--;)te=re(te,X[ut],ut,X);return te}function V1(X,re){for(var te=-1,De=X==null?0:X.length;++te<De;)if(re(X[te],te,X))return!0;return!1}var g6=G1("length");function v6(X){return X.split("")}function y6(X){return X.match(Fe)||[]}function aM(X,re,te){var De;return te(X,function(ut,Lt,Xr){if(re(ut,Lt,Xr))return De=Lt,!1}),De}function Th(X,re,te,De){for(var ut=X.length,Lt=te+(De?1:-1);De?Lt--:++Lt<ut;)if(re(X[Lt],Lt,X))return Lt;return-1}function mu(X,re,te){return re===re?M6(X,re,te):Th(X,sM,te)}function b6(X,re,te,De){for(var ut=te-1,Lt=X.length;++ut<Lt;)if(De(X[ut],re))return ut;return-1}function sM(X){return X!==X}function lM(X,re){var te=X==null?0:X.length;return te?X1(X,re)/te:oe}function G1(X){return function(re){return re==null?r:re[X]}}function K1(X){return function(re){return X==null?r:X[re]}}function uM(X,re,te,De,ut){return ut(X,function(Lt,Xr,Xt){te=De?(De=!1,Lt):re(te,Lt,Xr,Xt)}),te}function x6(X,re){var te=X.length;for(X.sort(re);te--;)X[te]=X[te].value;return X}function X1(X,re){for(var te,De=-1,ut=X.length;++De<ut;){var Lt=re(X[De]);Lt!==r&&(te=te===r?Lt:te+Lt)}return te}function Y1(X,re){for(var te=-1,De=Array(X);++te<X;)De[te]=re(te);return De}function w6(X,re){return cr(re,function(te){return[te,X[te]]})}function cM(X){return X&&X.slice(0,hM(X)+1).replace(ee,"")}function ii(X){return function(re){return X(re)}}function Z1(X,re){return cr(re,function(te){return X[te]})}function md(X,re){return X.has(re)}function dM(X,re){for(var te=-1,De=X.length;++te<De&&mu(re,X[te],0)>-1;);return te}function fM(X,re){for(var te=X.length;te--&&mu(re,X[te],0)>-1;);return te}function _6(X,re){for(var te=X.length,De=0;te--;)X[te]===re&&++De;return De}var C6=K1(a6),T6=K1(s6);function S6(X){return"\\"+u6[X]}function E6(X,re){return X==null?r:X[re]}function gu(X){return r6.test(X)}function R6(X){return n6.test(X)}function P6(X){for(var re,te=[];!(re=X.next()).done;)te.push(re.value);return te}function J1(X){var re=-1,te=Array(X.size);return X.forEach(function(De,ut){te[++re]=[ut,De]}),te}function pM(X,re){return function(te){return X(re(te))}}function qa(X,re){for(var te=-1,De=X.length,ut=0,Lt=[];++te<De;){var Xr=X[te];(Xr===re||Xr===d)&&(X[te]=d,Lt[ut++]=te)}return Lt}function Sh(X){var re=-1,te=Array(X.size);return X.forEach(function(De){te[++re]=De}),te}function O6(X){var re=-1,te=Array(X.size);return X.forEach(function(De){te[++re]=[De,De]}),te}function M6(X,re,te){for(var De=te-1,ut=X.length;++De<ut;)if(X[De]===re)return De;return-1}function A6(X,re,te){for(var De=te+1;De--;)if(X[De]===re)return De;return De}function vu(X){return gu(X)?$6(X):g6(X)}function Yi(X){return gu(X)?D6(X):v6(X)}function hM(X){for(var re=X.length;re--&&ue.test(X.charAt(re)););return re}var I6=K1(l6);function $6(X){for(var re=U1.lastIndex=0;U1.test(X);)++re;return re}function D6(X){return X.match(U1)||[]}function L6(X){return X.match(t6)||[]}var k6=function X(re){re=re==null?pn:yu.defaults(pn.Object(),re,yu.pick(pn,i6));var te=re.Array,De=re.Date,ut=re.Error,Lt=re.Function,Xr=re.Math,Xt=re.Object,Q1=re.RegExp,N6=re.String,wi=re.TypeError,Eh=te.prototype,F6=Lt.prototype,bu=Xt.prototype,Rh=re["__core-js_shared__"],Ph=F6.toString,qt=bu.hasOwnProperty,j6=0,mM=function(){var c=/[^.]+$/.exec(Rh&&Rh.keys&&Rh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Oh=bu.toString,B6=Ph.call(Xt),U6=pn._,q6=Q1("^"+Ph.call(qt).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mh=JO?re.Buffer:r,Ha=re.Symbol,Ah=re.Uint8Array,gM=Mh?Mh.allocUnsafe:r,Ih=pM(Xt.getPrototypeOf,Xt),vM=Xt.create,yM=bu.propertyIsEnumerable,$h=Eh.splice,bM=Ha?Ha.isConcatSpreadable:r,gd=Ha?Ha.iterator:r,Ws=Ha?Ha.toStringTag:r,Dh=function(){try{var c=Xs(Xt,"defineProperty");return c({},"",{}),c}catch{}}(),H6=re.clearTimeout!==pn.clearTimeout&&re.clearTimeout,W6=De&&De.now!==pn.Date.now&&De.now,z6=re.setTimeout!==pn.setTimeout&&re.setTimeout,Lh=Xr.ceil,kh=Xr.floor,ew=Xt.getOwnPropertySymbols,V6=Mh?Mh.isBuffer:r,xM=re.isFinite,G6=Eh.join,K6=pM(Xt.keys,Xt),Yr=Xr.max,bn=Xr.min,X6=De.now,Y6=re.parseInt,wM=Xr.random,Z6=Eh.reverse,tw=Xs(re,"DataView"),vd=Xs(re,"Map"),rw=Xs(re,"Promise"),xu=Xs(re,"Set"),yd=Xs(re,"WeakMap"),bd=Xs(Xt,"create"),Nh=yd&&new yd,wu={},J6=Ys(tw),Q6=Ys(vd),eV=Ys(rw),tV=Ys(xu),rV=Ys(yd),Fh=Ha?Ha.prototype:r,xd=Fh?Fh.valueOf:r,_M=Fh?Fh.toString:r;function L(c){if(Tr(c)&&!dt(c)&&!(c instanceof Tt)){if(c instanceof _i)return c;if(qt.call(c,"__wrapped__"))return CA(c)}return new _i(c)}var _u=function(){function c(){}return function(f){if(!gr(f))return{};if(vM)return vM(f);c.prototype=f;var v=new c;return c.prototype=r,v}}();function jh(){}function _i(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=r}L.templateSettings={escape:D1,evaluate:xh,interpolate:Fs,variable:"",imports:{_:L}},L.prototype=jh.prototype,L.prototype.constructor=L,_i.prototype=_u(jh.prototype),_i.prototype.constructor=_i;function Tt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function nV(){var c=new Tt(this.__wrapped__);return c.__actions__=Bn(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Bn(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Bn(this.__views__),c}function iV(){if(this.__filtered__){var c=new Tt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function oV(){var c=this.__wrapped__.value(),f=this.__dir__,v=dt(c),R=f<0,I=v?c.length:0,k=v8(0,I,this.__views__),H=k.start,K=k.end,Y=K-H,ne=R?K:H-1,ie=this.__iteratees__,se=ie.length,Re=0,We=bn(Y,this.__takeCount__);if(!v||!R&&I==Y&&We==Y)return VM(c,this.__actions__);var Qe=[];e:for(;Y--&&Re<We;){ne+=f;for(var pt=-1,et=c[ne];++pt<se;){var xt=ie[pt],Et=xt.iteratee,si=xt.type,$n=Et(et);if(si==F)et=$n;else if(!$n){if(si==U)continue e;break e}}Qe[Re++]=et}return Qe}Tt.prototype=_u(jh.prototype),Tt.prototype.constructor=Tt;function zs(c){var f=-1,v=c==null?0:c.length;for(this.clear();++f<v;){var R=c[f];this.set(R[0],R[1])}}function aV(){this.__data__=bd?bd(null):{},this.size=0}function sV(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function lV(c){var f=this.__data__;if(bd){var v=f[c];return v===l?r:v}return qt.call(f,c)?f[c]:r}function uV(c){var f=this.__data__;return bd?f[c]!==r:qt.call(f,c)}function cV(c,f){var v=this.__data__;return this.size+=this.has(c)?0:1,v[c]=bd&&f===r?l:f,this}zs.prototype.clear=aV,zs.prototype.delete=sV,zs.prototype.get=lV,zs.prototype.has=uV,zs.prototype.set=cV;function Vo(c){var f=-1,v=c==null?0:c.length;for(this.clear();++f<v;){var R=c[f];this.set(R[0],R[1])}}function dV(){this.__data__=[],this.size=0}function fV(c){var f=this.__data__,v=Bh(f,c);if(v<0)return!1;var R=f.length-1;return v==R?f.pop():$h.call(f,v,1),--this.size,!0}function pV(c){var f=this.__data__,v=Bh(f,c);return v<0?r:f[v][1]}function hV(c){return Bh(this.__data__,c)>-1}function mV(c,f){var v=this.__data__,R=Bh(v,c);return R<0?(++this.size,v.push([c,f])):v[R][1]=f,this}Vo.prototype.clear=dV,Vo.prototype.delete=fV,Vo.prototype.get=pV,Vo.prototype.has=hV,Vo.prototype.set=mV;function Go(c){var f=-1,v=c==null?0:c.length;for(this.clear();++f<v;){var R=c[f];this.set(R[0],R[1])}}function gV(){this.size=0,this.__data__={hash:new zs,map:new(vd||Vo),string:new zs}}function vV(c){var f=Jh(this,c).delete(c);return this.size-=f?1:0,f}function yV(c){return Jh(this,c).get(c)}function bV(c){return Jh(this,c).has(c)}function xV(c,f){var v=Jh(this,c),R=v.size;return v.set(c,f),this.size+=v.size==R?0:1,this}Go.prototype.clear=gV,Go.prototype.delete=vV,Go.prototype.get=yV,Go.prototype.has=bV,Go.prototype.set=xV;function Vs(c){var f=-1,v=c==null?0:c.length;for(this.__data__=new Go;++f<v;)this.add(c[f])}function wV(c){return this.__data__.set(c,l),this}function _V(c){return this.__data__.has(c)}Vs.prototype.add=Vs.prototype.push=wV,Vs.prototype.has=_V;function Zi(c){var f=this.__data__=new Vo(c);this.size=f.size}function CV(){this.__data__=new Vo,this.size=0}function TV(c){var f=this.__data__,v=f.delete(c);return this.size=f.size,v}function SV(c){return this.__data__.get(c)}function EV(c){return this.__data__.has(c)}function RV(c,f){var v=this.__data__;if(v instanceof Vo){var R=v.__data__;if(!vd||R.length<i-1)return R.push([c,f]),this.size=++v.size,this;v=this.__data__=new Go(R)}return v.set(c,f),this.size=v.size,this}Zi.prototype.clear=CV,Zi.prototype.delete=TV,Zi.prototype.get=SV,Zi.prototype.has=EV,Zi.prototype.set=RV;function CM(c,f){var v=dt(c),R=!v&&Zs(c),I=!v&&!R&&Ka(c),k=!v&&!R&&!I&&Eu(c),H=v||R||I||k,K=H?Y1(c.length,N6):[],Y=K.length;for(var ne in c)(f||qt.call(c,ne))&&!(H&&(ne=="length"||I&&(ne=="offset"||ne=="parent")||k&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Zo(ne,Y)))&&K.push(ne);return K}function TM(c){var f=c.length;return f?c[pw(0,f-1)]:r}function PV(c,f){return Qh(Bn(c),Gs(f,0,c.length))}function OV(c){return Qh(Bn(c))}function nw(c,f,v){(v!==r&&!Ji(c[f],v)||v===r&&!(f in c))&&Ko(c,f,v)}function wd(c,f,v){var R=c[f];(!(qt.call(c,f)&&Ji(R,v))||v===r&&!(f in c))&&Ko(c,f,v)}function Bh(c,f){for(var v=c.length;v--;)if(Ji(c[v][0],f))return v;return-1}function MV(c,f,v,R){return Wa(c,function(I,k,H){f(R,I,v(I),H)}),R}function SM(c,f){return c&&wo(f,tn(f),c)}function AV(c,f){return c&&wo(f,qn(f),c)}function Ko(c,f,v){f=="__proto__"&&Dh?Dh(c,f,{configurable:!0,enumerable:!0,value:v,writable:!0}):c[f]=v}function iw(c,f){for(var v=-1,R=f.length,I=te(R),k=c==null;++v<R;)I[v]=k?r:Fw(c,f[v]);return I}function Gs(c,f,v){return c===c&&(v!==r&&(c=c<=v?c:v),f!==r&&(c=c>=f?c:f)),c}function Ci(c,f,v,R,I,k){var H,K=f&p,Y=f&h,ne=f&m;if(v&&(H=I?v(c,R,I,k):v(c)),H!==r)return H;if(!gr(c))return c;var ie=dt(c);if(ie){if(H=b8(c),!K)return Bn(c,H)}else{var se=xn(c),Re=se==be||se==me;if(Ka(c))return XM(c,K);if(se==ct||se==fe||Re&&!I){if(H=Y||Re?{}:hA(c),!K)return Y?l8(c,AV(H,c)):s8(c,SM(H,c))}else{if(!er[se])return I?c:{};H=x8(c,se,K)}}k||(k=new Zi);var We=k.get(c);if(We)return We;k.set(c,H),HA(c)?c.forEach(function(et){H.add(Ci(et,f,v,et,c,k))}):UA(c)&&c.forEach(function(et,xt){H.set(xt,Ci(et,f,v,xt,c,k))});var Qe=ne?Y?Tw:Cw:Y?qn:tn,pt=ie?r:Qe(c);return xi(pt||c,function(et,xt){pt&&(xt=et,et=c[xt]),wd(H,xt,Ci(et,f,v,xt,c,k))}),H}function IV(c){var f=tn(c);return function(v){return EM(v,c,f)}}function EM(c,f,v){var R=v.length;if(c==null)return!R;for(c=Xt(c);R--;){var I=v[R],k=f[I],H=c[I];if(H===r&&!(I in c)||!k(H))return!1}return!0}function RM(c,f,v){if(typeof c!="function")throw new wi(a);return Pd(function(){c.apply(r,v)},f)}function _d(c,f,v,R){var I=-1,k=Ch,H=!0,K=c.length,Y=[],ne=f.length;if(!K)return Y;v&&(f=cr(f,ii(v))),R?(k=W1,H=!1):f.length>=i&&(k=md,H=!1,f=new Vs(f));e:for(;++I<K;){var ie=c[I],se=v==null?ie:v(ie);if(ie=R||ie!==0?ie:0,H&&se===se){for(var Re=ne;Re--;)if(f[Re]===se)continue e;Y.push(ie)}else k(f,se,R)||Y.push(ie)}return Y}var Wa=eA(xo),PM=eA(aw,!0);function $V(c,f){var v=!0;return Wa(c,function(R,I,k){return v=!!f(R,I,k),v}),v}function Uh(c,f,v){for(var R=-1,I=c.length;++R<I;){var k=c[R],H=f(k);if(H!=null&&(K===r?H===H&&!ai(H):v(H,K)))var K=H,Y=k}return Y}function DV(c,f,v,R){var I=c.length;for(v=ft(v),v<0&&(v=-v>I?0:I+v),R=R===r||R>I?I:ft(R),R<0&&(R+=I),R=v>R?0:zA(R);v<R;)c[v++]=f;return c}function OM(c,f){var v=[];return Wa(c,function(R,I,k){f(R,I,k)&&v.push(R)}),v}function hn(c,f,v,R,I){var k=-1,H=c.length;for(v||(v=_8),I||(I=[]);++k<H;){var K=c[k];f>0&&v(K)?f>1?hn(K,f-1,v,R,I):Ua(I,K):R||(I[I.length]=K)}return I}var ow=tA(),MM=tA(!0);function xo(c,f){return c&&ow(c,f,tn)}function aw(c,f){return c&&MM(c,f,tn)}function qh(c,f){return Ba(f,function(v){return Jo(c[v])})}function Ks(c,f){f=Va(f,c);for(var v=0,R=f.length;c!=null&&v<R;)c=c[_o(f[v++])];return v&&v==R?c:r}function AM(c,f,v){var R=f(c);return dt(c)?R:Ua(R,v(c))}function An(c){return c==null?c===r?pe:at:Ws&&Ws in Xt(c)?g8(c):O8(c)}function sw(c,f){return c>f}function LV(c,f){return c!=null&&qt.call(c,f)}function kV(c,f){return c!=null&&f in Xt(c)}function NV(c,f,v){return c>=bn(f,v)&&c<Yr(f,v)}function lw(c,f,v){for(var R=v?W1:Ch,I=c[0].length,k=c.length,H=k,K=te(k),Y=1/0,ne=[];H--;){var ie=c[H];H&&f&&(ie=cr(ie,ii(f))),Y=bn(ie.length,Y),K[H]=!v&&(f||I>=120&&ie.length>=120)?new Vs(H&&ie):r}ie=c[0];var se=-1,Re=K[0];e:for(;++se<I&&ne.length<Y;){var We=ie[se],Qe=f?f(We):We;if(We=v||We!==0?We:0,!(Re?md(Re,Qe):R(ne,Qe,v))){for(H=k;--H;){var pt=K[H];if(!(pt?md(pt,Qe):R(c[H],Qe,v)))continue e}Re&&Re.push(Qe),ne.push(We)}}return ne}function FV(c,f,v,R){return xo(c,function(I,k,H){f(R,v(I),k,H)}),R}function Cd(c,f,v){f=Va(f,c),c=yA(c,f);var R=c==null?c:c[_o(Si(f))];return R==null?r:ni(R,c,v)}function IM(c){return Tr(c)&&An(c)==fe}function jV(c){return Tr(c)&&An(c)==Ye}function BV(c){return Tr(c)&&An(c)==ce}function Td(c,f,v,R,I){return c===f?!0:c==null||f==null||!Tr(c)&&!Tr(f)?c!==c&&f!==f:UV(c,f,v,R,Td,I)}function UV(c,f,v,R,I,k){var H=dt(c),K=dt(f),Y=H?Ee:xn(c),ne=K?Ee:xn(f);Y=Y==fe?ct:Y,ne=ne==fe?ct:ne;var ie=Y==ct,se=ne==ct,Re=Y==ne;if(Re&&Ka(c)){if(!Ka(f))return!1;H=!0,ie=!1}if(Re&&!ie)return k||(k=new Zi),H||Eu(c)?dA(c,f,v,R,I,k):h8(c,f,Y,v,R,I,k);if(!(v&g)){var We=ie&&qt.call(c,"__wrapped__"),Qe=se&&qt.call(f,"__wrapped__");if(We||Qe){var pt=We?c.value():c,et=Qe?f.value():f;return k||(k=new Zi),I(pt,et,v,R,k)}}return Re?(k||(k=new Zi),m8(c,f,v,R,I,k)):!1}function qV(c){return Tr(c)&&xn(c)==Ie}function uw(c,f,v,R){var I=v.length,k=I,H=!R;if(c==null)return!k;for(c=Xt(c);I--;){var K=v[I];if(H&&K[2]?K[1]!==c[K[0]]:!(K[0]in c))return!1}for(;++I<k;){K=v[I];var Y=K[0],ne=c[Y],ie=K[1];if(H&&K[2]){if(ne===r&&!(Y in c))return!1}else{var se=new Zi;if(R)var Re=R(ne,ie,Y,c,f,se);if(!(Re===r?Td(ie,ne,g|y,R,se):Re))return!1}}return!0}function $M(c){if(!gr(c)||T8(c))return!1;var f=Jo(c)?q6:Gt;return f.test(Ys(c))}function HV(c){return Tr(c)&&An(c)==jt}function WV(c){return Tr(c)&&xn(c)==st}function zV(c){return Tr(c)&&om(c.length)&&!!nr[An(c)]}function DM(c){return typeof c=="function"?c:c==null?Hn:typeof c=="object"?dt(c)?NM(c[0],c[1]):kM(c):rI(c)}function cw(c){if(!Rd(c))return K6(c);var f=[];for(var v in Xt(c))qt.call(c,v)&&v!="constructor"&&f.push(v);return f}function VV(c){if(!gr(c))return P8(c);var f=Rd(c),v=[];for(var R in c)R=="constructor"&&(f||!qt.call(c,R))||v.push(R);return v}function dw(c,f){return c<f}function LM(c,f){var v=-1,R=Un(c)?te(c.length):[];return Wa(c,function(I,k,H){R[++v]=f(I,k,H)}),R}function kM(c){var f=Ew(c);return f.length==1&&f[0][2]?gA(f[0][0],f[0][1]):function(v){return v===c||uw(v,c,f)}}function NM(c,f){return Pw(c)&&mA(f)?gA(_o(c),f):function(v){var R=Fw(v,c);return R===r&&R===f?jw(v,c):Td(f,R,g|y)}}function Hh(c,f,v,R,I){c!==f&&ow(f,function(k,H){if(I||(I=new Zi),gr(k))GV(c,f,H,v,Hh,R,I);else{var K=R?R(Mw(c,H),k,H+"",c,f,I):r;K===r&&(K=k),nw(c,H,K)}},qn)}function GV(c,f,v,R,I,k,H){var K=Mw(c,v),Y=Mw(f,v),ne=H.get(Y);if(ne){nw(c,v,ne);return}var ie=k?k(K,Y,v+"",c,f,H):r,se=ie===r;if(se){var Re=dt(Y),We=!Re&&Ka(Y),Qe=!Re&&!We&&Eu(Y);ie=Y,Re||We||Qe?dt(K)?ie=K:Ir(K)?ie=Bn(K):We?(se=!1,ie=XM(Y,!0)):Qe?(se=!1,ie=YM(Y,!0)):ie=[]:Od(Y)||Zs(Y)?(ie=K,Zs(K)?ie=VA(K):(!gr(K)||Jo(K))&&(ie=hA(Y))):se=!1}se&&(H.set(Y,ie),I(ie,Y,R,k,H),H.delete(Y)),nw(c,v,ie)}function FM(c,f){var v=c.length;if(v)return f+=f<0?v:0,Zo(f,v)?c[f]:r}function jM(c,f,v){f.length?f=cr(f,function(k){return dt(k)?function(H){return Ks(H,k.length===1?k[0]:k)}:k}):f=[Hn];var R=-1;f=cr(f,ii(Ze()));var I=LM(c,function(k,H,K){var Y=cr(f,function(ne){return ne(k)});return{criteria:Y,index:++R,value:k}});return x6(I,function(k,H){return a8(k,H,v)})}function KV(c,f){return BM(c,f,function(v,R){return jw(c,R)})}function BM(c,f,v){for(var R=-1,I=f.length,k={};++R<I;){var H=f[R],K=Ks(c,H);v(K,H)&&Sd(k,Va(H,c),K)}return k}function XV(c){return function(f){return Ks(f,c)}}function fw(c,f,v,R){var I=R?b6:mu,k=-1,H=f.length,K=c;for(c===f&&(f=Bn(f)),v&&(K=cr(c,ii(v)));++k<H;)for(var Y=0,ne=f[k],ie=v?v(ne):ne;(Y=I(K,ie,Y,R))>-1;)K!==c&&$h.call(K,Y,1),$h.call(c,Y,1);return c}function UM(c,f){for(var v=c?f.length:0,R=v-1;v--;){var I=f[v];if(v==R||I!==k){var k=I;Zo(I)?$h.call(c,I,1):gw(c,I)}}return c}function pw(c,f){return c+kh(wM()*(f-c+1))}function YV(c,f,v,R){for(var I=-1,k=Yr(Lh((f-c)/(v||1)),0),H=te(k);k--;)H[R?k:++I]=c,c+=v;return H}function hw(c,f){var v="";if(!c||f<1||f>z)return v;do f%2&&(v+=c),f=kh(f/2),f&&(c+=c);while(f);return v}function gt(c,f){return Aw(vA(c,f,Hn),c+"")}function ZV(c){return TM(Ru(c))}function JV(c,f){var v=Ru(c);return Qh(v,Gs(f,0,v.length))}function Sd(c,f,v,R){if(!gr(c))return c;f=Va(f,c);for(var I=-1,k=f.length,H=k-1,K=c;K!=null&&++I<k;){var Y=_o(f[I]),ne=v;if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return c;if(I!=H){var ie=K[Y];ne=R?R(ie,Y,K):r,ne===r&&(ne=gr(ie)?ie:Zo(f[I+1])?[]:{})}wd(K,Y,ne),K=K[Y]}return c}var qM=Nh?function(c,f){return Nh.set(c,f),c}:Hn,QV=Dh?function(c,f){return Dh(c,"toString",{configurable:!0,enumerable:!1,value:Uw(f),writable:!0})}:Hn;function e8(c){return Qh(Ru(c))}function Ti(c,f,v){var R=-1,I=c.length;f<0&&(f=-f>I?0:I+f),v=v>I?I:v,v<0&&(v+=I),I=f>v?0:v-f>>>0,f>>>=0;for(var k=te(I);++R<I;)k[R]=c[R+f];return k}function t8(c,f){var v;return Wa(c,function(R,I,k){return v=f(R,I,k),!v}),!!v}function Wh(c,f,v){var R=0,I=c==null?R:c.length;if(typeof f=="number"&&f===f&&I<=Ae){for(;R<I;){var k=R+I>>>1,H=c[k];H!==null&&!ai(H)&&(v?H<=f:H<f)?R=k+1:I=k}return I}return mw(c,f,Hn,v)}function mw(c,f,v,R){var I=0,k=c==null?0:c.length;if(k===0)return 0;f=v(f);for(var H=f!==f,K=f===null,Y=ai(f),ne=f===r;I<k;){var ie=kh((I+k)/2),se=v(c[ie]),Re=se!==r,We=se===null,Qe=se===se,pt=ai(se);if(H)var et=R||Qe;else ne?et=Qe&&(R||Re):K?et=Qe&&Re&&(R||!We):Y?et=Qe&&Re&&!We&&(R||!pt):We||pt?et=!1:et=R?se<=f:se<f;et?I=ie+1:k=ie}return bn(k,he)}function HM(c,f){for(var v=-1,R=c.length,I=0,k=[];++v<R;){var H=c[v],K=f?f(H):H;if(!v||!Ji(K,Y)){var Y=K;k[I++]=H===0?0:H}}return k}function WM(c){return typeof c=="number"?c:ai(c)?oe:+c}function oi(c){if(typeof c=="string")return c;if(dt(c))return cr(c,oi)+"";if(ai(c))return _M?_M.call(c):"";var f=c+"";return f=="0"&&1/c==-V?"-0":f}function za(c,f,v){var R=-1,I=Ch,k=c.length,H=!0,K=[],Y=K;if(v)H=!1,I=W1;else if(k>=i){var ne=f?null:f8(c);if(ne)return Sh(ne);H=!1,I=md,Y=new Vs}else Y=f?[]:K;e:for(;++R<k;){var ie=c[R],se=f?f(ie):ie;if(ie=v||ie!==0?ie:0,H&&se===se){for(var Re=Y.length;Re--;)if(Y[Re]===se)continue e;f&&Y.push(se),K.push(ie)}else I(Y,se,v)||(Y!==K&&Y.push(se),K.push(ie))}return K}function gw(c,f){return f=Va(f,c),c=yA(c,f),c==null||delete c[_o(Si(f))]}function zM(c,f,v,R){return Sd(c,f,v(Ks(c,f)),R)}function zh(c,f,v,R){for(var I=c.length,k=R?I:-1;(R?k--:++k<I)&&f(c[k],k,c););return v?Ti(c,R?0:k,R?k+1:I):Ti(c,R?k+1:0,R?I:k)}function VM(c,f){var v=c;return v instanceof Tt&&(v=v.value()),z1(f,function(R,I){return I.func.apply(I.thisArg,Ua([R],I.args))},v)}function vw(c,f,v){var R=c.length;if(R<2)return R?za(c[0]):[];for(var I=-1,k=te(R);++I<R;)for(var H=c[I],K=-1;++K<R;)K!=I&&(k[I]=_d(k[I]||H,c[K],f,v));return za(hn(k,1),f,v)}function GM(c,f,v){for(var R=-1,I=c.length,k=f.length,H={};++R<I;){var K=R<k?f[R]:r;v(H,c[R],K)}return H}function yw(c){return Ir(c)?c:[]}function bw(c){return typeof c=="function"?c:Hn}function Va(c,f){return dt(c)?c:Pw(c,f)?[c]:_A(Bt(c))}var r8=gt;function Ga(c,f,v){var R=c.length;return v=v===r?R:v,!f&&v>=R?c:Ti(c,f,v)}var KM=H6||function(c){return pn.clearTimeout(c)};function XM(c,f){if(f)return c.slice();var v=c.length,R=gM?gM(v):new c.constructor(v);return c.copy(R),R}function xw(c){var f=new c.constructor(c.byteLength);return new Ah(f).set(new Ah(c)),f}function n8(c,f){var v=f?xw(c.buffer):c.buffer;return new c.constructor(v,c.byteOffset,c.byteLength)}function i8(c){var f=new c.constructor(c.source,lt.exec(c));return f.lastIndex=c.lastIndex,f}function o8(c){return xd?Xt(xd.call(c)):{}}function YM(c,f){var v=f?xw(c.buffer):c.buffer;return new c.constructor(v,c.byteOffset,c.length)}function ZM(c,f){if(c!==f){var v=c!==r,R=c===null,I=c===c,k=ai(c),H=f!==r,K=f===null,Y=f===f,ne=ai(f);if(!K&&!ne&&!k&&c>f||k&&H&&Y&&!K&&!ne||R&&H&&Y||!v&&Y||!I)return 1;if(!R&&!k&&!ne&&c<f||ne&&v&&I&&!R&&!k||K&&v&&I||!H&&I||!Y)return-1}return 0}function a8(c,f,v){for(var R=-1,I=c.criteria,k=f.criteria,H=I.length,K=v.length;++R<H;){var Y=ZM(I[R],k[R]);if(Y){if(R>=K)return Y;var ne=v[R];return Y*(ne=="desc"?-1:1)}}return c.index-f.index}function JM(c,f,v,R){for(var I=-1,k=c.length,H=v.length,K=-1,Y=f.length,ne=Yr(k-H,0),ie=te(Y+ne),se=!R;++K<Y;)ie[K]=f[K];for(;++I<H;)(se||I<k)&&(ie[v[I]]=c[I]);for(;ne--;)ie[K++]=c[I++];return ie}function QM(c,f,v,R){for(var I=-1,k=c.length,H=-1,K=v.length,Y=-1,ne=f.length,ie=Yr(k-K,0),se=te(ie+ne),Re=!R;++I<ie;)se[I]=c[I];for(var We=I;++Y<ne;)se[We+Y]=f[Y];for(;++H<K;)(Re||I<k)&&(se[We+v[H]]=c[I++]);return se}function Bn(c,f){var v=-1,R=c.length;for(f||(f=te(R));++v<R;)f[v]=c[v];return f}function wo(c,f,v,R){var I=!v;v||(v={});for(var k=-1,H=f.length;++k<H;){var K=f[k],Y=R?R(v[K],c[K],K,v,c):r;Y===r&&(Y=c[K]),I?Ko(v,K,Y):wd(v,K,Y)}return v}function s8(c,f){return wo(c,Rw(c),f)}function l8(c,f){return wo(c,fA(c),f)}function Vh(c,f){return function(v,R){var I=dt(v)?p6:MV,k=f?f():{};return I(v,c,Ze(R,2),k)}}function Cu(c){return gt(function(f,v){var R=-1,I=v.length,k=I>1?v[I-1]:r,H=I>2?v[2]:r;for(k=c.length>3&&typeof k=="function"?(I--,k):r,H&&In(v[0],v[1],H)&&(k=I<3?r:k,I=1),f=Xt(f);++R<I;){var K=v[R];K&&c(f,K,R,k)}return f})}function eA(c,f){return function(v,R){if(v==null)return v;if(!Un(v))return c(v,R);for(var I=v.length,k=f?I:-1,H=Xt(v);(f?k--:++k<I)&&R(H[k],k,H)!==!1;);return v}}function tA(c){return function(f,v,R){for(var I=-1,k=Xt(f),H=R(f),K=H.length;K--;){var Y=H[c?K:++I];if(v(k[Y],Y,k)===!1)break}return f}}function u8(c,f,v){var R=f&x,I=Ed(c);function k(){var H=this&&this!==pn&&this instanceof k?I:c;return H.apply(R?v:this,arguments)}return k}function rA(c){return function(f){f=Bt(f);var v=gu(f)?Yi(f):r,R=v?v[0]:f.charAt(0),I=v?Ga(v,1).join(""):f.slice(1);return R[c]()+I}}function Tu(c){return function(f){return z1(eI(QA(f).replace(Qz,"")),c,"")}}function Ed(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var v=_u(c.prototype),R=c.apply(v,f);return gr(R)?R:v}}function c8(c,f,v){var R=Ed(c);function I(){for(var k=arguments.length,H=te(k),K=k,Y=Su(I);K--;)H[K]=arguments[K];var ne=k<3&&H[0]!==Y&&H[k-1]!==Y?[]:qa(H,Y);if(k-=ne.length,k<v)return sA(c,f,Gh,I.placeholder,r,H,ne,r,r,v-k);var ie=this&&this!==pn&&this instanceof I?R:c;return ni(ie,this,H)}return I}function nA(c){return function(f,v,R){var I=Xt(f);if(!Un(f)){var k=Ze(v,3);f=tn(f),v=function(K){return k(I[K],K,I)}}var H=c(f,v,R);return H>-1?I[k?f[H]:H]:r}}function iA(c){return Yo(function(f){var v=f.length,R=v,I=_i.prototype.thru;for(c&&f.reverse();R--;){var k=f[R];if(typeof k!="function")throw new wi(a);if(I&&!H&&Zh(k)=="wrapper")var H=new _i([],!0)}for(R=H?R:v;++R<v;){k=f[R];var K=Zh(k),Y=K=="wrapper"?Sw(k):r;Y&&Ow(Y[0])&&Y[1]==(T|w|O|M)&&!Y[4].length&&Y[9]==1?H=H[Zh(Y[0])].apply(H,Y[3]):H=k.length==1&&Ow(k)?H[K]():H.thru(k)}return function(){var ne=arguments,ie=ne[0];if(H&&ne.length==1&&dt(ie))return H.plant(ie).value();for(var se=0,Re=v?f[se].apply(this,ne):ie;++se<v;)Re=f[se].call(this,Re);return Re}})}function Gh(c,f,v,R,I,k,H,K,Y,ne){var ie=f&T,se=f&x,Re=f&b,We=f&(w|_),Qe=f&D,pt=Re?r:Ed(c);function et(){for(var xt=arguments.length,Et=te(xt),si=xt;si--;)Et[si]=arguments[si];if(We)var $n=Su(et),li=_6(Et,$n);if(R&&(Et=JM(Et,R,I,We)),k&&(Et=QM(Et,k,H,We)),xt-=li,We&&xt<ne){var $r=qa(Et,$n);return sA(c,f,Gh,et.placeholder,v,Et,$r,K,Y,ne-xt)}var Qi=se?v:this,ea=Re?Qi[c]:c;return xt=Et.length,K?Et=M8(Et,K):Qe&&xt>1&&Et.reverse(),ie&&Y<xt&&(Et.length=Y),this&&this!==pn&&this instanceof et&&(ea=pt||Ed(ea)),ea.apply(Qi,Et)}return et}function oA(c,f){return function(v,R){return FV(v,c,f(R),{})}}function Kh(c,f){return function(v,R){var I;if(v===r&&R===r)return f;if(v!==r&&(I=v),R!==r){if(I===r)return R;typeof v=="string"||typeof R=="string"?(v=oi(v),R=oi(R)):(v=WM(v),R=WM(R)),I=c(v,R)}return I}}function ww(c){return Yo(function(f){return f=cr(f,ii(Ze())),gt(function(v){var R=this;return c(f,function(I){return ni(I,R,v)})})})}function Xh(c,f){f=f===r?" ":oi(f);var v=f.length;if(v<2)return v?hw(f,c):f;var R=hw(f,Lh(c/vu(f)));return gu(f)?Ga(Yi(R),0,c).join(""):R.slice(0,c)}function d8(c,f,v,R){var I=f&x,k=Ed(c);function H(){for(var K=-1,Y=arguments.length,ne=-1,ie=R.length,se=te(ie+Y),Re=this&&this!==pn&&this instanceof H?k:c;++ne<ie;)se[ne]=R[ne];for(;Y--;)se[ne++]=arguments[++K];return ni(Re,I?v:this,se)}return H}function aA(c){return function(f,v,R){return R&&typeof R!="number"&&In(f,v,R)&&(v=R=r),f=Qo(f),v===r?(v=f,f=0):v=Qo(v),R=R===r?f<v?1:-1:Qo(R),YV(f,v,R,c)}}function Yh(c){return function(f,v){return typeof f=="string"&&typeof v=="string"||(f=Ei(f),v=Ei(v)),c(f,v)}}function sA(c,f,v,R,I,k,H,K,Y,ne){var ie=f&w,se=ie?H:r,Re=ie?r:H,We=ie?k:r,Qe=ie?r:k;f|=ie?O:C,f&=~(ie?C:O),f&S||(f&=-4);var pt=[c,f,I,We,se,Qe,Re,K,Y,ne],et=v.apply(r,pt);return Ow(c)&&bA(et,pt),et.placeholder=R,xA(et,c,f)}function _w(c){var f=Xr[c];return function(v,R){if(v=Ei(v),R=R==null?0:bn(ft(R),292),R&&xM(v)){var I=(Bt(v)+"e").split("e"),k=f(I[0]+"e"+(+I[1]+R));return I=(Bt(k)+"e").split("e"),+(I[0]+"e"+(+I[1]-R))}return f(v)}}var f8=xu&&1/Sh(new xu([,-0]))[1]==V?function(c){return new xu(c)}:Ww;function lA(c){return function(f){var v=xn(f);return v==Ie?J1(f):v==st?O6(f):w6(f,c(f))}}function Xo(c,f,v,R,I,k,H,K){var Y=f&b;if(!Y&&typeof c!="function")throw new wi(a);var ne=R?R.length:0;if(ne||(f&=-97,R=I=r),H=H===r?H:Yr(ft(H),0),K=K===r?K:ft(K),ne-=I?I.length:0,f&C){var ie=R,se=I;R=I=r}var Re=Y?r:Sw(c),We=[c,f,v,R,I,ie,se,k,H,K];if(Re&&R8(We,Re),c=We[0],f=We[1],v=We[2],R=We[3],I=We[4],K=We[9]=We[9]===r?Y?0:c.length:Yr(We[9]-ne,0),!K&&f&(w|_)&&(f&=-25),!f||f==x)var Qe=u8(c,f,v);else f==w||f==_?Qe=c8(c,f,K):(f==O||f==(x|O))&&!I.length?Qe=d8(c,f,v,R):Qe=Gh.apply(r,We);var pt=Re?qM:bA;return xA(pt(Qe,We),c,f)}function uA(c,f,v,R){return c===r||Ji(c,bu[v])&&!qt.call(R,v)?f:c}function cA(c,f,v,R,I,k){return gr(c)&&gr(f)&&(k.set(f,c),Hh(c,f,r,cA,k),k.delete(f)),c}function p8(c){return Od(c)?r:c}function dA(c,f,v,R,I,k){var H=v&g,K=c.length,Y=f.length;if(K!=Y&&!(H&&Y>K))return!1;var ne=k.get(c),ie=k.get(f);if(ne&&ie)return ne==f&&ie==c;var se=-1,Re=!0,We=v&y?new Vs:r;for(k.set(c,f),k.set(f,c);++se<K;){var Qe=c[se],pt=f[se];if(R)var et=H?R(pt,Qe,se,f,c,k):R(Qe,pt,se,c,f,k);if(et!==r){if(et)continue;Re=!1;break}if(We){if(!V1(f,function(xt,Et){if(!md(We,Et)&&(Qe===xt||I(Qe,xt,v,R,k)))return We.push(Et)})){Re=!1;break}}else if(!(Qe===pt||I(Qe,pt,v,R,k))){Re=!1;break}}return k.delete(c),k.delete(f),Re}function h8(c,f,v,R,I,k,H){switch(v){case Ue:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ye:return!(c.byteLength!=f.byteLength||!k(new Ah(c),new Ah(f)));case le:case ce:case Je:return Ji(+c,+f);case je:return c.name==f.name&&c.message==f.message;case jt:case J:return c==f+"";case Ie:var K=J1;case st:var Y=R&g;if(K||(K=Sh),c.size!=f.size&&!Y)return!1;var ne=H.get(c);if(ne)return ne==f;R|=y,H.set(c,f);var ie=dA(K(c),K(f),R,I,k,H);return H.delete(c),ie;case ye:if(xd)return xd.call(c)==xd.call(f)}return!1}function m8(c,f,v,R,I,k){var H=v&g,K=Cw(c),Y=K.length,ne=Cw(f),ie=ne.length;if(Y!=ie&&!H)return!1;for(var se=Y;se--;){var Re=K[se];if(!(H?Re in f:qt.call(f,Re)))return!1}var We=k.get(c),Qe=k.get(f);if(We&&Qe)return We==f&&Qe==c;var pt=!0;k.set(c,f),k.set(f,c);for(var et=H;++se<Y;){Re=K[se];var xt=c[Re],Et=f[Re];if(R)var si=H?R(Et,xt,Re,f,c,k):R(xt,Et,Re,c,f,k);if(!(si===r?xt===Et||I(xt,Et,v,R,k):si)){pt=!1;break}et||(et=Re=="constructor")}if(pt&&!et){var $n=c.constructor,li=f.constructor;$n!=li&&"constructor"in c&&"constructor"in f&&!(typeof $n=="function"&&$n instanceof $n&&typeof li=="function"&&li instanceof li)&&(pt=!1)}return k.delete(c),k.delete(f),pt}function Yo(c){return Aw(vA(c,r,EA),c+"")}function Cw(c){return AM(c,tn,Rw)}function Tw(c){return AM(c,qn,fA)}var Sw=Nh?function(c){return Nh.get(c)}:Ww;function Zh(c){for(var f=c.name+"",v=wu[f],R=qt.call(wu,f)?v.length:0;R--;){var I=v[R],k=I.func;if(k==null||k==c)return I.name}return f}function Su(c){var f=qt.call(L,"placeholder")?L:c;return f.placeholder}function Ze(){var c=L.iteratee||qw;return c=c===qw?DM:c,arguments.length?c(arguments[0],arguments[1]):c}function Jh(c,f){var v=c.__data__;return C8(f)?v[typeof f=="string"?"string":"hash"]:v.map}function Ew(c){for(var f=tn(c),v=f.length;v--;){var R=f[v],I=c[R];f[v]=[R,I,mA(I)]}return f}function Xs(c,f){var v=E6(c,f);return $M(v)?v:r}function g8(c){var f=qt.call(c,Ws),v=c[Ws];try{c[Ws]=r;var R=!0}catch{}var I=Oh.call(c);return R&&(f?c[Ws]=v:delete c[Ws]),I}var Rw=ew?function(c){return c==null?[]:(c=Xt(c),Ba(ew(c),function(f){return yM.call(c,f)}))}:zw,fA=ew?function(c){for(var f=[];c;)Ua(f,Rw(c)),c=Ih(c);return f}:zw,xn=An;(tw&&xn(new tw(new ArrayBuffer(1)))!=Ue||vd&&xn(new vd)!=Ie||rw&&xn(rw.resolve())!=Vt||xu&&xn(new xu)!=st||yd&&xn(new yd)!=Te)&&(xn=function(c){var f=An(c),v=f==ct?c.constructor:r,R=v?Ys(v):"";if(R)switch(R){case J6:return Ue;case Q6:return Ie;case eV:return Vt;case tV:return st;case rV:return Te}return f});function v8(c,f,v){for(var R=-1,I=v.length;++R<I;){var k=v[R],H=k.size;switch(k.type){case"drop":c+=H;break;case"dropRight":f-=H;break;case"take":f=bn(f,c+H);break;case"takeRight":c=Yr(c,f-H);break}}return{start:c,end:f}}function y8(c){var f=c.match(Ge);return f?f[1].split(rt):[]}function pA(c,f,v){f=Va(f,c);for(var R=-1,I=f.length,k=!1;++R<I;){var H=_o(f[R]);if(!(k=c!=null&&v(c,H)))break;c=c[H]}return k||++R!=I?k:(I=c==null?0:c.length,!!I&&om(I)&&Zo(H,I)&&(dt(c)||Zs(c)))}function b8(c){var f=c.length,v=new c.constructor(f);return f&&typeof c[0]=="string"&&qt.call(c,"index")&&(v.index=c.index,v.input=c.input),v}function hA(c){return typeof c.constructor=="function"&&!Rd(c)?_u(Ih(c)):{}}function x8(c,f,v){var R=c.constructor;switch(f){case Ye:return xw(c);case le:case ce:return new R(+c);case Ue:return n8(c,v);case Oe:case Br:case en:case ti:case ke:case Ot:case sr:case ri:case Na:return YM(c,v);case Ie:return new R;case Je:case J:return new R(c);case jt:return i8(c);case st:return new R;case ye:return o8(c)}}function w8(c,f){var v=f.length;if(!v)return c;var R=v-1;return f[R]=(v>1?"& ":"")+f[R],f=f.join(v>2?", ":" "),c.replace(Se,`{
357
+ /* [wrapped with `+f+`] */
358
+ `)}function _8(c){return dt(c)||Zs(c)||!!(bM&&c&&c[bM])}function Zo(c,f){var v=typeof c;return f=f??z,!!f&&(v=="number"||v!="symbol"&&lr.test(c))&&c>-1&&c%1==0&&c<f}function In(c,f,v){if(!gr(v))return!1;var R=typeof f;return(R=="number"?Un(v)&&Zo(f,v.length):R=="string"&&f in v)?Ji(v[f],c):!1}function Pw(c,f){if(dt(c))return!1;var v=typeof c;return v=="number"||v=="symbol"||v=="boolean"||c==null||ai(c)?!0:L1.test(c)||!pu.test(c)||f!=null&&c in Xt(f)}function C8(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function Ow(c){var f=Zh(c),v=L[f];if(typeof v!="function"||!(f in Tt.prototype))return!1;if(c===v)return!0;var R=Sw(v);return!!R&&c===R[0]}function T8(c){return!!mM&&mM in c}var S8=Rh?Jo:Vw;function Rd(c){var f=c&&c.constructor,v=typeof f=="function"&&f.prototype||bu;return c===v}function mA(c){return c===c&&!gr(c)}function gA(c,f){return function(v){return v==null?!1:v[c]===f&&(f!==r||c in Xt(v))}}function E8(c){var f=nm(c,function(R){return v.size===u&&v.clear(),R}),v=f.cache;return f}function R8(c,f){var v=c[1],R=f[1],I=v|R,k=I<(x|b|T),H=R==T&&v==w||R==T&&v==M&&c[7].length<=f[8]||R==(T|M)&&f[7].length<=f[8]&&v==w;if(!(k||H))return c;R&x&&(c[2]=f[2],I|=v&x?0:S);var K=f[3];if(K){var Y=c[3];c[3]=Y?JM(Y,K,f[4]):K,c[4]=Y?qa(c[3],d):f[4]}return K=f[5],K&&(Y=c[5],c[5]=Y?QM(Y,K,f[6]):K,c[6]=Y?qa(c[5],d):f[6]),K=f[7],K&&(c[7]=K),R&T&&(c[8]=c[8]==null?f[8]:bn(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=I,c}function P8(c){var f=[];if(c!=null)for(var v in Xt(c))f.push(v);return f}function O8(c){return Oh.call(c)}function vA(c,f,v){return f=Yr(f===r?c.length-1:f,0),function(){for(var R=arguments,I=-1,k=Yr(R.length-f,0),H=te(k);++I<k;)H[I]=R[f+I];I=-1;for(var K=te(f+1);++I<f;)K[I]=R[I];return K[f]=v(H),ni(c,this,K)}}function yA(c,f){return f.length<2?c:Ks(c,Ti(f,0,-1))}function M8(c,f){for(var v=c.length,R=bn(f.length,v),I=Bn(c);R--;){var k=f[R];c[R]=Zo(k,v)?I[k]:r}return c}function Mw(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var bA=wA(qM),Pd=z6||function(c,f){return pn.setTimeout(c,f)},Aw=wA(QV);function xA(c,f,v){var R=f+"";return Aw(c,w8(R,A8(y8(R),v)))}function wA(c){var f=0,v=0;return function(){var R=X6(),I=q-(R-v);if(v=R,I>0){if(++f>=B)return arguments[0]}else f=0;return c.apply(r,arguments)}}function Qh(c,f){var v=-1,R=c.length,I=R-1;for(f=f===r?R:f;++v<f;){var k=pw(v,I),H=c[k];c[k]=c[v],c[v]=H}return c.length=f,c}var _A=E8(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(k1,function(v,R,I,k){f.push(I?k.replace(Le,"$1"):R||v)}),f});function _o(c){if(typeof c=="string"||ai(c))return c;var f=c+"";return f=="0"&&1/c==-V?"-0":f}function Ys(c){if(c!=null){try{return Ph.call(c)}catch{}try{return c+""}catch{}}return""}function A8(c,f){return xi(ve,function(v){var R="_."+v[0];f&v[1]&&!Ch(c,R)&&c.push(R)}),c.sort()}function CA(c){if(c instanceof Tt)return c.clone();var f=new _i(c.__wrapped__,c.__chain__);return f.__actions__=Bn(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function I8(c,f,v){(v?In(c,f,v):f===r)?f=1:f=Yr(ft(f),0);var R=c==null?0:c.length;if(!R||f<1)return[];for(var I=0,k=0,H=te(Lh(R/f));I<R;)H[k++]=Ti(c,I,I+=f);return H}function $8(c){for(var f=-1,v=c==null?0:c.length,R=0,I=[];++f<v;){var k=c[f];k&&(I[R++]=k)}return I}function D8(){var c=arguments.length;if(!c)return[];for(var f=te(c-1),v=arguments[0],R=c;R--;)f[R-1]=arguments[R];return Ua(dt(v)?Bn(v):[v],hn(f,1))}var L8=gt(function(c,f){return Ir(c)?_d(c,hn(f,1,Ir,!0)):[]}),k8=gt(function(c,f){var v=Si(f);return Ir(v)&&(v=r),Ir(c)?_d(c,hn(f,1,Ir,!0),Ze(v,2)):[]}),N8=gt(function(c,f){var v=Si(f);return Ir(v)&&(v=r),Ir(c)?_d(c,hn(f,1,Ir,!0),r,v):[]});function F8(c,f,v){var R=c==null?0:c.length;return R?(f=v||f===r?1:ft(f),Ti(c,f<0?0:f,R)):[]}function j8(c,f,v){var R=c==null?0:c.length;return R?(f=v||f===r?1:ft(f),f=R-f,Ti(c,0,f<0?0:f)):[]}function B8(c,f){return c&&c.length?zh(c,Ze(f,3),!0,!0):[]}function U8(c,f){return c&&c.length?zh(c,Ze(f,3),!0):[]}function q8(c,f,v,R){var I=c==null?0:c.length;return I?(v&&typeof v!="number"&&In(c,f,v)&&(v=0,R=I),DV(c,f,v,R)):[]}function TA(c,f,v){var R=c==null?0:c.length;if(!R)return-1;var I=v==null?0:ft(v);return I<0&&(I=Yr(R+I,0)),Th(c,Ze(f,3),I)}function SA(c,f,v){var R=c==null?0:c.length;if(!R)return-1;var I=R-1;return v!==r&&(I=ft(v),I=v<0?Yr(R+I,0):bn(I,R-1)),Th(c,Ze(f,3),I,!0)}function EA(c){var f=c==null?0:c.length;return f?hn(c,1):[]}function H8(c){var f=c==null?0:c.length;return f?hn(c,V):[]}function W8(c,f){var v=c==null?0:c.length;return v?(f=f===r?1:ft(f),hn(c,f)):[]}function z8(c){for(var f=-1,v=c==null?0:c.length,R={};++f<v;){var I=c[f];R[I[0]]=I[1]}return R}function RA(c){return c&&c.length?c[0]:r}function V8(c,f,v){var R=c==null?0:c.length;if(!R)return-1;var I=v==null?0:ft(v);return I<0&&(I=Yr(R+I,0)),mu(c,f,I)}function G8(c){var f=c==null?0:c.length;return f?Ti(c,0,-1):[]}var K8=gt(function(c){var f=cr(c,yw);return f.length&&f[0]===c[0]?lw(f):[]}),X8=gt(function(c){var f=Si(c),v=cr(c,yw);return f===Si(v)?f=r:v.pop(),v.length&&v[0]===c[0]?lw(v,Ze(f,2)):[]}),Y8=gt(function(c){var f=Si(c),v=cr(c,yw);return f=typeof f=="function"?f:r,f&&v.pop(),v.length&&v[0]===c[0]?lw(v,r,f):[]});function Z8(c,f){return c==null?"":G6.call(c,f)}function Si(c){var f=c==null?0:c.length;return f?c[f-1]:r}function J8(c,f,v){var R=c==null?0:c.length;if(!R)return-1;var I=R;return v!==r&&(I=ft(v),I=I<0?Yr(R+I,0):bn(I,R-1)),f===f?A6(c,f,I):Th(c,sM,I,!0)}function Q8(c,f){return c&&c.length?FM(c,ft(f)):r}var e9=gt(PA);function PA(c,f){return c&&c.length&&f&&f.length?fw(c,f):c}function t9(c,f,v){return c&&c.length&&f&&f.length?fw(c,f,Ze(v,2)):c}function r9(c,f,v){return c&&c.length&&f&&f.length?fw(c,f,r,v):c}var n9=Yo(function(c,f){var v=c==null?0:c.length,R=iw(c,f);return UM(c,cr(f,function(I){return Zo(I,v)?+I:I}).sort(ZM)),R});function i9(c,f){var v=[];if(!(c&&c.length))return v;var R=-1,I=[],k=c.length;for(f=Ze(f,3);++R<k;){var H=c[R];f(H,R,c)&&(v.push(H),I.push(R))}return UM(c,I),v}function Iw(c){return c==null?c:Z6.call(c)}function o9(c,f,v){var R=c==null?0:c.length;return R?(v&&typeof v!="number"&&In(c,f,v)?(f=0,v=R):(f=f==null?0:ft(f),v=v===r?R:ft(v)),Ti(c,f,v)):[]}function a9(c,f){return Wh(c,f)}function s9(c,f,v){return mw(c,f,Ze(v,2))}function l9(c,f){var v=c==null?0:c.length;if(v){var R=Wh(c,f);if(R<v&&Ji(c[R],f))return R}return-1}function u9(c,f){return Wh(c,f,!0)}function c9(c,f,v){return mw(c,f,Ze(v,2),!0)}function d9(c,f){var v=c==null?0:c.length;if(v){var R=Wh(c,f,!0)-1;if(Ji(c[R],f))return R}return-1}function f9(c){return c&&c.length?HM(c):[]}function p9(c,f){return c&&c.length?HM(c,Ze(f,2)):[]}function h9(c){var f=c==null?0:c.length;return f?Ti(c,1,f):[]}function m9(c,f,v){return c&&c.length?(f=v||f===r?1:ft(f),Ti(c,0,f<0?0:f)):[]}function g9(c,f,v){var R=c==null?0:c.length;return R?(f=v||f===r?1:ft(f),f=R-f,Ti(c,f<0?0:f,R)):[]}function v9(c,f){return c&&c.length?zh(c,Ze(f,3),!1,!0):[]}function y9(c,f){return c&&c.length?zh(c,Ze(f,3)):[]}var b9=gt(function(c){return za(hn(c,1,Ir,!0))}),x9=gt(function(c){var f=Si(c);return Ir(f)&&(f=r),za(hn(c,1,Ir,!0),Ze(f,2))}),w9=gt(function(c){var f=Si(c);return f=typeof f=="function"?f:r,za(hn(c,1,Ir,!0),r,f)});function _9(c){return c&&c.length?za(c):[]}function C9(c,f){return c&&c.length?za(c,Ze(f,2)):[]}function T9(c,f){return f=typeof f=="function"?f:r,c&&c.length?za(c,r,f):[]}function $w(c){if(!(c&&c.length))return[];var f=0;return c=Ba(c,function(v){if(Ir(v))return f=Yr(v.length,f),!0}),Y1(f,function(v){return cr(c,G1(v))})}function OA(c,f){if(!(c&&c.length))return[];var v=$w(c);return f==null?v:cr(v,function(R){return ni(f,r,R)})}var S9=gt(function(c,f){return Ir(c)?_d(c,f):[]}),E9=gt(function(c){return vw(Ba(c,Ir))}),R9=gt(function(c){var f=Si(c);return Ir(f)&&(f=r),vw(Ba(c,Ir),Ze(f,2))}),P9=gt(function(c){var f=Si(c);return f=typeof f=="function"?f:r,vw(Ba(c,Ir),r,f)}),O9=gt($w);function M9(c,f){return GM(c||[],f||[],wd)}function A9(c,f){return GM(c||[],f||[],Sd)}var I9=gt(function(c){var f=c.length,v=f>1?c[f-1]:r;return v=typeof v=="function"?(c.pop(),v):r,OA(c,v)});function MA(c){var f=L(c);return f.__chain__=!0,f}function $9(c,f){return f(c),c}function em(c,f){return f(c)}var D9=Yo(function(c){var f=c.length,v=f?c[0]:0,R=this.__wrapped__,I=function(k){return iw(k,c)};return f>1||this.__actions__.length||!(R instanceof Tt)||!Zo(v)?this.thru(I):(R=R.slice(v,+v+(f?1:0)),R.__actions__.push({func:em,args:[I],thisArg:r}),new _i(R,this.__chain__).thru(function(k){return f&&!k.length&&k.push(r),k}))});function L9(){return MA(this)}function k9(){return new _i(this.value(),this.__chain__)}function N9(){this.__values__===r&&(this.__values__=WA(this.value()));var c=this.__index__>=this.__values__.length,f=c?r:this.__values__[this.__index__++];return{done:c,value:f}}function F9(){return this}function j9(c){for(var f,v=this;v instanceof jh;){var R=CA(v);R.__index__=0,R.__values__=r,f?I.__wrapped__=R:f=R;var I=R;v=v.__wrapped__}return I.__wrapped__=c,f}function B9(){var c=this.__wrapped__;if(c instanceof Tt){var f=c;return this.__actions__.length&&(f=new Tt(this)),f=f.reverse(),f.__actions__.push({func:em,args:[Iw],thisArg:r}),new _i(f,this.__chain__)}return this.thru(Iw)}function U9(){return VM(this.__wrapped__,this.__actions__)}var q9=Vh(function(c,f,v){qt.call(c,v)?++c[v]:Ko(c,v,1)});function H9(c,f,v){var R=dt(c)?oM:$V;return v&&In(c,f,v)&&(f=r),R(c,Ze(f,3))}function W9(c,f){var v=dt(c)?Ba:OM;return v(c,Ze(f,3))}var z9=nA(TA),V9=nA(SA);function G9(c,f){return hn(tm(c,f),1)}function K9(c,f){return hn(tm(c,f),V)}function X9(c,f,v){return v=v===r?1:ft(v),hn(tm(c,f),v)}function AA(c,f){var v=dt(c)?xi:Wa;return v(c,Ze(f,3))}function IA(c,f){var v=dt(c)?h6:PM;return v(c,Ze(f,3))}var Y9=Vh(function(c,f,v){qt.call(c,v)?c[v].push(f):Ko(c,v,[f])});function Z9(c,f,v,R){c=Un(c)?c:Ru(c),v=v&&!R?ft(v):0;var I=c.length;return v<0&&(v=Yr(I+v,0)),am(c)?v<=I&&c.indexOf(f,v)>-1:!!I&&mu(c,f,v)>-1}var J9=gt(function(c,f,v){var R=-1,I=typeof f=="function",k=Un(c)?te(c.length):[];return Wa(c,function(H){k[++R]=I?ni(f,H,v):Cd(H,f,v)}),k}),Q9=Vh(function(c,f,v){Ko(c,v,f)});function tm(c,f){var v=dt(c)?cr:LM;return v(c,Ze(f,3))}function e7(c,f,v,R){return c==null?[]:(dt(f)||(f=f==null?[]:[f]),v=R?r:v,dt(v)||(v=v==null?[]:[v]),jM(c,f,v))}var t7=Vh(function(c,f,v){c[v?0:1].push(f)},function(){return[[],[]]});function r7(c,f,v){var R=dt(c)?z1:uM,I=arguments.length<3;return R(c,Ze(f,4),v,I,Wa)}function n7(c,f,v){var R=dt(c)?m6:uM,I=arguments.length<3;return R(c,Ze(f,4),v,I,PM)}function i7(c,f){var v=dt(c)?Ba:OM;return v(c,im(Ze(f,3)))}function o7(c){var f=dt(c)?TM:ZV;return f(c)}function a7(c,f,v){(v?In(c,f,v):f===r)?f=1:f=ft(f);var R=dt(c)?PV:JV;return R(c,f)}function s7(c){var f=dt(c)?OV:e8;return f(c)}function l7(c){if(c==null)return 0;if(Un(c))return am(c)?vu(c):c.length;var f=xn(c);return f==Ie||f==st?c.size:cw(c).length}function u7(c,f,v){var R=dt(c)?V1:t8;return v&&In(c,f,v)&&(f=r),R(c,Ze(f,3))}var c7=gt(function(c,f){if(c==null)return[];var v=f.length;return v>1&&In(c,f[0],f[1])?f=[]:v>2&&In(f[0],f[1],f[2])&&(f=[f[0]]),jM(c,hn(f,1),[])}),rm=W6||function(){return pn.Date.now()};function d7(c,f){if(typeof f!="function")throw new wi(a);return c=ft(c),function(){if(--c<1)return f.apply(this,arguments)}}function $A(c,f,v){return f=v?r:f,f=c&&f==null?c.length:f,Xo(c,T,r,r,r,r,f)}function DA(c,f){var v;if(typeof f!="function")throw new wi(a);return c=ft(c),function(){return--c>0&&(v=f.apply(this,arguments)),c<=1&&(f=r),v}}var Dw=gt(function(c,f,v){var R=x;if(v.length){var I=qa(v,Su(Dw));R|=O}return Xo(c,R,f,v,I)}),LA=gt(function(c,f,v){var R=x|b;if(v.length){var I=qa(v,Su(LA));R|=O}return Xo(f,R,c,v,I)});function kA(c,f,v){f=v?r:f;var R=Xo(c,w,r,r,r,r,r,f);return R.placeholder=kA.placeholder,R}function NA(c,f,v){f=v?r:f;var R=Xo(c,_,r,r,r,r,r,f);return R.placeholder=NA.placeholder,R}function FA(c,f,v){var R,I,k,H,K,Y,ne=0,ie=!1,se=!1,Re=!0;if(typeof c!="function")throw new wi(a);f=Ei(f)||0,gr(v)&&(ie=!!v.leading,se="maxWait"in v,k=se?Yr(Ei(v.maxWait)||0,f):k,Re="trailing"in v?!!v.trailing:Re);function We($r){var Qi=R,ea=I;return R=I=r,ne=$r,H=c.apply(ea,Qi),H}function Qe($r){return ne=$r,K=Pd(xt,f),ie?We($r):H}function pt($r){var Qi=$r-Y,ea=$r-ne,nI=f-Qi;return se?bn(nI,k-ea):nI}function et($r){var Qi=$r-Y,ea=$r-ne;return Y===r||Qi>=f||Qi<0||se&&ea>=k}function xt(){var $r=rm();if(et($r))return Et($r);K=Pd(xt,pt($r))}function Et($r){return K=r,Re&&R?We($r):(R=I=r,H)}function si(){K!==r&&KM(K),ne=0,R=Y=I=K=r}function $n(){return K===r?H:Et(rm())}function li(){var $r=rm(),Qi=et($r);if(R=arguments,I=this,Y=$r,Qi){if(K===r)return Qe(Y);if(se)return KM(K),K=Pd(xt,f),We(Y)}return K===r&&(K=Pd(xt,f)),H}return li.cancel=si,li.flush=$n,li}var f7=gt(function(c,f){return RM(c,1,f)}),p7=gt(function(c,f,v){return RM(c,Ei(f)||0,v)});function h7(c){return Xo(c,D)}function nm(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new wi(a);var v=function(){var R=arguments,I=f?f.apply(this,R):R[0],k=v.cache;if(k.has(I))return k.get(I);var H=c.apply(this,R);return v.cache=k.set(I,H)||k,H};return v.cache=new(nm.Cache||Go),v}nm.Cache=Go;function im(c){if(typeof c!="function")throw new wi(a);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function m7(c){return DA(2,c)}var g7=r8(function(c,f){f=f.length==1&&dt(f[0])?cr(f[0],ii(Ze())):cr(hn(f,1),ii(Ze()));var v=f.length;return gt(function(R){for(var I=-1,k=bn(R.length,v);++I<k;)R[I]=f[I].call(this,R[I]);return ni(c,this,R)})}),Lw=gt(function(c,f){var v=qa(f,Su(Lw));return Xo(c,O,r,f,v)}),jA=gt(function(c,f){var v=qa(f,Su(jA));return Xo(c,C,r,f,v)}),v7=Yo(function(c,f){return Xo(c,M,r,r,r,f)});function y7(c,f){if(typeof c!="function")throw new wi(a);return f=f===r?f:ft(f),gt(c,f)}function b7(c,f){if(typeof c!="function")throw new wi(a);return f=f==null?0:Yr(ft(f),0),gt(function(v){var R=v[f],I=Ga(v,0,f);return R&&Ua(I,R),ni(c,this,I)})}function x7(c,f,v){var R=!0,I=!0;if(typeof c!="function")throw new wi(a);return gr(v)&&(R="leading"in v?!!v.leading:R,I="trailing"in v?!!v.trailing:I),FA(c,f,{leading:R,maxWait:f,trailing:I})}function w7(c){return $A(c,1)}function _7(c,f){return Lw(bw(f),c)}function C7(){if(!arguments.length)return[];var c=arguments[0];return dt(c)?c:[c]}function T7(c){return Ci(c,m)}function S7(c,f){return f=typeof f=="function"?f:r,Ci(c,m,f)}function E7(c){return Ci(c,p|m)}function R7(c,f){return f=typeof f=="function"?f:r,Ci(c,p|m,f)}function P7(c,f){return f==null||EM(c,f,tn(f))}function Ji(c,f){return c===f||c!==c&&f!==f}var O7=Yh(sw),M7=Yh(function(c,f){return c>=f}),Zs=IM(function(){return arguments}())?IM:function(c){return Tr(c)&&qt.call(c,"callee")&&!yM.call(c,"callee")},dt=te.isArray,A7=QO?ii(QO):jV;function Un(c){return c!=null&&om(c.length)&&!Jo(c)}function Ir(c){return Tr(c)&&Un(c)}function I7(c){return c===!0||c===!1||Tr(c)&&An(c)==le}var Ka=V6||Vw,$7=eM?ii(eM):BV;function D7(c){return Tr(c)&&c.nodeType===1&&!Od(c)}function L7(c){if(c==null)return!0;if(Un(c)&&(dt(c)||typeof c=="string"||typeof c.splice=="function"||Ka(c)||Eu(c)||Zs(c)))return!c.length;var f=xn(c);if(f==Ie||f==st)return!c.size;if(Rd(c))return!cw(c).length;for(var v in c)if(qt.call(c,v))return!1;return!0}function k7(c,f){return Td(c,f)}function N7(c,f,v){v=typeof v=="function"?v:r;var R=v?v(c,f):r;return R===r?Td(c,f,r,v):!!R}function kw(c){if(!Tr(c))return!1;var f=An(c);return f==je||f==Ve||typeof c.message=="string"&&typeof c.name=="string"&&!Od(c)}function F7(c){return typeof c=="number"&&xM(c)}function Jo(c){if(!gr(c))return!1;var f=An(c);return f==be||f==me||f==_e||f==_r}function BA(c){return typeof c=="number"&&c==ft(c)}function om(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=z}function gr(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function Tr(c){return c!=null&&typeof c=="object"}var UA=tM?ii(tM):qV;function j7(c,f){return c===f||uw(c,f,Ew(f))}function B7(c,f,v){return v=typeof v=="function"?v:r,uw(c,f,Ew(f),v)}function U7(c){return qA(c)&&c!=+c}function q7(c){if(S8(c))throw new ut(o);return $M(c)}function H7(c){return c===null}function W7(c){return c==null}function qA(c){return typeof c=="number"||Tr(c)&&An(c)==Je}function Od(c){if(!Tr(c)||An(c)!=ct)return!1;var f=Ih(c);if(f===null)return!0;var v=qt.call(f,"constructor")&&f.constructor;return typeof v=="function"&&v instanceof v&&Ph.call(v)==B6}var Nw=rM?ii(rM):HV;function z7(c){return BA(c)&&c>=-z&&c<=z}var HA=nM?ii(nM):WV;function am(c){return typeof c=="string"||!dt(c)&&Tr(c)&&An(c)==J}function ai(c){return typeof c=="symbol"||Tr(c)&&An(c)==ye}var Eu=iM?ii(iM):zV;function V7(c){return c===r}function G7(c){return Tr(c)&&xn(c)==Te}function K7(c){return Tr(c)&&An(c)==Xe}var X7=Yh(dw),Y7=Yh(function(c,f){return c<=f});function WA(c){if(!c)return[];if(Un(c))return am(c)?Yi(c):Bn(c);if(gd&&c[gd])return P6(c[gd]());var f=xn(c),v=f==Ie?J1:f==st?Sh:Ru;return v(c)}function Qo(c){if(!c)return c===0?c:0;if(c=Ei(c),c===V||c===-V){var f=c<0?-1:1;return f*Q}return c===c?c:0}function ft(c){var f=Qo(c),v=f%1;return f===f?v?f-v:f:0}function zA(c){return c?Gs(ft(c),0,ae):0}function Ei(c){if(typeof c=="number")return c;if(ai(c))return oe;if(gr(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=gr(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=cM(c);var v=Kr.test(c);return v||Mt.test(c)?d6(c.slice(2),v?2:8):Ct.test(c)?oe:+c}function VA(c){return wo(c,qn(c))}function Z7(c){return c?Gs(ft(c),-z,z):c===0?c:0}function Bt(c){return c==null?"":oi(c)}var J7=Cu(function(c,f){if(Rd(f)||Un(f)){wo(f,tn(f),c);return}for(var v in f)qt.call(f,v)&&wd(c,v,f[v])}),GA=Cu(function(c,f){wo(f,qn(f),c)}),sm=Cu(function(c,f,v,R){wo(f,qn(f),c,R)}),Q7=Cu(function(c,f,v,R){wo(f,tn(f),c,R)}),eG=Yo(iw);function tG(c,f){var v=_u(c);return f==null?v:SM(v,f)}var rG=gt(function(c,f){c=Xt(c);var v=-1,R=f.length,I=R>2?f[2]:r;for(I&&In(f[0],f[1],I)&&(R=1);++v<R;)for(var k=f[v],H=qn(k),K=-1,Y=H.length;++K<Y;){var ne=H[K],ie=c[ne];(ie===r||Ji(ie,bu[ne])&&!qt.call(c,ne))&&(c[ne]=k[ne])}return c}),nG=gt(function(c){return c.push(r,cA),ni(KA,r,c)});function iG(c,f){return aM(c,Ze(f,3),xo)}function oG(c,f){return aM(c,Ze(f,3),aw)}function aG(c,f){return c==null?c:ow(c,Ze(f,3),qn)}function sG(c,f){return c==null?c:MM(c,Ze(f,3),qn)}function lG(c,f){return c&&xo(c,Ze(f,3))}function uG(c,f){return c&&aw(c,Ze(f,3))}function cG(c){return c==null?[]:qh(c,tn(c))}function dG(c){return c==null?[]:qh(c,qn(c))}function Fw(c,f,v){var R=c==null?r:Ks(c,f);return R===r?v:R}function fG(c,f){return c!=null&&pA(c,f,LV)}function jw(c,f){return c!=null&&pA(c,f,kV)}var pG=oA(function(c,f,v){f!=null&&typeof f.toString!="function"&&(f=Oh.call(f)),c[f]=v},Uw(Hn)),hG=oA(function(c,f,v){f!=null&&typeof f.toString!="function"&&(f=Oh.call(f)),qt.call(c,f)?c[f].push(v):c[f]=[v]},Ze),mG=gt(Cd);function tn(c){return Un(c)?CM(c):cw(c)}function qn(c){return Un(c)?CM(c,!0):VV(c)}function gG(c,f){var v={};return f=Ze(f,3),xo(c,function(R,I,k){Ko(v,f(R,I,k),R)}),v}function vG(c,f){var v={};return f=Ze(f,3),xo(c,function(R,I,k){Ko(v,I,f(R,I,k))}),v}var yG=Cu(function(c,f,v){Hh(c,f,v)}),KA=Cu(function(c,f,v,R){Hh(c,f,v,R)}),bG=Yo(function(c,f){var v={};if(c==null)return v;var R=!1;f=cr(f,function(k){return k=Va(k,c),R||(R=k.length>1),k}),wo(c,Tw(c),v),R&&(v=Ci(v,p|h|m,p8));for(var I=f.length;I--;)gw(v,f[I]);return v});function xG(c,f){return XA(c,im(Ze(f)))}var wG=Yo(function(c,f){return c==null?{}:KV(c,f)});function XA(c,f){if(c==null)return{};var v=cr(Tw(c),function(R){return[R]});return f=Ze(f),BM(c,v,function(R,I){return f(R,I[0])})}function _G(c,f,v){f=Va(f,c);var R=-1,I=f.length;for(I||(I=1,c=r);++R<I;){var k=c==null?r:c[_o(f[R])];k===r&&(R=I,k=v),c=Jo(k)?k.call(c):k}return c}function CG(c,f,v){return c==null?c:Sd(c,f,v)}function TG(c,f,v,R){return R=typeof R=="function"?R:r,c==null?c:Sd(c,f,v,R)}var YA=lA(tn),ZA=lA(qn);function SG(c,f,v){var R=dt(c),I=R||Ka(c)||Eu(c);if(f=Ze(f,4),v==null){var k=c&&c.constructor;I?v=R?new k:[]:gr(c)?v=Jo(k)?_u(Ih(c)):{}:v={}}return(I?xi:xo)(c,function(H,K,Y){return f(v,H,K,Y)}),v}function EG(c,f){return c==null?!0:gw(c,f)}function RG(c,f,v){return c==null?c:zM(c,f,bw(v))}function PG(c,f,v,R){return R=typeof R=="function"?R:r,c==null?c:zM(c,f,bw(v),R)}function Ru(c){return c==null?[]:Z1(c,tn(c))}function OG(c){return c==null?[]:Z1(c,qn(c))}function MG(c,f,v){return v===r&&(v=f,f=r),v!==r&&(v=Ei(v),v=v===v?v:0),f!==r&&(f=Ei(f),f=f===f?f:0),Gs(Ei(c),f,v)}function AG(c,f,v){return f=Qo(f),v===r?(v=f,f=0):v=Qo(v),c=Ei(c),NV(c,f,v)}function IG(c,f,v){if(v&&typeof v!="boolean"&&In(c,f,v)&&(f=v=r),v===r&&(typeof f=="boolean"?(v=f,f=r):typeof c=="boolean"&&(v=c,c=r)),c===r&&f===r?(c=0,f=1):(c=Qo(c),f===r?(f=c,c=0):f=Qo(f)),c>f){var R=c;c=f,f=R}if(v||c%1||f%1){var I=wM();return bn(c+I*(f-c+c6("1e-"+((I+"").length-1))),f)}return pw(c,f)}var $G=Tu(function(c,f,v){return f=f.toLowerCase(),c+(v?JA(f):f)});function JA(c){return Bw(Bt(c).toLowerCase())}function QA(c){return c=Bt(c),c&&c.replace(Fa,C6).replace(e6,"")}function DG(c,f,v){c=Bt(c),f=oi(f);var R=c.length;v=v===r?R:Gs(ft(v),0,R);var I=v;return v-=f.length,v>=0&&c.slice(v,I)==f}function LG(c){return c=Bt(c),c&&bh.test(c)?c.replace(fu,T6):c}function kG(c){return c=Bt(c),c&&Z.test(c)?c.replace(G,"\\$&"):c}var NG=Tu(function(c,f,v){return c+(v?"-":"")+f.toLowerCase()}),FG=Tu(function(c,f,v){return c+(v?" ":"")+f.toLowerCase()}),jG=rA("toLowerCase");function BG(c,f,v){c=Bt(c),f=ft(f);var R=f?vu(c):0;if(!f||R>=f)return c;var I=(f-R)/2;return Xh(kh(I),v)+c+Xh(Lh(I),v)}function UG(c,f,v){c=Bt(c),f=ft(f);var R=f?vu(c):0;return f&&R<f?c+Xh(f-R,v):c}function qG(c,f,v){c=Bt(c),f=ft(f);var R=f?vu(c):0;return f&&R<f?Xh(f-R,v)+c:c}function HG(c,f,v){return v||f==null?f=0:f&&(f=+f),Y6(Bt(c).replace(ee,""),f||0)}function WG(c,f,v){return(v?In(c,f,v):f===r)?f=1:f=ft(f),hw(Bt(c),f)}function zG(){var c=arguments,f=Bt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var VG=Tu(function(c,f,v){return c+(v?"_":"")+f.toLowerCase()});function GG(c,f,v){return v&&typeof v!="number"&&In(c,f,v)&&(f=v=r),v=v===r?ae:v>>>0,v?(c=Bt(c),c&&(typeof f=="string"||f!=null&&!Nw(f))&&(f=oi(f),!f&&gu(c))?Ga(Yi(c),0,v):c.split(f,v)):[]}var KG=Tu(function(c,f,v){return c+(v?" ":"")+Bw(f)});function XG(c,f,v){return c=Bt(c),v=v==null?0:Gs(ft(v),0,c.length),f=oi(f),c.slice(v,v+f.length)==f}function YG(c,f,v){var R=L.templateSettings;v&&In(c,f,v)&&(f=r),c=Bt(c),f=sm({},f,R,uA);var I=sm({},f.imports,R.imports,uA),k=tn(I),H=Z1(I,k),K,Y,ne=0,ie=f.interpolate||bo,se="__p += '",Re=Q1((f.escape||bo).source+"|"+ie.source+"|"+(ie===Fs?ze:bo).source+"|"+(f.evaluate||bo).source+"|$","g"),We="//# sourceURL="+(qt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++o6+"]")+`
359
+ `;c.replace(Re,function(et,xt,Et,si,$n,li){return Et||(Et=si),se+=c.slice(ne,li).replace(Xi,S6),xt&&(K=!0,se+=`' +
360
+ __e(`+xt+`) +
361
+ '`),$n&&(Y=!0,se+=`';
362
+ `+$n+`;
363
+ __p += '`),Et&&(se+=`' +
364
+ ((__t = (`+Et+`)) == null ? '' : __t) +
365
+ '`),ne=li+et.length,et}),se+=`';
366
+ `;var Qe=qt.call(f,"variable")&&f.variable;if(!Qe)se=`with (obj) {
367
+ `+se+`
368
+ }
369
+ `;else if(Be.test(Qe))throw new ut(s);se=(Y?se.replace(vh,""):se).replace(cu,"$1").replace(yh,"$1;"),se="function("+(Qe||"obj")+`) {
370
+ `+(Qe?"":`obj || (obj = {});
371
+ `)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(Y?`, __j = Array.prototype.join;
372
+ function print() { __p += __j.call(arguments, '') }
373
+ `:`;
374
+ `)+se+`return __p
375
+ }`;var pt=tI(function(){return Lt(k,We+"return "+se).apply(r,H)});if(pt.source=se,kw(pt))throw pt;return pt}function ZG(c){return Bt(c).toLowerCase()}function JG(c){return Bt(c).toUpperCase()}function QG(c,f,v){if(c=Bt(c),c&&(v||f===r))return cM(c);if(!c||!(f=oi(f)))return c;var R=Yi(c),I=Yi(f),k=dM(R,I),H=fM(R,I)+1;return Ga(R,k,H).join("")}function eK(c,f,v){if(c=Bt(c),c&&(v||f===r))return c.slice(0,hM(c)+1);if(!c||!(f=oi(f)))return c;var R=Yi(c),I=fM(R,Yi(f))+1;return Ga(R,0,I).join("")}function tK(c,f,v){if(c=Bt(c),c&&(v||f===r))return c.replace(ee,"");if(!c||!(f=oi(f)))return c;var R=Yi(c),I=dM(R,Yi(f));return Ga(R,I).join("")}function rK(c,f){var v=$,R=N;if(gr(f)){var I="separator"in f?f.separator:I;v="length"in f?ft(f.length):v,R="omission"in f?oi(f.omission):R}c=Bt(c);var k=c.length;if(gu(c)){var H=Yi(c);k=H.length}if(v>=k)return c;var K=v-vu(R);if(K<1)return R;var Y=H?Ga(H,0,K).join(""):c.slice(0,K);if(I===r)return Y+R;if(H&&(K+=Y.length-K),Nw(I)){if(c.slice(K).search(I)){var ne,ie=Y;for(I.global||(I=Q1(I.source,Bt(lt.exec(I))+"g")),I.lastIndex=0;ne=I.exec(ie);)var se=ne.index;Y=Y.slice(0,se===r?K:se)}}else if(c.indexOf(oi(I),K)!=K){var Re=Y.lastIndexOf(I);Re>-1&&(Y=Y.slice(0,Re))}return Y+R}function nK(c){return c=Bt(c),c&&$1.test(c)?c.replace(du,I6):c}var iK=Tu(function(c,f,v){return c+(v?" ":"")+f.toUpperCase()}),Bw=rA("toUpperCase");function eI(c,f,v){return c=Bt(c),f=v?r:f,f===r?R6(c)?L6(c):y6(c):c.match(f)||[]}var tI=gt(function(c,f){try{return ni(c,r,f)}catch(v){return kw(v)?v:new ut(v)}}),oK=Yo(function(c,f){return xi(f,function(v){v=_o(v),Ko(c,v,Dw(c[v],c))}),c});function aK(c){var f=c==null?0:c.length,v=Ze();return c=f?cr(c,function(R){if(typeof R[1]!="function")throw new wi(a);return[v(R[0]),R[1]]}):[],gt(function(R){for(var I=-1;++I<f;){var k=c[I];if(ni(k[0],this,R))return ni(k[1],this,R)}})}function sK(c){return IV(Ci(c,p))}function Uw(c){return function(){return c}}function lK(c,f){return c==null||c!==c?f:c}var uK=iA(),cK=iA(!0);function Hn(c){return c}function qw(c){return DM(typeof c=="function"?c:Ci(c,p))}function dK(c){return kM(Ci(c,p))}function fK(c,f){return NM(c,Ci(f,p))}var pK=gt(function(c,f){return function(v){return Cd(v,c,f)}}),hK=gt(function(c,f){return function(v){return Cd(c,v,f)}});function Hw(c,f,v){var R=tn(f),I=qh(f,R);v==null&&!(gr(f)&&(I.length||!R.length))&&(v=f,f=c,c=this,I=qh(f,tn(f)));var k=!(gr(v)&&"chain"in v)||!!v.chain,H=Jo(c);return xi(I,function(K){var Y=f[K];c[K]=Y,H&&(c.prototype[K]=function(){var ne=this.__chain__;if(k||ne){var ie=c(this.__wrapped__),se=ie.__actions__=Bn(this.__actions__);return se.push({func:Y,args:arguments,thisArg:c}),ie.__chain__=ne,ie}return Y.apply(c,Ua([this.value()],arguments))})}),c}function mK(){return pn._===this&&(pn._=U6),this}function Ww(){}function gK(c){return c=ft(c),gt(function(f){return FM(f,c)})}var vK=ww(cr),yK=ww(oM),bK=ww(V1);function rI(c){return Pw(c)?G1(_o(c)):XV(c)}function xK(c){return function(f){return c==null?r:Ks(c,f)}}var wK=aA(),_K=aA(!0);function zw(){return[]}function Vw(){return!1}function CK(){return{}}function TK(){return""}function SK(){return!0}function EK(c,f){if(c=ft(c),c<1||c>z)return[];var v=ae,R=bn(c,ae);f=Ze(f),c-=ae;for(var I=Y1(R,f);++v<c;)f(v);return I}function RK(c){return dt(c)?cr(c,_o):ai(c)?[c]:Bn(_A(Bt(c)))}function PK(c){var f=++j6;return Bt(c)+f}var OK=Kh(function(c,f){return c+f},0),MK=_w("ceil"),AK=Kh(function(c,f){return c/f},1),IK=_w("floor");function $K(c){return c&&c.length?Uh(c,Hn,sw):r}function DK(c,f){return c&&c.length?Uh(c,Ze(f,2),sw):r}function LK(c){return lM(c,Hn)}function kK(c,f){return lM(c,Ze(f,2))}function NK(c){return c&&c.length?Uh(c,Hn,dw):r}function FK(c,f){return c&&c.length?Uh(c,Ze(f,2),dw):r}var jK=Kh(function(c,f){return c*f},1),BK=_w("round"),UK=Kh(function(c,f){return c-f},0);function qK(c){return c&&c.length?X1(c,Hn):0}function HK(c,f){return c&&c.length?X1(c,Ze(f,2)):0}return L.after=d7,L.ary=$A,L.assign=J7,L.assignIn=GA,L.assignInWith=sm,L.assignWith=Q7,L.at=eG,L.before=DA,L.bind=Dw,L.bindAll=oK,L.bindKey=LA,L.castArray=C7,L.chain=MA,L.chunk=I8,L.compact=$8,L.concat=D8,L.cond=aK,L.conforms=sK,L.constant=Uw,L.countBy=q9,L.create=tG,L.curry=kA,L.curryRight=NA,L.debounce=FA,L.defaults=rG,L.defaultsDeep=nG,L.defer=f7,L.delay=p7,L.difference=L8,L.differenceBy=k8,L.differenceWith=N8,L.drop=F8,L.dropRight=j8,L.dropRightWhile=B8,L.dropWhile=U8,L.fill=q8,L.filter=W9,L.flatMap=G9,L.flatMapDeep=K9,L.flatMapDepth=X9,L.flatten=EA,L.flattenDeep=H8,L.flattenDepth=W8,L.flip=h7,L.flow=uK,L.flowRight=cK,L.fromPairs=z8,L.functions=cG,L.functionsIn=dG,L.groupBy=Y9,L.initial=G8,L.intersection=K8,L.intersectionBy=X8,L.intersectionWith=Y8,L.invert=pG,L.invertBy=hG,L.invokeMap=J9,L.iteratee=qw,L.keyBy=Q9,L.keys=tn,L.keysIn=qn,L.map=tm,L.mapKeys=gG,L.mapValues=vG,L.matches=dK,L.matchesProperty=fK,L.memoize=nm,L.merge=yG,L.mergeWith=KA,L.method=pK,L.methodOf=hK,L.mixin=Hw,L.negate=im,L.nthArg=gK,L.omit=bG,L.omitBy=xG,L.once=m7,L.orderBy=e7,L.over=vK,L.overArgs=g7,L.overEvery=yK,L.overSome=bK,L.partial=Lw,L.partialRight=jA,L.partition=t7,L.pick=wG,L.pickBy=XA,L.property=rI,L.propertyOf=xK,L.pull=e9,L.pullAll=PA,L.pullAllBy=t9,L.pullAllWith=r9,L.pullAt=n9,L.range=wK,L.rangeRight=_K,L.rearg=v7,L.reject=i7,L.remove=i9,L.rest=y7,L.reverse=Iw,L.sampleSize=a7,L.set=CG,L.setWith=TG,L.shuffle=s7,L.slice=o9,L.sortBy=c7,L.sortedUniq=f9,L.sortedUniqBy=p9,L.split=GG,L.spread=b7,L.tail=h9,L.take=m9,L.takeRight=g9,L.takeRightWhile=v9,L.takeWhile=y9,L.tap=$9,L.throttle=x7,L.thru=em,L.toArray=WA,L.toPairs=YA,L.toPairsIn=ZA,L.toPath=RK,L.toPlainObject=VA,L.transform=SG,L.unary=w7,L.union=b9,L.unionBy=x9,L.unionWith=w9,L.uniq=_9,L.uniqBy=C9,L.uniqWith=T9,L.unset=EG,L.unzip=$w,L.unzipWith=OA,L.update=RG,L.updateWith=PG,L.values=Ru,L.valuesIn=OG,L.without=S9,L.words=eI,L.wrap=_7,L.xor=E9,L.xorBy=R9,L.xorWith=P9,L.zip=O9,L.zipObject=M9,L.zipObjectDeep=A9,L.zipWith=I9,L.entries=YA,L.entriesIn=ZA,L.extend=GA,L.extendWith=sm,Hw(L,L),L.add=OK,L.attempt=tI,L.camelCase=$G,L.capitalize=JA,L.ceil=MK,L.clamp=MG,L.clone=T7,L.cloneDeep=E7,L.cloneDeepWith=R7,L.cloneWith=S7,L.conformsTo=P7,L.deburr=QA,L.defaultTo=lK,L.divide=AK,L.endsWith=DG,L.eq=Ji,L.escape=LG,L.escapeRegExp=kG,L.every=H9,L.find=z9,L.findIndex=TA,L.findKey=iG,L.findLast=V9,L.findLastIndex=SA,L.findLastKey=oG,L.floor=IK,L.forEach=AA,L.forEachRight=IA,L.forIn=aG,L.forInRight=sG,L.forOwn=lG,L.forOwnRight=uG,L.get=Fw,L.gt=O7,L.gte=M7,L.has=fG,L.hasIn=jw,L.head=RA,L.identity=Hn,L.includes=Z9,L.indexOf=V8,L.inRange=AG,L.invoke=mG,L.isArguments=Zs,L.isArray=dt,L.isArrayBuffer=A7,L.isArrayLike=Un,L.isArrayLikeObject=Ir,L.isBoolean=I7,L.isBuffer=Ka,L.isDate=$7,L.isElement=D7,L.isEmpty=L7,L.isEqual=k7,L.isEqualWith=N7,L.isError=kw,L.isFinite=F7,L.isFunction=Jo,L.isInteger=BA,L.isLength=om,L.isMap=UA,L.isMatch=j7,L.isMatchWith=B7,L.isNaN=U7,L.isNative=q7,L.isNil=W7,L.isNull=H7,L.isNumber=qA,L.isObject=gr,L.isObjectLike=Tr,L.isPlainObject=Od,L.isRegExp=Nw,L.isSafeInteger=z7,L.isSet=HA,L.isString=am,L.isSymbol=ai,L.isTypedArray=Eu,L.isUndefined=V7,L.isWeakMap=G7,L.isWeakSet=K7,L.join=Z8,L.kebabCase=NG,L.last=Si,L.lastIndexOf=J8,L.lowerCase=FG,L.lowerFirst=jG,L.lt=X7,L.lte=Y7,L.max=$K,L.maxBy=DK,L.mean=LK,L.meanBy=kK,L.min=NK,L.minBy=FK,L.stubArray=zw,L.stubFalse=Vw,L.stubObject=CK,L.stubString=TK,L.stubTrue=SK,L.multiply=jK,L.nth=Q8,L.noConflict=mK,L.noop=Ww,L.now=rm,L.pad=BG,L.padEnd=UG,L.padStart=qG,L.parseInt=HG,L.random=IG,L.reduce=r7,L.reduceRight=n7,L.repeat=WG,L.replace=zG,L.result=_G,L.round=BK,L.runInContext=X,L.sample=o7,L.size=l7,L.snakeCase=VG,L.some=u7,L.sortedIndex=a9,L.sortedIndexBy=s9,L.sortedIndexOf=l9,L.sortedLastIndex=u9,L.sortedLastIndexBy=c9,L.sortedLastIndexOf=d9,L.startCase=KG,L.startsWith=XG,L.subtract=UK,L.sum=qK,L.sumBy=HK,L.template=YG,L.times=EK,L.toFinite=Qo,L.toInteger=ft,L.toLength=zA,L.toLower=ZG,L.toNumber=Ei,L.toSafeInteger=Z7,L.toString=Bt,L.toUpper=JG,L.trim=QG,L.trimEnd=eK,L.trimStart=tK,L.truncate=rK,L.unescape=nK,L.uniqueId=PK,L.upperCase=iK,L.upperFirst=Bw,L.each=AA,L.eachRight=IA,L.first=RA,Hw(L,function(){var c={};return xo(L,function(f,v){qt.call(L.prototype,v)||(c[v]=f)}),c}(),{chain:!1}),L.VERSION=n,xi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){L[c].placeholder=L}),xi(["drop","take"],function(c,f){Tt.prototype[c]=function(v){v=v===r?1:Yr(ft(v),0);var R=this.__filtered__&&!f?new Tt(this):this.clone();return R.__filtered__?R.__takeCount__=bn(v,R.__takeCount__):R.__views__.push({size:bn(v,ae),type:c+(R.__dir__<0?"Right":"")}),R},Tt.prototype[c+"Right"]=function(v){return this.reverse()[c](v).reverse()}}),xi(["filter","map","takeWhile"],function(c,f){var v=f+1,R=v==U||v==j;Tt.prototype[c]=function(I){var k=this.clone();return k.__iteratees__.push({iteratee:Ze(I,3),type:v}),k.__filtered__=k.__filtered__||R,k}}),xi(["head","last"],function(c,f){var v="take"+(f?"Right":"");Tt.prototype[c]=function(){return this[v](1).value()[0]}}),xi(["initial","tail"],function(c,f){var v="drop"+(f?"":"Right");Tt.prototype[c]=function(){return this.__filtered__?new Tt(this):this[v](1)}}),Tt.prototype.compact=function(){return this.filter(Hn)},Tt.prototype.find=function(c){return this.filter(c).head()},Tt.prototype.findLast=function(c){return this.reverse().find(c)},Tt.prototype.invokeMap=gt(function(c,f){return typeof c=="function"?new Tt(this):this.map(function(v){return Cd(v,c,f)})}),Tt.prototype.reject=function(c){return this.filter(im(Ze(c)))},Tt.prototype.slice=function(c,f){c=ft(c);var v=this;return v.__filtered__&&(c>0||f<0)?new Tt(v):(c<0?v=v.takeRight(-c):c&&(v=v.drop(c)),f!==r&&(f=ft(f),v=f<0?v.dropRight(-f):v.take(f-c)),v)},Tt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Tt.prototype.toArray=function(){return this.take(ae)},xo(Tt.prototype,function(c,f){var v=/^(?:filter|find|map|reject)|While$/.test(f),R=/^(?:head|last)$/.test(f),I=L[R?"take"+(f=="last"?"Right":""):f],k=R||/^find/.test(f);I&&(L.prototype[f]=function(){var H=this.__wrapped__,K=R?[1]:arguments,Y=H instanceof Tt,ne=K[0],ie=Y||dt(H),se=function(xt){var Et=I.apply(L,Ua([xt],K));return R&&Re?Et[0]:Et};ie&&v&&typeof ne=="function"&&ne.length!=1&&(Y=ie=!1);var Re=this.__chain__,We=!!this.__actions__.length,Qe=k&&!Re,pt=Y&&!We;if(!k&&ie){H=pt?H:new Tt(this);var et=c.apply(H,K);return et.__actions__.push({func:em,args:[se],thisArg:r}),new _i(et,Re)}return Qe&&pt?c.apply(this,K):(et=this.thru(se),Qe?R?et.value()[0]:et.value():et)})}),xi(["pop","push","shift","sort","splice","unshift"],function(c){var f=Eh[c],v=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",R=/^(?:pop|shift)$/.test(c);L.prototype[c]=function(){var I=arguments;if(R&&!this.__chain__){var k=this.value();return f.apply(dt(k)?k:[],I)}return this[v](function(H){return f.apply(dt(H)?H:[],I)})}}),xo(Tt.prototype,function(c,f){var v=L[f];if(v){var R=v.name+"";qt.call(wu,R)||(wu[R]=[]),wu[R].push({name:f,func:v})}}),wu[Gh(r,b).name]=[{name:"wrapper",func:r}],Tt.prototype.clone=nV,Tt.prototype.reverse=iV,Tt.prototype.value=oV,L.prototype.at=D9,L.prototype.chain=L9,L.prototype.commit=k9,L.prototype.next=N9,L.prototype.plant=j9,L.prototype.reverse=B9,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=U9,L.prototype.first=L.prototype.head,gd&&(L.prototype[gd]=F9),L},yu=k6();Hs?((Hs.exports=yu)._=yu,q1._=yu):pn._=yu}).call(ao)})(rv,rv.exports);var Vr=rv.exports;const zce=()=>{const[e,t]=qr([]);return{closeDialog:()=>{t(i=>(i.pop(),[...i]))},createDialog:(i,o)=>{const a={...i,open:!0,key:Vr.uniqueId("dialog_")};t(o?()=>[a]:s=>[...s,a])},dialogs:e}},mU=gp([]);function HJe({children:e}){const{closeDialog:t,createDialog:r,dialogs:n}=zce(),i=Dr([r,t]);return E.jsxs(mU.Provider,{value:i.current,children:[e,n.map(o=>E.jsx(KK,{children:o},o.key))]})}function gU(){const e=Ra(mU);if(!e)throw new Error("Dialog context is only available inside its provider");return e}const eb=gp(document.body),WJe=eb.Provider,it=e=>typeof e=="string",qd=()=>{let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r},vD=e=>e==null?"":""+e,Vce=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Gce=/###/g,yD=e=>e&&e.indexOf("###")>-1?e.replace(Gce,"."):e,bD=e=>!e||it(e),Sf=(e,t,r)=>{const n=it(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(bD(e))return{};const o=yD(n[i]);!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return bD(e)?{}:{obj:e,k:yD(n[i])}},xD=(e,t,r)=>{const{obj:n,k:i}=Sf(e,t,Object);if(n!==void 0||t.length===1){n[i]=r;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=Sf(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Sf(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=r},Kce=(e,t,r,n)=>{const{obj:i,k:o}=Sf(e,t,Object);i[o]=i[o]||[],i[o].push(r)},nv=(e,t)=>{const{obj:r,k:n}=Sf(e,t);if(r)return r[n]},Xce=(e,t,r)=>{const n=nv(e,r);return n!==void 0?n:nv(t,r)},vU=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?it(e[n])||e[n]instanceof String||it(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):vU(e[n],t[n],r):e[n]=t[n]);return e},Lu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Yce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Zce=e=>it(e)?e.replace(/[&<>"'\/]/g,t=>Yce[t]):e;class Jce{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Qce=[" ",",","?","!",";"],ede=new Jce(20),tde=(e,t,r)=>{t=t||"",r=r||"";const n=Qce.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;const i=ede.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},cT=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let i=e;for(let o=0;o<n.length;){if(!i||typeof i!="object")return;let a,s="";for(let l=o;l<n.length;++l)if(l!==o&&(s+=r),s+=n[l],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;o+=l-o+1;break}i=a}return i},iv=e=>e&&e.replace("_","-"),rde={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ov{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||rde,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(it(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new ov(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ov(this.logger,t)}}var Lo=new ov;class tb{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let u=0;u<l;u++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let u=0;u<l;u++)s.apply(s,[t,...n])})}}class wD extends tb{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):it(n)&&o?s.push(...n.split(o)):s.push(n)));const l=nv(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||!it(n)?l:cT(this.data&&this.data[t]&&this.data[t][r],n,o)}addResource(t,r,n,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(s=t.split("."),i=r,r=s[1]),this.addNamespaces(r),xD(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in n)(it(n[o])||Array.isArray(n[o]))&&this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=r,r=s[1]),this.addNamespaces(r);let l=nv(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?vU(l,n,o):l={...l,...n},xD(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var yU={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,r,n,i))}),t}};const _D={};class av extends tb{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Vce(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Lo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!tde(t,n,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:it(o)?[o]:o};const u=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return{key:t,namespaces:it(o)?[o]:o}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],r),l=s[s.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const _=r.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${_}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${_}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a}const p=this.resolve(t,r);let h=p&&p.res;const m=p&&p.usedKey||a,g=p&&p.exactUsedKey||a,y=Object.prototype.toString.apply(h),x=["[object Number]","[object Function]","[object RegExp]"],b=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,w=!it(h)&&typeof h!="boolean"&&typeof h!="number";if(S&&h&&w&&x.indexOf(y)<0&&!(it(b)&&Array.isArray(h))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(p.res=_,p.usedParams=this.getUsedParamsDetails(r),p):_}if(o){const _=Array.isArray(h),O=_?[]:{},C=_?g:m;for(const T in h)if(Object.prototype.hasOwnProperty.call(h,T)){const M=`${C}${o}${T}`;O[T]=this.translate(M,{...r,joinArrays:!1,ns:s}),O[T]===M&&(O[T]=h[T])}h=O}}else if(S&&it(b)&&Array.isArray(h))h=h.join(b),h&&(h=this.extendTranslation(h,t,r,n));else{let _=!1,O=!1;const C=r.count!==void 0&&!it(r.count),T=av.hasDefaultValue(r),M=C?this.pluralResolver.getSuffix(u,r.count,r):"",D=r.ordinal&&C?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",$=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),N=$&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${M}`]||r[`defaultValue${D}`]||r.defaultValue;!this.isValidLookup(h)&&T&&(_=!0,h=N),this.isValidLookup(h)||(O=!0,h=a);const q=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:h,U=T&&N!==h&&this.options.updateMissing;if(O||_||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,a,U?N:h),o){const z=this.resolve(a,{...r,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(let z=0;z<j.length;z++)F.push(j[z]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(r.lng||this.language):F.push(r.lng||this.language);const V=(z,Q,oe)=>{const ae=T&&oe!==h?oe:q;this.options.missingKeyHandler?this.options.missingKeyHandler(z,l,Q,ae,U,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,l,Q,ae,U,r),this.emit("missingKey",z,l,Q,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?F.forEach(z=>{const Q=this.pluralResolver.getSuffixes(z,r);$&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(oe=>{V([z],a+oe,r[`defaultValue${oe}`]||N)})}):V(F,a,N))}h=this.extendTranslation(h,t,r,p,n),O&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${a}`),(O||_)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,_?h:void 0):h=this.options.parseMissingKeyHandler(h))}return i?(p.res=h,p.usedParams=this.getUsedParamsDetails(r),p):h}extendTranslation(t,r,n,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=it(t)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let p=n.replace&&!it(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,n.lng||this.language||i.usedLng,n),u){const h=t.match(this.interpolator.nestingRegexp),m=h&&h.length;d<m&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return o&&o[0]===m[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${r[0]}`),null):a.translate(...m,r)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,l=it(s)?[s]:s;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=yU.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,o,a,s;return it(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),d=u.key;i=d;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const h=r.count!==void 0&&!it(r.count),m=h&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),g=r.context!==void 0&&(it(r.context)||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);p.forEach(x=>{this.isValidLookup(n)||(s=x,!_D[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(_D[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(b=>{if(this.isValidLookup(n))return;a=b;const S=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,b,x,r);else{let _;h&&(_=this.pluralResolver.getSuffix(b,r.count,r));const O=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(S.push(d+_),r.ordinal&&_.indexOf(C)===0&&S.push(d+_.replace(C,this.options.pluralSeparator)),m&&S.push(d+O)),g){const T=`${d}${this.options.contextSeparator}${r.context}`;S.push(T),h&&(S.push(T+_),r.ordinal&&_.indexOf(C)===0&&S.push(T+_.replace(C,this.options.pluralSeparator)),m&&S.push(T+O))}}let w;for(;w=S.pop();)this.isValidLookup(n)||(o=w,n=this.getResource(b,x,w,r))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!it(t.replace);let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const o of r)delete i[o]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const d_=e=>e.charAt(0).toUpperCase()+e.slice(1);class CD{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Lo.create("languageUtils")}getScriptPartFromCode(t){if(t=iv(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=iv(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(it(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=d_(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=d_(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=d_(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),it(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return it(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):it(t)&&o(this.formatLanguageCode(t)),n.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let nde=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ide={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const ode=["v1","v2","v3"],ade=["v4"],TD={zero:0,one:1,two:2,few:3,many:4,other:5},sde=()=>{const e={};return nde.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:ide[t.fc]}})}),e};class lde{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Lo.create("pluralResolver"),(!this.options.compatibilityJSON||ade.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=sde(),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const n=iv(t==="dev"?"en":t),i=r.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(n,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[o]=a,a}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,o)=>TD[i]-TD[o]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(t,i,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:this.getSuffixRetroCompatible(i,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let i=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ode.includes(this.options.compatibilityJSON)}}const SD=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Xce(e,t,r);return!o&&i&&it(r)&&(o=cT(e,r,n),o===void 0&&(o=cT(t,r,n))),o},f_=e=>e.replace(/\$/g,"$$$$");class ude{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:p,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:x,maxReplaces:b,alwaysFormat:S}=t.interpolation;this.escape=r!==void 0?r:Zce,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Lu(o):a||"{{",this.suffix=s?Lu(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?Lu(h):m||Lu("$t("),this.nestingSuffix=g?Lu(g):y||Lu(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=b||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const b=SD(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,n,{...i,...r,interpolationkey:m}):b}const g=m.split(this.formatSeparator),y=g.shift().trim(),x=g.join(this.formatSeparator).trim();return this.format(SD(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),x,n,{...i,...r,interpolationkey:y})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>f_(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?f_(this.escape(m)):f_(m)}].forEach(m=>{for(s=0;o=m.regex.exec(t);){const g=o[1].trim();if(a=u(g),a===void 0)if(typeof d=="function"){const x=d(t,o,i);a=it(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),a="";else!it(a)&&!this.useRawValueToEscape&&(a=vD(a));const y=m.safeValue(a);if(t=t.replace(o[0],y),p?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const p=l.split(new RegExp(`${d}[ ]*{`));let h=`{${p[1]}`;l=p[0],h=this.interpolate(h,a);const m=h.match(/'/g),g=h.match(/"/g);(m&&m.length%2===0&&!g||g.length%2!==0)&&(h=h.replace(/'/g,'"'));try{a=JSON.parse(h),u&&(a={...u,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${h}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!it(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(p=>p.trim());i[1]=d.shift(),l=d,u=!0}if(o=r(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&!it(o))return o;it(o)||(o=vD(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=l.reduce((d,p)=>this.format(d,p,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const cde=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},ku=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=n+JSON.stringify(o);let s=t[a];return s||(s=e(iv(n),i),t[a]=s),s(r)}};class dde{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lo.create("formatter"),this.options=t,this.formats={number:ku((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return o=>i.format(o)}),currency:ku((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return o=>i.format(o)}),datetime:ku((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return o=>i.format(o)}),relativetime:ku((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return o=>i.format(o,n.range||"day")}),list:ku((r,n)=>{const i=new Intl.ListFormat(r,{...n});return o=>i.format(o)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=ku(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:u,formatOptions:d}=cde(l);if(this.formats[u]){let p=s;try{const h=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},m=h.locale||h.lng||i.locale||i.lng||n;p=this.formats[u](s,m,{...d,...i,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const fde=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class pde extends tb{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Lo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,r,n,i){const o={},a={},s={},l={};return t.forEach(u=>{let d=!0;r.forEach(p=>{const h=`${u}|${p}`;!n.reload&&this.store.hasResourceBundle(u,p)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?a[h]===void 0&&(a[h]=!0):(this.state[h]=1,d=!1,a[h]===void 0&&(a[h]=!0),o[h]===void 0&&(o[h]=!0),l[p]===void 0&&(l[p]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),!r&&n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Kce(l.loaded,[o],a),fde(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const d=l.loaded[u];d.length&&d.forEach(p=>{s[u][p]===void 0&&(s[u][p]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,o*2,a)},o);return}a(u,d)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(t,r);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,r,s)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();it(t)&&(t=this.languageUtils.toResolveHierarchy(t)),it(r)&&(r=[r]);const o=this.queueLoad(t,r,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,i,l):d=u(t,r,n,i),d&&typeof d.then=="function"?d.then(p=>s(null,p)).catch(s):s(null,d)}catch(d){s(d)}else u(t,r,n,i,s,l)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}const ED=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),it(e[1])&&(t.defaultValue=e[1]),it(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),RD=e=>(it(e.ns)&&(e.ns=[e.ns]),it(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),it(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ym=()=>{},hde=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Jf extends tb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=RD(t),this.services={},this.logger=Lo,this.modules={external:[]},hde(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(it(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=ED();this.options={...i,...this.options,...RD(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Lo.init(o(this.modules.logger),this.options):Lo.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=dde);const p=new CD(this.options);this.store=new wD(this.options.resources,this.options);const h=this.services;h.logger=Lo,h.resourceStore=this.store,h.languageUtils=p,h.pluralResolver=new lde(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(h.formatter=o(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new ude(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new pde(o(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var g=arguments.length,y=new Array(g>1?g-1:0),x=1;x<g;x++)y[x-1]=arguments[x];t.emit(m,...y)}),this.modules.languageDetector&&(h.languageDetector=o(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=o(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new av(this.services,this.options),this.translator.on("*",function(m){for(var g=arguments.length,y=new Array(g>1?g-1:0),x=1;x<g;x++)y[x-1]=arguments[x];t.emit(m,...y)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ym),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=qd(),u=()=>{const d=(p,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),n(p,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ym;const i=it(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(t,r,n){const i=qd();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=ym),this.services.backendConnector.reload(t,r,o=>{i.resolve(),n(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&yU.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const i=qd();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=it(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,r,n){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];l=i.options.overloadTranslationOptionHandler([a,s].concat(d))}else l={...s};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||o.keyPrefix);const h=i.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(a)?m=a.map(g=>`${l.keyPrefix}${h}${g}`):m=l.keyPrefix?`${l.keyPrefix}${h}${a}`:a,i.t(m,l)};return it(t)?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(r.precheck){const s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!i||a(o,t)))}loadNamespaces(t,r){const n=qd();return this.options.ns?(it(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=qd();it(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new CD(ED());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Jf(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ym;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Jf(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new wD(this.store.data,i),o.services.resourceStore=o.store),o.translator=new av(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];o.emit(s,...u)}),o.init(i,r),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pn=Jf.createInstance();Pn.createInstance=Jf.createInstance;Pn.createInstance;Pn.dir;Pn.init;Pn.loadResources;Pn.reloadResources;Pn.use;Pn.changeLanguage;Pn.getFixedT;Pn.t;Pn.exists;Pn.setDefaultNamespace;Pn.hasLoadedNamespace;Pn.loadNamespaces;Pn.loadLanguages;const mde="Approve",gde="Approved",vde="Copy",yde="Deny",bde="Denied",xde="Expand",wde="Retry",_de="Start",Cde="Yes",Tde="No",Sde="and",Ede="Hide",Rde="Back",Pde="Forward",Ode="Close",Mde="Next",Ade="Cancel",Ide="Yes, Submit",$de="Dismiss",Dde="Save",Lde="Search",kde="Loading",Nde={completed:"Authentication completed","signing-in":"Signing in...","signing-out":"Signing out...",unauthorized:"You're not authorized to access this page."},Fde={attachments:"Attachments",label:"Click here to browse your PC or drop files to upload","created-by-on-time":"by {{createdBy}} on {{date}}","files-too-large":"The following files exceed the maximum size of {{maxSize}}: {{files}}","max-size-label":"Max file size is 10MB with accepted file formats of: JPG (JPEG), PNG, PDF, GIF, DOC/X, XLS/X, CSV"},jde={disclaimer:"Draft","create-user-title":"Add New User","create-ticket-title":"Support Ticket"},Bde={"assets-counter":"{{assets}} locations","select-assets":"Select Locations","select-all":"Select All","assets-search-placeholder":"Search by Site or Asset Name...","no-assets-description":"This site contains no assets, click NEXT to continue.","asset-item":"Asset item","view-ticket":"View Ticket"},Ude="Active",qde="Phone",Hde="Email",Wde="Account",zde="Accounts",Vde="Role",Gde="Roles",Kde="Option",Xde="Options",Yde="From",Zde="To",Jde="More",Qde="Logout",efe="Refresh",tfe={404:{title:"This Page could not be found.",detail:"The page you are after doesn't exist, or no longer exists. Check out the homepage instead.",button:"go to homepage"},approve:mde,approved:gde,copy:vde,deny:yde,denied:bde,expand:xde,"approve-all":"Approve All","deny-all":"Deny All",retry:wde,start:_de,yes:Cde,no:Tde,and:Sde,"error-title":"Error:","error-message":"An error occurred, please try again.","enhanced-error-message":"We are unable to display the relevant ticket information. For further assistance, please share the below details with us via <1>GlobalPortal@digitalrealty.com</1>","error-api":"API is not responding",hide:Ede,"edit-details":"Edit Details",back:Rde,"go-back":"Go Back",forward:Pde,close:Ode,next:Mde,cancel:Ade,submit:Ide,dismiss:$de,"sort-by":"Sort by",save:Dde,"save-changes":"Save Changes","changes-saved":"Changes Saved","changes-not-saved":"Changes Can not Be Saved","try-again":"Try again","request-error-message":"We are unable to process your request. Please, try again or reach out to us for further assistance. We apologize for the inconvenience. Your Digital Realty Team",search:Lde,"close-button":"Close Button","open-button":"Open Button",loading:kde,"app-loading":"Loading...","redirect-soon":"You will be redirected soon.",auth:Nde,dropzone:Fde,draft:jde,"cancel-dialog":{title:"Are you sure do you want to cancel?",text:"All the details provided will be lost.",dismiss:"Dismiss",cancel:{"add-user":"Cancel Adding User","create-ticket":"Request Cancellation"},"cancel-ticket-creation":{title:"Are you sure you want to proceed? All details provided will be lost.",yes:"Yes",no:"No"}},tickets:Bde,"view-all":"View all","view-attachment-button":"view attachment button","download-attachment-button":"download attachment button","hide-button":"hide button","close-buton":"close buton","previous-button":"previous button","next-button":"next button",active:Ude,"notifications-button":"Notifications Button","expand-navbar-button":"Expand Navbar Button","search-field":"Search Field","search-icon":"Search Icon","search-button":"Search Button",phone:qde,email:Hde,"datagrid-no-rows":"No data to display","no-attachments":"No attachments",account_one:Wde,account_other:zde,role_one:Vde,role_other:Gde,"last-update":"Last Update","no-comments":"No Comments",option_one:Kde,option_other:Xde,from:Yde,to:Zde,"email-helper-text":"Enter email addresses separated by a comma, semicolon or the Enter key.","master-account":"Master Account","master-account-label":"Open the Account Selector","unsaved-changes-title":"Attention","unsaved-changes-message":"There are unsaved changes on this page, save or discard them before leaving.",more:Jde,"not-implemented":"Not Implemented",logout:Qde,refresh:efe,"record-version":{"record-has-been-updated":"Record has been updated","refresh-page":"Refresh the page to see the latest record."},"view-list":"View List"},rfe="Chart Overview",nfe="DCIM data for the past 7 days shown below. Click a chart to view details and change the range.",ife={title:"Alerts","configure-alerts-button":"Configure Alerts",types:{title:"Alert Types",all:"All",critical:"Critical",custom:"Custom",history:"History"},categories:{title:"Alert Categories",all:"All",power:"Power",environmental:"Environmental",auxiliary:"Auxiliary"},details:{title:"Alert Instances","alert-number":"Alert Number",site:"Site",location:"Location","total-load":"Total Load","threshold-value":"Threshold Value","affected-ci":"Affected CI",description:"Description","alert-timeline-summary":"Alert Timeline Summary","alert-generated-on":"Alert Generated On",duration:"Duration",error:"Server error fetching alert data"},definitions:{title:"Alert Definitions","warning-message":"Ensure your mobile service provider does not block automated text messaging if you subscribe to that notification method."}},ofe="Cancel",afe={"no-dcim-data-available":"No DCIM data available for this location","no-dcim-data-available-chart":"No DCIM data available for this chart",title:rfe,subtitle:nfe,"dcim-chart":{"load-fail":{title:"Charts could not be loaded.",message:"The charts for this location are currently not available. Check back later, or contact support."},"toggle-device":"Toggle {{id}}","y-axis-metric":"Y-Axis Metric",timezone:{utc:"Time shown in Coordinated Universal Time (UTC)"},"show-alert-data":"Show Alert Data","date-range":{from:"From",to:"to"},utc:"UTC",increments:{label:"Increments",day:"1 Day",hour:"60 Minutes","15-minute":"15 Minutes","5-minute":"5 Minutes",minute:"1 Minute"},view:{trend:"Trend",daily:"Daily"},"point-value":{current:"Value","daily-avg":"Daily Avg","daily-min":"Daily Min","daily-max":"Daily Max",alert:"[{{type}}] {{category}} alert"},"device-selector":{label:"Devices on Chart","deselect-all":"Deselect all","select-all":"Select all"},export:{"file-name":"{{view}} Data for {{location}} - {{site}}",header:{deviceDataId:"Device ID",deviceName:"Device Name",date:"Date",minValue:"Min",maxValue:"Max",pointValue:"Average"}}},alerts:ife,"customize-alert-dialog":{title:"Customize Alert",message:"You can choose to customize this alert. Digital Realty will not take actions on custom alerts.","it-load-level":"IT Load Level",threshold:"Threshold","total-ITkW":"TotalITkW >","email-alerts":"Email Alerts","sms-alerts":"SMS Alerts","bottom-message":"Ensure your mobile service provider does not block automated text messaging if you subscribe to that notification method.","cancel-button":"Cancel","save-button":"Save","success-updated":"Alert updated","success-custom-created":"Custom alert created","success-custom-updated":"Custom alert updated","success-critical-updated":"Critical alert updated","server-error":"Server Error","threshold-validation-error":"Threshold is outside the allowed range","critical-enrollment-operator-and-threshold-empty":"Cannot update Custom Alert threshold because Parent has empty comparison operator and threshold"},"alert-instance":{alertId:"Alert Id",site:"Site",location:"Location",alertName:"Alert Name",deviceName:"Device Name",functionValue:"{{device}} Current Value",alertTimeStamp:"Opened",alertType:"Alert Type",configurationItem:"Configuration Item"},"alert-definition":{deviceName:"Device Name",threshold:"Threshold",liveValue:"Live Value",timeStamp:"Time Stamp"},"alert-list":{"sort-by":"Sort By","pagination-label":"Instances per page",deviceName:"Device Name",functionValue:"Device Function",threshold:"Threshold"},cancel:ofe},sfe="Notifications",lfe={planned_site_maintenance:"Planned Site Maintenance",emergency_repair:"Emergency Repair",dcim_alert:"DCIM Alert",service_ticket_update:"Service Ticket Update"},ufe="Today",cfe="Earlier",dfe={notifications:sfe,type:lfe,"type-group":{planned_site_maintenance:"$t(type.planned_site_maintenance)",emergency_repair:"$t(type.emergency_repair)s",dcim_alert:"$t(type.dcim_alert)s",service_ticket_update:"$t(type.service_ticket_update)s"},"none-yet":"No notifications yet.","group-by":{type:"Sort by type",date:"Sort by type"},today:ufe,earlier:cfe,"mark-all-read":"Mark All Read","mark-all-read-confirmation-message":"Are you sure you want to mark all notifications as read?","filter-by-type":"Filter by type","filter-by-date":"Filter by date","filter-list":"Filter List","clear-all":"Clear All",delete:"Are you sure you want to delete this notification?"};Pn.use(Ece).init({resources:{en:{common:tfe,location:afe,notifications:dfe}},interpolation:{escapeValue:!1},lng:"en"});const gn={black:"rgba(0, 0, 0, 1)",gray:"#6d758c",primaryHover:"rgba(20, 86, 224, 0.1)",secondaryHover:"#378ACA1a",textDark:"rgba(9, 34, 65, 1)",textDark2:"rgba(9, 34, 65, 0.7)",textDarkDisabled:"rgba(9, 34, 65, 0.3)",textLight:"rgba(255, 255, 255, 1)",textLight2:"rgba(255, 255, 255, 0.6)",textLightDisabled:"rgba(255, 255, 255, 0.38)",divider:"rgba(9, 34, 65, 0.12)",divider2:"rgba(9, 34, 65, 0.08)",background:"rgba(245, 247, 255, 1)",backgroundAlternative:"#FFFFFF",surface:"rgba(255, 255, 255)",modalOverlay:"rgba(9, 34, 65, 0.9)",overlayOnPrimary:"rgba(255, 255, 255, 0.24)",pageHeader:{background:"rgba(245, 247, 255, 0.85)"},navbar:{background:"linear-gradient(180deg, #1456E0 20.5%, #0D2497 113.5%)",selected:"rgba(255, 255, 255, 0.16)"},topbar:{background:"linear-gradient(90.27deg, #1456E0 0%, #0D2497 99.23%)"}},ffe={primary:{light:"#5585ff",main:"#1456E0",dark:"#071454"},secondary:{light:"#72bafd",main:"#378aca",dark:"#005d99"},error:{light:"#f83b3a",main:"#db0028",dark:"#a80505",contrastText:"#ffffff"},warning:{light:"#ffb74d",main:"rgba(255, 152, 0, 1)",dark:"#f57c00"},info:{light:"#64b5f6",main:"#2196f3",dark:"#1976d2"},success:{light:"#81c784",main:"#4caf50",dark:"#388e3c",contrastText:"#ffffff"},text:{primary:gn.textDark,secondary:gn.textDark2,disabled:gn.textDarkDisabled}},bm={h1:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"96px",lineHeight:"127px",letterSpacing:"-1.5px"},h2:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"60px",lineHeight:"71px",letterSpacing:"-0.5px"},h3:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"48px",lineHeight:"57px"},h4:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"34px",lineHeight:"40px",letterSpacing:"0.35px"},h5:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"normal",fontSize:"24px",lineHeight:"32px"},h6:{fontFamily:"'Red Hat Display', sans-serif",fontStyle:"normal",fontWeight:"bold",fontSize:"20px",lineHeight:"24px",letterSpacing:"0.15px"},subtitle1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"20px",letterSpacing:"0.15px"},subtitle2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.1px"},body1:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"28px",letterSpacing:"0.44px"},body2:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"24px",letterSpacing:"0.25px"},button:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"14px",lineHeight:"18.52px",letterSpacing:"1.25px",textTransform:"uppercase"},caption:{fontFamily:"'Open Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px"},overline:{fontFamily:"'Red Hat Display', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:"10px",lineHeight:"16px",letterSpacing:"1.25px",textTransform:"uppercase"},allVariants:{color:gn.textDark}},pfe={badge:{fontFamily:"'Open Sans', sans-serif",fontStyle:"normal",fontWeight:700,fontSize:"8px",lineHeight:"11px",letterSpacing:"0.42px"}},hfe=e=>{const t={palette:ffe,components:{MuiCssBaseline:{styleOverrides:{body:{backgroundColor:gn.background},".customScrollbar *::-webkit-scrollbar":{maxWidth:8,backgroundColor:"#002274"},".customScrollbar *::-webkit-scrollbar-thumb":{backgroundColor:"#5B73D6",borderRadius:100,maxHeight:183,maxWidth:6,border:"1px solid #002274"}}},MuiAlert:{defaultProps:{variant:"outlined"},styleOverrides:{root:{alignItems:"center",padding:"7px 14px"},icon:{padding:0,marginRight:8},message:{...bm.caption,fontWeight:700,padding:0}}},MuiAutocomplete:{styleOverrides:{inputRoot:{paddingTop:"5px",paddingBottom:"5px"}}},MuiAvatar:{styleOverrides:{colorDefault:{backgroundColor:gn.background,color:gn.textDark2}}},MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{minHeight:"36px",borderRadius:"100px",padding:"8.5px 20px"},outlined:{padding:"7.5px 20px"},text:{padding:"8.5px 20px"},outlinedPrimary:({theme:r})=>({borderColor:r.palette.primary.main}),contained:({ownerState:r,theme:n})=>{const i={};return r.color==="success"&&(i.color=n.palette.common.white),i}}},MuiChip:{styleOverrides:{root:({ownerState:r,theme:n})=>{const i={};return r.color==="warning"&&(i.color=n.palette.common.white,i.backgroundColor="#ED6C02"),i["&.Mui-disabled"]={opacity:1,backgroundColor:gn.textDarkDisabled},i},icon:{marginLeft:7,fontSize:"1.375rem"},deleteIcon:{marginRight:7}}},MuiDialog:{styleOverrides:{paperWidthSm:{maxWidth:1200},paper:({theme:r})=>({[r.breakpoints.up("sm")]:{minWidth:500}})}},MuiDialogContent:{styleOverrides:{root:{paddingTop:"8px"}}},MuiDialogContentText:{styleOverrides:{root:{...bm.body1,color:gn.textDark2}}},MuiDivider:{styleOverrides:{root:{borderColor:gn.textDark,opacity:.12}}},MuiDrawer:{styleOverrides:{paperAnchorDockedLeft:{borderRight:"none"}}},MuiFormControlLabel:{styleOverrides:{root:{"& .MuiCheckbox-root":{marginRight:"5px"}}}},MuiFormHelperText:{styleOverrides:{root:{color:gn.textDark2,marginTop:"2px"}}},MuiFormLabel:{styleOverrides:{root:{color:gn.textDark},filled:{color:gn.textDark}}},MuiIconButton:{styleOverrides:{sizeSmall:{padding:2}}},MuiInputBase:{styleOverrides:{root:{color:gn.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiInputLabel:{styleOverrides:{outlined:{top:-3,color:gn.textDark}}},MuiOutlinedInput:{styleOverrides:{root:({theme:r})=>({borderRadius:"4px",backgroundColor:r.palette.common.white}),notchedOutline:{borderColor:gn.textDark},input:{paddingTop:"12.5px",paddingBottom:"12.5px"},inputMultiline:{padding:0},multiline:{paddingTop:"12.5px",paddingBottom:"12.5px"}}},MuiTab:{styleOverrides:{root:({theme:r})=>({height:"43px",minHeight:"43px",padding:"12px 16px",minWidth:0,[r.breakpoints.up("sm")]:{minWidth:0}})}},MuiTabs:{styleOverrides:{root:{height:"43px",minHeight:"43px"}}},MuiTextField:{defaultProps:{fullWidth:!0}},MuiTooltip:{styleOverrides:{tooltip:({theme:r})=>({borderRadius:"3px",backgroundColor:r.palette.primary.dark,padding:"5px 8px",...bm.caption})}},MuiToggleButton:{styleOverrides:{root:{padding:"8px 12px 8px 12px",gap:4,borderRadius:4}}}},typography:bm,shape:{borderRadius:12},extraColors:gn,extraTypography:pfe,layout:{pageHeader:{height:100,heightSmall:60},topbar:{height:72},sidebar:{openWidth:256,openWidthSmall:251,closedWidth:80}},customShadows:["0px 12px 20px -12px rgba(0, 0, 0, 0.12), inset 0px 0px 0px 1px #e1e4e8"]};if(e){const r=document.createElement("div");e.appendChild(r),t.components={...t.components,MuiPopover:{defaultProps:{container:r}},MuiPopper:{defaultProps:{container:r}}}}return cR(t)},sv=hfe(null),zJe=({children:e,customTheme:t})=>{const r=t||sv;return E.jsx(Nj,{injectFirst:!0,children:E.jsxs(Ate,{theme:r,children:[E.jsx(xoe,{}),E.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"*,*::before,*::after{box-sizing:border-box}"}}),e,E.jsx("div",{id:"dialogs"})]})})},mfe={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}},VJe=new CX(mfe);var Vc=TypeError;const gfe={},vfe=Object.freeze(Object.defineProperty({__proto__:null,default:gfe},Symbol.toStringTag,{value:"Module"})),yfe=po(vfe);var NR=typeof Map=="function"&&Map.prototype,p_=Object.getOwnPropertyDescriptor&&NR?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,lv=NR&&p_&&typeof p_.get=="function"?p_.get:null,PD=NR&&Map.prototype.forEach,FR=typeof Set=="function"&&Set.prototype,h_=Object.getOwnPropertyDescriptor&&FR?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,uv=FR&&h_&&typeof h_.get=="function"?h_.get:null,OD=FR&&Set.prototype.forEach,bfe=typeof WeakMap=="function"&&WeakMap.prototype,Ef=bfe?WeakMap.prototype.has:null,xfe=typeof WeakSet=="function"&&WeakSet.prototype,Rf=xfe?WeakSet.prototype.has:null,wfe=typeof WeakRef=="function"&&WeakRef.prototype,MD=wfe?WeakRef.prototype.deref:null,_fe=Boolean.prototype.valueOf,Cfe=Object.prototype.toString,Tfe=Function.prototype.toString,Sfe=String.prototype.match,jR=String.prototype.slice,cs=String.prototype.replace,Efe=String.prototype.toUpperCase,AD=String.prototype.toLowerCase,bU=RegExp.prototype.test,ID=Array.prototype.concat,Io=Array.prototype.join,Rfe=Array.prototype.slice,$D=Math.floor,dT=typeof BigInt=="function"?BigInt.prototype.valueOf:null,m_=Object.getOwnPropertySymbols,fT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pf=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wc||!0)?Symbol.toStringTag:null,xU=Object.prototype.propertyIsEnumerable,DD=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function LD(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||bU.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-$D(-e):$D(e);if(n!==e){var i=String(n),o=jR.call(t,i.length+1);return cs.call(i,r,"$&_")+"."+cs.call(cs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cs.call(t,r,"$&_")}var pT=yfe,kD=pT.custom,ND=CU(kD)?kD:null,wU={__proto__:null,double:'"',single:"'"},Pfe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},rb=function e(t,r,n,i){var o=r||{};if(ua(o,"quoteStyle")&&!ua(wU,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ua(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ua(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ua(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ua(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.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 SU(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?LD(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?LD(t,u):u}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return hT(t)?"[Array]":"[Object]";var p=Vfe(o,n);if(typeof i>"u")i=[];else if(TU(i,t)>=0)return"[Circular]";function h(q,U,F){if(U&&(i=Rfe.call(i),i.push(U)),F){var j={depth:o.depth};return ua(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(q,j,n+1,i)}return e(q,o,n+1,i)}if(typeof t=="function"&&!FD(t)){var m=Nfe(t),g=xm(t,h);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(g.length>0?" { "+Io.call(g,", ")+" }":"")}if(CU(t)){var y=wc?cs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):fT.call(t);return typeof t=="object"&&!wc?Hd(y):y}if(Hfe(t)){for(var x="<"+AD.call(String(t.nodeName)),b=t.attributes||[],S=0;S<b.length;S++)x+=" "+b[S].name+"="+_U(Ofe(b[S].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+AD.call(String(t.nodeName))+">",x}if(hT(t)){if(t.length===0)return"[]";var w=xm(t,h);return p&&!zfe(w)?"["+mT(w,p)+"]":"[ "+Io.call(w,", ")+" ]"}if(Afe(t)){var _=xm(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!xU.call(t,"cause")?"{ ["+String(t)+"] "+Io.call(ID.call("[cause]: "+h(t.cause),_),", ")+" }":_.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Io.call(_,", ")+" }"}if(typeof t=="object"&&a){if(ND&&typeof t[ND]=="function"&&pT)return pT(t,{depth:d-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ffe(t)){var O=[];return PD&&PD.call(t,function(q,U){O.push(h(U,t,!0)+" => "+h(q,t))}),jD("Map",lv.call(t),O,p)}if(Ufe(t)){var C=[];return OD&&OD.call(t,function(q){C.push(h(q,t))}),jD("Set",uv.call(t),C,p)}if(jfe(t))return g_("WeakMap");if(qfe(t))return g_("WeakSet");if(Bfe(t))return g_("WeakRef");if($fe(t))return Hd(h(Number(t)));if(Lfe(t))return Hd(h(dT.call(t)));if(Dfe(t))return Hd(_fe.call(t));if(Ife(t))return Hd(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof ao<"u"&&t===ao)return"{ [object globalThis] }";if(!Mfe(t)&&!FD(t)){var T=xm(t,h),M=DD?DD(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",$=!M&&Pf&&Object(t)===t&&Pf in t?jR.call(Ds(t),8,-1):D?"Object":"",N=M||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=N+($||D?"["+Io.call(ID.call([],$||[],D||[]),": ")+"] ":"");return T.length===0?B+"{}":p?B+"{"+mT(T,p)+"}":B+"{ "+Io.call(T,", ")+" }"}return String(t)};function _U(e,t,r){var n=r.quoteStyle||t,i=wU[n];return i+e+i}function Ofe(e){return cs.call(String(e),/"/g,"&quot;")}function Xl(e){return!Pf||!(typeof e=="object"&&(Pf in e||typeof e[Pf]<"u"))}function hT(e){return Ds(e)==="[object Array]"&&Xl(e)}function Mfe(e){return Ds(e)==="[object Date]"&&Xl(e)}function FD(e){return Ds(e)==="[object RegExp]"&&Xl(e)}function Afe(e){return Ds(e)==="[object Error]"&&Xl(e)}function Ife(e){return Ds(e)==="[object String]"&&Xl(e)}function $fe(e){return Ds(e)==="[object Number]"&&Xl(e)}function Dfe(e){return Ds(e)==="[object Boolean]"&&Xl(e)}function CU(e){if(wc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!fT)return!1;try{return fT.call(e),!0}catch{}return!1}function Lfe(e){if(!e||typeof e!="object"||!dT)return!1;try{return dT.call(e),!0}catch{}return!1}var kfe=Object.prototype.hasOwnProperty||function(e){return e in this};function ua(e,t){return kfe.call(e,t)}function Ds(e){return Cfe.call(e)}function Nfe(e){if(e.name)return e.name;var t=Sfe.call(Tfe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function TU(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 Ffe(e){if(!lv||!e||typeof e!="object")return!1;try{lv.call(e);try{uv.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function jfe(e){if(!Ef||!e||typeof e!="object")return!1;try{Ef.call(e,Ef);try{Rf.call(e,Rf)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Bfe(e){if(!MD||!e||typeof e!="object")return!1;try{return MD.call(e),!0}catch{}return!1}function Ufe(e){if(!uv||!e||typeof e!="object")return!1;try{uv.call(e);try{lv.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function qfe(e){if(!Rf||!e||typeof e!="object")return!1;try{Rf.call(e,Rf);try{Ef.call(e,Ef)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Hfe(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function SU(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return SU(jR.call(e,0,t.maxStringLength),t)+n}var i=Pfe[t.quoteStyle||"single"];i.lastIndex=0;var o=cs.call(cs.call(e,i,"\\$1"),/[\x00-\x1f]/g,Wfe);return _U(o,"single",t)}function Wfe(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":"")+Efe.call(t.toString(16))}function Hd(e){return"Object("+e+")"}function g_(e){return e+" { ? }"}function jD(e,t,r,n){var i=n?mT(r,n):Io.call(r,", ");return e+" ("+t+") {"+i+"}"}function zfe(e){for(var t=0;t<e.length;t++)if(TU(e[t],`
376
+ `)>=0)return!1;return!0}function Vfe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Io.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Io.call(Array(t+1),r)}}function mT(e,t){if(e.length===0)return"";var r=`
377
+ `+t.prev+t.base;return r+Io.call(e,","+r)+`
378
+ `+t.prev}function xm(e,t){var r=hT(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=ua(e,i)?t(e[i],e):""}var o=typeof m_=="function"?m_(e):[],a;if(wc){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ua(e,l)&&(r&&String(Number(l))===l&&l<e.length||wc&&a["$"+l]instanceof Symbol||(bU.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof m_=="function")for(var u=0;u<o.length;u++)xU.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}var Gfe=rb,Kfe=Vc,nb=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},Xfe=function(e,t){if(e){var r=nb(e,t);return r&&r.value}},Yfe=function(e,t,r){var n=nb(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Zfe=function(e,t){return e?!!nb(e,t):!1},Jfe=function(e,t){if(e)return nb(e,t,!0)},Qfe=function(){var t,r={assert:function(n){if(!r.has(n))throw new Kfe("Side channel does not contain "+Gfe(n))},delete:function(n){var i=t&&t.next,o=Jfe(t,n);return o&&i&&i===o&&(t=void 0),!!o},get:function(n){return Xfe(t,n)},has:function(n){return Zfe(t,n)},set:function(n,i){t||(t={next:void 0}),Yfe(t,n,i)}};return r},EU=Object,epe=Error,tpe=EvalError,rpe=RangeError,npe=ReferenceError,ipe=SyntaxError,ope=URIError,ape=Math.abs,spe=Math.floor,lpe=Math.max,upe=Math.min,cpe=Math.pow,dpe=Math.round,fpe=Number.isNaN||function(t){return t!==t},ppe=fpe,hpe=function(t){return ppe(t)||t===0?t:t<0?-1:1},mpe=Object.getOwnPropertyDescriptor,gg=mpe;if(gg)try{gg([],"length")}catch{gg=null}var RU=gg,vg=Object.defineProperty||!1;if(vg)try{vg({},"a",{value:1})}catch{vg=!1}var gpe=vg,v_,BD;function vpe(){return BD||(BD=1,v_=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 i=42;t[r]=i;for(var o 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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),v_}var y_,UD;function ype(){if(UD)return y_;UD=1;var e=typeof Symbol<"u"&&Symbol,t=vpe();return y_=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},y_}var b_,qD;function PU(){return qD||(qD=1,b_=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),b_}var x_,HD;function OU(){if(HD)return x_;HD=1;var e=EU;return x_=e.getPrototypeOf||null,x_}var bpe="Function.prototype.bind called on incompatible ",xpe=Object.prototype.toString,wpe=Math.max,_pe="[object Function]",WD=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},Cpe=function(t,r){for(var n=[],i=r,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},Tpe=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Spe=function(t){var r=this;if(typeof r!="function"||xpe.apply(r)!==_pe)throw new TypeError(bpe+r);for(var n=Cpe(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,WD(n,arguments));return Object(d)===d?d:this}return r.apply(t,WD(n,arguments))},a=wpe(0,r.length-n.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(i=Function("binder","return function ("+Tpe(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},Epe=Spe,ib=Function.prototype.bind||Epe,BR=Function.prototype.call,w_,zD;function MU(){return zD||(zD=1,w_=Function.prototype.apply),w_}var Rpe=typeof Reflect<"u"&&Reflect&&Reflect.apply,Ppe=ib,Ope=MU(),Mpe=BR,Ape=Rpe,Ipe=Ape||Ppe.call(Mpe,Ope),$pe=ib,Dpe=Vc,Lpe=BR,kpe=Ipe,AU=function(t){if(t.length<1||typeof t[0]!="function")throw new Dpe("a function is required");return kpe($pe,Lpe,t)},__,VD;function Npe(){if(VD)return __;VD=1;var e=AU,t=RU,r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return __=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1,__}var C_,GD;function Fpe(){if(GD)return C_;GD=1;var e=PU(),t=OU(),r=Npe();return C_=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,C_}var T_,KD;function jpe(){if(KD)return T_;KD=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ib;return T_=r.call(e,t),T_}var wt,Bpe=EU,Upe=epe,qpe=tpe,Hpe=rpe,Wpe=npe,_c=ipe,oc=Vc,zpe=ope,Vpe=ape,Gpe=spe,Kpe=lpe,Xpe=upe,Ype=cpe,Zpe=dpe,Jpe=hpe,IU=Function,S_=function(e){try{return IU('"use strict"; return ('+e+").constructor;")()}catch{}},Qf=RU,Qpe=gpe,E_=function(){throw new oc},ehe=Qf?function(){try{return arguments.callee,E_}catch{try{return Qf(arguments,"callee").get}catch{return E_}}}():E_,Nu=ype()(),on=Fpe(),the=OU(),rhe=PU(),$U=MU(),Ap=BR,Yu={},nhe=typeof Uint8Array>"u"||!on?wt:on(Uint8Array),Pl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wt:ArrayBuffer,"%ArrayIteratorPrototype%":Nu&&on?on([][Symbol.iterator]()):wt,"%AsyncFromSyncIteratorPrototype%":wt,"%AsyncFunction%":Yu,"%AsyncGenerator%":Yu,"%AsyncGeneratorFunction%":Yu,"%AsyncIteratorPrototype%":Yu,"%Atomics%":typeof Atomics>"u"?wt:Atomics,"%BigInt%":typeof BigInt>"u"?wt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Upe,"%eval%":eval,"%EvalError%":qpe,"%Float16Array%":typeof Float16Array>"u"?wt:Float16Array,"%Float32Array%":typeof Float32Array>"u"?wt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wt:FinalizationRegistry,"%Function%":IU,"%GeneratorFunction%":Yu,"%Int8Array%":typeof Int8Array>"u"?wt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Nu&&on?on(on([][Symbol.iterator]())):wt,"%JSON%":typeof JSON=="object"?JSON:wt,"%Map%":typeof Map>"u"?wt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Nu||!on?wt:on(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Bpe,"%Object.getOwnPropertyDescriptor%":Qf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wt:Promise,"%Proxy%":typeof Proxy>"u"?wt:Proxy,"%RangeError%":Hpe,"%ReferenceError%":Wpe,"%Reflect%":typeof Reflect>"u"?wt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Nu||!on?wt:on(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Nu&&on?on(""[Symbol.iterator]()):wt,"%Symbol%":Nu?Symbol:wt,"%SyntaxError%":_c,"%ThrowTypeError%":ehe,"%TypedArray%":nhe,"%TypeError%":oc,"%Uint8Array%":typeof Uint8Array>"u"?wt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wt:Uint32Array,"%URIError%":zpe,"%WeakMap%":typeof WeakMap>"u"?wt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wt:WeakSet,"%Function.prototype.call%":Ap,"%Function.prototype.apply%":$U,"%Object.defineProperty%":Qpe,"%Object.getPrototypeOf%":the,"%Math.abs%":Vpe,"%Math.floor%":Gpe,"%Math.max%":Kpe,"%Math.min%":Xpe,"%Math.pow%":Ype,"%Math.round%":Zpe,"%Math.sign%":Jpe,"%Reflect.getPrototypeOf%":rhe};if(on)try{null.error}catch(e){var ihe=on(on(e));Pl["%Error.prototype%"]=ihe}var ohe=function e(t){var r;if(t==="%AsyncFunction%")r=S_("async function () {}");else if(t==="%GeneratorFunction%")r=S_("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=S_("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&on&&(r=on(i.prototype))}return Pl[t]=r,r},XD={__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"]},Ip=ib,cv=jpe(),ahe=Ip.call(Ap,Array.prototype.concat),she=Ip.call($U,Array.prototype.splice),YD=Ip.call(Ap,String.prototype.replace),dv=Ip.call(Ap,String.prototype.slice),lhe=Ip.call(Ap,RegExp.prototype.exec),uhe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,che=/\\(\\)?/g,dhe=function(t){var r=dv(t,0,1),n=dv(t,-1);if(r==="%"&&n!=="%")throw new _c("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new _c("invalid intrinsic syntax, expected opening `%`");var i=[];return YD(t,uhe,function(o,a,s,l){i[i.length]=s?YD(l,che,"$1"):a||o}),i},fhe=function(t,r){var n=t,i;if(cv(XD,n)&&(i=XD[n],n="%"+i[0]+"%"),cv(Pl,n)){var o=Pl[n];if(o===Yu&&(o=ohe(n)),typeof o>"u"&&!r)throw new oc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new _c("intrinsic "+t+" does not exist!")},UR=function(t,r){if(typeof t!="string"||t.length===0)throw new oc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new oc('"allowMissing" argument must be a boolean');if(lhe(/^%?[^%]*%?$/,t)===null)throw new _c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=dhe(t),i=n.length>0?n[0]:"",o=fhe("%"+i+"%",r),a=o.name,s=o.value,l=!1,u=o.alias;u&&(i=u[0],she(n,ahe([0,1],u)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],m=dv(h,0,1),g=dv(h,-1);if((m==='"'||m==="'"||m==="`"||g==='"'||g==="'"||g==="`")&&m!==g)throw new _c("property names with quotes must have matching quotes");if((h==="constructor"||!p)&&(l=!0),i+="."+h,a="%"+i+"%",cv(Pl,a))s=Pl[a];else if(s!=null){if(!(h in s)){if(!r)throw new oc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qf&&d+1>=n.length){var y=Qf(s,h);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[h]}else p=cv(s,h),s=s[h];p&&!l&&(Pl[a]=s)}}return s},DU=UR,LU=AU,phe=LU([DU("%String.prototype.indexOf%")]),kU=function(t,r){var n=DU(t,!!r);return typeof n=="function"&&phe(t,".prototype.")>-1?LU([n]):n},hhe=UR,$p=kU,mhe=rb,ghe=Vc,ZD=hhe("%Map%",!0),vhe=$p("Map.prototype.get",!0),yhe=$p("Map.prototype.set",!0),bhe=$p("Map.prototype.has",!0),xhe=$p("Map.prototype.delete",!0),whe=$p("Map.prototype.size",!0),NU=!!ZD&&function(){var t,r={assert:function(n){if(!r.has(n))throw new ghe("Side channel does not contain "+mhe(n))},delete:function(n){if(t){var i=xhe(t,n);return whe(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return vhe(t,n)},has:function(n){return t?bhe(t,n):!1},set:function(n,i){t||(t=new ZD),yhe(t,n,i)}};return r},_he=UR,ob=kU,Che=rb,wm=NU,The=Vc,Fu=_he("%WeakMap%",!0),She=ob("WeakMap.prototype.get",!0),Ehe=ob("WeakMap.prototype.set",!0),Rhe=ob("WeakMap.prototype.has",!0),Phe=ob("WeakMap.prototype.delete",!0),Ohe=Fu?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new The("Side channel does not contain "+Che(i))},delete:function(i){if(Fu&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Phe(t,i)}else if(wm&&r)return r.delete(i);return!1},get:function(i){return Fu&&i&&(typeof i=="object"||typeof i=="function")&&t?She(t,i):r&&r.get(i)},has:function(i){return Fu&&i&&(typeof i=="object"||typeof i=="function")&&t?Rhe(t,i):!!r&&r.has(i)},set:function(i,o){Fu&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Fu),Ehe(t,i,o)):wm&&(r||(r=wm()),r.set(i,o))}};return n}:wm,Mhe=Vc,Ahe=rb,Ihe=Qfe,$he=NU,Dhe=Ohe,Lhe=Dhe||$he||Ihe,khe=function(){var t,r={assert:function(n){if(!r.has(n))throw new Mhe("Side channel does not contain "+Ahe(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=Lhe()),t.set(n,i)}};return r},Nhe=String.prototype.replace,Fhe=/%20/g,R_={RFC1738:"RFC1738",RFC3986:"RFC3986"},qR={default:R_.RFC3986,formatters:{RFC1738:function(e){return Nhe.call(e,Fhe,"+")},RFC3986:function(e){return String(e)}},RFC1738:R_.RFC1738,RFC3986:R_.RFC3986},jhe=qR,P_=Object.prototype.hasOwnProperty,gl=Array.isArray,Co=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Bhe=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(gl(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},FU=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},Uhe=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(gl(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!P_.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return gl(t)&&!gl(r)&&(i=FU(t,n)),gl(t)&&gl(r)?(r.forEach(function(o,a){if(P_.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,n):t.push(o)}else t[a]=o}),t):Object.keys(r).reduce(function(o,a){var s=r[a];return P_.call(o,a)?o[a]=e(o[a],s,n):o[a]=s,o},i)},qhe=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},Hhe=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},O_=1024,Whe=function(t,r,n,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=O_){for(var u=a.length>=O_?a.slice(l,l+O_):a,d=[],p=0;p<u.length;++p){var h=u.charCodeAt(p);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===jhe.RFC1738&&(h===40||h===41)){d[d.length]=u.charAt(p);continue}if(h<128){d[d.length]=Co[h];continue}if(h<2048){d[d.length]=Co[192|h>>6]+Co[128|h&63];continue}if(h<55296||h>=57344){d[d.length]=Co[224|h>>12]+Co[128|h>>6&63]+Co[128|h&63];continue}p+=1,h=65536+((h&1023)<<10|u.charCodeAt(p)&1023),d[d.length]=Co[240|h>>18]+Co[128|h>>12&63]+Co[128|h>>6&63]+Co[128|h&63]}s+=d.join("")}return s},zhe=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],d=a[u];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:a,prop:u}),n.push(d))}return Bhe(r),t},Vhe=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Ghe=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Khe=function(t,r){return[].concat(t,r)},Xhe=function(t,r){if(gl(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},jU={arrayToObject:FU,assign:qhe,combine:Khe,compact:zhe,decode:Hhe,encode:Whe,isBuffer:Ghe,isRegExp:Vhe,maybeMap:Xhe,merge:Uhe},BU=khe,yg=jU,Of=qR,Yhe=Object.prototype.hasOwnProperty,UU={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Po=Array.isArray,Zhe=Array.prototype.push,qU=function(e,t){Zhe.apply(e,Po(t)?t:[t])},Jhe=Date.prototype.toISOString,JD=Of.default,Zr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:yg.encode,encodeValuesOnly:!1,filter:void 0,format:JD,formatter:Of.formatters[JD],indices:!1,serializeDate:function(t){return Jhe.call(t)},skipNulls:!1,strictNullHandling:!1},Qhe=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},M_={},eme=function e(t,r,n,i,o,a,s,l,u,d,p,h,m,g,y,x,b,S){for(var w=t,_=S,O=0,C=!1;(_=_.get(M_))!==void 0&&!C;){var T=_.get(t);if(O+=1,typeof T<"u"){if(T===O)throw new RangeError("Cyclic object value");C=!0}typeof _.get(M_)>"u"&&(O=0)}if(typeof d=="function"?w=d(r,w):w instanceof Date?w=m(w):n==="comma"&&Po(w)&&(w=yg.maybeMap(w,function(oe){return oe instanceof Date?m(oe):oe})),w===null){if(a)return u&&!x?u(r,Zr.encoder,b,"key",g):r;w=""}if(Qhe(w)||yg.isBuffer(w)){if(u){var M=x?r:u(r,Zr.encoder,b,"key",g);return[y(M)+"="+y(u(w,Zr.encoder,b,"value",g))]}return[y(r)+"="+y(String(w))]}var D=[];if(typeof w>"u")return D;var $;if(n==="comma"&&Po(w))x&&u&&(w=yg.maybeMap(w,u)),$=[{value:w.length>0?w.join(",")||null:void 0}];else if(Po(d))$=d;else{var N=Object.keys(w);$=p?N.sort(p):N}var B=l?String(r).replace(/\./g,"%2E"):String(r),q=i&&Po(w)&&w.length===1?B+"[]":B;if(o&&Po(w)&&w.length===0)return q+"[]";for(var U=0;U<$.length;++U){var F=$[U],j=typeof F=="object"&&F&&typeof F.value<"u"?F.value:w[F];if(!(s&&j===null)){var V=h&&l?String(F).replace(/\./g,"%2E"):String(F),z=Po(w)?typeof n=="function"?n(q,V):q:q+(h?"."+V:"["+V+"]");S.set(t,O);var Q=BU();Q.set(M_,S),qU(D,e(j,z,n,i,o,a,s,l,n==="comma"&&x&&Po(w)?null:u,d,p,h,m,g,y,x,b,Q))}}return D},tme=function(t){if(!t)return Zr;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Zr.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Of.default;if(typeof t.format<"u"){if(!Yhe.call(Of.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=Of.formatters[n],o=Zr.filter;(typeof t.filter=="function"||Po(t.filter))&&(o=t.filter);var a;if(t.arrayFormat in UU?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Zr.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Zr.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Zr.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Zr.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Zr.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Zr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Zr.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Zr.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Zr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Zr.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Zr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Zr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Zr.strictNullHandling}},rme=function(e,t){var r=e,n=tme(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Po(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s=UU[n.arrayFormat],l=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=BU(),d=0;d<i.length;++d){var p=i[d],h=r[p];n.skipNulls&&h===null||qU(a,eme(h,p,s,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var m=a.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""},Ul=jU,gT=Object.prototype.hasOwnProperty,QD=Array.isArray,Rr={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ul.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},nme=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},HU=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},ime="utf8=%26%2310003%3B",ome="utf8=%E2%9C%93",ame=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===ome?u="utf-8":a[l]===ime&&(u="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var d=a[l],p=d.indexOf("]="),h=p===-1?d.indexOf("="):p+1,m,g;h===-1?(m=r.decoder(d,Rr.decoder,u,"key"),g=r.strictNullHandling?null:""):(m=r.decoder(d.slice(0,h),Rr.decoder,u,"key"),g=Ul.maybeMap(HU(d.slice(h+1),r,QD(n[m])?n[m].length:0),function(x){return r.decoder(x,Rr.decoder,u,"value")})),g&&r.interpretNumericEntities&&u==="iso-8859-1"&&(g=nme(String(g))),d.indexOf("[]=")>-1&&(g=QD(g)?[g]:g);var y=gT.call(n,m);y&&r.duplicates==="combine"?n[m]=Ul.combine(n[m],g):(!y||r.duplicates==="last")&&(n[m]=g)}return n},sme=function(e,t,r,n){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var o=e.slice(0,-1).join("");i=Array.isArray(t)&&t[o]?t[o].length:0}for(var a=n?t:HU(t,r,i),s=e.length-1;s>=0;--s){var l,u=e[s];if(u==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(a===""||r.strictNullHandling&&a===null)?[]:Ul.combine([],a);else{l=r.plainObjects?{__proto__:null}:{};var d=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=r.decodeDotInKeys?d.replace(/%2E/g,"."):d,h=parseInt(p,10);!r.parseArrays&&p===""?l={0:a}:!isNaN(h)&&u!==p&&String(h)===p&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[],l[h]=a):p!=="__proto__"&&(l[p]=a)}a=l}return a},lme=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),u=l?o.slice(0,l.index):o,d=[];if(u){if(!n.plainObjects&&gT.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var p=0;n.depth>0&&(l=s.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&gT.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");d.push("["+o.slice(l.index)+"]")}return sme(d,r,n,i)}},ume=function(t){if(!t)return Rr;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?Rr.charset:t.charset,n=typeof t.duplicates>"u"?Rr.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Rr.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Rr.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Rr.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Rr.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Rr.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Rr.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Rr.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Rr.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Rr.decoder,delimiter:typeof t.delimiter=="string"||Ul.isRegExp(t.delimiter)?t.delimiter:Rr.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Rr.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Rr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Rr.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Rr.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Rr.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Rr.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},cme=function(e,t){var r=ume(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?ame(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],l=lme(s,n[s],r,typeof e=="string");i=Ul.merge(i,l,r)}return r.allowSparse===!0?i:Ul.compact(i)},dme=rme,fme=cme,pme=qR,hme={formats:pme,parse:fme,stringify:dme};const ab=gi(hme),WU=W("div")`
379
+ ${({theme:e})=>e.breakpoints.down("md")} {
380
+ padding: 0px 24px;
381
+ }
382
+ `,mme=W(Ke)`
383
+ ${({theme:e})=>e.typography.h4};
384
+
385
+ ${({theme:e})=>e.breakpoints.down("md")} {
386
+ ${({theme:e})=>e.typography.h6};
387
+ }
388
+ `,gme=W(mo)`
389
+ flex-direction: row;
390
+ align-items: baseline;
391
+ column-gap: 16px;
392
+ margin-bottom: 32px;
393
+
394
+ ${({theme:e})=>e.breakpoints.down("md")} {
395
+ flex-direction: column;
396
+ margin-bottom: 16px;
397
+ }
398
+ `;var HR={},vme=Ut;Object.defineProperty(HR,"__esModule",{value:!0});var zU=HR.default=void 0,yme=vme(Mp()),bme=E;zU=HR.default=(0,yme.default)((0,bme.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");const xme=W(Ke)`
399
+ ${({theme:e})=>e.typography.h4};
400
+
401
+ ${({theme:e})=>e.breakpoints.down("sm")} {
402
+ ${({theme:e})=>e.typography.h6};
403
+ }
404
+ `,WR=W("div")`
405
+ ${({theme:e})=>e.breakpoints.down("md")} {
406
+ padding: 0px 24px;
407
+ }
408
+ height: 100%;
409
+ `,VU=W(mo)`
410
+ align-items: baseline;
411
+ column-gap: 16px;
412
+ flex-direction: row;
413
+ margin-bottom: 32px;
414
+
415
+ ${({theme:e})=>e.breakpoints.down("sm")} {
416
+ flex-direction: column;
417
+ margin-bottom: 16px;
418
+ }
419
+ `,wme=W("div")`
420
+ display: flex;
421
+ justify-content: space-between;
422
+ `,GU=W(zr)`
423
+ width: '100%';
424
+ `,zR=W(GU)`
425
+ height: '100%';
426
+ `,VR=({assetName:e,sitecode:t})=>{const{t:r}=wr("location"),n=Kl(),i=/\balert\b/.test(n.pathname);return E.jsxs(wme,{children:[E.jsxs(VU,{children:[E.jsx(xme,{children:e}),t&&E.jsx(Ke,{variant:"subtitle1",children:t})]}),i&&E.jsx(cZ,{to:{pathname:"/alerts-definitions",search:n.search},children:E.jsx(ma,{startIcon:E.jsx(zU,{}),children:r("alerts.configure-alerts-button")})})]})};var Qn=(e=>(e.ACCOUNT="ACCOUNT",e.ACCOUNT_CONTACTS="ACCOUNT_CONTACTS",e.ACCOUNT_ROLES="ACCOUNT_ROLES",e.ACCOUNT_USERS="ACCOUNT_USERS",e.ACCOUNTS="ACCOUNTS",e.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",e.ALERTS="alerts",e.ASSETS="ASSETS",e.ASSETS_TREE="ASSETS_TREE",e.ATTACHMENTS="ATTACHMENTS",e.ATTACHMENT_CONTENT="ATTACHMENT_CONTENT",e.CANCEL_CS_TICKET="CANCEL_CS_TICKET",e.CANCEL_FA_TICKET="CANCEL_FA_TICKET",e.CANCEL_RH_TICKET="CANCEL_RH_TICKET",e.CANCEL_SR_TICKET="CANCEL_SR_TICKET",e.CATEGORIES="CATEGORIES",e.COMPANIES="COMPANIES",e.CITIES="CITIES",e.CLIENT_SERVICES_TICKET="CLIENT_SERVICES_TICKET",e.CLIENT_SERVICES_TICKETS="CLIENT_SERVICES_TICKETS",e.COOKIES_PREFERENCE="COOKIES_PREFERENCE",e.COURIER_COMPANIES="COURIER_COMPANIES",e.CREATE_ACCOUNT_ROLE="create_account_role",e.CREATE_CUSTOMER_SUPPORT_TICKET="CREATE_CUSTOMER_SUPPORT_TICKET",e.CREATE_NOTIFICATION="CREATE_NOTIFICATION",e.CREATE_PERMISSION_GROUP="create_permission_group",e.CREATE_RELEASE="CREATE_RELEASE",e.CREATE_REMOTE_HANDS_TICKET="CREATE_REMOTE_HANDS_TICKET",e.CREATE_ROLE="CREATE_ROLE",e.CREATE_ROLE_ASSET_PERMISSION="CREATE_ROLE_ASSET_PERMISSION",e.CREATE_ROLE_PERMISSION="CREATE_ROLE_PERMISSION",e.CREATE_ROLE_PERMISSION_GROUP="CREATE_ROLE_PERMISSION_GROUP",e.CUSTOMER_SUPPORT_CONTACTS="CUSTOMER_SUPPORT_CONTACTS",e.CUSTOMER_SUPPORT_TICKETS="CUSTOMER_SUPPORT_TICKETS",e.DATE_FORMAT="DATE_FORMAT",e.DEFAULT_ACCOUNT="DEFAULT_ACCOUNT",e.DELETE_ROLE="DELETE_ROLE",e.DELETE_GROUP_PERMISSION="DELETE_GROUP_PERMISSION",e.DELETE_PERMISSION="DELETE_PERMISSION",e.DELETE_PERMISSION_GROUP="DELETE_PERMISSION_GROUP",e.DCIM_ALERTS="DCIM_ALERTS",e.DCIM_ALERT_INSTANCES="DCIM_ALERT_INSTANCES",e.DCIM_ALERT_INSTANCE_DETAILS="DCIM_ALERT_INSTANCE_DETAILS",e.DCIM_CHART_DATA="DCIM_CHART_DATA",e.DCIM_CHART_DATA_GROUP="DCIM_CHART_DATA_GROUP",e.DCIM_CHART_METADATA="DCIM_CHART_METADATA",e.DCIM_ENABLED_LOCATIONS="DCIM_ENABLED_LOCATIONS",e.DCIM_HISTORICAL_ALERTS="DCIM_HISTORICAL_ALERTS",e.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS="DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS",e.DCIM_LOCATIONS="DCIM_LOCATIONS",e.DOWNLOAD_USERS="DOWNLOAD_USERS",e.EDIT_ACCOUNT="EDIT_ACCOUNT",e.EDIT_NOTIFICATION="EDIT_NOTIFICATION",e.EDIT_PERMISSION_GROUP="EDIT_PERMISSION_GROUP",e.EDIT_PRIVILEGE="EDIT_PRIVILEGE",e.EDIT_ROLE="EDIT_ROLE",e.EDIT_ROLE_PERMISSION="EDIT_ROLE_PERMISSION",e.EDIT_USER_PERMISSIONS="EDIT_USER_PERMISSIONS",e.EDIT_USER_PREFERENCES="EDIT_USER_PREFERENCES",e.EDIT_USER_PROFILE="EDIT_USER_PROFILE",e.ELEGIBLE_REPORTS="ELEGIBLE_REPORTS",e.FA_TICKET_APPROVE_OR_DENY="FA_TICKET_APPROVE_OR_DENY",e.FACILITY_ACCESS="FACILITY_ACCESS",e.FACILITY_ACCESS_CONTACT_ACCESS="FACILTY_ACCESS_CONTACT_ACCESS",e.FACILITY_ACCESS_CONTACTS="FACILTY_ACCESS_CONTACTS",e.FACILITY_ACCESS_TICKETS="FACILTY_ACCESS_TICKETS",e.LOCATIONS="LOCATIONS",e.LOCATIONS_PAGED="LOCATIONS_PAGED",e.POP_POES_LOCATIONS="POP_POES_LOCATIONS",e.METRICS_FIRST_TIME_LOGIN="METRICS_FIRST_TIME_LOGIN",e.METRICS_LOGIN="metrics_login",e.METRICS_LOGOUT="metrics_logout",e.METROS="metros",e.MODIFY_BADGE="MODIFY_BADGE",e.NOTIFICATION="NOTIFICATION",e.NOTIFICATIONS="NOTIFICATIONS",e.PERMISSION_GROUP_PERMISSIONS="PERMISSION_GROUP_PERMISSIONS",e.PERMISSION_GROUPS="PERMISSION_GROUPS",e.PERMISSIONS="PERMISSIONS",e.PERMISSIONS_PRIVILEGES="PERMISSIONS_PRIVILEGES",e.PERMISSIONS_AVAILABLE="PERMISSIONS_AVAILABLE",e.PLANNED_SITE_MAINTENANCE="PLANNED_SITE_MAINTENANCE",e.PORTAL_ROLES="PORTAL_ROLES",e.POSITIONS="POSITIONS",e.REGIONS="REGIONS",e.RELEASE="RELEASE",e.RELEASE_INFO="RELEASE_INFO",e.REMOVE_ACCOUNT="REMOVE_ACCOUNT",e.REMOVE_ACCOUNT_ROLE="REMOVE_ACCOUNT_ROLE",e.REMOTE_HANDS_TICKET="REMOTE_HANDS_TICKET",e.REMOTE_HANDS_CATEGORIES="REMOTE_HANDS_CATEGORIES",e.REPORT_FILE_DOWNLOAD="REPORT_FILE_DOWNLOAD",e.REPORTS="REPORTS",e.REQUEST_TYPES="REQUEST_TYPES",e.ROLE="ROLE",e.ROLE_ACCESS_PERMISSIONS="ROLE_ACCESS_PERMISSIONS",e.ROLE_ASSET_PERMISSIONS="ROLE_ASSET_PERMISSIONS",e.ROLE_NAMES="ROLE_NAMES",e.ROLE_PERMISSIONS="ROLE_PERMISSIONS",e.ROLE_PERMISSIONS_PRIVILEGES="ROLE_PERMISSIONS_PRIVILEGES",e.ROLE_PERMISSION_GROUP="ROLE_PERMISSION_GROUP",e.ROLES="ROLES",e.SERVICE_TICKETS="SERVICE_TICKETS",e.SERVICE_TICKETS_CANCELLATATION_REASONS="SERVICE_TICKETS_CANCELLATATION_REASONS",e.SET_ACTIVE_USER_ACCOUNT="SET_ACTIVE_USER_ACCOUNT",e.SHIPMENTS_TICKET="SHIPMENTS_TICKET",e.SHIPMENTS_TICKETS="SHIPMENTS_TICKETS",e.SITES="SITES",e.SITES_PAGED="SITES_PAGED",e.SITES_TREE="SITES_TREE",e.SUPPORT_DOWNLOAD="SUPPORT_DOWNLOAD",e.SUPPORT_TICKETS="SUPPORT_TICKETS",e.SUPPORT_TICKET="SUPPORT_TICKET",e.SUPPORT_TICKET_MESSAGES="SUPPORT_TICKET_MESSAGES",e.UNITS="UNITS",e.UNREAD_NOTIFICATIONS="UNREAD_NOTIFICATIONS",e.UPDATE_CUSTOMER_SUPPORT_TICKET="UPDATE_CUSTOMER_SUPPORT_TICKET",e.UPDATE_FA_TICKET="UPDATE_FA_TICKET",e.UPDATE_RELEASE="UPDATE_RELEASE",e.UPDATE_REMOTE_HANDS_TICKET="UPDATE_REMOTE_HANDS_TICKET",e.UPDATE_SHIPMENTS_TICKET="UPDATE_SHIPMENTS_TICKET",e.USER="USER",e.USER_ACCOUNT_CREATORS="USER_ACCOUNT_CREATORS",e.USER_ACCOUNTS="USER_ACCOUNTS",e.USER_ACCOUNT_APPROVALS="USER_ACCOUNT_APPROVALS",e.USER_ACCOUNT_STATUS="USER_ACCOUNT_STATUS",e.USER_ASSIGNMENTS="USER_ASSIGNMENTS",e.USER_BY_EMAIL="USER_BY_EMAIL",e.USER_CREATE="USER_CREATE",e.USER_DETAILS="USER_DETAILS",e.USER_EDIT="USER_EDIT",e.USER_ID="USER_ID",e.USER_INTERNAL_DOMAINS="USER_INTERNAL_DOMAINS",e.USER_IS_ON_BEHALF_OF="USER_IS_ON_BEHALF_OF",e.USER_LOGOUT="USER_LOGOUT",e.USER_ON_BEHALF_OF="USER_ON_BEHALF_OF",e.USER_PREFERENCES="USER_PREFERENCES",e.USER_PROFILE="USER_PROFILE",e.USER_RELEASE="USER_RELEASE",e.USER_UPDATE="USER_UPDATE",e.USERS_CONTACTS="USERS_CONTACTS",e.USERS_LOCATIONS="USERS_LOCATIONS",e.TECHNICAL_SUPPORT_CONTACTS="TECHNICAL_SUPPORT_CONTACTS",e.TIME_ZONE="TIME_ZONE",e.TIME_ZONE_WINDOWS_IANA="TIME_ZONE_WINDOWS_IANA",e.UPLOAD_ATTACHMENTS="UPLOAD_ATTACHMENTS",e.VALIDATE_ROLE="VALIDATE_ROLE",e.WORK_ORDER_DETAILS="WORK_ORDER_DETAILS",e.WORK_ORDERS="WORK_ORDERS",e.CONTACT_US="CONTACT_US",e))(Qn||{});const _me="1.0.0-alpha.1",Cme={version:_me},{globalApiUrl:Tme,muiXProLicense:Sme,isDev:Eme}=window.globalConfig.mfeChartsUi,Rme=()=>({appVersion:Cme.version,globalApiUrl:Tme,muiXProLicense:Sme,i18nLoadPath:Eme?"/locales/{{lng}}/{{ns}}.json":"/src/lib/locales/{{lng}}/{{ns}}.json"});class GR extends Error{constructor(r,n,i,o){super(r);nt(this,"statusCode",0);nt(this,"description");nt(this,"details");this.statusCode=n,this.description=i||"",this.details=o||"",Object.setPrototypeOf(this,GR.prototype)}}const KU=e=>e==null,Pme=async e=>{var t,r,n,i,o;if(!e.ok){const a=await e.json(),s=(r=(t=a==null?void 0:a.Errors)==null?void 0:t.Error)==null?void 0:r[0];throw new GR(((i=(n=a==null?void 0:a.Errors)==null?void 0:n.Error)==null?void 0:i[0].ReasonCode)||((o=a==null?void 0:a.error)==null?void 0:o.message),e.status,s==null?void 0:s.Description,s==null?void 0:s.Details)}};function ht(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function xe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function we(e){xe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Fo(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ep(e,t){xe(2,arguments);var r=we(e),n=ht(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Ol(e,t){xe(2,arguments);var r=we(e),n=ht(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function Dp(e,t){xe(2,arguments);var r=we(e).getTime(),n=ht(t);return new Date(r+n)}var Ome=36e5;function XU(e,t){xe(2,arguments);var r=ht(t);return Dp(e,r*Ome)}var Mme={};function Ia(){return Mme}function Mf(e,t){var r,n,i,o,a,s,l,u;xe(1,arguments);var d=Ia(),p=ht((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=we(e),m=h.getDay(),g=(m<p?7:0)+m-p;return h.setDate(h.getDate()-g),h.setHours(0,0,0,0),h}function Cc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Sa(e){xe(1,arguments);var t=we(e);return t.setHours(0,0,0,0),t}var Ame=864e5;function Ime(e,t){xe(2,arguments);var r=Sa(e),n=Sa(t),i=r.getTime()-Cc(r),o=n.getTime()-Cc(n);return Math.round((i-o)/Ame)}var $me=6e4;function YU(e,t){xe(2,arguments);var r=ht(t);return Dp(e,r*$me)}function Dme(e,t){xe(2,arguments);var r=ht(t),n=r*3;return Ol(e,n)}function ZU(e,t){xe(2,arguments);var r=ht(t);return Dp(e,r*1e3)}function JU(e,t){xe(2,arguments);var r=ht(t),n=r*7;return ep(e,n)}function vT(e,t){xe(2,arguments);var r=ht(t);return Ol(e,r*12)}function ac(e,t){xe(2,arguments);var r=we(e),n=we(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var sb=6e4,lb=36e5,Lme=1e3;function QU(e,t){xe(2,arguments);var r=Sa(e),n=Sa(t);return r.getTime()===n.getTime()}function e3(e){return xe(1,arguments),e instanceof Date||Fo(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lp(e){if(xe(1,arguments),!e3(e)&&typeof e!="number")return!1;var t=we(e);return!isNaN(Number(t))}function kme(e,t){xe(2,arguments);var r=we(e),n=we(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Nme(e,t){xe(2,arguments);var r=we(e),n=we(t);return r.getFullYear()-n.getFullYear()}function eL(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function KR(e,t){xe(2,arguments);var r=we(e),n=we(t),i=eL(r,n),o=Math.abs(Ime(r,n));r.setDate(r.getDate()-i*o);var a=+(eL(r,n)===-i),s=i*(o-a);return s===0?0:s}function kp(e,t){return xe(2,arguments),we(e).getTime()-we(t).getTime()}var tL={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Fme="trunc";function Np(e){return e?tL[e]:tL[Fme]}function t3(e,t,r){xe(2,arguments);var n=kp(e,t)/lb;return Np(void 0)(n)}function r3(e,t,r){xe(2,arguments);var n=kp(e,t)/sb;return Np(void 0)(n)}function Tc(e){xe(1,arguments);var t=we(e);return t.setHours(23,59,59,999),t}function fv(e){xe(1,arguments);var t=we(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function jme(e){xe(1,arguments);var t=we(e);return Tc(t).getTime()===fv(t).getTime()}function XR(e,t){xe(2,arguments);var r=we(e),n=we(t),i=ac(r,n),o=Math.abs(kme(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=ac(r,n)===-i;jme(we(e))&&o===1&&ac(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function n3(e,t,r){xe(2,arguments);var n=XR(e,t)/3;return Np(void 0)(n)}function i3(e,t,r){xe(2,arguments);var n=kp(e,t)/1e3;return Np(void 0)(n)}function o3(e,t,r){xe(2,arguments);var n=KR(e,t)/7;return Np(void 0)(n)}function a3(e,t){xe(2,arguments);var r=we(e),n=we(t),i=ac(r,n),o=Math.abs(Nme(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=ac(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function Bme(e,t){var r;xe(1,arguments);var n=e||{},i=we(n.start),o=we(n.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],l=i;l.setHours(0,0,0,0);var u=Number((r=void 0)!==null&&r!==void 0?r:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)s.push(we(l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return s}function Ume(e){xe(1,arguments);var t=we(e);return t.setSeconds(0,0),t}function qme(e){xe(1,arguments);var t=we(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function uf(e){xe(1,arguments);var t=we(e);return t.setDate(1),t.setHours(0,0,0,0),t}function bg(e){xe(1,arguments);var t=we(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function cf(e){xe(1,arguments);var t=we(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Hme(e){xe(1,arguments);var t=we(e);return t.setMinutes(59,59,999),t}function xg(e,t){var r,n,i,o,a,s,l,u;xe(1,arguments);var d=Ia(),p=ht((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=we(e),m=h.getDay(),g=(m<p?-7:0)+6-(m-p);return h.setDate(h.getDate()+g),h.setHours(23,59,59,999),h}function Wme(e){xe(1,arguments);var t=we(e);return t.setSeconds(59,999),t}function zme(e){xe(1,arguments);var t=we(e),r=t.getMonth(),n=r-r%3+3;return t.setMonth(n,0),t.setHours(23,59,59,999),t}function Vme(e){xe(1,arguments);var t=we(e);return t.setMilliseconds(999),t}function s3(e,t){xe(2,arguments);var r=ht(t);return Dp(e,-r)}var Gme=864e5;function Kme(e){xe(1,arguments);var t=we(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/Gme)+1}function Sc(e){xe(1,arguments);var t=1,r=we(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function l3(e){xe(1,arguments);var t=we(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Sc(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Sc(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function Xme(e){xe(1,arguments);var t=l3(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Sc(r);return n}var Yme=6048e5;function u3(e){xe(1,arguments);var t=we(e),r=Sc(t).getTime()-Xme(t).getTime();return Math.round(r/Yme)+1}function ql(e,t){var r,n,i,o,a,s,l,u;xe(1,arguments);var d=Ia(),p=ht((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=we(e),m=h.getUTCDay(),g=(m<p?7:0)+m-p;return h.setUTCDate(h.getUTCDate()-g),h.setUTCHours(0,0,0,0),h}function YR(e,t){var r,n,i,o,a,s,l,u;xe(1,arguments);var d=we(e),p=d.getUTCFullYear(),h=Ia(),m=ht((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&n!==void 0?n:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(p+1,0,m),g.setUTCHours(0,0,0,0);var y=ql(g,t),x=new Date(0);x.setUTCFullYear(p,0,m),x.setUTCHours(0,0,0,0);var b=ql(x,t);return d.getTime()>=y.getTime()?p+1:d.getTime()>=b.getTime()?p:p-1}function Zme(e,t){var r,n,i,o,a,s,l,u;xe(1,arguments);var d=Ia(),p=ht((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=YR(e,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var g=ql(m,t);return g}var Jme=6048e5;function c3(e,t){xe(1,arguments);var r=we(e),n=ql(r,t).getTime()-Zme(r,t).getTime();return Math.round(n/Jme)+1}function _t(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var Ya={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return _t(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):_t(n+1,2)},d:function(t,r){return _t(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return _t(t.getUTCHours()%12||12,r.length)},H:function(t,r){return _t(t.getUTCHours(),r.length)},m:function(t,r){return _t(t.getUTCMinutes(),r.length)},s:function(t,r){return _t(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return _t(o,r.length)}},ju={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qme={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return Ya.y(t,r)},Y:function(t,r,n,i){var o=YR(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return _t(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):_t(a,r.length)},R:function(t,r){var n=l3(t);return _t(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return _t(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return _t(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return _t(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return Ya.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return _t(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=c3(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):_t(o,r.length)},I:function(t,r,n){var i=u3(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):_t(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ya.d(t,r)},D:function(t,r,n){var i=Kme(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):_t(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return _t(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return _t(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return _t(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=ju.noon:i===0?o=ju.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=ju.evening:i>=12?o=ju.afternoon:i>=4?o=ju.morning:o=ju.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Ya.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ya.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):_t(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):_t(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ya.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ya.s(t,r)},S:function(t,r){return Ya.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return nL(a);case"XXXX":case"XX":return ol(a);case"XXXXX":case"XXX":default:return ol(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return nL(a);case"xxxx":case"xx":return ol(a);case"xxxxx":case"xxx":default:return ol(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+rL(a,":");case"OOOO":default:return"GMT"+ol(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+rL(a,":");case"zzzz":default:return"GMT"+ol(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return _t(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return _t(a,r.length)}};function rL(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t;return r+String(i)+a+_t(o,2)}function nL(e,t){if(e%60===0){var r=e>0?"-":"+";return r+_t(Math.abs(e)/60,2)}return ol(e,t)}function ol(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=_t(Math.floor(i/60),2),a=_t(i%60,2);return n+o+r+a}var iL=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},d3=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},ege=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return iL(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",iL(i,r)).replace("{{time}}",d3(o,r))},yT={p:d3,P:ege},tge=["D","DD"],rge=["YY","YYYY"];function f3(e){return tge.indexOf(e)!==-1}function p3(e){return rge.indexOf(e)!==-1}function pv(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nge={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ige=function(t,r,n){var i,o=nge[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function A_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var oge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},age={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sge={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lge={date:A_({formats:oge,defaultWidth:"full"}),time:A_({formats:age,defaultWidth:"full"}),dateTime:A_({formats:sge,defaultWidth:"full"})},uge={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},cge=function(t,r,n,i){return uge[t]};function Wd(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var dge={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fge={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pge={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hge={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},gge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vge=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},yge={ordinalNumber:vge,era:Wd({values:dge,defaultWidth:"wide"}),quarter:Wd({values:fge,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Wd({values:pge,defaultWidth:"wide"}),day:Wd({values:hge,defaultWidth:"wide"}),dayPeriod:Wd({values:mge,defaultWidth:"wide",formattingValues:gge,defaultFormattingWidth:"wide"})};function zd(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?xge(s,function(p){return p.test(a)}):bge(s,function(p){return p.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var d=t.slice(a.length);return{value:u,rest:d}}}function bge(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function xge(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function wge(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var _ge=/^(\d+)(th|st|nd|rd)?/i,Cge=/\d+/i,Tge={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Sge={any:[/^b/i,/^(a|c)/i]},Ege={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rge={any:[/1/i,/2/i,/3/i,/4/i]},Pge={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Oge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Mge={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Age={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ige={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$ge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dge={ordinalNumber:wge({matchPattern:_ge,parsePattern:Cge,valueCallback:function(t){return parseInt(t,10)}}),era:zd({matchPatterns:Tge,defaultMatchWidth:"wide",parsePatterns:Sge,defaultParseWidth:"any"}),quarter:zd({matchPatterns:Ege,defaultMatchWidth:"wide",parsePatterns:Rge,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:zd({matchPatterns:Pge,defaultMatchWidth:"wide",parsePatterns:Oge,defaultParseWidth:"any"}),day:zd({matchPatterns:Mge,defaultMatchWidth:"wide",parsePatterns:Age,defaultParseWidth:"any"}),dayPeriod:zd({matchPatterns:Ige,defaultMatchWidth:"any",parsePatterns:$ge,defaultParseWidth:"any"})},Gc={code:"en-US",formatDistance:ige,formatLong:lge,formatRelative:cge,localize:yge,match:Dge,options:{weekStartsOn:0,firstWeekContainsDate:1}},Lge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nge=/^'([^]*?)'?$/,Fge=/''/g,jge=/[a-zA-Z]/;function Fp(e,t,r){var n,i,o,a,s,l,u,d,p,h,m,g,y,x,b,S,w,_;xe(2,arguments);var O=String(t),C=Ia(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:C.locale)!==null&&n!==void 0?n:Gc,M=ht((o=(a=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(u=r.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&a!==void 0?a:(p=C.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=ht((m=(g=(y=(x=r==null?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r==null||(b=r.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&y!==void 0?y:C.weekStartsOn)!==null&&g!==void 0?g:(w=C.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var $=we(e);if(!Lp($))throw new RangeError("Invalid time value");var N=Cc($),B=s3($,N),q={firstWeekContainsDate:M,weekStartsOn:D,locale:T,_originalDate:$},U=O.match(kge).map(function(F){var j=F[0];if(j==="p"||j==="P"){var V=yT[j];return V(F,T.formatLong)}return F}).join("").match(Lge).map(function(F){if(F==="''")return"'";var j=F[0];if(j==="'")return Bge(F);var V=Qme[j];if(V)return!(r!=null&&r.useAdditionalWeekYearTokens)&&p3(F)&&pv(F,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&f3(F)&&pv(F,t,String(e)),V(B,F,T.localize,q);if(j.match(jge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return F}).join("");return U}function Bge(e){var t=e.match(Nge);return t?t[1].replace(Fge,"'"):e}function ZR(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Uge(e){return ZR({},e)}var oL=1e3*60,hv=60*24,aL=hv*30,sL=hv*365;function qge(e,t,r){var n,i,o;xe(2,arguments);var a=Ia(),s=(n=(i=void 0)!==null&&i!==void 0?i:a.locale)!==null&&n!==void 0?n:Gc;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var l=ac(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u=ZR(Uge(r),{addSuffix:!1,comparison:l}),d,p;l>0?(d=we(t),p=we(e)):(d=we(e),p=we(t));var h=String((o=void 0)!==null&&o!==void 0?o:"round"),m;if(h==="floor")m=Math.floor;else if(h==="ceil")m=Math.ceil;else if(h==="round")m=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var g=p.getTime()-d.getTime(),y=g/oL,x=Cc(p)-Cc(d),b=(g-x)/oL,S=r==null?void 0:r.unit,w;if(S?w=String(S):y<1?w="second":y<60?w="minute":y<hv?w="hour":b<aL?w="day":b<sL?w="month":w="year",w==="second"){var _=m(g/1e3);return s.formatDistance("xSeconds",_,u)}else if(w==="minute"){var O=m(y);return s.formatDistance("xMinutes",O,u)}else if(w==="hour"){var C=m(y/60);return s.formatDistance("xHours",C,u)}else if(w==="day"){var T=m(b/hv);return s.formatDistance("xDays",T,u)}else if(w==="month"){var M=m(b/aL);return M===12&&S!=="month"?s.formatDistance("xYears",1,u):s.formatDistance("xMonths",M,u)}else if(w==="year"){var D=m(b/sL);return s.formatDistance("xYears",D,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function Hge(e,t){var r,n;xe(1,arguments);var i=we(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",u=o==="extended"?"-":"",d=o==="extended"?":":"";if(a!=="time"){var p=_t(i.getDate(),2),h=_t(i.getMonth()+1,2),m=_t(i.getFullYear(),4);s="".concat(m).concat(u).concat(h).concat(u).concat(p)}if(a!=="date"){var g=i.getTimezoneOffset();if(g!==0){var y=Math.abs(g),x=_t(Math.floor(y/60),2),b=_t(y%60,2),S=g<0?"+":"-";l="".concat(S).concat(x,":").concat(b)}else l="Z";var w=_t(i.getHours(),2),_=_t(i.getMinutes(),2),O=_t(i.getSeconds(),2),C=s===""?"":"T",T=[w,_,O].join(d);s="".concat(s).concat(C).concat(T).concat(l)}return s}function Wge(e){xe(1,arguments);var t=we(e),r=t.getDate();return r}function zge(e){xe(1,arguments);var t=we(e),r=t.getDay();return r}function h3(e){xe(1,arguments);var t=we(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function Vge(e){xe(1,arguments);var t=we(e),r=t.getHours();return r}function Gge(e){xe(1,arguments);var t=we(e),r=t.getMinutes();return r}function Kge(e){xe(1,arguments);var t=we(e),r=t.getMonth();return r}function Xge(e){xe(1,arguments);var t=we(e),r=t.getSeconds();return r}function Yge(e){return xe(1,arguments),we(e).getFullYear()}function _m(e,t){xe(2,arguments);var r=we(e),n=we(t);return r.getTime()>n.getTime()}function Bu(e,t){xe(2,arguments);var r=we(e),n=we(t);return r.getTime()<n.getTime()}function Zge(e,t){xe(2,arguments);var r=we(e),n=we(t);return r.getTime()===n.getTime()}function lL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Jge(e,t){if(e){if(typeof e=="string")return lL(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lL(e,t):void 0}}function uL(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Jge(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
427
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return a=u.done,u},e:function(u){s=!0,o=u},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw o}}}}function $t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ag(e,t)}function mv(e){return mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mv(e)}function m3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m3=function(){return!!e})()}function Qge(e,t){if(t&&(Fo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(e)}function Dt(e){var t=m3();return function(){var r,n=mv(e);if(t){var i=mv(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Qge(this,r)}}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sB(n.key),n)}}function Pt(e,t,r){return t&&eve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Me(e,t,r){return(t=sB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tve=10,g3=function(){function e(){Rt(this,e),Me(this,"priority",void 0),Me(this,"subPriority",0)}return Pt(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),rve=function(e){$t(r,e);var t=Dt(r);function r(n,i,o,a,s){var l;return Rt(this,r),l=t.call(this),l.value=n,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return Pt(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(g3),nve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",tve),Me($e(n),"subPriority",-1),n}return Pt(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(g3),Ft=function(){function e(){Rt(this,e),Me(this,"incompatibleTokens",void 0),Me(this,"priority",void 0),Me(this,"subPriority",void 0)}return Pt(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new rve(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),ive=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",140),Me($e(n),"incompatibleTokens",["R","u","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),Lr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},$o={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function kr(e,t){return e&&{value:t(e.value),rest:e.rest}}function br(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Do(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*lb+o*sb+a*Lme),rest:t.slice(r[0].length)}}function v3(e){return br(Lr.anyDigitsSigned,e)}function Ar(e,t){switch(e){case 1:return br(Lr.singleDigit,t);case 2:return br(Lr.twoDigits,t);case 3:return br(Lr.threeDigits,t);case 4:return br(Lr.fourDigits,t);default:return br(new RegExp("^\\d{1,"+e+"}"),t)}}function gv(e,t){switch(e){case 1:return br(Lr.singleDigitSigned,t);case 2:return br(Lr.twoDigitsSigned,t);case 3:return br(Lr.threeDigitsSigned,t);case 4:return br(Lr.fourDigitsSigned,t);default:return br(new RegExp("^-?\\d{1,"+e+"}"),t)}}function JR(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function y3(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function b3(e){return e%400===0||e%4===0&&e%100!==0}var ove=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",130),Me($e(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){var s=function(u){return{year:u,isTwoDigitYear:o==="yy"}};switch(o){case"y":return kr(Ar(4,i),s);case"yo":return kr(a.ordinalNumber(i,{unit:"year"}),s);default:return kr(Ar(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=y3(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var u=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),ave=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",130),Me($e(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){var s=function(u){return{year:u,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return kr(Ar(4,i),s);case"Yo":return kr(a.ordinalNumber(i,{unit:"year"}),s);default:return kr(Ar(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=YR(i,s);if(a.isTwoDigitYear){var u=y3(a.year,l);return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ql(i,s)}var d=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ql(i,s)}}]),r}(Ft),sve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",130),Me($e(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o){return gv(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Sc(s)}}]),r}(Ft),lve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",130),Me($e(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o){return gv(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),uve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",120),Me($e(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Ar(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),cve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",120),Me($e(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Ar(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),dve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Me($e(n),"priority",110),n}return Pt(r,[{key:"parse",value:function(i,o,a){var s=function(u){return u-1};switch(o){case"M":return kr(br(Lr.month,i),s);case"MM":return kr(Ar(2,i),s);case"Mo":return kr(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),fve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",110),Me($e(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){var s=function(u){return u-1};switch(o){case"L":return kr(br(Lr.month,i),s);case"LL":return kr(Ar(2,i),s);case"Lo":return kr(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ft);function pve(e,t,r){xe(2,arguments);var n=we(e),i=ht(t),o=c3(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var hve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",100),Me($e(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return br(Lr.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return ql(pve(i,a,s),s)}}]),r}(Ft);function mve(e,t){xe(2,arguments);var r=we(e),n=ht(t),i=u3(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var gve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",100),Me($e(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return br(Lr.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Sc(mve(i,a))}}]),r}(Ft),vve=[31,28,31,30,31,30,31,31,30,31,30,31],yve=[31,29,31,30,31,30,31,31,30,31,30,31],bve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",90),Me($e(n),"subPriority",1),Me($e(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return br(Lr.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=b3(a),l=i.getUTCMonth();return s?o>=1&&o<=yve[l]:o>=1&&o<=vve[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),xve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",90),Me($e(n),"subpriority",1),Me($e(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return br(Lr.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=b3(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ft);function QR(e,t,r){var n,i,o,a,s,l,u,d;xe(2,arguments);var p=Ia(),h=ht((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:p.weekStartsOn)!==null&&i!==void 0?i:(u=p.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=we(e),g=ht(t),y=m.getUTCDay(),x=g%7,b=(x+7)%7,S=(b<h?7:0)+g-y;return m.setUTCDate(m.getUTCDate()+S),m}var wve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",90),Me($e(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=QR(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),_ve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",90),Me($e(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a,s){var l=function(d){var p=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+p};switch(o){case"e":case"ee":return kr(Ar(o.length,i),l);case"eo":return kr(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=QR(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),Cve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",90),Me($e(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a,s){var l=function(d){var p=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+p};switch(o){case"c":case"cc":return kr(Ar(o.length,i),l);case"co":return kr(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=QR(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ft);function Tve(e,t){xe(2,arguments);var r=ht(t);r%7===0&&(r=r-7);var n=1,i=we(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,l=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+l),i}var Sve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",90),Me($e(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){var s=function(u){return u===0?7:u};switch(o){case"i":case"ii":return Ar(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return kr(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return kr(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return kr(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return kr(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=Tve(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ft),Eve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",80),Me($e(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(JR(a),0,0,0),i}}]),r}(Ft),Rve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",80),Me($e(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(JR(a),0,0,0),i}}]),r}(Ft),Pve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",80),Me($e(n),"incompatibleTokens",["a","b","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(JR(a),0,0,0),i}}]),r}(Ft),Ove=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",70),Me($e(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return br(Lr.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ft),Mve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",70),Me($e(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return br(Lr.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ft),Ave=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",70),Me($e(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return br(Lr.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ft),Ive=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",70),Me($e(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return br(Lr.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ft),$ve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",60),Me($e(n),"incompatibleTokens",["t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return br(Lr.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ft),Dve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",50),Me($e(n),"incompatibleTokens",["t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return br(Lr.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Ar(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ft),Lve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",30),Me($e(n),"incompatibleTokens",["t","T"]),n}return Pt(r,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return kr(Ar(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ft),kve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",10),Me($e(n),"incompatibleTokens",["t","T","x"]),n}return Pt(r,[{key:"parse",value:function(i,o){switch(o){case"X":return Do($o.basicOptionalMinutes,i);case"XX":return Do($o.basic,i);case"XXXX":return Do($o.basicOptionalSeconds,i);case"XXXXX":return Do($o.extendedOptionalSeconds,i);case"XXX":default:return Do($o.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ft),Nve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",10),Me($e(n),"incompatibleTokens",["t","T","X"]),n}return Pt(r,[{key:"parse",value:function(i,o){switch(o){case"x":return Do($o.basicOptionalMinutes,i);case"xx":return Do($o.basic,i);case"xxxx":return Do($o.basicOptionalSeconds,i);case"xxxxx":return Do($o.extendedOptionalSeconds,i);case"xxx":default:return Do($o.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ft),Fve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",40),Me($e(n),"incompatibleTokens","*"),n}return Pt(r,[{key:"parse",value:function(i){return v3(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ft),jve=function(e){$t(r,e);var t=Dt(r);function r(){var n;Rt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),Me($e(n),"priority",20),Me($e(n),"incompatibleTokens","*"),n}return Pt(r,[{key:"parse",value:function(i){return v3(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ft),Bve={G:new ive,y:new ove,Y:new ave,R:new sve,u:new lve,Q:new uve,q:new cve,M:new dve,L:new fve,w:new hve,I:new gve,d:new bve,D:new xve,E:new wve,e:new _ve,c:new Cve,i:new Sve,a:new Eve,b:new Rve,B:new Pve,h:new Ove,H:new Mve,K:new Ave,k:new Ive,m:new $ve,s:new Dve,S:new Lve,X:new kve,x:new Nve,t:new Fve,T:new jve},Uve=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hve=/^'([^]*?)'?$/,Wve=/''/g,zve=/\S/,Vve=/[a-zA-Z]/;function eP(e,t,r,n){var i,o,a,s,l,u,d,p,h,m,g,y,x,b,S,w,_,O;xe(3,arguments);var C=String(e),T=String(t),M=Ia(),D=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:M.locale)!==null&&i!==void 0?i:Gc;if(!D.match)throw new RangeError("locale must contain match property");var $=ht((a=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&l!==void 0?l:M.firstWeekContainsDate)!==null&&s!==void 0?s:(h=M.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=ht((g=(y=(x=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(S=n.locale)===null||S===void 0||(w=S.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&x!==void 0?x:M.weekStartsOn)!==null&&y!==void 0?y:(_=M.locale)===null||_===void 0||(O=_.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&g!==void 0?g:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return C===""?we(r):new Date(NaN);var B={firstWeekContainsDate:$,weekStartsOn:N,locale:D},q=[new nve],U=T.match(qve).map(function(le){var ce=le[0];if(ce in yT){var Ve=yT[ce];return Ve(le,D.formatLong)}return le}).join("").match(Uve),F=[],j=uL(U),V;try{var z=function(){var ce=V.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&p3(ce)&&pv(ce,T,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&f3(ce)&&pv(ce,T,e);var Ve=ce[0],je=Bve[Ve];if(je){var be=je.incompatibleTokens;if(Array.isArray(be)){var me=F.find(function(Je){return be.includes(Je.token)||Je.token===Ve});if(me)throw new RangeError("The format string mustn't contain `".concat(me.fullToken,"` and `").concat(ce,"` at the same time"))}else if(je.incompatibleTokens==="*"&&F.length>0)throw new RangeError("The format string mustn't contain `".concat(ce,"` and any other token at the same time"));F.push({token:Ve,fullToken:ce});var Ie=je.run(C,ce,D.match,B);if(!Ie)return{v:new Date(NaN)};q.push(Ie.setter),C=Ie.rest}else{if(Ve.match(Vve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ve+"`");if(ce==="''"?ce="'":Ve==="'"&&(ce=Gve(ce)),C.indexOf(ce)===0)C=C.slice(ce.length);else return{v:new Date(NaN)}}};for(j.s();!(V=j.n()).done;){var Q=z();if(Fo(Q)==="object")return Q.v}}catch(le){j.e(le)}finally{j.f()}if(C.length>0&&zve.test(C))return new Date(NaN);var oe=q.map(function(le){return le.priority}).sort(function(le,ce){return ce-le}).filter(function(le,ce,Ve){return Ve.indexOf(le)===ce}).map(function(le){return q.filter(function(ce){return ce.priority===le}).sort(function(ce,Ve){return Ve.subPriority-ce.subPriority})}).map(function(le){return le[0]}),ae=we(r);if(isNaN(ae.getTime()))return new Date(NaN);var he=s3(ae,Cc(ae)),Ae={},ve=uL(oe),fe;try{for(ve.s();!(fe=ve.n()).done;){var Ee=fe.value;if(!Ee.validate(he,B))return new Date(NaN);var _e=Ee.set(he,Ae,B);Array.isArray(_e)?(he=_e[0],ZR(Ae,_e[1])):he=_e}}catch(le){ve.e(le)}finally{ve.f()}return he}function Gve(e){return e.match(Hve)[1].replace(Wve,"'")}function bT(e){xe(1,arguments);var t=we(e);return t.setMinutes(0,0,0),t}function Kve(e,t){xe(2,arguments);var r=bT(e),n=bT(t);return r.getTime()===n.getTime()}function Xve(e,t){xe(2,arguments);var r=we(e),n=we(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Yve(e){xe(1,arguments);var t=we(e);return t.setMilliseconds(0),t}function Zve(e,t){xe(2,arguments);var r=we(e),n=we(t);return r.getFullYear()===n.getFullYear()}function Jve(e,t){xe(2,arguments);var r=we(e).getTime(),n=we(t.start).getTime(),i=we(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}function Qve(e,t){xe(2,arguments);var r=ht(t);return ep(e,-r)}function qi(e,t){var r;xe(1,arguments);var n=ht((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=nye(e),o;if(i.date){var a=iye(i.date,n);o=oye(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,u;if(i.time&&(l=aye(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=sye(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(s+l),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(s+l+u)}var Cm={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eye=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tye=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,rye=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nye(e){var t={},r=e.split(Cm.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Cm.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Cm.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=Cm.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function iye(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function oye(e,t){if(t===null)return new Date(NaN);var r=e.match(eye);if(!r)return new Date(NaN);var n=!!r[4],i=Vd(r[1]),o=Vd(r[2])-1,a=Vd(r[3]),s=Vd(r[4]),l=Vd(r[5])-1;if(n)return fye(t,s,l)?lye(t,s,l):new Date(NaN);var u=new Date(0);return!cye(t,o,a)||!dye(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}function Vd(e){return e?parseInt(e):1}function aye(e){var t=e.match(tye);if(!t)return NaN;var r=I_(t[1]),n=I_(t[2]),i=I_(t[3]);return pye(r,n,i)?r*lb+n*sb+i*1e3:NaN}function I_(e){return e&&parseFloat(e.replace(",","."))||0}function sye(e){if(e==="Z")return 0;var t=e.match(rye);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return hye(n,i)?r*(n*lb+i*sb):NaN}function lye(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var uye=[31,null,31,30,31,30,31,31,30,31,30,31];function x3(e){return e%400===0||e%4===0&&e%100!==0}function cye(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(uye[t]||(x3(e)?29:28))}function dye(e,t){return t>=1&&t<=(x3(e)?366:365)}function fye(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function pye(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function hye(e,t){return t>=0&&t<=59}function mye(e,t){xe(2,arguments);var r=we(e),n=ht(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=h3(a);return r.setMonth(n,Math.min(o,s)),r}function gye(e,t){xe(2,arguments);var r=we(e),n=ht(t);return r.setDate(n),r}function vye(e,t){xe(2,arguments);var r=we(e),n=ht(t);return r.setHours(n),r}function yye(e,t){xe(2,arguments);var r=we(e),n=ht(t);return r.setMinutes(n),r}function bye(e,t){xe(2,arguments);var r=we(e),n=ht(t);return r.setSeconds(n),r}function xye(e,t){xe(2,arguments);var r=we(e),n=ht(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function wye(e,t){xe(2,arguments);var r=ht(t);return Ol(e,-r)}function _ye(e,t){if(xe(2,arguments),!t||Fo(t)!=="object")return new Date(NaN);var r=t.years?ht(t.years):0,n=t.months?ht(t.months):0,i=t.weeks?ht(t.weeks):0,o=t.days?ht(t.days):0,a=t.hours?ht(t.hours):0,s=t.minutes?ht(t.minutes):0,l=t.seconds?ht(t.seconds):0,u=wye(e,n+r*12),d=Qve(u,o+i*7),p=s+a*60,h=l+p*60,m=h*1e3,g=new Date(d.getTime()-m);return g}const w3=[];let _l=0;for(;_l<64;)w3[_l]=0|Math.sin(++_l%Math.PI)*4294967296;function Cye(e){const t=[];let r,n,i,o=unescape(encodeURI(e))+"€",a=o.length;const s=[r=1732584193,n=4023233417,~r,~n];for(e=--a/4+2|15,t[--e]=a*8;~a;)t[a>>2]|=o.charCodeAt(a)<<8*a--;for(_l=o=0;_l<e;_l+=16){for(a=s;o<64;a=[i=a[3],r+((i=a[0]+[r&n|~r&i,i&r|~i&n,r^n^i,n^(r|~i)][a=o>>4]+w3[o]+~~t[_l|[o,5*o+1,3*o+5,7*o][a]&15])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>-a),r,n])r=a[1]|0,n=a[2];for(o=4;o;)s[--o]+=a[o]}for(e="";o<32;)e+=(s[o>>3]>>(1^o++)*4&15).toString(16);return e}const Tm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_3=e=>{let t="",r,n,i,o,a,s,l,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)o=Tm.indexOf(e.charAt(u++)),a=Tm.indexOf(e.charAt(u++)),s=Tm.indexOf(e.charAt(u++)),l=Tm.indexOf(e.charAt(u++)),r=o<<2|a>>4,n=(a&15)<<4|s>>2,i=(s&3)<<6|l,t=t+String.fromCharCode(r),s!=64&&(t=t+String.fromCharCode(n)),l!=64&&(t=t+String.fromCharCode(i));return t},Tye=["pro","premium"],Sye=["perpetual","subscription"];function ub(e){console.error(["*************************************************************","",...e,"","*************************************************************"].join(`
428
+ `))}function Eye(){ub(["MUI: Invalid license key.","","Your MUI X license key isn't valid. Please check your license key installation https://mui.com/r/x-license-key-installation.","","To purchase a license, please visit https://mui.com/r/x-get-license."])}function Rye(){ub(["MUI: License key plan mismatch.","","Your use of MUI X is not compatible with the plan of your license key.","You are rendering a `DataGridPremium` component that requires a license key for the Premium plan but your license key is for the Pro plan.","","You can solve the issue by upgrading to Premium at https://mui.com/r/x-get-license?scope=premium","Alternatively, you can replace the import of `DataGridPremium` with `DataGridPro`."])}function Pye({plan:e,packageName:t}){ub([`MUI: License key not found for ${t}.`,"",`This is a trial-only version of MUI X ${e}.`,"See the conditons here: https://mui.com/r/x-license-trial.","","To purchase a license, please visit https://mui.com/r/x-get-license."])}function Oye(){ub(["MUI: License key expired.","","Please visit https://mui.com/r/x-get-license to renew your subscription of MUI X."])}const xT=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();xT.__MUI_LICENSE_INFO__=xT.__MUI_LICENSE_INFO__||{key:void 0};class vv{static getLicenseInfo(){return xT.__MUI_LICENSE_INFO__}static getLicenseKey(){return vv.getLicenseInfo().key}static setLicenseKey(t){const r=vv.getLicenseInfo();r.key=t}}var Hr;(function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid",e.OutOfScope="OutOfScope"})(Hr||(Hr={}));const Mye=/^.*EXPIRY=([0-9]+),.*$/,Aye=e=>{let t;try{t=parseInt(e.match(Mye)[1],10),(!t||Number.isNaN(t))&&(t=null)}catch{t=null}return{scope:"pro",licensingModel:"perpetual",expiryTimestamp:t}},Iye=e=>{const t={scope:null,licensingModel:null,expiryTimestamp:null};return e.split(",").map(r=>r.split("=")).filter(r=>r.length===2).forEach(([r,n])=>{if(r==="S"&&(t.scope=n),r==="LM"&&(t.licensingModel=n),r==="E"){const i=parseInt(n,10);i&&!Number.isNaN(i)&&(t.expiryTimestamp=i)}}),t},$ye=e=>{const t=_3(e);return t.includes("KEYVERSION=1")?Aye(t):t.includes("KV=2")?Iye(t):null};function Dye({releaseInfo:e,licenseKey:t,acceptedScopes:r,isProduction:n}){if(!e)throw new Error("MUI: The release information is missing. Not able to validate license.");if(!t)return Hr.NotFound;const i=t.substr(0,32),o=t.substr(32);if(i!==Cye(o))return Hr.Invalid;const a=$ye(o);if(a==null)return console.error("Error checking license. Key version not found!"),Hr.Invalid;if(a.licensingModel==null||!Sye.includes(a.licensingModel))return console.error("Error checking license. Sales model not found or invalid!"),Hr.Invalid;if(a.expiryTimestamp==null)return console.error("Error checking license. Expiry timestamp not found or invalid!"),Hr.Invalid;if(a.licensingModel==="perpetual"||n){const s=parseInt(_3(e),10);if(Number.isNaN(s))throw new Error("MUI: The release information is invalid. Not able to validate license.");if(a.expiryTimestamp<s)return Hr.Expired}return a.scope==null||!Tye.includes(a.scope)?(console.error("Error checking license. scope not found or invalid!"),Hr.Invalid):r.includes(a.scope)?Hr.Valid:Hr.OutOfScope}const Sm={};function jp(e,t){return P.useMemo(()=>{const r=vv.getLicenseKey();if(Sm[e]&&Sm[e].key===r)return Sm[e].status;const n=e.includes("premium")?["premium"]:["pro","premium"],i=e.includes("premium")?"Premium":"Pro",o=Dye({releaseInfo:t,licenseKey:r,acceptedScopes:n,isProduction:!0});return Sm[e]={key:r,status:o},o===Hr.Invalid?Eye():o===Hr.OutOfScope?Rye():o===Hr.NotFound?Pye({plan:i,packageName:`@mui/${e}`}):o===Hr.Expired&&Oye(),o},[e,t])}function Lye(e){switch(e){case Hr.Expired:return"MUI X: License key expired";case Hr.Invalid:return"MUI X: Invalid license key";case Hr.OutOfScope:return"MUI X: License key plan mismatch";case Hr.NotFound:return"MUI X: Missing license key";default:throw new Error("MUI: Unhandled MUI X license status.")}}function kye(e){const{packageName:t,releaseInfo:r}=e,n=jp(t,r);return n===Hr.Valid?null:E.jsx("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24},children:Lye(n)})}function C3(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=C3(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ki(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=C3(e))&&(n&&(n+=" "),n+=t);return n}const cL=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},T3=e=>{setTimeout(e,0)},yv=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yv(t.shadowRoot):t:null},Nye=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:A({},e)}}}}),S3={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Fye=S3,jye=Nye(S3),E3=P.createContext(null);function Bye(e){const t=Fn({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:n,dateFormats:i,dateLibInstance:o,locale:a,adapterLocale:s,localeText:l}=t,u=P.useMemo(()=>new n({locale:s??a,formats:i,instance:o}),[n,a,s,i,o]),d=P.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),p=P.useMemo(()=>({utils:u,defaultDates:d,localeText:A({},Fye,l??{})}),[d,u,l]);return E.jsx(E3.Provider,{value:p,children:r})}const Bp=()=>{const e=P.useContext(E3);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},On=()=>Bp().utils,tP=()=>Bp().defaultDates,Kc=()=>Bp().localeText,R3=()=>{const e=On();return P.useRef(e.date()).current},$_=({date:e,disableFuture:t,disablePast:r,maxDate:n,minDate:i,isDateDisabled:o,utils:a})=>{const s=a.startOfDay(a.date());r&&a.isBefore(i,s)&&(i=s),t&&a.isAfter(n,s)&&(n=s);let l=e,u=e;for(a.isBefore(e,i)&&(l=a.date(i),u=null),a.isAfter(e,n)&&(u&&(u=a.date(n)),l=null);l||u;){if(l&&a.isAfter(l,n)&&(l=null),u&&a.isBefore(u,i)&&(u=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(u){if(!o(u))return u;u=a.addDays(u,-1)}}return null},bv=(e,t,r)=>{if(t==null)return r;const n=e.date(t);return e.isValid(n)?n:r};function Uye(e,t,r){const{value:n,onError:i}=e,o=Bp(),a=P.useRef(null),s=t({adapter:o,value:n,props:e});return P.useEffect(()=>{i&&!r(s,a.current)&&i(s,n),a.current=s},[r,i,a,s,n]),s}const wT=({props:e,value:t,adapter:r})=>{const n=r.utils.date(),i=r.utils.date(t),o=bv(r.utils,e.minDate,r.defaultDates.minDate),a=bv(r.utils,e.maxDate,r.defaultDates.maxDate);if(i===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(i)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(i,n)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(i,n)):return"disablePast";case!!(o&&r.utils.isBeforeDay(i,o)):return"minDate";case!!(a&&r.utils.isAfterDay(i,a)):return"maxDate";default:return null}},P3=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:n,disablePast:i})=>{const o=Bp();return P.useCallback(a=>wT({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:n,disablePast:i}})!==null,[o,e,t,r,n,i])},qye=(e,t,r)=>(n,i)=>{switch(i.type){case"changeMonth":return A({},n,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return A({},n,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(n.focusedDay!=null&&i.focusedDay!=null&&r.isSameDay(i.focusedDay,n.focusedDay))return n;const o=i.focusedDay!=null&&!t&&!r.isSameMonth(n.currentMonth,i.focusedDay);return A({},n,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(i.focusedDay):n.currentMonth,slideDirection:i.focusedDay!=null&&r.isAfterDay(i.focusedDay,n.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Hye=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:n,disableSwitchToMonthOnDayFocus:i=!1,maxDate:o,minDate:a,onMonthChange:s,reduceAnimations:l,shouldDisableDate:u})=>{var d;const p=R3(),h=On(),m=P.useRef(qye(!!l,i,h)).current,[g,y]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:e||p,currentMonth:h.startOfMonth((d=e??t)!=null?d:p),slideDirection:"left"}),x=P.useCallback(O=>{y(A({type:"changeMonth"},O)),s&&s(O.newMonth)},[s]),b=P.useCallback(O=>{const C=O??p;h.isSameMonth(C,g.currentMonth)||x({newMonth:h.startOfMonth(C),direction:h.isAfterDay(C,g.currentMonth)?"left":"right"})},[g.currentMonth,x,p,h]),S=P3({shouldDisableDate:u,minDate:a,maxDate:o,disableFuture:r,disablePast:n}),w=P.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),_=P.useCallback((O,C)=>{S(O)||y({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:C})},[S]);return{calendarState:g,changeMonth:b,changeFocusedDay:_,isDateDisabled:S,onMonthSwitchingAnimationEnd:w,handleChangeMonth:x}},Wye=e=>qe("MuiPickersFadeTransitionGroup",e);Ne("MuiPickersFadeTransitionGroup",["root"]);const zye=e=>{const{classes:t}=e;return He({root:["root"]},Wye,t)},dL=500,Vye=W(Ep,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Gye(e){const t=Fn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:n,reduceAnimations:i,transKey:o}=t,a=zye(t);return i?r:E.jsx(Vye,{className:ki(a.root,n),children:E.jsx(Zy,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:dL,enter:dL/2,exit:0},children:r},o)})}const Kye=typeof window<"u"?P.useLayoutEffect:P.useEffect,_T=36,Ec=2,Xye=320;function Yye(e){return qe("MuiPickersDay",e)}const Em=Ne("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Zye=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Jye=e=>{const{selected:t,disableMargin:r,disableHighlightToday:n,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e;return He({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!n&&i&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Yye,l)},O3=({theme:e,ownerState:t})=>A({},e.typography.caption,{width:_T,height:_T,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:zf(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:zf(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${Em.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Em.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Em.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${Ec}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Em.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),M3=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Qye=W(Aa,{name:"MuiPickersDay",slot:"Root",overridesResolver:M3})(O3),ebe=W("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:M3})(({theme:e,ownerState:t})=>A({},O3({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),D_=()=>{},tbe=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDaySelect:h,onFocus:m=D_,onBlur:g=D_,onKeyDown:y=D_,onMouseDown:x,outsideCurrentMonth:b,selected:S=!1,showDaysOutsideCurrentMonth:w=!1,children:_,today:O=!1}=n,C=de(n,Zye),T=A({},n,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:w,today:O}),M=Jye(T),D=On(),$=P.useRef(null),N=xr($,r);Kye(()=>{i&&!s&&!d&&!b&&$.current.focus()},[i,s,d,b]);const B=U=>{x&&x(U),b&&U.preventDefault()},q=U=>{s||h(a,"finish"),b&&U.currentTarget.focus(),p&&p(U)};return b&&!w?E.jsx(ebe,{className:ki(M.root,M.hiddenDaySpacingFiller,o),ownerState:T,role:C.role}):E.jsx(Qye,A({className:ki(M.root,o),ownerState:T,ref:N,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:U=>y(U,a),onFocus:U=>m(U,a),onBlur:U=>g(U,a),onClick:q,onMouseDown:B},C,{children:_||D.format(a,"dayOfMonth")}))}),A3=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,I3=P.memo(tbe,A3),rbe=e=>qe("PrivatePickersSlideTransition",e),_n=Ne("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),nbe=["children","className","reduceAnimations","slideDirection","transKey"],ibe=e=>{const{classes:t}=e;return He({root:["root"]},rbe,t)},$3=350,obe=W(Ep,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${_n["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${_n["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${_n.slideEnterActive}`]:t.slideEnterActive},{[`.${_n.slideExit}`]:t.slideExit},{[`.${_n["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${_n["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:$3,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${_n["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${_n["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${_n.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${_n.slideExit}`]:{transform:"translate(0%)"},[`& .${_n["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${_n["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),abe=e=>{const{children:t,className:r,reduceAnimations:n,slideDirection:i,transKey:o}=e,a=de(e,nbe),s=ibe(e);if(n)return E.jsx("div",{className:ki(s.root,r),children:t});const l={exit:_n.slideExit,enterActive:_n.slideEnterActive,enter:_n[`slideEnter-${i}`],exitActive:_n[`slideExitActiveLeft-${i}`]};return E.jsx(obe,{className:ki(s.root,r),childFactory:u=>P.cloneElement(u,{classNames:l}),role:"presentation",children:E.jsx(dR,A({mountOnEnter:!0,unmountOnExit:!0,timeout:$3,classNames:l},a,{children:t}),o)})},sbe=e=>qe("MuiDayPicker",e);Ne("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]);const lbe=e=>{const{classes:t}=e;return He({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},sbe,t)},ube=e=>e.charAt(0).toUpperCase(),D3=(_T+Ec*2)*6,cbe=W("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),dbe=W(Ke,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),fbe=W("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:D3}),pbe=W(abe,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:D3}),hbe=W("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),mbe=W("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ec}px 0`,display:"flex",justifyContent:"center"});function L3(e){const t=R3(),r=On(),n=Fn({props:e,name:"MuiDayPicker"}),i=lbe(n),{onFocusedDayChange:o,className:a,currentMonth:s,selectedDays:l,disabled:u,disableHighlightToday:d,focusedDay:p,isMonthSwitchingAnimating:h,loading:m,onSelectedDaysChange:g,onMonthSwitchingAnimationEnd:y,readOnly:x,reduceAnimations:b,renderDay:S,renderLoading:w=()=>E.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:_,slideDirection:O,TransitionProps:C,disablePast:T,disableFuture:M,minDate:D,maxDate:$,shouldDisableDate:N,dayOfWeekFormatter:B=ube,hasFocus:q,onFocusedViewChange:U,gridLabelId:F}=n,j=P3({shouldDisableDate:N,minDate:D,maxDate:$,disablePast:T,disableFuture:M}),[V,z]=P.useState(()=>p||t),Q=P.useCallback(be=>{U&&U(be)},[U]),oe=P.useCallback((be,me="finish")=>{x||g(be,me)},[g,x]),ae=P.useCallback(be=>{j(be)||(o(be),z(be),Q(!0))},[j,o,Q]),he=fn();function Ae(be,me){switch(be.key){case"ArrowUp":ae(r.addDays(me,-7)),be.preventDefault();break;case"ArrowDown":ae(r.addDays(me,7)),be.preventDefault();break;case"ArrowLeft":{const Ie=r.addDays(me,he.direction==="ltr"?-1:1),Je=he.direction==="ltr"?r.getPreviousMonth(me):r.getNextMonth(me),at=$_({utils:r,date:Ie,minDate:he.direction==="ltr"?r.startOfMonth(Je):Ie,maxDate:he.direction==="ltr"?Ie:r.endOfMonth(Je),isDateDisabled:j});ae(at||Ie),be.preventDefault();break}case"ArrowRight":{const Ie=r.addDays(me,he.direction==="ltr"?1:-1),Je=he.direction==="ltr"?r.getNextMonth(me):r.getPreviousMonth(me),at=$_({utils:r,date:Ie,minDate:he.direction==="ltr"?Ie:r.startOfMonth(Je),maxDate:he.direction==="ltr"?r.endOfMonth(Je):Ie,isDateDisabled:j});ae(at||Ie),be.preventDefault();break}case"Home":ae(r.startOfWeek(me)),be.preventDefault();break;case"End":ae(r.endOfWeek(me)),be.preventDefault();break;case"PageUp":ae(r.getNextMonth(me)),be.preventDefault();break;case"PageDown":ae(r.getPreviousMonth(me)),be.preventDefault();break}}function ve(be,me){ae(me)}function fe(be,me){q&&r.isSameDay(V,me)&&Q(!1)}const Ee=r.getMonth(s),_e=l.filter(be=>!!be).map(be=>r.startOfDay(be)),le=Ee,ce=P.useMemo(()=>P.createRef(),[le]),Ve=r.startOfWeek(t),je=P.useMemo(()=>{const be=r.startOfMonth(s),me=r.endOfMonth(s);return j(V)||r.isAfterDay(V,me)||r.isBeforeDay(V,be)?$_({utils:r,date:V,minDate:be,maxDate:me,disablePast:T,disableFuture:M,isDateDisabled:j}):V},[s,M,T,V,j,r]);return E.jsxs("div",{role:"grid","aria-labelledby":F,children:[E.jsx(cbe,{role:"row",className:i.header,children:r.getWeekdays().map((be,me)=>{var Ie;return E.jsx(dbe,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(Ve,me),"weekday"),className:i.weekDayLabel,children:(Ie=B==null?void 0:B(be))!=null?Ie:be},be+me.toString())})}),m?E.jsx(fbe,{className:i.loadingContainer,children:w()}):E.jsx(pbe,A({transKey:le,onExited:y,reduceAnimations:b,slideDirection:O,className:ki(a,i.slideTransition)},C,{nodeRef:ce,children:E.jsx(hbe,{ref:ce,role:"rowgroup",className:i.monthContainer,children:r.getWeekArray(s).map(be=>E.jsx(mbe,{role:"row",className:i.weekContainer,children:be.map(me=>{const Ie=je!==null&&r.isSameDay(me,je),Je=_e.some(Vt=>r.isSameDay(Vt,me)),at=r.isSameDay(me,t),ct={key:me==null?void 0:me.toString(),day:me,isAnimating:h,disabled:u||j(me),autoFocus:q&&Ie,today:at,outsideCurrentMonth:r.getMonth(me)!==Ee,selected:Je,disableHighlightToday:d,showDaysOutsideCurrentMonth:_,onKeyDown:Ae,onFocus:ve,onBlur:fe,onDaySelect:oe,tabIndex:Ie?0:-1,role:"gridcell","aria-selected":Je};return at&&(ct["aria-current"]="date"),S?S(me,_e,ct):ya(I3,A({},ct,{key:ct.key}))})},`week-${be[0]}`))})}))]})}const gbe=jr(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vbe=jr(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ybe=jr(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),bbe=jr(E.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),xbe=jr(E.jsxs(P.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");jr(E.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");const wbe=jr(E.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen");jr(E.jsxs(P.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function _be(e){return qe("MuiPickersArrowSwitcher",e)}Ne("MuiPickersArrowSwitcher",["root","spacer","button"]);const Cbe=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Tbe=e=>{const{classes:t}=e;return He({root:["root"],spacer:["spacer"],button:["button"]},_be,t)},Sbe=W("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Ebe=W("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),fL=W(us,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>A({},e.hidden&&{visibility:"hidden"})),k3=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:o,components:a,componentsProps:s,isLeftDisabled:l,isLeftHidden:u,isRightDisabled:d,isRightHidden:p,leftArrowButtonText:h,onLeftClick:m,onRightClick:g,rightArrowButtonText:y}=n,x=de(n,Cbe),S=fn().direction==="rtl",w=(s==null?void 0:s.leftArrowButton)||{},_=(a==null?void 0:a.LeftArrowIcon)||vbe,O=(s==null?void 0:s.rightArrowButton)||{},C=(a==null?void 0:a.RightArrowIcon)||ybe,T=n,M=Tbe(T);return E.jsxs(Sbe,A({ref:r,className:ki(M.root,o),ownerState:T},x,{children:[E.jsx(fL,A({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":h,title:h,disabled:l,edge:"end",onClick:m},w,{className:ki(M.button,w.className),ownerState:A({},T,w,{hidden:u}),children:S?E.jsx(C,{}):E.jsx(_,{})})),i?E.jsx(Ke,{variant:"subtitle1",component:"span",children:i}):E.jsx(Ebe,{className:M.spacer,ownerState:T}),E.jsx(fL,A({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":y,title:y,edge:"start",disabled:d,onClick:g},O,{className:ki(M.button,O.className),ownerState:A({},T,O,{hidden:p}),children:S?E.jsx(_,{}):E.jsx(C,{})}))]}))});function N3(e,{disableFuture:t,maxDate:r}){const n=On();return P.useMemo(()=>{const i=n.date(),o=n.startOfMonth(t&&n.isBefore(i,r)?i:r);return!n.isAfter(o,e)},[t,r,e,n])}function F3(e,{disablePast:t,minDate:r}){const n=On();return P.useMemo(()=>{const i=n.date(),o=n.startOfMonth(t&&n.isAfter(i,r)?i:r);return!n.isBefore(o,e)},[t,r,e,n])}const rP=e=>()=>{},Rbe=e=>qe("MuiPickersCalendarHeader",e);Ne("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);const Pbe=e=>{const{classes:t}=e;return He({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Rbe,t)},Obe=W("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Mbe=W("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>A({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Abe=W("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Ibe=W(us,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),$be=W(gbe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>A({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Dbe=rP();function Lbe(e){const t=Fn({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:n={},currentMonth:i,disabled:o,disableFuture:a,disablePast:s,getViewSwitchingButtonText:l,leftArrowButtonText:u,maxDate:d,minDate:p,onMonthChange:h,onViewChange:m,openView:g,reduceAnimations:y,rightArrowButtonText:x,views:b,labelId:S}=t;Dbe({leftArrowButtonText:u,rightArrowButtonText:x,getViewSwitchingButtonText:l});const w=Kc(),_=u??w.previousMonth,O=x??w.nextMonth,C=l??w.calendarViewSwitchingButtonAriaLabel,T=On(),M=Pbe(t),D=n.switchViewButton||{},$=()=>h(T.getNextMonth(i),"left"),N=()=>h(T.getPreviousMonth(i),"right"),B=N3(i,{disableFuture:a,maxDate:d}),q=F3(i,{disablePast:s,minDate:p}),U=()=>{if(!(b.length===1||!m||o))if(b.length===2)m(b.find(j=>j!==g)||b[0]);else{const j=b.indexOf(g)!==0?0:1;m(b[j])}};if(b.length===1&&b[0]==="year")return null;const F=t;return E.jsxs(Obe,{ownerState:F,className:M.root,children:[E.jsxs(Mbe,{role:"presentation",onClick:U,ownerState:F,"aria-live":"polite",className:M.labelContainer,children:[E.jsx(Gye,{reduceAnimations:y,transKey:T.format(i,"monthAndYear"),children:E.jsx(Abe,{id:S,ownerState:F,className:M.label,children:T.format(i,"monthAndYear")})}),b.length>1&&!o&&E.jsx(Ibe,A({size:"small",as:r.SwitchViewButton,"aria-label":C(g),className:M.switchViewButton},D,{children:E.jsx($be,{as:r.SwitchViewIcon,ownerState:F,className:M.switchViewIcon})}))]}),E.jsx(Zy,{in:g==="day",children:E.jsx(k3,{leftArrowButtonText:_,rightArrowButtonText:O,components:r,componentsProps:n,onLeftClick:N,onRightClick:$,isLeftDisabled:q,isRightDisabled:B})})]})}const cb=P.createContext(null),kbe=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent);function j3(e){return qe("MuiPickersToolbar",e)}const B3=Ne("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Nbe=e=>{const{classes:t,isLandscape:r}=e;return He({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},j3,t)},Fbe=W("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>A({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),jbe=W(zr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>A({flex:1},!e.isLandscape&&{alignItems:"center"})),Bbe=W(us,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${B3.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),Ube=e=>e==="clock"?E.jsx(xbe,{color:"inherit"}):E.jsx(bbe,{color:"inherit"}),qbe=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:s,isMobileKeyboardViewOpen:l,landscapeDirection:u="column",toggleMobileKeyboardView:d,toolbarTitle:p,viewType:h="calendar"}=n,m=n,g=Kc(),y=Nbe(m);return E.jsxs(Fbe,{ref:r,className:ki(y.root,o),ownerState:m,children:[E.jsx(Ke,{color:"text.secondary",variant:"overline",children:p}),E.jsxs(jbe,{container:!0,justifyContent:"space-between",className:y.content,ownerState:m,direction:s?u:"row",alignItems:s?"flex-start":"flex-end",children:[i,E.jsx(Bbe,{onClick:d,className:y.penIconButton,ownerState:m,color:"inherit","aria-label":a?a(l,h):g.inputModeToggleButtonAriaLabel(l,h),children:l?Ube(h):E.jsx(wbe,{color:"inherit"})})]})]})}),Hbe=["onAccept","onClear","onCancel","onSetToday","actions"],U3=e=>{const{onAccept:t,onClear:r,onCancel:n,onSetToday:i,actions:o}=e,a=de(e,Hbe),s=P.useContext(cb),l=Kc(),u=typeof o=="function"?o(s):o;if(u==null||u.length===0)return null;const d=u==null?void 0:u.map(p=>{switch(p){case"clear":return E.jsx(ma,{onClick:r,children:l.clearButtonLabel},p);case"cancel":return E.jsx(ma,{onClick:n,children:l.cancelButtonLabel},p);case"accept":return E.jsx(ma,{onClick:t,children:l.okButtonLabel},p);case"today":return E.jsx(ma,{onClick:i,children:l.todayButtonLabel},p);default:return null}});return E.jsx(KB,A({},a,{children:d}))};function Wbe(e){return qe("MuiPickersPopper",e)}Ne("MuiPickersPopper",["root","paper"]);const zbe=["onClick","onTouchStart"],Vbe=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"]},Wbe,t)},Gbe=W(mie,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Kbe=W(As,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>A({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Xbe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Ybe(e,t){const r=P.useRef(!1),n=P.useRef(!1),i=P.useRef(null),o=P.useRef(!1);P.useEffect(()=>{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=ha(l=>{if(!o.current)return;const u=n.current;n.current=!1;const d=Qr(i.current);if(!i.current||"clientX"in l&&Xbe(l,d))return;if(r.current){r.current=!1;return}let p;l.composedPath?p=l.composedPath().indexOf(i.current)>-1:p=!d.documentElement.contains(l.target)||i.current.contains(l.target),!p&&!u&&t(l)}),s=()=>{n.current=!0};return P.useEffect(()=>{if(e){const l=Qr(i.current),u=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),P.useEffect(()=>{if(e){const l=Qr(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),n.current=!1}}},[e,a]),[i,s,s]}function Zbe(e){var t;const r=Fn({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:i,containerRef:o=null,onBlur:a,onClose:s,onClear:l,onAccept:u,onCancel:d,onSetToday:p,open:h,PopperProps:m,role:g,TransitionComponent:y=SR,TrapFocusProps:x,PaperProps:b={},components:S,componentsProps:w}=r;P.useEffect(()=>{function Q(oe){h&&(oe.key==="Escape"||oe.key==="Esc")&&s()}return document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)}},[s,h]);const _=P.useRef(null);P.useEffect(()=>{g!=="tooltip"&&(h?_.current=yv(document):_.current&&_.current instanceof HTMLElement&&setTimeout(()=>{_.current instanceof HTMLElement&&_.current.focus()}))},[h,g]);const[O,C,T]=Ybe(h,a??s),M=P.useRef(null),D=xr(M,o),$=xr(D,O),N=r,B=Vbe(N),{onClick:q,onTouchStart:U}=b,F=de(b,zbe),j=Q=>{Q.key==="Escape"&&(Q.stopPropagation(),s())},V=(t=S==null?void 0:S.ActionBar)!=null?t:U3,z=(S==null?void 0:S.PaperContent)||P.Fragment;return E.jsx(Gbe,A({transition:!0,role:g,open:h,anchorEl:n,onKeyDown:j,className:B.root},m,{children:({TransitionProps:Q,placement:oe})=>E.jsx(zB,A({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},x,{children:E.jsx(y,A({},Q,{children:E.jsx(Kbe,A({tabIndex:-1,elevation:8,ref:$,onClick:ae=>{C(ae),q&&q(ae)},onTouchStart:ae=>{T(ae),U&&U(ae)},ownerState:A({},N,{placement:oe}),className:B.paper},F,{children:E.jsxs(z,A({},w==null?void 0:w.paperContent,{children:[i,E.jsx(V,A({onAccept:u,onClear:l,onCancel:d,onSetToday:p,actions:[]},w==null?void 0:w.actionBar))]}))}))}))}))}))}const Jbe=e=>{const[,t]=XK(l=>l+1,0),r=Dr(null),{replace:n,append:i}=e,o=n?n(e.format(e.value)):e.format(e.value),a=Dr(!1),s=l=>{const u=l.target.value;r.current=[u,l.target,u.length>o.length,a.current,o===e.format(u)],t()};return IE(()=>{if(r.current==null)return;let[l,u,d,p,h]=r.current;r.current=null;const m=p&&h,y=l.slice(u.selectionStart).search(e.accept||/\d/g),x=y!==-1?y:0,b=C=>(C.match(e.accept||/\d/g)||[]).join(""),S=b(l.substr(0,u.selectionStart)),w=C=>{let T=0,M=0;for(let D=0;D!==S.length;++D){let $=C.indexOf(S[D],T)+1,N=b(C).indexOf(S[D],M)+1;N-M>1&&($=T,N=M),M=Math.max(N,M),T=Math.max(T,$)}return T};if(e.mask===!0&&d&&!h){let C=w(l);const T=b(l.substr(C))[0];C=l.indexOf(T,C),l=`${l.substr(0,C)}${l.substr(C+1)}`}let _=e.format(l);i!=null&&u.selectionStart===l.length&&!h&&(d?_=i(_):b(_.slice(-1))===""&&(_=_.slice(0,-1)));const O=n?n(_):_;return o===O?t():e.onChange(O),()=>{let C=w(_);if(e.mask!=null&&(d||p&&!m))for(;_[C]&&b(_[C])==="";)C+=1;u.selectionStart=u.selectionEnd=C+(m?1+x:0)}}),It(()=>{const l=d=>{d.code==="Delete"&&(a.current=!0)},u=d=>{d.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",u)}},[]),{value:r.current!=null?r.current[0]:o,onChange:s}},pL=(e,t,r)=>{const n=e.date(t);return t===null?"":e.isValid(n)?e.formatByString(n,r):""},xv="_",q3="2019-11-21T22:30:00.000",H3="2019-01-01T09:00:00.000";function Qbe(e,t,r,n){if(e)return e;const o=n.formatByString(n.date(H3),t).replace(r,xv),a=n.formatByString(n.date(q3),t).replace(r,"_");return o===a?o:""}function e0e(e,t,r,n){if(!e)return!1;const o=n.formatByString(n.date(H3),t).replace(r,xv),a=n.formatByString(n.date(q3),t).replace(r,"_"),s=a===o&&e===a;return!s&&n.lib,s}const t0e=(e,t)=>r=>{let n=0;return r.split("").map((i,o)=>{if(t.lastIndex=0,n>e.length-1)return"";const a=e[n],s=e[n+1],l=t.test(i)?i:"",u=a===xv?l:a+l;return n+=u.length,o===r.length-1&&s&&s!==xv?u?u+s:"":u}).join("")},hL=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:n,inputFormat:i,inputProps:o,label:a,mask:s,onChange:l,rawValue:u,readOnly:d,rifmFormatter:p,TextFieldProps:h,validationError:m})=>{const g=On(),y=g.getFormatHelperText(i),{shouldUseMaskedInput:x,maskToUse:b}=P.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const U=Qbe(s,i,e,g);return{shouldUseMaskedInput:e0e(U,i,e,g),maskToUse:U}},[e,r,i,s,g]),S=P.useMemo(()=>x&&b?t0e(b,e):U=>U,[e,b,x]),w=u===null?null:g.date(u),[_,O]=P.useState(w),[C,T]=P.useState(pL(g,u,i)),M=P.useRef(),D=P.useRef(g.locale),$=P.useRef(i);P.useEffect(()=>{const U=u!==M.current,F=g.locale!==D.current,j=i!==$.current;if(M.current=u,D.current=g.locale,$.current=i,!U&&!F&&!j)return;const V=u===null?null:g.date(u),z=u===null||g.isValid(V);let Q=_===null&&V===null;if(_!==null&&V!==null){const ae=g.isEqual(_,V);if(ae)Q=!0;else{const he=Math.abs(g.getDiff(_,V));Q=he===0?ae:he<1e3}}if(!F&&!j&&(!z||Q))return;const oe=pL(g,u,i);O(V),T(oe)},[g,u,i,_]);const N=U=>{const F=U===""||U===s?"":U;T(F);const j=F===null?null:g.parse(F,i);n&&!g.isValid(j)||(O(j),l(j,F||void 0))},B=Jbe({value:C,onChange:N,format:p||S});return A({label:a,disabled:t,error:m,inputProps:A({},x?B:{value:C,onChange:U=>{N(U.currentTarget.value)}},{disabled:t,placeholder:y,readOnly:d,type:x?"tel":"text"},o)},h)},r0e=W("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"});W("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>A({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"}));const n0e=({open:e,onOpen:t,onClose:r})=>{const n=P.useRef(typeof e=="boolean").current,[i,o]=P.useState(!1);P.useEffect(()=>{if(n){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[n,e]);const a=P.useCallback(s=>{n||o(s),s&&t&&t(),!s&&r&&r()},[n,t,r]);return{isOpen:i,setIsOpen:a}},W3=(e,t)=>{const{onAccept:r,onChange:n,value:i,closeOnSelect:o}=e,a=On(),{isOpen:s,setIsOpen:l}=n0e(e),u=P.useMemo(()=>t.parseInput(a,i),[t,a,i]),[d,p]=P.useState(u),[h,m]=P.useState(()=>({committed:u,draft:u,resetFallback:u})),g=P.useCallback(C=>{m(T=>{switch(C.action){case"setAll":case"acceptAndClose":return{draft:C.value,committed:C.value,resetFallback:C.value};case"setCommitted":return A({},T,{draft:C.value,committed:C.value});case"setDraft":return A({},T,{draft:C.value});default:return T}}),(C.forceOnChangeCall||!C.skipOnChangeCall&&!t.areValuesEqual(a,h.committed,C.value))&&n(C.value),C.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,h.resetFallback,C.value)&&r(C.value))},[r,n,l,h,a,t]);P.useEffect(()=>{a.isValid(u)&&p(u)},[a,u]),P.useEffect(()=>{s&&g({action:"setAll",value:u,skipOnChangeCall:!0})},[s]),t.areValuesEqual(a,h.committed,u)||g({action:"setCommitted",value:u,skipOnChangeCall:!0});const y=P.useMemo(()=>({open:s,onClear:()=>{g({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,i,t.emptyValue)})},onAccept:()=>{g({value:h.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,i,u)})},onDismiss:()=>{g({value:h.committed,action:"acceptAndClose"})},onCancel:()=>{g({value:h.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{g({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[g,s,a,h,t,i,u]),[x,b]=P.useState(!1),S=P.useMemo(()=>({parsedValue:h.draft,isMobileKeyboardViewOpen:x,toggleMobileKeyboardView:()=>b(!x),onDateChange:(C,T,M="partial")=>{switch(M){case"shallow":return g({action:"setDraft",value:C,skipOnChangeCall:!0});case"partial":return g({action:"setDraft",value:C});case"finish":return g(o??T==="desktop"?{value:C,action:"acceptAndClose"}:{value:C,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[g,x,h.draft,o]),w=P.useCallback((C,T)=>{const M=t.valueReducer?t.valueReducer(a,d,C):C;n(M,T)},[n,t,d,a]),_=P.useMemo(()=>({onChange:w,open:s,rawValue:i,openPicker:()=>l(!0)}),[w,s,i,l]),O={pickerProps:S,inputProps:_,wrapperProps:y};return P.useDebugValue(O,()=>({MuiPickerState:{dateState:h,other:O}})),O},i0e=W(GB)({[`& .${_f.container}`]:{outline:0},[`& .${_f.paper}`]:{outline:0,minWidth:Xye}}),o0e=W(XB)({"&:first-of-type":{padding:0}}),a0e=e=>{var t;const{children:r,DialogProps:n={},onAccept:i,onClear:o,onDismiss:a,onCancel:s,onSetToday:l,open:u,components:d,componentsProps:p}=e,h=(t=d==null?void 0:d.ActionBar)!=null?t:U3;return E.jsxs(i0e,A({open:u,onClose:a},n,{children:[E.jsx(o0e,{children:r}),E.jsx(h,A({onAccept:i,onClear:o,onCancel:s,onSetToday:l,actions:["cancel","accept"]},p==null?void 0:p.actionBar))]}))},s0e=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function l0e(e){const{children:t,DateInputProps:r,DialogProps:n,onAccept:i,onClear:o,onDismiss:a,onCancel:s,onSetToday:l,open:u,PureDateInputComponent:d,components:p,componentsProps:h}=e,m=de(e,s0e);return E.jsxs(cb.Provider,{value:"mobile",children:[E.jsx(d,A({components:p},m,r)),E.jsx(a0e,{DialogProps:n,onAccept:i,onClear:o,onDismiss:a,onCancel:s,onSetToday:l,open:u,components:p,componentsProps:h,children:t})]})}function u0e(e){return qe("PrivatePickersToolbarText",e)}const mL=Ne("PrivatePickersToolbarText",["root","selected"]),c0e=["className","selected","value"],d0e=e=>{const{classes:t,selected:r}=e;return He({root:["root",r&&"selected"]},u0e,t)},f0e=W(Ke,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${mL.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${mL.selected}`]:{color:e.palette.text.primary}})),p0e=P.forwardRef(function(t,r){const{className:n,value:i}=t,o=de(t,c0e),a=d0e(t);return E.jsx(f0e,A({ref:r,className:ki(n,a.root),component:"span"},o,{children:i}))}),h0e=["align","className","selected","typographyClassName","value","variant"],m0e=e=>{const{classes:t}=e;return He({root:["root"]},j3,t)},g0e=W(ma,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),gL=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u}=n,d=de(n,h0e),p=m0e(n);return E.jsx(g0e,A({variant:"text",ref:r,className:ki(o,p.root)},d,{children:E.jsx(p0e,{align:i,className:s,variant:u,value:l,selected:a})}))}),Up=()=>"MTY3NzEwNjgwMDAwMA==";function v0e(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:n,open:i,PopperProps:o,PaperProps:a,TransitionComponent:s,onClear:l,onDismiss:u,onCancel:d,onAccept:p,onSetToday:h,components:m,componentsProps:g}=e,y=P.useRef(null),x=P.useRef(null),b=()=>{T3(()=>{var w,_;(w=y.current)!=null&&w.contains(yv(document))||(_=x.current)!=null&&_.contains(yv(document))||u()})},S=xr(r.ref,y);return E.jsxs(cb.Provider,{value:"desktop",children:[E.jsx(n,A({},r,{ref:S,onBlur:b})),E.jsx(Zbe,{role:"tooltip",open:i,containerRef:x,anchorEl:y.current,TransitionComponent:s,PopperProps:o,PaperProps:a,onBlur:b,onClose:u,onClear:l,onCancel:d,onAccept:p,onSetToday:h,components:m,componentsProps:g,children:t})]})}const z3=(e,t=[null,null])=>t.map(r=>r===null||!e.isValid(r)?null:e.startOfDay(e.date(r))),qp=(e,t)=>!!(t&&t[0]&&t[1]&&!e.isBefore(t[1],t[0])),wg=(e,t,r)=>qp(e,r)&&e.isWithinRange(t,r),CT=(e,t,r)=>qp(e,r)&&e.isSameDay(t,r[0]),TT=(e,t,r)=>qp(e,r)&&e.isSameDay(t,r[1]);function V3({utils:e,range:t,newDate:r,currentlySelectingRangeEnd:n}){const[i,o]=t;return n==="start"?o&&e.isAfter(r,o)?{nextSelection:"end",newRange:[r,null]}:{nextSelection:"end",newRange:[r,o]}:i&&e.isBefore(r,i)?{nextSelection:"end",newRange:[r,null]}:{nextSelection:"start",newRange:[i,r]}}function y0e(e){if(!e.newDate)return[null,null];const[t,r]=e.range,{newRange:n}=V3(e);if(!t||!r)return n;const[i,o]=n;return e.currentlySelectingRangeEnd==="end"?[r,o]:[i,t]}function b0e(e){return qe("MuiDateRangePickerToolbar",e)}Ne("MuiDateRangePickerToolbar",["root","container"]);const x0e=e=>{const{classes:t}=e;return He({root:["root"],container:["container"]},b0e,t)},w0e=W(qbe,{name:"MuiDateRangePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${B3.penIconButton}`]:{position:"relative",top:4}}),_0e=W("div",{name:"MuiDateRangePickerToolbar",slot:"Container",overridesResolver:(e,t)=>t.container})({display:"flex"}),C0e=P.forwardRef(function(t,r){const n=On(),i=Fn({props:t,name:"MuiDateRangePickerToolbar"}),{currentlySelectingRangeEnd:o,parsedValue:[a,s],endText:l,isMobileKeyboardViewOpen:u,setCurrentlySelectingRangeEnd:d,startText:p,toggleMobileKeyboardView:h,toolbarFormat:m,toolbarTitle:g}=i,y=Kc(),x=g??y.dateRangePickerDefaultToolbarTitle,b=a?n.formatByString(a,m||n.formats.shortDate):p,S=s?n.formatByString(s,m||n.formats.shortDate):l,w=i,_=x0e(w);return E.jsx(w0e,{toolbarTitle:x,isMobileKeyboardViewOpen:u,toggleMobileKeyboardView:h,isLandscape:!1,className:_.root,ownerState:w,ref:r,children:E.jsxs(_0e,{className:_.container,children:[E.jsx(gL,{variant:a!==null?"h5":"h6",value:b,selected:o==="start",onClick:()=>d("start")}),E.jsxs(Ke,{variant:"h5",children:[" ","–"," "]}),E.jsx(gL,{variant:s!==null?"h5":"h6",value:S,selected:o==="end",onClick:()=>d("end")})]})})}),G3=()=>{};function K3(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=K3(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function nP(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=K3(e))&&(n&&(n+=" "),n+=t);return n}function T0e(e){return qe("MuiDateRangePickerDay",e)}const so=Ne("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),S0e=["className","day","outsideCurrentMonth","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","selected"],E0e=Up(),R0e=e=>{const{isHighlighting:t,outsideCurrentMonth:r,isStartOfHighlighting:n,isStartOfMonth:i,isEndOfHighlighting:o,isEndOfMonth:a,isPreviewing:s,isStartOfPreviewing:l,isEndOfPreviewing:u,selected:d,classes:p}=e;return He({root:["root",t&&!r&&"rangeIntervalDayHighlight",(n||i)&&"rangeIntervalDayHighlightStart",(o||a)&&"rangeIntervalDayHighlightEnd"],rangeIntervalPreview:["rangeIntervalPreview",s&&!r&&"rangeIntervalDayPreview",(l||i)&&"rangeIntervalDayPreviewStart",(u||a)&&"rangeIntervalDayPreviewEnd"],day:["day",!d&&"notSelectedDate",!t&&"dayOutsideRangeInterval",!d&&t&&"dayInsideRangeInterval"]},T0e,p)},_g={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},Cg={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},X3=W("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${so.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${so.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${so.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},t.root]})(({theme:e,ownerState:t})=>A({[`&:first-of-type .${so.rangeIntervalDayPreview}`]:A({},Cg,{borderLeftColor:e.palette.divider}),[`&:last-of-type .${so.rangeIntervalDayPreview}`]:A({},_g,{borderRightColor:e.palette.divider})},t.isHighlighting&&!t.outsideCurrentMonth&&{borderRadius:0,color:e.palette.primary.contrastText,backgroundColor:zf(e.palette.primary.light,.6),"&:first-of-type":Cg,"&:last-of-type":_g},(t.isStartOfHighlighting||t.isStartOfMonth)&&A({},Cg,{paddingLeft:0,marginLeft:Ec/2}),(t.isEndOfHighlighting||t.isEndOfMonth)&&A({},_g,{paddingRight:0,marginRight:Ec/2})));X3.propTypes={ownerState:kj.object.isRequired};const Y3=W("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${so.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${so.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${so.rangeIntervalDayPreviewEnd}`]:t.rangeIntervalDayPreviewEnd},t.rangeIntervalPreview]})(({theme:e,ownerState:t})=>A({border:"2px solid transparent"},t.isPreviewing&&!t.outsideCurrentMonth&&A({borderRadius:0,border:`2px dashed ${e.palette.divider}`,borderLeftColor:"transparent",borderRightColor:"transparent"},(t.isStartOfPreviewing||t.isStartOfMonth)&&A({borderLeftColor:e.palette.divider},Cg),(t.isEndOfPreviewing||t.isEndOfMonth)&&A({borderRightColor:e.palette.divider},_g))));Y3.propTypes={ownerState:kj.object.isRequired};const P0e=W(I3,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${so.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${so.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${so.notSelectedDate}`]:t.notSelectedDate},t.day]})(({theme:e,ownerState:t})=>A({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"}},!t.selected&&{backgroundColor:"transparent"},!t.isHighlighting&&{"&:hover":{border:`1px solid ${e.palette.grey[500]}`}},!t.selected&&t.isHighlighting&&{color:e.palette.getContrastText(zf(e.palette.primary.light,.6))})),O0e=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiDateRangePickerDay"}),{className:i,day:o,outsideCurrentMonth:a,isHighlighting:s,isPreviewing:l,selected:u=!1}=n,d=de(n,S0e);jp("x-date-pickers-pro",E0e);const p=On(),h=p.isSameDay(o,p.endOfMonth(o)),m=p.isSameDay(o,p.startOfMonth(o)),g=A({},n,{selected:u,isStartOfMonth:m,isEndOfMonth:h}),y=R0e(g);return E.jsx(X3,{className:nP(y.root,i),ownerState:g,children:E.jsx(Y3,{className:y.rangeIntervalPreview,ownerState:g,children:E.jsx(P0e,A({},d,{ref:r,disableMargin:!0,day:o,selected:u,outsideCurrentMonth:a,className:y.day,ownerState:g}))})})}),M0e=(e,t)=>e.isHighlighting===t.isHighlighting&&e.isEndOfHighlighting===t.isEndOfHighlighting&&e.isStartOfHighlighting===t.isStartOfHighlighting&&e.isPreviewing===t.isPreviewing&&e.isEndOfPreviewing===t.isEndOfPreviewing&&e.isStartOfPreviewing===t.isStartOfPreviewing&&A3(e,t),Z3=P.memo(O0e,M0e),A0e=["changeMonth","components","componentsProps","parsedValue","leftArrowButtonText","maxDate","minDate","onSelectedDaysChange","renderDay","rightArrowButtonText","disabled","readOnly","classes"],I0e=["day"];function $0e(e){const{changeMonth:t,components:r,componentsProps:n,parsedValue:i,leftArrowButtonText:o,maxDate:a,minDate:s,onSelectedDaysChange:l,renderDay:u=(C,T)=>E.jsx(Z3,A({},T)),rightArrowButtonText:d,disabled:p,readOnly:h}=e,m=de(e,A0e),g=On(),y=tP(),x=s??y.minDate,b=a??y.maxDate,[S,w]=i,_=p&&S||x,O=p&&w||b;return E.jsxs(P.Fragment,{children:[E.jsx(Lbe,A({components:r,componentsProps:n,leftArrowButtonText:o,maxDate:O,minDate:_,onMonthChange:t,openView:"day",rightArrowButtonText:d,views:I0e,disabled:p},m)),E.jsx(L3,A({},m,{minDate:x,maxDate:b,disabled:p,readOnly:h,selectedDays:i,onSelectedDaysChange:l,onFocusedDayChange:G3,renderDay:(C,T,M)=>u(C,A({isPreviewing:!1,isStartOfPreviewing:!1,isEndOfPreviewing:!1,isHighlighting:wg(g,C,i),isStartOfHighlighting:CT(g,C,i),isEndOfHighlighting:TT(g,C,i)},M))}))]})}function D0e(e){return qe("MuiDateRangePickerInput",e)}Ne("MuiDateRangePickerInput",["root"]);const L0e=["currentlySelectingRangeEnd","disableOpenPicker","endText","onBlur","onChange","open","openPicker","rawValue","rawValue","readOnly","renderInput","setCurrentlySelectingRangeEnd","startText","TextFieldProps","validationError","className","mobile"],k0e=e=>{const{classes:t}=e;return He({root:["root"]},D0e,t)},N0e=W("div",{name:"MuiDateRangePickerInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",alignItems:"baseline",[e.breakpoints.down("xs")]:{flexDirection:"column",alignItems:"center"}})),iP=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiDateRangePickerInput"}),{currentlySelectingRangeEnd:i,disableOpenPicker:o,endText:a,onBlur:s,onChange:l,open:u,openPicker:d,rawValue:[p,h],readOnly:m,renderInput:g,setCurrentlySelectingRangeEnd:y,startText:x,TextFieldProps:b,validationError:[S,w],className:_,mobile:O}=n,C=de(n,L0e),T=On(),M=P.useRef(null),D=P.useRef(null),$=k0e(n);P.useEffect(()=>{if(u){if(i==="start"){var oe;(oe=M.current)==null||oe.focus()}else if(i==="end"){var ae;(ae=D.current)==null||ae.focus()}}},[i,u]);const N=P.useCallback((...oe)=>T3(()=>l(...oe)),[l]),B=(oe,ae)=>{N([oe,T.date(h)],ae)},q=(oe,ae)=>{N([T.date(p),oe],ae)},U=oe=>{oe.stopPropagation(),y&&y("start"),!m&&!o&&d()},F=oe=>{oe.stopPropagation(),y&&y("end"),!m&&!o&&d()},j=()=>{u&&y&&y("end")},V=()=>{u&&y&&y("start")},z=hL(A({},C,{readOnly:m,rawValue:p,onChange:B,label:x,validationError:S!==null,TextFieldProps:A({},b,{ref:M,focused:u?i==="start":void 0},!m&&!C.disabled&&{onClick:U}),inputProps:{onClick:U,onKeyDown:cL(U),onFocus:V,readOnly:O}})),Q=hL(A({},C,{readOnly:m,label:a,rawValue:h,onChange:q,validationError:w!==null,TextFieldProps:A({},b,{ref:D,focused:u?i==="end":void 0},!m&&!C.disabled&&{onClick:F}),inputProps:{onClick:F,onKeyDown:cL(F),onFocus:j,readOnly:O}}));return E.jsx(N0e,{onBlur:s,ref:r,className:nP($.root,_),children:g(z,Q)})});function F0e(e){return qe("MuiDateRangePickerViewDesktop",e)}Ne("MuiDateRangePickerViewDesktop",["root","container"]);const j0e=["calendars","changeMonth","components","componentsProps","currentlySelectingRangeEnd","currentMonth","parsedValue","disableFuture","disablePast","leftArrowButtonText","maxDate","minDate","onSelectedDaysChange","renderDay","rightArrowButtonText","className","classes"],B0e=e=>{const{classes:t}=e;return He({root:["root"],container:["container"]},F0e,t)},U0e=W("div",{name:"MuiDateRangePickerViewDesktop",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row"}),q0e=W("div",{name:"MuiDateRangePickerViewDesktop",slot:"Container",overridesResolver:(e,t)=>t.container})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`2px solid ${e.palette.divider}`}})),H0e=40,W0e=(H0e+Ec*2)*6,z0e=W(L3)({minWidth:312,minHeight:W0e}),V0e=W(k3)({padding:"16px 16px 8px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"});function G0e(e){switch(e){case 1:return[0];case 2:return[0,0];case 3:return[0,0,0];default:return new Array(e).fill(0)}}const K0e=rP();function X0e(e){const t=Fn({props:e,name:"MuiDateRangePickerViewDesktop"}),{calendars:r,changeMonth:n,components:i,componentsProps:o,currentlySelectingRangeEnd:a,currentMonth:s,parsedValue:l,disableFuture:u,disablePast:d,leftArrowButtonText:p,maxDate:h,minDate:m,onSelectedDaysChange:g,renderDay:y=(ae,he)=>E.jsx(Z3,A({},he)),rightArrowButtonText:x,className:b}=t,S=de(t,j0e);K0e({leftArrowButtonText:p,rightArrowButtonText:x});const w=Kc(),_=p??w.previousMonth,O=x??w.nextMonth,C=On(),T=B0e(t),M=tP(),D=m??M.minDate,$=h??M.maxDate,[N,B]=P.useState(null),q=N3(s,{disableFuture:u,maxDate:$}),U=F3(s,{disablePast:d,minDate:D}),F=y0e({utils:C,range:l,newDate:N,currentlySelectingRangeEnd:a}),j=P.useCallback(ae=>{B(null),g(ae)},[g]),V=ae=>{wg(C,ae,l)?B(null):B(ae)},z=P.useMemo(()=>({onMouseLeave:()=>B(null)}),[]),Q=P.useCallback(()=>{n(C.getNextMonth(s))},[n,s,C]),oe=P.useCallback(()=>{n(C.getPreviousMonth(s))},[n,s,C]);return E.jsx(U0e,{className:nP(b,T.root),children:G0e(r).map((ae,he)=>{const Ae=C.setMonth(s,C.getMonth(s)+he);return E.jsxs(q0e,{className:T.container,children:[E.jsx(V0e,{onLeftClick:oe,onRightClick:Q,isLeftHidden:he!==0,isRightHidden:he!==r-1,isLeftDisabled:U,isRightDisabled:q,leftArrowButtonText:_,components:i,componentsProps:o,rightArrowButtonText:O,children:C.format(Ae,"monthAndYear")}),ya(z0e,A({},S,{minDate:D,maxDate:$,disablePast:d,disableFuture:u,key:he,selectedDays:l,onFocusedDayChange:G3,onSelectedDaysChange:j,currentMonth:Ae,TransitionProps:z,renderDay:(ve,fe,Ee)=>y(ve,A({isPreviewing:wg(C,ve,F),isStartOfPreviewing:CT(C,ve,F),isEndOfPreviewing:TT(C,ve,F),isHighlighting:wg(C,ve,l),isStartOfHighlighting:CT(C,ve,l),isEndOfHighlighting:TT(C,ve,l),onMouseEnter:()=>V(ve)},Ee))}))]},he)})})}const Y0e=["calendars","className","currentlySelectingRangeEnd","parsedValue","DateInputProps","defaultCalendarMonth","disableAutoMonthSwitching","disableFuture","disableHighlightToday","disablePast","endText","isMobileKeyboardViewOpen","maxDate","minDate","onDateChange","onMonthChange","open","reduceAnimations","setCurrentlySelectingRangeEnd","shouldDisableDate","showToolbar","startText","toggleMobileKeyboardView","toolbarFormat","toolbarTitle"],Z0e=Up();function J0e(e){const{calendars:t,className:r,currentlySelectingRangeEnd:n,parsedValue:i,DateInputProps:o,defaultCalendarMonth:a,disableAutoMonthSwitching:s=!1,disableFuture:l,disableHighlightToday:u,disablePast:d,endText:p,isMobileKeyboardViewOpen:h,maxDate:m,minDate:g,onDateChange:y,onMonthChange:x,open:b,reduceAnimations:S=kbe,setCurrentlySelectingRangeEnd:w,shouldDisableDate:_,showToolbar:O,startText:C,toggleMobileKeyboardView:T,toolbarFormat:M,toolbarTitle:D}=e,$=de(e,Y0e),N=On(),B=P.useContext(cb),q=_&&(fe=>_==null?void 0:_(fe,n)),[U,F]=i,{changeMonth:j,calendarState:V,isDateDisabled:z,onMonthSwitchingAnimationEnd:Q,changeFocusedDay:oe}=Hye({date:U||F,defaultCalendarMonth:a,disableFuture:l,disablePast:d,disableSwitchToMonthOnDayFocus:!0,maxDate:m,minDate:g,onMonthChange:x,reduceAnimations:S,shouldDisableDate:q}),ae=O??B!=="desktop",he=fe=>{if(!fe||!N.isValid(fe)||z(fe))return;const Ee=n==="start"?U:F;if(Ee===null)return;const _e=B==="mobile"?0:t-1,le=N.getMonth(V.currentMonth),ce=N.getMonth(fe);if(!N.isSameYear(V.currentMonth,fe)||ce<le||ce>le+_e){const Ve=n==="start"?Ee:N.addMonths(Ee,-_e);j(Ve)}};P.useEffect(()=>{s||!b||he(n==="start"?U:F)},[n,i]);const Ae=P.useCallback(fe=>{const{nextSelection:Ee,newRange:_e}=V3({newDate:fe,utils:N,range:i,currentlySelectingRangeEnd:n});w(Ee);const le=n==="end"&&qp(N,_e);y(_e,B,le?"finish":"partial")},[n,i,y,w,N,B]),ve=()=>{const fe=A({parsedValue:i,changeFocusedDay:oe,onSelectedDaysChange:Ae,reduceAnimations:S,disableHighlightToday:u,onMonthSwitchingAnimationEnd:Q,changeMonth:j,currentlySelectingRangeEnd:n,disableFuture:l,disablePast:d,minDate:g,maxDate:m,shouldDisableDate:q},V,$);switch(B){case"desktop":return E.jsx(X0e,A({calendars:t},fe));default:return E.jsx($0e,A({},fe))}};return E.jsxs("div",{className:r,children:[E.jsx(kye,{packageName:"x-date-pickers-pro",releaseInfo:Z0e}),ae&&E.jsx(C0e,{parsedValue:i,isMobileKeyboardViewOpen:h,toggleMobileKeyboardView:T,currentlySelectingRangeEnd:n,setCurrentlySelectingRangeEnd:w,startText:C,endText:p,toolbarTitle:D,toolbarFormat:M}),h?E.jsx(r0e,{children:E.jsx(iP,A({disableOpenPicker:!0,ignoreInvalidInputs:!0},o))}):ve()]})}const J3=J0e,Q0e=["shouldDisableDate"],exe=({props:e,value:t,adapter:r})=>{const[n,i]=t;if(n===null||i===null)return[null,null];const{shouldDisableDate:o}=e,a=de(e,Q0e),s=[wT({adapter:r,value:n,props:A({},a,{shouldDisableDate:l=>!!(o!=null&&o(l,"start"))})}),wT({adapter:r,value:i,props:A({},a,{shouldDisableDate:l=>!!(o!=null&&o(l,"end"))})})];return s[0]||s[1]?s:qp(r.utils,z3(r.utils,t))?[null,null]:["invalidRange","invalidRange"]},txe=(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],Q3=e=>Uye(e,exe,txe),rxe=rP();function eq(e,t){var r,n;const i=On(),o=tP(),a=Fn({props:e,name:t});rxe({startText:a.startText,endText:a.endText});const s=Kc(),l=(r=a.startText)!=null?r:s.start,u=(n=a.endText)!=null?n:s.end;return A({disableFuture:!1,disablePast:!1,calendars:2,inputFormat:i.formats.keyboardDate},a,{endText:u,startText:l,minDate:bv(i,a.minDate,o.minDate),maxDate:bv(i,a.maxDate,o.maxDate)})}const tq={emptyValue:[null,null],getTodayValue:e=>[e.date(),e.date()],parseInput:z3,areValuesEqual:(e,t,r)=>e.isEqual(t[0],r[0])&&e.isEqual(t[1],r[1])},nxe=["value","onChange","PopperProps","PaperProps","TransitionComponent","components","componentsProps"],ixe=Up(),oxe=iP,axe=P.forwardRef(function(t,r){jp("x-date-pickers-pro",ixe);const n=eq(t,"MuiDesktopDateRangePicker"),[i,o]=P.useState("start"),a=Q3(n),{pickerProps:s,inputProps:l,wrapperProps:u}=W3(n,tq),{PopperProps:d,PaperProps:p,TransitionComponent:h,components:m,componentsProps:g}=n,y=de(n,nxe),x=A({},l,y,{components:m,componentsProps:g,currentlySelectingRangeEnd:i,setCurrentlySelectingRangeEnd:o,validationError:a,ref:r});return E.jsx(v0e,A({},u,{DateInputProps:x,KeyboardDateInputComponent:oxe,PopperProps:d,PaperProps:p,TransitionComponent:h,components:m,componentsProps:g,children:E.jsx(J3,A({open:u.open,DateInputProps:x,currentlySelectingRangeEnd:i,setCurrentlySelectingRangeEnd:o},s,{components:m,componentsProps:g},y))}))}),sxe=["value","onChange","components","componentsProps"],lxe=Up(),uxe=iP,cxe=P.forwardRef(function(t,r){jp("x-date-pickers-pro",lxe);const n=eq(t,"MuiMobileDateRangePicker"),{value:i,onChange:o,components:a,componentsProps:s}=n,l=de(n,sxe),[u,d]=P.useState("start"),p=A({},l,{value:i,onChange:o}),{pickerProps:h,inputProps:m,wrapperProps:g}=W3(p,tq),y=Q3(n),x=A({},m,l,{components:a,componentsProps:s,currentlySelectingRangeEnd:u,setCurrentlySelectingRangeEnd:d,validationError:y,ref:r,mobile:!0});return E.jsx(l0e,A({},l,g,{DateInputProps:x,PureDateInputComponent:uxe,components:a,componentsProps:s,children:E.jsx(J3,A({open:g.open,DateInputProps:x,currentlySelectingRangeEnd:u,setCurrentlySelectingRangeEnd:d},h,{components:a,componentsProps:s},l))}))}),dxe=["desktopModeMediaQuery","DialogProps","PopperProps","PaperProps","TransitionComponent"],fxe=Up(),pxe=P.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiDateRangePicker"});jp("x-date-pickers-pro",fxe);const{desktopModeMediaQuery:i="@media (pointer: fine)",DialogProps:o,PopperProps:a,PaperProps:s,TransitionComponent:l}=n,u=de(n,dxe);return Ts(i,{defaultMatches:!0})?E.jsx(axe,A({ref:r,PopperProps:a,PaperProps:s,TransitionComponent:l},u)):E.jsx(cxe,A({ref:r,DialogProps:o},u))}),oP=()=>{const e=jye,t=Gc;return{localeText:e.components.MuiLocalizationProvider.defaultProps.localeText,adapterLocale:t}},hxe=gp({activeAccount:null,email:"",handleCloseWelcomeVideo:()=>{},internalDomains:[],isError:!1,ready:!1,setActiveAccount:()=>{},setShowReleaseDialog:()=>{},showReleaseDialog:!1,showWelcomeVideo:!1,superUser:!1,userInfo:{},userPreferences:null}),mxe=()=>Ra(hxe),Xc=()=>{const e=fn(),t=Ts(e.breakpoints.down("md")),r=Ts(e.breakpoints.between("sm","lg"));return{isMobile:t,isTablet:r}};var Tg=(e=>(e.Hour12="12-hour",e.Hour24="24-hour",e))(Tg||{}),wv=(e=>(e.MMddyyyy="MM/dd/yyyy",e.ddMMyyyy="dd/MM/yyyy",e.yyyyMMdd="yyyy/MM/dd",e))(wv||{}),df=(e=>(e.Hour12="h:mm a",e.Hour24="HH:mm",e))(df||{});const gxe="MM/dd/yyyy",_v=(e,t,r="-")=>!e||e===""||e==="-"?r:(typeof e=="number"&&(e=bxe(e)),yxe(e,t||gxe));function vL(e,t,r){return e.includes(r)?r:t}const aP=()=>{const{userPreferences:e}=mxe(),t=wv.MMddyyyy,r=Tg.Hour12,n=Intl.DateTimeFormat().resolvedOptions().timeZone,i=Jr(()=>({dateFormat:vL(Object.values(wv),t,e==null?void 0:e.dateFormat),timeFormat:vL(Object.values(Tg),r,e==null?void 0:e.timeFormat),timeZone:(e==null?void 0:e.timeZone)||n}),[t,r,n,e==null?void 0:e.dateFormat,e==null?void 0:e.timeFormat,e==null?void 0:e.timeZone]),o=Jr(()=>i.timeFormat===Tg.Hour12,[i.timeFormat]),a=At(u=>{let d=o?"hh:mm aa":"HH:mm";return u&&(d=o?"hh:mm:ss aa":"HH:mm:ss"),d},[o]),s=At((u,d,p,h)=>{let m=i.dateFormat;return d&&(m=`${m} ${a(p)}`),_v(u,m,h)},[i.dateFormat,a]),l=At((u,d,p)=>{const h=a(d);return _v(u,h,p)},[a]);return{...i,defaultDateFormat:t,defaultTimeFormat:r,defaultTimeZone:n,isTime12Hour:o,formatDateTime:s,formatTime:l,getTimeFormatString:a}};var ts=(e=>(e.DEVICE_NAME="deviceName",e.FUNCTION_VALUE="functionValue",e.THRESHOLD="threshold",e))(ts||{}),rq=(e=>(e.ASC="asc",e.DESC="desc",e))(rq||{});const db=()=>{const[e,t]=qr({preferredDateFormat:wv.MMddyyyy,preferredTimeFormat:df.Hour24}),r=()=>{const l=localStorage.getItem("date-format");if(l)try{const u=JSON.parse(l);u&&typeof u=="object"&&t(u)}catch(u){console.error("Error parsing date-format from local storage:",u)}};It(()=>{r();const l=()=>{r()};return window.addEventListener("dateFormatChanged",l),()=>{window.removeEventListener("dateFormatChanged",l)}},[]);const n=Jr(()=>e.preferredTimeFormat===df.Hour12,[e.preferredTimeFormat]),i=At(l=>{let u=n?df.Hour12:df.Hour24;return l&&(u=n?"hh:mm:ss a":"HH:mm:ss"),u},[n]),o=Jr(()=>`${e.preferredDateFormat} ${e.preferredTimeFormat}`,[e]),a=At((l,u,d,p)=>{let h=e.preferredDateFormat;return u&&(h=`${h} ${i(d)}`),_v(l,h,p)},[e.preferredDateFormat,i]),s=At((l,u,d)=>{const p=i(u);return _v(l,p,d)},[i]);return{dateTimeFormatPreferences:e,dateTimeFormatUserPreferenceString:o,formatDateTime:a,formatTime:s,getTimeFormatString:i}},vxe=e=>{if(e instanceof Date)return e;const t=e.replace(/-/g,"/").replace("T"," "),r=qi(e);return Lp(r)?r:eP(t,"dd/MMM/yy HH:mm:ss",new Date)},yxe=(e,t)=>Fp(vxe(e),t),bxe=e=>new Date(e*1e3);var nq={exports:{}},Gr={};/**
429
+ * @license React
430
+ * react-dom-test-utils.production.min.js
431
+ *
432
+ * Copyright (c) Facebook, Inc. and its affiliates.
433
+ *
434
+ * This source code is licensed under the MIT license found in the
435
+ * LICENSE file in the root directory of this source tree.
436
+ */var Yc=ot,sP=yl;function iq(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 yL(e){if(iq(e)!==e)throw Error("Unable to find node on an unmounted component.")}function xxe(e){var t=e.alternate;if(!t){if(t=iq(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return yL(i),e;if(o===n)return yL(i),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}var ei=Object.assign;function L_(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 Rm(){return!0}function bL(){return!1}function yi(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Rm:bL,this.isPropagationStopped=bL,this}return ei(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=Rm)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Rm)},persist:function(){},isPersistent:Rm}),t}var Zc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wxe=yi(Zc),Hp=ei({},Zc,{view:0,detail:0});yi(Hp);var k_,N_,Gd,fb=ei({},Hp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lP,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!==Gd&&(Gd&&e.type==="mousemove"?(k_=e.screenX-Gd.screenX,N_=e.screenY-Gd.screenY):N_=k_=0,Gd=e),k_)},movementY:function(e){return"movementY"in e?e.movementY:N_}});yi(fb);var _xe=ei({},fb,{dataTransfer:0});yi(_xe);var Cxe=ei({},Hp,{relatedTarget:0});yi(Cxe);var Txe=ei({},Zc,{animationName:0,elapsedTime:0,pseudoElement:0});yi(Txe);var Sxe=ei({},Zc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}});yi(Sxe);var Exe=ei({},Zc,{data:0});yi(Exe);var Rxe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pxe={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"},Oxe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mxe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Oxe[e])?!!t[e]:!1}function lP(){return Mxe}var Axe=ei({},Hp,{key:function(e){if(e.key){var t=Rxe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=L_(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pxe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lP,charCode:function(e){return e.type==="keypress"?L_(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?L_(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}});yi(Axe);var Ixe=ei({},fb,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});yi(Ixe);var $xe=ei({},Hp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lP});yi($xe);var Dxe=ei({},Zc,{propertyName:0,elapsedTime:0,pseudoElement:0});yi(Dxe);var Lxe=ei({},fb,{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});yi(Lxe);function kxe(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var Af=!1,Cv=null,Tv=!1,ST=null,Nxe={onError:function(e){Af=!0,Cv=e}};function Fxe(e,t,r,n,i,o,a,s,l){Af=!1,Cv=null,kxe.apply(Nxe,arguments)}function jxe(e,t,r,n,i,o,a,s,l){if(Fxe.apply(this,arguments),Af){if(Af){var u=Cv;Af=!1,Cv=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");Tv||(Tv=!0,ST=u)}}var uP=Array.isArray,Wp=sP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,Bxe=Wp[0],Uxe=Wp[1],qxe=Wp[2],Hxe=Wp[3],Wxe=Wp[4],zxe=Yc.unstable_act;function Vxe(){}function Gxe(e,t){if(!e)return[];if(e=xxe(e),!e)return[];for(var r=e,n=[];;){if(r.tag===5||r.tag===6||r.tag===1||r.tag===0){var i=r.stateNode;t(i)&&n.push(i)}if(r.child)r.child.return=r,r=r.child;else{if(r===e)return n;for(;!r.sibling;){if(!r.return||r.return===e)return n;r=r.return}r.sibling.return=r.return,r=r.sibling}}}function Yl(e,t){if(e&&!e._reactInternals){var r=String(e);throw e=uP(e)?"an array":e&&e.nodeType===1&&e.tagName?"a DOM node":r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r,Error(t+"(...): the first argument must be a React class instance. Instead received: "+(e+"."))}}function pb(e){return!(!e||e.nodeType!==1||!e.tagName)}function cP(e){return pb(e)?!1:e!=null&&typeof e.render=="function"&&typeof e.setState=="function"}function oq(e,t){return cP(e)?e._reactInternals.type===t:!1}function hb(e,t){return Yl(e,"findAllInRenderedTree"),e?Gxe(e._reactInternals,t):[]}function aq(e,t){return Yl(e,"scryRenderedDOMComponentsWithClass"),hb(e,function(r){if(pb(r)){var n=r.className;typeof n!="string"&&(n=r.getAttribute("class")||"");var i=n.split(/\s+/);if(!uP(t)){if(t===void 0)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");t=t.split(/\s+/)}return t.every(function(o){return i.indexOf(o)!==-1})}return!1})}function sq(e,t){return Yl(e,"scryRenderedDOMComponentsWithTag"),hb(e,function(r){return pb(r)&&r.tagName.toUpperCase()===t.toUpperCase()})}function lq(e,t){return Yl(e,"scryRenderedComponentsWithType"),hb(e,function(r){return oq(r,t)})}function xL(e,t,r){var n=e.type||"unknown-event";e.currentTarget=Uxe(r),jxe(n,t,void 0,e),e.currentTarget=null}function uq(e,t,r){for(var n=[];e;){n.push(e);do e=e.return;while(e&&e.tag!==5);e=e||null}for(e=n.length;0<e--;)t(n[e],"captured",r);for(e=0;e<n.length;e++)t(n[e],"bubbled",r)}function cq(e,t){var r=e.stateNode;if(!r)return null;var n=qxe(r);if(!n)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("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function Kxe(e,t,r){e&&r&&r._reactName&&(t=cq(e,r._reactName))&&(r._dispatchListeners==null&&(r._dispatchListeners=[]),r._dispatchInstances==null&&(r._dispatchInstances=[]),r._dispatchListeners.push(t),r._dispatchInstances.push(e))}function Xxe(e,t,r){var n=r._reactName;t==="captured"&&(n+="Capture"),(t=cq(e,n))&&(r._dispatchListeners==null&&(r._dispatchListeners=[]),r._dispatchInstances==null&&(r._dispatchInstances=[]),r._dispatchListeners.push(t),r._dispatchInstances.push(e))}var dq={},Yxe=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function Zxe(e){return function(t,r){if(Yc.isValidElement(t))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(cP(t))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var n="on"+e[0].toUpperCase()+e.slice(1),i=new Vxe;i.target=t,i.type=e.toLowerCase();var o=Bxe(t),a=new wxe(n,i.type,o,i,t);a.persist(),ei(a,r),Yxe.has(e)?a&&a._reactName&&Kxe(a._targetInst,null,a):a&&a._reactName&&uq(a._targetInst,Xxe,a),sP.unstable_batchedUpdates(function(){if(Hxe(t),a){var s=a._dispatchListeners,l=a._dispatchInstances;if(uP(s))for(var u=0;u<s.length&&!a.isPropagationStopped();u++)xL(a,s[u],l[u]);else s&&xL(a,s,l);a._dispatchListeners=null,a._dispatchInstances=null,a.isPersistent()||a.constructor.release(a)}if(Tv)throw s=ST,Tv=!1,ST=null,s}),Wxe()}}"blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(e){dq[e]=Zxe(e)});Gr.Simulate=dq;Gr.act=zxe;Gr.findAllInRenderedTree=hb;Gr.findRenderedComponentWithType=function(e,t){if(Yl(e,"findRenderedComponentWithType"),e=lq(e,t),e.length!==1)throw Error("Did not find exactly one match (found: "+e.length+") for componentType:"+t);return e[0]};Gr.findRenderedDOMComponentWithClass=function(e,t){if(Yl(e,"findRenderedDOMComponentWithClass"),e=aq(e,t),e.length!==1)throw Error("Did not find exactly one match (found: "+e.length+") for class:"+t);return e[0]};Gr.findRenderedDOMComponentWithTag=function(e,t){if(Yl(e,"findRenderedDOMComponentWithTag"),e=sq(e,t),e.length!==1)throw Error("Did not find exactly one match (found: "+e.length+") for tag:"+t);return e[0]};Gr.isCompositeComponent=cP;Gr.isCompositeComponentWithType=oq;Gr.isDOMComponent=pb;Gr.isDOMComponentElement=function(e){return!!(e&&Yc.isValidElement(e)&&e.tagName)};Gr.isElement=function(e){return Yc.isValidElement(e)};Gr.isElementOfType=function(e,t){return Yc.isValidElement(e)&&e.type===t};Gr.mockComponent=function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return Yc.createElement(t,null,this.props.children)}),this};Gr.nativeTouchData=function(e,t){return{touches:[{pageX:e,pageY:t}]}};Gr.renderIntoDocument=function(e){var t=document.createElement("div");return sP.render(e,t)};Gr.scryRenderedComponentsWithType=lq;Gr.scryRenderedDOMComponentsWithClass=aq;Gr.scryRenderedDOMComponentsWithTag=sq;Gr.traverseTwoPhase=uq;nq.exports=Gr;var Jxe=nq.exports,wL={},_L=yl;wL.createRoot=_L.createRoot,wL.hydrateRoot=_L.hydrateRoot;var Ss={},dP={exports:{}};dP.exports;(function(e){const r=(o=0)=>a=>`\x1B[${38+o};5;${a}m`,n=(o=0)=>(a,s,l)=>`\x1B[${38+o};2;${a};${s};${l}m`;function i(){const o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[s,l]of Object.entries(a)){for(const[u,d]of Object.entries(l))a[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},l[u]=a[u],o.set(d[0],d[1]);Object.defineProperty(a,s,{value:l,enumerable:!1})}return Object.defineProperty(a,"codes",{value:o,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,l,u)=>s===l&&l===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:s=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.groups;u.length===3&&(u=u.split("").map(p=>p+p).join(""));const d=Number.parseInt(u,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(dP);var fq=dP.exports,$a={};Object.defineProperty($a,"__esModule",{value:!0});$a.printIteratorEntries=e1e;$a.printIteratorValues=t1e;$a.printListItems=r1e;$a.printObjectProperties=n1e;const Qxe=(e,t)=>{const r=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n=>{Object.getOwnPropertyDescriptor(e,n).enumerable&&r.push(n)}),r};function e1e(e,t,r,n,i,o,a=": "){let s="",l=e.next();if(!l.done){s+=t.spacingOuter;const u=r+t.indent;for(;!l.done;){const d=o(l.value[0],t,u,n,i),p=o(l.value[1],t,u,n,i);s+=u+d+a+p,l=e.next(),l.done?t.min||(s+=","):s+=","+t.spacingInner}s+=t.spacingOuter+r}return s}function t1e(e,t,r,n,i,o){let a="",s=e.next();if(!s.done){a+=t.spacingOuter;const l=r+t.indent;for(;!s.done;)a+=l+o(s.value,t,l,n,i),s=e.next(),s.done?t.min||(a+=","):a+=","+t.spacingInner;a+=t.spacingOuter+r}return a}function r1e(e,t,r,n,i,o){let a="";if(e.length){a+=t.spacingOuter;const s=r+t.indent;for(let l=0;l<e.length;l++)a+=s,l in e&&(a+=o(e[l],t,s,n,i)),l<e.length-1?a+=","+t.spacingInner:t.min||(a+=",");a+=t.spacingOuter+r}return a}function n1e(e,t,r,n,i,o){let a="";const s=Qxe(e,t.compareKeys);if(s.length){a+=t.spacingOuter;const l=r+t.indent;for(let u=0;u<s.length;u++){const d=s[u],p=o(d,t,l,n,i),h=o(e[d],t,l,n,i);a+=l+p+": "+h,u<s.length-1?a+=","+t.spacingInner:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var ms={};Object.defineProperty(ms,"__esModule",{value:!0});ms.test=ms.serialize=ms.default=void 0;var CL=$a,Sv=function(){return typeof globalThis<"u"?globalThis:typeof Sv<"u"?Sv:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),F_=Sv["jest-symbol-do-not-touch"]||Sv.Symbol;const i1e=typeof F_=="function"&&F_.for?F_.for("jest.asymmetricMatcher"):1267621,Pm=" ",pq=(e,t,r,n,i,o)=>{const a=e.toString();return a==="ArrayContaining"||a==="ArrayNotContaining"?++n>t.maxDepth?"["+a+"]":a+Pm+"["+(0,CL.printListItems)(e.sample,t,r,n,i,o)+"]":a==="ObjectContaining"||a==="ObjectNotContaining"?++n>t.maxDepth?"["+a+"]":a+Pm+"{"+(0,CL.printObjectProperties)(e.sample,t,r,n,i,o)+"}":a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining"?a+Pm+o(e.sample,t,r,n,i):e.toAsymmetricMatcher()};ms.serialize=pq;const hq=e=>e&&e.$$typeof===i1e;ms.test=hq;const o1e={serialize:pq,test:hq};var a1e=o1e;ms.default=a1e;var gs={},s1e=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};Object.defineProperty(gs,"__esModule",{value:!0});gs.test=gs.serialize=gs.default=void 0;var mq=gq(s1e),tr=gq(fq);function gq(e){return e&&e.__esModule?e:{default:e}}const l1e=e=>e.replace((0,mq.default)(),t=>{switch(t){case tr.default.red.close:case tr.default.green.close:case tr.default.cyan.close:case tr.default.gray.close:case tr.default.white.close:case tr.default.yellow.close:case tr.default.bgRed.close:case tr.default.bgGreen.close:case tr.default.bgYellow.close:case tr.default.inverse.close:case tr.default.dim.close:case tr.default.bold.close:case tr.default.reset.open:case tr.default.reset.close:return"</>";case tr.default.red.open:return"<red>";case tr.default.green.open:return"<green>";case tr.default.cyan.open:return"<cyan>";case tr.default.gray.open:return"<gray>";case tr.default.white.open:return"<white>";case tr.default.yellow.open:return"<yellow>";case tr.default.bgRed.open:return"<bgRed>";case tr.default.bgGreen.open:return"<bgGreen>";case tr.default.bgYellow.open:return"<bgYellow>";case tr.default.inverse.open:return"<inverse>";case tr.default.dim.open:return"<dim>";case tr.default.bold.open:return"<bold>";default:return""}}),vq=e=>typeof e=="string"&&!!e.match((0,mq.default)());gs.test=vq;const yq=(e,t,r,n,i,o)=>o(l1e(e),t,r,n,i);gs.serialize=yq;const u1e={serialize:yq,test:vq};var c1e=u1e;gs.default=c1e;var vs={};Object.defineProperty(vs,"__esModule",{value:!0});vs.test=vs.serialize=vs.default=void 0;var TL=$a;const d1e=" ",bq=["DOMStringMap","NamedNodeMap"],f1e=/^(HTML\w*Collection|NodeList)$/,p1e=e=>bq.indexOf(e)!==-1||f1e.test(e),xq=e=>e&&e.constructor&&!!e.constructor.name&&p1e(e.constructor.name);vs.test=xq;const h1e=e=>e.constructor.name==="NamedNodeMap",wq=(e,t,r,n,i,o)=>{const a=e.constructor.name;return++n>t.maxDepth?"["+a+"]":(t.min?"":a+d1e)+(bq.indexOf(a)!==-1?"{"+(0,TL.printObjectProperties)(h1e(e)?Array.from(e).reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,n,i,o)+"}":"["+(0,TL.printListItems)(Array.from(e),t,r,n,i,o)+"]")};vs.serialize=wq;const m1e={serialize:wq,test:xq};var g1e=m1e;vs.default=g1e;var ys={},Cn={},fP={};Object.defineProperty(fP,"__esModule",{value:!0});fP.default=v1e;function v1e(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}Object.defineProperty(Cn,"__esModule",{value:!0});Cn.printText=Cn.printProps=Cn.printElementAsLeaf=Cn.printElement=Cn.printComment=Cn.printChildren=void 0;var _q=y1e(fP);function y1e(e){return e&&e.__esModule?e:{default:e}}const b1e=(e,t,r,n,i,o,a)=>{const s=n+r.indent,l=r.colors;return e.map(u=>{const d=t[u];let p=a(d,r,s,i,o);return typeof d!="string"&&(p.indexOf(`
437
+ `)!==-1&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+p+l.value.close}).join("")};Cn.printProps=b1e;const x1e=(e,t,r,n,i,o)=>e.map(a=>t.spacingOuter+r+(typeof a=="string"?Cq(a,t):o(a,t,r,n,i))).join("");Cn.printChildren=x1e;const Cq=(e,t)=>{const r=t.colors.content;return r.open+(0,_q.default)(e)+r.close};Cn.printText=Cq;const w1e=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+(0,_q.default)(e)+"-->"+r.close};Cn.printComment=w1e;const _1e=(e,t,r,n,i)=>{const o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+i+o.open)+(r?">"+o.close+r+n.spacingOuter+i+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close};Cn.printElement=_1e;const C1e=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close};Cn.printElementAsLeaf=C1e;Object.defineProperty(ys,"__esModule",{value:!0});ys.test=ys.serialize=ys.default=void 0;var Uu=Cn;const T1e=1,Tq=3,Sq=8,Eq=11,S1e=/^((HTML|SVG)\w*)?Element$/,E1e=e=>{try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}},R1e=e=>{const t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||E1e(e);return r===T1e&&(S1e.test(t)||i)||r===Tq&&t==="Text"||r===Sq&&t==="Comment"||r===Eq&&t==="DocumentFragment"},Rq=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&R1e(e)};ys.test=Rq;function P1e(e){return e.nodeType===Tq}function O1e(e){return e.nodeType===Sq}function j_(e){return e.nodeType===Eq}const Pq=(e,t,r,n,i,o)=>{if(P1e(e))return(0,Uu.printText)(e.data,t);if(O1e(e))return(0,Uu.printComment)(e.data,t);const a=j_(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?(0,Uu.printElementAsLeaf)(a,t):(0,Uu.printElement)(a,(0,Uu.printProps)(j_(e)?[]:Array.from(e.attributes).map(s=>s.name).sort(),j_(e)?{}:Array.from(e.attributes).reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,n,i,o),(0,Uu.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,o),t,r)};ys.serialize=Pq;const M1e={serialize:Pq,test:Rq};var A1e=M1e;ys.default=A1e;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.test=bs.serialize=bs.default=void 0;var tp=$a;const I1e="@@__IMMUTABLE_ITERABLE__@@",$1e="@@__IMMUTABLE_LIST__@@",D1e="@@__IMMUTABLE_KEYED__@@",L1e="@@__IMMUTABLE_MAP__@@",SL="@@__IMMUTABLE_ORDERED__@@",k1e="@@__IMMUTABLE_RECORD__@@",N1e="@@__IMMUTABLE_SEQ__@@",F1e="@@__IMMUTABLE_SET__@@",j1e="@@__IMMUTABLE_STACK__@@",Rc=e=>"Immutable."+e,mb=e=>"["+e+"]",rp=" ",EL="…",B1e=(e,t,r,n,i,o,a)=>++n>t.maxDepth?mb(Rc(a)):Rc(a)+rp+"{"+(0,tp.printIteratorEntries)(e.entries(),t,r,n,i,o)+"}";function U1e(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}const q1e=(e,t,r,n,i,o)=>{const a=Rc(e._name||"Record");return++n>t.maxDepth?mb(a):a+rp+"{"+(0,tp.printIteratorEntries)(U1e(e),t,r,n,i,o)+"}"},H1e=(e,t,r,n,i,o)=>{const a=Rc("Seq");return++n>t.maxDepth?mb(a):e[D1e]?a+rp+"{"+(e._iter||e._object?(0,tp.printIteratorEntries)(e.entries(),t,r,n,i,o):EL)+"}":a+rp+"["+(e._iter||e._array||e._collection||e._iterable?(0,tp.printIteratorValues)(e.values(),t,r,n,i,o):EL)+"]"},B_=(e,t,r,n,i,o,a)=>++n>t.maxDepth?mb(Rc(a)):Rc(a)+rp+"["+(0,tp.printIteratorValues)(e.values(),t,r,n,i,o)+"]",Oq=(e,t,r,n,i,o)=>e[L1e]?B1e(e,t,r,n,i,o,e[SL]?"OrderedMap":"Map"):e[$1e]?B_(e,t,r,n,i,o,"List"):e[F1e]?B_(e,t,r,n,i,o,e[SL]?"OrderedSet":"Set"):e[j1e]?B_(e,t,r,n,i,o,"Stack"):e[N1e]?H1e(e,t,r,n,i,o):q1e(e,t,r,n,i,o);bs.serialize=Oq;const Mq=e=>e&&(e[I1e]===!0||e[k1e]===!0);bs.test=Mq;const W1e={serialize:Oq,test:Mq};var z1e=W1e;bs.default=z1e;var xs={},Aq={exports:{}},Qt={};/** @license React v17.0.2
438
+ * react-is.production.min.js
439
+ *
440
+ * Copyright (c) Facebook, Inc. and its affiliates.
441
+ *
442
+ * This source code is licensed under the MIT license found in the
443
+ * LICENSE file in the root directory of this source tree.
444
+ */var gb=60103,vb=60106,zp=60107,Vp=60108,Gp=60114,Kp=60109,Xp=60110,Yp=60112,Zp=60113,pP=60120,Jp=60115,Qp=60116,Iq=60121,$q=60122,Dq=60117,Lq=60129,kq=60131;if(typeof Symbol=="function"&&Symbol.for){var mn=Symbol.for;gb=mn("react.element"),vb=mn("react.portal"),zp=mn("react.fragment"),Vp=mn("react.strict_mode"),Gp=mn("react.profiler"),Kp=mn("react.provider"),Xp=mn("react.context"),Yp=mn("react.forward_ref"),Zp=mn("react.suspense"),pP=mn("react.suspense_list"),Jp=mn("react.memo"),Qp=mn("react.lazy"),Iq=mn("react.block"),$q=mn("react.server.block"),Dq=mn("react.fundamental"),Lq=mn("react.debug_trace_mode"),kq=mn("react.legacy_hidden")}function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gb:switch(e=e.type,e){case zp:case Gp:case Vp:case Zp:case pP:return e;default:switch(e=e&&e.$$typeof,e){case Xp:case Yp:case Qp:case Jp:case Kp:return e;default:return t}}case vb:return t}}}var V1e=Kp,G1e=gb,K1e=Yp,X1e=zp,Y1e=Qp,Z1e=Jp,J1e=vb,Q1e=Gp,ewe=Vp,twe=Zp;Qt.ContextConsumer=Xp;Qt.ContextProvider=V1e;Qt.Element=G1e;Qt.ForwardRef=K1e;Qt.Fragment=X1e;Qt.Lazy=Y1e;Qt.Memo=Z1e;Qt.Portal=J1e;Qt.Profiler=Q1e;Qt.StrictMode=ewe;Qt.Suspense=twe;Qt.isAsyncMode=function(){return!1};Qt.isConcurrentMode=function(){return!1};Qt.isContextConsumer=function(e){return go(e)===Xp};Qt.isContextProvider=function(e){return go(e)===Kp};Qt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gb};Qt.isForwardRef=function(e){return go(e)===Yp};Qt.isFragment=function(e){return go(e)===zp};Qt.isLazy=function(e){return go(e)===Qp};Qt.isMemo=function(e){return go(e)===Jp};Qt.isPortal=function(e){return go(e)===vb};Qt.isProfiler=function(e){return go(e)===Gp};Qt.isStrictMode=function(e){return go(e)===Vp};Qt.isSuspense=function(e){return go(e)===Zp};Qt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===Gp||e===Lq||e===Vp||e===Zp||e===pP||e===kq||typeof e=="object"&&e!==null&&(e.$$typeof===Qp||e.$$typeof===Jp||e.$$typeof===Kp||e.$$typeof===Xp||e.$$typeof===Yp||e.$$typeof===Dq||e.$$typeof===Iq||e[0]===$q)};Qt.typeOf=go;Aq.exports=Qt;var rwe=Aq.exports;Object.defineProperty(xs,"__esModule",{value:!0});xs.test=xs.serialize=xs.default=void 0;var al=nwe(rwe),Om=Cn;function Nq(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Nq=function(n){return n?r:t})(e)}function nwe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Nq(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}const Fq=(e,t=[])=>(Array.isArray(e)?e.forEach(r=>{Fq(r,t)}):e!=null&&e!==!1&&t.push(e),t),RL=e=>{const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(al.isFragment(e))return"React.Fragment";if(al.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(al.isContextProvider(e))return"Context.Provider";if(al.isContextConsumer(e))return"Context.Consumer";if(al.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r!==""?"ForwardRef("+r+")":"ForwardRef"}if(al.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r!==""?"Memo("+r+")":"Memo"}}return"UNDEFINED"},iwe=e=>{const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()},jq=(e,t,r,n,i,o)=>++n>t.maxDepth?(0,Om.printElementAsLeaf)(RL(e),t):(0,Om.printElement)(RL(e),(0,Om.printProps)(iwe(e),e.props,t,r+t.indent,n,i,o),(0,Om.printChildren)(Fq(e.props.children),t,r+t.indent,n,i,o),t,r);xs.serialize=jq;const Bq=e=>e!=null&&al.isElement(e);xs.test=Bq;const owe={serialize:jq,test:Bq};var awe=owe;xs.default=awe;var ws={};Object.defineProperty(ws,"__esModule",{value:!0});ws.test=ws.serialize=ws.default=void 0;var Mm=Cn,Ev=function(){return typeof globalThis<"u"?globalThis:typeof Ev<"u"?Ev:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),U_=Ev["jest-symbol-do-not-touch"]||Ev.Symbol;const swe=typeof U_=="function"&&U_.for?U_.for("react.test.json"):245830487,lwe=e=>{const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]},Uq=(e,t,r,n,i,o)=>++n>t.maxDepth?(0,Mm.printElementAsLeaf)(e.type,t):(0,Mm.printElement)(e.type,e.props?(0,Mm.printProps)(lwe(e),e.props,t,r+t.indent,n,i,o):"",e.children?(0,Mm.printChildren)(e.children,t,r+t.indent,n,i,o):"",t,r);ws.serialize=Uq;const qq=e=>e&&e.$$typeof===swe;ws.test=qq;const uwe={serialize:Uq,test:qq};var cwe=uwe;ws.default=cwe;Object.defineProperty(Ss,"__esModule",{value:!0});Ss.default=Ss.DEFAULT_OPTIONS=void 0;var dwe=Ss.format=e5,Hq=Ss.plugins=void 0,fwe=Ls(fq),Kd=$a,pwe=Ls(ms),hwe=Ls(gs),mwe=Ls(vs),gwe=Ls(ys),vwe=Ls(bs),ywe=Ls(xs),bwe=Ls(ws);function Ls(e){return e&&e.__esModule?e:{default:e}}const Wq=Object.prototype.toString,xwe=Date.prototype.toISOString,wwe=Error.prototype.toString,PL=RegExp.prototype.toString,q_=e=>typeof e.constructor=="function"&&e.constructor.name||"Object",_we=e=>typeof window<"u"&&e===window,Cwe=/^Symbol\((.*)\)(.*)$/,Twe=/\n/gi;class zq extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}}function Swe(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function Ewe(e){return Object.is(e,-0)?"-0":String(e)}function Rwe(e){return`${e}n`}function OL(e,t){return t?"[Function "+(e.name||"anonymous")+"]":"[Function]"}function ML(e){return String(e).replace(Cwe,"Symbol($1)")}function AL(e){return"["+wwe.call(e)+"]"}function Vq(e,t,r,n){if(e===!0||e===!1)return""+e;if(e===void 0)return"undefined";if(e===null)return"null";const i=typeof e;if(i==="number")return Ewe(e);if(i==="bigint")return Rwe(e);if(i==="string")return n?'"'+e.replace(/"|\\/g,"\\$&")+'"':'"'+e+'"';if(i==="function")return OL(e,t);if(i==="symbol")return ML(e);const o=Wq.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?OL(e,t):o==="[object Symbol]"?ML(e):o==="[object Date]"?isNaN(+e)?"Date { NaN }":xwe.call(e):o==="[object Error]"?AL(e):o==="[object RegExp]"?r?PL.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):PL.call(e):e instanceof Error?AL(e):null}function Gq(e,t,r,n,i,o){if(i.indexOf(e)!==-1)return"[Circular]";i=i.slice(),i.push(e);const a=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!o)return os(e.toJSON(),t,r,n,i,!0);const l=Wq.call(e);return l==="[object Arguments]"?a?"[Arguments]":(s?"":"Arguments ")+"["+(0,Kd.printListItems)(e,t,r,n,i,os)+"]":Swe(l)?a?"["+e.constructor.name+"]":(s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":e.constructor.name+" ")+"["+(0,Kd.printListItems)(e,t,r,n,i,os)+"]":l==="[object Map]"?a?"[Map]":"Map {"+(0,Kd.printIteratorEntries)(e.entries(),t,r,n,i,os," => ")+"}":l==="[object Set]"?a?"[Set]":"Set {"+(0,Kd.printIteratorValues)(e.values(),t,r,n,i,os)+"}":a||_we(e)?"["+q_(e)+"]":(s||!t.printBasicPrototype&&q_(e)==="Object"?"":q_(e)+" ")+"{"+(0,Kd.printObjectProperties)(e,t,r,n,i,os)+"}"}function Pwe(e){return e.serialize!=null}function Kq(e,t,r,n,i,o){let a;try{a=Pwe(e)?e.serialize(t,r,n,i,o,os):e.print(t,s=>os(s,r,n,i,o),s=>{const l=n+r.indent;return l+s.replace(Twe,`
445
+ `+l)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new zq(s.message,s.stack)}if(typeof a!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function Xq(e,t){for(let r=0;r<e.length;r++)try{if(e[r].test(t))return e[r]}catch(n){throw new zq(n.message,n.stack)}return null}function os(e,t,r,n,i,o){const a=Xq(t.plugins,e);if(a!==null)return Kq(a,e,t,r,n,i);const s=Vq(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:Gq(e,t,r,n,i,o)}const hP={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Yq=Object.keys(hP),io={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:hP};Ss.DEFAULT_OPTIONS=io;function Owe(e){if(Object.keys(e).forEach(t=>{if(!io.hasOwnProperty(t))throw new Error(`pretty-format: Unknown option "${t}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(e.theme!==void 0){if(e.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof e.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}const Mwe=e=>Yq.reduce((t,r)=>{const n=e.theme&&e.theme[r]!==void 0?e.theme[r]:hP[r],i=n&&fwe.default[n];if(i&&typeof i.close=="string"&&typeof i.open=="string")t[r]=i;else throw new Error(`pretty-format: Option "theme" has a key "${r}" whose value "${n}" is undefined in ansi-styles.`);return t},Object.create(null)),Awe=()=>Yq.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null)),Zq=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:io.printFunctionName,Jq=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:io.escapeRegex,Qq=e=>e&&e.escapeString!==void 0?e.escapeString:io.escapeString,IL=e=>{var t;return{callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:io.callToJSON,colors:e&&e.highlight?Mwe(e):Awe(),compareKeys:e&&typeof e.compareKeys=="function"?e.compareKeys:io.compareKeys,escapeRegex:Jq(e),escapeString:Qq(e),indent:e&&e.min?"":Iwe(e&&e.indent!==void 0?e.indent:io.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:io.maxDepth,min:e&&e.min!==void 0?e.min:io.min,plugins:e&&e.plugins!==void 0?e.plugins:io.plugins,printBasicPrototype:(t=e==null?void 0:e.printBasicPrototype)!==null&&t!==void 0?t:!0,printFunctionName:Zq(e),spacingInner:e&&e.min?" ":`
446
+ `,spacingOuter:e&&e.min?"":`
447
+ `}};function Iwe(e){return new Array(e+1).join(" ")}function e5(e,t){if(t&&(Owe(t),t.plugins)){const n=Xq(t.plugins,e);if(n!==null)return Kq(n,e,IL(t),"",0,[])}const r=Vq(e,Zq(t),Jq(t),Qq(t));return r!==null?r:Gq(e,IL(t),"",0,[])}const $we={AsymmetricMatcher:pwe.default,ConvertAnsi:hwe.default,DOMCollection:mwe.default,DOMElement:gwe.default,Immutable:vwe.default,ReactElement:ywe.default,ReactTestComponent:bwe.default};Hq=Ss.plugins=$we;var Dwe=e5;Ss.default=Dwe;var Lwe=Object.prototype.toString;function kwe(e){return typeof e=="function"||Lwe.call(e)==="[object Function]"}function Nwe(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Fwe=Math.pow(2,53)-1;function jwe(e){var t=Nwe(e);return Math.min(Math.max(t,0),Fwe)}function oo(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var i=jwe(n.length),o=kwe(r)?Object(new r(i)):new Array(i),a=0,s;a<i;)s=n[a],o[a]=s,a+=1;return o.length=i,o}function np(e){"@babel/helpers - typeof";return np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},np(e)}function Bwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t5(n.key),n)}}function qwe(e,t,r){return t&&Uwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hwe(e,t,r){return t=t5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t5(e){var t=Wwe(e,"string");return np(t)==="symbol"?t:String(t)}function Wwe(e,t){if(np(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(np(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zwe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Bwe(this,e),Hwe(this,"items",void 0),this.items=t}return qwe(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(i){return i!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(i){r(i,i,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}();const Vwe=typeof Set>"u"?Set:zwe;function En(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Gwe={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},Kwe={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Xwe(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=Kwe[t])!==null&&n!==void 0&&n.has(r))})}function r5(e,t){return Xwe(e,t)}function Ywe(e){var t=Jwe(e);if(t===null||t==="presentation"){var r=Zwe(e);if(t!=="presentation"||r5(e,r||""))return r}return t}function Zwe(e){var t=Gwe[En(e)];if(t!==void 0)return t;switch(En(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!r5(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function Jwe(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function hr(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function n5(e){return hr(e)&&En(e)==="caption"}function Sg(e){return hr(e)&&En(e)==="input"}function Qwe(e){return hr(e)&&En(e)==="optgroup"}function e_e(e){return hr(e)&&En(e)==="select"}function t_e(e){return hr(e)&&En(e)==="table"}function r_e(e){return hr(e)&&En(e)==="textarea"}function n_e(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function i_e(e){return hr(e)&&En(e)==="fieldset"}function o_e(e){return hr(e)&&En(e)==="legend"}function a_e(e){return hr(e)&&En(e)==="slot"}function s_e(e){return hr(e)&&e.ownerSVGElement!==void 0}function l_e(e){return hr(e)&&En(e)==="svg"}function u_e(e){return s_e(e)&&En(e)==="title"}function Rv(e,t){if(hr(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function ga(e,t){return hr(e)?t.indexOf(Ywe(e))!==-1:!1}function c_e(e){return e.trim().replace(/\s\s+/g," ")}function d_e(e,t){if(!hr(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function f_e(e){return ga(e,["button","combobox","listbox","textbox"])||i5(e,"range")}function i5(e,t){if(!hr(e))return!1;switch(t){case"range":return ga(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function $L(e,t){var r=oo(e.querySelectorAll(t));return Rv(e,"aria-owns").forEach(function(n){r.push.apply(r,oo(n.querySelectorAll(t)))}),r}function p_e(e){return e_e(e)?e.selectedOptions||$L(e,"[selected]"):$L(e,'[aria-selected="true"]')}function h_e(e){return ga(e,["none","presentation"])}function m_e(e){return n5(e)}function g_e(e){return ga(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function v_e(e){return!1}function y_e(e){return Sg(e)||r_e(e)?e.value:e.textContent||""}function DL(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function o5(e){var t=En(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function a5(e){if(o5(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&hr(r)){var n=a5(r);n!==null&&(t=n)}}),t}function b_e(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):a5(e)}function x_e(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return oo(t);if(!o5(e))return null;var r=e.ownerDocument;return oo(r.querySelectorAll("label")).filter(function(n){return b_e(n)===e})}function w_e(e){var t=e.assignedNodes();return t.length===0?oo(e.childNodes):t}function s5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Vwe,n=n_e(e),i=t.compute,o=i===void 0?"name":i,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,p=d===void 0?!1:d;function h(b,S){var w="";if(hr(b)&&s){var _=u(b,"::before"),O=DL(_);w="".concat(O," ").concat(w)}var C=a_e(b)?w_e(b):oo(b.childNodes).concat(Rv(b,"aria-owns"));if(C.forEach(function(D){var $=x(D,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),N=hr(D)?u(D).getPropertyValue("display"):"inline",B=N!=="inline"?" ":"";w+="".concat(B).concat($).concat(B)}),hr(b)&&s){var T=u(b,"::after"),M=DL(T);w="".concat(w," ").concat(M)}return w.trim()}function m(b,S){var w=b.getAttributeNode(S);return w!==null&&!r.has(w)&&w.value.trim()!==""?(r.add(w),w.value):null}function g(b){return hr(b)?m(b,"title"):null}function y(b){if(!hr(b))return null;if(i_e(b)){r.add(b);for(var S=oo(b.childNodes),w=0;w<S.length;w+=1){var _=S[w];if(o_e(_))return x(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(t_e(b)){r.add(b);for(var O=oo(b.childNodes),C=0;C<O.length;C+=1){var T=O[C];if(n5(T))return x(T,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(l_e(b)){r.add(b);for(var M=oo(b.childNodes),D=0;D<M.length;D+=1){var $=M[D];if(u_e($))return $.textContent}return null}else if(En(b)==="img"||En(b)==="area"){var N=m(b,"alt");if(N!==null)return N}else if(Qwe(b)){var B=m(b,"label");if(B!==null)return B}if(Sg(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var q=m(b,"value");if(q!==null)return q;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var U=x_e(b);if(U!==null&&U.length!==0)return r.add(b),oo(U).map(function(z){return x(z,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(z){return z.length>0}).join(" ");if(Sg(b)&&b.type==="image"){var F=m(b,"alt");if(F!==null)return F;var j=m(b,"title");return j!==null?j:"Submit Query"}if(ga(b,["button"])){var V=h(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function x(b,S){if(r.has(b))return"";if(!p&&d_e(b,u)&&!S.isReferenced)return r.add(b),"";var w=hr(b)?b.getAttributeNode("aria-labelledby"):null,_=w!==null&&!r.has(w)?Rv(b,"aria-labelledby"):[];if(o==="name"&&!S.isReferenced&&_.length>0)return r.add(w),_.map(function(N){return x(N,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var O=S.recursion&&f_e(b)&&o==="name";if(!O){var C=(hr(b)&&b.getAttribute("aria-label")||"").trim();if(C!==""&&o==="name")return r.add(b),C;if(!h_e(b)){var T=y(b);if(T!==null)return r.add(b),T}}if(ga(b,["menu"]))return r.add(b),"";if(O||S.isEmbeddedInLabel||S.isReferenced){if(ga(b,["combobox","listbox"])){r.add(b);var M=p_e(b);return M.length===0?Sg(b)?b.value:"":oo(M).map(function(N){return x(N,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(i5(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(ga(b,["textbox"]))return r.add(b),y_e(b)}if(g_e(b)||hr(b)&&S.isReferenced||m_e(b)||v_e()){var D=h(b,{isEmbeddedInLabel:S.isEmbeddedInLabel});if(D!=="")return r.add(b),D}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(S.recursion)return r.add(b),h(b,{isEmbeddedInLabel:S.isEmbeddedInLabel});var $=g(b);return $!==null?(r.add(b),$):(r.add(b),"")}return c_e(x(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function ip(e){"@babel/helpers - typeof";return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ip(e)}function LL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LL(Object(r),!0).forEach(function(n){__e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function __e(e,t,r){return t=C_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C_e(e){var t=T_e(e,"string");return ip(t)==="symbol"?t:String(t)}function T_e(e,t){if(ip(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ip(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Rv(e,"aria-describedby").map(function(i){return s5(i,kL(kL({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function S_e(e){return ga(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function mP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S_e(e)?"":s5(e,t)}var lo={},yb={},Zl={},bb={};Object.defineProperty(bb,"__esModule",{value:!0});bb.default=void 0;function E_e(){var e=this,t=0,r={"@@iterator":function(){return r},next:function(){if(t<e.length){var i=e[t];return t=t+1,{done:!1,value:i}}else return{done:!0}}};return r}var R_e=E_e;bb.default=R_e;Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=M_e;var P_e=O_e(bb);function O_e(e){return e&&e.__esModule?e:{default:e}}function ET(e){"@babel/helpers - typeof";return ET=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ET(e)}function M_e(e,t){return typeof Symbol=="function"&&ET(Symbol.iterator)==="symbol"&&Object.defineProperty(e,Symbol.iterator,{value:P_e.default.bind(t)}),e}Object.defineProperty(yb,"__esModule",{value:!0});yb.default=void 0;var A_e=I_e(Zl);function I_e(e){return e&&e.__esModule?e:{default:e}}function H_(e,t){return L_e(e)||D_e(e,t)||u5(e,t)||$_e()}function $_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
448
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D_e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function L_e(e){if(Array.isArray(e))return e}function k_e(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u5(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
449
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function u5(e,t){if(e){if(typeof e=="string")return NL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NL(e,t)}}function NL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qu=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],RT={entries:function(){return qu},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=k_e(qu),i;try{for(n.s();!(i=n.n()).done;){var o=H_(i.value,2),a=o[0],s=o[1];t.call(r,s,a,qu)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=qu.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!RT.get(t)},keys:function(){return qu.map(function(t){var r=H_(t,1),n=r[0];return n})},values:function(){return qu.map(function(t){var r=H_(t,2),n=r[1];return n})}},N_e=(0,A_e.default)(RT,RT.entries());yb.default=N_e;var xb={};Object.defineProperty(xb,"__esModule",{value:!0});xb.default=void 0;var F_e=j_e(Zl);function j_e(e){return e&&e.__esModule?e:{default:e}}function W_(e,t){return q_e(e)||U_e(e,t)||c5(e,t)||B_e()}function B_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
450
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U_e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function q_e(e){if(Array.isArray(e))return e}function H_e(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c5(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
451
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function c5(e,t){if(e){if(typeof e=="string")return FL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FL(e,t)}}function FL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Hu=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],PT={entries:function(){return Hu},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=H_e(Hu),i;try{for(n.s();!(i=n.n()).done;){var o=W_(i.value,2),a=o[0],s=o[1];t.call(r,s,a,Hu)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Hu.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!PT.get(t)},keys:function(){return Hu.map(function(t){var r=W_(t,1),n=r[0];return n})},values:function(){return Hu.map(function(t){var r=W_(t,2),n=r[1];return n})}},W_e=(0,F_e.default)(PT,PT.entries());xb.default=W_e;var Jc={},wb={},_b={};Object.defineProperty(_b,"__esModule",{value:!0});_b.default=void 0;var z_e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},V_e=z_e;_b.default=V_e;var Cb={};Object.defineProperty(Cb,"__esModule",{value:!0});Cb.default=void 0;var G_e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},K_e=G_e;Cb.default=K_e;var Tb={};Object.defineProperty(Tb,"__esModule",{value:!0});Tb.default=void 0;var X_e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},Y_e=X_e;Tb.default=Y_e;var Sb={};Object.defineProperty(Sb,"__esModule",{value:!0});Sb.default=void 0;var Z_e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},J_e=Z_e;Sb.default=J_e;var Eb={};Object.defineProperty(Eb,"__esModule",{value:!0});Eb.default=void 0;var Q_e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},eCe=Q_e;Eb.default=eCe;var Rb={};Object.defineProperty(Rb,"__esModule",{value:!0});Rb.default=void 0;var tCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},rCe=tCe;Rb.default=rCe;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});Pb.default=void 0;var nCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},iCe=nCe;Pb.default=iCe;var Ob={};Object.defineProperty(Ob,"__esModule",{value:!0});Ob.default=void 0;var oCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},aCe=oCe;Ob.default=aCe;var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});Mb.default=void 0;var sCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},lCe=sCe;Mb.default=lCe;var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.default=void 0;var uCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},cCe=uCe;Ab.default=cCe;var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0});Ib.default=void 0;var dCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},fCe=dCe;Ib.default=fCe;var $b={};Object.defineProperty($b,"__esModule",{value:!0});$b.default=void 0;var pCe={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},hCe=pCe;$b.default=hCe;Object.defineProperty(wb,"__esModule",{value:!0});wb.default=void 0;var mCe=Gi(_b),gCe=Gi(Cb),vCe=Gi(Tb),yCe=Gi(Sb),bCe=Gi(Eb),xCe=Gi(Rb),wCe=Gi(Pb),_Ce=Gi(Ob),CCe=Gi(Mb),TCe=Gi(Ab),SCe=Gi(Ib),ECe=Gi($b);function Gi(e){return e&&e.__esModule?e:{default:e}}var RCe=[["command",mCe.default],["composite",gCe.default],["input",vCe.default],["landmark",yCe.default],["range",bCe.default],["roletype",xCe.default],["section",wCe.default],["sectionhead",_Ce.default],["select",CCe.default],["structure",TCe.default],["widget",SCe.default],["window",ECe.default]],PCe=RCe;wb.default=PCe;var Db={},Lb={};Object.defineProperty(Lb,"__esModule",{value:!0});Lb.default=void 0;var OCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},MCe=OCe;Lb.default=MCe;var kb={};Object.defineProperty(kb,"__esModule",{value:!0});kb.default=void 0;var ACe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},ICe=ACe;kb.default=ICe;var Nb={};Object.defineProperty(Nb,"__esModule",{value:!0});Nb.default=void 0;var $Ce={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},DCe=$Ce;Nb.default=DCe;var Fb={};Object.defineProperty(Fb,"__esModule",{value:!0});Fb.default=void 0;var LCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},kCe=LCe;Fb.default=kCe;var jb={};Object.defineProperty(jb,"__esModule",{value:!0});jb.default=void 0;var NCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},FCe=NCe;jb.default=FCe;var Bb={};Object.defineProperty(Bb,"__esModule",{value:!0});Bb.default=void 0;var jCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},BCe=jCe;Bb.default=BCe;var Ub={};Object.defineProperty(Ub,"__esModule",{value:!0});Ub.default=void 0;var UCe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},qCe=UCe;Ub.default=qCe;var qb={};Object.defineProperty(qb,"__esModule",{value:!0});qb.default=void 0;var HCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},WCe=HCe;qb.default=WCe;var Hb={};Object.defineProperty(Hb,"__esModule",{value:!0});Hb.default=void 0;var zCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},VCe=zCe;Hb.default=VCe;var Wb={};Object.defineProperty(Wb,"__esModule",{value:!0});Wb.default=void 0;var GCe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},KCe=GCe;Wb.default=KCe;var zb={};Object.defineProperty(zb,"__esModule",{value:!0});zb.default=void 0;var XCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},YCe=XCe;zb.default=YCe;var Vb={};Object.defineProperty(Vb,"__esModule",{value:!0});Vb.default=void 0;var ZCe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},JCe=ZCe;Vb.default=JCe;var Gb={};Object.defineProperty(Gb,"__esModule",{value:!0});Gb.default=void 0;var QCe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},eTe=QCe;Gb.default=eTe;var Kb={};Object.defineProperty(Kb,"__esModule",{value:!0});Kb.default=void 0;var tTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},rTe=tTe;Kb.default=rTe;var Xb={};Object.defineProperty(Xb,"__esModule",{value:!0});Xb.default=void 0;var nTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},iTe=nTe;Xb.default=iTe;var Yb={};Object.defineProperty(Yb,"__esModule",{value:!0});Yb.default=void 0;var oTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},aTe=oTe;Yb.default=aTe;var Zb={};Object.defineProperty(Zb,"__esModule",{value:!0});Zb.default=void 0;var sTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},lTe=sTe;Zb.default=lTe;var Jb={};Object.defineProperty(Jb,"__esModule",{value:!0});Jb.default=void 0;var uTe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},cTe=uTe;Jb.default=cTe;var Qb={};Object.defineProperty(Qb,"__esModule",{value:!0});Qb.default=void 0;var dTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},fTe=dTe;Qb.default=fTe;var e0={};Object.defineProperty(e0,"__esModule",{value:!0});e0.default=void 0;var pTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},hTe=pTe;e0.default=hTe;var t0={};Object.defineProperty(t0,"__esModule",{value:!0});t0.default=void 0;var mTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},gTe=mTe;t0.default=gTe;var r0={};Object.defineProperty(r0,"__esModule",{value:!0});r0.default=void 0;var vTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},yTe=vTe;r0.default=yTe;var n0={};Object.defineProperty(n0,"__esModule",{value:!0});n0.default=void 0;var bTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},xTe=bTe;n0.default=xTe;var i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.default=void 0;var wTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},_Te=wTe;i0.default=_Te;var o0={};Object.defineProperty(o0,"__esModule",{value:!0});o0.default=void 0;var CTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},TTe=CTe;o0.default=TTe;var a0={};Object.defineProperty(a0,"__esModule",{value:!0});a0.default=void 0;var STe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},ETe=STe;a0.default=ETe;var s0={};Object.defineProperty(s0,"__esModule",{value:!0});s0.default=void 0;var RTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},PTe=RTe;s0.default=PTe;var l0={};Object.defineProperty(l0,"__esModule",{value:!0});l0.default=void 0;var OTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},MTe=OTe;l0.default=MTe;var u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.default=void 0;var ATe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},ITe=ATe;u0.default=ITe;var c0={};Object.defineProperty(c0,"__esModule",{value:!0});c0.default=void 0;var $Te={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DTe=$Te;c0.default=DTe;var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.default=void 0;var LTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},kTe=LTe;d0.default=kTe;var f0={};Object.defineProperty(f0,"__esModule",{value:!0});f0.default=void 0;var NTe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},FTe=NTe;f0.default=FTe;var p0={};Object.defineProperty(p0,"__esModule",{value:!0});p0.default=void 0;var jTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},BTe=jTe;p0.default=BTe;var h0={};Object.defineProperty(h0,"__esModule",{value:!0});h0.default=void 0;var UTe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},qTe=UTe;h0.default=qTe;var m0={};Object.defineProperty(m0,"__esModule",{value:!0});m0.default=void 0;var HTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},WTe=HTe;m0.default=WTe;var g0={};Object.defineProperty(g0,"__esModule",{value:!0});g0.default=void 0;var zTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},VTe=zTe;g0.default=VTe;var v0={};Object.defineProperty(v0,"__esModule",{value:!0});v0.default=void 0;var GTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},KTe=GTe;v0.default=KTe;var y0={};Object.defineProperty(y0,"__esModule",{value:!0});y0.default=void 0;var XTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},YTe=XTe;y0.default=YTe;var b0={};Object.defineProperty(b0,"__esModule",{value:!0});b0.default=void 0;var ZTe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},JTe=ZTe;b0.default=JTe;var x0={};Object.defineProperty(x0,"__esModule",{value:!0});x0.default=void 0;var QTe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eSe=QTe;x0.default=eSe;var w0={};Object.defineProperty(w0,"__esModule",{value:!0});w0.default=void 0;var tSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},rSe=tSe;w0.default=rSe;var _0={};Object.defineProperty(_0,"__esModule",{value:!0});_0.default=void 0;var nSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},iSe=nSe;_0.default=iSe;var C0={};Object.defineProperty(C0,"__esModule",{value:!0});C0.default=void 0;var oSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},aSe=oSe;C0.default=aSe;var T0={};Object.defineProperty(T0,"__esModule",{value:!0});T0.default=void 0;var sSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},lSe=sSe;T0.default=lSe;var S0={};Object.defineProperty(S0,"__esModule",{value:!0});S0.default=void 0;var uSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},cSe=uSe;S0.default=cSe;var E0={};Object.defineProperty(E0,"__esModule",{value:!0});E0.default=void 0;var dSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},fSe=dSe;E0.default=fSe;var R0={};Object.defineProperty(R0,"__esModule",{value:!0});R0.default=void 0;var pSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},hSe=pSe;R0.default=hSe;var P0={};Object.defineProperty(P0,"__esModule",{value:!0});P0.default=void 0;var mSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},gSe=mSe;P0.default=gSe;var O0={};Object.defineProperty(O0,"__esModule",{value:!0});O0.default=void 0;var vSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ySe=vSe;O0.default=ySe;var M0={};Object.defineProperty(M0,"__esModule",{value:!0});M0.default=void 0;var bSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},xSe=bSe;M0.default=xSe;var A0={};Object.defineProperty(A0,"__esModule",{value:!0});A0.default=void 0;var wSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},_Se=wSe;A0.default=_Se;var I0={};Object.defineProperty(I0,"__esModule",{value:!0});I0.default=void 0;var CSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},TSe=CSe;I0.default=TSe;var $0={};Object.defineProperty($0,"__esModule",{value:!0});$0.default=void 0;var SSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},ESe=SSe;$0.default=ESe;var D0={};Object.defineProperty(D0,"__esModule",{value:!0});D0.default=void 0;var RSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},PSe=RSe;D0.default=PSe;var L0={};Object.defineProperty(L0,"__esModule",{value:!0});L0.default=void 0;var OSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},MSe=OSe;L0.default=MSe;var k0={};Object.defineProperty(k0,"__esModule",{value:!0});k0.default=void 0;var ASe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},ISe=ASe;k0.default=ISe;var N0={};Object.defineProperty(N0,"__esModule",{value:!0});N0.default=void 0;var $Se={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},DSe=$Se;N0.default=DSe;var F0={};Object.defineProperty(F0,"__esModule",{value:!0});F0.default=void 0;var LSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},kSe=LSe;F0.default=kSe;var j0={};Object.defineProperty(j0,"__esModule",{value:!0});j0.default=void 0;var NSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},FSe=NSe;j0.default=FSe;var B0={};Object.defineProperty(B0,"__esModule",{value:!0});B0.default=void 0;var jSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},BSe=jSe;B0.default=BSe;var U0={};Object.defineProperty(U0,"__esModule",{value:!0});U0.default=void 0;var USe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},qSe=USe;U0.default=qSe;var q0={};Object.defineProperty(q0,"__esModule",{value:!0});q0.default=void 0;var HSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},WSe=HSe;q0.default=WSe;var H0={};Object.defineProperty(H0,"__esModule",{value:!0});H0.default=void 0;var zSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},VSe=zSe;H0.default=VSe;var W0={};Object.defineProperty(W0,"__esModule",{value:!0});W0.default=void 0;var GSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},KSe=GSe;W0.default=KSe;var z0={};Object.defineProperty(z0,"__esModule",{value:!0});z0.default=void 0;var XSe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},YSe=XSe;z0.default=YSe;var V0={};Object.defineProperty(V0,"__esModule",{value:!0});V0.default=void 0;var ZSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},JSe=ZSe;V0.default=JSe;var G0={};Object.defineProperty(G0,"__esModule",{value:!0});G0.default=void 0;var QSe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eEe=QSe;G0.default=eEe;var K0={};Object.defineProperty(K0,"__esModule",{value:!0});K0.default=void 0;var tEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rEe=tEe;K0.default=rEe;var X0={};Object.defineProperty(X0,"__esModule",{value:!0});X0.default=void 0;var nEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},iEe=nEe;X0.default=iEe;var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.default=void 0;var oEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},aEe=oEe;Y0.default=aEe;var Z0={};Object.defineProperty(Z0,"__esModule",{value:!0});Z0.default=void 0;var sEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},lEe=sEe;Z0.default=lEe;var J0={};Object.defineProperty(J0,"__esModule",{value:!0});J0.default=void 0;var uEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},cEe=uEe;J0.default=cEe;var Q0={};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.default=void 0;var dEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},fEe=dEe;Q0.default=fEe;var ex={};Object.defineProperty(ex,"__esModule",{value:!0});ex.default=void 0;var pEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},hEe=pEe;ex.default=hEe;var tx={};Object.defineProperty(tx,"__esModule",{value:!0});tx.default=void 0;var mEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},gEe=mEe;tx.default=gEe;var rx={};Object.defineProperty(rx,"__esModule",{value:!0});rx.default=void 0;var vEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},yEe=vEe;rx.default=yEe;var nx={};Object.defineProperty(nx,"__esModule",{value:!0});nx.default=void 0;var bEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},xEe=bEe;nx.default=xEe;var ix={};Object.defineProperty(ix,"__esModule",{value:!0});ix.default=void 0;var wEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},_Ee=wEe;ix.default=_Ee;var ox={};Object.defineProperty(ox,"__esModule",{value:!0});ox.default=void 0;var CEe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},TEe=CEe;ox.default=TEe;var ax={};Object.defineProperty(ax,"__esModule",{value:!0});ax.default=void 0;var SEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},EEe=SEe;ax.default=EEe;var sx={};Object.defineProperty(sx,"__esModule",{value:!0});sx.default=void 0;var REe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},PEe=REe;sx.default=PEe;var lx={};Object.defineProperty(lx,"__esModule",{value:!0});lx.default=void 0;var OEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},MEe=OEe;lx.default=MEe;var ux={};Object.defineProperty(ux,"__esModule",{value:!0});ux.default=void 0;var AEe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},IEe=AEe;ux.default=IEe;Object.defineProperty(Db,"__esModule",{value:!0});Db.default=void 0;var $Ee=Ce(Lb),DEe=Ce(kb),LEe=Ce(Nb),kEe=Ce(Fb),NEe=Ce(jb),FEe=Ce(Bb),jEe=Ce(Ub),BEe=Ce(qb),UEe=Ce(Hb),qEe=Ce(Wb),HEe=Ce(zb),WEe=Ce(Vb),zEe=Ce(Gb),VEe=Ce(Kb),GEe=Ce(Xb),KEe=Ce(Yb),XEe=Ce(Zb),YEe=Ce(Jb),ZEe=Ce(Qb),JEe=Ce(e0),QEe=Ce(t0),eRe=Ce(r0),tRe=Ce(n0),rRe=Ce(i0),nRe=Ce(o0),iRe=Ce(a0),oRe=Ce(s0),aRe=Ce(l0),sRe=Ce(u0),lRe=Ce(c0),uRe=Ce(d0),cRe=Ce(f0),dRe=Ce(p0),fRe=Ce(h0),pRe=Ce(m0),hRe=Ce(g0),mRe=Ce(v0),gRe=Ce(y0),vRe=Ce(b0),yRe=Ce(x0),bRe=Ce(w0),xRe=Ce(_0),wRe=Ce(C0),_Re=Ce(T0),CRe=Ce(S0),TRe=Ce(E0),SRe=Ce(R0),ERe=Ce(P0),RRe=Ce(O0),PRe=Ce(M0),ORe=Ce(A0),MRe=Ce(I0),ARe=Ce($0),IRe=Ce(D0),$Re=Ce(L0),DRe=Ce(k0),LRe=Ce(N0),kRe=Ce(F0),NRe=Ce(j0),FRe=Ce(B0),jRe=Ce(U0),BRe=Ce(q0),URe=Ce(H0),qRe=Ce(W0),HRe=Ce(z0),WRe=Ce(V0),zRe=Ce(G0),VRe=Ce(K0),GRe=Ce(X0),KRe=Ce(Y0),XRe=Ce(Z0),YRe=Ce(J0),ZRe=Ce(Q0),JRe=Ce(ex),QRe=Ce(tx),ePe=Ce(rx),tPe=Ce(nx),rPe=Ce(ix),nPe=Ce(ox),iPe=Ce(ax),oPe=Ce(sx),aPe=Ce(lx),sPe=Ce(ux);function Ce(e){return e&&e.__esModule?e:{default:e}}var lPe=[["alert",$Ee.default],["alertdialog",DEe.default],["application",LEe.default],["article",kEe.default],["banner",NEe.default],["blockquote",FEe.default],["button",jEe.default],["caption",BEe.default],["cell",UEe.default],["checkbox",qEe.default],["code",HEe.default],["columnheader",WEe.default],["combobox",zEe.default],["complementary",VEe.default],["contentinfo",GEe.default],["definition",KEe.default],["deletion",XEe.default],["dialog",YEe.default],["directory",ZEe.default],["document",JEe.default],["emphasis",QEe.default],["feed",eRe.default],["figure",tRe.default],["form",rRe.default],["generic",nRe.default],["grid",iRe.default],["gridcell",oRe.default],["group",aRe.default],["heading",sRe.default],["img",lRe.default],["insertion",uRe.default],["link",cRe.default],["list",dRe.default],["listbox",fRe.default],["listitem",pRe.default],["log",hRe.default],["main",mRe.default],["mark",gRe.default],["marquee",vRe.default],["math",yRe.default],["menu",bRe.default],["menubar",xRe.default],["menuitem",wRe.default],["menuitemcheckbox",_Re.default],["menuitemradio",CRe.default],["meter",TRe.default],["navigation",SRe.default],["none",ERe.default],["note",RRe.default],["option",PRe.default],["paragraph",ORe.default],["presentation",MRe.default],["progressbar",ARe.default],["radio",IRe.default],["radiogroup",$Re.default],["region",DRe.default],["row",LRe.default],["rowgroup",kRe.default],["rowheader",NRe.default],["scrollbar",FRe.default],["search",jRe.default],["searchbox",BRe.default],["separator",URe.default],["slider",qRe.default],["spinbutton",HRe.default],["status",WRe.default],["strong",zRe.default],["subscript",VRe.default],["superscript",GRe.default],["switch",KRe.default],["tab",XRe.default],["table",YRe.default],["tablist",ZRe.default],["tabpanel",JRe.default],["term",QRe.default],["textbox",ePe.default],["time",tPe.default],["timer",rPe.default],["toolbar",nPe.default],["tooltip",iPe.default],["tree",oPe.default],["treegrid",aPe.default],["treeitem",sPe.default]],uPe=lPe;Db.default=uPe;var cx={},dx={};Object.defineProperty(dx,"__esModule",{value:!0});dx.default=void 0;var cPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},dPe=cPe;dx.default=dPe;var fx={};Object.defineProperty(fx,"__esModule",{value:!0});fx.default=void 0;var fPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},pPe=fPe;fx.default=pPe;var px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=void 0;var hPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},mPe=hPe;px.default=mPe;var hx={};Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var gPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},vPe=gPe;hx.default=vPe;var mx={};Object.defineProperty(mx,"__esModule",{value:!0});mx.default=void 0;var yPe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},bPe=yPe;mx.default=bPe;var gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.default=void 0;var xPe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},wPe=xPe;gx.default=wPe;var vx={};Object.defineProperty(vx,"__esModule",{value:!0});vx.default=void 0;var _Pe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},CPe=_Pe;vx.default=CPe;var yx={};Object.defineProperty(yx,"__esModule",{value:!0});yx.default=void 0;var TPe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},SPe=TPe;yx.default=SPe;var bx={};Object.defineProperty(bx,"__esModule",{value:!0});bx.default=void 0;var EPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},RPe=EPe;bx.default=RPe;var xx={};Object.defineProperty(xx,"__esModule",{value:!0});xx.default=void 0;var PPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},OPe=PPe;xx.default=OPe;var wx={};Object.defineProperty(wx,"__esModule",{value:!0});wx.default=void 0;var MPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},APe=MPe;wx.default=APe;var _x={};Object.defineProperty(_x,"__esModule",{value:!0});_x.default=void 0;var IPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},$Pe=IPe;_x.default=$Pe;var Cx={};Object.defineProperty(Cx,"__esModule",{value:!0});Cx.default=void 0;var DPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},LPe=DPe;Cx.default=LPe;var Tx={};Object.defineProperty(Tx,"__esModule",{value:!0});Tx.default=void 0;var kPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},NPe=kPe;Tx.default=NPe;var Sx={};Object.defineProperty(Sx,"__esModule",{value:!0});Sx.default=void 0;var FPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},jPe=FPe;Sx.default=jPe;var Ex={};Object.defineProperty(Ex,"__esModule",{value:!0});Ex.default=void 0;var BPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},UPe=BPe;Ex.default=UPe;var Rx={};Object.defineProperty(Rx,"__esModule",{value:!0});Rx.default=void 0;var qPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},HPe=qPe;Rx.default=HPe;var Px={};Object.defineProperty(Px,"__esModule",{value:!0});Px.default=void 0;var WPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},zPe=WPe;Px.default=zPe;var Ox={};Object.defineProperty(Ox,"__esModule",{value:!0});Ox.default=void 0;var VPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},GPe=VPe;Ox.default=GPe;var Mx={};Object.defineProperty(Mx,"__esModule",{value:!0});Mx.default=void 0;var KPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},XPe=KPe;Mx.default=XPe;var Ax={};Object.defineProperty(Ax,"__esModule",{value:!0});Ax.default=void 0;var YPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ZPe=YPe;Ax.default=ZPe;var Ix={};Object.defineProperty(Ix,"__esModule",{value:!0});Ix.default=void 0;var JPe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},QPe=JPe;Ix.default=QPe;var $x={};Object.defineProperty($x,"__esModule",{value:!0});$x.default=void 0;var eOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},tOe=eOe;$x.default=tOe;var Dx={};Object.defineProperty(Dx,"__esModule",{value:!0});Dx.default=void 0;var rOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},nOe=rOe;Dx.default=nOe;var Lx={};Object.defineProperty(Lx,"__esModule",{value:!0});Lx.default=void 0;var iOe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},oOe=iOe;Lx.default=oOe;var kx={};Object.defineProperty(kx,"__esModule",{value:!0});kx.default=void 0;var aOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},sOe=aOe;kx.default=sOe;var Nx={};Object.defineProperty(Nx,"__esModule",{value:!0});Nx.default=void 0;var lOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},uOe=lOe;Nx.default=uOe;var Fx={};Object.defineProperty(Fx,"__esModule",{value:!0});Fx.default=void 0;var cOe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},dOe=cOe;Fx.default=dOe;var jx={};Object.defineProperty(jx,"__esModule",{value:!0});jx.default=void 0;var fOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},pOe=fOe;jx.default=pOe;var Bx={};Object.defineProperty(Bx,"__esModule",{value:!0});Bx.default=void 0;var hOe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},mOe=hOe;Bx.default=mOe;var Ux={};Object.defineProperty(Ux,"__esModule",{value:!0});Ux.default=void 0;var gOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},vOe=gOe;Ux.default=vOe;var qx={};Object.defineProperty(qx,"__esModule",{value:!0});qx.default=void 0;var yOe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},bOe=yOe;qx.default=bOe;var Hx={};Object.defineProperty(Hx,"__esModule",{value:!0});Hx.default=void 0;var xOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},wOe=xOe;Hx.default=wOe;var Wx={};Object.defineProperty(Wx,"__esModule",{value:!0});Wx.default=void 0;var _Oe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},COe=_Oe;Wx.default=COe;var zx={};Object.defineProperty(zx,"__esModule",{value:!0});zx.default=void 0;var TOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},SOe=TOe;zx.default=SOe;var Vx={};Object.defineProperty(Vx,"__esModule",{value:!0});Vx.default=void 0;var EOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ROe=EOe;Vx.default=ROe;var Gx={};Object.defineProperty(Gx,"__esModule",{value:!0});Gx.default=void 0;var POe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},OOe=POe;Gx.default=OOe;var Kx={};Object.defineProperty(Kx,"__esModule",{value:!0});Kx.default=void 0;var MOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},AOe=MOe;Kx.default=AOe;var Xx={};Object.defineProperty(Xx,"__esModule",{value:!0});Xx.default=void 0;var IOe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},$Oe=IOe;Xx.default=$Oe;Object.defineProperty(cx,"__esModule",{value:!0});cx.default=void 0;var DOe=bt(dx),LOe=bt(fx),kOe=bt(px),NOe=bt(hx),FOe=bt(mx),jOe=bt(gx),BOe=bt(vx),UOe=bt(yx),qOe=bt(bx),HOe=bt(xx),WOe=bt(wx),zOe=bt(_x),VOe=bt(Cx),GOe=bt(Tx),KOe=bt(Sx),XOe=bt(Ex),YOe=bt(Rx),ZOe=bt(Px),JOe=bt(Ox),QOe=bt(Mx),eMe=bt(Ax),tMe=bt(Ix),rMe=bt($x),nMe=bt(Dx),iMe=bt(Lx),oMe=bt(kx),aMe=bt(Nx),sMe=bt(Fx),lMe=bt(jx),uMe=bt(Bx),cMe=bt(Ux),dMe=bt(qx),fMe=bt(Hx),pMe=bt(Wx),hMe=bt(zx),mMe=bt(Vx),gMe=bt(Gx),vMe=bt(Kx),yMe=bt(Xx);function bt(e){return e&&e.__esModule?e:{default:e}}var bMe=[["doc-abstract",DOe.default],["doc-acknowledgments",LOe.default],["doc-afterword",kOe.default],["doc-appendix",NOe.default],["doc-backlink",FOe.default],["doc-biblioentry",jOe.default],["doc-bibliography",BOe.default],["doc-biblioref",UOe.default],["doc-chapter",qOe.default],["doc-colophon",HOe.default],["doc-conclusion",WOe.default],["doc-cover",zOe.default],["doc-credit",VOe.default],["doc-credits",GOe.default],["doc-dedication",KOe.default],["doc-endnote",XOe.default],["doc-endnotes",YOe.default],["doc-epigraph",ZOe.default],["doc-epilogue",JOe.default],["doc-errata",QOe.default],["doc-example",eMe.default],["doc-footnote",tMe.default],["doc-foreword",rMe.default],["doc-glossary",nMe.default],["doc-glossref",iMe.default],["doc-index",oMe.default],["doc-introduction",aMe.default],["doc-noteref",sMe.default],["doc-notice",lMe.default],["doc-pagebreak",uMe.default],["doc-pagelist",cMe.default],["doc-part",dMe.default],["doc-preface",fMe.default],["doc-prologue",pMe.default],["doc-pullquote",hMe.default],["doc-qna",mMe.default],["doc-subtitle",gMe.default],["doc-tip",vMe.default],["doc-toc",yMe.default]],xMe=bMe;cx.default=xMe;var Yx={},Zx={};Object.defineProperty(Zx,"__esModule",{value:!0});Zx.default=void 0;var wMe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},_Me=wMe;Zx.default=_Me;var Jx={};Object.defineProperty(Jx,"__esModule",{value:!0});Jx.default=void 0;var CMe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},TMe=CMe;Jx.default=TMe;var Qx={};Object.defineProperty(Qx,"__esModule",{value:!0});Qx.default=void 0;var SMe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},EMe=SMe;Qx.default=EMe;Object.defineProperty(Yx,"__esModule",{value:!0});Yx.default=void 0;var RMe=gP(Zx),PMe=gP(Jx),OMe=gP(Qx);function gP(e){return e&&e.__esModule?e:{default:e}}var MMe=[["graphics-document",RMe.default],["graphics-object",PMe.default],["graphics-symbol",OMe.default]],AMe=MMe;Yx.default=AMe;Object.defineProperty(Jc,"__esModule",{value:!0});Jc.default=void 0;var IMe=eh(wb),$Me=eh(Db),DMe=eh(cx),LMe=eh(Yx),kMe=eh(Zl);function eh(e){return e&&e.__esModule?e:{default:e}}function NMe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OT(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d5(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
452
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function If(e,t){return BMe(e)||jMe(e,t)||d5(e,t)||FMe()}function FMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
453
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d5(e,t){if(e){if(typeof e=="string")return jL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jL(e,t)}}function jL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function BMe(e){if(Array.isArray(e))return e}var as=[].concat(IMe.default,$Me.default,DMe.default,LMe.default);as.forEach(function(e){var t=If(e,2),r=t[1],n=OT(r.superClass),i;try{for(n.s();!(i=n.n()).done;){var o=i.value,a=OT(o),s;try{var l=function(){var d=s.value,p=as.find(function(x){var b=If(x,1),S=b[0];return S===d});if(p)for(var h=p[1],m=0,g=Object.keys(h.props);m<g.length;m++){var y=g[m];Object.prototype.hasOwnProperty.call(r.props,y)||Object.assign(r.props,NMe({},y,h.props[y]))}};for(a.s();!(s=a.n()).done;)l()}catch(u){a.e(u)}finally{a.f()}}}catch(u){n.e(u)}finally{n.f()}});var MT={entries:function(){return as},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=OT(as),i;try{for(n.s();!(i=n.n()).done;){var o=If(i.value,2),a=o[0],s=o[1];t.call(r,s,a,as)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=as.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!MT.get(t)},keys:function(){return as.map(function(t){var r=If(t,1),n=r[0];return n})},values:function(){return as.map(function(t){var r=If(t,2),n=r[1];return n})}},UMe=(0,kMe.default)(MT,MT.entries());Jc.default=UMe;var e1={},f5={},BL=Object.prototype.hasOwnProperty;function AT(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&AT(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(BL.call(e,r)&&++n&&!BL.call(t,r)||!(r in t)||!AT(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}f5.dequal=AT;Object.defineProperty(e1,"__esModule",{value:!0});e1.default=void 0;var p5=f5,qMe=m5(Zl),h5=m5(Jc);function m5(e){return e&&e.__esModule?e:{default:e}}function z_(e,t){return zMe(e)||WMe(e,t)||g5(e,t)||HMe()}function HMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
454
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function zMe(e){if(Array.isArray(e))return e}function VMe(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=g5(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
455
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function g5(e,t){if(e){if(typeof e=="string")return UL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UL(e,t)}}function UL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ss=[],qL=h5.default.keys();for(var V_=0;V_<qL.length;V_++){var G_=qL[V_],K_=h5.default.get(G_);if(K_)for(var HL=[].concat(K_.baseConcepts,K_.relatedConcepts),X_=0;X_<HL.length;X_++){var WL=HL[X_];WL.module==="HTML"&&function(){var e=WL.concept;if(e){var t=ss.find(function(o){return(0,p5.dequal)(o,e)}),r;t?r=t[1]:r=[];for(var n=!0,i=0;i<r.length;i++)if(r[i]===G_){n=!1;break}n&&r.push(G_),ss.push([e,r])}}()}}var IT={entries:function(){return ss},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=VMe(ss),i;try{for(n.s();!(i=n.n()).done;){var o=z_(i.value,2),a=o[0],s=o[1];t.call(r,s,a,ss)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=ss.find(function(n){return t.name===n[0].name&&(0,p5.dequal)(t.attributes,n[0].attributes)});return r&&r[1]},has:function(t){return!!IT.get(t)},keys:function(){return ss.map(function(t){var r=z_(t,1),n=r[0];return n})},values:function(){return ss.map(function(t){var r=z_(t,2),n=r[1];return n})}},GMe=(0,qMe.default)(IT,IT.entries());e1.default=GMe;var t1={};Object.defineProperty(t1,"__esModule",{value:!0});t1.default=void 0;var KMe=y5(Zl),v5=y5(Jc);function y5(e){return e&&e.__esModule?e:{default:e}}function Y_(e,t){return ZMe(e)||YMe(e,t)||b5(e,t)||XMe()}function XMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
456
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function ZMe(e){if(Array.isArray(e))return e}function JMe(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b5(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
457
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function b5(e,t){if(e){if(typeof e=="string")return zL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zL(e,t)}}function zL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sl=[],VL=v5.default.keys();for(var Z_=0;Z_<VL.length;Z_++){var GL=VL[Z_],J_=v5.default.get(GL),Q_=[];if(J_){for(var KL=[].concat(J_.baseConcepts,J_.relatedConcepts),eC=0;eC<KL.length;eC++){var XL=KL[eC];if(XL.module==="HTML"){var YL=XL.concept;YL!=null&&Q_.push(YL)}}Q_.length>0&&sl.push([GL,Q_])}}var $T={entries:function(){return sl},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=JMe(sl),i;try{for(n.s();!(i=n.n()).done;){var o=Y_(i.value,2),a=o[0],s=o[1];t.call(r,s,a,sl)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=sl.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!$T.get(t)},keys:function(){return sl.map(function(t){var r=Y_(t,1),n=r[0];return n})},values:function(){return sl.map(function(t){var r=Y_(t,2),n=r[1];return n})}},QMe=(0,KMe.default)($T,$T.entries());t1.default=QMe;Object.defineProperty(lo,"__esModule",{value:!0});var eo=lo.roles=w5=lo.roleElements=x5=lo.elementRoles=lo.dom=lo.aria=void 0,eAe=th(yb),tAe=th(xb),rAe=th(Jc),nAe=th(e1),iAe=th(t1);function th(e){return e&&e.__esModule?e:{default:e}}var oAe=eAe.default;lo.aria=oAe;var aAe=tAe.default;lo.dom=aAe;var sAe=rAe.default;eo=lo.roles=sAe;var lAe=nAe.default,x5=lo.elementRoles=lAe,uAe=iAe.default,w5=lo.roleElements=uAe,_5={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function a(l,u){if(!o[l]){o[l]={};for(var d=0;d<l.length;d++)o[l][l.charAt(d)]=d}return o[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(d){return n.charAt(d)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return a(n,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),d=new Uint8Array(u.length*2),p=0,h=u.length;p<h;p++){var m=u.charCodeAt(p);d[p*2]=m>>>8,d[p*2+1]=m%256}return d},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),d=0,p=u.length;d<p;d++)u[d]=l[d*2]*256+l[d*2+1];var h=[];return u.forEach(function(m){h.push(r(m))}),s.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return a(i,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return r(u)})},_compress:function(l,u,d){if(l==null)return"";var p,h,m={},g={},y="",x="",b="",S=2,w=3,_=2,O=[],C=0,T=0,M;for(M=0;M<l.length;M+=1)if(y=l.charAt(M),Object.prototype.hasOwnProperty.call(m,y)||(m[y]=w++,g[y]=!0),x=b+y,Object.prototype.hasOwnProperty.call(m,x))b=x;else{if(Object.prototype.hasOwnProperty.call(g,b)){if(b.charCodeAt(0)<256){for(p=0;p<_;p++)C=C<<1,T==u-1?(T=0,O.push(d(C)),C=0):T++;for(h=b.charCodeAt(0),p=0;p<8;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1}else{for(h=1,p=0;p<_;p++)C=C<<1|h,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=0;for(h=b.charCodeAt(0),p=0;p<16;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1}S--,S==0&&(S=Math.pow(2,_),_++),delete g[b]}else for(h=m[b],p=0;p<_;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1;S--,S==0&&(S=Math.pow(2,_),_++),m[x]=w++,b=String(y)}if(b!==""){if(Object.prototype.hasOwnProperty.call(g,b)){if(b.charCodeAt(0)<256){for(p=0;p<_;p++)C=C<<1,T==u-1?(T=0,O.push(d(C)),C=0):T++;for(h=b.charCodeAt(0),p=0;p<8;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1}else{for(h=1,p=0;p<_;p++)C=C<<1|h,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=0;for(h=b.charCodeAt(0),p=0;p<16;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1}S--,S==0&&(S=Math.pow(2,_),_++),delete g[b]}else for(h=m[b],p=0;p<_;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1;S--,S==0&&(S=Math.pow(2,_),_++)}for(h=2,p=0;p<_;p++)C=C<<1|h&1,T==u-1?(T=0,O.push(d(C)),C=0):T++,h=h>>1;for(;;)if(C=C<<1,T==u-1){O.push(d(C));break}else T++;return O.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,d){var p=[],h=4,m=4,g=3,y="",x=[],b,S,w,_,O,C,T,M={val:d(0),position:u,index:1};for(b=0;b<3;b+=1)p[b]=b;for(w=0,O=Math.pow(2,2),C=1;C!=O;)_=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=d(M.index++)),w|=(_>0?1:0)*C,C<<=1;switch(w){case 0:for(w=0,O=Math.pow(2,8),C=1;C!=O;)_=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=d(M.index++)),w|=(_>0?1:0)*C,C<<=1;T=r(w);break;case 1:for(w=0,O=Math.pow(2,16),C=1;C!=O;)_=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=d(M.index++)),w|=(_>0?1:0)*C,C<<=1;T=r(w);break;case 2:return""}for(p[3]=T,S=T,x.push(T);;){if(M.index>l)return"";for(w=0,O=Math.pow(2,g),C=1;C!=O;)_=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=d(M.index++)),w|=(_>0?1:0)*C,C<<=1;switch(T=w){case 0:for(w=0,O=Math.pow(2,8),C=1;C!=O;)_=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=d(M.index++)),w|=(_>0?1:0)*C,C<<=1;p[m++]=r(w),T=m-1,h--;break;case 1:for(w=0,O=Math.pow(2,16),C=1;C!=O;)_=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=d(M.index++)),w|=(_>0?1:0)*C,C<<=1;p[m++]=r(w),T=m-1,h--;break;case 2:return x.join("")}if(h==0&&(h=Math.pow(2,g),g++),p[T])y=p[T];else if(T===m)y=S+S.charAt(0);else return null;x.push(y),p[m++]=S+y.charAt(0),h--,S=y,h==0&&(h=Math.pow(2,g),g++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(_5);var cAe=_5.exports;const dAe=gi(cAe);var DT={};function C5(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}const fAe=(e,t,r,n,i,o,a)=>{const s=n+r.indent,l=r.colors;return e.map(u=>{const d=t[u];let p=a(d,r,s,i,o);return typeof d!="string"&&(p.indexOf(`
458
+ `)!==-1&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+p+l.value.close}).join("")},pAe=3,hAe=(e,t,r,n,i,o)=>e.map(a=>{const s=typeof a=="string"?T5(a,t):o(a,t,r,n,i);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==pAe?"":t.spacingOuter+r+s}).join(""),T5=(e,t)=>{const r=t.colors.content;return r.open+C5(e)+r.close},mAe=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+C5(e)+"-->"+r.close},gAe=(e,t,r,n,i)=>{const o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+i+o.open)+(r?">"+o.close+r+n.spacingOuter+i+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},vAe=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},yAe=1,S5=3,E5=8,R5=11,bAe=/^((HTML|SVG)\w*)?Element$/,P5=e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},xAe=e=>{const t=e.constructor.name,{nodeType:r}=e;return r===yAe&&(bAe.test(t)||P5(e))||r===S5&&t==="Text"||r===E5&&t==="Comment"||r===R5&&t==="DocumentFragment"};function wAe(e){return e.nodeType===S5}function _Ae(e){return e.nodeType===E5}function tC(e){return e.nodeType===R5}function CAe(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||P5(t))&&xAe(t)},serialize:(t,r,n,i,o,a)=>{if(wAe(t))return T5(t.data,r);if(_Ae(t))return mAe(t.data,r);const s=tC(t)?"DocumentFragment":t.tagName.toLowerCase();return++i>r.maxDepth?vAe(s,r):gAe(s,fAe(tC(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),tC(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,i,o,a),hAe(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,i,o,a),r,n)}}}let O5=null,vP=null,yP=null;try{const e=module&&module.require;vP=e.call(module,"fs").readFileSync,yP=e.call(module,"@babel/code-frame").codeFrameColumns,O5=e.call(module,"picocolors")}catch{}function TAe(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),i=n.split(":"),[o,a,s]=[i[0],parseInt(i[1],10),parseInt(i[2],10)];let l="";try{l=vP(o,"utf-8")}catch{return""}const u=yP(l,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return O5.dim(n)+`
459
+ `+u+`
460
+ `}function SAe(){if(!vP||!yP)return"";const t=new Error().stack.split(`
461
+ `).slice(1).find(r=>!r.includes("node_modules/"));return TAe(t)}const M5=3;function rC(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function bP(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function A5(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function Da(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}const EAe=()=>{if(typeof process>"u")return!1;let e;try{var t;const r=(t=DT)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:RAe}=Hq,PAe=1,OAe=8;function MAe(e){return e.nodeType!==OAe&&(e.nodeType!==PAe||!e.matches(Yt().defaultIgnore))}function Pv(e,t,r){if(r===void 0&&(r={}),e||(e=bP().body),typeof t!="number"&&(t=typeof process<"u"&&typeof DT<"u"&&DT.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);const{filterNode:i=MAe,...o}=r,a=dwe(e,{plugins:[CAe(i),RAe],printFunctionName:!1,highlight:EAe(),...o});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}const ZL=function(){const e=SAe();console.log(e?Pv(...arguments)+`
462
+
463
+ `+e:Pv(...arguments))};let Ml={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const r=Pv(t),n=new Error([e,"Ignored nodes: comments, "+Ml.defaultIgnore+`
464
+ `+r].filter(Boolean).join(`
465
+
466
+ `));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function AAe(e){try{return Ml._disableExpensiveErrorDiagnostics=!0,e()}finally{Ml._disableExpensiveErrorDiagnostics=!1}}function IAe(e){typeof e=="function"&&(e=e(Ml)),Ml={...Ml,...e}}function Yt(){return Ml}const $Ae=["button","meter","output","progress","select","textarea","input"];function I5(e){return $Ae.includes(e.nodeName.toLowerCase())?"":e.nodeType===M5?e.textContent:Array.from(e.childNodes).map(t=>I5(t)).join("")}function LT(e){let t;return e.tagName.toLowerCase()==="label"?t=I5(e):t=e.value||e.textContent,t}function $5(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!DAe(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function DAe(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function D5(e,t,r){let{selector:n="*"}=r===void 0?{}:r;const i=t.getAttribute("aria-labelledby"),o=i?i.split(" "):[];return o.length?o.map(a=>{const s=e.querySelector('[id="'+a+'"]');return s?{content:LT(s),formControl:null}:{content:"",formControl:null}}):Array.from($5(t)).map(a=>{const s=LT(a),u=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(d=>d.matches(n))[0];return{content:s,formControl:u}})}function L5(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function Qc(e,t,r,n){if(typeof e!="string")return!1;L5(r);const i=n(e);return typeof r=="string"||typeof r=="number"?i.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(i,t):N5(r,i)}function wa(e,t,r,n){if(typeof e!="string")return!1;L5(r);const i=n(e);return r instanceof Function?r(i,t):r instanceof RegExp?N5(r,i):i===String(r)}function k5(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let i=n;return i=t?i.trim():i,i=r?i.replace(/\s+/g," "):i,i}}function Jl(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return k5({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function N5(e,t){const r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function r1(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===M5&&!!t.textContent).map(t=>t.textContent).join("")}const LAe=kAe(x5);function F5(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function xP(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=F5}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let i=e;for(;i;){if(r(i))return!0;i=i.parentElement}return!1}function wP(e){for(const{match:t,roles:r}of LAe)if(t(e))return[...r];return[]}function kAe(e){function t(a){let{name:s,attributes:l}=a;return""+s+l.map(u=>{let{name:d,value:p,constraints:h=[]}=u;const m=h.indexOf("undefined")!==-1,g=h.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':m?":not(["+d+"])":g?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:l}=a,{specificity:u}=s;return u-l}function i(a){let{attributes:s=[]}=a;const l=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");l>=0&&(s=[...s.slice(0,l),...s.slice(l+1)]);const u=t({...a,attributes:s});return d=>l>=0&&d.type!=="text"?!1:d.matches(u)}let o=[];for(const[a,s]of e.entries())o=[...o,{match:i(a),roles:Array.from(s),specificity:r(a)}];return o.sort(n)}function NAe(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(i){return[i,...Array.from(i.children).reduce((o,a)=>[...o,...n(a)],[])]}return n(e).filter(i=>r===!1?xP(i)===!1:!0).reduce((i,o)=>{let a=[];return o.hasAttribute("role")?a=o.getAttribute("role").split(" ").slice(0,1):a=wP(o),a.reduce((s,l)=>Array.isArray(s[l])?{...s,[l]:[...s[l],o]}:{...s,[l]:[o]},i)},{})}function FAe(e,t){let{hidden:r,includeDescription:n}=t;const i=NAe(e,{hidden:r});return Object.entries(i).filter(o=>{let[a]=o;return a!=="generic"}).map(o=>{let[a,s]=o;const l="-".repeat(50),u=s.map(d=>{const p='Name "'+mP(d,{computedStyleSupportsPseudoElements:Yt().computedStyleSupportsPseudoElements})+`":
467
+ `,h=Pv(d.cloneNode(!1));if(n){const m='Description "'+l5(d,{computedStyleSupportsPseudoElements:Yt().computedStyleSupportsPseudoElements})+`":
468
+ `;return""+p+m+h}return""+p+h}).join(`
469
+
470
+ `);return a+`:
471
+
472
+ `+u+`
473
+
474
+ `+l}).join(`
475
+ `)}function jAe(e){return e.tagName==="OPTION"?e.selected:rh(e,"aria-selected")}function BAe(e){return e.getAttribute("aria-busy")==="true"}function UAe(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:rh(e,"aria-checked")}function qAe(e){return rh(e,"aria-pressed")}function HAe(e){var t,r;return(t=(r=rh(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function WAe(e){return rh(e,"aria-expanded")}function rh(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function zAe(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function VAe(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function GAe(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function KAe(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function XAe(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const JL=k5();function YAe(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function QL(e){return new RegExp(YAe(e.toLowerCase()),"i")}function Za(e,t,r,n){let{variant:i,name:o}=n,a="";const s={},l=[["Role","TestId"].includes(e)?r:QL(r)];o&&(s.name=QL(o)),e==="Role"&&xP(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
476
+ If you are using the aria-hidden prop, make sure this is the right choice for your case.
477
+ `),Object.keys(s).length>0&&l.push(s);const u=i+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:i,warning:a,toString(){a&&console.warn(a);let[d,p]=l;return d=typeof d=="string"?"'"+d+"'":d,p=p?", { "+Object.entries(p).map(h=>{let[m,g]=h;return m+": "+g}).join(", ")+" }":"",u+"("+d+p+")"}}}function Ja(e,t,r){return r&&!0}function kT(e,t,r){var n,i;if(t===void 0&&(t="get"),e.matches(Yt().defaultIgnore))return;const o=(n=e.getAttribute("role"))!=null?n:(i=wP(e))==null?void 0:i[0];if(o!=="generic"&&Ja("Role",r,o))return Za("Role",e,o,{variant:t,name:mP(e,{computedStyleSupportsPseudoElements:Yt().computedStyleSupportsPseudoElements})});const a=D5(document,e).map(h=>h.content).join(" ");if(Ja("LabelText",r,a))return Za("LabelText",e,a,{variant:t});const s=e.getAttribute("placeholder");if(Ja("PlaceholderText",r,s))return Za("PlaceholderText",e,s,{variant:t});const l=JL(r1(e));if(Ja("Text",r,l))return Za("Text",e,l,{variant:t});if(Ja("DisplayValue",r,e.value))return Za("DisplayValue",e,JL(e.value),{variant:t});const u=e.getAttribute("alt");if(Ja("AltText",r,u))return Za("AltText",e,u,{variant:t});const d=e.getAttribute("title");if(Ja("Title",r,d))return Za("Title",e,d,{variant:t});const p=e.getAttribute(Yt().testIdAttribute);if(Ja("TestId",r,p))return Za("TestId",e,p,{variant:t})}function Am(e,t){e.stack=t.stack.replace(t.message,e.message)}function ZAe(e,t){let{container:r=bP(),timeout:n=Yt().asyncUtilTimeout,showOriginalStackTrace:i=Yt().showOriginalStackTrace,stackTraceError:o,interval:a=50,onTimeout:s=u=>(Object.defineProperty(u,"message",{value:Yt().getElementError(u.message,r).message}),u),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,d)=>{let p,h,m,g=!1,y="idle";const x=setTimeout(O,n),b=rC();if(b){const{unstable_advanceTimersWrapper:C}=Yt();for(_();!g;){if(!rC()){const T=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");i||Am(T,o),d(T);return}if(await C(async()=>{jest.advanceTimersByTime(a)}),g)break;_()}}else{try{Da(r)}catch(T){d(T);return}h=setInterval(w,a);const{MutationObserver:C}=A5(r);m=new C(w),m.observe(r,l),_()}function S(C,T){g=!0,clearTimeout(x),b||(clearInterval(h),m.disconnect()),C?d(C):u(T)}function w(){if(rC()){const C=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return i||Am(C,o),d(C)}else return _()}function _(){if(y!=="pending")try{const C=AAe(e);typeof(C==null?void 0:C.then)=="function"?(y="pending",C.then(T=>{y="resolved",S(null,T)},T=>{y="rejected",p=T})):S(null,C)}catch(C){p=C}}function O(){let C;p?(C=p,!i&&C.name==="TestingLibraryElementError"&&Am(C,o)):(C=new Error("Timed out in waitFor."),i||Am(C,o)),S(s(C),null)}})}function JAe(e,t){const r=new Error("STACK_TRACE_MESSAGE");return Yt().asyncWrapper(()=>ZAe(e,{stackTraceError:r,...t}))}function j5(e,t){return Yt().getElementError(e,t)}function QAe(e,t){return j5(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function n1(e,t,r,n){let{exact:i=!0,collapseWhitespace:o,trim:a,normalizer:s}=n===void 0?{}:n;const l=i?wa:Qc,u=Jl({collapseWhitespace:o,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>l(d.getAttribute(e),d,r,u))}function Ov(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=e(r,...i);if(a.length>1){const s=a.map(l=>j5(null,l).message).join(`
478
+
479
+ `);throw QAe(t(r,...i)+`
480
+
481
+ Here are the matching elements:
482
+
483
+ `+s,r)}return a[0]||null}}function B5(e,t){return Yt().getElementError(`A better query is available, try this:
484
+ `+e.toString()+`
485
+ `,t)}function eIe(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=e(r,...i);if(!a.length)throw Yt().getElementError(t(r,...i),r);return a}}function Mv(e){return(t,r,n,i)=>JAe(()=>e(t,r,n),{container:t,...i})}const sc=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];const s=e(n,...o),[{suggest:l=Yt().throwSuggestions}={}]=o.slice(-1);if(s&&l){const u=kT(s,r);if(u&&!t.endsWith(u.queryName))throw B5(u.toString(),n)}return s},Hi=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];const s=e(n,...o),[{suggest:l=Yt().throwSuggestions}={}]=o.slice(-1);if(s.length&&l){const u=[...new Set(s.map(d=>{var p;return(p=kT(d,r))==null?void 0:p.toString()}))];if(u.length===1&&!t.endsWith(kT(s[0],r).queryName))throw B5(u[0],n)}return s};function Ql(e,t,r){const n=sc(Ov(e,t),e.name,"query"),i=eIe(e,r),o=Ov(i,t),a=sc(o,e.name,"get"),s=Hi(i,e.name.replace("query","get"),"getAll"),l=Mv(Hi(i,e.name,"findAll")),u=Mv(sc(o,e.name,"find"));return[n,s,a,l,u]}function tIe(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:LT(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const rIe=function(e,t,r){let{exact:n=!0,trim:i,collapseWhitespace:o,normalizer:a}=r===void 0?{}:r;const s=n?wa:Qc,l=Jl({collapseWhitespace:o,trim:i,normalizer:a});return tIe(e).filter(d=>{let{node:p,textToMatch:h}=d;return s(h,p,t,l)}).map(d=>{let{node:p}=d;return p})},op=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:a,normalizer:s}=r===void 0?{}:r;Da(e);const l=i?wa:Qc,u=Jl({collapseWhitespace:o,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(p=>$5(p).length||p.hasAttribute("aria-labelledby")).reduce((p,h)=>{const m=D5(e,h,{selector:n});m.filter(y=>!!y.formControl).forEach(y=>{l(y.content,y.formControl,t,u)&&y.formControl&&p.push(y.formControl)});const g=m.filter(y=>!!y.content).map(y=>y.content);return l(g.join(" "),h,t,u)&&p.push(h),g.length>1&&g.forEach((y,x)=>{l(y,h,t,u)&&p.push(h);const b=[...g];b.splice(x,1),b.length>1&&l(b.join(" "),h,t,u)&&p.push(h)}),p},[]).concat(n1("aria-label",e,t,{exact:i,normalizer:u}));return Array.from(new Set(d)).filter(p=>p.matches(n))},Hl=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];const o=op(e,t,...n);if(!o.length){const a=rIe(e,t,...n);if(a.length){const s=a.map(l=>nIe(e,l)).filter(l=>!!l);throw s.length?Yt().getElementError(s.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
486
+
487
+ `),e):Yt().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw Yt().getElementError("Unable to find a label with the text of: "+t,e)}return o};function nIe(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const U5=(e,t)=>"Found multiple elements with the text of: "+t,iIe=sc(Ov(op,U5),op.name,"query"),q5=Ov(Hl,U5),oIe=Mv(Hi(Hl,Hl.name,"findAll")),aIe=Mv(sc(q5,Hl.name,"find")),sIe=Hi(Hl,Hl.name,"getAll"),lIe=sc(q5,Hl.name,"get"),uIe=Hi(op,op.name,"queryAll"),NT=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Da(t[0]),n1("placeholder",...t)},cIe=(e,t)=>"Found multiple elements with the placeholder text of: "+t,dIe=(e,t)=>"Unable to find an element with the placeholder text of: "+t,fIe=Hi(NT,NT.name,"queryAll"),[pIe,hIe,mIe,gIe,vIe]=Ql(NT,cIe,dIe),FT=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:a,ignore:s=Yt().defaultIgnore,normalizer:l}=r===void 0?{}:r;Da(e);const u=i?wa:Qc,d=Jl({collapseWhitespace:o,trim:a,normalizer:l});let p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(h=>!s||!h.matches(s)).filter(h=>u(r1(h),h,t,d))},yIe=(e,t)=>"Found multiple elements with the text: "+t,bIe=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:i,normalizer:o,selector:a}=r,l=Jl({collapseWhitespace:n,trim:i,normalizer:o})(t.toString()),u=l!==t.toString(),d=(a??"*")!=="*";return"Unable to find an element with the text: "+(u?l+" (normalized from '"+t+"')":t)+(d?", which matches selector '"+a+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},xIe=Hi(FT,FT.name,"queryAll"),[wIe,_Ie,CIe,TIe,SIe]=Ql(FT,yIe,bIe),jT=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:a}=r===void 0?{}:r;Da(e);const s=n?wa:Qc,l=Jl({collapseWhitespace:i,trim:o,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(p=>p.selected).some(p=>s(r1(p),p,t,l)):s(u.value,u,t,l))},EIe=(e,t)=>"Found multiple elements with the display value: "+t+".",RIe=(e,t)=>"Unable to find an element with the display value: "+t+".",PIe=Hi(jT,jT.name,"queryAll"),[OIe,MIe,AIe,IIe,$Ie]=Ql(jT,EIe,RIe),DIe=/^(img|input|area|.+-.+)$/i,BT=function(e,t,r){return r===void 0&&(r={}),Da(e),n1("alt",e,t,r).filter(n=>DIe.test(n.tagName))},LIe=(e,t)=>"Found multiple elements with the alt text: "+t,kIe=(e,t)=>"Unable to find an element with the alt text: "+t,NIe=Hi(BT,BT.name,"queryAll"),[FIe,jIe,BIe,UIe,qIe]=Ql(BT,LIe,kIe),HIe=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},UT=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:a}=r===void 0?{}:r;Da(e);const s=n?wa:Qc,l=Jl({collapseWhitespace:i,trim:o,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>s(u.getAttribute("title"),u,t,l)||HIe(u)&&s(r1(u),u,t,l))},WIe=(e,t)=>"Found multiple elements with the title: "+t+".",zIe=(e,t)=>"Unable to find an element with the title: "+t+".",VIe=Hi(UT,UT.name,"queryAll"),[GIe,KIe,XIe,YIe,ZIe]=Ql(UT,WIe,zIe),qT=function(e,t,r){let{hidden:n=Yt().defaultHidden,name:i,description:o,queryFallbacks:a=!1,selected:s,busy:l,checked:u,pressed:d,current:p,level:h,expanded:m,value:{now:g,min:y,max:x,text:b}={}}=r===void 0?{}:r;if(Da(e),s!==void 0){var S;if(((S=eo.get(t))==null?void 0:S.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var w;if(((w=eo.get(t))==null?void 0:w.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var _;if(((_=eo.get(t))==null?void 0:_.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var O;if(((O=eo.get(t))==null?void 0:O.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var C;if(((C=eo.get(t))==null?void 0:C.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(g!==void 0){var T;if(((T=eo.get(t))==null?void 0:T.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(x!==void 0){var M;if(((M=eo.get(t))==null?void 0:M.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(y!==void 0){var D;if(((D=eo.get(t))==null?void 0:D.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var $;if((($=eo.get(t))==null?void 0:$.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(m!==void 0){var N;if(((N=eo.get(t))==null?void 0:N.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const B=new WeakMap;function q(U){return B.has(U)||B.set(U,F5(U)),B.get(U)}return Array.from(e.querySelectorAll(JIe(t))).filter(U=>{if(U.hasAttribute("role")){const V=U.getAttribute("role");if(a)return V.split(" ").filter(Boolean).some(Q=>Q===t);const[z]=V.split(" ");return z===t}return wP(U).some(V=>V===t)}).filter(U=>{if(s!==void 0)return s===jAe(U);if(l!==void 0)return l===BAe(U);if(u!==void 0)return u===UAe(U);if(d!==void 0)return d===qAe(U);if(p!==void 0)return p===HAe(U);if(m!==void 0)return m===WAe(U);if(h!==void 0)return h===zAe(U);if(g!==void 0||x!==void 0||y!==void 0||b!==void 0){let j=!0;if(g!==void 0&&j&&(j=g===VAe(U)),x!==void 0&&j&&(j=x===GAe(U)),y!==void 0&&j&&(j=y===KAe(U)),b!==void 0){var F;j&&(j=wa((F=XAe(U))!=null?F:null,U,b,V=>V))}return j}return!0}).filter(U=>i===void 0?!0:wa(mP(U,{computedStyleSupportsPseudoElements:Yt().computedStyleSupportsPseudoElements}),U,i,F=>F)).filter(U=>o===void 0?!0:wa(l5(U,{computedStyleSupportsPseudoElements:Yt().computedStyleSupportsPseudoElements}),U,o,F=>F)).filter(U=>n===!1?xP(U,{isSubtreeInaccessible:q})===!1:!0)};function JIe(e){var t;const r='*[role~="'+e+'"]',n=(t=w5.get(e))!=null?t:new Set,i=new Set(Array.from(n).map(o=>{let{name:a}=o;return a}));return[r].concat(Array.from(i)).join(",")}const H5=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},QIe=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+H5(n)},e$e=function(e,t,r){let{hidden:n=Yt().defaultHidden,name:i,description:o}=r===void 0?{}:r;if(Yt()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+H5(i);let a="";Array.from(e.children).forEach(d=>{a+=FAe(d,{hidden:n,includeDescription:o!==void 0})});let s;a.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
488
+ Here are the `+(n===!1?"accessible":"available")+` roles:
489
+
490
+ `+a.replace(/\n/g,`
491
+ `).replace(/\n\s\s\n/g,`
492
+
493
+ `)+`
494
+ `).trim();let l="";i===void 0?l="":typeof i=="string"?l=' and name "'+i+'"':l=" and name `"+i+"`";let u="";return o===void 0?u="":typeof o=="string"?u=' and description "'+o+'"':u=" and description `"+o+"`",(`
495
+ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
496
+
497
+ `+s).trim()},t$e=Hi(qT,qT.name,"queryAll"),[r$e,n$e,i$e,o$e,a$e]=Ql(qT,QIe,e$e),_P=()=>Yt().testIdAttribute,HT=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Da(t[0]),n1(_P(),...t)},s$e=(e,t)=>"Found multiple elements by: ["+_P()+'="'+t+'"]',l$e=(e,t)=>"Unable to find an element by: ["+_P()+'="'+t+'"]',u$e=Hi(HT,HT.name,"queryAll"),[c$e,d$e,f$e,p$e,h$e]=Ql(HT,s$e,l$e);var WT=Object.freeze({__proto__:null,queryAllByLabelText:uIe,queryByLabelText:iIe,getAllByLabelText:sIe,getByLabelText:lIe,findAllByLabelText:oIe,findByLabelText:aIe,queryByPlaceholderText:pIe,queryAllByPlaceholderText:fIe,getByPlaceholderText:mIe,getAllByPlaceholderText:hIe,findAllByPlaceholderText:gIe,findByPlaceholderText:vIe,queryByText:wIe,queryAllByText:xIe,getByText:CIe,getAllByText:_Ie,findAllByText:TIe,findByText:SIe,queryByDisplayValue:OIe,queryAllByDisplayValue:PIe,getByDisplayValue:AIe,getAllByDisplayValue:MIe,findAllByDisplayValue:IIe,findByDisplayValue:$Ie,queryByAltText:FIe,queryAllByAltText:NIe,getByAltText:BIe,getAllByAltText:jIe,findAllByAltText:UIe,findByAltText:qIe,queryByTitle:GIe,queryAllByTitle:VIe,getByTitle:XIe,getAllByTitle:KIe,findAllByTitle:YIe,findByTitle:ZIe,queryByRole:r$e,queryAllByRole:t$e,getAllByRole:n$e,getByRole:i$e,findAllByRole:o$e,findByRole:a$e,queryByTestId:c$e,queryAllByTestId:u$e,getByTestId:f$e,getAllByTestId:d$e,findAllByTestId:p$e,findByTestId:h$e});function m$e(e,t,r){return t===void 0&&(t=WT),r===void 0&&(r={}),Object.keys(t).reduce((n,i)=>{const o=t[i];return n[i]=o.bind(null,e),n},r)}const ek={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},tk={doubleClick:"dblClick"};function ap(e,t){return Yt().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function nC(e,t,r,n){let{EventType:i="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const a={...o,...r},{target:{value:s,files:l,...u}={}}=a;s!==void 0&&g$e(t,s),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,u);const d=A5(t),p=d[i]||d.Event;let h;if(typeof p=="function")h=new p(e,a);else{h=d.document.createEvent(i);const{bubbles:g,cancelable:y,detail:x,...b}=a;h.initEvent(e,g,y,x),Object.keys(b).forEach(S=>{h[S]=b[S]})}return["dataTransfer","clipboardData"].forEach(g=>{const y=a[g];typeof y=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(h,g,{value:Object.getOwnPropertyNames(y).reduce((x,b)=>(Object.defineProperty(x,b,{value:y[b]}),x),new d.DataTransfer)}):Object.defineProperty(h,g,{value:y}))}),h}Object.keys(ek).forEach(e=>{const{EventType:t,defaultInit:r}=ek[e],n=e.toLowerCase();nC[e]=(i,o)=>nC(n,i,o,{EventType:t,defaultInit:r}),ap[e]=(i,o)=>ap(i,nC[e](i,o))});function g$e(e,t){const{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(n,"value")||{};if(i&&r!==i)i.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(tk).forEach(e=>{const t=tk[e];ap[e]=function(){return ap[t](...arguments)}});function v$e(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
498
+ `)}function y$e(e){return dAe.compressToEncodedURIComponent(v$e(e))}function b$e(e){return"https://testing-playground.com/#markup="+y$e(e)}const x$e=(e,t,r)=>Array.isArray(e)?e.forEach(n=>ZL(n,t,r)):ZL(e,t,r),w$e=function(e){if(e===void 0&&(e=bP().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=b$e(e.innerHTML);return console.log(`Open this URL in your browser
499
+
500
+ `+t),t},rk={debug:x$e,logTestingPlaygroundURL:w$e};typeof document<"u"&&document.body?m$e(document.body,WT,rk):Object.keys(WT).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),rk);var iC={};const _$e=typeof P.act=="function"?P.act:Jxe.act;function W5(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function pa(e){W5().IS_REACT_ACT_ENVIRONMENT=e}function Av(){return W5().IS_REACT_ACT_ENVIRONMENT}function C$e(e){return t=>{const r=Av();pa(!0);try{let n=!1;const i=e(()=>{const o=t();return o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n=!0),o});if(n){const o=i;return{then:(a,s)=>{o.then(l=>{pa(r),a(l)},l=>{pa(r),s(l)})}}}else return pa(r),i}catch(n){throw pa(r),n}}}const zT=C$e(_$e);Object.keys(ap).forEach(e=>{});function T$e(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}IAe({unstable_advanceTimersWrapper:e=>zT(e),asyncWrapper:async e=>{const t=Av();pa(!1);try{const r=await e();return await new Promise(n=>{setTimeout(()=>{n()},0),T$e()&&jest.advanceTimersByTime(0)}),r}finally{pa(t)}},eventWrapper:e=>{let t;return zT(()=>{t=e()}),t}});const S$e=new Set,nk=[];function ik(){nk.forEach(e=>{let{root:t,container:r}=e;zT(()=>{t.unmount()}),r.parentNode===document.body&&document.body.removeChild(r)}),nk.length=0,S$e.clear()}if((typeof process>"u"||!(iC!=null&&iC.RTL_SKIP_AUTO_CLEANUP))&&(typeof afterEach=="function"?afterEach(()=>{ik()}):typeof teardown=="function"&&teardown(()=>{ik()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=Av();beforeAll(()=>{e=Av(),pa(!0)}),afterAll(()=>{pa(e)})}var z5=(e=>(e.CREATED="CREATED",e.DRAFT="DRAFT",e.NOTACTIVE="NOTACTIVE",e.ACTIVE="ACTIVE",e.REJECTED="REJECTED",e))(z5||{});z5.ACTIVE;var V5=(e=>(e.ACTIVE_ACCOUNT="activeAccount",e.X_AUTH="user-authentication",e))(V5||{});const ok="application/json",oC={Accept:"Accept",Authorization:"Authorization",ContentType:"Content-Type"},E$e=e=>e.replace(/([^:]\/)\/+/g,"$1"),vo=({pathname:e,searchParams:t})=>{const{globalApiUrl:r}=Rme(),n=new URL(r);return n.pathname+=e,n.href=E$e(n.href),t&&Object.entries(t).forEach(([i,o])=>{!KU(o)&&o!==""&&(Array.isArray(o)?o.forEach(a=>n.searchParams.append(i,String(a))):n.searchParams.append(i,String(o)))}),n},CP=()=>{const e=new Headers,t=M$e();return e.set(oC.Authorization,`Bearer ${t}`),e.set(oC.Accept,ok),e.set(oC.ContentType,ok),e},G5=async(e,t)=>{const r=e.toString(),n=await fetch(r,{mode:"cors",...t});return await Pme(n),n},i1=async(e,t,r)=>{const n=await G5(e,t);if(r)return n;try{return await n.json()}catch{return n.ok||console.error("The response is not valid JSON"),""}},R$e=(e,t)=>{const r=CP();return i1(e,{method:"GET",headers:r},t)},P$e=(e,t,r)=>{const n=CP();return i1(e,{method:"POST",headers:n,body:r?t:JSON.stringify(t)})},O$e=(e,t)=>{const r=CP();return i1(e,{method:"PUT",headers:r,body:JSON.stringify(t)})};function M$e(){const e=JSON.parse(localStorage.getItem(V5.X_AUTH)||"{}");if(!e.access_token){const t="cannot read x-auth token from local storage";throw console.error(t),new Error(t)}return e.access_token}const yo={baseFetch:G5,get:R$e,handleFetch:i1,post:P$e,put:O$e},A$e=async({alertId:e,...t})=>{const r=vo({pathname:`/dcim-custom-alerts/${e}/threshold`});return await yo.put(r,t)},I$e=e=>LE(Qn.EDIT_NOTIFICATION,A$e,e),$$e=async e=>{const t=vo({pathname:"/dcim-custom-alerts"});return await yo.post(t,e)},D$e=e=>LE(Qn.CREATE_NOTIFICATION,$$e,e),L$e=async({alertId:e,...t})=>{const r=vo({pathname:`/dcim-custom-alerts/${e}/preference`});return await yo.put(r,t)},k$e=e=>LE(Qn.EDIT_NOTIFICATION,L$e,e),N$e=e=>{const{leasedSpaceName:t,sort:r,order:n}=e,i=Object.assign({},Vr.fromPairs(Vr.entries(e).filter(([s,l])=>!!l)));delete i.leasedSpaceName,i.sort=r?[r,n==null?void 0:n.toUpperCase()].join(","):void 0;const o=btoa(t),a=vo({pathname:`dcim-devices/customer-known-name-space/${o}/alerts`,searchParams:i});return yo.get(a)},Iv=(e,t)=>Oa([Qn.DCIM_ALERTS,e],()=>N$e(e),{...t,refetchOnWindowFocus:!1}),$v=e=>{let t;if(e instanceof Array)return e.map(r=>(typeof r=="object"&&(r=$v(r)),r));t={};for(const r in e)if(e.hasOwnProperty(r)){const n=Vr.camelCase(r);let i=e[r];(i instanceof Array||i!==null&&i.constructor===Object)&&(i=$v(i)),t[n]=i}return t},F$e=1,K5=1e3*F$e,X5=60*K5,j$e=(e=new Date)=>{const t=new Date(e);return t.setSeconds(0),t.setMilliseconds(0),t},B$e=async({leasedSpaceName:e,...t})=>{const r=btoa(e),n=vo({pathname:`dcim-devices/customer-known-name-space/${r}/chart-data`,searchParams:t}),i=await yo.get(n);return $v(i)},Y5=(e,t={})=>{const r=X5*15,n={cacheTime:r,refetchInterval:0,refetchOnMount:!1,retry:!1,staleTime:r,...t};return Oa([Qn.DCIM_CHART_DATA,e],()=>B$e(e),n)},U$e=async e=>{const t=btoa(e),r=vo({pathname:`/dcim-devices/customer-known-name-space/${t}/chart-metadata`}),n=await yo.get(r);return $v(n)},Z5=(e,t={})=>{const n={cacheTime:X5*15,refetchInterval:0,...t};return Oa([Qn.DCIM_CHART_METADATA],()=>U$e(e),n)},J5=({leasedSpaceName:e,size:t,page:r,sort:n,order:i,...o})=>{const a=Object.assign({},Vr.fromPairs(Vr.entries(o).filter(([u,d])=>!!d)));a.size=t,a.page=r,a.sort=n?[n,i].join(","):"";const s=btoa(e),l=vo({pathname:`dcim-devices/customer-known-name-space/${s}/historical-alerts`,searchParams:a});return yo.get(l)},Q5=(e,t)=>Oa([Qn.DCIM_HISTORICAL_ALERTS,e],()=>J5(e),{placeholderData:[],refetchInterval:0,...t}),eH=e=>{const{sort:t,order:r,leasedSpaceName:n}=e,i=Object.assign({},Vr.fromPairs(Vr.entries(e).filter(([s,l])=>!!l)));delete i.leasedSpaceName,i.sort=t?[t,r==null?void 0:r.toUpperCase()].join(","):void 0;const o=btoa(n),a=vo({pathname:`dcim-devices/customer-known-name-space/${o}/alert-instances`,searchParams:i});return yo.get(a)},VT=(e,t)=>Oa([Qn.DCIM_ALERT_INSTANCES,e],()=>eH(e),{placeholderData:[],refetchInterval:0,...t}),q$e=e=>{const t=vo({pathname:`dcim-historical-alert-instances/${e}`});return yo.get(t)},H$e=(e,t)=>Oa([Qn.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS],()=>q$e(e),{...t,refetchOnWindowFocus:!1}),W$e=async(e,t,r,n)=>{const i=vo({pathname:"/dcim-devices/planned-site-maintenance",searchParams:{location:e,site:t,startDate:r,endDate:n}});return await yo.get(i)},z$e=(e,t,r,n,i)=>Oa([Qn.PLANNED_SITE_MAINTENANCE,e,t,r,n],()=>W$e(e,t,r,n),{...i,refetchOnWindowFocus:!1}),V$e=e=>{const t=vo({pathname:`dcim-alert-instances/${e}`});return yo.get(t)},G$e=(e,t)=>Oa([Qn.DCIM_ALERT_INSTANCE_DETAILS],()=>V$e(e),{...t,refetchOnWindowFocus:!1}),ak=jr(E.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),tH=jr(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),TP=jr(E.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"),K$e=jr(E.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),X$e=W("div",{shouldForwardProp:e=>e!=="$isVisible"})`
501
+ display: flex;
502
+ flex-direction: column;
503
+ visibility: ${({$isVisible:e=!0})=>e?"none":"hidden"};
504
+ `,Y$e=W("div")`
505
+ display: flex;
506
+ `,Z$e=W(Ke)`
507
+ word-break: break-word;
508
+ `,J$e=(e,t="-")=>{const{t:r}=wr("common"),{formatDateTime:n}=aP();return KU(e)||e===""?t:typeof e=="boolean"?r(e.toString()):typeof e=="number"?String(e):e3(e)?n(e):e},ra=({title:e,value:t,emptyValue:r="-",whiteSpace:n,isVisible:i,icon:o,...a})=>{const s=a["data-testid"],l=J$e(t,r);return E.jsxs(X$e,{$isVisible:i,children:[E.jsxs(Y$e,{children:[E.jsx(Ke,{variant:"subtitle2",component:"h5",whiteSpace:n?"nowrap":"normal",children:e}),o]}),typeof l=="string"?E.jsx(Z$e,{"data-testid":s,variant:"subtitle1",children:l}):l]})};var Tn=(e=>(e.POWER="power",e.ENVIRONMENTAL="environmental",e.AUXILIARY="auxiliary",e))(Tn||{}),Vn=(e=>(e.CRITICAL="critical",e.CUSTOM="custom",e))(Vn||{});const Q$e=["critical","custom"];var co=(e=>(e.HISTORY="history",e.DEFINITIONS="definitions",e.INSTANCES="instances",e))(co||{});const rH=W("div")`
509
+ height: 32px;
510
+ display: flex;
511
+ flex-direction: row;
512
+ align-items: center;
513
+ background: ${e=>e.background||"#ffffff"};
514
+ border-radius: 68px;
515
+ width: fit-content;
516
+ padding: 4px 16px 4px 4px;
517
+ gap: 8px;
518
+ `;W(rH)`
519
+ background: #4caf50;
520
+ padding: 4px 16px;
521
+
522
+ span {
523
+ color: white;
524
+ }
525
+ `;const eDe=W(rH)`
526
+ // TODO is this needed for DCIM?
527
+ padding: 3px 10px;
528
+ height: fit-content;
529
+ `,Dv=({title:e})=>{var a,s;const{palette:t,extraColors:r}=fn(),n={[Tn.POWER]:{background:t.warning.main,color:r.textLight},[Tn.ENVIRONMENTAL]:{background:t.success.main,color:r.textLight},[Tn.AUXILIARY]:{background:t.info.main,color:r.textLight},default:{background:r.divider,color:t.text.primary}},i=((a=n[e])==null?void 0:a.background)||n.default.background,o=((s=n[e])==null?void 0:s.color)||n.default.color;return E.jsx(eDe,{background:i,"data-testid":`alert-badge-${e}`,children:E.jsx(Ke,{sx:{fontSize:13,lineHeight:"18px",color:o},children:Vr.startCase(e)})})},aC=W("div")`
530
+ max-width: 828px;
531
+ margin-right: 32px;
532
+ background: #ffffff;
533
+ border-radius: 12px 12px 0 0;
534
+ border: 1px solid rgb(0 0 0 / 12%);
535
+ width: 100%;
536
+ padding: 24px;
537
+
538
+ ${({theme:e})=>e.breakpoints.up("lg")} {
539
+ height: calc(100vh - ${({theme:e})=>e.layout.pageHeader.height}px);
540
+ overflow: auto;
541
+ }
542
+
543
+ ${({theme:e})=>e.breakpoints.down("lg")} {
544
+ border: 0;
545
+ }
546
+ `,sk=W("div")`
547
+ h5 {
548
+ color: ${({theme:e})=>e.extraColors.textDark2};
549
+ }
550
+ `,lk=W("div")`
551
+ display: flex;
552
+ flex-direction: column;
553
+ gap: 16px;
554
+ `,tDe=W(Ke)`
555
+ ${({theme:e})=>e.breakpoints.down("lg")} {
556
+ font-size: 34px;
557
+ line-height: 40px;
558
+ }
559
+ `,rDe=W(YB)`
560
+ margin: 24px 0;
561
+
562
+ ${({theme:e})=>e.breakpoints.down("lg")} {
563
+ margin: 36px 0 24px 0;
564
+ }
565
+ `,nDe=W("div")`
566
+ display: flex;
567
+ flex-direction: column;
568
+ align-items: center;
569
+ justify-content: center;
570
+ height: 100%;
571
+ `;var GT={exports:{}},KT={exports:{}},XT={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o]);return n}e.exports=t.default})(XT,XT.exports);var iDe=XT.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(iDe);function i(o){return(0,n.default)({},o)}e.exports=t.default})(KT,KT.exports);var oDe=KT.exports,YT={exports:{}},ZT={exports:{}},JT={exports:{}},QT={exports:{}},nH={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nH);var iH=nH.exports,eS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(i.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(eS,eS.exports);var jn=eS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(iH),i=r(jn);function o(a){return(0,i.default)(1,arguments),a instanceof Date||(0,n.default)(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(QT,QT.exports);var aDe=QT.exports,tS={exports:{}};(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(iH),i=r(jn);function o(a){(0,i.default)(1,arguments);var s=Object.prototype.toString.call(a);return a instanceof Date||(0,n.default)(a)==="object"&&s==="[object Date]"?new Date(a.getTime()):typeof a=="number"||s==="[object Number]"?new Date(a):((typeof a=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(tS,tS.exports);var qo=tS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(aDe),i=r(qo),o=r(jn);function a(s){if((0,o.default)(1,arguments),!(0,n.default)(s)&&typeof s!="number")return!1;var l=(0,i.default)(s);return!isNaN(Number(l))}e.exports=t.default})(JT,JT.exports);var sDe=JT.exports,rS={exports:{}},nS={exports:{}},iS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var i=Number(n);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(iS,iS.exports);var eu=iS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(eu),i=r(qo),o=r(jn);function a(s,l){(0,o.default)(2,arguments);var u=(0,i.default)(s).getTime(),d=(0,n.default)(l);return new Date(u+d)}e.exports=t.default})(nS,nS.exports);var lDe=nS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(lDe),i=r(jn),o=r(eu);function a(s,l){(0,i.default)(2,arguments);var u=(0,o.default)(l);return(0,n.default)(s,-u)}e.exports=t.default})(rS,rS.exports);var uDe=rS.exports,oS={exports:{}},aS={exports:{}};(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(qo),i=r(jn),o=864e5;function a(s){(0,i.default)(1,arguments);var l=(0,n.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var d=l.getTime(),p=u-d;return Math.floor(p/o)+1}e.exports=t.default})(aS,aS.exports);var cDe=aS.exports,sS={exports:{}},lS={exports:{}};(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(qo),i=r(jn);function o(a){(0,i.default)(1,arguments);var s=1,l=(0,n.default)(a),u=l.getUTCDay(),d=(u<s?7:0)+u-s;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}e.exports=t.default})(lS,lS.exports);var SP=lS.exports,uS={exports:{}},cS={exports:{}};(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(qo),i=r(jn),o=r(SP);function a(s){(0,i.default)(1,arguments);var l=(0,n.default)(s),u=l.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(u+1,0,4),d.setUTCHours(0,0,0,0);var p=(0,o.default)(d),h=new Date(0);h.setUTCFullYear(u,0,4),h.setUTCHours(0,0,0,0);var m=(0,o.default)(h);return l.getTime()>=p.getTime()?u+1:l.getTime()>=m.getTime()?u:u-1}e.exports=t.default})(cS,cS.exports);var oH=cS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(oH),i=r(SP),o=r(jn);function a(s){(0,o.default)(1,arguments);var l=(0,n.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var d=(0,i.default)(u);return d}e.exports=t.default})(uS,uS.exports);var dDe=uS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(qo),i=r(SP),o=r(dDe),a=r(jn),s=6048e5;function l(u){(0,a.default)(1,arguments);var d=(0,n.default)(u),p=(0,i.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(p/s)+1}e.exports=t.default})(sS,sS.exports);var fDe=sS.exports,dS={exports:{}},fS={exports:{}},tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.getDefaultOptions=pDe;tu.setDefaultOptions=hDe;var aH={};function pDe(){return aH}function hDe(e){aH=e}(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(qo),i=r(jn),o=r(eu),a=tu;function s(l,u){var d,p,h,m,g,y,x,b;(0,i.default)(1,arguments);var S=(0,a.getDefaultOptions)(),w=(0,o.default)((d=(p=(h=(m=u==null?void 0:u.weekStartsOn)!==null&&m!==void 0?m:u==null||(g=u.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:S.weekStartsOn)!==null&&p!==void 0?p:(x=S.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=(0,n.default)(l),O=_.getUTCDay(),C=(O<w?7:0)+O-w;return _.setUTCDate(_.getUTCDate()-C),_.setUTCHours(0,0,0,0),_}e.exports=t.default})(fS,fS.exports);var EP=fS.exports,pS={exports:{}},hS={exports:{}};(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(qo),i=r(jn),o=r(EP),a=r(eu),s=tu;function l(u,d){var p,h,m,g,y,x,b,S;(0,i.default)(1,arguments);var w=(0,n.default)(u),_=w.getUTCFullYear(),O=(0,s.getDefaultOptions)(),C=(0,a.default)((p=(h=(m=(g=d==null?void 0:d.firstWeekContainsDate)!==null&&g!==void 0?g:d==null||(y=d.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&m!==void 0?m:O.firstWeekContainsDate)!==null&&h!==void 0?h:(b=O.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&p!==void 0?p:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(_+1,0,C),T.setUTCHours(0,0,0,0);var M=(0,o.default)(T,d),D=new Date(0);D.setUTCFullYear(_,0,C),D.setUTCHours(0,0,0,0);var $=(0,o.default)(D,d);return w.getTime()>=M.getTime()?_+1:w.getTime()>=$.getTime()?_:_-1}e.exports=t.default})(hS,hS.exports);var sH=hS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(sH),i=r(jn),o=r(EP),a=r(eu),s=tu;function l(u,d){var p,h,m,g,y,x,b,S;(0,i.default)(1,arguments);var w=(0,s.getDefaultOptions)(),_=(0,a.default)((p=(h=(m=(g=d==null?void 0:d.firstWeekContainsDate)!==null&&g!==void 0?g:d==null||(y=d.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&m!==void 0?m:w.firstWeekContainsDate)!==null&&h!==void 0?h:(b=w.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&p!==void 0?p:1),O=(0,n.default)(u,d),C=new Date(0);C.setUTCFullYear(O,0,_),C.setUTCHours(0,0,0,0);var T=(0,o.default)(C,d);return T}e.exports=t.default})(pS,pS.exports);var mDe=pS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(qo),i=r(EP),o=r(mDe),a=r(jn),s=6048e5;function l(u,d){(0,a.default)(1,arguments);var p=(0,n.default)(u),h=(0,i.default)(p,d).getTime()-(0,o.default)(p,d).getTime();return Math.round(h/s)+1}e.exports=t.default})(dS,dS.exports);var gDe=dS.exports,mS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){for(var o=n<0?"-":"",a=Math.abs(n).toString();a.length<i;)a="0"+a;return o+a}e.exports=t.default})(mS,mS.exports);var lH=mS.exports,gS={exports:{}};(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(lH),i={y:function(s,l){var u=s.getUTCFullYear(),d=u>0?u:1-u;return(0,n.default)(l==="yy"?d%100:d,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,n.default)(u+1,2)},d:function(s,l){return(0,n.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,n.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,n.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,n.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,n.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,d=s.getUTCMilliseconds(),p=Math.floor(d*Math.pow(10,u-3));return(0,n.default)(p,l.length)}},o=i;t.default=o,e.exports=t.default})(gS,gS.exports);var vDe=gS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(cDe),i=r(fDe),o=r(oH),a=r(gDe),s=r(sH),l=r(lH),u=r(vDe),d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p={G:function(b,S,w){var _=b.getUTCFullYear()>0?1:0;switch(S){case"G":case"GG":case"GGG":return w.era(_,{width:"abbreviated"});case"GGGGG":return w.era(_,{width:"narrow"});case"GGGG":default:return w.era(_,{width:"wide"})}},y:function(b,S,w){if(S==="yo"){var _=b.getUTCFullYear(),O=_>0?_:1-_;return w.ordinalNumber(O,{unit:"year"})}return u.default.y(b,S)},Y:function(b,S,w,_){var O=(0,s.default)(b,_),C=O>0?O:1-O;if(S==="YY"){var T=C%100;return(0,l.default)(T,2)}return S==="Yo"?w.ordinalNumber(C,{unit:"year"}):(0,l.default)(C,S.length)},R:function(b,S){var w=(0,o.default)(b);return(0,l.default)(w,S.length)},u:function(b,S){var w=b.getUTCFullYear();return(0,l.default)(w,S.length)},Q:function(b,S,w){var _=Math.ceil((b.getUTCMonth()+1)/3);switch(S){case"Q":return String(_);case"QQ":return(0,l.default)(_,2);case"Qo":return w.ordinalNumber(_,{unit:"quarter"});case"QQQ":return w.quarter(_,{width:"abbreviated",context:"formatting"});case"QQQQQ":return w.quarter(_,{width:"narrow",context:"formatting"});case"QQQQ":default:return w.quarter(_,{width:"wide",context:"formatting"})}},q:function(b,S,w){var _=Math.ceil((b.getUTCMonth()+1)/3);switch(S){case"q":return String(_);case"qq":return(0,l.default)(_,2);case"qo":return w.ordinalNumber(_,{unit:"quarter"});case"qqq":return w.quarter(_,{width:"abbreviated",context:"standalone"});case"qqqqq":return w.quarter(_,{width:"narrow",context:"standalone"});case"qqqq":default:return w.quarter(_,{width:"wide",context:"standalone"})}},M:function(b,S,w){var _=b.getUTCMonth();switch(S){case"M":case"MM":return u.default.M(b,S);case"Mo":return w.ordinalNumber(_+1,{unit:"month"});case"MMM":return w.month(_,{width:"abbreviated",context:"formatting"});case"MMMMM":return w.month(_,{width:"narrow",context:"formatting"});case"MMMM":default:return w.month(_,{width:"wide",context:"formatting"})}},L:function(b,S,w){var _=b.getUTCMonth();switch(S){case"L":return String(_+1);case"LL":return(0,l.default)(_+1,2);case"Lo":return w.ordinalNumber(_+1,{unit:"month"});case"LLL":return w.month(_,{width:"abbreviated",context:"standalone"});case"LLLLL":return w.month(_,{width:"narrow",context:"standalone"});case"LLLL":default:return w.month(_,{width:"wide",context:"standalone"})}},w:function(b,S,w,_){var O=(0,a.default)(b,_);return S==="wo"?w.ordinalNumber(O,{unit:"week"}):(0,l.default)(O,S.length)},I:function(b,S,w){var _=(0,i.default)(b);return S==="Io"?w.ordinalNumber(_,{unit:"week"}):(0,l.default)(_,S.length)},d:function(b,S,w){return S==="do"?w.ordinalNumber(b.getUTCDate(),{unit:"date"}):u.default.d(b,S)},D:function(b,S,w){var _=(0,n.default)(b);return S==="Do"?w.ordinalNumber(_,{unit:"dayOfYear"}):(0,l.default)(_,S.length)},E:function(b,S,w){var _=b.getUTCDay();switch(S){case"E":case"EE":case"EEE":return w.day(_,{width:"abbreviated",context:"formatting"});case"EEEEE":return w.day(_,{width:"narrow",context:"formatting"});case"EEEEEE":return w.day(_,{width:"short",context:"formatting"});case"EEEE":default:return w.day(_,{width:"wide",context:"formatting"})}},e:function(b,S,w,_){var O=b.getUTCDay(),C=(O-_.weekStartsOn+8)%7||7;switch(S){case"e":return String(C);case"ee":return(0,l.default)(C,2);case"eo":return w.ordinalNumber(C,{unit:"day"});case"eee":return w.day(O,{width:"abbreviated",context:"formatting"});case"eeeee":return w.day(O,{width:"narrow",context:"formatting"});case"eeeeee":return w.day(O,{width:"short",context:"formatting"});case"eeee":default:return w.day(O,{width:"wide",context:"formatting"})}},c:function(b,S,w,_){var O=b.getUTCDay(),C=(O-_.weekStartsOn+8)%7||7;switch(S){case"c":return String(C);case"cc":return(0,l.default)(C,S.length);case"co":return w.ordinalNumber(C,{unit:"day"});case"ccc":return w.day(O,{width:"abbreviated",context:"standalone"});case"ccccc":return w.day(O,{width:"narrow",context:"standalone"});case"cccccc":return w.day(O,{width:"short",context:"standalone"});case"cccc":default:return w.day(O,{width:"wide",context:"standalone"})}},i:function(b,S,w){var _=b.getUTCDay(),O=_===0?7:_;switch(S){case"i":return String(O);case"ii":return(0,l.default)(O,S.length);case"io":return w.ordinalNumber(O,{unit:"day"});case"iii":return w.day(_,{width:"abbreviated",context:"formatting"});case"iiiii":return w.day(_,{width:"narrow",context:"formatting"});case"iiiiii":return w.day(_,{width:"short",context:"formatting"});case"iiii":default:return w.day(_,{width:"wide",context:"formatting"})}},a:function(b,S,w){var _=b.getUTCHours(),O=_/12>=1?"pm":"am";switch(S){case"a":case"aa":return w.dayPeriod(O,{width:"abbreviated",context:"formatting"});case"aaa":return w.dayPeriod(O,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return w.dayPeriod(O,{width:"narrow",context:"formatting"});case"aaaa":default:return w.dayPeriod(O,{width:"wide",context:"formatting"})}},b:function(b,S,w){var _=b.getUTCHours(),O;switch(_===12?O=d.noon:_===0?O=d.midnight:O=_/12>=1?"pm":"am",S){case"b":case"bb":return w.dayPeriod(O,{width:"abbreviated",context:"formatting"});case"bbb":return w.dayPeriod(O,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return w.dayPeriod(O,{width:"narrow",context:"formatting"});case"bbbb":default:return w.dayPeriod(O,{width:"wide",context:"formatting"})}},B:function(b,S,w){var _=b.getUTCHours(),O;switch(_>=17?O=d.evening:_>=12?O=d.afternoon:_>=4?O=d.morning:O=d.night,S){case"B":case"BB":case"BBB":return w.dayPeriod(O,{width:"abbreviated",context:"formatting"});case"BBBBB":return w.dayPeriod(O,{width:"narrow",context:"formatting"});case"BBBB":default:return w.dayPeriod(O,{width:"wide",context:"formatting"})}},h:function(b,S,w){if(S==="ho"){var _=b.getUTCHours()%12;return _===0&&(_=12),w.ordinalNumber(_,{unit:"hour"})}return u.default.h(b,S)},H:function(b,S,w){return S==="Ho"?w.ordinalNumber(b.getUTCHours(),{unit:"hour"}):u.default.H(b,S)},K:function(b,S,w){var _=b.getUTCHours()%12;return S==="Ko"?w.ordinalNumber(_,{unit:"hour"}):(0,l.default)(_,S.length)},k:function(b,S,w){var _=b.getUTCHours();return _===0&&(_=24),S==="ko"?w.ordinalNumber(_,{unit:"hour"}):(0,l.default)(_,S.length)},m:function(b,S,w){return S==="mo"?w.ordinalNumber(b.getUTCMinutes(),{unit:"minute"}):u.default.m(b,S)},s:function(b,S,w){return S==="so"?w.ordinalNumber(b.getUTCSeconds(),{unit:"second"}):u.default.s(b,S)},S:function(b,S){return u.default.S(b,S)},X:function(b,S,w,_){var O=_._originalDate||b,C=O.getTimezoneOffset();if(C===0)return"Z";switch(S){case"X":return m(C);case"XXXX":case"XX":return g(C);case"XXXXX":case"XXX":default:return g(C,":")}},x:function(b,S,w,_){var O=_._originalDate||b,C=O.getTimezoneOffset();switch(S){case"x":return m(C);case"xxxx":case"xx":return g(C);case"xxxxx":case"xxx":default:return g(C,":")}},O:function(b,S,w,_){var O=_._originalDate||b,C=O.getTimezoneOffset();switch(S){case"O":case"OO":case"OOO":return"GMT"+h(C,":");case"OOOO":default:return"GMT"+g(C,":")}},z:function(b,S,w,_){var O=_._originalDate||b,C=O.getTimezoneOffset();switch(S){case"z":case"zz":case"zzz":return"GMT"+h(C,":");case"zzzz":default:return"GMT"+g(C,":")}},t:function(b,S,w,_){var O=_._originalDate||b,C=Math.floor(O.getTime()/1e3);return(0,l.default)(C,S.length)},T:function(b,S,w,_){var O=_._originalDate||b,C=O.getTime();return(0,l.default)(C,S.length)}};function h(x,b){var S=x>0?"-":"+",w=Math.abs(x),_=Math.floor(w/60),O=w%60;if(O===0)return S+String(_);var C=b;return S+String(_)+C+(0,l.default)(O,2)}function m(x,b){if(x%60===0){var S=x>0?"-":"+";return S+(0,l.default)(Math.abs(x)/60,2)}return g(x,b)}function g(x,b){var S=b||"",w=x>0?"-":"+",_=Math.abs(x),O=(0,l.default)(Math.floor(_/60),2),C=(0,l.default)(_%60,2);return w+O+S+C}var y=p;t.default=y,e.exports=t.default})(oS,oS.exports);var yDe=oS.exports,vS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},n=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},i=function(l,u){var d=l.match(/(P+)(p+)?/)||[],p=d[1],h=d[2];if(!h)return r(l,u);var m;switch(p){case"P":m=u.dateTime({width:"short"});break;case"PP":m=u.dateTime({width:"medium"});break;case"PPP":m=u.dateTime({width:"long"});break;case"PPPP":default:m=u.dateTime({width:"full"});break}return m.replace("{{date}}",r(p,u)).replace("{{time}}",n(h,u))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(vS,vS.exports);var uH=vS.exports;const cH=gi(uH);var yS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i.setUTCFullYear(n.getFullYear()),n.getTime()-i.getTime()}e.exports=t.default})(yS,yS.exports);var dH=yS.exports,nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.isProtectedDayOfYearToken=wDe;nh.isProtectedWeekYearToken=_De;nh.throwProtectedError=CDe;var bDe=["D","DD"],xDe=["YY","YYYY"];function wDe(e){return bDe.indexOf(e)!==-1}function _De(e){return xDe.indexOf(e)!==-1}function CDe(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var bS={exports:{}},xS={exports:{}},wS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(a,s,l){var u,d=r[a];return typeof d=="string"?u=d:s===1?u=d.one:u=d.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},i=n;t.default=i,e.exports=t.default})(wS,wS.exports);var TDe=wS.exports,_S={exports:{}},CS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=i.width?String(i.width):n.defaultWidth,a=n.formats[o]||n.formats[n.defaultWidth];return a}}e.exports=t.default})(CS,CS.exports);var SDe=CS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(SDe),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,n.default)({formats:i,defaultWidth:"full"}),time:(0,n.default)({formats:o,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},l=s;t.default=l,e.exports=t.default})(_S,_S.exports);var EDe=_S.exports,TS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(a,s,l,u){return r[a]},i=n;t.default=i,e.exports=t.default})(TS,TS.exports);var RDe=TS.exports,SS={exports:{}},ES={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i,o){var a=o!=null&&o.context?String(o.context):"standalone",s;if(a==="formatting"&&n.formattingValues){var l=n.defaultFormattingWidth||n.defaultWidth,u=o!=null&&o.width?String(o.width):l;s=n.formattingValues[u]||n.formattingValues[l]}else{var d=n.defaultWidth,p=o!=null&&o.width?String(o.width):n.defaultWidth;s=n.values[p]||n.values[d]}var h=n.argumentCallback?n.argumentCallback(i):i;return s[h]}}e.exports=t.default})(ES,ES.exports);var PDe=ES.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(PDe),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(g,y){var x=Number(g),b=x%100;if(b>20||b<10)switch(b%10){case 1:return x+"st";case 2:return x+"nd";case 3:return x+"rd"}return x+"th"},p={ordinalNumber:d,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:o,defaultWidth:"wide",argumentCallback:function(g){return g-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},h=p;t.default=h,e.exports=t.default})(SS,SS.exports);var ODe=SS.exports,RS={exports:{}},PS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){return function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&o.matchPatterns[l]||o.matchPatterns[o.defaultMatchWidth],d=a.match(u);if(!d)return null;var p=d[0],h=l&&o.parsePatterns[l]||o.parsePatterns[o.defaultParseWidth],m=Array.isArray(h)?i(h,function(x){return x.test(p)}):n(h,function(x){return x.test(p)}),g;g=o.valueCallback?o.valueCallback(m):m,g=s.valueCallback?s.valueCallback(g):g;var y=a.slice(p.length);return{value:g,rest:y}}}function n(o,a){for(var s in o)if(o.hasOwnProperty(s)&&a(o[s]))return s}function i(o,a){for(var s=0;s<o.length;s++)if(a(o[s]))return s}e.exports=t.default})(PS,PS.exports);var MDe=PS.exports,OS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.match(n.matchPattern);if(!a)return null;var s=a[0],l=i.match(n.parsePattern);if(!l)return null;var u=n.valueCallback?n.valueCallback(l[0]):l[0];u=o.valueCallback?o.valueCallback(u):u;var d=i.slice(s.length);return{value:u,rest:d}}}e.exports=t.default})(OS,OS.exports);var ADe=OS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(MDe),i=r(ADe),o=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},p={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b={ordinalNumber:(0,i.default)({matchPattern:o,parsePattern:a,valueCallback:function(_){return parseInt(_,10)}}),era:(0,n.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(_){return _+1}}),month:(0,n.default)({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:g,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:x,defaultParseWidth:"any"})},S=b;t.default=S,e.exports=t.default})(RS,RS.exports);var IDe=RS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(TDe),i=r(EDe),o=r(RDe),a=r(ODe),s=r(IDe),l={code:"en-US",formatDistance:n.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;t.default=u,e.exports=t.default})(xS,xS.exports);var $De=xS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($De),i=n.default;t.default=i,e.exports=t.default})(bS,bS.exports);var DDe=bS.exports;(function(e,t){var r=Ut.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var n=r(sDe),i=r(uDe),o=r(qo),a=r(yDe),s=r(uH),l=r(dH),u=nh,d=r(eu),p=r(jn),h=tu,m=r(DDe),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x=/^'([^]*?)'?$/,b=/''/g,S=/[a-zA-Z]/;function w(O,C,T){var M,D,$,N,B,q,U,F,j,V,z,Q,oe,ae,he,Ae,ve,fe;(0,p.default)(2,arguments);var Ee=String(C),_e=(0,h.getDefaultOptions)(),le=(M=(D=T==null?void 0:T.locale)!==null&&D!==void 0?D:_e.locale)!==null&&M!==void 0?M:m.default,ce=(0,d.default)(($=(N=(B=(q=T==null?void 0:T.firstWeekContainsDate)!==null&&q!==void 0?q:T==null||(U=T.locale)===null||U===void 0||(F=U.options)===null||F===void 0?void 0:F.firstWeekContainsDate)!==null&&B!==void 0?B:_e.firstWeekContainsDate)!==null&&N!==void 0?N:(j=_e.locale)===null||j===void 0||(V=j.options)===null||V===void 0?void 0:V.firstWeekContainsDate)!==null&&$!==void 0?$:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ve=(0,d.default)((z=(Q=(oe=(ae=T==null?void 0:T.weekStartsOn)!==null&&ae!==void 0?ae:T==null||(he=T.locale)===null||he===void 0||(Ae=he.options)===null||Ae===void 0?void 0:Ae.weekStartsOn)!==null&&oe!==void 0?oe:_e.weekStartsOn)!==null&&Q!==void 0?Q:(ve=_e.locale)===null||ve===void 0||(fe=ve.options)===null||fe===void 0?void 0:fe.weekStartsOn)!==null&&z!==void 0?z:0);if(!(Ve>=0&&Ve<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!le.localize)throw new RangeError("locale must contain localize property");if(!le.formatLong)throw new RangeError("locale must contain formatLong property");var je=(0,o.default)(O);if(!(0,n.default)(je))throw new RangeError("Invalid time value");var be=(0,l.default)(je),me=(0,i.default)(je,be),Ie={firstWeekContainsDate:ce,weekStartsOn:Ve,locale:le,_originalDate:je},Je=Ee.match(y).map(function(at){var ct=at[0];if(ct==="p"||ct==="P"){var Vt=s.default[ct];return Vt(at,le.formatLong)}return at}).join("").match(g).map(function(at){if(at==="''")return"'";var ct=at[0];if(ct==="'")return _(at);var Vt=a.default[ct];if(Vt)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(at)&&(0,u.throwProtectedError)(at,C,String(O)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(at)&&(0,u.throwProtectedError)(at,C,String(O)),Vt(me,at,le.localize,Ie);if(ct.match(S))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ct+"`");return at}).join("");return Je}function _(O){var C=O.match(x);return C?C[1].replace(b,"'"):O}e.exports=t.default})(ZT,ZT.exports);var LDe=ZT.exports,MS={exports:{}},AS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,s,l){var u=o(a,l.timeZone,l.locale);return u.formatToParts?n(u,s):i(u,s)}function n(a,s){for(var l=a.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function i(a,s){var l=a.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function o(a,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:a})}e.exports=t.default})(AS,AS.exports);var kDe=AS.exports,IS={exports:{}},$S={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(l,u){var d=s(u);return d.formatToParts?i(d,l):o(d,l)}var n={year:0,month:1,day:2,hour:3,minute:4,second:5};function i(l,u){try{for(var d=l.formatToParts(u),p=[],h=0;h<d.length;h++){var m=n[d[h].type];m>=0&&(p[m]=parseInt(d[h].value,10))}return p}catch(g){if(g instanceof RangeError)return[NaN];throw g}}function o(l,u){var d=l.format(u).replace(/\u200E/g,""),p=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(d);return[p[3],p[1],p[2],p[4],p[5],p[6]]}var a={};function s(l){if(!a[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),d=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";a[l]=d?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return a[l]}e.exports=t.default})($S,$S.exports);var NDe=$S.exports,DS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i,o,a,s,l,u){var d=new Date(0);return d.setUTCFullYear(n,i,o),d.setUTCHours(a,s,l,u),d}e.exports=t.default})(DS,DS.exports);var FDe=DS.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=i(NDe),n=i(FDe);function i(y){return y&&y.__esModule?y:{default:y}}var o=36e5,a=6e4,s={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(y,x,b){var S,w;if(!y||(S=s.timezoneZ.exec(y),S))return 0;var _;if(S=s.timezoneHH.exec(y),S)return _=parseInt(S[1],10),h(_)?-(_*o):NaN;if(S=s.timezoneHHMM.exec(y),S){_=parseInt(S[1],10);var O=parseInt(S[2],10);return h(_,O)?(w=Math.abs(_)*o+O*a,_>0?-w:w):NaN}if(g(y)){x=new Date(x||Date.now());var C=b?x:u(x),T=d(C,y),M=b?T:p(x,T,y);return-M}return NaN}function u(y){return(0,n.default)(y.getFullYear(),y.getMonth(),y.getDate(),y.getHours(),y.getMinutes(),y.getSeconds(),y.getMilliseconds())}function d(y,x){var b=(0,r.default)(y,x),S=(0,n.default)(b[0],b[1]-1,b[2],b[3]%24,b[4],b[5],0).getTime(),w=y.getTime(),_=w%1e3;return w-=_>=0?_:1e3+_,S-w}function p(y,x,b){var S=y.getTime(),w=S-x,_=d(new Date(w),b);if(x===_)return x;w-=_-x;var O=d(new Date(w),b);return _===O?_:Math.max(_,O)}function h(y,x){return-23<=y&&y<=23&&(x==null||0<=x&&x<=59)}var m={};function g(y){if(m[y])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:y}),m[y]=!0,!0}catch{return!1}}e.exports=t.default})(IS,IS.exports);var RP=IS.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(kDe),n=i(RP);function i(m){return m&&m.__esModule?m:{default:m}}var o=60*1e3,a={X:function(m,g,y,x){var b=s(x.timeZone,x._originalDate||m);if(b===0)return"Z";switch(g){case"X":return d(b);case"XXXX":case"XX":return u(b);case"XXXXX":case"XXX":default:return u(b,":")}},x:function(m,g,y,x){var b=s(x.timeZone,x._originalDate||m);switch(g){case"x":return d(b);case"xxxx":case"xx":return u(b);case"xxxxx":case"xxx":default:return u(b,":")}},O:function(m,g,y,x){var b=s(x.timeZone,x._originalDate||m);switch(g){case"O":case"OO":case"OOO":return"GMT"+p(b,":");case"OOOO":default:return"GMT"+u(b,":")}},z:function(m,g,y,x){var b=x._originalDate||m;switch(g){case"z":case"zz":case"zzz":return(0,r.default)("short",b,x);case"zzzz":default:return(0,r.default)("long",b,x)}}};function s(m,g){var y=m?(0,n.default)(m,g,!0)/o:g.getTimezoneOffset();if(Number.isNaN(y))throw new RangeError("Invalid time zone specified: "+m);return y}function l(m,g){for(var y=m<0?"-":"",x=Math.abs(m).toString();x.length<g;)x="0"+x;return y+x}function u(m,g){var y=g||"",x=m>0?"-":"+",b=Math.abs(m),S=l(Math.floor(b/60),2),w=l(Math.floor(b%60),2);return x+S+y+w}function d(m,g){if(m%60===0){var y=m>0?"-":"+";return y+l(Math.abs(m)/60,2)}return u(m,g)}function p(m,g){var y=m>0?"-":"+",x=Math.abs(m),b=Math.floor(x/60),S=x%60;if(S===0)return y+String(b);var w=g;return y+String(b)+w+l(S,2)}var h=a;t.default=h,e.exports=t.default})(MS,MS.exports);var jDe=MS.exports,LS={exports:{}},kS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,n=r;t.default=n,e.exports=t.default})(kS,kS.exports);var BDe=kS.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=a(eu),n=a(dH),i=a(RP),o=a(BDe);function a(M){return M&&M.__esModule?M:{default:M}}var s=36e5,l=6e4,u=2,d={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:o.default};function p(M,D){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(M===null)return new Date(NaN);var $=D||{},N=$.additionalDigits==null?u:(0,r.default)($.additionalDigits);if(N!==2&&N!==1&&N!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(M instanceof Date||typeof M=="object"&&Object.prototype.toString.call(M)==="[object Date]")return new Date(M.getTime());if(typeof M=="number"||Object.prototype.toString.call(M)==="[object Number]")return new Date(M);if(!(typeof M=="string"||Object.prototype.toString.call(M)==="[object String]"))return new Date(NaN);var B=h(M),q=m(B.date,N),U=q.year,F=q.restDateString,j=g(F,U);if(isNaN(j))return new Date(NaN);if(j){var V=j.getTime(),z=0,Q;if(B.time&&(z=y(B.time),isNaN(z)))return new Date(NaN);if(B.timeZone||$.timeZone){if(Q=(0,i.default)(B.timeZone||$.timeZone,new Date(V+z)),isNaN(Q))return new Date(NaN)}else Q=(0,n.default)(new Date(V+z)),Q=(0,n.default)(new Date(V+z+Q));return new Date(V+z+Q)}else return new Date(NaN)}function h(M){var D={},$=d.dateTimePattern.exec(M),N;if($?(D.date=$[1],N=$[3]):($=d.datePattern.exec(M),$?(D.date=$[1],N=$[2]):(D.date=null,N=M)),N){var B=d.timeZone.exec(N);B?(D.time=N.replace(B[1],""),D.timeZone=B[1].trim()):D.time=N}return D}function m(M,D){var $=d.YYY[D],N=d.YYYYY[D],B;if(B=d.YYYY.exec(M)||N.exec(M),B){var q=B[1];return{year:parseInt(q,10),restDateString:M.slice(q.length)}}if(B=d.YY.exec(M)||$.exec(M),B){var U=B[1];return{year:parseInt(U,10)*100,restDateString:M.slice(U.length)}}return{year:null}}function g(M,D){if(D===null)return null;var $,N,B,q;if(M.length===0)return N=new Date(0),N.setUTCFullYear(D),N;if($=d.MM.exec(M),$)return N=new Date(0),B=parseInt($[1],10)-1,_(D,B)?(N.setUTCFullYear(D,B),N):new Date(NaN);if($=d.DDD.exec(M),$){N=new Date(0);var U=parseInt($[1],10);return O(D,U)?(N.setUTCFullYear(D,0,U),N):new Date(NaN)}if($=d.MMDD.exec(M),$){N=new Date(0),B=parseInt($[1],10)-1;var F=parseInt($[2],10);return _(D,B,F)?(N.setUTCFullYear(D,B,F),N):new Date(NaN)}if($=d.Www.exec(M),$)return q=parseInt($[1],10)-1,C(D,q)?x(D,q):new Date(NaN);if($=d.WwwD.exec(M),$){q=parseInt($[1],10)-1;var j=parseInt($[2],10)-1;return C(D,q,j)?x(D,q,j):new Date(NaN)}return null}function y(M){var D,$,N;if(D=d.HH.exec(M),D)return $=parseFloat(D[1].replace(",",".")),T($)?$%24*s:NaN;if(D=d.HHMM.exec(M),D)return $=parseInt(D[1],10),N=parseFloat(D[2].replace(",",".")),T($,N)?$%24*s+N*l:NaN;if(D=d.HHMMSS.exec(M),D){$=parseInt(D[1],10),N=parseInt(D[2],10);var B=parseFloat(D[3].replace(",","."));return T($,N,B)?$%24*s+N*l+B*1e3:NaN}return null}function x(M,D,$){D=D||0,$=$||0;var N=new Date(0);N.setUTCFullYear(M,0,4);var B=N.getUTCDay()||7,q=D*7+$+1-B;return N.setUTCDate(N.getUTCDate()+q),N}var b=[31,28,31,30,31,30,31,31,30,31,30,31],S=[31,29,31,30,31,30,31,31,30,31,30,31];function w(M){return M%400===0||M%4===0&&M%100!==0}function _(M,D,$){if(D<0||D>11)return!1;if($!=null){if($<1)return!1;var N=w(M);if(N&&$>S[D]||!N&&$>b[D])return!1}return!0}function O(M,D){if(D<1)return!1;var $=w(M);return!($&&D>366||!$&&D>365)}function C(M,D,$){return!(D<0||D>52||$!=null&&($<0||$>6))}function T(M,D,$){return!(M!=null&&(M<0||M>=25)||D!=null&&(D<0||D>=60)||$!=null&&($<0||$>=60))}e.exports=t.default})(LS,LS.exports);var fH=LS.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(LDe),n=o(jDe),i=o(fH);function o(l){return l&&l.__esModule?l:{default:l}}var a=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,d){var p=String(u),h=d||{},m=p.match(a);if(m){var g=(0,i.default)(l,h);p=m.reduce(function(y,x){if(x[0]==="'")return y;var b=y.indexOf(x),S=y[b-1]==="'",w=y.replace(x,"'"+n.default[x[0]](g,x,null,h)+"'");return S?w.substring(0,b-1)+w.substring(b+1):w},p)}return(0,r.default)(l,p,h)}e.exports=t.default})(YT,YT.exports);var pH=YT.exports;const UDe=gi(pH);var NS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(RP),n=i(fH);function i(a){return a&&a.__esModule?a:{default:a}}function o(a,s,l){var u=(0,n.default)(a,l),d=(0,r.default)(s,u,!0),p=new Date(u.getTime()-d),h=new Date(0);return h.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),h.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),h}e.exports=t.default})(NS,NS.exports);var qDe=NS.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=o(oDe),n=o(pH),i=o(qDe);function o(s){return s&&s.__esModule?s:{default:s}}function a(s,l,u,d){var p=(0,r.default)(d);return p.timeZone=l,(0,n.default)((0,i.default)(s,l),u,p)}e.exports=t.default})(GT,GT.exports);var HDe=GT.exports;const hH=gi(HDe),mH=({isFetching:e,isError:t,alert:r})=>{const{t:n}=wr("location",{keyPrefix:"alerts.details"}),{dateTimeFormatPreferences:i,getTimeFormatString:o}=db(),a=o(!0),s=l=>l?hH(l,"UTC",`${i.preferredDateFormat} ${a} (zzz)`):"";return e?E.jsx(aC,{"data-testid":"loader-container",children:E.jsx(nDe,{children:E.jsx(Qy,{size:40})})}):t?E.jsx(aC,{children:E.jsxs(LR,{children:[E.jsx(K$e,{color:"error",sx:{fontSize:45}}),E.jsx(Ke,{variant:"body1",children:n("error")})]})}):E.jsxs(aC,{"data-testid":"alert-details-container",children:[E.jsxs(Mr,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[E.jsx(tDe,{variant:"h5",fontWeight:700,children:r.alertName}),E.jsxs(Mr,{sx:{display:"flex",gap:"10px"},children:[E.jsx(Dv,{title:r.alertType||""}),!!r.alertCategory&&E.jsx(Dv,{title:r.alertCategory})]})]}),E.jsx(rDe,{}),E.jsxs(lk,{children:[E.jsx(ra,{title:n("alert-number"),value:r.alertId,"data-testid":"alert-details--alert-number"}),E.jsxs(zr,{container:!0,children:[E.jsx(zr,{item:!0,xs:6,children:E.jsx(ra,{title:n("site"),value:r.site,"data-testid":"alert-details--site"})}),E.jsx(zr,{item:!0,xs:6,children:E.jsx(ra,{title:n("location"),value:r.location,"data-testid":"alert-details--location"})})]}),E.jsxs(zr,{container:!0,children:[E.jsx(zr,{item:!0,xs:6,children:E.jsx(ra,{title:n("total-load"),value:r.functionValue,"data-testid":"alert-details--total-load"})}),E.jsx(zr,{item:!0,xs:6,children:E.jsx(ra,{title:n("threshold-value"),value:r.alertThreshold,"data-testid":"alert-details--threshold-value"})})]}),E.jsx(ra,{title:n("affected-ci"),value:r.deviceMetric,"data-testid":"alert-details--affected-ci"}),E.jsx(ra,{title:n("description"),value:r.deviceName,"data-testid":"alert-details--description"}),E.jsxs("div",{children:[E.jsx(Ke,{variant:"subtitle2",component:"h5",sx:{marginBottom:"4px"},children:n("alert-timeline-summary")}),E.jsxs(lk,{children:[E.jsx(sk,{children:E.jsx(ra,{title:n("alert-generated-on"),value:s(r.alertTimeStamp),"data-testid":"alert-details--alert-generated-on"})}),r.alertDuration&&E.jsx(sk,{children:E.jsx(ra,{title:n("duration"),value:r.alertDuration,"data-testid":"alert-details--duration"})})]})]})]})]})},WDe=({alertInstanceId:e})=>{const{data:t,isError:r,isFetching:n,refetch:i}=H$e(e,{enabled:!!e,refetchOnWindowFocus:!1});It(()=>{i()},[e,i]);const o=(t==null?void 0:t.at(0))||{};return E.jsx(mH,{alert:o,isFetching:n,isError:r})},zDe=({alertInstanceId:e})=>{const{data:t,isError:r,isFetching:n,refetch:i}=G$e(e,{enabled:!!e,refetchOnWindowFocus:!1});It(()=>{i()},[e,i]);const o=(t==null?void 0:t.at(0))||{};return E.jsx(mH,{alert:o,isFetching:n,isError:r})},gH=({alertInstanceId:e,isHistorical:t})=>t?E.jsx(WDe,{alertInstanceId:e}):E.jsx(zDe,{alertInstanceId:e}),VDe=W("div")`
572
+ & > div {
573
+ padding: 0;
574
+ }
575
+ `,GDe=W(ma)`
576
+ padding: 10px;
577
+ margin-right: -20px;
578
+ `,KDe=({alertInstanceId:e,isOpen:t,isHistorical:r,handleClose:n})=>E.jsx(qce,{open:t,onClose:n,children:E.jsxs(Mr,{padding:"32px 40px",children:[E.jsx(Mr,{display:"flex",justifyContent:"flex-end",children:E.jsx(GDe,{variant:"text",onClick:n,children:E.jsx(TP,{color:"action"})})}),E.jsx(VDe,{children:E.jsx(gH,{alertInstanceId:e,isHistorical:r})})]})}),Pc="all",PP="history",vH=e=>e===co.INSTANCES?VT:e===co.HISTORY?Q5:(e===co.DEFINITIONS,Iv),XDe=W(Aa)`
579
+ display: flex;
580
+ flex: 1;
581
+ justify-content: space-between;
582
+ padding: 8px 12px;
583
+ border-radius: 12px;
584
+ background: ${({theme:e})=>e.extraColors.divider};
585
+ color: ${({theme:e})=>e.extraColors.textDark};
586
+ `,YDe=W(Mr)`
587
+ display: flex;
588
+ flex: 1;
589
+ justify-content: space-between;
590
+ align-items: center;
591
+
592
+ padding: 3px 10px;
593
+ border-radius: 16px;
594
+ background: ${({theme:e})=>e.extraColors.textLight};
595
+
596
+ font-family: 'Roboto', sans-serif;
597
+ font-size: 13px;
598
+ line-height: 18px;
599
+ letter-spacing: 0.16px;
600
+ color: ${({theme:e})=>e.extraColors.textDark};
601
+ `,FS=({active:e,count:t,title:r,onClick:n})=>{var u,d;const{palette:i,extraColors:o}=fn(),a={[Tn.POWER]:{background:i.warning.main,color:o.textLight},[Tn.ENVIRONMENTAL]:{background:i.success.main,color:o.textLight},[Tn.AUXILIARY]:{background:i.info.main,color:o.textLight}},s=(u=a[r.toLowerCase()])==null?void 0:u.background,l=(d=a[r.toLowerCase()])==null?void 0:d.color;return E.jsxs(XDe,{onClick:()=>n(),"data-testid":`alert-filter-button-${r}`,sx:{...e&&{background:o.textDark,color:o.textLight}},children:[E.jsxs(Mr,{display:"flex",columnGap:"34px",overflow:"hidden",children:[E.jsx(YDe,{sx:{background:s,color:l},"data-testid":`alert-filter-count-${r}`,children:t}),E.jsx(Ke,{sx:{color:"inherit"},children:r})]}),E.jsx(tH,{})]})},ZDe=W(mo)`
602
+ row-gap: 22px;
603
+
604
+ ${({theme:e})=>e.breakpoints.down("sm")} {
605
+ row-gap: 10px;
606
+ }
607
+ `,yH=W(mo)`
608
+ row-gap: 12px;
609
+ flex-direction: column;
610
+
611
+ ${({theme:e})=>e.breakpoints.down("xl")} {
612
+ flex-direction: row;
613
+ column-gap: 16px;
614
+ }
615
+
616
+ ${({theme:e})=>e.breakpoints.down("sm")} {
617
+ flex-direction: column;
618
+ }
619
+ `,JDe=({title:e,items:t,selected:r,handleClose:n})=>{const{t:i}=wr("location"),o=Ra(eb).querySelector("#dialogs"),a=[{label:e,mobileLabel:E.jsx(Ke,{variant:"h6",fontSize:14,children:e}),trigger:()=>n()},{label:i("cancel"),mobileLabel:E.jsx(TP,{color:"action",sx:{marginRight:"-32px"}}),trigger:()=>n()}];return E.jsx($R,{container:o,actions:a,open:!0,fullWidth:!0,fullScreen:!0,PaperComponent:As,children:E.jsx(yH,{"data-testid":"alert-filter-list",children:t.map(s=>E.jsx(FS,{count:s.count,title:s.title,onClick:()=>{n(),s.onClick()},active:s.title.toLowerCase()===r},s.title))})})},bH=({title:e,selected:t,items:r})=>{const n=fn(),i=Ts(n.breakpoints.down("sm")),[o,a]=gU(),s=Jr(()=>r.find(u=>u.title.toLowerCase()===t)||r[0],[r,t]),l=()=>{a(),o(E.jsx(JDe,{title:e,items:r,selected:t,handleClose:a}))};return E.jsxs(ZDe,{children:[E.jsx(Ke,{variant:"h6",children:e}),i?E.jsx(FS,{count:s.count,title:s.title,onClick:l,active:!0}):E.jsx(yH,{"data-testid":"alert-filter-list",children:r.map(u=>E.jsx(FS,{count:u.count,title:u.title,onClick:u.onClick,active:u.title.toLowerCase()===t},u.title))})]})},xH=({leasedSpaceName:e,filters:t,disableOptionAll:r=!1,title:n,handleFilters:i,isDefinitionsView:o=!1})=>{const{t:a}=wr("location"),s=w=>({leasedSpaceName:e,...w&&{alertCategory:w},...Q$e.includes(t.type)&&{alertType:t.type}}),l=Jr(()=>o?co.DEFINITIONS:t.type===co.HISTORY?co.HISTORY:co.INSTANCES,[t.type,o]),u=Jr(()=>vH(l),[l]),{data:d}=u(s()),{data:p}=u(s(Tn.POWER)),{data:h}=u(s(Tn.ENVIRONMENTAL)),{data:m}=u(s(Tn.AUXILIARY)),g=(d==null?void 0:d.totalElements)??0,y=(p==null?void 0:p.totalElements)??0,x=(h==null?void 0:h.totalElements)??0,b=(m==null?void 0:m.totalElements)??0,S=Jr(()=>{const w=[{title:a("alerts.categories.power"),count:y,onClick:()=>i("category",Tn.POWER)},{title:a("alerts.categories.environmental"),count:x,onClick:()=>i("category",Tn.ENVIRONMENTAL)},{title:a("alerts.categories.auxiliary"),count:b,onClick:()=>i("category",Tn.AUXILIARY)}];return r||w.unshift({title:a("alerts.categories.all"),count:g,onClick:()=>i("category",Pc)}),w},[a,y,x,b,r,g,i]);return E.jsx(bH,{title:n||a("alerts.categories.title"),items:S,selected:t.category})},OP=({leasedSpaceName:e,filters:t,disableOptionAll:r=!1,disableOptionHistory:n=!1,title:i,handleFilters:o,isDefinitionsView:a=!1})=>{const{t:s}=wr("location"),l=w=>({leasedSpaceName:e,alertType:w}),u=w=>{if(!w)return 0;const{totalElements:_}=w;return _||0},{data:d}=VT(l(Vn.CRITICAL),{enabled:!a}),{data:p}=VT(l(Vn.CUSTOM),{enabled:!a}),{data:h}=Iv(l(Vn.CRITICAL),{enabled:a}),{data:m}=Iv(l(Vn.CUSTOM),{enabled:a}),{data:g}=Q5({leasedSpaceName:e},{enabled:!n}),y=Jr(()=>u(a?h:d),[h,d,a]),x=Jr(()=>u(a?m:p),[m,p,a]),b=Jr(()=>u(g),[g]),S=Jr(()=>{const w=[{title:s("alerts.types.critical"),count:y,onClick:()=>o("type",Vn.CRITICAL)},{title:s("alerts.types.custom"),count:x,onClick:()=>o("type",Vn.CUSTOM)}];return r||w.unshift({title:s("alerts.types.all"),count:y+x,onClick:()=>o("type",Pc)}),n||w.push({title:s("alerts.types.history"),count:b,onClick:()=>o("type",PP)}),w},[y,x,r,n,o,b,s]);return E.jsx(bH,{title:i||s("alerts.types.title"),items:S,selected:t.type})},QDe=W("div")`
620
+ display: flex;
621
+ flex-direction: column;
622
+ align-items: center;
623
+ height: calc(100vh - 300px);
624
+ overflow-y: auto;
625
+ `,eLe=W(Mr)`
626
+ display: flex;
627
+ align-items: center;
628
+ justify-content: space-between;
629
+ margin-bottom: 20px;
630
+
631
+ ${({theme:e})=>e.breakpoints.down("sm")} {
632
+ flex-direction: column;
633
+ align-items: flex-start;
634
+ gap: 10px;
635
+ }
636
+ `,tLe=e=>(e=e==null?void 0:e.toLowerCase(),[Tn.AUXILIARY,Tn.ENVIRONMENTAL,Tn.POWER].find(t=>t.toLowerCase()===e)),rLe=e=>(e=e==null?void 0:e.toLowerCase(),[Vn.CRITICAL,Vn.CUSTOM].find(t=>t.toLowerCase()===e)),nLe={shouldForwardProp:e=>!["$canBeClicked","$selected"].includes(e)},wH=W("div")`
637
+ margin-bottom: 15px;
638
+ width: 100%;
639
+ display: flex;
640
+ flex-direction: row;
641
+ align-items: center;
642
+ justify-content: space-between;
643
+ `,_H=W(Ke)`
644
+ fontfamily: Red Hat Display;
645
+ fontstyle: normal;
646
+ fontweight: 700;
647
+ fontsize: 20px;
648
+ lineheight: 24px;
649
+ `,CH=W("div",nLe)`
650
+ display: flex;
651
+ flex-direction: column;
652
+ align-items: flex-start;
653
+ background: #ffffff;
654
+ padding: 16px;
655
+ gap: 10 px;
656
+ border-radius: 8px;
657
+ margin-bottom: 8px;
658
+ width: 100%;
659
+ box-shadow: 0px 12px 20px -12px rgba(0, 0, 0, 0.12), inset 0px 0px 0px 1px #e1e4e8;
660
+ ${({$canBeClicked:e})=>e&&"cursor: pointer;"}
661
+ ${({$selected:e})=>e&&"border: 1px solid black;"}
662
+ `,TH=W("div")`
663
+ display: flex;
664
+ flex-direction: column;
665
+ gap: 4px;
666
+ align-items: flex-start;
667
+ `,iLe=W("div")`
668
+ display: flex;
669
+ flex-direction: row;
670
+ gap: 8px;
671
+ align-items: flex-start;
672
+ `,oLe=W(Ke)`
673
+ font-family: Open Sans;
674
+ font-style: normal;
675
+ font-weight: 700;
676
+ font-size: 14px;
677
+ line-height: 24px;
678
+ letter-spacing: 0.1px;
679
+ color: #000000;
680
+ `,aLe=W(Ke)`
681
+ font-family: Open Sans;
682
+ font-style: normal;
683
+ font-weight: 400;
684
+ font-size: 14px;
685
+ line-height: 24px;
686
+ letter-spacing: 0.25px;
687
+ color: #000000;
688
+ `,sLe=W("div")`
689
+ display: flex;
690
+ `,lLe=W("div")`
691
+ display: flex;
692
+ justify-content: space-between;
693
+ width: 100%;
694
+
695
+ ${({theme:e})=>e.breakpoints.down("sm")} {
696
+ flex-direction: column;
697
+ gap: 12px;
698
+ }
699
+ `,uLe=W(eU)`
700
+ ${({theme:e})=>e.breakpoints.down("sm")} {
701
+ justify-content: space-between;
702
+ }
703
+ `,uk=W(aT)`
704
+ & .${vr.switchBase}.${vr.disabled} {
705
+ pointer-events: none;
706
+ cursor: default;
707
+ }
708
+ & .${vr.switchBase}.${vr.checked}.${vr.disabled} {
709
+ color: ${({theme:e})=>e.palette.primary.main};
710
+ }
711
+ & .${vr.switchBase}.${vr.checked} + .${vr.track} {
712
+ color: ${({theme:e})=>e.palette.primary.main};
713
+ opacity: 0.5;
714
+ }
715
+ `,cLe=W(Aa)`
716
+ flex: 1;
717
+ display: grid;
718
+ grid-template-columns: minmax(28px, 50px) 1fr 24px;
719
+ column-gap: 20px;
720
+ text-align: left;
721
+ padding: 8px 12px;
722
+ border-radius: 12px;
723
+ line-height: 18px;
724
+ background-color: ${({theme:e})=>e.extraColors.divider};
725
+ color: ${({theme:e})=>e.extraColors.textDark};
726
+ `,dLe=W(ma)`
727
+ line-height: 18px;
728
+ `,fLe=W(Mr)`
729
+ width: min-content;
730
+ padding: 3px 10px;
731
+ background-color: ${({theme:e})=>e.extraColors.textLight};
732
+ border-radius: 16px;
733
+
734
+ font-family: 'Roboto', sans-serif;
735
+ font-size: 13px;
736
+ line-height: 18px;
737
+ letter-spacing: 0.16px;
738
+ text-align: center;
739
+ `,pLe=({"data-testid":e,...t})=>{const{t:r}=wr("common");return E.jsx(dLe,{...t,variant:"contained",color:"primary",size:"small","data-testid":e,children:r("customize")})},hLe=({alert:e,onClickCustomize:t})=>{const{t:r}=wr("location");return E.jsxs(lLe,{children:[E.jsxs(uLe,{row:!0,children:[E.jsx(ev,{control:E.jsx(uk,{color:"primary","data-testid":"email-alerts-switch",disabled:!0,checked:e.emailEnabledSubscription}),label:E.jsx(Ke,{variant:"body2",color:"textPrimary",children:r("customize-alert-dialog.email-alerts")})}),E.jsx(ev,{control:E.jsx(uk,{color:"primary","data-testid":"sms-alerts-switch",disabled:!0,checked:e.smsEnabledSubscription}),label:E.jsx(Ke,{variant:"body2",color:"textPrimary",children:r("customize-alert-dialog.sms-alerts")})})]}),E.jsx(pLe,{onClick:t,sx:{height:36},"data-testid":"customize-button"})]})},mLe=(e,t)=>{switch(t){case Vn.CUSTOM:return e("customize-alert-dialog.success-custom-updated");case Vn.CRITICAL:return e("customize-alert-dialog.success-critical-updated");default:return e("customize-alert-dialog.success-updated")}},gLe=(e,t)=>{switch(t){case"THRESHOLD_VALIDATION_ERROR":return e("customize-alert-dialog.threshold-validation-error");case"CRITICAL_ENROLLMENT_OPERATOR_AND_THRESHOLD_EMPTY":return e("customize-alert-dialog.critical-enrollment-operator-and-threshold-empty");default:return e("customize-alert-dialog.server-error")}};var vLe=function(t){return yLe(t)&&!bLe(t)};function yLe(e){return!!e&&typeof e=="object"}function bLe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||_Le(e)}var xLe=typeof Symbol=="function"&&Symbol.for,wLe=xLe?Symbol.for("react.element"):60103;function _Le(e){return e.$$typeof===wLe}function CLe(e){return Array.isArray(e)?[]:{}}function Lv(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sp(CLe(e),e,t):e}function TLe(e,t,r){return e.concat(t).map(function(n){return Lv(n,r)})}function SLe(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(i){n[i]=Lv(e[i],r)}),Object.keys(t).forEach(function(i){!r.isMergeableObject(t[i])||!e[i]?n[i]=Lv(t[i],r):n[i]=sp(e[i],t[i],r)}),n}function sp(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||TLe,r.isMergeableObject=r.isMergeableObject||vLe;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):SLe(e,t,r):Lv(t,r)}sp.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return sp(n,i,r)},{})};var jS=sp,SH=typeof global=="object"&&global&&global.Object===Object&&global,ELe=typeof self=="object"&&self&&self.Object===Object&&self,Ho=SH||ELe||Function("return this")(),Es=Ho.Symbol,EH=Object.prototype,RLe=EH.hasOwnProperty,PLe=EH.toString,Xd=Es?Es.toStringTag:void 0;function OLe(e){var t=RLe.call(e,Xd),r=e[Xd];try{e[Xd]=void 0;var n=!0}catch{}var i=PLe.call(e);return n&&(t?e[Xd]=r:delete e[Xd]),i}var MLe=Object.prototype,ALe=MLe.toString;function ILe(e){return ALe.call(e)}var $Le="[object Null]",DLe="[object Undefined]",ck=Es?Es.toStringTag:void 0;function ru(e){return e==null?e===void 0?DLe:$Le:ck&&ck in Object(e)?OLe(e):ILe(e)}function RH(e,t){return function(r){return e(t(r))}}var MP=RH(Object.getPrototypeOf,Object);function nu(e){return e!=null&&typeof e=="object"}var LLe="[object Object]",kLe=Function.prototype,NLe=Object.prototype,PH=kLe.toString,FLe=NLe.hasOwnProperty,jLe=PH.call(Object);function dk(e){if(!nu(e)||ru(e)!=LLe)return!1;var t=MP(e);if(t===null)return!0;var r=FLe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&PH.call(r)==jLe}function BLe(){this.__data__=[],this.size=0}function OH(e,t){return e===t||e!==e&&t!==t}function o1(e,t){for(var r=e.length;r--;)if(OH(e[r][0],t))return r;return-1}var ULe=Array.prototype,qLe=ULe.splice;function HLe(e){var t=this.__data__,r=o1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():qLe.call(t,r,1),--this.size,!0}function WLe(e){var t=this.__data__,r=o1(t,e);return r<0?void 0:t[r][1]}function zLe(e){return o1(this.__data__,e)>-1}function VLe(e,t){var r=this.__data__,n=o1(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function La(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])}}La.prototype.clear=BLe;La.prototype.delete=HLe;La.prototype.get=WLe;La.prototype.has=zLe;La.prototype.set=VLe;function GLe(){this.__data__=new La,this.size=0}function KLe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function XLe(e){return this.__data__.get(e)}function YLe(e){return this.__data__.has(e)}function ih(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ZLe="[object AsyncFunction]",JLe="[object Function]",QLe="[object GeneratorFunction]",eke="[object Proxy]";function MH(e){if(!ih(e))return!1;var t=ru(e);return t==JLe||t==QLe||t==ZLe||t==eke}var sC=Ho["__core-js_shared__"],fk=function(){var e=/[^.]+$/.exec(sC&&sC.keys&&sC.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tke(e){return!!fk&&fk in e}var rke=Function.prototype,nke=rke.toString;function iu(e){if(e!=null){try{return nke.call(e)}catch{}try{return e+""}catch{}}return""}var ike=/[\\^$.*+?()[\]{}|]/g,oke=/^\[object .+?Constructor\]$/,ake=Function.prototype,ske=Object.prototype,lke=ake.toString,uke=ske.hasOwnProperty,cke=RegExp("^"+lke.call(uke).replace(ike,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dke(e){if(!ih(e)||tke(e))return!1;var t=MH(e)?cke:oke;return t.test(iu(e))}function fke(e,t){return e==null?void 0:e[t]}function ou(e,t){var r=fke(e,t);return dke(r)?r:void 0}var lp=ou(Ho,"Map"),up=ou(Object,"create");function pke(){this.__data__=up?up(null):{},this.size=0}function hke(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mke="__lodash_hash_undefined__",gke=Object.prototype,vke=gke.hasOwnProperty;function yke(e){var t=this.__data__;if(up){var r=t[e];return r===mke?void 0:r}return vke.call(t,e)?t[e]:void 0}var bke=Object.prototype,xke=bke.hasOwnProperty;function wke(e){var t=this.__data__;return up?t[e]!==void 0:xke.call(t,e)}var _ke="__lodash_hash_undefined__";function Cke(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=up&&t===void 0?_ke:t,this}function Wl(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])}}Wl.prototype.clear=pke;Wl.prototype.delete=hke;Wl.prototype.get=yke;Wl.prototype.has=wke;Wl.prototype.set=Cke;function Tke(){this.size=0,this.__data__={hash:new Wl,map:new(lp||La),string:new Wl}}function Ske(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function a1(e,t){var r=e.__data__;return Ske(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Eke(e){var t=a1(this,e).delete(e);return this.size-=t?1:0,t}function Rke(e){return a1(this,e).get(e)}function Pke(e){return a1(this,e).has(e)}function Oke(e,t){var r=a1(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}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=Tke;ks.prototype.delete=Eke;ks.prototype.get=Rke;ks.prototype.has=Pke;ks.prototype.set=Oke;var Mke=200;function Ake(e,t){var r=this.__data__;if(r instanceof La){var n=r.__data__;if(!lp||n.length<Mke-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ks(n)}return r.set(e,t),this.size=r.size,this}function ed(e){var t=this.__data__=new La(e);this.size=t.size}ed.prototype.clear=GLe;ed.prototype.delete=KLe;ed.prototype.get=XLe;ed.prototype.has=YLe;ed.prototype.set=Ake;function Ike(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var pk=function(){try{var e=ou(Object,"defineProperty");return e({},"",{}),e}catch{}}();function AH(e,t,r){t=="__proto__"&&pk?pk(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $ke=Object.prototype,Dke=$ke.hasOwnProperty;function IH(e,t,r){var n=e[t];(!(Dke.call(e,t)&&OH(n,r))||r===void 0&&!(t in e))&&AH(e,t,r)}function s1(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?AH(r,s,l):IH(r,s,l)}return r}function Lke(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var kke="[object Arguments]";function hk(e){return nu(e)&&ru(e)==kke}var $H=Object.prototype,Nke=$H.hasOwnProperty,Fke=$H.propertyIsEnumerable,jke=hk(function(){return arguments}())?hk:function(e){return nu(e)&&Nke.call(e,"callee")&&!Fke.call(e,"callee")},oh=Array.isArray;function Bke(){return!1}var DH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mk=DH&&typeof module=="object"&&module&&!module.nodeType&&module,Uke=mk&&mk.exports===DH,gk=Uke?Ho.Buffer:void 0,qke=gk?gk.isBuffer:void 0,LH=qke||Bke,Hke=9007199254740991,Wke=/^(?:0|[1-9]\d*)$/;function zke(e,t){var r=typeof e;return t=t??Hke,!!t&&(r=="number"||r!="symbol"&&Wke.test(e))&&e>-1&&e%1==0&&e<t}var Vke=9007199254740991;function kH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vke}var Gke="[object Arguments]",Kke="[object Array]",Xke="[object Boolean]",Yke="[object Date]",Zke="[object Error]",Jke="[object Function]",Qke="[object Map]",e2e="[object Number]",t2e="[object Object]",r2e="[object RegExp]",n2e="[object Set]",i2e="[object String]",o2e="[object WeakMap]",a2e="[object ArrayBuffer]",s2e="[object DataView]",l2e="[object Float32Array]",u2e="[object Float64Array]",c2e="[object Int8Array]",d2e="[object Int16Array]",f2e="[object Int32Array]",p2e="[object Uint8Array]",h2e="[object Uint8ClampedArray]",m2e="[object Uint16Array]",g2e="[object Uint32Array]",ir={};ir[l2e]=ir[u2e]=ir[c2e]=ir[d2e]=ir[f2e]=ir[p2e]=ir[h2e]=ir[m2e]=ir[g2e]=!0;ir[Gke]=ir[Kke]=ir[a2e]=ir[Xke]=ir[s2e]=ir[Yke]=ir[Zke]=ir[Jke]=ir[Qke]=ir[e2e]=ir[t2e]=ir[r2e]=ir[n2e]=ir[i2e]=ir[o2e]=!1;function v2e(e){return nu(e)&&kH(e.length)&&!!ir[ru(e)]}function AP(e){return function(t){return e(t)}}var NH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$f=NH&&typeof module=="object"&&module&&!module.nodeType&&module,y2e=$f&&$f.exports===NH,lC=y2e&&SH.process,Oc=function(){try{var e=$f&&$f.require&&$f.require("util").types;return e||lC&&lC.binding&&lC.binding("util")}catch{}}(),vk=Oc&&Oc.isTypedArray,b2e=vk?AP(vk):v2e,x2e=Object.prototype,w2e=x2e.hasOwnProperty;function FH(e,t){var r=oh(e),n=!r&&jke(e),i=!r&&!n&&LH(e),o=!r&&!n&&!i&&b2e(e),a=r||n||i||o,s=a?Lke(e.length,String):[],l=s.length;for(var u in e)(t||w2e.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||zke(u,l)))&&s.push(u);return s}var _2e=Object.prototype;function IP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_2e;return e===r}var C2e=RH(Object.keys,Object),T2e=Object.prototype,S2e=T2e.hasOwnProperty;function E2e(e){if(!IP(e))return C2e(e);var t=[];for(var r in Object(e))S2e.call(e,r)&&r!="constructor"&&t.push(r);return t}function jH(e){return e!=null&&kH(e.length)&&!MH(e)}function $P(e){return jH(e)?FH(e):E2e(e)}function R2e(e,t){return e&&s1(t,$P(t),e)}function P2e(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O2e=Object.prototype,M2e=O2e.hasOwnProperty;function A2e(e){if(!ih(e))return P2e(e);var t=IP(e),r=[];for(var n in e)n=="constructor"&&(t||!M2e.call(e,n))||r.push(n);return r}function DP(e){return jH(e)?FH(e,!0):A2e(e)}function I2e(e,t){return e&&s1(t,DP(t),e)}var BH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yk=BH&&typeof module=="object"&&module&&!module.nodeType&&module,$2e=yk&&yk.exports===BH,bk=$2e?Ho.Buffer:void 0,xk=bk?bk.allocUnsafe:void 0;function D2e(e,t){if(t)return e.slice();var r=e.length,n=xk?xk(r):new e.constructor(r);return e.copy(n),n}function UH(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function L2e(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function qH(){return[]}var k2e=Object.prototype,N2e=k2e.propertyIsEnumerable,wk=Object.getOwnPropertySymbols,LP=wk?function(e){return e==null?[]:(e=Object(e),L2e(wk(e),function(t){return N2e.call(e,t)}))}:qH;function F2e(e,t){return s1(e,LP(e),t)}function HH(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var j2e=Object.getOwnPropertySymbols,WH=j2e?function(e){for(var t=[];e;)HH(t,LP(e)),e=MP(e);return t}:qH;function B2e(e,t){return s1(e,WH(e),t)}function zH(e,t,r){var n=t(e);return oh(e)?n:HH(n,r(e))}function U2e(e){return zH(e,$P,LP)}function q2e(e){return zH(e,DP,WH)}var BS=ou(Ho,"DataView"),US=ou(Ho,"Promise"),qS=ou(Ho,"Set"),HS=ou(Ho,"WeakMap"),_k="[object Map]",H2e="[object Object]",Ck="[object Promise]",Tk="[object Set]",Sk="[object WeakMap]",Ek="[object DataView]",W2e=iu(BS),z2e=iu(lp),V2e=iu(US),G2e=iu(qS),K2e=iu(HS),ca=ru;(BS&&ca(new BS(new ArrayBuffer(1)))!=Ek||lp&&ca(new lp)!=_k||US&&ca(US.resolve())!=Ck||qS&&ca(new qS)!=Tk||HS&&ca(new HS)!=Sk)&&(ca=function(e){var t=ru(e),r=t==H2e?e.constructor:void 0,n=r?iu(r):"";if(n)switch(n){case W2e:return Ek;case z2e:return _k;case V2e:return Ck;case G2e:return Tk;case K2e:return Sk}return t});var X2e=Object.prototype,Y2e=X2e.hasOwnProperty;function Z2e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Y2e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Rk=Ho.Uint8Array;function kP(e){var t=new e.constructor(e.byteLength);return new Rk(t).set(new Rk(e)),t}function J2e(e,t){var r=t?kP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Q2e=/\w*$/;function eNe(e){var t=new e.constructor(e.source,Q2e.exec(e));return t.lastIndex=e.lastIndex,t}var Pk=Es?Es.prototype:void 0,Ok=Pk?Pk.valueOf:void 0;function tNe(e){return Ok?Object(Ok.call(e)):{}}function rNe(e,t){var r=t?kP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var nNe="[object Boolean]",iNe="[object Date]",oNe="[object Map]",aNe="[object Number]",sNe="[object RegExp]",lNe="[object Set]",uNe="[object String]",cNe="[object Symbol]",dNe="[object ArrayBuffer]",fNe="[object DataView]",pNe="[object Float32Array]",hNe="[object Float64Array]",mNe="[object Int8Array]",gNe="[object Int16Array]",vNe="[object Int32Array]",yNe="[object Uint8Array]",bNe="[object Uint8ClampedArray]",xNe="[object Uint16Array]",wNe="[object Uint32Array]";function _Ne(e,t,r){var n=e.constructor;switch(t){case dNe:return kP(e);case nNe:case iNe:return new n(+e);case fNe:return J2e(e,r);case pNe:case hNe:case mNe:case gNe:case vNe:case yNe:case bNe:case xNe:case wNe:return rNe(e,r);case oNe:return new n;case aNe:case uNe:return new n(e);case sNe:return eNe(e);case lNe:return new n;case cNe:return tNe(e)}}var Mk=Object.create,CNe=function(){function e(){}return function(t){if(!ih(t))return{};if(Mk)return Mk(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function TNe(e){return typeof e.constructor=="function"&&!IP(e)?CNe(MP(e)):{}}var SNe="[object Map]";function ENe(e){return nu(e)&&ca(e)==SNe}var Ak=Oc&&Oc.isMap,RNe=Ak?AP(Ak):ENe,PNe="[object Set]";function ONe(e){return nu(e)&&ca(e)==PNe}var Ik=Oc&&Oc.isSet,MNe=Ik?AP(Ik):ONe,ANe=1,INe=2,$Ne=4,VH="[object Arguments]",DNe="[object Array]",LNe="[object Boolean]",kNe="[object Date]",NNe="[object Error]",GH="[object Function]",FNe="[object GeneratorFunction]",jNe="[object Map]",BNe="[object Number]",KH="[object Object]",UNe="[object RegExp]",qNe="[object Set]",HNe="[object String]",WNe="[object Symbol]",zNe="[object WeakMap]",VNe="[object ArrayBuffer]",GNe="[object DataView]",KNe="[object Float32Array]",XNe="[object Float64Array]",YNe="[object Int8Array]",ZNe="[object Int16Array]",JNe="[object Int32Array]",QNe="[object Uint8Array]",eFe="[object Uint8ClampedArray]",tFe="[object Uint16Array]",rFe="[object Uint32Array]",rr={};rr[VH]=rr[DNe]=rr[VNe]=rr[GNe]=rr[LNe]=rr[kNe]=rr[KNe]=rr[XNe]=rr[YNe]=rr[ZNe]=rr[JNe]=rr[jNe]=rr[BNe]=rr[KH]=rr[UNe]=rr[qNe]=rr[HNe]=rr[WNe]=rr[QNe]=rr[eFe]=rr[tFe]=rr[rFe]=!0;rr[NNe]=rr[GH]=rr[zNe]=!1;function Df(e,t,r,n,i,o){var a,s=t&ANe,l=t&INe,u=t&$Ne;if(a!==void 0)return a;if(!ih(e))return e;var d=oh(e);if(d){if(a=Z2e(e),!s)return UH(e,a)}else{var p=ca(e),h=p==GH||p==FNe;if(LH(e))return D2e(e,s);if(p==KH||p==VH||h&&!i){if(a=l||h?{}:TNe(e),!s)return l?B2e(e,I2e(a,e)):F2e(e,R2e(a,e))}else{if(!rr[p])return i?e:{};a=_Ne(e,p,s)}}o||(o=new ed);var m=o.get(e);if(m)return m;o.set(e,a),MNe(e)?e.forEach(function(x){a.add(Df(x,t,r,x,e,o))}):RNe(e)&&e.forEach(function(x,b){a.set(b,Df(x,t,r,b,e,o))});var g=u?l?q2e:U2e:l?DP:$P,y=d?void 0:g(e);return Ike(y||e,function(x,b){y&&(b=x,x=e[b]),IH(a,b,Df(x,t,r,b,e,o))}),a}var nFe=1,iFe=4;function Im(e){return Df(e,nFe|iFe)}var $k=Array.isArray,Dk=Object.keys,oFe=Object.prototype.hasOwnProperty,aFe=typeof Element<"u";function WS(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=$k(e),n=$k(t),i,o,a;if(r&&n){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!WS(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var p=Dk(e);if(o=p.length,o!==Dk(t).length)return!1;for(i=o;i--!==0;)if(!oFe.call(t,p[i]))return!1;if(aFe&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=p[i],!(a==="_owner"&&e.$$typeof)&&!WS(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var sFe=function(t,r){try{return WS(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const ll=gi(sFe);var lFe=4;function Lk(e){return Df(e,lFe)}function XH(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var uFe="[object Symbol]";function NP(e){return typeof e=="symbol"||nu(e)&&ru(e)==uFe}var cFe="Expected a function";function FP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cFe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(FP.Cache||ks),r}FP.Cache=ks;var dFe=500;function fFe(e){var t=FP(e,function(n){return r.size===dFe&&r.clear(),n}),r=t.cache;return t}var pFe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hFe=/\\(\\)?/g,mFe=fFe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pFe,function(r,n,i,o){t.push(i?o.replace(hFe,"$1"):n||r)}),t});function gFe(e){if(typeof e=="string"||NP(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var kk=Es?Es.prototype:void 0,Nk=kk?kk.toString:void 0;function YH(e){if(typeof e=="string")return e;if(oh(e))return XH(e,YH)+"";if(NP(e))return Nk?Nk.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vFe(e){return e==null?"":YH(e)}function ZH(e){return oh(e)?XH(e,gFe):NP(e)?[e]:UH(mFe(vFe(e)))}function nn(){return nn=Object.assign||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},nn.apply(this,arguments)}function JH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var l1=gp(void 0);l1.displayName="FormikContext";var yFe=l1.Provider;l1.Consumer;function bFe(){var e=Ra(l1);return e}var to=function(t){return typeof t=="function"},u1=function(t){return t!==null&&typeof t=="object"},xFe=function(t){return String(Math.floor(Number(t)))===t},uC=function(t){return Object.prototype.toString.call(t)==="[object String]"},cC=function(t){return u1(t)&&to(t.then)};function ui(e,t,r,n){n===void 0&&(n=0);for(var i=ZH(t);e&&n<i.length;)e=e[i[n++]];return n!==i.length&&!e||e===void 0?r:e}function Al(e,t,r){for(var n=Lk(e),i=n,o=0,a=ZH(t);o<a.length-1;o++){var s=a[o],l=ui(e,a.slice(0,o+1));if(l&&(u1(l)||Array.isArray(l)))i=i[s]=Lk(l);else{var u=a[o+1];i=i[s]=xFe(u)&&Number(u)>=0?[]:{}}}return(o===0?e:i)[a[o]]===r?e:(r===void 0?delete i[a[o]]:i[a[o]]=r,o===0&&r===void 0&&delete n[a[o]],n)}function QH(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];u1(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},QH(s,t,r,n[a])):n[a]=t}return n}function wFe(e,t){switch(t.type){case"SET_VALUES":return nn({},e,{values:t.payload});case"SET_TOUCHED":return nn({},e,{touched:t.payload});case"SET_ERRORS":return ll(e.errors,t.payload)?e:nn({},e,{errors:t.payload});case"SET_STATUS":return nn({},e,{status:t.payload});case"SET_ISSUBMITTING":return nn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return nn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return nn({},e,{values:Al(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return nn({},e,{touched:Al(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return nn({},e,{errors:Al(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return nn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return nn({},e,{touched:QH(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return nn({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return nn({},e,{isSubmitting:!1});default:return e}}var el={},$m={};function _Fe(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,i=n===void 0?!0:n,o=e.validateOnMount,a=o===void 0?!1:o,s=e.isInitialValid,l=e.enableReinitialize,u=l===void 0?!1:l,d=e.onSubmit,p=JH(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=nn({validateOnChange:r,validateOnBlur:i,validateOnMount:a,onSubmit:d},p),m=Dr(h.initialValues),g=Dr(h.initialErrors||el),y=Dr(h.initialTouched||$m),x=Dr(h.initialStatus),b=Dr(!1),S=Dr({});It(function(){return b.current=!0,function(){b.current=!1}},[]);var w=qr(0),_=w[1],O=Dr({values:Im(h.initialValues),errors:Im(h.initialErrors)||el,touched:Im(h.initialTouched)||$m,status:Im(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=O.current,T=At(function(J){var ye=O.current;O.current=wFe(ye,J),ye!==O.current&&_(function(pe){return pe+1})},[]),M=At(function(J,ye){return new Promise(function(pe,Te){var Xe=h.validate(J,ye);Xe==null?pe(el):cC(Xe)?Xe.then(function(Ye){pe(Ye||el)},function(Ye){Te(Ye)}):pe(Xe)})},[h.validate]),D=At(function(J,ye){var pe=h.validationSchema,Te=to(pe)?pe(ye):pe,Xe=ye&&Te.validateAt?Te.validateAt(ye,J):TFe(J,Te);return new Promise(function(Ye,Ue){Xe.then(function(){Ye(el)},function(Oe){Oe.name==="ValidationError"?Ye(CFe(Oe)):Ue(Oe)})})},[h.validationSchema]),$=At(function(J,ye){return new Promise(function(pe){return pe(S.current[J].validate(ye))})},[]),N=At(function(J){var ye=Object.keys(S.current).filter(function(Te){return to(S.current[Te].validate)}),pe=ye.length>0?ye.map(function(Te){return $(Te,ui(J,Te))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(Te){return Te.reduce(function(Xe,Ye,Ue){return Ye==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ye&&(Xe=Al(Xe,ye[Ue],Ye)),Xe},{})})},[$]),B=At(function(J){return Promise.all([N(J),h.validationSchema?D(J):{},h.validate?M(J):{}]).then(function(ye){var pe=ye[0],Te=ye[1],Xe=ye[2],Ye=jS.all([pe,Te,Xe],{arrayMerge:SFe});return Ye})},[h.validate,h.validationSchema,N,M,D]),q=Ri(function(J){return J===void 0&&(J=C.values),T({type:"SET_ISVALIDATING",payload:!0}),B(J).then(function(ye){return b.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:ye})),ye})});It(function(){a&&b.current===!0&&ll(m.current,h.initialValues)&&q(m.current)},[a,q]);var U=At(function(J){var ye=J&&J.values?J.values:m.current,pe=J&&J.errors?J.errors:g.current?g.current:h.initialErrors||{},Te=J&&J.touched?J.touched:y.current?y.current:h.initialTouched||{},Xe=J&&J.status?J.status:x.current?x.current:h.initialStatus;m.current=ye,g.current=pe,y.current=Te,x.current=Xe;var Ye=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!J&&!!J.isSubmitting,errors:pe,touched:Te,status:Xe,values:ye,isValidating:!!J&&!!J.isValidating,submitCount:J&&J.submitCount&&typeof J.submitCount=="number"?J.submitCount:0}})};if(h.onReset){var Ue=h.onReset(C.values,me);cC(Ue)?Ue.then(Ye):Ye()}else Ye()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);It(function(){b.current===!0&&!ll(m.current,h.initialValues)&&u&&(m.current=h.initialValues,U(),a&&q(m.current))},[u,h.initialValues,U,a,q]),It(function(){u&&b.current===!0&&!ll(g.current,h.initialErrors)&&(g.current=h.initialErrors||el,T({type:"SET_ERRORS",payload:h.initialErrors||el}))},[u,h.initialErrors]),It(function(){u&&b.current===!0&&!ll(y.current,h.initialTouched)&&(y.current=h.initialTouched||$m,T({type:"SET_TOUCHED",payload:h.initialTouched||$m}))},[u,h.initialTouched]),It(function(){u&&b.current===!0&&!ll(x.current,h.initialStatus)&&(x.current=h.initialStatus,T({type:"SET_STATUS",payload:h.initialStatus}))},[u,h.initialStatus,h.initialTouched]);var F=Ri(function(J){if(S.current[J]&&to(S.current[J].validate)){var ye=ui(C.values,J),pe=S.current[J].validate(ye);return cC(pe)?(T({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(Te){return Te}).then(function(Te){T({type:"SET_FIELD_ERROR",payload:{field:J,value:Te}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:J,value:pe}}),Promise.resolve(pe))}else if(h.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),D(C.values,J).then(function(Te){return Te}).then(function(Te){T({type:"SET_FIELD_ERROR",payload:{field:J,value:ui(Te,J)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),j=At(function(J,ye){var pe=ye.validate;S.current[J]={validate:pe}},[]),V=At(function(J){delete S.current[J]},[]),z=Ri(function(J,ye){T({type:"SET_TOUCHED",payload:J});var pe=ye===void 0?i:ye;return pe?q(C.values):Promise.resolve()}),Q=At(function(J){T({type:"SET_ERRORS",payload:J})},[]),oe=Ri(function(J,ye){var pe=to(J)?J(C.values):J;T({type:"SET_VALUES",payload:pe});var Te=ye===void 0?r:ye;return Te?q(pe):Promise.resolve()}),ae=At(function(J,ye){T({type:"SET_FIELD_ERROR",payload:{field:J,value:ye}})},[]),he=Ri(function(J,ye,pe){T({type:"SET_FIELD_VALUE",payload:{field:J,value:ye}});var Te=pe===void 0?r:pe;return Te?q(Al(C.values,J,ye)):Promise.resolve()}),Ae=At(function(J,ye){var pe=ye,Te=J,Xe;if(!uC(J)){J.persist&&J.persist();var Ye=J.target?J.target:J.currentTarget,Ue=Ye.type,Oe=Ye.name,Br=Ye.id,en=Ye.value,ti=Ye.checked;Ye.outerHTML;var ke=Ye.options,Ot=Ye.multiple;pe=ye||Oe||Br,Te=/number|range/.test(Ue)?(Xe=parseFloat(en),isNaN(Xe)?"":Xe):/checkbox/.test(Ue)?RFe(ui(C.values,pe),ti,en):ke&&Ot?EFe(ke):en}pe&&he(pe,Te)},[he,C.values]),ve=Ri(function(J){if(uC(J))return function(ye){return Ae(ye,J)};Ae(J)}),fe=Ri(function(J,ye,pe){ye===void 0&&(ye=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:J,value:ye}});var Te=pe===void 0?i:pe;return Te?q(C.values):Promise.resolve()}),Ee=At(function(J,ye){J.persist&&J.persist();var pe=J.target,Te=pe.name,Xe=pe.id;pe.outerHTML;var Ye=ye||Te||Xe;fe(Ye,!0)},[fe]),_e=Ri(function(J){if(uC(J))return function(ye){return Ee(ye,J)};Ee(J)}),le=At(function(J){to(J)?T({type:"SET_FORMIK_STATE",payload:J}):T({type:"SET_FORMIK_STATE",payload:function(){return J}})},[]),ce=At(function(J){T({type:"SET_STATUS",payload:J})},[]),Ve=At(function(J){T({type:"SET_ISSUBMITTING",payload:J})},[]),je=Ri(function(){return T({type:"SUBMIT_ATTEMPT"}),q().then(function(J){var ye=J instanceof Error,pe=!ye&&Object.keys(J).length===0;if(pe){var Te;try{if(Te=Ie(),Te===void 0)return}catch(Xe){throw Xe}return Promise.resolve(Te).then(function(Xe){return b.current&&T({type:"SUBMIT_SUCCESS"}),Xe}).catch(function(Xe){if(b.current)throw T({type:"SUBMIT_FAILURE"}),Xe})}else if(b.current&&(T({type:"SUBMIT_FAILURE"}),ye))throw J})}),be=Ri(function(J){J&&J.preventDefault&&to(J.preventDefault)&&J.preventDefault(),J&&J.stopPropagation&&to(J.stopPropagation)&&J.stopPropagation(),je().catch(function(ye){console.warn("Warning: An unhandled error was caught from submitForm()",ye)})}),me={resetForm:U,validateForm:q,validateField:F,setErrors:Q,setFieldError:ae,setFieldTouched:fe,setFieldValue:he,setStatus:ce,setSubmitting:Ve,setTouched:z,setValues:oe,setFormikState:le,submitForm:je},Ie=Ri(function(){return d(C.values,me)}),Je=Ri(function(J){J&&J.preventDefault&&to(J.preventDefault)&&J.preventDefault(),J&&J.stopPropagation&&to(J.stopPropagation)&&J.stopPropagation(),U()}),at=At(function(J){return{value:ui(C.values,J),error:ui(C.errors,J),touched:!!ui(C.touched,J),initialValue:ui(m.current,J),initialTouched:!!ui(y.current,J),initialError:ui(g.current,J)}},[C.errors,C.touched,C.values]),ct=At(function(J){return{setValue:function(pe,Te){return he(J,pe,Te)},setTouched:function(pe,Te){return fe(J,pe,Te)},setError:function(pe){return ae(J,pe)}}},[he,fe,ae]),Vt=At(function(J){var ye=u1(J),pe=ye?J.name:J,Te=ui(C.values,pe),Xe={name:pe,value:Te,onChange:ve,onBlur:_e};if(ye){var Ye=J.type,Ue=J.value,Oe=J.as,Br=J.multiple;Ye==="checkbox"?Ue===void 0?Xe.checked=!!Te:(Xe.checked=!!(Array.isArray(Te)&&~Te.indexOf(Ue)),Xe.value=Ue):Ye==="radio"?(Xe.checked=Te===Ue,Xe.value=Ue):Oe==="select"&&Br&&(Xe.value=Xe.value||[],Xe.multiple=!0)}return Xe},[_e,ve,C.values]),_r=Jr(function(){return!ll(m.current,C.values)},[m.current,C.values]),jt=Jr(function(){return typeof s<"u"?_r?C.errors&&Object.keys(C.errors).length===0:s!==!1&&to(s)?s(h):s:C.errors&&Object.keys(C.errors).length===0},[s,_r,C.errors,h]),st=nn({},C,{initialValues:m.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:_e,handleChange:ve,handleReset:Je,handleSubmit:be,resetForm:U,setErrors:Q,setFormikState:le,setFieldTouched:fe,setFieldValue:he,setFieldError:ae,setStatus:ce,setSubmitting:Ve,setTouched:z,setValues:oe,submitForm:je,validateForm:q,validateField:F,isValid:jt,dirty:_r,unregisterField:V,registerField:j,getFieldProps:Vt,getFieldMeta:at,getFieldHelpers:ct,validateOnBlur:i,validateOnChange:r,validateOnMount:a});return st}function CFe(e){var t={};if(e.inner){if(e.inner.length===0)return Al(t,e.path,e.message);for(var i=e.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;ui(t,a.path)||(t=Al(t,a.path,a.message))}}return t}function TFe(e,t,r,n){r===void 0&&(r=!1);var i=zS(e);return t[r?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function zS(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(i){return Array.isArray(i)===!0||dk(i)?zS(i):i!==""?i:void 0}):dk(e[n])?t[n]=zS(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function SFe(e,t,r){var n=e.slice();return t.forEach(function(o,a){if(typeof n[a]>"u"){var s=r.clone!==!1,l=s&&r.isMergeableObject(o);n[a]=l?jS(Array.isArray(o)?[]:{},o,r):o}else r.isMergeableObject(o)?n[a]=jS(e[a],o,r):e.indexOf(o)===-1&&n.push(o)}),n}function EFe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function RFe(e,t,r){if(typeof e=="boolean")return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,o=e.indexOf(r),i=o>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}var PFe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?IE:It;function Ri(e){var t=Dr(e);return PFe(function(){t.current=e}),At(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current.apply(void 0,n)},[])}var OFe=Ea(function(e,t){var r=e.action,n=JH(e,["action"]),i=r??"#",o=bFe(),a=o.handleReset,s=o.handleSubmit;return ya("form",nn({onSubmit:s,ref:t,onReset:a,action:i},n))});OFe.displayName="Form";function eW(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=eW(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function c1(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=eW(e))&&(n&&(n+=" "),n+=t);return n}let MFe={data:""},AFe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||MFe,IFe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,$Fe=/\/\*[^]*?\*\/| +/g,Fk=/\n+/g,vl=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?r=o+" "+a+";":n+=o[1]=="f"?vl(a,o):o+"{"+vl(a,o[1]=="k"?"":t)+"}":typeof a=="object"?n+=vl(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=vl.p?vl.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},na={},tW=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+tW(e[r]);return t}return e},DFe=(e,t,r,n,i)=>{let o=tW(e),a=na[o]||(na[o]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(o));if(!na[a]){let l=o!==e?e:(u=>{let d,p,h=[{}];for(;d=IFe.exec(u.replace($Fe,""));)d[4]?h.shift():d[3]?(p=d[3].replace(Fk," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(Fk," ").trim();return h[0]})(e);na[a]=vl(i?{["@keyframes "+a]:l}:l,r?"":"."+a)}let s=r&&na.g?na.g:null;return r&&(na.g=na[a]),((l,u,d,p)=>{p?u.data=u.data.replace(p,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(na[a],t,n,s),a},LFe=(e,t,r)=>e.reduce((n,i,o)=>{let a=t[o];if(a&&a.call){let s=a(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":vl(s,""):s===!1?"":s}return n+i+(a??"")},"");function jP(e){let t=this||{},r=e.call?e(t.p):e;return DFe(r.unshift?r.raw?LFe(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,AFe(t.target),t.g,t.o,t.k)}jP.bind({g:1});jP.bind({k:1});function kFe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function NFe(e,t,r){return t&&kFe(e.prototype,t),e}function ds(){return ds=Object.assign||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},ds.apply(this,arguments)}function FFe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function BP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var jk=function(){return""},jFe=ot.createContext({enqueueSnackbar:jk,closeSnackbar:jk}),ul={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Dm="unmounted",Wu="exited",zu="entering",Yd="entered",Bk="exiting",UP=function(e){FFe(t,e);function t(n){var i;i=e.call(this,n)||this;var o=n.appear,a;return i.appearStatus=null,n.in?o?(a=Wu,i.appearStatus=zu):a=Yd:n.unmountOnExit||n.mountOnEnter?a=Dm:a=Wu,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Dm?{status:Wu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==zu&&a!==Yd&&(o=zu):(a===zu||a===Yd)&&(o=Bk)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o=i,a=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(a=i.exit,o=i.enter),{exit:a,enter:o}},r.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===zu?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Wu&&this.setState({status:Dm})},r.performEnter=function(i){var o=this,a=this.props.enter,s=i,l=this.getTimeouts();if(!i&&!a){this.safeSetState({status:Yd},function(){o.props.onEntered&&o.props.onEntered(o.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:zu},function(){o.props.onEntering&&o.props.onEntering(o.node,s),o.onTransitionEnd(l.enter,function(){o.safeSetState({status:Yd},function(){o.props.onEntered&&o.props.onEntered(o.node,s)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts();if(!o){this.safeSetState({status:Wu},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Bk},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Wu},function(){i.props.onExited&&i.props.onExited(i.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(){a&&(a=!1,o.nextCallback=null,i())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=i==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Dm)return null;var o=this.props,a=o.children,s=BP(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(i,s)},NFe(t,[{key:"node",get:function(){var i,o=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!o)throw new Error("notistack - Custom snackbar is not refForwarding");return o}}]),t}(ot.Component);function Vu(){}UP.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vu,onEntering:Vu,onEntered:Vu,onExit:Vu,onExiting:Vu,onExited:Vu};function Uk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function VS(e,t){return Jr(function(){return e==null&&t==null?null:function(r){Uk(e,r),Uk(t,r)}},[e,t])}function kv(e){var t=e.timeout,r=e.style,n=r===void 0?{}:r,i=e.mode;return{duration:typeof t=="object"?t[i]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var GS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},rW=function(t){t.scrollTop=t.scrollTop},qk=function(t){return Math.round(t)+"ms"};function Ju(e,t){e===void 0&&(e=["all"]);var r=t||{},n=r.duration,i=n===void 0?300:n,o=r.easing,a=o===void 0?GS.easeInOut:o,s=r.delay,l=s===void 0?0:s,u=Array.isArray(e)?e:[e];return u.map(function(d){var p=typeof i=="string"?i:qk(i),h=typeof l=="string"?l:qk(l);return d+" "+p+" "+a+" "+h}).join(",")}function BFe(e){return e&&e.ownerDocument||document}function nW(e){var t=BFe(e);return t.defaultView||window}function UFe(e,t){t===void 0&&(t=166);var r;function n(){for(var i=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=function(){e.apply(i,a)};clearTimeout(r),r=setTimeout(l,t)}return n.clear=function(){clearTimeout(r)},n}function qFe(e,t){var r=t.getBoundingClientRect(),n=nW(t),i;if(t.fakeTransform)i=t.fakeTransform;else{var o=n.getComputedStyle(t);i=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var a=0,s=0;if(i&&i!=="none"&&typeof i=="string"){var l=i.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),s=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(n.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(n.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}function Lm(e,t){if(t){var r=qFe(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var HFe=Ea(function(e,t){var r=e.children,n=e.direction,i=n===void 0?"down":n,o=e.in,a=e.style,s=e.timeout,l=s===void 0?0:s,u=e.onEnter,d=e.onEntered,p=e.onExit,h=e.onExited,m=BP(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=Dr(null),y=VS(r.ref,g),x=VS(y,t),b=function(T,M){Lm(i,T),rW(T),u&&u(T,M)},S=function(T){var M=(a==null?void 0:a.transitionTimingFunction)||GS.easeOut,D=kv({timeout:l,mode:"enter",style:ds({},a,{transitionTimingFunction:M})});T.style.webkitTransition=Ju("-webkit-transform",D),T.style.transition=Ju("transform",D),T.style.webkitTransform="none",T.style.transform="none"},w=function(T){var M=(a==null?void 0:a.transitionTimingFunction)||GS.sharp,D=kv({timeout:l,mode:"exit",style:ds({},a,{transitionTimingFunction:M})});T.style.webkitTransition=Ju("-webkit-transform",D),T.style.transition=Ju("transform",D),Lm(i,T),p&&p(T)},_=function(T){T.style.webkitTransition="",T.style.transition="",h&&h(T)},O=At(function(){g.current&&Lm(i,g.current)},[i]);return It(function(){if(!(o||i==="down"||i==="right")){var C=UFe(function(){g.current&&Lm(i,g.current)}),T=nW(g.current);return T.addEventListener("resize",C),function(){C.clear(),T.removeEventListener("resize",C)}}},[i,o]),It(function(){o||O()},[o,O]),ya(UP,Object.assign({appear:!0,nodeRef:g,onEnter:b,onEntered:d,onEntering:S,onExit:w,onExited:_,in:o,timeout:l},m),function(C,T){return gf(r,ds({ref:x,style:ds({visibility:C==="exited"&&!o?"hidden":void 0},a,{},r.props.style)},T))})});HFe.displayName="Slide";function d1(e){return Object.entries(e).reduce(function(t,r){var n,i=r[0],o=r[1];return ds({},t,(n={},n[i]=jP(o),n))},{})}var cp={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},Hk=d1({root:{height:0},entered:{height:"auto"}}),dC="0px",fC=175,WFe=Ea(function(e,t){var r=e.children,n=e.in,i=e.onExited,o=Dr(null),a=Dr(null),s=VS(t,a),l=function(){return o.current?o.current.clientHeight:0},u=function(y){y.style.height=dC},d=function(y){var x=l(),b=kv({timeout:fC,mode:"enter"}),S=b.duration,w=b.easing;y.style.transitionDuration=typeof S=="string"?S:S+"ms",y.style.height=x+"px",y.style.transitionTimingFunction=w||""},p=function(y){y.style.height="auto"},h=function(y){y.style.height=l()+"px"},m=function(y){rW(y);var x=kv({timeout:fC,mode:"exit"}),b=x.duration,S=x.easing;y.style.transitionDuration=typeof b=="string"?b:b+"ms",y.style.height=dC,y.style.transitionTimingFunction=S||""};return ya(UP,{in:n,unmountOnExit:!0,onEnter:u,onEntered:p,onEntering:d,onExit:h,onExited:i,onExiting:m,nodeRef:a,timeout:fC},function(g,y){return ya("div",Object.assign({ref:s,className:c1(Hk.root,g==="entered"&&Hk.entered),style:ds({pointerEvents:"all",overflow:"hidden",minHeight:dC,transition:Ju("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!n&&{visibility:"hidden"})},y),ya("div",{ref:o,className:cp.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});WFe.displayName="Collapse";var zFe=typeof window<"u"?IE:It;function Wk(e){var t=Dr(e);return zFe(function(){t.current=e}),At(function(){return t.current.apply(void 0,arguments)},[])}var VFe=Ea(function(e,t){var r=e.children,n=e.className,i=e.autoHideDuration,o=e.disableWindowBlurListener,a=o===void 0?!1:o,s=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,p=d===void 0?{}:d,h=Dr(),m=Wk(function(){s&&s.apply(void 0,arguments)}),g=Wk(function(w){!s||w==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){m(null,"timeout",l)},w))});It(function(){return u&&g(i),function(){h.current&&clearTimeout(h.current)}},[u,i,g]);var y=function(){h.current&&clearTimeout(h.current)},x=At(function(){i!=null&&g(i*.5)},[i,g]),b=function(_){p.onMouseEnter&&p.onMouseEnter(_),y()},S=function(_){p.onMouseLeave&&p.onMouseLeave(_),x()};return It(function(){if(!a&&u)return window.addEventListener("focus",x),window.addEventListener("blur",y),function(){window.removeEventListener("focus",x),window.removeEventListener("blur",y)}},[a,x,u]),ya("div",Object.assign({ref:t},p,{className:c1(cp.Snackbar,n),onMouseEnter:b,onMouseLeave:S}),r)});VFe.displayName="Snackbar";var pC,GFe=d1({root:(pC={display:"flex",flexWrap:"wrap",flexGrow:1},pC[ul.upSm]={flexGrow:"initial",minWidth:"288px"},pC)}),iW=Ea(function(e,t){var r=e.className,n=BP(e,["className"]);return ot.createElement("div",Object.assign({ref:t,className:c1(GFe.root,r)},n))});iW.displayName="SnackbarContent";var Zd=d1({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),zk="notistack-snackbar",KFe=Ea(function(e,t){var r=e.id,n=e.message,i=e.action,o=e.iconVariant,a=e.variant,s=e.hideIconVariant,l=e.style,u=e.className,d=o[a],p=i;return typeof p=="function"&&(p=p(r)),ot.createElement(iW,{ref:t,role:"alert","aria-describedby":zk,style:l,className:c1(cp.MuiContent,cp.MuiContentVariant(a),Zd.root,Zd[a],u,!s&&d&&Zd.lessPadding)},ot.createElement("div",{id:zk,className:Zd.message},s?null:d,n),p&&ot.createElement("div",{className:Zd.action},p))});KFe.displayName="MaterialDesignContent";var Jd,hC,km,Nm,mC,ia={view:{default:20},snackbar:{default:6,dense:2}},Vk="."+cp.CollapseWrapper,gC=16;Jd={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Ju(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Jd[Vk]={padding:ia.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Jd.maxWidth="calc(100% - "+ia.view.default*2+"px)",Jd[ul.downXs]={width:"100%",maxWidth:"calc(100% - "+gC*2+"px)"},hC={},hC[Vk]={padding:ia.snackbar.dense+"px 0px"},ia.view.default-ia.snackbar.default+"",ia.view.default-ia.snackbar.default+"",km={left:ia.view.default+"px"},km[ul.upSm]={alignItems:"flex-start"},km[ul.downXs]={left:gC+"px"},Nm={right:ia.view.default+"px"},Nm[ul.upSm]={alignItems:"flex-end"},Nm[ul.downXs]={right:gC+"px"},mC={left:"50%",transform:"translateX(-50%)"},mC[ul.upSm]={alignItems:"center"};var XFe=function(){return Ra(jFe)},KS;try{KS=Map}catch{}var XS;try{XS=Set}catch{}function oW(e,t,r){if(!e||typeof e!="object"||typeof e=="function")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(YS);if(KS&&e instanceof KS)return new Map(Array.from(e.entries()));if(XS&&e instanceof XS)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var n=Object.create(e);r.push(n);for(var i in e){var o=t.findIndex(function(a){return a===e[i]});n[i]=o>-1?r[o]:oW(e[i],t,r)}return n}return e}function YS(e){return oW(e,[],[])}const YFe=Object.prototype.toString,ZFe=Error.prototype.toString,JFe=RegExp.prototype.toString,QFe=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",eje=/^Symbol\((.*)\)(.*)$/;function tje(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Gk(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return tje(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return QFe.call(e).replace(eje,"Symbol($1)");const n=YFe.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+ZFe.call(e)+"]":n==="RegExp"?JFe.call(e):null}function Mc(e,t){let r=Gk(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let o=Gk(this[n],t);return o!==null?o:i},2)}let cl={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=n!=null&&n!==r,o=`${e} must be a \`${t}\` type, but the final value was: \`${Mc(r,!0)}\``+(i?` (cast from the value \`${Mc(n,!0)}\`).`:".");return r===null&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},ro={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},rs={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},ZS={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},JS={isValue:"${path} field must be ${value}"},QS={noUnknown:"${path} field has unspecified keys: ${unknown}"},Eg={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};const rje=Object.assign(Object.create(null),{mixed:cl,string:ro,number:rs,date:ZS,object:QS,array:Eg,boolean:JS});var nje=Object.prototype,ije=nje.hasOwnProperty;function oje(e,t){return e!=null&&ije.call(e,t)}var aje=oje,sje=Array.isArray,Ns=sje,lje=typeof ao=="object"&&ao&&ao.Object===Object&&ao,aW=lje,uje=aW,cje=typeof self=="object"&&self&&self.Object===Object&&self,dje=uje||cje||Function("return this")(),ka=dje,fje=ka,pje=fje.Symbol,f1=pje,Kk=f1,sW=Object.prototype,hje=sW.hasOwnProperty,mje=sW.toString,Qd=Kk?Kk.toStringTag:void 0;function gje(e){var t=hje.call(e,Qd),r=e[Qd];try{e[Qd]=void 0;var n=!0}catch{}var i=mje.call(e);return n&&(t?e[Qd]=r:delete e[Qd]),i}var vje=gje,yje=Object.prototype,bje=yje.toString;function xje(e){return bje.call(e)}var wje=xje,Xk=f1,_je=vje,Cje=wje,Tje="[object Null]",Sje="[object Undefined]",Yk=Xk?Xk.toStringTag:void 0;function Eje(e){return e==null?e===void 0?Sje:Tje:Yk&&Yk in Object(e)?_je(e):Cje(e)}var ah=Eje;function Rje(e){return e!=null&&typeof e=="object"}var sh=Rje,Pje=ah,Oje=sh,Mje="[object Symbol]";function Aje(e){return typeof e=="symbol"||Oje(e)&&Pje(e)==Mje}var qP=Aje,Ije=Ns,$je=qP,Dje=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lje=/^\w*$/;function kje(e,t){if(Ije(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$je(e)?!0:Lje.test(e)||!Dje.test(e)||t!=null&&e in Object(t)}var HP=kje;function Nje(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var WP=Nje,Fje=ah,jje=WP,Bje="[object AsyncFunction]",Uje="[object Function]",qje="[object GeneratorFunction]",Hje="[object Proxy]";function Wje(e){if(!jje(e))return!1;var t=Fje(e);return t==Uje||t==qje||t==Bje||t==Hje}var lW=Wje,zje=ka,Vje=zje["__core-js_shared__"],Gje=Vje,vC=Gje,Zk=function(){var e=/[^.]+$/.exec(vC&&vC.keys&&vC.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Kje(e){return!!Zk&&Zk in e}var Xje=Kje,Yje=Function.prototype,Zje=Yje.toString;function Jje(e){if(e!=null){try{return Zje.call(e)}catch{}try{return e+""}catch{}}return""}var uW=Jje,Qje=lW,eBe=Xje,tBe=WP,rBe=uW,nBe=/[\\^$.*+?()[\]{}|]/g,iBe=/^\[object .+?Constructor\]$/,oBe=Function.prototype,aBe=Object.prototype,sBe=oBe.toString,lBe=aBe.hasOwnProperty,uBe=RegExp("^"+sBe.call(lBe).replace(nBe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cBe(e){if(!tBe(e)||eBe(e))return!1;var t=Qje(e)?uBe:iBe;return t.test(rBe(e))}var dBe=cBe;function fBe(e,t){return e==null?void 0:e[t]}var pBe=fBe,hBe=dBe,mBe=pBe;function gBe(e,t){var r=mBe(e,t);return hBe(r)?r:void 0}var au=gBe,vBe=au,yBe=vBe(Object,"create"),p1=yBe,Jk=p1;function bBe(){this.__data__=Jk?Jk(null):{},this.size=0}var xBe=bBe;function wBe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _Be=wBe,CBe=p1,TBe="__lodash_hash_undefined__",SBe=Object.prototype,EBe=SBe.hasOwnProperty;function RBe(e){var t=this.__data__;if(CBe){var r=t[e];return r===TBe?void 0:r}return EBe.call(t,e)?t[e]:void 0}var PBe=RBe,OBe=p1,MBe=Object.prototype,ABe=MBe.hasOwnProperty;function IBe(e){var t=this.__data__;return OBe?t[e]!==void 0:ABe.call(t,e)}var $Be=IBe,DBe=p1,LBe="__lodash_hash_undefined__";function kBe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=DBe&&t===void 0?LBe:t,this}var NBe=kBe,FBe=xBe,jBe=_Be,BBe=PBe,UBe=$Be,qBe=NBe;function td(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])}}td.prototype.clear=FBe;td.prototype.delete=jBe;td.prototype.get=BBe;td.prototype.has=UBe;td.prototype.set=qBe;var HBe=td;function WBe(){this.__data__=[],this.size=0}var zBe=WBe;function VBe(e,t){return e===t||e!==e&&t!==t}var cW=VBe,GBe=cW;function KBe(e,t){for(var r=e.length;r--;)if(GBe(e[r][0],t))return r;return-1}var h1=KBe,XBe=h1,YBe=Array.prototype,ZBe=YBe.splice;function JBe(e){var t=this.__data__,r=XBe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ZBe.call(t,r,1),--this.size,!0}var QBe=JBe,eUe=h1;function tUe(e){var t=this.__data__,r=eUe(t,e);return r<0?void 0:t[r][1]}var rUe=tUe,nUe=h1;function iUe(e){return nUe(this.__data__,e)>-1}var oUe=iUe,aUe=h1;function sUe(e,t){var r=this.__data__,n=aUe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var lUe=sUe,uUe=zBe,cUe=QBe,dUe=rUe,fUe=oUe,pUe=lUe;function rd(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])}}rd.prototype.clear=uUe;rd.prototype.delete=cUe;rd.prototype.get=dUe;rd.prototype.has=fUe;rd.prototype.set=pUe;var m1=rd,hUe=au,mUe=ka,gUe=hUe(mUe,"Map"),zP=gUe,Qk=HBe,vUe=m1,yUe=zP;function bUe(){this.size=0,this.__data__={hash:new Qk,map:new(yUe||vUe),string:new Qk}}var xUe=bUe;function wUe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _Ue=wUe,CUe=_Ue;function TUe(e,t){var r=e.__data__;return CUe(t)?r[typeof t=="string"?"string":"hash"]:r.map}var g1=TUe,SUe=g1;function EUe(e){var t=SUe(this,e).delete(e);return this.size-=t?1:0,t}var RUe=EUe,PUe=g1;function OUe(e){return PUe(this,e).get(e)}var MUe=OUe,AUe=g1;function IUe(e){return AUe(this,e).has(e)}var $Ue=IUe,DUe=g1;function LUe(e,t){var r=DUe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var kUe=LUe,NUe=xUe,FUe=RUe,jUe=MUe,BUe=$Ue,UUe=kUe;function nd(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])}}nd.prototype.clear=NUe;nd.prototype.delete=FUe;nd.prototype.get=jUe;nd.prototype.has=BUe;nd.prototype.set=UUe;var VP=nd,dW=VP,qUe="Expected a function";function GP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qUe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(GP.Cache||dW),r}GP.Cache=dW;var HUe=GP,WUe=HUe,zUe=500;function VUe(e){var t=WUe(e,function(n){return r.size===zUe&&r.clear(),n}),r=t.cache;return t}var GUe=VUe,KUe=GUe,XUe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YUe=/\\(\\)?/g,ZUe=KUe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XUe,function(r,n,i,o){t.push(i?o.replace(YUe,"$1"):n||r)}),t}),JUe=ZUe;function QUe(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var e3e=QUe,e2=f1,t3e=e3e,r3e=Ns,n3e=qP,t2=e2?e2.prototype:void 0,r2=t2?t2.toString:void 0;function fW(e){if(typeof e=="string")return e;if(r3e(e))return t3e(e,fW)+"";if(n3e(e))return r2?r2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var i3e=fW,o3e=i3e;function a3e(e){return e==null?"":o3e(e)}var lh=a3e,s3e=Ns,l3e=HP,u3e=JUe,c3e=lh;function d3e(e,t){return s3e(e)?e:l3e(e,t)?[e]:u3e(c3e(e))}var pW=d3e,f3e=ah,p3e=sh,h3e="[object Arguments]";function m3e(e){return p3e(e)&&f3e(e)==h3e}var g3e=m3e,n2=g3e,v3e=sh,hW=Object.prototype,y3e=hW.hasOwnProperty,b3e=hW.propertyIsEnumerable,x3e=n2(function(){return arguments}())?n2:function(e){return v3e(e)&&y3e.call(e,"callee")&&!b3e.call(e,"callee")},mW=x3e,w3e=9007199254740991,_3e=/^(?:0|[1-9]\d*)$/;function C3e(e,t){var r=typeof e;return t=t??w3e,!!t&&(r=="number"||r!="symbol"&&_3e.test(e))&&e>-1&&e%1==0&&e<t}var gW=C3e,T3e=9007199254740991;function S3e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=T3e}var KP=S3e,E3e=qP;function R3e(e){if(typeof e=="string"||E3e(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var v1=R3e,P3e=pW,O3e=mW,M3e=Ns,A3e=gW,I3e=KP,$3e=v1;function D3e(e,t,r){t=P3e(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=$3e(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&I3e(i)&&A3e(a,i)&&(M3e(e)||O3e(e)))}var vW=D3e,L3e=aje,k3e=vW;function N3e(e,t){return e!=null&&k3e(e,t,L3e)}var F3e=N3e;const Nv=gi(F3e),id=e=>e&&e.__isYupSchema__;class j3e{constructor(t,r){if(this.fn=void 0,this.refs=t,this.refs=t,typeof r=="function"){this.fn=r;return}if(!Nv(r,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,a=typeof n=="function"?n:(...s)=>s.every(l=>l===n);this.fn=function(...s){let l=s.pop(),u=s.pop(),d=a(...s)?i:o;if(d)return typeof d=="function"?d(u):u.concat(d.resolve(l))}}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn.apply(t,n.concat(t,r));if(i===void 0||i===t)return t;if(!id(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}function yW(e){return e==null?[]:[].concat(e)}function eE(){return eE=Object.assign||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},eE.apply(this,arguments)}let B3e=/\$\{\s*(\w+)\s*\}/g;class Ln extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=eE({},r,{path:n})),typeof t=="string"?t.replace(B3e,(i,o)=>Mc(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],yW(t).forEach(o=>{Ln.isError(o)?(this.errors.push(...o.errors),this.inner=this.inner.concat(o.inner.length?o.inner:o)):this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Ln)}}const U3e=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function Fv(e,t){let{endEarly:r,tests:n,args:i,value:o,errors:a,sort:s,path:l}=e,u=U3e(t),d=n.length;const p=[];if(a=a||[],!d)return a.length?u(new Ln(a,o,l)):u(null,o);for(let h=0;h<n.length;h++){const m=n[h];m(i,function(y){if(y){if(!Ln.isError(y))return u(y,o);if(r)return y.value=o,u(y,o);p.push(y)}if(--d<=0){if(p.length&&(s&&p.sort(s),a.length&&p.push(...a),a=p),a.length){u(new Ln(a,o,l),o);return}u(null,o)}})}}var q3e=au,H3e=function(){try{var e=q3e(Object,"defineProperty");return e({},"",{}),e}catch{}}(),W3e=H3e,i2=W3e;function z3e(e,t,r){t=="__proto__"&&i2?i2(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var bW=z3e;function V3e(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var G3e=V3e,K3e=G3e,X3e=K3e(),Y3e=X3e;function Z3e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var J3e=Z3e,jv={exports:{}};function Q3e(){return!1}var eqe=Q3e;jv.exports;(function(e,t){var r=ka,n=eqe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(jv,jv.exports);var xW=jv.exports,tqe=ah,rqe=KP,nqe=sh,iqe="[object Arguments]",oqe="[object Array]",aqe="[object Boolean]",sqe="[object Date]",lqe="[object Error]",uqe="[object Function]",cqe="[object Map]",dqe="[object Number]",fqe="[object Object]",pqe="[object RegExp]",hqe="[object Set]",mqe="[object String]",gqe="[object WeakMap]",vqe="[object ArrayBuffer]",yqe="[object DataView]",bqe="[object Float32Array]",xqe="[object Float64Array]",wqe="[object Int8Array]",_qe="[object Int16Array]",Cqe="[object Int32Array]",Tqe="[object Uint8Array]",Sqe="[object Uint8ClampedArray]",Eqe="[object Uint16Array]",Rqe="[object Uint32Array]",or={};or[bqe]=or[xqe]=or[wqe]=or[_qe]=or[Cqe]=or[Tqe]=or[Sqe]=or[Eqe]=or[Rqe]=!0;or[iqe]=or[oqe]=or[vqe]=or[aqe]=or[yqe]=or[sqe]=or[lqe]=or[uqe]=or[cqe]=or[dqe]=or[fqe]=or[pqe]=or[hqe]=or[mqe]=or[gqe]=!1;function Pqe(e){return nqe(e)&&rqe(e.length)&&!!or[tqe(e)]}var Oqe=Pqe;function Mqe(e){return function(t){return e(t)}}var Aqe=Mqe,Bv={exports:{}};Bv.exports;(function(e,t){var r=aW,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Bv,Bv.exports);var Iqe=Bv.exports,$qe=Oqe,Dqe=Aqe,o2=Iqe,a2=o2&&o2.isTypedArray,Lqe=a2?Dqe(a2):$qe,wW=Lqe,kqe=J3e,Nqe=mW,Fqe=Ns,jqe=xW,Bqe=gW,Uqe=wW,qqe=Object.prototype,Hqe=qqe.hasOwnProperty;function Wqe(e,t){var r=Fqe(e),n=!r&&Nqe(e),i=!r&&!n&&jqe(e),o=!r&&!n&&!i&&Uqe(e),a=r||n||i||o,s=a?kqe(e.length,String):[],l=s.length;for(var u in e)(t||Hqe.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Bqe(u,l)))&&s.push(u);return s}var zqe=Wqe,Vqe=Object.prototype;function Gqe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vqe;return e===r}var Kqe=Gqe;function Xqe(e,t){return function(r){return e(t(r))}}var Yqe=Xqe,Zqe=Yqe,Jqe=Zqe(Object.keys,Object),Qqe=Jqe,e5e=Kqe,t5e=Qqe,r5e=Object.prototype,n5e=r5e.hasOwnProperty;function i5e(e){if(!e5e(e))return t5e(e);var t=[];for(var r in Object(e))n5e.call(e,r)&&r!="constructor"&&t.push(r);return t}var o5e=i5e,a5e=lW,s5e=KP;function l5e(e){return e!=null&&s5e(e.length)&&!a5e(e)}var u5e=l5e,c5e=zqe,d5e=o5e,f5e=u5e;function p5e(e){return f5e(e)?c5e(e):d5e(e)}var XP=p5e,h5e=Y3e,m5e=XP;function g5e(e,t){return e&&h5e(e,t,m5e)}var _W=g5e,v5e=m1;function y5e(){this.__data__=new v5e,this.size=0}var b5e=y5e;function x5e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var w5e=x5e;function _5e(e){return this.__data__.get(e)}var C5e=_5e;function T5e(e){return this.__data__.has(e)}var S5e=T5e,E5e=m1,R5e=zP,P5e=VP,O5e=200;function M5e(e,t){var r=this.__data__;if(r instanceof E5e){var n=r.__data__;if(!R5e||n.length<O5e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new P5e(n)}return r.set(e,t),this.size=r.size,this}var A5e=M5e,I5e=m1,$5e=b5e,D5e=w5e,L5e=C5e,k5e=S5e,N5e=A5e;function od(e){var t=this.__data__=new I5e(e);this.size=t.size}od.prototype.clear=$5e;od.prototype.delete=D5e;od.prototype.get=L5e;od.prototype.has=k5e;od.prototype.set=N5e;var CW=od,F5e="__lodash_hash_undefined__";function j5e(e){return this.__data__.set(e,F5e),this}var B5e=j5e;function U5e(e){return this.__data__.has(e)}var q5e=U5e,H5e=VP,W5e=B5e,z5e=q5e;function Uv(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new H5e;++t<r;)this.add(e[t])}Uv.prototype.add=Uv.prototype.push=W5e;Uv.prototype.has=z5e;var V5e=Uv;function G5e(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 K5e=G5e;function X5e(e,t){return e.has(t)}var Y5e=X5e,Z5e=V5e,J5e=K5e,Q5e=Y5e,eHe=1,tHe=2;function rHe(e,t,r,n,i,o){var a=r&eHe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,m=r&tHe?new Z5e:void 0;for(o.set(e,t),o.set(t,e);++p<s;){var g=e[p],y=t[p];if(n)var x=a?n(y,g,p,t,e,o):n(g,y,p,e,t,o);if(x!==void 0){if(x)continue;h=!1;break}if(m){if(!J5e(t,function(b,S){if(!Q5e(m,S)&&(g===b||i(g,b,r,n,o)))return m.push(S)})){h=!1;break}}else if(!(g===y||i(g,y,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var TW=rHe,nHe=ka,iHe=nHe.Uint8Array,oHe=iHe;function aHe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var sHe=aHe;function lHe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var uHe=lHe,s2=f1,l2=oHe,cHe=cW,dHe=TW,fHe=sHe,pHe=uHe,hHe=1,mHe=2,gHe="[object Boolean]",vHe="[object Date]",yHe="[object Error]",bHe="[object Map]",xHe="[object Number]",wHe="[object RegExp]",_He="[object Set]",CHe="[object String]",THe="[object Symbol]",SHe="[object ArrayBuffer]",EHe="[object DataView]",u2=s2?s2.prototype:void 0,yC=u2?u2.valueOf:void 0;function RHe(e,t,r,n,i,o,a){switch(r){case EHe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case SHe:return!(e.byteLength!=t.byteLength||!o(new l2(e),new l2(t)));case gHe:case vHe:case xHe:return cHe(+e,+t);case yHe:return e.name==t.name&&e.message==t.message;case wHe:case CHe:return e==t+"";case bHe:var s=fHe;case _He:var l=n&hHe;if(s||(s=pHe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;n|=mHe,a.set(e,t);var d=dHe(s(e),s(t),n,i,o,a);return a.delete(e),d;case THe:if(yC)return yC.call(e)==yC.call(t)}return!1}var PHe=RHe;function OHe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var MHe=OHe,AHe=MHe,IHe=Ns;function $He(e,t,r){var n=t(e);return IHe(e)?n:AHe(n,r(e))}var DHe=$He;function LHe(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var kHe=LHe;function NHe(){return[]}var FHe=NHe,jHe=kHe,BHe=FHe,UHe=Object.prototype,qHe=UHe.propertyIsEnumerable,c2=Object.getOwnPropertySymbols,HHe=c2?function(e){return e==null?[]:(e=Object(e),jHe(c2(e),function(t){return qHe.call(e,t)}))}:BHe,WHe=HHe,zHe=DHe,VHe=WHe,GHe=XP;function KHe(e){return zHe(e,GHe,VHe)}var XHe=KHe,d2=XHe,YHe=1,ZHe=Object.prototype,JHe=ZHe.hasOwnProperty;function QHe(e,t,r,n,i,o){var a=r&YHe,s=d2(e),l=s.length,u=d2(t),d=u.length;if(l!=d&&!a)return!1;for(var p=l;p--;){var h=s[p];if(!(a?h in t:JHe.call(t,h)))return!1}var m=o.get(e),g=o.get(t);if(m&&g)return m==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var x=a;++p<l;){h=s[p];var b=e[h],S=t[h];if(n)var w=a?n(S,b,h,t,e,o):n(b,S,h,e,t,o);if(!(w===void 0?b===S||i(b,S,r,n,o):w)){y=!1;break}x||(x=h=="constructor")}if(y&&!x){var _=e.constructor,O=t.constructor;_!=O&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof O=="function"&&O instanceof O)&&(y=!1)}return o.delete(e),o.delete(t),y}var eWe=QHe,tWe=au,rWe=ka,nWe=tWe(rWe,"DataView"),iWe=nWe,oWe=au,aWe=ka,sWe=oWe(aWe,"Promise"),lWe=sWe,uWe=au,cWe=ka,dWe=uWe(cWe,"Set"),fWe=dWe,pWe=au,hWe=ka,mWe=pWe(hWe,"WeakMap"),gWe=mWe,tE=iWe,rE=zP,nE=lWe,iE=fWe,oE=gWe,SW=ah,ad=uW,f2="[object Map]",vWe="[object Object]",p2="[object Promise]",h2="[object Set]",m2="[object WeakMap]",g2="[object DataView]",yWe=ad(tE),bWe=ad(rE),xWe=ad(nE),wWe=ad(iE),_We=ad(oE),dl=SW;(tE&&dl(new tE(new ArrayBuffer(1)))!=g2||rE&&dl(new rE)!=f2||nE&&dl(nE.resolve())!=p2||iE&&dl(new iE)!=h2||oE&&dl(new oE)!=m2)&&(dl=function(e){var t=SW(e),r=t==vWe?e.constructor:void 0,n=r?ad(r):"";if(n)switch(n){case yWe:return g2;case bWe:return f2;case xWe:return p2;case wWe:return h2;case _We:return m2}return t});var CWe=dl,bC=CW,TWe=TW,SWe=PHe,EWe=eWe,v2=CWe,y2=Ns,b2=xW,RWe=wW,PWe=1,x2="[object Arguments]",w2="[object Array]",Fm="[object Object]",OWe=Object.prototype,_2=OWe.hasOwnProperty;function MWe(e,t,r,n,i,o){var a=y2(e),s=y2(t),l=a?w2:v2(e),u=s?w2:v2(t);l=l==x2?Fm:l,u=u==x2?Fm:u;var d=l==Fm,p=u==Fm,h=l==u;if(h&&b2(e)){if(!b2(t))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new bC),a||RWe(e)?TWe(e,t,r,n,i,o):SWe(e,t,l,r,n,i,o);if(!(r&PWe)){var m=d&&_2.call(e,"__wrapped__"),g=p&&_2.call(t,"__wrapped__");if(m||g){var y=m?e.value():e,x=g?t.value():t;return o||(o=new bC),i(y,x,r,n,o)}}return h?(o||(o=new bC),EWe(e,t,r,n,i,o)):!1}var AWe=MWe,IWe=AWe,C2=sh;function EW(e,t,r,n,i){return e===t?!0:e==null||t==null||!C2(e)&&!C2(t)?e!==e&&t!==t:IWe(e,t,r,n,EW,i)}var RW=EW,$We=CW,DWe=RW,LWe=1,kWe=2;function NWe(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var l=s[0],u=e[l],d=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var p=new $We;if(n)var h=n(u,d,l,e,t,p);if(!(h===void 0?DWe(d,u,LWe|kWe,n,p):h))return!1}}return!0}var FWe=NWe,jWe=WP;function BWe(e){return e===e&&!jWe(e)}var PW=BWe,UWe=PW,qWe=XP;function HWe(e){for(var t=qWe(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,UWe(i)]}return t}var WWe=HWe;function zWe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var OW=zWe,VWe=FWe,GWe=WWe,KWe=OW;function XWe(e){var t=GWe(e);return t.length==1&&t[0][2]?KWe(t[0][0],t[0][1]):function(r){return r===e||VWe(r,e,t)}}var YWe=XWe,ZWe=pW,JWe=v1;function QWe(e,t){t=ZWe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JWe(t[r++])];return r&&r==n?e:void 0}var MW=QWe,e4e=MW;function t4e(e,t,r){var n=e==null?void 0:e4e(e,t);return n===void 0?r:n}var r4e=t4e;function n4e(e,t){return e!=null&&t in Object(e)}var i4e=n4e,o4e=i4e,a4e=vW;function s4e(e,t){return e!=null&&a4e(e,t,o4e)}var l4e=s4e,u4e=RW,c4e=r4e,d4e=l4e,f4e=HP,p4e=PW,h4e=OW,m4e=v1,g4e=1,v4e=2;function y4e(e,t){return f4e(e)&&p4e(t)?h4e(m4e(e),t):function(r){var n=c4e(r,e);return n===void 0&&n===t?d4e(r,e):u4e(t,n,g4e|v4e)}}var b4e=y4e;function x4e(e){return e}var w4e=x4e;function _4e(e){return function(t){return t==null?void 0:t[e]}}var C4e=_4e,T4e=MW;function S4e(e){return function(t){return T4e(t,e)}}var E4e=S4e,R4e=C4e,P4e=E4e,O4e=HP,M4e=v1;function A4e(e){return O4e(e)?R4e(M4e(e)):P4e(e)}var I4e=A4e,$4e=YWe,D4e=b4e,L4e=w4e,k4e=Ns,N4e=I4e;function F4e(e){return typeof e=="function"?e:e==null?L4e:typeof e=="object"?k4e(e)?D4e(e[0],e[1]):$4e(e):N4e(e)}var AW=F4e,j4e=bW,B4e=_W,U4e=AW;function q4e(e,t){var r={};return t=U4e(t),B4e(e,function(n,i,o){j4e(r,i,t(n,i,o))}),r}var H4e=q4e;const IW=gi(H4e);function su(e){this._maxSize=e,this.clear()}su.prototype.clear=function(){this._size=0,this._values=Object.create(null)};su.prototype.get=function(e){return this._values[e]};su.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var W4e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,$W=/^\d+$/,z4e=/^\d/,V4e=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,G4e=/^\s*(['"]?)(.*?)(\1)\s*$/,YP=512,T2=new su(YP),S2=new su(YP),E2=new su(YP),y1={Cache:su,split:aE,normalizePath:xC,setter:function(e){var t=xC(e);return S2.get(e)||S2.set(e,function(n,i){for(var o=0,a=t.length,s=n;o<a-1;){var l=t[o];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;s=s[t[o++]]}s[t[o]]=i})},getter:function(e,t){var r=xC(e);return E2.get(e)||E2.set(e,function(i){for(var o=0,a=r.length;o<a;)if(i!=null||!t)i=i[r[o++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(ZP(r)||$W.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){K4e(Array.isArray(e)?e:aE(e),t,r)}};function xC(e){return T2.get(e)||T2.set(e,aE(e).map(function(t){return t.replace(G4e,"$2")}))}function aE(e){return e.match(W4e)||[""]}function K4e(e,t,r){var n=e.length,i,o,a,s;for(o=0;o<n;o++)i=e[o],i&&(Z4e(i)&&(i='"'+i+'"'),s=ZP(i),a=!s&&/^\d+$/.test(i),t.call(r,i,s,a,o,e))}function ZP(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function X4e(e){return e.match(z4e)&&!e.match($W)}function Y4e(e){return V4e.test(e)}function Z4e(e){return!ZP(e)&&(X4e(e)||Y4e(e))}const jm={context:"$",value:"."};function J4e(e,t){return new _a(e,t)}class _a{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===jm.context,this.isValue=this.key[0]===jm.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?jm.context:this.isValue?jm.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&y1.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}_a.prototype.__isYupRef=!0;function qv(){return qv=Object.assign||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},qv.apply(this,arguments)}function Q4e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Bm(e){function t(r,n){let{value:i,path:o="",label:a,options:s,originalValue:l,sync:u}=r,d=Q4e(r,["value","path","label","options","originalValue","sync"]);const{name:p,test:h,params:m,message:g}=e;let{parent:y,context:x}=s;function b(C){return _a.isRef(C)?C.getValue(i,y,x):C}function S(C={}){const T=IW(qv({value:i,originalValue:l,label:a,path:C.path||o},m,C.params),b),M=new Ln(Ln.formatError(C.message||g,T),i,T.path,C.type||p);return M.params=T,M}let w=qv({path:o,parent:y,type:p,createError:S,resolve:b,options:s,originalValue:l},d);if(!u){try{Promise.resolve(h.call(w,i,w)).then(C=>{Ln.isError(C)?n(C):C?n(null,C):n(S())}).catch(n)}catch(C){n(C)}return}let _;try{var O;if(_=h.call(w,i,w),typeof((O=_)==null?void 0:O.then)=="function")throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(C){n(C);return}Ln.isError(_)?n(_):_?n(null,_):n(S())}return t.OPTIONS=e,t}let eze=e=>e.substr(0,e.length-1).substr(1);function DW(e,t,r,n=r){let i,o,a;return t?(y1.forEach(t,(s,l,u)=>{let d=l?eze(s):s;if(e=e.resolve({context:n,parent:i,value:r}),e.innerType){let p=u?parseInt(d,10):0;if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=e.innerType}if(!u){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=r,r=r&&r[d],e=e.fields[d]}o=d,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}const tze=(e,t,r,n)=>DW(e,t,r,n).schema;class Hv{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const r of this.list)t.push(r);for(const[,r]of this.refs)t.push(r.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((r,n)=>r.concat(_a.isRef(n)?t(n):n),[])}add(t){_a.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){_a.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new Hv;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,r){const n=this.clone();return t.list.forEach(i=>n.add(i)),t.refs.forEach(i=>n.add(i)),r.list.forEach(i=>n.delete(i)),r.refs.forEach(i=>n.delete(i)),n}}function Oi(){return Oi=Object.assign||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},Oi.apply(this,arguments)}class un{constructor(t){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new Hv,this._blacklist=new Hv,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(cl.notType)}),this.type=(t==null?void 0:t.type)||"mixed",this.spec=Oi({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},t==null?void 0:t.spec)}get _type(){return this.type}_typeCheck(t){return!0}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeError=this._typeError,r._whitelistError=this._whitelistError,r._blacklistError=this._blacklistError,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.exclusiveTests=Oi({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=YS(Oi({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Oi({},r.spec,n.spec);return n.spec=i,n._typeError||(n._typeError=r._typeError),n._whitelistError||(n._whitelistError=r._whitelistError),n._blacklistError||(n._blacklistError=r._blacklistError),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return this.spec.nullable&&t===null?!0:this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,o)=>o.resolve(i,t),r),r=r.resolve(t)}return r}cast(t,r={}){let n=this.resolve(Oi({value:t},r)),i=n._cast(t,r);if(t!==void 0&&r.assert!==!1&&n.isType(i)!==!0){let o=Mc(t),a=Mc(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}".
740
+
741
+ attempted value: ${o}
742
+ `+(a!==o?`result of cast: ${a}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault()),n}_validate(t,r={},n){let{sync:i,path:o,from:a=[],originalValue:s=t,strict:l=this.spec.strict,abortEarly:u=this.spec.abortEarly}=r,d=t;l||(d=this._cast(d,Oi({assert:!1},r)));let p={value:d,path:o,options:r,originalValue:s,schema:this,label:this.spec.label,sync:i,from:a},h=[];this._typeError&&h.push(this._typeError);let m=[];this._whitelistError&&m.push(this._whitelistError),this._blacklistError&&m.push(this._blacklistError),Fv({args:p,value:d,path:o,tests:h,endEarly:u},g=>{if(g)return void n(g,d);Fv({tests:this.tests.concat(m),args:p,path:o,sync:i,value:d,endEarly:u},n)})}validate(t,r,n){let i=this.resolve(Oi({},r,{value:t}));return typeof n=="function"?i._validate(t,r,n):new Promise((o,a)=>i._validate(t,r,(s,l)=>{s?a(s):o(l)}))}validateSync(t,r){let n=this.resolve(Oi({},r,{value:t})),i;return n._validate(t,Oi({},r,{sync:!0}),(o,a)=>{if(o)throw o;i=a}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Ln.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Ln.isError(n))return!1;throw n}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):YS(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){let r=this.clone();return r.spec.strict=t,r}_isPresent(t){return t!=null}defined(t=cl.defined){return this.test({message:t,name:"defined",exclusive:!0,test(r){return r!==void 0}})}required(t=cl.required){return this.clone({presence:"required"}).withMutation(r=>r.test({message:t,name:"required",exclusive:!0,test(n){return this.schema._isPresent(n)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t}nullable(t=!0){return this.clone({nullable:t!==!1})}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=cl.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=Bm(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=yW(t).map(o=>new _a(o));return i.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(new j3e(i,r)),n}typeError(t){let r=this.clone();return r._typeError=Bm({message:t,name:"typeError",test(n){return n!==void 0&&!this.schema.isType(n)?this.createError({params:{type:this.schema._type}}):!0}}),r}oneOf(t,r=cl.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n._whitelistError=Bm({message:r,name:"oneOf",test(i){if(i===void 0)return!0;let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:o.toArray().join(", "),resolved:a}})}}),n}notOneOf(t,r=cl.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n._blacklistError=Bm({message:r,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:o.toArray().join(", "),resolved:a}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(){const t=this.clone(),{label:r,meta:n}=t.spec;return{meta:n,label:r,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(o=>({name:o.OPTIONS.name,params:o.OPTIONS.params})).filter((o,a,s)=>s.findIndex(l=>l.name===o.name)===a)}}}un.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])un.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:a}=DW(this,t,r,n.context);return a[e](i&&i[o],Oi({},n,{parent:i,path:t}))};for(const e of["equals","is"])un.prototype[e]=un.prototype.oneOf;for(const e of["not","nope"])un.prototype[e]=un.prototype.notOneOf;un.prototype.optional=un.prototype.notRequired;const JP=un;function LW(){return new JP}LW.prototype=JP.prototype;const yr=e=>e==null;function sE(){return new QP}class QP extends un{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(t){if(!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}_typeCheck(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}isTrue(t=JS.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return yr(r)||r===!0}})}isFalse(t=JS.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return yr(r)||r===!1}})}}sE.prototype=QP.prototype;let rze=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,nze=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ize=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,oze=e=>yr(e)||e===e.trim(),aze={}.toString();function eO(){return new tO}class tO extends un{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(t){if(this.isType(t)||Array.isArray(t))return t;const r=t!=null&&t.toString?t.toString():t;return r===aze?t:r})})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,r=ro.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},test(n){return yr(n)||n.length===this.resolve(t)}})}min(t,r=ro.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(n){return yr(n)||n.length>=this.resolve(t)}})}max(t,r=ro.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},test(n){return yr(n)||n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:o}=r:i=r),this.test({name:o||"matches",message:i||ro.matches,params:{regex:t},test:a=>yr(a)||a===""&&n||a.search(t)!==-1})}email(t=ro.email){return this.matches(rze,{name:"email",message:t,excludeEmptyString:!0})}url(t=ro.url){return this.matches(nze,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ro.uuid){return this.matches(ize,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ro.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:oze})}lowercase(t=ro.lowercase){return this.transform(r=>yr(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:r=>yr(r)||r===r.toLowerCase()})}uppercase(t=ro.uppercase){return this.transform(r=>yr(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:r=>yr(r)||r===r.toUpperCase()})}}eO.prototype=tO.prototype;let sze=e=>e!=+e;function kW(){return new rO}class rO extends un{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(t){let r=t;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return this.isType(r)?r:parseFloat(r)})})}_typeCheck(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!sze(t)}min(t,r=rs.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(n){return yr(n)||n>=this.resolve(t)}})}max(t,r=rs.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},test(n){return yr(n)||n<=this.resolve(t)}})}lessThan(t,r=rs.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},test(n){return yr(n)||n<this.resolve(t)}})}moreThan(t,r=rs.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},test(n){return yr(n)||n>this.resolve(t)}})}positive(t=rs.positive){return this.moreThan(0,t)}negative(t=rs.negative){return this.lessThan(0,t)}integer(t=rs.integer){return this.test({name:"integer",message:t,test:r=>yr(r)||Number.isInteger(r)})}truncate(){return this.transform(t=>yr(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>yr(i)?i:Math[t](i))}}kW.prototype=rO.prototype;var lze=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function uze(e){var t=[1,4,5,6,7,10,11],r=0,n,i;if(i=lze.exec(e)){for(var o=0,a;a=t[o];++o)i[a]=+i[a]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?n=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(r=i[10]*60+i[11],i[9]==="+"&&(r=0-r)),n=Date.UTC(i[1],i[2],i[3],i[4],i[5]+r,i[6],i[7]))}else n=Date.parse?Date.parse(e):NaN;return n}let nO=new Date(""),cze=e=>Object.prototype.toString.call(e)==="[object Date]";function iO(){return new b1}class b1 extends un{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=uze(t),isNaN(t)?nO:new Date(t))})})}_typeCheck(t){return cze(t)&&!isNaN(t.getTime())}prepareParam(t,r){let n;if(_a.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=ZS.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(i){return yr(i)||i>=this.resolve(n)}})}max(t,r=ZS.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},test(i){return yr(i)||i<=this.resolve(n)}})}}b1.INVALID_DATE=nO;iO.prototype=b1.prototype;iO.INVALID_DATE=nO;function dze(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}var fze=dze;function pze(e){return function(t){return e==null?void 0:e[t]}}var hze=pze,mze=hze,gze={À:"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"},vze=mze(gze),yze=vze,bze=yze,xze=lh,wze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_ze="\\u0300-\\u036f",Cze="\\ufe20-\\ufe2f",Tze="\\u20d0-\\u20ff",Sze=_ze+Cze+Tze,Eze="["+Sze+"]",Rze=RegExp(Eze,"g");function Pze(e){return e=xze(e),e&&e.replace(wze,bze).replace(Rze,"")}var Oze=Pze,Mze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Aze(e){return e.match(Mze)||[]}var Ize=Aze,$ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Dze(e){return $ze.test(e)}var Lze=Dze,NW="\\ud800-\\udfff",kze="\\u0300-\\u036f",Nze="\\ufe20-\\ufe2f",Fze="\\u20d0-\\u20ff",jze=kze+Nze+Fze,FW="\\u2700-\\u27bf",jW="a-z\\xdf-\\xf6\\xf8-\\xff",Bze="\\xac\\xb1\\xd7\\xf7",Uze="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qze="\\u2000-\\u206f",Hze=" \\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",BW="A-Z\\xc0-\\xd6\\xd8-\\xde",Wze="\\ufe0e\\ufe0f",UW=Bze+Uze+qze+Hze,qW="['’]",R2="["+UW+"]",zze="["+jze+"]",HW="\\d+",Vze="["+FW+"]",WW="["+jW+"]",zW="[^"+NW+UW+HW+FW+jW+BW+"]",Gze="\\ud83c[\\udffb-\\udfff]",Kze="(?:"+zze+"|"+Gze+")",Xze="[^"+NW+"]",VW="(?:\\ud83c[\\udde6-\\uddff]){2}",GW="[\\ud800-\\udbff][\\udc00-\\udfff]",Zu="["+BW+"]",Yze="\\u200d",P2="(?:"+WW+"|"+zW+")",Zze="(?:"+Zu+"|"+zW+")",O2="(?:"+qW+"(?:d|ll|m|re|s|t|ve))?",M2="(?:"+qW+"(?:D|LL|M|RE|S|T|VE))?",KW=Kze+"?",XW="["+Wze+"]?",Jze="(?:"+Yze+"(?:"+[Xze,VW,GW].join("|")+")"+XW+KW+")*",Qze="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e6e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",t6e=XW+KW+Jze,r6e="(?:"+[Vze,VW,GW].join("|")+")"+t6e,n6e=RegExp([Zu+"?"+WW+"+"+O2+"(?="+[R2,Zu,"$"].join("|")+")",Zze+"+"+M2+"(?="+[R2,Zu+P2,"$"].join("|")+")",Zu+"?"+P2+"+"+O2,Zu+"+"+M2,e6e,Qze,HW,r6e].join("|"),"g");function i6e(e){return e.match(n6e)||[]}var o6e=i6e,a6e=Ize,s6e=Lze,l6e=lh,u6e=o6e;function c6e(e,t,r){return e=l6e(e),t=r?void 0:t,t===void 0?s6e(e)?u6e(e):a6e(e):e.match(t)||[]}var d6e=c6e,f6e=fze,p6e=Oze,h6e=d6e,m6e="['’]",g6e=RegExp(m6e,"g");function v6e(e){return function(t){return f6e(h6e(p6e(t).replace(g6e,"")),e,"")}}var YW=v6e,y6e=YW,b6e=y6e(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),x6e=b6e;const A2=gi(x6e);function w6e(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}var _6e=w6e,C6e=_6e;function T6e(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:C6e(e,t,r)}var S6e=T6e,E6e="\\ud800-\\udfff",R6e="\\u0300-\\u036f",P6e="\\ufe20-\\ufe2f",O6e="\\u20d0-\\u20ff",M6e=R6e+P6e+O6e,A6e="\\ufe0e\\ufe0f",I6e="\\u200d",$6e=RegExp("["+I6e+E6e+M6e+A6e+"]");function D6e(e){return $6e.test(e)}var ZW=D6e;function L6e(e){return e.split("")}var k6e=L6e,JW="\\ud800-\\udfff",N6e="\\u0300-\\u036f",F6e="\\ufe20-\\ufe2f",j6e="\\u20d0-\\u20ff",B6e=N6e+F6e+j6e,U6e="\\ufe0e\\ufe0f",q6e="["+JW+"]",lE="["+B6e+"]",uE="\\ud83c[\\udffb-\\udfff]",H6e="(?:"+lE+"|"+uE+")",QW="[^"+JW+"]",e4="(?:\\ud83c[\\udde6-\\uddff]){2}",t4="[\\ud800-\\udbff][\\udc00-\\udfff]",W6e="\\u200d",r4=H6e+"?",n4="["+U6e+"]?",z6e="(?:"+W6e+"(?:"+[QW,e4,t4].join("|")+")"+n4+r4+")*",V6e=n4+r4+z6e,G6e="(?:"+[QW+lE+"?",lE,e4,t4,q6e].join("|")+")",K6e=RegExp(uE+"(?="+uE+")|"+G6e+V6e,"g");function X6e(e){return e.match(K6e)||[]}var Y6e=X6e,Z6e=k6e,J6e=ZW,Q6e=Y6e;function eVe(e){return J6e(e)?Q6e(e):Z6e(e)}var tVe=eVe,rVe=S6e,nVe=ZW,iVe=tVe,oVe=lh;function aVe(e){return function(t){t=oVe(t);var r=nVe(t)?iVe(t):void 0,n=r?r[0]:t.charAt(0),i=r?rVe(r,1).join(""):t.slice(1);return n[e]()+i}}var sVe=aVe,lVe=sVe,uVe=lVe("toUpperCase"),cVe=uVe,dVe=lh,fVe=cVe;function pVe(e){return fVe(dVe(e).toLowerCase())}var hVe=pVe,mVe=hVe,gVe=YW,vVe=gVe(function(e,t,r){return t=t.toLowerCase(),e+(r?mVe(t):t)}),yVe=vVe;const bVe=gi(yVe);var xVe=bW,wVe=_W,_Ve=AW;function CVe(e,t){var r={};return t=_Ve(t),wVe(e,function(n,i,o){xVe(r,t(n,i,o),n)}),r}var TVe=CVe;const SVe=gi(TVe);var oO={exports:{}};oO.exports=function(e){return i4(EVe(e),e)};oO.exports.array=i4;function i4(e,t){var r=e.length,n=new Array(r),i={},o=r,a=RVe(t),s=PVe(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return n;function l(u,d,p){if(p.has(u)){var h;try{h=", node was:"+JSON.stringify(u)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[d]){i[d]=!0;var m=a.get(u)||new Set;if(m=Array.from(m),d=m.length){p.add(u);do{var g=m[--d];l(g,s.get(g),p)}while(d);p.delete(u)}n[--r]=u}}}function EVe(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}function RVe(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function PVe(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var OVe=oO.exports;const MVe=gi(OVe);function AVe(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=y1.split(a)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const a in e)if(Nv(e,a)){let s=e[a];n.add(a),_a.isRef(s)&&s.isSibling?o(s.path,a):id(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return MVe.array(Array.from(n),r).reverse()}function I2(e,t){let r=1/0;return e.some((n,i)=>{var o;if(((o=t.path)==null?void 0:o.indexOf(n))!==-1)return r=i,!0}),r}function o4(e){return(t,r)=>I2(e,t)-I2(e,r)}function Qu(){return Qu=Object.assign||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},Qu.apply(this,arguments)}let $2=e=>Object.prototype.toString.call(e)==="[object Object]";function IVe(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const $Ve=o4([]);class aO extends un{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=$Ve,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{n=null}return this.isType(n)?n:null}),t&&this.shape(t)})}_typeCheck(t){return $2(t)||typeof t=="function"}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let o=this.fields,a=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=this._nodes.concat(Object.keys(i).filter(p=>this._nodes.indexOf(p)===-1)),l={},u=Qu({},r,{parent:l,__validating:r.__validating||!1}),d=!1;for(const p of s){let h=o[p],m=Nv(i,p);if(h){let g,y=i[p];u.path=(r.path?`${r.path}.`:"")+p,h=h.resolve({value:y,context:r.context,parent:l});let x="spec"in h?h.spec:void 0,b=x==null?void 0:x.strict;if(x!=null&&x.strip){d=d||p in i;continue}g=!r.__validating||!b?h.cast(i[p],u):i[p],g!==void 0&&(l[p]=g)}else m&&!a&&(l[p]=i[p]);l[p]!==i[p]&&(d=!0)}return d?l:i}_validate(t,r={},n){let i=[],{sync:o,from:a=[],originalValue:s=t,abortEarly:l=this.spec.abortEarly,recursive:u=this.spec.recursive}=r;a=[{schema:this,value:s},...a],r.__validating=!0,r.originalValue=s,r.from=a,super._validate(t,r,(d,p)=>{if(d){if(!Ln.isError(d)||l)return void n(d,p);i.push(d)}if(!u||!$2(p)){n(i[0]||null,p);return}s=s||p;let h=this._nodes.map(m=>(g,y)=>{let x=m.indexOf(".")===-1?(r.path?`${r.path}.`:"")+m:`${r.path||""}["${m}"]`,b=this.fields[m];if(b&&"validate"in b){b.validate(p[m],Qu({},r,{path:x,from:a,strict:!0,parent:p,originalValue:s[m]}),y);return}y(null)});Fv({tests:h,value:p,errors:i,endEarly:l,sort:this._sortErrors,path:r.path},n)})}clone(t){const r=super.clone(t);return r.fields=Qu({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,o]of Object.entries(this.fields)){const a=n[i];a===void 0?n[i]=o:a instanceof un&&o instanceof un&&(n[i]=o.concat(a))}return r.withMutation(()=>r.shape(n,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(r=>{const n=this.fields[r];t[r]="default"in n?n.getDefault():void 0}),t}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(t,r=[]){let n=this.clone(),i=Object.assign(n.fields,t);return n.fields=i,n._sortErrors=o4(Object.keys(i)),r.length&&(Array.isArray(r[0])||(r=[r]),n._excludedEdges=[...n._excludedEdges,...r]),n._nodes=AVe(i,n._excludedEdges),n}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.clone().withMutation(n=>(n.fields={},n.shape(r)))}omit(t){const r=this.clone(),n=r.fields;r.fields={};for(const i of t)delete n[i];return r.withMutation(()=>r.shape(n))}from(t,r,n){let i=y1.getter(t,!0);return this.transform(o=>{if(o==null)return o;let a=o;return Nv(o,t)&&(a=Qu({},o),n||delete a[t],a[r]=i(o)),a})}noUnknown(t=!0,r=QS.noUnknown){typeof t=="string"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const o=IVe(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=QS.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>r&&SVe(r,(n,i)=>t(i)))}camelCase(){return this.transformKeys(bVe)}snakeCase(){return this.transformKeys(A2)}constantCase(){return this.transformKeys(t=>A2(t).toUpperCase())}describe(){let t=super.describe();return t.fields=IW(this.fields,r=>r.describe()),t}}function a4(e){return new aO(e)}a4.prototype=aO.prototype;function Wv(){return Wv=Object.assign||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},Wv.apply(this,arguments)}function s4(e){return new sO(e)}class sO extends un{constructor(t){super({type:"array"}),this.innerType=void 0,this.innerType=t,this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null})})}_typeCheck(t){return Array.isArray(t)}get _subType(){return this.innerType}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const o=n.map((a,s)=>{const l=this.innerType.cast(a,Wv({},r,{path:`${r.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:n}_validate(t,r={},n){var i,o;let a=[];r.sync;let s=r.path,l=this.innerType,u=(i=r.abortEarly)!=null?i:this.spec.abortEarly,d=(o=r.recursive)!=null?o:this.spec.recursive,p=r.originalValue!=null?r.originalValue:t;super._validate(t,r,(h,m)=>{if(h){if(!Ln.isError(h)||u)return void n(h,m);a.push(h)}if(!d||!l||!this._typeCheck(m)){n(a[0]||null,m);return}p=p||m;let g=new Array(m.length);for(let y=0;y<m.length;y++){let x=m[y],b=`${r.path||""}[${y}]`,S=Wv({},r,{path:b,strict:!0,parent:m,index:y,originalValue:p[y]});g[y]=(w,_)=>l.validate(x,S,_)}Fv({path:s,value:m,errors:a,endEarly:u,tests:g},n)})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!id(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Mc(t));return r.innerType=t,r}length(t,r=Eg.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},test(n){return yr(n)||n.length===this.resolve(t)}})}min(t,r){return r=r||Eg.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(n){return yr(n)||n.length>=this.resolve(t)}})}max(t,r){return r=r||Eg.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},test(n){return yr(n)||n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,o)=>!t(n,i,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(){let t=super.describe();return this.innerType&&(t.innerType=this.innerType.describe()),t}nullable(t=!0){return super.nullable(t)}defined(){return super.defined()}required(t){return super.required(t)}}s4.prototype=sO.prototype;function DVe(e){return new LVe(e)}class LVe{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(r,n={})=>{let i=this.builder(r,n);if(!id(i))throw new TypeError("lazy() functions must return a valid schema");return i.resolve(n)},this.builder=t}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}validate(t,r,n){return this._resolve(t,r).validate(t,r,n)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}describe(){return null}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}}function l4(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{rje[t][r]=e[t][r]})})}function u4(e,t,r){if(!e||!id(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const D2=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:sO,BaseSchema:un,BooleanSchema:QP,DateSchema:b1,MixedSchema:JP,NumberSchema:rO,ObjectSchema:aO,StringSchema:tO,ValidationError:Ln,addMethod:u4,array:s4,bool:sE,boolean:sE,date:iO,isSchema:id,lazy:DVe,mixed:LW,number:kW,object:a4,reach:tze,ref:J4e,setLocale:l4,string:eO},Symbol.toStringTag,{value:"Module"})),kVe={mixed:{required:"validation:required"},string:{email:"validation:invalid_email",max:"validation:maximum_of_characters"}};l4(kVe);const NVe=/^[^\s].*[^\s]$/i;u4(eO,"noSurroundingSpaces",function(){return this.test("is-string-trimmed","validation:no_surrounding_spaces",e=>!e||Vr.isEmpty(e)?!0:e.length<3?/^[\S]*$/i.test(e):NVe.test(e))});const FVe=D2.object({alertThreshold:D2.number().required()}),jVe=({handleClose:e,onUpdate:t,alert:r,t:n})=>{const{enqueueSnackbar:i}=XFe(),o=I$e(),a=k$e(),s=D$e(),l=()=>{s.mutate({alertType:Vn.CUSTOM,email:w.emailEnabledSubscription,sms:w.smsEnabledSubscription,enrollment:r==null?void 0:r.number,threshold:+w.alertThreshold},{onSuccess:g,onError:x})},u=()=>{o.mutate({alertId:r==null?void 0:r.number,sms:w.smsEnabledSubscription,email:w.emailEnabledSubscription,threshold:+w.alertThreshold},{onSuccess:d,onError:x})},d=()=>{a.mutate({alertId:r.number,alertType:r.alertType,sms:w.smsEnabledSubscription,email:w.emailEnabledSubscription,threshold:+w.alertThreshold,enrollment:r.number},{onSuccess:y,onError:x})},p=()=>{w.alertThreshold!==r.threshold?l():d()},h=()=>{r.alertType===Vn.CRITICAL?p():u()},m=(O,C=void 0)=>{const T=new CustomEvent("add-toast",{detail:{id:"custom-alerts-toast",content:YK`
743
+ <style>
744
+ .custom-alerts-toast {
745
+ white-space: nowrap;
746
+ }
747
+ </style>
748
+ <ix-message-toast
749
+ class="custom-alerts-toast"
750
+ toastId="custom-alerts-toast"
751
+ .hasClose=${!1}
752
+ type=${ZK(C)}
753
+ >
754
+ ${O}
755
+ </ix-message-toast>
756
+ `,autoClose:5e3,vertical:"bottom",horizontal:"center",animated:!0,durationOut:333,above:!1}});window.dispatchEvent(T)},g=()=>{i(n("customize-alert-dialog.success-custom-created"),{variant:"success"}),m("Custom alert created"),t&&t(),e()},y=()=>{i(mLe(n,r.alertType),{variant:"success"}),m("Custom alert updated"),t&&t(),e()},x=O=>{const C=gLe(n,O==null?void 0:O.message);i(C,{variant:"error"}),m("An error occurred, please try again","error"),_(!1)},S=_Fe({initialValues:{emailEnabledSubscription:r==null?void 0:r.emailEnabledSubscription,smsEnabledSubscription:r==null?void 0:r.smsEnabledSubscription,alertThreshold:(r==null?void 0:r.threshold)||0},onSubmit:h,validationSchema:FVe}),{values:w,setSubmitting:_}=S;return{formik:S,handleSave:h,handleCreateSuccess:g,handleUpdateSuccess:y,handleError:x,createCustomAlert:l,saveCriticalAlert:p}},BVe=({handleClose:e,onUpdate:t,isOpen:r,alert:n})=>{const{t:i}=wr(["location"]),o=Ra(eb).querySelector("#dialogs"),{formik:a}=jVe({handleClose:e,onUpdate:t,alert:n,t:i}),{values:s,handleChange:l,handleSubmit:u,setFieldValue:d,isValid:p,isSubmitting:h,errors:m}=a,g=[{label:i("customize-alert-dialog.cancel-button"),mobileLabel:E.jsx(TP,{}),trigger:e},{label:i("customize-alert-dialog.save-button"),mobileLabel:i("create-button"),trigger:u,disabled:!p,loading:h}];return E.jsx(yFe,{value:a,children:E.jsxs($R,{container:o,title:i("customize-alert-dialog.title"),actions:g,open:r,children:[E.jsx(lae,{maxWidth:"512px",children:i("customize-alert-dialog.message")}),E.jsx(Ke,{variant:"body1",sx:{margin:"21px 0"},children:i("customize-alert-dialog.it-load-level")}),E.jsx(IR,{id:"alertThreshold",name:"alertThreshold",label:i("customize-alert-dialog.threshold"),value:s.alertThreshold,onChange:l,InputProps:{startAdornment:E.jsx(Ke,{variant:"body1",color:"rgba(9, 34, 65, 0.6)",marginRight:"8px",children:`${n.functionName} ${n.comparisonOperator}`})},inputProps:{sx:{flex:1}},error:!!m.alertThreshold}),E.jsxs(Mr,{sx:{display:"flex",alignItems:"center",marginTop:"20px"},children:[E.jsxs(Mr,{sx:{display:"flex",alignItems:"center"},children:[E.jsx(aT,{id:"emailEnabledSubscription",color:"primary",checked:s.emailEnabledSubscription,onChange:()=>{d("emailEnabledSubscription",!s.emailEnabledSubscription)}}),E.jsx(Ke,{variant:"body1",component:"label",htmlFor:"emailEnabledSubscription",noWrap:!0,children:i("customize-alert-dialog.email-alerts")})]}),E.jsxs(Mr,{sx:{display:"flex",alignItems:"center",marginLeft:"25px"},children:[E.jsx(aT,{id:"smsEnabledSubscription",color:"primary",checked:s.smsEnabledSubscription,onChange:()=>{d("smsEnabledSubscription",!s.smsEnabledSubscription)}}),E.jsx(Ke,{variant:"body1",component:"label",htmlFor:"smsEnabledSubscription",noWrap:!0,children:i("customize-alert-dialog.sms-alerts")})]})]}),E.jsx(Ke,{variant:"body2",maxWidth:"512px",fontSize:"12px",marginTop:"20px",children:i("customize-alert-dialog.bottom-message")})]})})},UVe=(e,t=1)=>{if(t>1&&(t=1),e.startsWith("#")){t=Math.floor(255*t);const r=e.split("#").pop(),n=e.substring(0,1),i=t>0?t.toString(16):"FF";return n+(i+r).toUpperCase()}return e.startsWith("rgb")?`rgba(${e.split(/\D/i).filter(Boolean).join(",")},${t})`:e},cE=(e,t)=>{const r=o=>parseInt(o,16),n=o=>parseInt(o+o,16);e=e.substring(1);const i=(o=255)=>t===void 0?o:t;if(e.length===3){const[o,a,s]=e.match(/\w/g).map(n);return`rgba(${o},${a},${s},${i()})`}if(e.length===4){const[o,a,s,l]=e.match(/\w/g).map(n);return`rgba(${a},${s},${l},${i(o/255)})`}if(e.length===6){const[o,a,s]=e.match(/\w{2}/g).map(r);return`rgba(${o},${a},${s},${i()})`}if(e.length===8){const[o,a,s,l]=e.match(/\w{2}/g).map(r);return`rgba(${a},${s},${l},${i(o/255)})`}return e},L2=(e,t=[])=>Object.entries(e).map(([r,n])=>`${Vr.kebabCase(r)}:${n}`).concat(t).join(";"),qVe=(e,t)=>{if(!e)return"transparent";const{ctx:r,chartArea:{height:n}}=e,i=cE(t,.25),o=cE(t,0),a=r==null?void 0:r.createLinearGradient(0,0,0,n);return a==null||a.addColorStop(0,i),a==null||a.addColorStop(1,o),a},HVe=(e,t,{options:r})=>!t||!t.length?[]:t.map(({trendData:n,deviceName:i},o)=>{let a=[];return n.forEach(({pointValue:s,utcPollDateTime:l})=>{const u=qi(l).getTime();a.push({x:u,y:Number(s)})}),a=a.sort((s,l)=>s.x-l.x),{label:i,data:a,hidden:o>0,pointBorderColor:e.palette.primary.light,pointRadius:3,animation:{duration:500,easing:"easeInOutCubic"},...r}}),WVe=(e,t)=>{const r=/\d{4}-\d{2}-\d{2}/;if(e){if(Lp(qi(e))&&r.test(String(e)))return e.search(/[a-z]/i)===-1?UDe(new Date(e),t,{timeZone:"UTC"}):hH(new Date(e),"UTC",t)}else return"-";return e},c4=({label:e,value:t})=>{const{dateTimeFormatPreferences:r,getTimeFormatString:n}=db(),i=n(!0),o=`${r.preferredDateFormat} ${i} (zzz)`;return E.jsxs(iLe,{children:[E.jsx(oLe,{variant:"body1","data-testid":`datapoint-label-${e}`,children:e}),E.jsx(sLe,{children:E.jsx(aLe,{"data-testid":`datapoint-value-${t}`,children:WVe(t,o)})})]})},zVe=({alert:e,t,translationKey:r,onUpdate:n})=>{const[i,o]=gU(),a=e.threshold?`${e.functionName} ${e.comparisonOperator} ${e.threshold}`:"",s={deviceName:e.functionName,threshold:a,liveValue:e.functionValue,timeStamp:e.alertTimestamp},l=Object.entries(s).map(d=>({key:d[0],value:d[1]})),u=()=>{o(),i(E.jsx(BVe,{alert:e,handleClose:o,onUpdate:n,isOpen:!0}))};return E.jsxs(CH,{"data-testid":"alert-definition",children:[E.jsxs(wH,{children:[E.jsx(_H,{variant:"h6","data-testid":`alert-title-${e.number}`,children:t(e.functionName)}),e.alertCategory&&E.jsx(Dv,{title:e.alertCategory})]}),E.jsx(TH,{children:l.map(({key:d,value:p})=>E.jsx(c4,{label:t(`${r}.${d}`),value:p},d))}),E.jsx(hLe,{alert:e,onClickCustomize:u})]})},VVe=({alert:e,t,translationKey:r,selectedAlert:n,alertInstanceClickHandler:i})=>{const o={deviceName:e.alertName,configurationItem:e.deviceName,functionValue:e.functionValue,alertTimeStamp:e.alertTimeStamp},a=Object.entries(o).map(s=>({key:s[0],value:s[1]}));return E.jsxs(CH,{$canBeClicked:!0,$selected:n===e.alertId,"data-testid":"alert-instance",onClick:()=>i==null?void 0:i(e.alertId),children:[E.jsxs(wH,{children:[E.jsx(_H,{variant:"h6","data-testid":`alert-title-${e.alertId}`,children:t(e.alertName)}),!!e.alertCategory&&E.jsx(Dv,{title:e.alertCategory})]}),E.jsx(TH,{children:a.map(({key:s,value:l})=>E.jsx(c4,{label:s==="functionValue"?t(`${r}.${s}`,{device:e.alertName}):t(`${r}.${s}`),value:l},s))})]})},GVe=(e,t,r,n,i)=>(o,a)=>{if(t){const{ddid:l,alertCategory:u}=o,d=`${l}-${Vr.kebabCase(u)}-${a}`;return E.jsx(zVe,{alert:o,t:e,translationKey:"alert-definition",onUpdate:n},d)}const{alertId:s}=o;return E.jsx(VVe,{alert:o,selectedAlert:r,t:e,translationKey:"alert-instance",alertInstanceClickHandler:i},s)},d4=({leasedSpaceName:e,alertType:t,alertCategory:r,title:n,isDefinitionsView:i,selectedAlertInstance:o,alertInstanceClickHandler:a})=>{const{t:s}=wr(["location"]),[l,u]=ot.useState(0),[d,p]=ot.useState(ts.DEVICE_NAME),[h,m]=ot.useState(10),[g,y]=ot.useState(0),x=rq.ASC,b={leasedSpaceName:e,order:x,sort:d,size:h,page:l,alertType:rLe(t),alertCategory:tLe(r)};It(()=>{u(0),y(0)},[t,r]);const S=[{id:ts.DEVICE_NAME,name:s(`alert-list.${ts.DEVICE_NAME}`)},{id:ts.FUNCTION_VALUE,name:s(`alert-list.${ts.FUNCTION_VALUE}`)},...i?[{id:ts.THRESHOLD,name:s(`alert-list.${ts.THRESHOLD}`)}]:[]],w=Jr(()=>i?co.DEFINITIONS:t===PP?co.HISTORY:co.INSTANCES,[t,i]),_=Jr(()=>vH(w),[w]),{data:O,isFetching:C,isError:T,refetch:M}=_(b,{onSuccess(U){y((U==null?void 0:U.totalElements)||0)}}),D=C?!1:(O==null?void 0:O.totalElements)<=0,$=U=>{u(0),p(U.target.value)},N=(U,F)=>{u(F)},B=U=>{u(0),m(parseInt(U.target.value,10))},q=GVe(s,i,o,M,a);return E.jsxs(E.Fragment,{children:[E.jsxs(eLe,{children:[E.jsx(Ke,{variant:"h6",children:n}),E.jsxs(Mr,{display:"flex",alignItems:"center",children:[E.jsx(Ke,{variant:"body1",marginRight:"8px",children:s("alert-list.sort-by")}),E.jsx(pce,{name:"sort",fullWidth:!1,value:d,options:S,onChange:$,inputProps:{sx:{padding:"2px 8px",fontWeight:700}},$customBorder:"1px solid rgba(9, 34, 65, 0.12)"})]})]}),E.jsxs(QDe,{"data-testid":"alert-list-container",children:[C&&E.jsx(Qy,{size:25}),(T||D)&&E.jsx(LR,{children:E.jsx(Ke,{variant:"body1",children:s("no-dcim-data-available")})}),!T&&!C&&(O==null?void 0:O.content.map(q))]}),E.jsx(kue,{component:"div",count:g,page:l||0,onPageChange:N,rowsPerPage:h,onRowsPerPageChange:B,labelRowsPerPage:s("alert-list.pagination-label")})]})},KVe=W(Mr)`
757
+ display: flex;
758
+ flex-direction: column;
759
+ gap: 42px;
760
+
761
+ ${({theme:e})=>e.breakpoints.down("md")} {
762
+ gap: 26px;
763
+ }
764
+ `,XVe=()=>{const{t:e}=wr("location"),t=window.location.search.slice(1),r=ab.parse(t),{assetName:n,leasedSpaceName:i,sitecode:o,type:a}=r,[s,l]=qr({category:Pc,type:a||Pc}),[u,d]=qr(!1),[p,h]=qr(""),m=Ts(sv.breakpoints.down("lg")),g=(b,S)=>{h(""),l(w=>({...w,[b]:S}))},y=b=>{h(b),m&&d(!0)},x=Jr(()=>s.type===PP,[s]);return E.jsx(WR,{children:E.jsxs(WU,{children:[E.jsx(VR,{assetName:n,sitecode:o}),E.jsxs(zR,{container:!0,spacing:{xs:2.5,md:3},children:[E.jsx(zr,{item:!0,xs:12,sm:4,md:3,lg:2,children:E.jsxs(KVe,{children:[E.jsx(OP,{leasedSpaceName:i,filters:s,handleFilters:g}),E.jsx(xH,{leasedSpaceName:i,filters:s,handleFilters:g})]})}),E.jsx(zr,{item:!0,xs:12,sm:8,md:9,lg:5,children:E.jsx(d4,{alertCategory:s.category,alertInstanceClickHandler:y,alertType:s.type,leasedSpaceName:i,title:e("alerts.details.title"),selectedAlertInstance:p})}),E.jsx(zr,{item:!0,xs:12,lg:5,children:!!p&&E.jsx(E.Fragment,{children:m?E.jsx(KDe,{alertInstanceId:p,isOpen:u,handleClose:()=>d(!1),isHistorical:x}):E.jsx(gH,{alertInstanceId:p,isHistorical:x})})})]})]})})},x1="location-changed",YVe=()=>(It(()=>{window.dispatchEvent(new CustomEvent(x1,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),E.jsx(XVe,{}));var uo=(e=>(e.Day="day",e.Hour="hour",e.FifteenMinutes="15 minute",e.FiveMinutes="5 minute",e.Minute="minute",e))(uo||{});const ZVe=W("div")`
765
+ padding-top: 1rem;
766
+ width: 100%;
767
+ `;/*!
768
+ * @kurkle/color v0.3.4
769
+ * https://github.com/kurkle/color#readme
770
+ * (c) 2024 Jukka Kurkela
771
+ * Released under the MIT License
772
+ */function uh(e){return e+.5|0}const fs=(e,t,r)=>Math.max(Math.min(e,r),t);function ff(e){return fs(uh(e*2.55),0,255)}function _s(e){return fs(uh(e*255),0,255)}function da(e){return fs(uh(e/2.55)/100,0,1)}function k2(e){return fs(uh(e*100),0,100)}const Pi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},dE=[..."0123456789ABCDEF"],JVe=e=>dE[e&15],QVe=e=>dE[(e&240)>>4]+dE[e&15],Um=e=>(e&240)>>4===(e&15),e8e=e=>Um(e.r)&&Um(e.g)&&Um(e.b)&&Um(e.a);function t8e(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&Pi[e[1]]*17,g:255&Pi[e[2]]*17,b:255&Pi[e[3]]*17,a:t===5?Pi[e[4]]*17:255}:(t===7||t===9)&&(r={r:Pi[e[1]]<<4|Pi[e[2]],g:Pi[e[3]]<<4|Pi[e[4]],b:Pi[e[5]]<<4|Pi[e[6]],a:t===9?Pi[e[7]]<<4|Pi[e[8]]:255})),r}const r8e=(e,t)=>e<255?t(e):"";function n8e(e){var t=e8e(e)?JVe:QVe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+r8e(e.a,t):void 0}const i8e=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function f4(e,t,r){const n=t*Math.min(r,1-r),i=(o,a=(o+e/30)%12)=>r-n*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function o8e(e,t,r){const n=(i,o=(i+e/60)%6)=>r-r*t*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function a8e(e,t,r){const n=f4(e,1,.5);let i;for(t+r>1&&(i=1/(t+r),t*=i,r*=i),i=0;i<3;i++)n[i]*=1-t-r,n[i]+=t;return n}function s8e(e,t,r,n,i){return e===i?(t-r)/n+(t<r?6:0):t===i?(r-e)/n+2:(e-t)/n+4}function lO(e){const r=e.r/255,n=e.g/255,i=e.b/255,o=Math.max(r,n,i),a=Math.min(r,n,i),s=(o+a)/2;let l,u,d;return o!==a&&(d=o-a,u=s>.5?d/(2-o-a):d/(o+a),l=s8e(r,n,i,d,o),l=l*60+.5),[l|0,u||0,s]}function uO(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(_s)}function cO(e,t,r){return uO(f4,e,t,r)}function l8e(e,t,r){return uO(a8e,e,t,r)}function u8e(e,t,r){return uO(o8e,e,t,r)}function p4(e){return(e%360+360)%360}function c8e(e){const t=i8e.exec(e);let r=255,n;if(!t)return;t[5]!==n&&(r=t[6]?ff(+t[5]):_s(+t[5]));const i=p4(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?n=l8e(i,o,a):t[1]==="hsv"?n=u8e(i,o,a):n=cO(i,o,a),{r:n[0],g:n[1],b:n[2],a:r}}function d8e(e,t){var r=lO(e);r[0]=p4(r[0]+t),r=cO(r),e.r=r[0],e.g=r[1],e.b=r[2]}function f8e(e){if(!e)return;const t=lO(e),r=t[0],n=k2(t[1]),i=k2(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${da(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const N2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},F2={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function p8e(){const e={},t=Object.keys(F2),r=Object.keys(N2);let n,i,o,a,s;for(n=0;n<t.length;n++){for(a=s=t[n],i=0;i<r.length;i++)o=r[i],s=s.replace(o,N2[o]);o=parseInt(F2[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let qm;function h8e(e){qm||(qm=p8e(),qm.transparent=[0,0,0,0]);const t=qm[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const m8e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function g8e(e){const t=m8e.exec(e);let r=255,n,i,o;if(t){if(t[7]!==n){const a=+t[7];r=t[8]?ff(a):fs(a*255,0,255)}return n=+t[1],i=+t[3],o=+t[5],n=255&(t[2]?ff(n):fs(n,0,255)),i=255&(t[4]?ff(i):fs(i,0,255)),o=255&(t[6]?ff(o):fs(o,0,255)),{r:n,g:i,b:o,a:r}}}function v8e(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${da(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const wC=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Gu=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function y8e(e,t,r){const n=Gu(da(e.r)),i=Gu(da(e.g)),o=Gu(da(e.b));return{r:_s(wC(n+r*(Gu(da(t.r))-n))),g:_s(wC(i+r*(Gu(da(t.g))-i))),b:_s(wC(o+r*(Gu(da(t.b))-o))),a:e.a+r*(t.a-e.a)}}function Hm(e,t,r){if(e){let n=lO(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,t===0?360:1)),n=cO(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function h4(e,t){return e&&Object.assign(t||{},e)}function j2(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=_s(e[3]))):(t=h4(e,{r:0,g:0,b:0,a:1}),t.a=_s(t.a)),t}function b8e(e){return e.charAt(0)==="r"?g8e(e):c8e(e)}class dp{constructor(t){if(t instanceof dp)return t;const r=typeof t;let n;r==="object"?n=j2(t):r==="string"&&(n=t8e(t)||h8e(t)||b8e(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=h4(this._rgb);return t&&(t.a=da(t.a)),t}set rgb(t){this._rgb=j2(t)}rgbString(){return this._valid?v8e(this._rgb):void 0}hexString(){return this._valid?n8e(this._rgb):void 0}hslString(){return this._valid?f8e(this._rgb):void 0}mix(t,r){if(t){const n=this.rgb,i=t.rgb;let o;const a=r===o?.5:r,s=2*a-1,l=n.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-u,n.r=255&u*n.r+o*i.r+.5,n.g=255&u*n.g+o*i.g+.5,n.b=255&u*n.b+o*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,r){return t&&(this._rgb=y8e(this._rgb,t._rgb,r)),this}clone(){return new dp(this.rgb)}alpha(t){return this._rgb.a=_s(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=uh(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hm(this._rgb,2,t),this}darken(t){return Hm(this._rgb,2,-t),this}saturate(t){return Hm(this._rgb,1,t),this}desaturate(t){return Hm(this._rgb,1,-t),this}rotate(t){return d8e(this._rgb,t),this}}/*!
773
+ * Chart.js v4.4.0
774
+ * https://www.chartjs.org
775
+ * (c) 2023 Chart.js Contributors
776
+ * Released under the MIT License
777
+ */function oa(){}const x8e=(()=>{let e=0;return()=>e++})();function Pr(e){return e===null||typeof e>"u"}function ar(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function yt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function cn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function To(e,t){return cn(e)?e:t}function mt(e,t){return typeof e>"u"?t:e}const w8e=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Kt(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function Wt(e,t,r,n){let i,o,a;if(ar(e))for(o=e.length,i=0;i<o;i++)t.call(r,e[i],i);else if(yt(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(r,e[a[i]],a[i])}function zv(e,t){let r,n,i,o;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],o=t[r],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Vv(e){if(ar(e))return e.map(Vv);if(yt(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let i=0;for(;i<n;++i)t[r[i]]=Vv(e[r[i]]);return t}return e}function m4(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function _8e(e,t,r,n){if(!m4(e))return;const i=t[e],o=r[e];yt(i)&&yt(o)?fp(i,o,n):t[e]=Vv(o)}function fp(e,t,r){const n=ar(t)?t:[t],i=n.length;if(!yt(e))return e;r=r||{};const o=r.merger||_8e;let a;for(let s=0;s<i;++s){if(a=n[s],!yt(a))continue;const l=Object.keys(a);for(let u=0,d=l.length;u<d;++u)o(l[u],e,a,r)}return e}function Lf(e,t){return fp(e,t,{merger:C8e})}function C8e(e,t,r){if(!m4(e))return;const n=t[e],i=r[e];yt(n)&&yt(i)?Lf(n,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Vv(i))}const B2={"":e=>e,x:e=>e.x,y:e=>e.y};function T8e(e){const t=e.split("."),r=[];let n="";for(const i of t)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function S8e(e){const t=T8e(e);return r=>{for(const n of t){if(n==="")break;r=r&&r[n]}return r}}function Gv(e,t){return(B2[t]||(B2[t]=S8e(t)))(e)}function dO(e){return e.charAt(0).toUpperCase()+e.slice(1)}const mi=e=>typeof e<"u",Yn=e=>typeof e=="function",U2=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function E8e(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Zt=Math.PI,Ni=2*Zt,R8e=Ni+Zt,Kv=Number.POSITIVE_INFINITY,fO=Zt/180,kn=Zt/2,Ii=Zt/4,Xv=Zt*2/3,g4=Math.log10,Ac=Math.sign;function kf(e,t,r){return Math.abs(e-t)<r}function q2(e){const t=Math.round(e);e=kf(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(g4(e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function P8e(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(r|0)&&t.push(r),t.sort((i,o)=>i-o).pop(),t}function zl(e){return!isNaN(parseFloat(e))&&isFinite(e)}function O8e(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}function M8e(e,t,r){let n,i,o;for(n=0,i=e.length;n<i;n++)o=e[n][r],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Sn(e){return e*(Zt/180)}function v4(e){return e*(180/Zt)}function H2(e){if(!cn(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function A8e(e,t){const r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);let o=Math.atan2(n,r);return o<-.5*Zt&&(o+=Ni),{angle:o,distance:i}}function Ic(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function I8e(e,t){return(e-t+R8e)%Ni-Zt}function Oo(e){return(e%Ni+Ni)%Ni}function y4(e,t,r,n){const i=Oo(e),o=Oo(t),a=Oo(r),s=Oo(o-i),l=Oo(a-i),u=Oo(i-o),d=Oo(i-a);return i===o||i===a||n&&o===a||s>l&&u<d}function Di(e,t,r){return Math.max(t,Math.min(r,e))}function $8e(e){return Di(e,-32768,32767)}function ec(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function pO(e,t,r){r=r||(a=>e[a]<t);let n=e.length-1,i=0,o;for(;n-i>1;)o=i+n>>1,r(o)?i=o:n=o;return{lo:i,hi:n}}const Cl=(e,t,r,n)=>pO(e,r,n?i=>{const o=e[i][t];return o<r||o===r&&e[i+1][t]===r}:i=>e[i][t]<r),D8e=(e,t,r)=>pO(e,r,n=>e[n][t]>=r);function L8e(e,t,r){let n=0,i=e.length;for(;n<i&&e[n]<t;)n++;for(;i>n&&e[i-1]>r;)i--;return n>0||i<e.length?e.slice(n,i):e}const b4=["push","pop","shift","splice","unshift"];function k8e(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),b4.forEach(r=>{const n="_onData"+dO(r),i=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[n]=="function"&&s[n](...o)}),a}})})}function W2(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(t);i!==-1&&n.splice(i,1),!(n.length>0)&&(b4.forEach(o=>{delete e[o]}),delete e._chartjs)}function N8e(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const x4=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function w4(e,t){let r=[],n=!1;return function(...i){r=i,n||(n=!0,x4.call(window,()=>{n=!1,e.apply(t,r)}))}}function F8e(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}const _4=e=>e==="start"?"left":e==="end"?"right":"center",ci=(e,t,r)=>e==="start"?t:e==="end"?r:(t+r)/2,j8e=(e,t,r,n)=>e===(n?"left":"right")?r:e==="center"?(t+r)/2:t;function B8e(e,t,r){const n=t.length;let i=0,o=n;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:u,max:d,minDefined:p,maxDefined:h}=a.getUserBounds();p&&(i=Di(Math.min(Cl(s,l,u).lo,r?n:Cl(t,l,a.getPixelForValue(u)).lo),0,n-1)),h?o=Di(Math.max(Cl(s,a.axis,d,!0).hi+1,r?0:Cl(t,l,a.getPixelForValue(d),!0).hi+1),i,n)-i:o=n-i}return{start:i,count:o}}function U8e(e){const{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;const o=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o}const Wm=e=>e===0||e===1,z2=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ni/r)),V2=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ni/r)+1,Nf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*kn)+1,easeOutSine:e=>Math.sin(e*kn),easeInOutSine:e=>-.5*(Math.cos(Zt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Wm(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Wm(e)?e:z2(e,.075,.3),easeOutElastic:e=>Wm(e)?e:V2(e,.075,.3),easeInOutElastic(e){return Wm(e)?e:e<.5?.5*z2(e*2,.1125,.45):.5+.5*V2(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Nf.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Nf.easeInBounce(e*2)*.5:Nf.easeOutBounce(e*2-1)*.5+.5};function hO(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function G2(e){return hO(e)?e:new dp(e)}function _C(e){return hO(e)?e:new dp(e).saturate(.5).darken(.1).hexString()}const q8e=["x","y","borderWidth","radius","tension"],H8e=["color","borderColor","backgroundColor"];function W8e(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:H8e},numbers:{type:"number",properties:q8e}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function z8e(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const K2=new Map;function V8e(e,t){t=t||{};const r=e+JSON.stringify(t);let n=K2.get(r);return n||(n=new Intl.NumberFormat(e,t),K2.set(r,n)),n}function C4(e,t,r){return V8e(t,r).format(e)}const G8e={values(e){return ar(e)?e:""+e},numeric(e,t,r){if(e===0)return"0";const n=this.chart.options.locale;let i,o=e;if(r.length>1){const u=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=K8e(e,r)}const a=g4(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),C4(e,n,l)}};function K8e(e,t){let r=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(r)>=1&&e!==Math.floor(e)&&(r=e-Math.floor(e)),r}var T4={formatters:G8e};function X8e(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,r)=>r.lineWidth,tickColor:(t,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:T4.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Vl=Object.create(null),fE=Object.create(null);function Ff(e,t){if(!t)return e;const r=t.split(".");for(let n=0,i=r.length;n<i;++n){const o=r[n];e=e[o]||(e[o]=Object.create(null))}return e}function CC(e,t,r){return typeof t=="string"?fp(Ff(e,t),r):fp(Ff(e,""),t)}class Y8e{constructor(t,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>_C(i.backgroundColor),this.hoverBorderColor=(n,i)=>_C(i.borderColor),this.hoverColor=(n,i)=>_C(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(r)}set(t,r){return CC(this,t,r)}get(t){return Ff(this,t)}describe(t,r){return CC(fE,t,r)}override(t,r){return CC(Vl,t,r)}route(t,r,n,i){const o=Ff(this,t),a=Ff(this,n),s="_"+r;Object.defineProperties(o,{[s]:{value:o[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[s],u=a[i];return yt(l)?Object.assign({},u,l):mt(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(r=>r(this))}}var Or=new Y8e({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[W8e,z8e,X8e]);function Z8e(e){return!e||Pr(e.size)||Pr(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function X2(e,t,r,n,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,r.push(i)),o>n&&(n=o),n}function tl(e,t,r){const n=e.currentDevicePixelRatio,i=r!==0?Math.max(r/2,.5):0;return Math.round((t-i)*n)/n+i}function Y2(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function pE(e,t,r,n){S4(e,t,r,n,null)}function S4(e,t,r,n,i){let o,a,s,l,u,d,p,h;const m=t.pointStyle,g=t.rotation,y=t.radius;let x=(g||0)*fO;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(r,n),e.rotate(x),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),m){default:i?e.ellipse(r,n,i/2,y,0,0,Ni):e.arc(r,n,y,0,Ni),e.closePath();break;case"triangle":d=i?i/2:y,e.moveTo(r+Math.sin(x)*d,n-Math.cos(x)*y),x+=Xv,e.lineTo(r+Math.sin(x)*d,n-Math.cos(x)*y),x+=Xv,e.lineTo(r+Math.sin(x)*d,n-Math.cos(x)*y),e.closePath();break;case"rectRounded":u=y*.516,l=y-u,a=Math.cos(x+Ii)*l,p=Math.cos(x+Ii)*(i?i/2-u:l),s=Math.sin(x+Ii)*l,h=Math.sin(x+Ii)*(i?i/2-u:l),e.arc(r-p,n-s,u,x-Zt,x-kn),e.arc(r+h,n-a,u,x-kn,x),e.arc(r+p,n+s,u,x,x+kn),e.arc(r-h,n+a,u,x+kn,x+Zt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*y,d=i?i/2:l,e.rect(r-d,n-l,2*d,2*l);break}x+=Ii;case"rectRot":p=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,h=Math.sin(x)*(i?i/2:y),e.moveTo(r-p,n-s),e.lineTo(r+h,n-a),e.lineTo(r+p,n+s),e.lineTo(r-h,n+a),e.closePath();break;case"crossRot":x+=Ii;case"cross":p=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,h=Math.sin(x)*(i?i/2:y),e.moveTo(r-p,n-s),e.lineTo(r+p,n+s),e.moveTo(r+h,n-a),e.lineTo(r-h,n+a);break;case"star":p=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,h=Math.sin(x)*(i?i/2:y),e.moveTo(r-p,n-s),e.lineTo(r+p,n+s),e.moveTo(r+h,n-a),e.lineTo(r-h,n+a),x+=Ii,p=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,h=Math.sin(x)*(i?i/2:y),e.moveTo(r-p,n-s),e.lineTo(r+p,n+s),e.moveTo(r+h,n-a),e.lineTo(r-h,n+a);break;case"line":a=i?i/2:Math.cos(x)*y,s=Math.sin(x)*y,e.moveTo(r-a,n-s),e.lineTo(r+a,n+s);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(x)*(i?i/2:y),n+Math.sin(x)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function pp(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function ch(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function dh(e){e.restore()}function J8e(e,t,r,n,i){if(!t)return e.lineTo(r.x,r.y);if(i==="middle"){const o=(t.x+r.x)/2;e.lineTo(o,t.y),e.lineTo(o,r.y)}else i==="after"!=!!n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}function Q8e(e,t,r,n){if(!t)return e.lineTo(r.x,r.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function e9e(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Pr(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function t9e(e,t,r,n,i){if(i.strikethrough||i.underline){const o=e.measureText(n),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=r-o.actualBoundingBoxAscent,u=r+o.actualBoundingBoxDescent,d=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,d),e.lineTo(s,d),e.stroke()}}function r9e(e,t){const r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}function Yv(e,t,r,n,i,o={}){const a=ar(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,e9e(e,o),l=0;l<a.length;++l)u=a[l],o.backdrop&&r9e(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),Pr(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,r,n,o.maxWidth)),e.fillText(u,r,n,o.maxWidth),t9e(e,r,n,u,o),n+=Number(i.lineHeight);e.restore()}function Zv(e,t){const{x:r,y:n,w:i,h:o,radius:a}=t;e.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*Zt,Zt,!0),e.lineTo(r,n+o-a.bottomLeft),e.arc(r+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,Zt,kn,!0),e.lineTo(r+i-a.bottomRight,n+o),e.arc(r+i-a.bottomRight,n+o-a.bottomRight,a.bottomRight,kn,0,!0),e.lineTo(r+i,n+a.topRight),e.arc(r+i-a.topRight,n+a.topRight,a.topRight,0,-kn,!0),e.lineTo(r+a.topLeft,n)}const n9e=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,i9e=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function o9e(e,t){const r=(""+e).match(n9e);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e}const a9e=e=>+e||0;function E4(e,t){const r={},n=yt(t),i=n?Object.keys(t):t,o=yt(e)?n?a=>mt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)r[a]=a9e(o(a));return r}function s9e(e){return E4(e,{top:"y",right:"x",bottom:"y",left:"x"})}function lc(e){return E4(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Nn(e){const t=s9e(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ln(e,t){e=e||{},t=t||Or.font;let r=mt(e.size,t.size);typeof r=="string"&&(r=parseInt(r,10));let n=mt(e.style,t.style);n&&!(""+n).match(i9e)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:mt(e.family,t.family),lineHeight:o9e(mt(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:mt(e.weight,t.weight),string:""};return i.string=Z8e(i),i}function zm(e,t,r,n){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function l9e(e,t,r){const{min:n,max:i}=e,o=w8e(t,(i-n)/2),a=(s,l)=>r&&s===0?0:s+l;return{min:a(n,-Math.abs(o)),max:a(i,o)}}function lu(e,t){return Object.assign(Object.create(e),t)}function mO(e,t=[""],r,n,i=()=>e[0]){const o=r||e;typeof n>"u"&&(n=M4("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:n,_getTarget:i,override:s=>mO([s,...e],t,o,n)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return P4(s,l,()=>g9e(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return J2(s).includes(l)},ownKeys(s){return J2(s)},set(s,l,u){const d=s._storage||(s._storage=i());return s[l]=d[l]=u,delete s._keys,!0}})}function $c(e,t,r,n){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:R4(e,n),setContext:o=>$c(e,o,r,n),override:o=>$c(e.override(o),t,r,n)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return P4(o,a,()=>c9e(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function R4(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:Yn(r)?r:()=>r,isIndexable:Yn(n)?n:()=>n}}const u9e=(e,t)=>e?e+dO(t):t,gO=(e,t)=>yt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function P4(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=r();return e[t]=n,n}function c9e(e,t,r){const{_proxy:n,_context:i,_subProxy:o,_descriptors:a}=e;let s=n[t];return Yn(s)&&a.isScriptable(t)&&(s=d9e(t,s,e,r)),ar(s)&&s.length&&(s=f9e(t,s,e,a.isIndexable)),gO(t,s)&&(s=$c(s,i,o&&o[t],a)),s}function d9e(e,t,r,n){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=r;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||n);return s.delete(e),gO(e,l)&&(l=vO(i._scopes,i,e,l)),l}function f9e(e,t,r,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=r;if(typeof o.index<"u"&&n(e))return t[o.index%t.length];if(yt(t[0])){const l=t,u=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const p=vO(u,i,e,d);t.push($c(p,o,a&&a[e],s))}}return t}function O4(e,t,r){return Yn(e)?e(t,r):e}const p9e=(e,t)=>e===!0?t:typeof e=="string"?Gv(t,e):void 0;function h9e(e,t,r,n,i){for(const o of t){const a=p9e(r,o);if(a){e.add(a);const s=O4(a._fallback,r,i);if(typeof s<"u"&&s!==r&&s!==n)return s}else if(a===!1&&typeof n<"u"&&r!==n)return null}return!1}function vO(e,t,r,n){const i=t._rootScopes,o=O4(t._fallback,r,n),a=[...e,...i],s=new Set;s.add(n);let l=Z2(s,a,r,o||r,n);return l===null||typeof o<"u"&&o!==r&&(l=Z2(s,a,o,l,n),l===null)?!1:mO(Array.from(s),[""],i,o,()=>m9e(t,r,n))}function Z2(e,t,r,n,i){for(;r;)r=h9e(e,t,r,n,i);return r}function m9e(e,t,r){const n=e._getTarget();t in n||(n[t]={});const i=n[t];return ar(i)&&yt(r)?r:i||{}}function g9e(e,t,r,n){let i;for(const o of t)if(i=M4(u9e(o,e),r),typeof i<"u")return gO(e,i)?vO(r,n,e,i):i}function M4(e,t){for(const r of t){if(!r)continue;const n=r[e];if(typeof n<"u")return n}}function J2(e){let t=e._keys;return t||(t=e._keys=v9e(e._scopes)),t}function v9e(e){const t=new Set;for(const r of e)for(const n of Object.keys(r).filter(i=>!i.startsWith("_")))t.add(n);return Array.from(t)}const y9e=Number.EPSILON||1e-14,Dc=(e,t)=>t<e.length&&!e[t].skip&&e[t],A4=e=>e==="x"?"y":"x";function b9e(e,t,r,n){const i=e.skip?t:e,o=t,a=r.skip?t:r,s=Ic(o,i),l=Ic(a,o);let u=s/(s+l),d=l/(s+l);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const p=n*u,h=n*d;return{previous:{x:o.x-p*(a.x-i.x),y:o.y-p*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function x9e(e,t,r){const n=e.length;let i,o,a,s,l,u=Dc(e,0);for(let d=0;d<n-1;++d)if(l=u,u=Dc(e,d+1),!(!l||!u)){if(kf(t[d],0,y9e)){r[d]=r[d+1]=0;continue}i=r[d]/t[d],o=r[d+1]/t[d],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),r[d]=i*a*t[d],r[d+1]=o*a*t[d])}}function w9e(e,t,r="x"){const n=A4(r),i=e.length;let o,a,s,l=Dc(e,0);for(let u=0;u<i;++u){if(a=s,s=l,l=Dc(e,u+1),!s)continue;const d=s[r],p=s[n];a&&(o=(d-a[r])/3,s[`cp1${r}`]=d-o,s[`cp1${n}`]=p-o*t[u]),l&&(o=(l[r]-d)/3,s[`cp2${r}`]=d+o,s[`cp2${n}`]=p+o*t[u])}}function _9e(e,t="x"){const r=A4(t),n=e.length,i=Array(n).fill(0),o=Array(n);let a,s,l,u=Dc(e,0);for(a=0;a<n;++a)if(s=l,l=u,u=Dc(e,a+1),!!l){if(u){const d=u[t]-l[t];i[a]=d!==0?(u[r]-l[r])/d:0}o[a]=s?u?Ac(i[a-1])!==Ac(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}x9e(e,i,o),w9e(e,o,t)}function Vm(e,t,r){return Math.max(Math.min(e,r),t)}function C9e(e,t){let r,n,i,o,a,s=pp(e[0],t);for(r=0,n=e.length;r<n;++r)a=o,o=s,s=r<n-1&&pp(e[r+1],t),o&&(i=e[r],a&&(i.cp1x=Vm(i.cp1x,t.left,t.right),i.cp1y=Vm(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Vm(i.cp2x,t.left,t.right),i.cp2y=Vm(i.cp2y,t.top,t.bottom)))}function T9e(e,t,r,n,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")_9e(e,i);else{let u=n?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=b9e(u,s,e[Math.min(o+1,a-(n?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&C9e(e,r)}function I4(){return typeof window<"u"&&typeof document<"u"}function yO(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Jv(e,t,r){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[r])):n=e,n}const w1=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function S9e(e,t){return w1(e).getPropertyValue(t)}const E9e=["top","right","bottom","left"];function Il(e,t,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const o=E9e[i];n[o]=parseFloat(e[t+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const R9e=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function P9e(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:i,offsetY:o}=n;let a=!1,s,l;if(R9e(i,o,e.target))s=i,l=o;else{const u=t.getBoundingClientRect();s=n.clientX-u.left,l=n.clientY-u.top,a=!0}return{x:s,y:l,box:a}}function fl(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,i=w1(r),o=i.boxSizing==="border-box",a=Il(i,"padding"),s=Il(i,"border","width"),{x:l,y:u,box:d}=P9e(e,r),p=a.left+(d&&s.left),h=a.top+(d&&s.top);let{width:m,height:g}=t;return o&&(m-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-p)/m*r.width/n),y:Math.round((u-h)/g*r.height/n)}}function O9e(e,t,r){let n,i;if(t===void 0||r===void 0){const o=yO(e);if(!o)t=e.clientWidth,r=e.clientHeight;else{const a=o.getBoundingClientRect(),s=w1(o),l=Il(s,"border","width"),u=Il(s,"padding");t=a.width-u.width-l.width,r=a.height-u.height-l.height,n=Jv(s.maxWidth,o,"clientWidth"),i=Jv(s.maxHeight,o,"clientHeight")}}return{width:t,height:r,maxWidth:n||Kv,maxHeight:i||Kv}}const Gm=e=>Math.round(e*10)/10;function M9e(e,t,r,n){const i=w1(e),o=Il(i,"margin"),a=Jv(i.maxWidth,e,"clientWidth")||Kv,s=Jv(i.maxHeight,e,"clientHeight")||Kv,l=O9e(e,t,r);let{width:u,height:d}=l;if(i.boxSizing==="content-box"){const h=Il(i,"border","width"),m=Il(i,"padding");u-=m.width+h.width,d-=m.height+h.height}return u=Math.max(0,u-o.width),d=Math.max(0,n?u/n:d-o.height),u=Gm(Math.min(u,a,l.maxWidth)),d=Gm(Math.min(d,s,l.maxHeight)),u&&!d&&(d=Gm(u/2)),(t!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,u=Gm(Math.floor(d*n))),{width:u,height:d}}function Q2(e,t,r){const n=t||1,i=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=n,a.height=i,a.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const A9e=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function eN(e,t){const r=S9e(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function pl(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function I9e(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:n==="middle"?r<.5?e.y:t.y:n==="after"?r<1?e.y:t.y:r>0?t.y:e.y}}function $9e(e,t,r,n){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=pl(e,i,r),s=pl(i,o,r),l=pl(o,t,r),u=pl(a,s,r),d=pl(s,l,r);return pl(u,d,r)}const D9e=function(e,t){return{x(r){return e+e+t-r},setWidth(r){t=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},L9e=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function uc(e,t,r){return e?D9e(t,r):L9e()}function $4(e,t){let r,n;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function D4(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function L4(e){return e==="angle"?{between:y4,compare:I8e,normalize:Oo}:{between:ec,compare:(t,r)=>t-r,normalize:t=>t}}function tN({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r===0,style:i}}function k9e(e,t,r){const{property:n,start:i,end:o}=r,{between:a,normalize:s}=L4(n),l=t.length;let{start:u,end:d,loop:p}=e,h,m;if(p){for(u+=l,d+=l,h=0,m=l;h<m&&a(s(t[u%l][n]),i,o);++h)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:p,style:e.style}}function k4(e,t,r){if(!r)return[e];const{property:n,start:i,end:o}=r,a=t.length,{compare:s,between:l,normalize:u}=L4(n),{start:d,end:p,loop:h,style:m}=k9e(e,t,r),g=[];let y=!1,x=null,b,S,w;const _=()=>l(i,w,b)&&s(i,w)!==0,O=()=>s(o,b)===0||l(o,w,b),C=()=>y||_(),T=()=>!y||O();for(let M=d,D=d;M<=p;++M)S=t[M%a],!S.skip&&(b=u(S[n]),b!==w&&(y=l(b,i,o),x===null&&C()&&(x=s(b,i)===0?M:D),x!==null&&T()&&(g.push(tN({start:x,end:M,loop:h,count:a,style:m})),x=null),D=M,w=b));return x!==null&&g.push(tN({start:x,end:p,loop:h,count:a,style:m})),g}function N4(e,t){const r=[],n=e.segments;for(let i=0;i<n.length;i++){const o=k4(n[i],e.points,t);o.length&&r.push(...o)}return r}function N9e(e,t,r,n){let i=0,o=t-1;if(r&&!n)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,r&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function F9e(e,t,r,n){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=r;++l){const u=e[l%i];u.skip||u.stop?s.skip||(n=!1,o.push({start:t%i,end:(l-1)%i,loop:n}),t=a=u.stop?l:null):(a=l,s.skip&&(t=l)),s=u}return a!==null&&o.push({start:t%i,end:a%i,loop:n}),o}function j9e(e,t){const r=e.points,n=e.options.spanGaps,i=r.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=N9e(r,i,o,n);if(n===!0)return rN(e,[{start:a,end:s,loop:o}],r,t);const l=s<a?s+i:s,u=!!e._fullLoop&&a===0&&s===i-1;return rN(e,F9e(r,a,l,u),r,t)}function rN(e,t,r,n){return!n||!n.setContext||!r?t:B9e(e,t,r,n)}function B9e(e,t,r,n){const i=e._chart.getContext(),o=nN(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=r.length,u=[];let d=o,p=t[0].start,h=p;function m(g,y,x,b){const S=s?-1:1;if(g!==y){for(g+=l;r[g%l].skip;)g-=S;for(;r[y%l].skip;)y+=S;g%l!==y%l&&(u.push({start:g%l,end:y%l,loop:x,style:b}),d=b,p=y%l)}}for(const g of t){p=s?p:g.start;let y=r[p%l],x;for(h=p+1;h<=g.end;h++){const b=r[h%l];x=nN(n.setContext(lu(i,{type:"segment",p0:y,p1:b,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),U9e(x,d)&&m(p,h-1,g.loop,d),y=b,d=x}p<h-1&&m(p,h-1,g.loop,d)}return u}function nN(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function U9e(e,t){if(!t)return!1;const r=[],n=function(i,o){return hO(o)?(r.includes(o)||r.push(o),r.indexOf(o)):o};return JSON.stringify(e,n)!==JSON.stringify(t,n)}/*!
778
+ * Chart.js v4.4.0
779
+ * https://www.chartjs.org
780
+ * (c) 2023 Chart.js Contributors
781
+ * Released under the MIT License
782
+ */class q9e{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,n,i){const o=r.listeners[i],a=r.duration;o.forEach(s=>s({chart:t,initial:r.initial,numSteps:a,currentStep:Math.min(n-r.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=x4.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let r=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),r+=o.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let n=r.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,n)),n}listen(t,r,n){this._getAnims(t).listeners[r].push(n)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);if(!r||!r.items.length)return;const n=r.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();r.items=[],this._notify(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var sa=new q9e;const iN="transparent",H9e={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const n=G2(e||iN),i=n.valid&&G2(t||iN);return i&&i.valid?i.mix(n,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class W9e{constructor(t,r,n,i){const o=r[n];i=zm([t.to,i,o,t.from]);const a=zm([t.from,o,i]);this._active=!0,this._fn=t.fn||H9e[t.type||typeof a],this._easing=Nf[t.easing]||Nf.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,r,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=zm([t.to,r,i,t.from]),this._from=zm([t.from,i,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||r<n),!this._active){this._target[i]=s,this._notify(!0);return}if(r<0){this._target[i]=o;return}l=r/n%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((r,n)=>{t.push({res:r,rej:n})})}_notify(t){const r=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][r]()}}class bO{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!yt(t))return;const r=Object.keys(Or.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!yt(o))return;const a={};for(const s of r)a[s]=o[s];(ar(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!n.has(s))&&n.set(s,a)})})}_animateOptions(t,r){const n=r.options,i=V9e(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&z9e(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,r){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(r),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,r));continue}const d=r[u];let p=o[u];const h=n.get(u);if(p)if(h&&p.active()){p.update(h,d,s);continue}else p.cancel();if(!h||!h.duration){t[u]=d;continue}o[u]=p=new W9e(h,t,u,d),i.push(p)}return i}update(t,r){if(this._properties.size===0){Object.assign(t,r);return}const n=this._createAnimations(t,r);if(n.length)return sa.add(this._chart,n),!0}}function z9e(e,t){const r=[],n=Object.keys(t);for(let i=0;i<n.length;i++){const o=e[n[i]];o&&o.active()&&r.push(o.wait())}return Promise.all(r)}function V9e(e,t){if(!t)return;let r=e.options;if(!r){e.options=t;return}return r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function oN(e,t){const r=e&&e.options||{},n=r.reverse,i=r.min===void 0?t:0,o=r.max===void 0?t:0;return{start:n?o:i,end:n?i:o}}function G9e(e,t,r){if(r===!1)return!1;const n=oN(e,r),i=oN(t,r);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}function K9e(e){let t,r,n,i;return yt(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i,disabled:e===!1}}function F4(e,t){const r=[],n=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=n.length;i<o;++i)r.push(n[i].index);return r}function aN(e,t,r,n={}){const i=e.keys,o=n.mode==="single";let a,s,l,u;if(t!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===r){if(n.all)continue;break}u=e.values[l],cn(u)&&(o||t===0||Ac(t)===Ac(u))&&(t+=u)}return t}}function X9e(e){const t=Object.keys(e),r=new Array(t.length);let n,i,o;for(n=0,i=t.length;n<i;++n)o=t[n],r[n]={x:o,y:e[o]};return r}function sN(e,t){const r=e&&e.options.stacked;return r||r===void 0&&t.stack!==void 0}function Y9e(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}function Z9e(e){const{min:t,max:r,minDefined:n,maxDefined:i}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:i?r:Number.POSITIVE_INFINITY}}function J9e(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function lN(e,t,r,n){for(const i of t.getMatchingVisibleMetas(n).reverse()){const o=e[i.index];if(r&&o>0||!r&&o<0)return i.index}return null}function uN(e,t){const{chart:r,_cachedMeta:n}=e,i=r._stacks||(r._stacks={}),{iScale:o,vScale:a,index:s}=n,l=o.axis,u=a.axis,d=Y9e(o,a,n),p=t.length;let h;for(let m=0;m<p;++m){const g=t[m],{[l]:y,[u]:x}=g,b=g._stacks||(g._stacks={});h=b[u]=J9e(i,d,y),h[s]=x,h._top=lN(h,a,!0,n.type),h._bottom=lN(h,a,!1,n.type);const S=h._visualValues||(h._visualValues={});S[s]=x}}function TC(e,t){const r=e.scales;return Object.keys(r).filter(n=>r[n].axis===t).shift()}function Q9e(e,t){return lu(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function e7e(e,t,r){return lu(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}function ef(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[n]===void 0||o[n][r]===void 0)return;delete o[n][r],o[n]._visualValues!==void 0&&o[n]._visualValues[r]!==void 0&&delete o[n]._visualValues[r]}}}const SC=e=>e==="reset"||e==="none",cN=(e,t)=>t?e:Object.assign({},e),t7e=(e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:F4(r,!0),values:null};class jf{constructor(t,r){this.chart=t,this._ctx=t.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=sN(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ef(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,n=this.getDataset(),i=(p,h,m,g)=>p==="x"?h:p==="r"?g:m,o=r.xAxisID=mt(n.xAxisID,TC(t,"x")),a=r.yAxisID=mt(n.yAxisID,TC(t,"y")),s=r.rAxisID=mt(n.rAxisID,TC(t,"r")),l=r.indexAxis,u=r.iAxisID=i(l,o,a,s),d=r.vAxisID=i(l,a,o,s);r.xScale=this.getScaleForId(o),r.yScale=this.getScaleForId(a),r.rScale=this.getScaleForId(s),r.iScale=this.getScaleForId(u),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&W2(this._data,this),t._stacked&&ef(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),n=this._data;if(yt(r))this._data=X9e(r);else if(n!==r){if(n){W2(n,this);const i=this._cachedMeta;ef(i),i._parsed=[]}r&&Object.isExtensible(r)&&k8e(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=r._stacked;r._stacked=sN(r.vScale,r),r.stack!==n.stack&&(i=!0,ef(r),r.stack=n.stack),this._resyncElements(t),(i||o!==r._stacked)&&uN(this,r._parsed)}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,s=o.axis;let l=t===0&&r===i.length?!0:n._sorted,u=t>0&&n._parsed[t-1],d,p,h;if(this._parsing===!1)n._parsed=i,n._sorted=!0,h=i;else{ar(i[t])?h=this.parseArrayData(n,i,t,r):yt(i[t])?h=this.parseObjectData(n,i,t,r):h=this.parsePrimitiveData(n,i,t,r);const m=()=>p[s]===null||u&&p[s]<u[s];for(d=0;d<r;++d)n._parsed[d+t]=p=h[d],l&&(m()&&(l=!1),u=p);n._sorted=l}a&&uN(this,h)}parsePrimitiveData(t,r,n,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,u=o.getLabels(),d=o===a,p=new Array(i);let h,m,g;for(h=0,m=i;h<m;++h)g=h+n,p[h]={[s]:d||o.parse(u[g],g),[l]:a.parse(r[g],g)};return p}parseArrayData(t,r,n,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,u,d,p;for(l=0,u=i;l<u;++l)d=l+n,p=r[d],s[l]={x:o.parse(p[0],d),y:a.parse(p[1],d)};return s}parseObjectData(t,r,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let d,p,h,m;for(d=0,p=i;d<p;++d)h=d+n,m=r[h],u[d]={x:o.parse(Gv(m,s),h),y:a.parse(Gv(m,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,n){const i=this.chart,o=this._cachedMeta,a=r[t.axis],s={keys:F4(i,!0),values:r._stacks[t.axis]._visualValues};return aN(s,a,o.index,{mode:n})}updateRangeFromParsed(t,r,n,i){const o=n[r.axis];let a=o===null?NaN:o;const s=i&&n._stacks[r.axis];i&&s&&(i.values=s,a=aN(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,r){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,s=this._getOtherScale(t),l=t7e(r,n,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:p}=Z9e(s);let h,m;function g(){m=i[h];const y=m[s.axis];return!cn(m[t.axis])||d>y||p<y}for(h=0;h<a&&!(!g()&&(this.updateRangeFromParsed(u,t,m,l),o));++h);if(o){for(h=a-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,m,l);break}}return u}getAllParsedValues(t){const r=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=r.length;i<o;++i)a=r[i][t.axis],cn(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,n=r.iScale,i=r.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=K9e(mt(this.options.clip,G9e(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,r=this.chart,n=this._cachedMeta,i=n.data||[],o=r.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let d;for(n.dataset&&n.dataset.draw(t,o,s,l),d=s;d<s+l;++d){const p=i[d];p.hidden||(p.active&&u?a.push(p):p.draw(t,o))}for(d=0;d<a.length;++d)a[d].draw(t,o)}getStyle(t,r){const n=r?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,r,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=e7e(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Q9e(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!r,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",n){const i=r==="active",o=this._cachedDataOpts,a=t+"-"+r,s=o[a],l=this.enableOptionSharing&&mi(n);if(s)return cN(s,l);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),p=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),d),m=Object.keys(Or.elements[t]),g=()=>this.getContext(n,i,r),y=u.resolveNamedOptions(h,m,g,p);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(cN(y,l))),y}_resolveAnimations(t,r,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${r}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,r),h=d.getOptionScopes(this.getDataset(),p);l=d.createResolver(h,this.getContext(t,n,r))}const u=new bO(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||SC(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const n=this.resolveDataElementOptions(t,r),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(r,o)||o!==i;return this.updateSharedOptions(o,r,n),{sharedOptions:o,includeOptions:a}}updateElement(t,r,n,i){SC(i)?Object.assign(t,n):this._resolveAnimations(r,i).update(t,n)}updateSharedOptions(t,r,n){t&&!SC(r)&&this._resolveAnimations(void 0,r).update(t,n)}_setStyle(t,r,n,i){t.active=i;const o=this.getStyle(r,i);this._resolveAnimations(r,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,r,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,r,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const r=this._data,n=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=n.length,o=r.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,r,n=!0){const i=this._cachedMeta,o=i.data,a=t+r;let s;const l=u=>{for(u.length+=r,s=u.length-1;s>=a;s--)u[s]=u[s-r]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,r),n&&this.updateElements(o,t,r,"reset")}updateElements(t,r,n,i){}_removeElements(t,r){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,r);n._stacked&&ef(n,i)}n.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,n,i]=t;this[r](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,r){r&&this._sync(["_removeElements",t,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}nt(jf,"defaults",{}),nt(jf,"datasetElementType",null),nt(jf,"dataElementType",null);class cc extends jf{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const r=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=r,a=this.chart._animationsDisabled;let{start:s,count:l}=B8e(r,i,a);this._drawStart=s,this._drawCount=l,U8e(r)&&(s=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,r,n,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(r,i),h=a.axis,m=s.axis,{spanGaps:g,segment:y}=this.options,x=zl(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||i==="none",S=r+n,w=t.length;let _=r>0&&this.getParsed(r-1);for(let O=0;O<w;++O){const C=t[O],T=b?C:{};if(O<r||O>=S){T.skip=!0;continue}const M=this.getParsed(O),D=Pr(M[m]),$=T[h]=a.getPixelForValue(M[h],O),N=T[m]=o||D?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,M,l):M[m],O);T.skip=isNaN($)||isNaN(N)||D,T.stop=O>0&&Math.abs(M[h]-_[h])>x,y&&(T.parsed=M,T.raw=u.data[O]),p&&(T.options=d||this.resolveDataElementOptions(O,C.active?"active":i)),b||this.updateElement(C,O,T,i),_=M}}getMaxOverflow(){const t=this._cachedMeta,r=t.dataset,n=r.options&&r.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}nt(cc,"id","line"),nt(cc,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),nt(cc,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function rl(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class xO{constructor(t){nt(this,"options");this.options=t||{}}static override(t){Object.assign(xO.prototype,t)}init(){}formats(){return rl()}parse(){return rl()}format(){return rl()}add(){return rl()}diff(){return rl()}startOf(){return rl()}endOf(){return rl()}}var j4={_date:xO};function r7e(e,t,r,n){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?D8e:Cl;if(n){if(i._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const p=l(o,t,r-d),h=l(o,t,r+d);return{lo:p.lo,hi:h.hi}}}}else return l(o,t,r)}return{lo:0,hi:o.length-1}}function _1(e,t,r,n,i){const o=e.getSortedVisibleDatasetMetas(),a=r[t];for(let s=0,l=o.length;s<l;++s){const{index:u,data:d}=o[s],{lo:p,hi:h}=r7e(o[s],t,a,i);for(let m=p;m<=h;++m){const g=d[m];g.skip||n(g,u,m)}}}function n7e(e){const t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(n,i){const o=t?Math.abs(n.x-i.x):0,a=r?Math.abs(n.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function EC(e,t,r,n,i){const o=[];return!i&&!e.isPointInArea(t)||_1(e,r,t,function(s,l,u){!i&&!pp(s,e.chartArea,0)||s.inRange(t.x,t.y,n)&&o.push({element:s,datasetIndex:l,index:u})},!0),o}function i7e(e,t,r,n){let i=[];function o(a,s,l){const{startAngle:u,endAngle:d}=a.getProps(["startAngle","endAngle"],n),{angle:p}=A8e(a,{x:t.x,y:t.y});y4(p,u,d)&&i.push({element:a,datasetIndex:s,index:l})}return _1(e,r,t,o),i}function o7e(e,t,r,n,i,o){let a=[];const s=n7e(r);let l=Number.POSITIVE_INFINITY;function u(d,p,h){const m=d.inRange(t.x,t.y,i);if(n&&!m)return;const g=d.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!m)return;const x=s(t,g);x<l?(a=[{element:d,datasetIndex:p,index:h}],l=x):x===l&&a.push({element:d,datasetIndex:p,index:h})}return _1(e,r,t,u),a}function RC(e,t,r,n,i,o){return!o&&!e.isPointInArea(t)?[]:r==="r"&&!n?i7e(e,t,r,i):o7e(e,t,r,n,i,o)}function dN(e,t,r,n,i){const o=[],a=r==="x"?"inXRange":"inYRange";let s=!1;return _1(e,r,t,(l,u,d)=>{l[a](t[r],i)&&(o.push({element:l,datasetIndex:u,index:d}),s=s||l.inRange(t.x,t.y,i))}),n&&!s?[]:o}var a7e={modes:{index(e,t,r,n){const i=fl(t,e),o=r.axis||"x",a=r.includeInvisible||!1,s=r.intersect?EC(e,i,o,n,a):RC(e,i,o,!1,n,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=s[0].index,p=u.data[d];p&&!p.skip&&l.push({element:p,datasetIndex:u.index,index:d})}),l):[]},dataset(e,t,r,n){const i=fl(t,e),o=r.axis||"xy",a=r.includeInvisible||!1;let s=r.intersect?EC(e,i,o,n,a):RC(e,i,o,!1,n,a);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let d=0;d<u.length;++d)s.push({element:u[d],datasetIndex:l,index:d})}return s},point(e,t,r,n){const i=fl(t,e),o=r.axis||"xy",a=r.includeInvisible||!1;return EC(e,i,o,n,a)},nearest(e,t,r,n){const i=fl(t,e),o=r.axis||"xy",a=r.includeInvisible||!1;return RC(e,i,o,r.intersect,n,a)},x(e,t,r,n){const i=fl(t,e);return dN(e,i,"x",r.intersect,n)},y(e,t,r,n){const i=fl(t,e);return dN(e,i,"y",r.intersect,n)}}};const B4=["left","top","right","bottom"];function tf(e,t){return e.filter(r=>r.pos===t)}function fN(e,t){return e.filter(r=>B4.indexOf(r.pos)===-1&&r.box.axis===t)}function rf(e,t){return e.sort((r,n)=>{const i=t?n:r,o=t?r:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function s7e(e){const t=[];let r,n,i,o,a,s;for(r=0,n=(e||[]).length;r<n;++r)i=e[r],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:r,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function l7e(e){const t={};for(const r of e){const{stack:n,pos:i,stackWeight:o}=r;if(!n||!B4.includes(i))continue;const a=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function u7e(e,t){const r=l7e(e),{vBoxMaxWidth:n,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,u=r[s.stack],d=u&&s.stackWeight/u.weight;s.horizontal?(s.width=d?d*n:l&&t.availableWidth,s.height=i):(s.width=n,s.height=d?d*i:l&&t.availableHeight)}return r}function c7e(e){const t=s7e(e),r=rf(t.filter(u=>u.box.fullSize),!0),n=rf(tf(t,"left"),!0),i=rf(tf(t,"right")),o=rf(tf(t,"top"),!0),a=rf(tf(t,"bottom")),s=fN(t,"x"),l=fN(t,"y");return{fullSize:r,leftAndTop:n.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:tf(t,"chartArea"),vertical:n.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function pN(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function U4(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function d7e(e,t,r,n){const{pos:i,box:o}=r,a=e.maxPadding;if(!yt(i)){r.size&&(e[i]-=r.size);const p=n[r.stack]||{size:0,count:1};p.size=Math.max(p.size,r.horizontal?o.height:o.width),r.size=p.size/p.count,e[i]+=r.size}o.getPadding&&U4(a,o.getPadding());const s=Math.max(0,t.outerWidth-pN(a,e,"left","right")),l=Math.max(0,t.outerHeight-pN(a,e,"top","bottom")),u=s!==e.w,d=l!==e.h;return e.w=s,e.h=l,r.horizontal?{same:u,other:d}:{same:d,other:u}}function f7e(e){const t=e.maxPadding;function r(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function p7e(e,t){const r=t.maxPadding;function n(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],r[a])}),o}return n(e?["left","right"]:["top","bottom"])}function pf(e,t,r,n){const i=[];let o,a,s,l,u,d;for(o=0,a=e.length,u=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,p7e(s.horizontal,t));const{same:p,other:h}=d7e(t,r,s,n);u|=p&&i.length,d=d||h,l.fullSize||i.push(s)}return u&&pf(i,t,r,n)||d}function Km(e,t,r,n,i){e.top=r,e.left=t,e.right=t+n,e.bottom=r+i,e.width=n,e.height=i}function hN(e,t,r,n){const i=r.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,u=n[s.stack]||{placed:0,weight:1},d=s.stackWeight/u.weight||1;if(s.horizontal){const p=t.w*d,h=u.size||l.height;mi(u.start)&&(a=u.start),l.fullSize?Km(l,i.left,a,r.outerWidth-i.right-i.left,h):Km(l,t.left+u.placed,a,p,h),u.start=a,u.placed+=p,a=l.bottom}else{const p=t.h*d,h=u.size||l.width;mi(u.start)&&(o=u.start),l.fullSize?Km(l,o,i.top,h,r.outerHeight-i.bottom-i.top):Km(l,o,t.top+u.placed,h,p),u.start=o,u.placed+=p,o=l.right}}t.x=o,t.y=a}var ps={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(r){t.draw(r)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const i=Nn(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(r-i.height,0),s=c7e(e.boxes),l=s.vertical,u=s.horizontal;Wt(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const d=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},i);U4(h,Nn(n));const m=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),g=u7e(l.concat(u),p);pf(s.fullSize,m,p,g),pf(l,m,p,g),pf(u,m,p,g)&&pf(l,m,p,g),f7e(m),hN(s.leftAndTop,m,p,g),m.x+=m.w,m.y+=m.h,hN(s.rightAndBottom,m,p,g),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Wt(s.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class q4{acquireContext(t,r){}releaseContext(t){return!1}addEventListener(t,r,n){}removeEventListener(t,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,r,n,i){return r=Math.max(0,r||t.width),n=n||t.height,{width:r,height:Math.max(0,i?Math.floor(r/i):n)}}isAttached(t){return!0}updateConfig(t){}}class h7e extends q4{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rg="$chartjs",m7e={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},mN=e=>e===null||e==="";function g7e(e,t){const r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[Rg]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",mN(i)){const o=eN(e,"width");o!==void 0&&(e.width=o)}if(mN(n))if(e.style.height==="")e.height=e.width/(t||2);else{const o=eN(e,"height");o!==void 0&&(e.height=o)}return e}const H4=A9e?{passive:!0}:!1;function v7e(e,t,r){e.addEventListener(t,r,H4)}function y7e(e,t,r){e.canvas.removeEventListener(t,r,H4)}function b7e(e,t){const r=m7e[e.type]||e.type,{x:n,y:i}=fl(e,t);return{type:r,chart:t,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function Qv(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function x7e(e,t,r){const n=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Qv(s.addedNodes,n),a=a&&!Qv(s.removedNodes,n);a&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function w7e(e,t,r){const n=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Qv(s.removedNodes,n),a=a&&!Qv(s.addedNodes,n);a&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const hp=new Map;let gN=0;function W4(){const e=window.devicePixelRatio;e!==gN&&(gN=e,hp.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function _7e(e,t){hp.size||window.addEventListener("resize",W4),hp.set(e,t)}function C7e(e){hp.delete(e),hp.size||window.removeEventListener("resize",W4)}function T7e(e,t,r){const n=e.canvas,i=n&&yO(n);if(!i)return;const o=w4((s,l)=>{const u=i.clientWidth;r(s,l),u<i.clientWidth&&r()},window),a=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,d=l.contentRect.height;u===0&&d===0||o(u,d)});return a.observe(i),_7e(e,o),a}function PC(e,t,r){r&&r.disconnect(),t==="resize"&&C7e(e)}function S7e(e,t,r){const n=e.canvas,i=w4(o=>{e.ctx!==null&&r(b7e(o,e))},e);return v7e(n,t,i),i}class E7e extends q4{acquireContext(t,r){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(g7e(t,r),n):null}releaseContext(t){const r=t.canvas;if(!r[Rg])return!1;const n=r[Rg].initial;["height","width"].forEach(o=>{const a=n[o];Pr(a)?r.removeAttribute(o):r.setAttribute(o,a)});const i=n.style||{};return Object.keys(i).forEach(o=>{r.style[o]=i[o]}),r.width=r.width,delete r[Rg],!0}addEventListener(t,r,n){this.removeEventListener(t,r);const i=t.$proxies||(t.$proxies={}),a={attach:x7e,detach:w7e,resize:T7e}[r]||S7e;i[r]=a(t,r,n)}removeEventListener(t,r){const n=t.$proxies||(t.$proxies={}),i=n[r];if(!i)return;({attach:PC,detach:PC,resize:PC}[r]||y7e)(t,r,i),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,r,n,i){return M9e(t,r,n,i)}isAttached(t){const r=yO(t);return!!(r&&r.isConnected)}}function R7e(e){return!I4()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?h7e:E7e}var rg;let Ki=(rg=class{constructor(){nt(this,"x");nt(this,"y");nt(this,"active",!1);nt(this,"options");nt(this,"$animations")}tooltipPosition(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}hasValue(){return zl(this.x)&&zl(this.y)}getProps(t,r){const n=this.$animations;if(!r||!n)return this;const i={};return t.forEach(o=>{i[o]=n[o]&&n[o].active()?n[o]._to:this[o]}),i}},nt(rg,"defaults",{}),nt(rg,"defaultRoutes"),rg);function P7e(e,t){const r=e.options.ticks,n=O7e(e),i=Math.min(r.maxTicksLimit||n,n),o=r.major.enabled?A7e(t):[],a=o.length,s=o[0],l=o[a-1],u=[];if(a>i)return I7e(t,u,o,a/i),u;const d=M7e(o,t,i);if(a>0){let p,h;const m=a>1?Math.round((l-s)/(a-1)):null;for(Xm(t,u,d,Pr(m)?0:s-m,s),p=0,h=a-1;p<h;p++)Xm(t,u,d,o[p],o[p+1]);return Xm(t,u,d,l,Pr(m)?t.length:l+m),u}return Xm(t,u,d),u}function O7e(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),i=e._maxLength/r;return Math.floor(Math.min(n,i))}function M7e(e,t,r){const n=$7e(e),i=t.length/r;if(!n)return Math.max(i,1);const o=P8e(n);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function A7e(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}function I7e(e,t,r,n){let i=0,o=r[0],a;for(n=Math.ceil(n),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=r[i*n])}function Xm(e,t,r,n,i){const o=mt(n,0),a=Math.min(mt(i,e.length),e.length);let s=0,l,u,d;for(r=Math.ceil(r),i&&(l=i-n,r=l/Math.floor(l/r)),d=o;d<0;)s++,d=Math.round(o+s*r);for(u=Math.max(o,0);u<a;u++)u===d&&(t.push(e[u]),s++,d=Math.round(o+s*r))}function $7e(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}const D7e=e=>e==="left"?"right":e==="right"?"left":e,vN=(e,t,r)=>t==="top"||t==="left"?e[t]+r:e[t]-r,yN=(e,t)=>Math.min(t||e,e);function bN(e,t){const r=[],n=e.length/t,i=e.length;let o=0;for(;o<i;o+=n)r.push(e[Math.floor(o)]);return r}function L7e(e,t,r){const n=e.ticks.length,i=Math.min(t,n-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(r&&(n===1?u=Math.max(l-o,a-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-s||l>a+s)))return l}function k7e(e,t){Wt(e,r=>{const n=r.gc,i=n.length/2;let o;if(i>t){for(o=0;o<i;++o)delete r.data[n[o]];n.splice(0,i)}})}function nf(e){return e.drawTicks?e.tickLength:0}function xN(e,t){if(!e.display)return 0;const r=ln(e.font,t),n=Nn(e.padding);return(ar(e.text)?e.text.length:1)*r.lineHeight+n.height}function N7e(e,t){return lu(e,{scale:t,type:"scale"})}function F7e(e,t,r){return lu(e,{tick:r,index:t,type:"tick"})}function j7e(e,t,r){let n=_4(e);return(r&&t!=="right"||!r&&t==="right")&&(n=D7e(n)),n}function B7e(e,t,r,n){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:u,scales:d}=l;let p=0,h,m,g;const y=a-i,x=s-o;if(e.isHorizontal()){if(m=ci(n,o,s),yt(r)){const b=Object.keys(r)[0],S=r[b];g=d[b].getPixelForValue(S)+y-t}else r==="center"?g=(u.bottom+u.top)/2+y-t:g=vN(e,r,t);h=s-o}else{if(yt(r)){const b=Object.keys(r)[0],S=r[b];m=d[b].getPixelForValue(S)-x+t}else r==="center"?m=(u.left+u.right)/2-x+t:m=vN(e,r,t);g=ci(n,a,i),p=r==="left"?-kn:kn}return{titleX:m,titleY:g,maxWidth:h,rotation:p}}class sd extends Ki{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,r){return t}getUserBounds(){let{_userMin:t,_userMax:r,_suggestedMin:n,_suggestedMax:i}=this;return t=To(t,Number.POSITIVE_INFINITY),r=To(r,Number.NEGATIVE_INFINITY),n=To(n,Number.POSITIVE_INFINITY),i=To(i,Number.NEGATIVE_INFINITY),{min:To(t,n),max:To(r,i),minDefined:cn(t),maxDefined:cn(r)}}getMinMax(t){let{min:r,max:n,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:r,max:n};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)a=s[l].controller.getMinMax(this,t),i||(r=Math.min(r,a.min)),o||(n=Math.max(n,a.max));return r=o&&r>n?n:r,n=i&&r>n?r:n,{min:To(r,To(n,r)),max:To(n,To(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Kt(this.options.beforeUpdate,[this])}update(t,r,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=l9e(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?bN(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=P7e(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,t=!t),this._startPixel=r,this._endPixel=n,this._reversePixels=t,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Kt(this.options.afterUpdate,[this])}beforeSetDimensions(){Kt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Kt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Kt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Kt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const r=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=Kt(r.callback,[o.value,n,t],this)}afterTickToLabelConversion(){Kt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Kt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,r=t.ticks,n=yN(this.ticks.length,t.ticks.maxTicksLimit),i=r.minRotation||0,o=r.maxRotation;let a=i,s,l,u;if(!this._isVisible()||!r.display||i>=o||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,h=d.highest.height,m=Di(this.chart.width-p,0,this.maxWidth);s=t.offset?this.maxWidth/n:m/(n-1),p+6>s&&(s=m/(n-(t.offset?.5:1)),l=this.maxHeight-nf(t.grid)-r.padding-xN(t.title,this.chart.options.font),u=Math.sqrt(p*p+h*h),a=v4(Math.min(Math.asin(Di((d.highest.height+6)/s,-1,1)),Math.asin(Di(l/u,-1,1))-Math.asin(Di(h/u,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Kt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Kt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:r,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=xN(i,r.options.font);if(s?(t.width=this.maxWidth,t.height=nf(o)+l):(t.height=this.maxHeight,t.width=nf(o)+l),n.display&&this.ticks.length){const{first:u,last:d,widest:p,highest:h}=this._getLabelSizes(),m=n.padding*2,g=Sn(this.labelRotation),y=Math.cos(g),x=Math.sin(g);if(s){const b=n.mirror?0:x*p.width+y*h.height;t.height=Math.min(this.maxHeight,t.height+b+m)}else{const b=n.mirror?0:y*p.width+x*h.height;t.width=Math.min(this.maxWidth,t.width+b+m)}this._calculatePadding(u,d,x,y)}}this._handleMargins(),s?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,r,n,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,m=0;l?u?(h=i*t.width,m=n*r.height):(h=n*t.height,m=i*r.width):o==="start"?m=r.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,m=r.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-p+a)*this.width/(this.width-p),0)}else{let d=r.height/2,p=t.height/2;o==="start"?(d=0,p=t.height):o==="end"&&(d=r.height,p=0),this.paddingTop=d+a,this.paddingBottom=p+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Kt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:r}=this.options;return r==="top"||r==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let r,n;for(r=0,n=t.length;r<n;r++)Pr(t[r].label)&&(t.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=bN(n,r)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,r,n){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(r/yN(r,n));let u=0,d=0,p,h,m,g,y,x,b,S,w,_,O;for(p=0;p<r;p+=l){if(g=t[p].label,y=this._resolveTickFontOptions(p),i.font=x=y.string,b=o[x]=o[x]||{data:{},gc:[]},S=y.lineHeight,w=_=0,!Pr(g)&&!ar(g))w=X2(i,b.data,b.gc,w,g),_=S;else if(ar(g))for(h=0,m=g.length;h<m;++h)O=g[h],!Pr(O)&&!ar(O)&&(w=X2(i,b.data,b.gc,w,O),_+=S);a.push(w),s.push(_),u=Math.max(w,u),d=Math.max(_,d)}k7e(o,r);const C=a.indexOf(u),T=s.indexOf(d),M=D=>({width:a[D]||0,height:s[D]||0});return{first:M(0),last:M(r-1),widest:M(C),highest:M(T),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,r){return NaN}getValueForPixel(t){}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const r=this._startPixel+t*this._length;return $8e(this._alignToPixels?tl(this.chart,r,0):r)}getDecimalForPixel(t){const r=(t-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:r}=this;return t<0&&r<0?r:t>0&&r>0?t:0}getContext(t){const r=this.ticks||[];if(t>=0&&t<r.length){const n=r[t];return n.$context||(n.$context=F7e(this.getContext(),t,n))}return this.$context||(this.$context=N7e(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,r=Sn(this.labelRotation),n=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const r=this.axis,n=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,u=this.isHorizontal(),p=this.ticks.length+(l?1:0),h=nf(o),m=[],g=s.setContext(this.getContext()),y=g.display?g.width:0,x=y/2,b=function(j){return tl(n,j,y)};let S,w,_,O,C,T,M,D,$,N,B,q;if(a==="top")S=b(this.bottom),T=this.bottom-h,D=S-x,N=b(t.top)+x,q=t.bottom;else if(a==="bottom")S=b(this.top),N=t.top,q=b(t.bottom)-x,T=S+x,D=this.top+h;else if(a==="left")S=b(this.right),C=this.right-h,M=S-x,$=b(t.left)+x,B=t.right;else if(a==="right")S=b(this.left),$=t.left,B=b(t.right)-x,C=S+x,M=this.left+h;else if(r==="x"){if(a==="center")S=b((t.top+t.bottom)/2+.5);else if(yt(a)){const j=Object.keys(a)[0],V=a[j];S=b(this.chart.scales[j].getPixelForValue(V))}N=t.top,q=t.bottom,T=S+x,D=T+h}else if(r==="y"){if(a==="center")S=b((t.left+t.right)/2);else if(yt(a)){const j=Object.keys(a)[0],V=a[j];S=b(this.chart.scales[j].getPixelForValue(V))}C=S-x,M=C-h,$=t.left,B=t.right}const U=mt(i.ticks.maxTicksLimit,p),F=Math.max(1,Math.ceil(p/U));for(w=0;w<p;w+=F){const j=this.getContext(w),V=o.setContext(j),z=s.setContext(j),Q=V.lineWidth,oe=V.color,ae=z.dash||[],he=z.dashOffset,Ae=V.tickWidth,ve=V.tickColor,fe=V.tickBorderDash||[],Ee=V.tickBorderDashOffset;_=L7e(this,w,l),_!==void 0&&(O=tl(n,_,Q),u?C=M=$=B=O:T=D=N=q=O,m.push({tx1:C,ty1:T,tx2:M,ty2:D,x1:$,y1:N,x2:B,y2:q,width:Q,color:oe,borderDash:ae,borderDashOffset:he,tickWidth:Ae,tickColor:ve,tickBorderDash:fe,tickBorderDashOffset:Ee}))}return this._ticksLength=p,this._borderValue=S,m}_computeLabelItems(t){const r=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:d,mirror:p}=o,h=nf(n.grid),m=h+d,g=p?-d:m,y=-Sn(this.labelRotation),x=[];let b,S,w,_,O,C,T,M,D,$,N,B,q="middle";if(i==="top")C=this.bottom-g,T=this._getXAxisLabelAlignment();else if(i==="bottom")C=this.top+g,T=this._getXAxisLabelAlignment();else if(i==="left"){const F=this._getYAxisLabelAlignment(h);T=F.textAlign,O=F.x}else if(i==="right"){const F=this._getYAxisLabelAlignment(h);T=F.textAlign,O=F.x}else if(r==="x"){if(i==="center")C=(t.top+t.bottom)/2+m;else if(yt(i)){const F=Object.keys(i)[0],j=i[F];C=this.chart.scales[F].getPixelForValue(j)+m}T=this._getXAxisLabelAlignment()}else if(r==="y"){if(i==="center")O=(t.left+t.right)/2-m;else if(yt(i)){const F=Object.keys(i)[0],j=i[F];O=this.chart.scales[F].getPixelForValue(j)}T=this._getYAxisLabelAlignment(h).textAlign}r==="y"&&(l==="start"?q="top":l==="end"&&(q="bottom"));const U=this._getLabelSizes();for(b=0,S=s.length;b<S;++b){w=s[b],_=w.label;const F=o.setContext(this.getContext(b));M=this.getPixelForTick(b)+o.labelOffset,D=this._resolveTickFontOptions(b),$=D.lineHeight,N=ar(_)?_.length:1;const j=N/2,V=F.color,z=F.textStrokeColor,Q=F.textStrokeWidth;let oe=T;a?(O=M,T==="inner"&&(b===S-1?oe=this.options.reverse?"left":"right":b===0?oe=this.options.reverse?"right":"left":oe="center"),i==="top"?u==="near"||y!==0?B=-N*$+$/2:u==="center"?B=-U.highest.height/2-j*$+$:B=-U.highest.height+$/2:u==="near"||y!==0?B=$/2:u==="center"?B=U.highest.height/2-j*$:B=U.highest.height-N*$,p&&(B*=-1),y!==0&&!F.showLabelBackdrop&&(O+=$/2*Math.sin(y))):(C=M,B=(1-N)*$/2);let ae;if(F.showLabelBackdrop){const he=Nn(F.backdropPadding),Ae=U.heights[b],ve=U.widths[b];let fe=B-he.top,Ee=0-he.left;switch(q){case"middle":fe-=Ae/2;break;case"bottom":fe-=Ae;break}switch(T){case"center":Ee-=ve/2;break;case"right":Ee-=ve;break}ae={left:Ee,top:fe,width:ve+he.width,height:Ae+he.height,color:F.backdropColor}}x.push({label:_,font:D,textOffset:B,options:{rotation:y,color:V,strokeColor:z,strokeWidth:Q,textAlign:oe,textBaseline:q,translation:[O,C],backdrop:ae}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:r}=this.options;if(-Sn(this.labelRotation))return t==="top"?"left":"right";let i="center";return r.align==="start"?i="left":r.align==="end"?i="right":r.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:r,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let u,d;return r==="left"?i?(d=this.right+o,n==="near"?u="left":n==="center"?(u="center",d+=l/2):(u="right",d+=l)):(d=this.right-s,n==="near"?u="right":n==="center"?(u="center",d-=l/2):(u="left",d=this.left)):r==="right"?i?(d=this.left+o,n==="near"?u="right":n==="center"?(u="center",d-=l/2):(u="left",d-=l)):(d=this.left+s,n==="near"?u="left":n==="center"?(u="center",d+=l/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:r},left:n,top:i,width:o,height:a}=this;r&&(t.save(),t.fillStyle=r,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?r.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const r=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,u,d)=>{!d.width||!d.color||(n.save(),n.lineWidth=d.width,n.strokeStyle=d.color,n.setLineDash(d.borderDash||[]),n.lineDashOffset=d.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(u.x,u.y),n.stroke(),n.restore())};if(r.display)for(o=0,a=i.length;o<a;++o){const l=i[o];r.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:r,options:{border:n,grid:i}}=this,o=n.setContext(this.getContext()),a=n.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,d,p,h;this.isHorizontal()?(u=tl(t,this.left,a)-a/2,d=tl(t,this.right,s)+s/2,p=h=l):(p=tl(t,this.top,a)-a/2,h=tl(t,this.bottom,s)+s/2,u=d=l),r.save(),r.lineWidth=o.width,r.strokeStyle=o.color,r.beginPath(),r.moveTo(u,p),r.lineTo(d,h),r.stroke(),r.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,i=this._computeLabelArea();i&&ch(n,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,u=a.label,d=a.textOffset;Yv(n,u,0,d,l,s)}i&&dh(n)}drawTitle(){const{ctx:t,options:{position:r,title:n,reverse:i}}=this;if(!n.display)return;const o=ln(n.font),a=Nn(n.padding),s=n.align;let l=o.lineHeight/2;r==="bottom"||r==="center"||yt(r)?(l+=a.bottom,ar(n.text)&&(l+=o.lineHeight*(n.text.length-1))):l+=a.top;const{titleX:u,titleY:d,maxWidth:p,rotation:h}=B7e(this,l,r,s);Yv(t,n.text,0,0,o,{color:n.color,maxWidth:p,rotation:h,textAlign:j7e(s,r,i),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,r=t.ticks&&t.ticks.z||0,n=mt(t.grid&&t.grid.z,-1),i=mt(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==sd.prototype.draw?[{z:r,draw:o=>{this.draw(o)}}]:[{z:n,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:r,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=r.length;o<a;++o){const s=r[o];s[n]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const r=this.options.ticks.setContext(this.getContext(t));return ln(r.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ym{constructor(t,r,n){this.type=t,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const r=Object.getPrototypeOf(t);let n;H7e(r)&&(n=this.register(r));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,U7e(t,a,n),this.override&&Or.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const r=this.items,n=t.id,i=this.scope;n in r&&delete r[n],i&&n in Or[i]&&(delete Or[i][n],this.override&&delete Vl[n])}}function U7e(e,t,r){const n=fp(Object.create(null),[r?Or.get(r):{},Or.get(t),e.defaults]);Or.set(t,n),e.defaultRoutes&&q7e(t,e.defaultRoutes),e.descriptors&&Or.describe(t,e.descriptors)}function q7e(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),i=n.pop(),o=[e].concat(n).join("."),a=t[r].split("."),s=a.pop(),l=a.join(".");Or.route(o,i,l,s)})}function H7e(e){return"id"in e&&"defaults"in e}class W7e{constructor(){this.controllers=new Ym(jf,"datasets",!0),this.elements=new Ym(Ki,"elements"),this.plugins=new Ym(Object,"plugins"),this.scales=new Ym(sd,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,r,n){[...r].forEach(i=>{const o=n||this._getRegistryForType(i);n||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Wt(i,a=>{const s=n||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,r,n){const i=dO(t);Kt(n["before"+i],[],n),r[t](n),Kt(n["after"+i],[],n)}_getRegistryForType(t){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(t))return n}return this.plugins}_get(t,r,n){const i=r.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Ro=new W7e;class z7e{constructor(){this._init=[]}notify(t,r,n,i){r==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,r,n);return r==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,r,n,i){i=i||{};for(const o of t){const a=o.plugin,s=a[n],l=[r,i,o.options];if(Kt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){Pr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),r}_createDescriptors(t,r){const n=t&&t.config,i=mt(n.options&&n.options.plugins,{}),o=V7e(n);return i===!1&&!r?[]:K7e(t,o,i,r)}_notifyStateChanges(t){const r=this._oldCache||[],n=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(r,n),t,"stop"),this._notify(i(n,r),t,"start")}}function V7e(e){const t={},r=[],n=Object.keys(Ro.plugins.items);for(let o=0;o<n.length;o++)r.push(Ro.getPlugin(n[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];r.indexOf(a)===-1&&(r.push(a),t[a.id]=!0)}return{plugins:r,localIds:t}}function G7e(e,t){return!t&&e===!1?null:e===!0?{}:e}function K7e(e,{plugins:t,localIds:r},n,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,u=G7e(n[l],i);u!==null&&o.push({plugin:s,options:X7e(e.config,{plugin:s,local:r[l]},u,a)})}return o}function X7e(e,{plugin:t,local:r},n,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(n,o);return r&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hE(e,t){const r=Or.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function Y7e(e,t){let r=e;return e==="_index_"?r=t:e==="_value_"&&(r=t==="x"?"y":"x"),r}function Z7e(e,t){return e===t?"_index_":"_value_"}function wN(e){if(e==="x"||e==="y"||e==="r")return e}function J7e(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function mE(e,...t){if(wN(e))return e;for(const r of t){const n=r.axis||J7e(r.position)||e.length>1&&wN(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function _N(e,t,r){if(r[t+"AxisID"]===e)return{axis:t}}function Q7e(e,t){if(t.data&&t.data.datasets){const r=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(r.length)return _N(e,"x",r[0])||_N(e,"y",r[0])}return{}}function eGe(e,t){const r=Vl[e.type]||{scales:{}},n=t.scales||{},i=hE(e.type,t),o=Object.create(null);return Object.keys(n).forEach(a=>{const s=n[a];if(!yt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=mE(a,s,Q7e(a,e),Or.scales[s.type]),u=Z7e(l,i),d=r.scales||{};o[a]=Lf(Object.create(null),[{axis:l},s,d[l],d[u]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||hE(s,t),d=(Vl[s]||{}).scales||{};Object.keys(d).forEach(p=>{const h=Y7e(p,l),m=a[h+"AxisID"]||h;o[m]=o[m]||Object.create(null),Lf(o[m],[{axis:h},n[m],d[p]])})}),Object.keys(o).forEach(a=>{const s=o[a];Lf(s,[Or.scales[s.type],Or.scale])}),o}function z4(e){const t=e.options||(e.options={});t.plugins=mt(t.plugins,{}),t.scales=eGe(e,t)}function V4(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function tGe(e){return e=e||{},e.data=V4(e.data),z4(e),e}const CN=new Map,G4=new Set;function Zm(e,t){let r=CN.get(e);return r||(r=t(),CN.set(e,r),G4.add(r)),r}const of=(e,t,r)=>{const n=Gv(t,r);n!==void 0&&e.add(n)};class rGe{constructor(t){this._config=tGe(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=V4(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),z4(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zm(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,r){return Zm(`${t}.transition.${r}`,()=>[[`datasets.${t}.transitions.${r}`,`transitions.${r}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,r){return Zm(`${t}-${r}`,()=>[[`datasets.${t}.elements.${r}`,`datasets.${t}`,`elements.${r}`,""]])}pluginScopeKeys(t){const r=t.id,n=this.type;return Zm(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,r){const n=this._scopeCache;let i=n.get(t);return(!i||r)&&(i=new Map,n.set(t,i)),i}getOptionScopes(t,r,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),s=a.get(r);if(s)return s;const l=new Set;r.forEach(d=>{t&&(l.add(t),d.forEach(p=>of(l,t,p))),d.forEach(p=>of(l,i,p)),d.forEach(p=>of(l,Vl[o]||{},p)),d.forEach(p=>of(l,Or,p)),d.forEach(p=>of(l,fE,p))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),G4.has(r)&&a.set(r,u),u}chartOptionScopes(){const{options:t,type:r}=this;return[t,Vl[r]||{},Or.datasets[r]||{},{type:r},Or,fE]}resolveNamedOptions(t,r,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=TN(this._resolverCache,t,i);let l=a;if(iGe(a,r)){o.$shared=!1,n=Yn(n)?n():n;const u=this.createResolver(t,n,s);l=$c(a,n,u)}for(const u of r)o[u]=l[u];return o}createResolver(t,r,n=[""],i){const{resolver:o}=TN(this._resolverCache,t,n);return yt(r)?$c(o,r,void 0,i):o}}function TN(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const i=r.join();let o=n.get(i);return o||(o={resolver:mO(t,r),subPrefixes:r.filter(s=>!s.toLowerCase().includes("hover"))},n.set(i,o)),o}const nGe=e=>yt(e)&&Object.getOwnPropertyNames(e).reduce((t,r)=>t||Yn(e[r]),!1);function iGe(e,t){const{isScriptable:r,isIndexable:n}=R4(e);for(const i of t){const o=r(i),a=n(i),s=(a||o)&&e[i];if(o&&(Yn(s)||nGe(s))||a&&ar(s))return!0}return!1}var oGe="4.4.0";const aGe=["top","bottom","left","right","chartArea"];function SN(e,t){return e==="top"||e==="bottom"||aGe.indexOf(e)===-1&&t==="x"}function EN(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function RN(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),Kt(r&&r.onComplete,[e],t)}function sGe(e){const t=e.chart,r=t.options.animation;Kt(r&&r.onProgress,[e],t)}function K4(e){return I4()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Pg={},PN=e=>{const t=K4(e);return Object.values(Pg).filter(r=>r.canvas===t).pop()};function lGe(e,t,r){const n=Object.keys(e);for(const i of n){const o=+i;if(o>=t){const a=e[i];delete e[i],(r>0||o>t)&&(e[o+r]=a)}}}function uGe(e,t,r,n){return!r||e.type==="mouseout"?null:n?t:e}function Jm(e,t,r){return e.options.clip?e[r]:t[r]}function cGe(e,t){const{xScale:r,yScale:n}=e;return r&&n?{left:Jm(r,t,"left"),right:Jm(r,t,"right"),top:Jm(n,t,"top"),bottom:Jm(n,t,"bottom")}:t}var Qa;let $l=(Qa=class{static register(...t){Ro.add(...t),ON()}static unregister(...t){Ro.remove(...t),ON()}constructor(t,r){const n=this.config=new rGe(r),i=K4(t),o=PN(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||R7e(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,u=l&&l.height,d=l&&l.width;if(this.id=x8e(),this.ctx=s,this.canvas=l,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new z7e,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=F8e(p=>this.update(p),a.resizeDelay||0),this._dataChanges=[],Pg[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}sa.listen(this,"complete",RN),sa.listen(this,"progress",sGe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:r},width:n,height:i,_aspectRatio:o}=this;return Pr(t)?r&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ro}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Q2(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Y2(this.canvas,this.ctx),this}stop(){return sa.stop(this),this}resize(t,r){sa.running(this)?this._resizeBeforeDraw={width:t,height:r}:this._resize(t,r)}_resize(t,r){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,r,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Q2(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Kt(n.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};Wt(r,(n,i)=>{n.id=i})}buildOrUpdateScales(){const t=this.options,r=t.scales,n=this.scales,i=Object.keys(n).reduce((a,s)=>(a[s]=!1,a),{});let o=[];r&&(o=o.concat(Object.keys(r).map(a=>{const s=r[a],l=mE(a,s),u=l==="r",d=l==="x";return{options:s,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Wt(o,a=>{const s=a.options,l=s.id,u=mE(l,s),d=mt(s.type,a.dtype);(s.position===void 0||SN(s.position,u)!==SN(a.dposition))&&(s.position=a.dposition),i[l]=!0;let p=null;if(l in n&&n[l].type===d)p=n[l];else{const h=Ro.getScale(d);p=new h({id:l,type:d,ctx:this.ctx,chart:this}),n[p.id]=p}p.init(s,t)}),Wt(i,(a,s)=>{a||delete n[s]}),Wt(n,a=>{ps.configure(this,a,a.options),ps.addBox(this,a)})}_updateMetasets(){const t=this._metasets,r=this.data.datasets.length,n=t.length;if(t.sort((i,o)=>i.index-o.index),n>r){for(let i=r;i<n;++i)this._destroyDatasetMeta(i);t.splice(r,n-r)}this._sortedMetasets=t.slice(0).sort(EN("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:r}}=this;t.length>r.length&&delete this._stacks,t.forEach((n,i)=>{r.filter(o=>o===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],r=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=r.length;n<i;n++){const o=r[n];let a=this.getDatasetMeta(n);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(n),a=this.getDatasetMeta(n)),a.type=s,a.indexAxis=o.indexAxis||hE(s,this.options),a.order=o.order||0,a.index=n,a.label=""+o.label,a.visible=this.isDatasetVisible(n),a.controller)a.controller.updateIndex(n),a.controller.linkScales();else{const l=Ro.getController(s),{datasetElementType:u,dataElementType:d}=Or.datasets[s];Object.assign(l,{dataElementType:Ro.getElement(d),datasetElementType:u&&Ro.getElement(u)}),a.controller=new l(this,n),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Wt(this.data.datasets,(t,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:p}=this.getDatasetMeta(u),h=!i&&o.indexOf(p)===-1;p.buildOrUpdateElements(h),a=Math.max(+p.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||Wt(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(EN("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Wt(this.scales,t=>{ps.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!U2(r,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of r){const a=n==="_removeElements"?-o:o;lGe(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=n(0);for(let o=1;o<r;o++)if(!U2(i,n(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ps.update(this,this.width,this.height,t);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],Wt(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Yn(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,r){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(n.controller._update(r),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(sa.has(this)?this.attached&&!sa.running(this)&&sa.start(this):(this.draw(),RN({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:i}=this._resizeBeforeDraw;this._resize(n,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const r=this._sortedMetasets,n=[];let i,o;for(i=0,o=r.length;i<o;++i){const a=r[i];(!t||a.visible)&&n.push(a)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)this._drawDataset(t[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const r=this.ctx,n=t._clip,i=!n.disabled,o=cGe(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&ch(r,{left:n.left===!1?0:o.left-n.left,right:n.right===!1?this.width:o.right+n.right,top:n.top===!1?0:o.top-n.top,bottom:n.bottom===!1?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&dh(r),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return pp(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,r,n,i){const o=a7e.modes[r];return typeof o=="function"?o(this,t,n,i):[]}getDatasetMeta(t){const r=this.data.datasets[t],n=this._metasets;let i=n.filter(o=>o&&o._dataset===r).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:t,_dataset:r,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=lu(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const r=this.data.datasets[t];if(!r)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(t,r){const n=this.getDatasetMeta(t);n.hidden=!r}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,r,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);mi(r)?(o.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,r){this._updateVisibility(t,r,!1)}show(t,r){this._updateVisibility(t,r,!0)}_destroyDatasetMeta(t){const r=this._metasets[t];r&&r.controller&&r.controller._destroy(),delete this._metasets[t]}_stop(){let t,r;for(this.stop(),sa.remove(this),t=0,r=this.data.datasets.length;t<r;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:r}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Y2(t,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete Pg[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,r=this.platform,n=(o,a)=>{r.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Wt(this.options.events,o=>n(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,r=this.platform,n=(l,u)=>{r.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(r.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",s)},r.isAttached(this.canvas)?s():a()}unbindEvents(){Wt(this._listeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._listeners={},Wt(this._responsiveListeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,r,n){const i=n?"set":"remove";let o,a,s,l;for(r==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const r=this._active||[],n=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!zv(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(t,r,n){return this._plugins.notify(this,t,r,n)}isPluginEnabled(t){return this._plugins._cache.filter(r=>r.plugin.id===t).length===1}_updateHoverStyles(t,r,n){const i=this.options.hover,o=(l,u)=>l.filter(d=>!u.some(p=>d.datasetIndex===p.datasetIndex&&d.index===p.index)),a=o(r,t),s=n?t:o(t,r);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,r){const n={event:t,replay:r,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const o=this._handleEvent(t,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,r,n){const{_active:i=[],options:o}=this,a=r,s=this._getActiveElements(t,i,n,a),l=E8e(t),u=uGe(t,this._lastEvent,n,l);n&&(this._lastEvent=null,Kt(o.onHover,[t,s,this],this),l&&Kt(o.onClick,[t,s,this],this));const d=!zv(s,i);return(d||r)&&(this._active=s,this._updateHoverStyles(s,i,r)),this._lastEvent=u,d}_getActiveElements(t,r,n,i){if(t.type==="mouseout")return[];if(!n)return r;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},nt(Qa,"defaults",Or),nt(Qa,"instances",Pg),nt(Qa,"overrides",Vl),nt(Qa,"registry",Ro),nt(Qa,"version",oGe),nt(Qa,"getChart",PN),Qa);function ON(){return Wt($l.instances,e=>e._plugins.invalidate())}function X4(e,t,r=t){e.lineCap=mt(r.borderCapStyle,t.borderCapStyle),e.setLineDash(mt(r.borderDash,t.borderDash)),e.lineDashOffset=mt(r.borderDashOffset,t.borderDashOffset),e.lineJoin=mt(r.borderJoinStyle,t.borderJoinStyle),e.lineWidth=mt(r.borderWidth,t.borderWidth),e.strokeStyle=mt(r.borderColor,t.borderColor)}function dGe(e,t,r){e.lineTo(r.x,r.y)}function fGe(e){return e.stepped?J8e:e.tension||e.cubicInterpolationMode==="monotone"?Q8e:dGe}function Y4(e,t,r={}){const n=e.length,{start:i=0,end:o=n-1}=r,{start:a,end:s}=t,l=Math.max(i,a),u=Math.min(o,s),d=i<a&&o<a||i>s&&o>s;return{count:n,start:l,loop:t.loop,ilen:u<l&&!d?n+u-l:u-l}}function pGe(e,t,r,n){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:u}=Y4(i,r,n),d=fGe(o);let{move:p=!0,reverse:h}=n||{},m,g,y;for(m=0;m<=u;++m)g=i[(s+(h?u-m:m))%a],!g.skip&&(p?(e.moveTo(g.x,g.y),p=!1):d(e,y,g,h,o.stepped),y=g);return l&&(g=i[(s+(h?u:0))%a],d(e,y,g,h,o.stepped)),!!l}function hGe(e,t,r,n){const i=t.points,{count:o,start:a,ilen:s}=Y4(i,r,n),{move:l=!0,reverse:u}=n||{};let d=0,p=0,h,m,g,y,x,b;const S=_=>(a+(u?s-_:_))%o,w=()=>{y!==x&&(e.lineTo(d,x),e.lineTo(d,y),e.lineTo(d,b))};for(l&&(m=i[S(0)],e.moveTo(m.x,m.y)),h=0;h<=s;++h){if(m=i[S(h)],m.skip)continue;const _=m.x,O=m.y,C=_|0;C===g?(O<y?y=O:O>x&&(x=O),d=(p*d+_)/++p):(w(),e.lineTo(_,O),g=C,p=0,y=x=O),b=O}w()}function gE(e){const t=e.options,r=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!r?hGe:pGe}function mGe(e){return e.stepped?I9e:e.tension||e.cubicInterpolationMode==="monotone"?$9e:pl}function gGe(e,t,r,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,r,n)&&i.closePath()),X4(e,t.options),e.stroke(i)}function vGe(e,t,r,n){const{segments:i,options:o}=t,a=gE(t);for(const s of i)X4(e,o,s.style),e.beginPath(),a(e,t,s,{start:r,end:r+n-1})&&e.closePath(),e.stroke()}const yGe=typeof Path2D=="function";function bGe(e,t,r,n){yGe&&!t.options.segment?gGe(e,t,r,n):vGe(e,t,r,n)}class hs extends Ki{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,r){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;T9e(this._points,n,t,i,r),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=j9e(this,this.options.segment))}first(){const t=this.segments,r=this.points;return t.length&&r[t[0].start]}last(){const t=this.segments,r=this.points,n=t.length;return n&&r[t[n-1].end]}interpolate(t,r){const n=this.options,i=t[r],o=this.points,a=N4(this,{property:r,start:i,end:i});if(!a.length)return;const s=[],l=mGe(n);let u,d;for(u=0,d=a.length;u<d;++u){const{start:p,end:h}=a[u],m=o[p],g=o[h];if(m===g){s.push(m);continue}const y=Math.abs((i-m[r])/(g[r]-m[r])),x=l(m,g,y,n.stepped);x[r]=t[r],s.push(x)}return s.length===1?s[0]:s}pathSegment(t,r,n){return gE(this)(t,this,r,n)}path(t,r,n){const i=this.segments,o=gE(this);let a=this._loop;r=r||0,n=n||this.points.length-r;for(const s of i)a&=o(t,this,s,{start:r,end:r+n-1});return!!a}draw(t,r,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),bGe(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}nt(hs,"id","line"),nt(hs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),nt(hs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),nt(hs,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function MN(e,t,r,n){const i=e.options,{[r]:o}=e.getProps([r],n);return Math.abs(t-o)<i.radius+i.hitRadius}class Og extends Ki{constructor(r){super();nt(this,"parsed");nt(this,"skip");nt(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,r&&Object.assign(this,r)}inRange(r,n,i){const o=this.options,{x:a,y:s}=this.getProps(["x","y"],i);return Math.pow(r-a,2)+Math.pow(n-s,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(r,n){return MN(this,r,"x",n)}inYRange(r,n){return MN(this,r,"y",n)}getCenterPoint(r){const{x:n,y:i}=this.getProps(["x","y"],r);return{x:n,y:i}}size(r){r=r||this.options||{};let n=r.radius||0;n=Math.max(n,n&&r.hoverRadius||0);const i=n&&r.borderWidth||0;return(n+i)*2}draw(r,n){const i=this.options;this.skip||i.radius<.1||!pp(this,n,this.size(i)/2)||(r.strokeStyle=i.borderColor,r.lineWidth=i.borderWidth,r.fillStyle=i.backgroundColor,pE(r,i,this.x,this.y))}getRange(){const r=this.options||{};return r.radius+r.hitRadius}}nt(Og,"id","point"),nt(Og,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),nt(Og,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function xGe(e,t,r){const n=e.segments,i=e.points,o=t.points,a=[];for(const s of n){let{start:l,end:u}=s;u=wO(l,u,i);const d=vE(r,i[l],i[u],s.loop);if(!t.segments){a.push({source:s,target:d,start:i[l],end:i[u]});continue}const p=N4(t,d);for(const h of p){const m=vE(r,o[h.start],o[h.end],h.loop),g=k4(s,i,m);for(const y of g)a.push({source:y,target:h,start:{[r]:AN(d,m,"start",Math.max)},end:{[r]:AN(d,m,"end",Math.min)}})}}return a}function vE(e,t,r,n){if(n)return;let i=t[e],o=r[e];return e==="angle"&&(i=Oo(i),o=Oo(o)),{property:e,start:i,end:o}}function wGe(e,t){const{x:r=null,y:n=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=wO(a,s,i);const l=i[a],u=i[s];n!==null?(o.push({x:l.x,y:n}),o.push({x:u.x,y:n})):r!==null&&(o.push({x:r,y:l.y}),o.push({x:r,y:u.y}))}),o}function wO(e,t,r){for(;t>e;t--){const n=r[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function AN(e,t,r,n){return e&&t?n(e[r],t[r]):e?e[r]:t?t[r]:0}function Z4(e,t){let r=[],n=!1;return ar(e)?(n=!0,r=e):r=wGe(e,t),r.length?new hs({points:r,options:{tension:0},_loop:n,_fullLoop:n}):null}function IN(e){return e&&e.fill!==!1}function _Ge(e,t,r){let i=e[t].fill;const o=[t];let a;if(!r)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!cn(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function CGe(e,t,r){const n=RGe(e);if(yt(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return cn(i)&&Math.floor(i)===i?TGe(n[0],t,i,r):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function TGe(e,t,r,n){return(e==="-"||e==="+")&&(r=t+r),r===t||r<0||r>=n?!1:r}function SGe(e,t){let r=null;return e==="start"?r=t.bottom:e==="end"?r=t.top:yt(e)?r=t.getPixelForValue(e.value):t.getBasePixel&&(r=t.getBasePixel()),r}function EGe(e,t,r){let n;return e==="start"?n=r:e==="end"?n=t.options.reverse?t.min:t.max:yt(e)?n=e.value:n=t.getBaseValue(),n}function RGe(e){const t=e.options,r=t.fill;let n=mt(r&&r.target,r);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function PGe(e){const{scale:t,index:r,line:n}=e,i=[],o=n.segments,a=n.points,s=OGe(t,r);s.push(Z4({x:null,y:t.bottom},n));for(let l=0;l<o.length;l++){const u=o[l];for(let d=u.start;d<=u.end;d++)MGe(i,a[d],s)}return new hs({points:i,options:{}})}function OGe(e,t){const r=[],n=e.getMatchingVisibleMetas("line");for(let i=0;i<n.length;i++){const o=n[i];if(o.index===t)break;o.hidden||r.unshift(o.dataset)}return r}function MGe(e,t,r){const n=[];for(let i=0;i<r.length;i++){const o=r[i],{first:a,last:s,point:l}=AGe(o,t,"x");if(!(!l||a&&s)){if(a)n.unshift(l);else if(e.push(l),!s)break}}e.push(...n)}function AGe(e,t,r){const n=e.interpolate(t,r);if(!n)return{};const i=n[r],o=e.segments,a=e.points;let s=!1,l=!1;for(let u=0;u<o.length;u++){const d=o[u],p=a[d.start][r],h=a[d.end][r];if(ec(i,p,h)){s=i===p,l=i===h;break}}return{first:s,last:l,point:n}}class J4{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,r,n){const{x:i,y:o,radius:a}=this;return r=r||{start:0,end:Ni},t.arc(i,o,a,r.end,r.start,!0),!n.bounds}interpolate(t){const{x:r,y:n,radius:i}=this,o=t.angle;return{x:r+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function IGe(e){const{chart:t,fill:r,line:n}=e;if(cn(r))return $Ge(t,r);if(r==="stack")return PGe(e);if(r==="shape")return!0;const i=DGe(e);return i instanceof J4?i:Z4(i,n)}function $Ge(e,t){const r=e.getDatasetMeta(t);return r&&e.isDatasetVisible(t)?r.dataset:null}function DGe(e){return(e.scale||{}).getPointPositionForValue?kGe(e):LGe(e)}function LGe(e){const{scale:t={},fill:r}=e,n=SGe(r,t);if(cn(n)){const i=t.isHorizontal();return{x:i?n:null,y:i?null:n}}return null}function kGe(e){const{scale:t,fill:r}=e,n=t.options,i=t.getLabels().length,o=n.reverse?t.max:t.min,a=EGe(r,t,o),s=[];if(n.grid.circular){const l=t.getPointPositionForValue(0,o);return new J4({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,a));return s}function OC(e,t,r){const n=IGe(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,u=s.backgroundColor,{above:d=u,below:p=u}=l||{};n&&i.points.length&&(ch(e,r),NGe(e,{line:i,target:n,above:d,below:p,area:r,scale:o,axis:a}),dh(e))}function NGe(e,t){const{line:r,target:n,above:i,below:o,area:a,scale:s}=t,l=r._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&($N(e,n,a.top),DN(e,{line:r,target:n,color:i,scale:s,property:l}),e.restore(),e.save(),$N(e,n,a.bottom)),DN(e,{line:r,target:n,color:o,scale:s,property:l}),e.restore()}function $N(e,t,r){const{segments:n,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of n){const{start:l,end:u}=s,d=i[l],p=i[wO(l,u,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(d.x,r),e.lineTo(d.x,d.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(p.x,r)}e.lineTo(t.first().x,r),e.closePath(),e.clip()}function DN(e,t){const{line:r,target:n,property:i,color:o,scale:a}=t,s=xGe(r,n,i);for(const{source:l,target:u,start:d,end:p}of s){const{style:{backgroundColor:h=o}={}}=l,m=n!==!0;e.save(),e.fillStyle=h,FGe(e,a,m&&vE(i,d,p)),e.beginPath();const g=!!r.pathSegment(e,l);let y;if(m){g?e.closePath():LN(e,n,p,i);const x=!!n.pathSegment(e,u,{move:g,reverse:!0});y=g&&x,y||LN(e,n,d,i)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function FGe(e,t,r){const{top:n,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=r||{};o==="x"&&(e.beginPath(),e.rect(a,n,s-a,i-n),e.clip())}function LN(e,t,r,n){const i=t.interpolate(r,n);i&&e.lineTo(i.x,i.y)}var jGe={id:"filler",afterDatasetsUpdate(e,t,r){const n=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<n;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof hs&&(l={visible:e.isDatasetVisible(a),index:a,fill:CGe(s,a,n),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<n;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=_Ge(i,a,r.propagate))},beforeDraw(e,t,r){const n=r.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),n&&s.fill&&OC(e.ctx,s,o))}},beforeDatasetsDraw(e,t,r){if(r.drawTime!=="beforeDatasetsDraw")return;const n=e.getSortedVisibleDatasetMetas();for(let i=n.length-1;i>=0;--i){const o=n[i].$filler;IN(o)&&OC(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,r){const n=t.meta.$filler;!IN(n)||r.drawTime!=="beforeDatasetDraw"||OC(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const kN=(e,t)=>{let{boxHeight:r=t,boxWidth:n=t}=e;return e.usePointStyle&&(r=Math.min(r,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(t,r)}},BGe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class NN extends Ki{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,r,n){this.maxWidth=t,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let r=Kt(t.generateLabels,[this.chart],this)||[];t.filter&&(r=r.filter(n=>t.filter(n,this.chart.data))),t.sort&&(r=r.sort((n,i)=>t.sort(n,i,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:t,ctx:r}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,i=ln(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=kN(n,o);let u,d;r.font=i.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,u=this._fitCols(a,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,r,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],d=i+s;let p=t;o.textAlign="left",o.textBaseline="middle";let h=-1,m=-d;return this.legendItems.forEach((g,y)=>{const x=n+r/2+o.measureText(g.text).width;(y===0||u[u.length-1]+x+2*s>a)&&(p+=d,u[u.length-(y>0?0:1)]=0,m+=d,h++),l[y]={left:0,top:m,row:h,width:x,height:i},u[u.length-1]+=x+s}),p}_fitCols(t,r,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],d=a-t;let p=s,h=0,m=0,g=0,y=0;return this.legendItems.forEach((x,b)=>{const{itemWidth:S,itemHeight:w}=UGe(n,r,o,x,i);b>0&&m+w+2*s>d&&(p+=h+s,u.push({width:h,height:m}),g+=h+s,y++,h=m=0),l[b]={left:g,top:m,col:y,width:S,height:w},h=Math.max(h,S),m+=w+s}),p+=h,u.push({width:h,height:m}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:i},rtl:o}}=this,a=uc(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ci(n,this.left+i,this.right-this.lineWidths[s]);for(const u of r)s!==u.row&&(s=u.row,l=ci(n,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let s=0,l=ci(n,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of r)u.col!==s&&(s=u.col,l=ci(n,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ch(t,this),this._draw(),dh(t)}}_draw(){const{options:t,columnSizes:r,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,s=Or.color,l=uc(t.rtl,this.left,this.width),u=ln(a.font),{padding:d}=a,p=u.size,h=p/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:y,itemHeight:x}=kN(a,p),b=function(C,T,M){if(isNaN(g)||g<=0||isNaN(y)||y<0)return;i.save();const D=mt(M.lineWidth,1);if(i.fillStyle=mt(M.fillStyle,s),i.lineCap=mt(M.lineCap,"butt"),i.lineDashOffset=mt(M.lineDashOffset,0),i.lineJoin=mt(M.lineJoin,"miter"),i.lineWidth=D,i.strokeStyle=mt(M.strokeStyle,s),i.setLineDash(mt(M.lineDash,[])),a.usePointStyle){const $={radius:y*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:D},N=l.xPlus(C,g/2),B=T+h;S4(i,$,N,B,a.pointStyleWidth&&g)}else{const $=T+Math.max((p-y)/2,0),N=l.leftForLtr(C,g),B=lc(M.borderRadius);i.beginPath(),Object.values(B).some(q=>q!==0)?Zv(i,{x:N,y:$,w:g,h:y,radius:B}):i.rect(N,$,g,y),i.fill(),D!==0&&i.stroke()}i.restore()},S=function(C,T,M){Yv(i,M.text,C,T+x/2,u,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},w=this.isHorizontal(),_=this._computeTitleHeight();w?m={x:ci(o,this.left+d,this.right-n[0]),y:this.top+d+_,line:0}:m={x:this.left+d,y:ci(o,this.top+_+d,this.bottom-r[0].height),line:0},$4(this.ctx,t.textDirection);const O=x+d;this.legendItems.forEach((C,T)=>{i.strokeStyle=C.fontColor,i.fillStyle=C.fontColor;const M=i.measureText(C.text).width,D=l.textAlign(C.textAlign||(C.textAlign=a.textAlign)),$=g+h+M;let N=m.x,B=m.y;l.setWidth(this.width),w?T>0&&N+$+d>this.right&&(B=m.y+=O,m.line++,N=m.x=ci(o,this.left+d,this.right-n[m.line])):T>0&&B+O>this.bottom&&(N=m.x=N+r[m.line].width+d,m.line++,B=m.y=ci(o,this.top+_+d,this.bottom-r[m.line].height));const q=l.x(N);if(b(q,B,C),N=j8e(D,N+g+h,w?N+$:this.right,t.rtl),S(l.x(N),B,C),w)m.x+=$+d;else if(typeof C.text!="string"){const U=u.lineHeight;m.y+=Q4(C,U)+d}else m.y+=O}),D4(this.ctx,t.textDirection)}drawTitle(){const t=this.options,r=t.title,n=ln(r.font),i=Nn(r.padding);if(!r.display)return;const o=uc(t.rtl,this.left,this.width),a=this.ctx,s=r.position,l=n.size/2,u=i.top+l;let d,p=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+u,p=ci(t.align,p,this.right-h);else{const g=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);d=u+ci(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const m=ci(s,p,p+h);a.textAlign=o.textAlign(_4(s)),a.textBaseline="middle",a.strokeStyle=r.color,a.fillStyle=r.color,a.font=n.string,Yv(a,r.text,m,d,n)}_computeTitleHeight(){const t=this.options.title,r=ln(t.font),n=Nn(t.padding);return t.display?r.lineHeight+n.height:0}_getLegendItemAt(t,r){let n,i,o;if(ec(t,this.left,this.right)&&ec(r,this.top,this.bottom)){for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],ec(t,i.left,i.left+i.width)&&ec(r,i.top,i.top+i.height))return this.legendItems[n]}return null}handleEvent(t){const r=this.options;if(!WGe(t.type,r))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=BGe(i,n);i&&!o&&Kt(r.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&Kt(r.onHover,[t,n,this],this)}else n&&Kt(r.onClick,[t,n,this],this)}}function UGe(e,t,r,n,i){const o=qGe(n,e,t,r),a=HGe(i,n,t.lineHeight);return{itemWidth:o,itemHeight:a}}function qGe(e,t,r,n){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+r.size/2+n.measureText(i).width}function HGe(e,t,r){let n=e;return typeof t.text!="string"&&(n=Q4(t,r)),n}function Q4(e,t){const r=e.text?e.text.length:0;return t*r}function WGe(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var zGe={id:"legend",_element:NN,start(e,t,r){const n=e.legend=new NN({ctx:e.ctx,options:r,chart:e});ps.configure(e,n,r),ps.addBox(e,n)},stop(e){ps.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,r){const n=e.legend;ps.configure(e,n,r),n.options=r},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,r){const n=t.datasetIndex,i=r.chart;i.isDatasetVisible(n)?(i.hide(n),t.hidden=!0):(i.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(r?0:void 0),d=Nn(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:n||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const hf={average(e){if(!e.length)return!1;let t,r,n=0,i=0,o=0;for(t=0,r=e.length;t<r;++t){const a=e[t].element;if(a&&a.hasValue()){const s=a.tooltipPosition();n+=s.x,i+=s.y,++o}}return{x:n/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let r=t.x,n=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),d=Ic(t,u);d<i&&(i=d,s=l)}}if(s){const l=s.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function Eo(e,t){return t&&(ar(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function la(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
783
+ `)>-1?e.split(`
784
+ `):e}function VGe(e,t){const{element:r,datasetIndex:n,index:i}=t,o=e.getDatasetMeta(n).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:n,element:r}}function FN(e,t){const r=e.chart.ctx,{body:n,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=ln(t.bodyFont),u=ln(t.titleFont),d=ln(t.footerFont),p=o.length,h=i.length,m=n.length,g=Nn(t.padding);let y=g.height,x=0,b=n.reduce((_,O)=>_+O.before.length+O.lines.length+O.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,p&&(y+=p*u.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=m*_+(b-m)*l.lineHeight+(b-1)*t.bodySpacing}h&&(y+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let S=0;const w=function(_){x=Math.max(x,r.measureText(_).width+S)};return r.save(),r.font=u.string,Wt(e.title,w),r.font=l.string,Wt(e.beforeBody.concat(e.afterBody),w),S=t.displayColors?a+2+t.boxPadding:0,Wt(n,_=>{Wt(_.before,w),Wt(_.lines,w),Wt(_.after,w)}),S=0,r.font=d.string,Wt(e.footer,w),r.restore(),x+=g.width,{width:x,height:y}}function GGe(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}function KGe(e,t,r,n){const{x:i,width:o}=n,a=r.caretSize+r.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function XGe(e,t,r,n){const{x:i,width:o}=r,{width:a,chartArea:{left:s,right:l}}=e;let u="center";return n==="center"?u=i<=(s+l)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),KGe(u,e,t,r)&&(u="center"),u}function jN(e,t,r){const n=r.yAlign||t.yAlign||GGe(e,r);return{xAlign:r.xAlign||t.xAlign||XGe(e,t,r,n),yAlign:n}}function YGe(e,t){let{x:r,width:n}=e;return t==="right"?r-=n:t==="center"&&(r-=n/2),r}function ZGe(e,t,r){let{y:n,height:i}=e;return t==="top"?n+=r:t==="bottom"?n-=i+r:n-=i/2,n}function BN(e,t,r,n){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=r,u=i+o,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:m}=lc(a);let g=YGe(t,s);const y=ZGe(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(d,h)+i:s==="right"&&(g+=Math.max(p,m)+i),{x:Di(g,0,n.width-t.width),y:Di(y,0,n.height-t.height)}}function Qm(e,t,r){const n=Nn(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function UN(e){return Eo([],la(e))}function JGe(e,t,r){return lu(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function qN(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const ez={beforeTitle:oa,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return r[t.dataIndex]}return""},afterTitle:oa,beforeBody:oa,beforeLabel:oa,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const r=e.formattedValue;return Pr(r)||(t+=r),t},labelColor(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:oa,afterBody:oa,beforeFooter:oa,footer:oa,afterFooter:oa};function Wn(e,t,r,n){const i=e[t].call(r,n);return typeof i>"u"?ez[t].call(r,n):i}class yE extends Ki{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const r=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&r.options.animation&&n.animations,o=new bO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=JGe(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,r){const{callbacks:n}=r,i=Wn(n,"beforeTitle",this,t),o=Wn(n,"title",this,t),a=Wn(n,"afterTitle",this,t);let s=[];return s=Eo(s,la(i)),s=Eo(s,la(o)),s=Eo(s,la(a)),s}getBeforeBody(t,r){return UN(Wn(r.callbacks,"beforeBody",this,t))}getBody(t,r){const{callbacks:n}=r,i=[];return Wt(t,o=>{const a={before:[],lines:[],after:[]},s=qN(n,o);Eo(a.before,la(Wn(s,"beforeLabel",this,o))),Eo(a.lines,Wn(s,"label",this,o)),Eo(a.after,la(Wn(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,r){return UN(Wn(r.callbacks,"afterBody",this,t))}getFooter(t,r){const{callbacks:n}=r,i=Wn(n,"beforeFooter",this,t),o=Wn(n,"footer",this,t),a=Wn(n,"afterFooter",this,t);let s=[];return s=Eo(s,la(i)),s=Eo(s,la(o)),s=Eo(s,la(a)),s}_createItems(t){const r=this._active,n=this.chart.data,i=[],o=[],a=[];let s=[],l,u;for(l=0,u=r.length;l<u;++l)s.push(VGe(this.chart,r[l]));return t.filter&&(s=s.filter((d,p,h)=>t.filter(d,p,h,n))),t.itemSort&&(s=s.sort((d,p)=>t.itemSort(d,p,n))),Wt(s,d=>{const p=qN(t.callbacks,d);i.push(Wn(p,"labelColor",this,d)),o.push(Wn(p,"labelPointStyle",this,d)),a.push(Wn(p,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,r){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=hf[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const l=this._size=FN(this,n),u=Object.assign({},s,l),d=jN(this.chart,n,u),p=BN(n,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:p.x,y:p.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(t,r,n,i){const o=this.getCaretPosition(t,n,i);r.lineTo(o.x1,o.y1),r.lineTo(o.x2,o.y2),r.lineTo(o.x3,o.y3)}getCaretPosition(t,r,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=n,{topLeft:l,topRight:u,bottomLeft:d,bottomRight:p}=lc(s),{x:h,y:m}=t,{width:g,height:y}=r;let x,b,S,w,_,O;return o==="center"?(_=m+y/2,i==="left"?(x=h,b=x-a,w=_+a,O=_-a):(x=h+g,b=x+a,w=_-a,O=_+a),S=x):(i==="left"?b=h+Math.max(l,d)+a:i==="right"?b=h+g-Math.max(u,p)-a:b=this.caretX,o==="top"?(w=m,_=w-a,x=b-a,S=b+a):(w=m+y,_=w+a,x=b+a,S=b-a),O=w),{x1:x,x2:b,x3:S,y1:w,y2:_,y3:O}}drawTitle(t,r,n){const i=this.title,o=i.length;let a,s,l;if(o){const u=uc(n.rtl,this.x,this.width);for(t.x=Qm(this,n.titleAlign,n),r.textAlign=u.textAlign(n.titleAlign),r.textBaseline="middle",a=ln(n.titleFont),s=n.titleSpacing,r.fillStyle=n.titleColor,r.font=a.string,l=0;l<o;++l)r.fillText(i[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,r,n,i,o){const a=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:l,boxWidth:u}=o,d=ln(o.bodyFont),p=Qm(this,"left",o),h=i.x(p),m=l<d.lineHeight?(d.lineHeight-l)/2:0,g=r.y+m;if(o.usePointStyle){const y={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},x=i.leftForLtr(h,u)+u/2,b=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,pE(t,y,x,b),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,pE(t,y,x,b)}else{t.lineWidth=yt(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const y=i.leftForLtr(h,u),x=i.leftForLtr(i.xPlus(h,1),u-2),b=lc(a.borderRadius);Object.values(b).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Zv(t,{x:y,y:g,w:u,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Zv(t,{x,y:g+1,w:u-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,g,u,l),t.strokeRect(y,g,u,l),t.fillStyle=a.backgroundColor,t.fillRect(x,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,r,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:d}=n,p=ln(n.bodyFont);let h=p.lineHeight,m=0;const g=uc(n.rtl,this.x,this.width),y=function(M){r.fillText(M,g.x(t.x+m),t.y+h/2),t.y+=h+o},x=g.textAlign(a);let b,S,w,_,O,C,T;for(r.textAlign=a,r.textBaseline="middle",r.font=p.string,t.x=Qm(this,x,n),r.fillStyle=n.bodyColor,Wt(this.beforeBody,y),m=s&&x!=="right"?a==="center"?u/2+d:u+2+d:0,_=0,C=i.length;_<C;++_){for(b=i[_],S=this.labelTextColors[_],r.fillStyle=S,Wt(b.before,y),w=b.lines,s&&w.length&&(this._drawColorBox(r,t,_,g,n),h=Math.max(p.lineHeight,l)),O=0,T=w.length;O<T;++O)y(w[O]),h=p.lineHeight;Wt(b.after,y)}m=0,h=p.lineHeight,Wt(this.afterBody,y),t.y-=o}drawFooter(t,r,n){const i=this.footer,o=i.length;let a,s;if(o){const l=uc(n.rtl,this.x,this.width);for(t.x=Qm(this,n.footerAlign,n),t.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",a=ln(n.footerFont),r.fillStyle=n.footerColor,r.font=a.string,s=0;s<o;++s)r.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,r,n,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:u,height:d}=n,{topLeft:p,topRight:h,bottomLeft:m,bottomRight:g}=lc(i.cornerRadius);r.fillStyle=i.backgroundColor,r.strokeStyle=i.borderColor,r.lineWidth=i.borderWidth,r.beginPath(),r.moveTo(s+p,l),a==="top"&&this.drawCaret(t,r,n,i),r.lineTo(s+u-h,l),r.quadraticCurveTo(s+u,l,s+u,l+h),a==="center"&&o==="right"&&this.drawCaret(t,r,n,i),r.lineTo(s+u,l+d-g),r.quadraticCurveTo(s+u,l+d,s+u-g,l+d),a==="bottom"&&this.drawCaret(t,r,n,i),r.lineTo(s+m,l+d),r.quadraticCurveTo(s,l+d,s,l+d-m),a==="center"&&o==="left"&&this.drawCaret(t,r,n,i),r.lineTo(s,l+p),r.quadraticCurveTo(s,l,s+p,l),r.closePath(),r.fill(),i.borderWidth>0&&r.stroke()}_updateAnimationTarget(t){const r=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const a=hf[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=FN(this,t),l=Object.assign({},a,this._size),u=jN(r,t,l),d=BN(t,l,u,r);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Nn(r.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,r),$4(t,r.textDirection),o.y+=a.top,this.drawTitle(o,t,r),this.drawBody(o,t,r),this.drawFooter(o,t,r),D4(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,r){const n=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),o=!zv(n,i),a=this._positionChanged(i,r);(o||a)&&(this._active=i,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,r,n),s=this._positionChanged(a,t),l=r||!zv(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,r))),l}_getActiveElements(t,r,n,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return r;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,r){const{caretX:n,caretY:i,options:o}=this,a=hf[o.position].call(this,t,r);return a!==!1&&(n!==a.x||i!==a.y)}}nt(yE,"positioners",hf);var QGe={id:"tooltip",_element:yE,positioners:hf,afterInit(e,t,r){r&&(e.tooltip=new yE({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ez},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const eKe=(e,t,r,n)=>(typeof t=="string"?(r=e.push(t)-1,n.unshift({index:r,label:t})):isNaN(t)&&(r=null),r);function tKe(e,t,r,n){const i=e.indexOf(t);if(i===-1)return eKe(e,t,r,n);const o=e.lastIndexOf(t);return i!==o?r:i}const rKe=(e,t)=>e===null?null:Di(Math.round(e),0,t);function HN(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class bE extends sd{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const r=this._addedLabels;if(r.length){const n=this.getLabels();for(const{index:i,label:o}of r)n[i]===o&&n.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,r){if(Pr(t))return null;const n=this.getLabels();return r=isFinite(r)&&n[r]===t?r:tKe(n,t,mt(r,t),this._addedLabels),rKe(r,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),r||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,r=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=t===0&&r===o.length-1?o:o.slice(t,r+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let a=t;a<=r;a++)i.push({value:a});return i}getLabelForValue(t){return HN.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}nt(bE,"id","category"),nt(bE,"defaults",{ticks:{callback:HN}});function nKe(e,t){const r=[],{bounds:i,step:o,min:a,max:s,precision:l,count:u,maxTicks:d,maxDigits:p,includeBounds:h}=e,m=o||1,g=d-1,{min:y,max:x}=t,b=!Pr(a),S=!Pr(s),w=!Pr(u),_=(x-y)/(p+1);let O=q2((x-y)/g/m)*m,C,T,M,D;if(O<1e-14&&!b&&!S)return[{value:y},{value:x}];D=Math.ceil(x/O)-Math.floor(y/O),D>g&&(O=q2(D*O/g/m)*m),Pr(l)||(C=Math.pow(10,l),O=Math.ceil(O*C)/C),i==="ticks"?(T=Math.floor(y/O)*O,M=Math.ceil(x/O)*O):(T=y,M=x),b&&S&&o&&O8e((s-a)/o,O/1e3)?(D=Math.round(Math.min((s-a)/O,d)),O=(s-a)/D,T=a,M=s):w?(T=b?a:T,M=S?s:M,D=u-1,O=(M-T)/D):(D=(M-T)/O,kf(D,Math.round(D),O/1e3)?D=Math.round(D):D=Math.ceil(D));const $=Math.max(H2(O),H2(T));C=Math.pow(10,Pr(l)?$:l),T=Math.round(T*C)/C,M=Math.round(M*C)/C;let N=0;for(b&&(h&&T!==a?(r.push({value:a}),T<a&&N++,kf(Math.round((T+N*O)*C)/C,a,WN(a,_,e))&&N++):T<a&&N++);N<D;++N){const B=Math.round((T+N*O)*C)/C;if(S&&B>s)break;r.push({value:B})}return S&&h&&M!==s?r.length&&kf(r[r.length-1].value,s,WN(s,_,e))?r[r.length-1].value=s:r.push({value:s}):(!S||M===s)&&r.push({value:M}),r}function WN(e,t,{horizontal:r,minRotation:n}){const i=Sn(n),o=(r?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class iKe extends sd{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,r){return Pr(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:r,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=r?i:l,s=l=>o=n?o:l;if(t){const l=Ac(i),u=Ac(o);l<0&&u<0?s(0):l>0&&u>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:r,stepSize:n}=t,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),r=r||11),r&&(i=Math.min(r,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,r=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},o=this._range||this,a=nKe(i,o);return t.bounds==="ticks"&&M8e(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let r=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-r)/Math.max(t.length-1,1)/2;r-=i,n+=i}this._startValue=r,this._endValue=n,this._valueRange=n-r}getLabelForValue(t){return C4(t,this.chart.options.locale,this.options.ticks.format)}}class xE extends iKe{determineDataLimits(){const{min:t,max:r}=this.getMinMax(!0);this.min=cn(t)?t:0,this.max=cn(r)?r:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),r=t?this.width:this.height,n=Sn(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(r/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}nt(xE,"id","linear"),nt(xE,"defaults",{ticks:{callback:T4.formatters.numeric}});const C1={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Gn=Object.keys(C1);function zN(e,t){return e-t}function VN(e,t){if(Pr(t))return null;const r=e._adapter,{parser:n,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof n=="function"&&(a=n(a)),cn(a)||(a=typeof n=="string"?r.parse(a,n):r.parse(a)),a===null?null:(i&&(a=i==="week"&&(zl(o)||o===!0)?r.startOf(a,"isoWeek",o):r.startOf(a,i)),+a)}function GN(e,t,r,n){const i=Gn.length;for(let o=Gn.indexOf(e);o<i-1;++o){const a=C1[Gn[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((r-t)/(s*a.size))<=n)return Gn[o]}return Gn[i-1]}function oKe(e,t,r,n,i){for(let o=Gn.length-1;o>=Gn.indexOf(r);o--){const a=Gn[o];if(C1[a].common&&e._adapter.diff(i,n,a)>=t-1)return a}return Gn[r?Gn.indexOf(r):0]}function aKe(e){for(let t=Gn.indexOf(e)+1,r=Gn.length;t<r;++t)if(C1[Gn[t]].common)return Gn[t]}function KN(e,t,r){if(!r)e[t]=!0;else if(r.length){const{lo:n,hi:i}=pO(r,t),o=r[n]>=t?r[n]:r[i];e[o]=!0}}function sKe(e,t,r,n){const i=e._adapter,o=+i.startOf(t[0].value,n),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,n))l=r[s],l>=0&&(t[l].major=!0);return t}function XN(e,t,r){const n=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,n.push({value:s,major:!1});return o===0||!r?n:sKe(e,n,i,r)}class mp extends sd{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,r={}){const n=t.time||(t.time={}),i=this._adapter=new j4._date(t.adapters.date);i.init(r),Lf(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return t===void 0?null:VN(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=cn(i)&&!isNaN(i)?i:+r.startOf(Date.now(),n),o=cn(o)&&!isNaN(o)?o:+r.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],n=t[t.length-1]),{min:r,max:n}}buildTicks(){const t=this.options,r=t.time,n=t.ticks,i=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=L8e(i,o,a);return this._unit=r.unit||(n.autoSkip?GN(r.minUnit,this.min,this.max,this._getLabelCapacity(o)):oKe(this,s.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:aKe(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),XN(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r=0,n=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?r=1-i:r=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?n=o:n=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;r=Di(r,0,a),n=Di(n,0,a),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,r=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||GN(o.minUnit,r,n,this._getLabelCapacity(r)),s=mt(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,u=zl(l)||l===!0,d={};let p=r,h,m;if(u&&(p=+t.startOf(p,"isoWeek",l)),p=+t.startOf(p,u?"day":a),t.diff(n,r,a)>1e5*s)throw new Error(r+" and "+n+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=p,m=0;h<n;h=+t.add(h,s,a),m++)KN(d,h,g);return(h===n||i.bounds==="ticks"||m===1)&&KN(d,h,g),Object.keys(d).sort(zN).map(y=>+y)}getLabelForValue(t){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(t,n.tooltipFormat):r.format(t,n.displayFormats.datetime)}format(t,r){const i=this.options.time.displayFormats,o=this._unit,a=r||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,r,n,i){const o=this.options,a=o.ticks.callback;if(a)return Kt(a,[t,r,n],this);const s=o.time.displayFormats,l=this._unit,u=this._majorUnit,d=l&&s[l],p=u&&s[u],h=n[r],m=u&&p&&h&&h.major;return this._adapter.format(t,i||(m?p:d))}generateTickLabels(t){let r,n,i;for(r=0,n=t.length;r<n;++r)i=t[r],i.label=this._tickFormatFunction(i.value,r,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,n=this.ctx.measureText(t).width,i=Sn(this.isHorizontal()?r.maxRotation:r.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*a,h:n*a+s*o}}_getLabelCapacity(t){const r=this.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,o=this._tickFormatFunction(t,0,XN(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],r,n;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(r=0,n=i.length;r<n;++r)t=t.concat(i[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,n;if(t.length)return t;const i=this.getLabels();for(r=0,n=i.length;r<n;++r)t.push(VN(this,i[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return N8e(t.sort(zN))}}nt(mp,"id","time"),nt(mp,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function eg(e,t,r){let n=0,i=e.length-1,o,a,s,l;r?(t>=e[n].pos&&t<=e[i].pos&&({lo:n,hi:i}=Cl(e,"pos",t)),{pos:o,time:s}=e[n],{pos:a,time:l}=e[i]):(t>=e[n].time&&t<=e[i].time&&({lo:n,hi:i}=Cl(e,"time",t)),{time:o,pos:s}=e[n],{time:a,pos:l}=e[i]);const u=a-o;return u?s+(l-s)*(t-o)/u:s}class YN extends mp{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(t);this._minPos=eg(r,this.min),this._tableRange=eg(r,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:r,max:n}=this,i=[],o=[];let a,s,l,u,d;for(a=0,s=t.length;a<s;++a)u=t[a],u>=r&&u<=n&&i.push(u);if(i.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(a=0,s=i.length;a<s;++a)d=i[a+1],l=i[a-1],u=i[a],Math.round((d+l)/2)!==u&&o.push({time:u,pos:a/(s-1)});return o}_generate(){const t=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?t=this.normalize(r.concat(n)):t=r.length?r:n,t=this._cache.all=t,t}getDecimalForValue(t){return(eg(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return eg(this._table,n*this._tableRange+this._minPos,!0)}}nt(YN,"id","timeseries"),nt(YN,"defaults",mp.defaults);const tz="label";function ZN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lKe(e,t){const r=e.options;r&&t&&Object.assign(r,t)}function rz(e,t){e.labels=t}function nz(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tz;const n=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[r]===i[r]);return!o||!i.data||n.includes(o)?{...i}:(n.push(o),Object.assign(o,i),o)})}function uKe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tz;const r={labels:[],datasets:[]};return rz(r,e.labels),nz(r,e.datasets,t),r}function cKe(e,t){const{height:r=150,width:n=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:u=[],fallbackContent:d,updateMode:p,...h}=e,m=Dr(null),g=Dr(null),y=()=>{m.current&&(g.current=new $l(m.current,{type:a,data:uKe(s,o),options:l&&{...l},plugins:u}),ZN(t,g.current))},x=()=>{ZN(t,null),g.current&&(g.current.destroy(),g.current=null)};return It(()=>{!i&&g.current&&l&&lKe(g.current,l)},[i,l]),It(()=>{!i&&g.current&&rz(g.current.config.data,s.labels)},[i,s.labels]),It(()=>{!i&&g.current&&s.datasets&&nz(g.current.config.data,s.datasets,o)},[i,s.datasets]),It(()=>{g.current&&(i?(x(),setTimeout(y)):g.current.update(p))},[i,l,s.labels,s.datasets,p]),It(()=>{g.current&&(x(),setTimeout(y))},[a]),It(()=>(y(),()=>x()),[]),ot.createElement("canvas",{ref:m,role:"img",height:r,width:n,...h},d)}const iz=Ea(cKe);function dKe(e,t){return $l.register(t),Ea((r,n)=>ot.createElement(iz,{...r,ref:n,type:e}))}const oz=dKe("line",cc),fKe=(e,t,r)=>({maintainAspectRatio:!1,scales:{x:{ticks:{display:!1},grid:{display:!1},type:"time",time:{unit:uo.Hour},border:{display:!1}},y:{ticks:{display:!1},grid:{display:!1},border:{display:!1}},y1:{position:"right",title:{display:!0,text:r,font:t.typography.caption},ticks:{display:!1},grid:{display:!1},border:{display:!1}}},font:{family:t.typography.caption.fontFamily,size:12},borderColor:t.palette.primary.main,elements:{line:{borderWidth:1}},backgroundColor:qVe(e,t.palette.primary.main),plugins:{legend:{display:!1},tooltip:{enabled:!1}}});var _O={},pKe=Ut;Object.defineProperty(_O,"__esModule",{value:!0});var az=_O.default=void 0,hKe=pKe(Mp()),mKe=E;az=_O.default=(0,hKe.default)((0,mKe.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");const MC=W(_R)`
785
+ border-radius: 8px;
786
+ box-shadow: ${({theme:e})=>e.customShadows[0]};
787
+ cursor: pointer;
788
+ height: 216px;
789
+ padding: 16px;
790
+ width: 100%;
791
+ `,gKe=W(ic)`
792
+ height: 144px;
793
+ padding: 16px;
794
+ width: 100%;
795
+ `,vKe=W(mo)`
796
+ align-items: center;
797
+ flex-direction: row;
798
+ gap: 8px;
799
+ justify-content: space-between;
800
+ `,AC=W(Ke)`
801
+ ${({theme:e})=>e.typography.subtitle2};
802
+ margin-bottom: 12px;
803
+ `,yKe=W("div")`
804
+ align-items: center;
805
+ cursor: not-allowed;
806
+ display: flex;
807
+ height: 118px;
808
+ flex-direction: column;
809
+ justify-content: center;
810
+ `,bKe=W(az)`
811
+ color: ${({theme:e})=>e.palette.warning.main};
812
+ display: block;
813
+ font-size: 3rem;
814
+ `,xKe=W(Ke)`
815
+ ${({theme:e})=>e.typography.body2};
816
+ margin-top: 8px;
817
+ `,wKe=({endDate:e,functionName:t,interval:r,leasedSpaceName:n,onClick:i,startDate:o,subCategory:a})=>{var y;const{t:s}=wr("location"),l=fn(),[u,d]=qr(),p=fKe(u,l,t),h=Y5({endDate:e,functionName:t,interval:r,leasedSpaceName:n,startDate:o,subCategory:a}),g={datasets:HVe(l,(y=h.data)==null?void 0:y.portalTrendData,{options:{fill:!0,pointStyle:!1}})};return h.isLoading?E.jsxs(MC,{children:[E.jsx(AC,{children:a}),E.jsx(gKe,{variant:"rectangular"})]}):h.isError?E.jsxs(MC,{children:[E.jsx(AC,{children:a}),E.jsxs(yKe,{children:[E.jsx(bKe,{}),E.jsx(xKe,{children:s("dcim-chart.load-fail.title")})]})]}):E.jsxs(MC,{onClick:i,children:[E.jsx(AC,{children:a}),E.jsx(vKe,{children:g&&E.jsx(oz,{ref:d,options:p,data:g,width:"100%"})})]})},_Ke=e=>{const{assetName:t,endDate:r,functionName:n,interval:i,leasedSpaceName:o,sitecode:a,startDate:s,subCategory:l,tdcid:u}=e;return`/chart/?${[`assetName=${t}`,`endDate=${r.toISOString()}`,`functionName=${encodeURIComponent(n)}`,`interval=${i}`,`leasedSpaceName=${o}`,`sitecode=${a}`,`startDate=${s.toISOString()}`,`subCategory=${l}`,`tdcid=${u}`].join("&")}`},CKe=({assetName:e,endDate:t,interval:r,leasedSpaceName:n,metadata:i,metadataIsLoading:o,metadataIsFetching:a,sitecode:s,startDate:l})=>{const u=iy();if(o||a)return E.jsx(ZVe,{children:E.jsx(Wce,{})});const d=(i||[]).sort((p,h)=>p.displayOrder-h.displayOrder);return E.jsx(E.Fragment,{children:d.map(p=>{const h=`${p.tdcid}-${p.subCategory}-${p.defaultFunctionAliasName}`,m={assetName:e,endDate:t,functionName:p.defaultFunctionAliasName,interval:r,leasedSpaceName:n,sitecode:s,startDate:l,subCategory:p.subCategory,tdcid:p.tdcid};return E.jsx(zr,{item:!0,xs:12,sm:6,lg:4,xl:3,children:E.jsx(wKe,{endDate:t.toISOString(),functionName:p.defaultFunctionAliasName,interval:r,leasedSpaceName:n,onClick:()=>{const g=_Ke(m);u(`${g}`)},startDate:l.toISOString(),subCategory:p.subCategory,tdcid:p.tdcid})},h)})})},TKe=({assetName:e,leasedSpaceName:t,date:r,sitecode:n})=>{const i=iy(),{t:o}=wr("location"),a=j$e(r),s=_ye(a,{days:7}),l=a,u=Z5(t,{enabled:!!n&&!!e});return E.jsxs(WR,{children:[E.jsx(VR,{assetName:e,sitecode:n}),E.jsxs(zR,{container:!0,spacing:{xs:2.5,md:3},children:[E.jsx(zr,{item:!0,xs:12,md:12,lg:12,xl:3,children:E.jsx(OP,{disableOptionAll:!0,filters:{type:Pc},handleFilters:(d,p)=>{const h=`/alert?assetName=${e}&sitecode=${n}&leasedSpaceName=${t}&type=${p}`;i(h)},leasedSpaceName:t,title:o("alerts.title")})}),E.jsx(zr,{item:!0,xs:12,md:12,lg:12,xl:9,children:E.jsxs(Mr,{children:[E.jsxs(VU,{children:[E.jsx(Ke,{variant:"h6",children:o("title")}),E.jsx(Ke,{variant:"body2",children:o("subtitle")})]}),E.jsx(GU,{container:!0,spacing:{xs:2,md:3},children:E.jsx(CKe,{assetName:e,endDate:l,interval:uo.Hour,leasedSpaceName:t,metadata:u.data,metadataIsLoading:u.isLoading,metadataIsFetching:u.isFetching,sitecode:n,startDate:s})})]})})]})]})};function SKe(e){return typeof e=="string"}function EKe(e,t,r){return e===void 0||SKe(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function JN(e,t,r=(n,i)=>n===i){return e.length===t.length&&e.every((n,i)=>r(n,t[i]))}const RKe={disableDefaultClasses:!1},PKe=P.createContext(RKe);function T1(e){const{disableDefaultClasses:t}=P.useContext(PKe);return r=>t?"":e(r)}function Lc(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 OKe(e,t,r){return typeof e=="function"?e(t,r):e}function MKe(e){const{rootElementName:t=""}=e,[r,n]=P.useState(t.toUpperCase()),i=P.useCallback(o=>{n((o==null?void 0:o.tagName)??"")},[]);return[r,i]}const AKe=typeof window<"u"?P.useLayoutEffect:P.useEffect;let QN=0;function IKe(e){const[t,r]=P.useState(e),n=e||t;return P.useEffect(()=>{t==null&&(QN+=1,r(`mui-${QN}`))},[t]),n}const $Ke={...P},eF=$Ke.useId;function sz(e){if(eF!==void 0){const t=eF();return e??t}return IKe(e)}function DKe({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=P.useRef(e!==void 0),[o,a]=P.useState(t),s=i?e:o,l=P.useCallback(u=>{i||a(u)},[]);return[s,l]}function ld(...e){const t=P.useRef(void 0),r=P.useCallback(n=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return o.current=n,()=>{o.current=null}});return()=>{i.forEach(o=>o==null?void 0:o())}},e);return P.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}class CO{constructor(){nt(this,"currentId",null);nt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});nt(this,"disposeEffect",()=>this.clear)}static create(){return new CO}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let S1=!0,wE=!1;const LKe=new CO,kKe={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 NKe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&kKe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function FKe(e){e.metaKey||e.altKey||e.ctrlKey||(S1=!0)}function IC(){S1=!1}function jKe(){this.visibilityState==="hidden"&&wE&&(S1=!0)}function BKe(e){e.addEventListener("keydown",FKe,!0),e.addEventListener("mousedown",IC,!0),e.addEventListener("pointerdown",IC,!0),e.addEventListener("touchstart",IC,!0),e.addEventListener("visibilitychange",jKe,!0)}function UKe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return S1||NKe(t)}function qKe(){const e=P.useCallback(i=>{i!=null&&BKe(i.ownerDocument)},[]),t=P.useRef(!1);function r(){return t.current?(wE=!0,LKe.start(100,()=>{wE=!1}),t.current=!1,!0):!1}function n(i){return UKe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function E1(e,t,r=void 0){const n={};for(const i in e){const o=e[i];let a="",s=!0;for(let l=0;l<o.length;l+=1){const u=o[l];u&&(a+=(s===!0?"":" ")+t(u),s=!1,r&&r[u]&&(a+=" "+r[u]))}n[i]=a}return n}const HKe={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 tF(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 WKe(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const m=Pe(r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),g={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},y={...r,...i,...n};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=Lc({...i,...n}),s=tF(n),l=tF(i),u=t(a),d=Pe(u==null?void 0:u.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),p={...u==null?void 0:u.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...u,...r,...l,...s};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function R1(e){var p;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:OKe(r,n),{props:s,internalRef:l}=WKe({...o,externalSlotProps:a}),u=ld(l,a==null?void 0:a.ref,(p=e.additionalProps)==null?void 0:p.ref);return EKe(t,{...s,ref:u},n)}const lz="base";function zKe(e){return`${lz}--${e}`}function VKe(e,t){return`${lz}-${e}-${t}`}function fh(e,t){const r=HKe[t];return r?zKe(r):VKe(e,t)}function P1(e,t){const r={};return t.forEach(n=>{r[n]=fh(e,n)}),r}function GKe(e={}){const{disabled:t=!1,focusableWhenDisabled:r,href:n,rootRef:i,tabIndex:o,to:a,type:s,rootElementName:l}=e,u=P.useRef(),[d,p]=P.useState(!1),{isFocusVisibleRef:h,onFocus:m,onBlur:g,ref:y}=qKe(),[x,b]=P.useState(!1);t&&!r&&x&&b(!1),P.useEffect(()=>{h.current=x},[x,h]);const[S,w]=MKe({rootElementName:l??(n||a?"a":void 0)}),_=F=>j=>{var V;x&&j.preventDefault(),(V=F.onMouseLeave)==null||V.call(F,j)},O=F=>j=>{var V;g(j),h.current===!1&&b(!1),(V=F.onBlur)==null||V.call(F,j)},C=F=>j=>{var V,z;u.current||(u.current=j.currentTarget),m(j),h.current===!0&&(b(!0),(V=F.onFocusVisible)==null||V.call(F,j)),(z=F.onFocus)==null||z.call(F,j)},T=()=>{const F=u.current;return S==="BUTTON"||S==="INPUT"&&["button","submit","reset"].includes(F==null?void 0:F.type)||S==="A"&&(F==null?void 0:F.href)},M=F=>j=>{var V;t||(V=F.onClick)==null||V.call(F,j)},D=F=>j=>{var V;t||(p(!0),document.addEventListener("mouseup",()=>{p(!1)},{once:!0})),(V=F.onMouseDown)==null||V.call(F,j)},$=F=>j=>{var V,z;(V=F.onKeyDown)==null||V.call(F,j),!j.defaultMuiPrevented&&(j.target===j.currentTarget&&!T()&&j.key===" "&&j.preventDefault(),j.target===j.currentTarget&&j.key===" "&&!t&&p(!0),j.target===j.currentTarget&&!T()&&j.key==="Enter"&&!t&&((z=F.onClick)==null||z.call(F,j),j.preventDefault()))},N=F=>j=>{var V,z;j.target===j.currentTarget&&p(!1),(V=F.onKeyUp)==null||V.call(F,j),j.target===j.currentTarget&&!T()&&!t&&j.key===" "&&!j.defaultMuiPrevented&&((z=F.onClick)==null||z.call(F,j))},B=ld(w,i,y,u),q={};return o!==void 0&&(q.tabIndex=o),S==="BUTTON"?(q.type=s??"button",r?q["aria-disabled"]=t:q.disabled=t):S==="INPUT"?s&&["button","submit","reset"].includes(s)&&(r?q["aria-disabled"]=t:q.disabled=t):S!==""&&(!n&&!a&&(q.role="button",q.tabIndex=o??0),t&&(q["aria-disabled"]=t,q.tabIndex=r?o??0:-1)),{getRootProps:(F={})=>{const j={...Lc(e),...Lc(F)},V={type:s,...j,...q,...F,onBlur:O(j),onClick:M(j),onFocus:C(j),onKeyDown:$(j),onKeyUp:N(j),onMouseDown:D(j),onMouseLeave:_(j),ref:B};return delete V.onFocusVisible,V},focusVisible:x,setFocusVisible:b,active:d,rootRef:B}}function KKe(e,t){return e===t}const $C={},rF=()=>{};function _E(e,t){const r={...e};return Object.keys(t).forEach(n=>{t[n]!==void 0&&(r[n]=t[n])}),r}function XKe(e){const{nextState:t,initialState:r,stateComparers:n,onStateChange:i,controlledProps:o,lastActionRef:a}=e,s=P.useRef(r);P.useEffect(()=>{if(a.current===null)return;const l=_E(s.current,o);Object.keys(t).forEach(u=>{const d=n[u]??KKe,p=t[u],h=l[u];(h==null&&p!=null||h!=null&&p==null||h!=null&&p!=null&&!d(p,h))&&(i==null||i(a.current.event??null,u,p,a.current.type??"",t))}),s.current=t,a.current=null},[s,t,a,i,n,o])}function YKe(e){const t=P.useRef(null),{reducer:r,initialState:n,controlledProps:i=$C,stateComparers:o=$C,onStateChange:a=rF,actionContext:s}=e;P.useRef(i);const l=P.useCallback((h,m)=>{t.current=m;const g=_E(h,i);return r(g,m)},[i,r]),[u,d]=P.useReducer(l,n),p=P.useCallback(h=>{d({...h,context:s})},[s]);return XKe({nextState:u,initialState:n,stateComparers:o??$C,onStateChange:a??rF,controlledProps:i,lastActionRef:t}),[_E(u,i),p]}const an={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function ZKe(e,t,r,n,i,o){if(r.length===0||!n&&r.every((s,l)=>i(s,l)))return-1;let a=e;for(;;){if(!o&&t==="next"&&a===r.length||!o&&t==="previous"&&a===-1)return-1;if(n?!1:i(r[a],a))a+=t==="next"?1:-1,o&&(a=(a+r.length)%r.length);else return a}}function Dn(e,t,r){const{items:n,isItemDisabled:i,disableListWrap:o,disabledItemsFocusable:a,itemComparer:s,focusManagement:l}=r,u=l==="DOM"?0:-1,d=n.length-1,p=e==null?-1:n.findIndex(x=>s(x,e));let h,m,g=!o;switch(t){case"reset":if(u===-1)return null;h=0,m="next",g=!1;break;case"start":h=0,m="next",g=!1;break;case"end":h=d,m="previous",g=!1;break;default:{const x=p+t;x<0?!g&&p!==-1||Math.abs(t)>1?(h=0,m="next"):(h=d,m="previous"):x>d?!g||Math.abs(t)>1?(h=d,m="previous"):(h=0,m="next"):(h=x,m=t>=0?"next":"previous")}}const y=ZKe(h,m,n,a,i,g);return y===-1&&e!==null&&!i(e,p)?e:n[y]??null}function JKe(e,t,r,n){return r==="none"?[]:r==="single"?n(t[0],e)?t:[e]:t.some(i=>n(i,e))?t.filter(i=>!n(i,e)):[...t,e]}function uz(e,t,r){const{itemComparer:n,isItemDisabled:i,selectionMode:o,items:a}=r,{selectedValues:s}=t,l=a.findIndex(d=>n(e,d));if(i(e,l))return t;const u=JKe(e,s,o,n);return{...t,selectedValues:u,highlightedValue:e}}function QKe(e,t,r){const n=t.highlightedValue,{orientation:i,pageSize:o}=r;switch(e){case"Home":return{...t,highlightedValue:Dn(n,"start",r)};case"End":return{...t,highlightedValue:Dn(n,"end",r)};case"PageUp":return{...t,highlightedValue:Dn(n,-o,r)};case"PageDown":return{...t,highlightedValue:Dn(n,o,r)};case"ArrowUp":if(i!=="vertical")break;return{...t,highlightedValue:Dn(n,-1,r)};case"ArrowDown":if(i!=="vertical")break;return{...t,highlightedValue:Dn(n,1,r)};case"ArrowLeft":{if(i==="vertical")break;return{...t,highlightedValue:Dn(n,i==="horizontal-ltr"?-1:1,r)}}case"ArrowRight":{if(i==="vertical")break;return{...t,highlightedValue:Dn(n,i==="horizontal-ltr"?1:-1,r)}}case"Enter":case" ":return t.highlightedValue===null?t:uz(t.highlightedValue,t,r)}return t}function eXe(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function tXe(e,t,r){var i;const n=(i=r(e))==null?void 0:i.trim().toLowerCase();return!n||n.length===0?!1:n.indexOf(t)===0}function rXe(e,t,r){const{items:n,isItemDisabled:i,disabledItemsFocusable:o,getItemAsString:a}=r,s=t.length>1;let l=s?e.highlightedValue:Dn(e.highlightedValue,1,r);for(let u=0;u<n.length;u+=1){if(!l||!s&&e.highlightedValue===l)return e;if(tXe(l,t,a)&&(!i(l,n.indexOf(l))||o))return{...e,highlightedValue:l};l=Dn(l,1,r)}return e}function nXe(e,t,r,n){const{itemComparer:i,focusManagement:o}=n;let a=null;r.highlightedValue!=null?a=e.find(u=>i(u,r.highlightedValue))??null:o==="DOM"&&t.length===0&&(a=Dn(null,"reset",n));const l=(r.selectedValues??[]).filter(u=>e.some(d=>i(d,u)));return{...r,highlightedValue:a,selectedValues:l}}function iXe(e,t){return{...e,highlightedValue:Dn(null,"reset",t)}}function oXe(e,t){return{...e,highlightedValue:Dn(null,"end",t)}}function aXe(e,t){return{...e,selectedValues:[],highlightedValue:Dn(null,"reset",t)}}function cz(e,t){const{type:r,context:n}=t;switch(r){case an.keyDown:return QKe(t.key,e,n);case an.itemClick:return uz(t.item,e,n);case an.blur:return eXe(e,n);case an.textNavigation:return rXe(e,t.searchString,n);case an.itemsChange:return nXe(t.items,t.previousItems,e,n);case an.resetHighlight:return iXe(e,n);case an.highlightLast:return oXe(e,n);case an.clearSelection:return aXe(e,n);default:return e}}const sXe=500;function lXe(e){const t=P.useRef({searchString:"",lastTime:null});return P.useCallback(r=>{if(r.key.length===1&&r.key!==" "){const n=t.current,i=r.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>sXe?n.searchString=i:(n.searchString.length!==1||i!==n.searchString)&&(n.searchString+=i),n.lastTime=o,e(n.searchString,r)}},[e])}const nF={},uXe=()=>{},cXe=(e,t)=>e===t,dXe=()=>!1,fXe=e=>typeof e=="string"?e:String(e),pXe=()=>({highlightedValue:null,selectedValues:[]});function hXe(e){const{controlledProps:t=nF,disabledItemsFocusable:r=!1,disableListWrap:n=!1,focusManagement:i="activeDescendant",getInitialState:o=pXe,getItemDomElement:a,getItemId:s,isItemDisabled:l=dXe,rootRef:u,onStateChange:d=uXe,items:p,itemComparer:h=cXe,getItemAsString:m=fXe,onChange:g,onHighlightChange:y,onItemsChange:x,orientation:b="vertical",pageSize:S=5,reducerActionContext:w=nF,selectionMode:_="single",stateReducer:O,componentName:C="useList"}=e,T=P.useRef(null),M=ld(u,T),D=P.useCallback((_e,le,ce)=>{var Ve;y==null||y(_e,le,ce),i==="DOM"&&le!=null&&(ce===an.itemClick||ce===an.keyDown||ce===an.textNavigation)&&((Ve=a==null?void 0:a(le))==null||Ve.focus())},[a,y,i]),$=P.useMemo(()=>({highlightedValue:h,selectedValues:(_e,le)=>JN(_e,le,h)}),[h]),N=P.useCallback((_e,le,ce,Ve,je)=>{switch(d==null||d(_e,le,ce,Ve,je),le){case"highlightedValue":D(_e,ce,Ve);break;case"selectedValues":g==null||g(_e,ce,Ve);break}},[D,g,d]),B=P.useMemo(()=>({disabledItemsFocusable:r,disableListWrap:n,focusManagement:i,isItemDisabled:l,itemComparer:h,items:p,getItemAsString:m,onHighlightChange:D,orientation:b,pageSize:S,selectionMode:_,stateComparers:$}),[r,n,i,l,h,p,m,D,b,S,_,$]),q=o(),U=O??cz,F=P.useMemo(()=>({...w,...B}),[w,B]),[j,V]=YKe({reducer:U,actionContext:F,initialState:q,controlledProps:t,stateComparers:$,onStateChange:N}),{highlightedValue:z,selectedValues:Q}=j,oe=lXe((_e,le)=>V({type:an.textNavigation,event:le,searchString:_e})),ae=P.useRef([]);P.useEffect(()=>{JN(ae.current,p,h)||(V({type:an.itemsChange,event:null,items:p,previousItems:ae.current}),ae.current=p,x==null||x(p))},[p,h,V,x]);const he=_e=>le=>{var Ve;if((Ve=_e.onKeyDown)==null||Ve.call(_e,le),le.defaultMuiPrevented)return;const ce=["Home","End","PageUp","PageDown"];b==="vertical"?ce.push("ArrowUp","ArrowDown"):ce.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&ce.push(" ","Enter"),ce.includes(le.key)&&le.preventDefault(),V({type:an.keyDown,key:le.key,event:le}),oe(le)},Ae=_e=>le=>{var ce,Ve;(ce=_e.onBlur)==null||ce.call(_e,le),!le.defaultMuiPrevented&&((Ve=T.current)!=null&&Ve.contains(le.relatedTarget)||V({type:an.blur,event:le}))},ve=(_e={})=>{const le=Lc(_e);return{..._e,"aria-activedescendant":i==="activeDescendant"&&z!=null?s(z):void 0,tabIndex:i==="DOM"?-1:0,ref:M,...le,onBlur:Ae(le),onKeyDown:he(le)}},fe=P.useCallback(_e=>{const le=(Q??[]).some(je=>je!=null&&h(_e,je)),ce=z!=null&&h(_e,z);return{focusable:i==="DOM",highlighted:ce,selected:le}},[h,Q,z,i]),Ee=P.useMemo(()=>({dispatch:V,getItemState:fe}),[V,fe]);return P.useDebugValue({state:j}),{contextValue:Ee,dispatch:V,getRootProps:ve,rootRef:M,state:j}}const dz=P.createContext(null);function mXe(e){const{handlePointerOverEvents:t=!1,item:r}=e,n=P.useContext(dz);if(!n)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:o}=n,{highlighted:a,selected:s,focusable:l}=o(r),u=P.useCallback(m=>g=>{var y;(y=m.onClick)==null||y.call(m,g),!g.defaultPrevented&&i({type:an.itemClick,item:r,event:g})},[i,r]),d=P.useCallback(m=>g=>{var y;(y=m.onMouseOver)==null||y.call(m,g),!g.defaultPrevented&&i({type:an.itemHover,item:r,event:g})},[i,r]);let p;return l&&(p=a?0:-1),{getRootProps:(m={})=>{const g=Lc(m);return{...m,onClick:u(g),onPointerOver:t?d(g):void 0,tabIndex:p}},highlighted:a,selected:s}}const TO=P.createContext(null);function gXe(e){const t=Array.from(e.keys()).map(r=>{const n=e.get(r);return{key:r,subitem:n}});return t.sort((r,n)=>{const i=r.subitem.ref.current,o=n.subitem.ref.current;return i===null||o===null||i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(r=>[r.key,r.subitem]))}function fz(){const[e,t]=P.useState(new Map),r=P.useRef(new Set),n=P.useCallback(function(u){r.current.delete(u),t(d=>{const p=new Map(d);return p.delete(u),p})},[]),i=P.useCallback(function(u,d){let p;return typeof u=="function"?p=u(r.current):p=u,r.current.add(p),t(h=>{const m=new Map(h);return m.set(p,d),m}),{id:p,deregister:()=>n(p)}},[n]),o=P.useMemo(()=>gXe(e),[e]),a=P.useCallback(function(u){return Array.from(o.keys()).indexOf(u)},[o]);return{contextValue:P.useMemo(()=>({getItemIndex:a,registerItem:i,totalSubitemCount:e.size}),[a,i,e.size]),subitems:o}}function pz(e,t){const r=P.useContext(TO);if(r===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:n}=r,[i,o]=P.useState(typeof e=="function"?void 0:e);return AKe(()=>{const{id:a,deregister:s}=n(e,t);return o(a),s},[n,t,e]),{id:i,index:i!==void 0?r.getItemIndex(i):-1,totalItemCount:r.totalSubitemCount}}function vXe(e,t){return function(n={}){const i={...n,...e(n)};return{...i,...t(i)}}}const hz="TabPanel";function yXe(e){return fh(hz,e)}P1(hz,["root","hidden"]);const mz="Tabs";function bXe(e){return fh(mz,e)}P1(mz,["root","horizontal","vertical"]);function xXe(e){const{value:t,defaultValue:r,onChange:n,orientation:i="horizontal",direction:o="ltr",selectionFollowsFocus:a=!1}=e,[s,l]=DKe({controlled:t,default:r,name:"Tabs",state:"value"}),u=P.useCallback((x,b)=>{l(b),n==null||n(x,b)},[n,l]),{subitems:d,contextValue:p}=fz(),h=P.useRef(()=>{}),m=P.useCallback(x=>{var b;return(b=d.get(x))==null?void 0:b.id},[d]),g=P.useCallback(x=>h.current(x),[]),y=P.useCallback(x=>{h.current=x},[]);return{contextValue:{direction:o,getTabId:g,getTabPanelId:m,onSelected:u,orientation:i,registerTabIdLookup:y,selectionFollowsFocus:a,value:s,...p}}}const gz=P.createContext(null);function SO(){const e=P.useContext(gz);if(e==null)throw new Error("No TabsContext provided");return e}function wXe(e){const{value:t,children:r}=e,{direction:n,getItemIndex:i,onSelected:o,orientation:a,registerItem:s,registerTabIdLookup:l,selectionFollowsFocus:u,totalSubitemCount:d,value:p,getTabId:h,getTabPanelId:m}=t,g=P.useMemo(()=>({getItemIndex:i,registerItem:s,totalSubitemCount:d}),[s,i,d]),y=P.useMemo(()=>({direction:n,getTabId:h,getTabPanelId:m,onSelected:o,orientation:a,registerTabIdLookup:l,selectionFollowsFocus:u,value:p}),[n,h,m,o,a,l,u,p]);return E.jsx(TO.Provider,{value:g,children:E.jsx(gz.Provider,{value:y,children:r})})}const _Xe=e=>{const{orientation:t}=e;return E1({root:["root",t]},T1(bXe))},CXe=P.forwardRef(function(t,r){const{children:n,value:i,defaultValue:o,orientation:a="horizontal",direction:s="ltr",onChange:l,selectionFollowsFocus:u,slotProps:d={},slots:p={},...h}=t,m={...t,orientation:a,direction:s},{contextValue:g}=xXe(m),y=_Xe(m),x=p.root??"div",b=R1({elementType:x,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{ref:r},ownerState:m,className:y.root});return E.jsx(x,{...b,children:E.jsx(wXe,{value:g,children:n})})});function TXe(e){return e.size}function SXe(e){const{value:t,id:r,rootRef:n}=e,i=SO();if(i===null)throw new Error("No TabContext provided");const{value:o,getTabId:a}=i,s=sz(r),l=P.useRef(null),u=ld(l,n),d=P.useMemo(()=>({id:s,ref:l}),[s]),{id:p}=pz(t??TXe,d),h=p!==o,m=p!==void 0?a(p):void 0;return{hidden:h,getRootProps:(y={})=>({"aria-labelledby":m??void 0,hidden:h,id:s??void 0,...y,ref:u}),rootRef:u}}const EXe=e=>{const{hidden:t}=e;return E1({root:["root",t&&"hidden"]},T1(yXe))},iF=P.forwardRef(function(t,r){const{children:n,value:i,slotProps:o={},slots:a={},...s}=t,{hidden:l,getRootProps:u}=SXe(t),d={...t,hidden:l},p=EXe(d),h=a.root??"div",m=R1({elementType:h,getSlotProps:u,externalSlotProps:o.root,externalForwardedProps:s,additionalProps:{role:"tabpanel",ref:r},ownerState:d,className:p.root});return E.jsx(h,{...m,children:!l&&n})}),vz="TabsList";function RXe(e){return fh(vz,e)}P1(vz,["root","horizontal","vertical"]);const yz={valueChange:"valueChange"};function PXe(e,t){if(t.type===yz.valueChange)return{...e,highlightedValue:t.value};const r=cz(e,t),{context:{selectionFollowsFocus:n}}=t;if(t.type===an.itemsChange){if(r.selectedValues.length>0)return{...r,highlightedValue:r.selectedValues[0]};Dn(null,"reset",t.context)}return n&&r.highlightedValue!=null?{...r,selectedValues:[r.highlightedValue]}:r}function OXe(e){const{rootRef:t}=e,{direction:r="ltr",onSelected:n,orientation:i="horizontal",value:o,registerTabIdLookup:a,selectionFollowsFocus:s}=SO(),{subitems:l,contextValue:u}=fz(),d=P.useCallback($=>{var N;return(N=l.get($))==null?void 0:N.id},[l]);a(d);const p=P.useMemo(()=>Array.from(l.keys()),[l]),h=P.useCallback($=>{var N;return $==null?null:((N=l.get($))==null?void 0:N.ref.current)??null},[l]),m=r==="rtl";let g;i==="vertical"?g="vertical":g=m?"horizontal-rtl":"horizontal-ltr";const y=P.useCallback(($,N)=>{n($,N[0]??null)},[n]),x=P.useMemo(()=>o===void 0?{}:o!=null?{selectedValues:[o]}:{selectedValues:[]},[o]),b=P.useCallback($=>{var N;return((N=l.get($))==null?void 0:N.disabled)??!1},[l]),{contextValue:S,dispatch:w,getRootProps:_,state:{highlightedValue:O,selectedValues:C},rootRef:T}=hXe({controlledProps:x,disabledItemsFocusable:!s,focusManagement:"DOM",getItemDomElement:h,isItemDisabled:b,items:p,rootRef:t,onChange:y,orientation:g,reducerActionContext:P.useMemo(()=>({selectionFollowsFocus:s||!1}),[s]),selectionMode:"single",stateReducer:PXe});P.useEffect(()=>{o!==void 0&&o!=null&&w({type:yz.valueChange,value:o})},[w,o]);const M=($={})=>({...$,..._($),"aria-orientation":i==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:P.useMemo(()=>({...u,...S}),[u,S]),dispatch:w,getRootProps:M,highlightedValue:O,isRtl:m,orientation:i,rootRef:T,selectedValue:C[0]??null}}function MXe(e){const{value:t,children:r}=e,{dispatch:n,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:s}=t,l=P.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:i}),[n,i,o]),u=P.useMemo(()=>({getItemIndex:i,registerItem:a,totalSubitemCount:s}),[a,i,s]);return E.jsx(TO.Provider,{value:u,children:E.jsx(dz.Provider,{value:l,children:r})})}const AXe=e=>{const{orientation:t}=e;return E1({root:["root",t]},T1(RXe))},IXe=P.forwardRef(function(t,r){const{children:n,slotProps:i={},slots:o={},...a}=t,{isRtl:s,orientation:l,getRootProps:u,contextValue:d}=OXe({rootRef:r}),p={...t,isRtl:s,orientation:l},h=AXe(p),m=o.root??"div",g=R1({elementType:m,getSlotProps:u,externalSlotProps:i.root,externalForwardedProps:a,ownerState:p,className:h.root});return E.jsx(MXe,{value:d,children:E.jsx(m,{...g,children:n})})}),bz="Tab";function $Xe(e){return fh(bz,e)}P1(bz,["root","selected","disabled"]);function DXe(e){return e.size}function LXe(e){const{value:t,rootRef:r,disabled:n=!1,id:i}=e,o=P.useRef(null),a=sz(i),{value:s,selectionFollowsFocus:l,getTabPanelId:u}=SO(),d=P.useMemo(()=>({disabled:n,ref:o,id:a}),[n,o,a]),{id:p,index:h,totalItemCount:m}=pz(t??DXe,d),{getRootProps:g,highlighted:y,selected:x}=mXe({item:p}),{getRootProps:b,rootRef:S,active:w,focusVisible:_,setFocusVisible:O}=GKe({disabled:n,focusableWhenDisabled:!l,type:"button"}),C=ld(o,r,S),T=p!==void 0?u(p):void 0;return{getRootProps:(D={})=>{const $=Lc(D),N=vXe(g,b);return{...D,...N($),role:"tab","aria-controls":T,"aria-selected":x,id:a,ref:C}},active:w,focusVisible:_,highlighted:y,index:h,rootRef:C,selected:x||p===s,setFocusVisible:O,totalTabsCount:m}}const kXe=e=>{const{selected:t,disabled:r}=e;return E1({root:["root",t&&"selected",r&&"disabled"]},T1($Xe))},NXe=P.forwardRef(function(t,r){const{action:n,children:i,disabled:o=!1,onChange:a,onClick:s,onFocus:l,slotProps:u={},slots:d={},value:p,...h}=t,m=P.useRef(),g=ld(m,r),{active:y,highlighted:x,selected:b,getRootProps:S}=LXe({...t,rootRef:g,value:p}),w={...t,active:y,disabled:o,highlighted:x,selected:b},_=kXe(w),O=d.root??"button",C=R1({elementType:O,getSlotProps:S,externalSlotProps:u.root,externalForwardedProps:h,additionalProps:{ref:r},ownerState:w,className:_.root});return E.jsx(O,{...C,children:i})}),FXe={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class jXe{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var n;return this.locale?/a/.test((n=this.locale.formatLong)===null||n===void 0?void 0:n.time()):!0},this.getFormatHelperText=n=>{var i,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,s=this.locale||Gc;return(o=(i=n.match(a))===null||i===void 0?void 0:i.map(l=>{const u=l[0];if(u==="p"||u==="P"){const d=cH[u];return d(l,s.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:n},this.parseISO=n=>qi(n),this.toISO=n=>Hge(n,{format:"extended"}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)===null||n===void 0?void 0:n.code)||"en-US"},this.addSeconds=(n,i)=>ZU(n,i),this.addMinutes=(n,i)=>YU(n,i),this.addHours=(n,i)=>XU(n,i),this.addDays=(n,i)=>ep(n,i),this.addWeeks=(n,i)=>JU(n,i),this.addMonths=(n,i)=>Ol(n,i),this.addYears=(n,i)=>vT(n,i),this.isValid=n=>Lp(this.date(n)),this.getDiff=(n,i,o)=>{var a;const s=(a=this.date(i))!==null&&a!==void 0?a:n;if(!this.isValid(s))return 0;switch(o){case"years":return a3(n,s);case"quarters":return n3(n,s);case"months":return XR(n,s);case"weeks":return o3(n,s);case"days":return KR(n,s);case"hours":return t3(n,s);case"minutes":return r3(n,s);case"seconds":return i3(n,s);default:return kp(n,s)}},this.isAfter=(n,i)=>_m(n,i),this.isBefore=(n,i)=>Bu(n,i),this.startOfDay=n=>Sa(n),this.endOfDay=n=>Tc(n),this.getHours=n=>Vge(n),this.setHours=(n,i)=>vye(n,i),this.setMinutes=(n,i)=>yye(n,i),this.getSeconds=n=>Xge(n),this.setSeconds=(n,i)=>bye(n,i),this.isSameDay=(n,i)=>QU(n,i),this.isSameMonth=(n,i)=>Xve(n,i),this.isSameYear=(n,i)=>Zve(n,i),this.isSameHour=(n,i)=>Kve(n,i),this.startOfYear=n=>cf(n),this.endOfYear=n=>bg(n),this.startOfMonth=n=>uf(n),this.endOfMonth=n=>fv(n),this.startOfWeek=n=>Mf(n,{locale:this.locale}),this.endOfWeek=n=>xg(n,{locale:this.locale}),this.getYear=n=>Yge(n),this.setYear=(n,i)=>xye(n,i),this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.toJsDate=n=>n,this.parse=(n,i)=>n===""?null:eP(n,i,new Date,{locale:this.locale}),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>Fp(n,i,{locale:this.locale}),this.isEqual=(n,i)=>n===null&&i===null?!0:Zge(n,i),this.isNull=n=>n===null,this.isAfterDay=(n,i)=>_m(n,Tc(i)),this.isBeforeDay=(n,i)=>Bu(n,Sa(i)),this.isBeforeYear=(n,i)=>Bu(n,cf(i)),this.isAfterYear=(n,i)=>_m(n,bg(i)),this.isWithinRange=(n,[i,o])=>Jve(n,{start:i,end:o}),this.formatNumber=n=>n,this.getMinutes=n=>Gge(n),this.getDate=n=>Wge(n),this.setDate=(n,i)=>gye(n,i),this.getMonth=n=>Kge(n),this.getDaysInMonth=n=>h3(n),this.setMonth=(n,i)=>mye(n,i),this.getMeridiemText=n=>n==="am"?"AM":"PM",this.getNextMonth=n=>Ol(n,1),this.getPreviousMonth=n=>Ol(n,-1),this.getMonthArray=n=>{const o=[cf(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return Bme({start:Mf(n,{locale:this.locale}),end:xg(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=Mf(uf(n),{locale:this.locale}),o=xg(fv(n),{locale:this.locale});let a=0,s=i;const l=[];let u=null;for(;Bu(s,o);){const d=Math.floor(a/7);l[d]=l[d]||[];const p=zge(s);u!==p&&(u=p,l[d].push(s),a+=1),s=ep(s,1)}return l},this.getYearRange=(n,i)=>{const o=cf(n),a=bg(i),s=[];let l=o;for(;Bu(l,a);)s.push(l),l=vT(l,1);return s},this.locale=t,this.formats=Object.assign({},FXe,r)}isBeforeMonth(t,r){return Bu(t,uf(r))}isAfterMonth(t,r){return _m(t,uf(r))}}const BXe={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class UXe extends jXe{constructor(...t){super(...t),this.formatTokenMap=BXe,this.expandFormat=r=>{const n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(n).map(i=>{const o=i[0];if(o==="p"||o==="P"){const a=cH[o],s=this.locale||Gc;return a(i,s.formatLong,{})}return i}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}var EO={},qXe=Ut;Object.defineProperty(EO,"__esModule",{value:!0});var xz=EO.default=void 0,HXe=qXe(Mp()),WXe=E;xz=EO.default=(0,HXe.default)((0,WXe.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");const zXe=({count:e,title:t,onClick:r})=>E.jsxs(cLe,{onClick:r,children:[E.jsx(fLe,{children:e}),E.jsx(Ke,{children:t}),E.jsx(tH,{})]}),VXe=W(Mr)`
818
+ display: inline-block;
819
+ width: 16px;
820
+ height: 16px;
821
+ background-color: ${({theme:e})=>e.extraColors.textDark};
822
+ border: 2px solid ${({theme:e})=>e.palette.primary.light};
823
+ border-radius: 16px;
824
+ `,ud=W(Mr)`
825
+ align-items: center;
826
+ column-gap: ${({columnGap:e})=>e||"8px"};
827
+ display: flex;
828
+ flex-direction: row;
829
+ `,GXe=W(ud)`
830
+ flex: 1;
831
+ flex-wrap: wrap;
832
+ justify-content: space-between;
833
+ margin-bottom: 20px;
834
+ row-gap: 16px;
835
+ column-gap: 32px;
836
+
837
+ ${({theme:e})=>e.breakpoints.down("lg")} {
838
+ justify-content: space-between;
839
+ }
840
+
841
+ ${({theme:e})=>e.breakpoints.down("md")} {
842
+ flex-direction: column;
843
+ align-items: flex-start;
844
+ }
845
+ `,KXe=W(mo)`
846
+ flex-direction: row;
847
+ align-self: stretch;
848
+ justify-content: space-between;
849
+ column-gap: 32px;
850
+ `,XXe=W(_R)`
851
+ padding: 18px 16px 24px;
852
+ border-radius: 0px;
853
+ `,wz=W(Mr)`
854
+ min-height: 60vh;
855
+ position: relative;
856
+ width: 99%;
857
+
858
+ ${({theme:e})=>e.breakpoints.down("md")} {
859
+ min-height: 40vh;
860
+ }
861
+ `,YXe=W(mo)`
862
+ flex-direction: row;
863
+ flex-wrap: wrap;
864
+ align-items: center;
865
+ justify-content: space-between;
866
+ margin-bottom: 12px;
867
+ row-gap: 16px;
868
+
869
+ ${({theme:e})=>e.breakpoints.down(1400)} {
870
+ column-gap: 32px;
871
+ > div:nth-of-type(1) {
872
+ order: 1;
873
+ }
874
+ > div:nth-of-type(2) {
875
+ margin: 0 auto;
876
+ order: 3;
877
+ }
878
+ > label:nth-of-type(1) {
879
+ order: 2;
880
+ }
881
+ }
882
+
883
+ ${({theme:e})=>e.breakpoints.down("sm")} {
884
+ align-items: flex-start;
885
+ flex-direction: column;
886
+ }
887
+ `,ZXe=W(ud)`
888
+ gap: 24px;
889
+ justify-content: flex-start;
890
+ flex-wrap: wrap;
891
+ ${({theme:e})=>e.breakpoints.down("sm")} {
892
+ gap: 16px;
893
+ }
894
+ `,JXe=W(Aa)`
895
+ background-color: ${({theme:e})=>UVe(e.palette.primary.main,.05)};
896
+ border: 1px solid ${({theme:e})=>e.palette.text.primary};
897
+ padding: 2px 4px 3px;
898
+ ${({theme:e})=>e.typography.caption};
899
+ `,QXe=W(Mr)`
900
+ background-color: ${({color:e})=>e||"unset"};
901
+ height: 4px;
902
+ width: 16px;
903
+ `,eYe=W(ud)`
904
+ flex: 1;
905
+ justify-content: space-between;
906
+ min-width: 0;
907
+ `,tYe=W(Ke)`
908
+ min-width: 0;
909
+ word-wrap: break-word;
910
+ `,rYe=W(ev)`
911
+ width: 100%;
912
+ `,oF=W(tU)`
913
+ ${({theme:e})=>e.breakpoints.up("md")} {
914
+ margin-bottom: 20px;
915
+ }
916
+ `,nYe=W(mo)`
917
+ gap: 10px;
918
+ margin: 0;
919
+ `,aF=W(Aa)`
920
+ align-self: flex-start;
921
+ ${({theme:e})=>e.typography.body2};
922
+ color: ${({theme:e})=>e.palette.primary.main};
923
+ text-decoration: underline;
924
+ `,iYe=(e,t)=>({onDeselectAllDevices:()=>{const o=e.map(a=>({...a,selected:!1}));t(o)},onSelectAllDevices:()=>{const o=e.map(a=>({...a,selected:!0}));t(o)},onSelectDevice:o=>{const a=e.map(s=>{const l={...s};return l.id===o&&(l.selected=!l.selected),l});t(a)}}),oYe=({devices:e=[],isLoading:t,setDevices:r=()=>{},title:n})=>{const{t:i}=wr("location"),o=Ra(eb).querySelector("#dialogs"),{isMobile:a}=Xc(),s=iYe(e,r),[l,u]=qr(!1),p=`${e.filter(g=>g.selected).length}/${e.length}`,h=e.every(g=>g.selected),m=t&&E.jsx(E.Fragment,{children:[1,2,3].map(g=>E.jsx(ic,{},g))})||E.jsxs(eU,{children:[h?E.jsx(aF,{onClick:s.onDeselectAllDevices,children:i("dcim-chart.device-selector.deselect-all")}):E.jsx(aF,{onClick:s.onSelectAllDevices,children:i("dcim-chart.device-selector.select-all")}),e.map(({color:g,id:y,name:x,selected:b})=>E.jsx(rYe,{control:E.jsx(WB,{checked:b,name:x,onChange:()=>s.onSelectDevice(y)}),disableTypography:!0,label:E.jsxs(eYe,{children:[E.jsx(tYe,{children:x}),E.jsx(QXe,{color:g})]})},x))]});if(a){const g=[{label:i("common:close"),mobileLabel:E.jsx(xz,{}),trigger:()=>u(!1)}];return E.jsxs(E.Fragment,{children:[E.jsx($R,{container:o,actions:g,fullScreen:!0,open:l,title:i("dcim-chart.device-selector.label"),children:m}),E.jsxs(nYe,{children:[E.jsx(oF,{children:E.jsx(Ke,{variant:"h6",children:n})}),E.jsx(zXe,{count:p,onClick:()=>u(!0),title:i("dcim-chart.device-selector.label")})]})]})}return E.jsxs(QB,{variant:"standard",component:"fieldset",fullWidth:!0,children:[E.jsx(oF,{children:E.jsx(Ke,{variant:"h6",children:n})}),m]})};var RO={},aYe=Ut;Object.defineProperty(RO,"__esModule",{value:!0});var _z=RO.default=void 0,sYe=aYe(Mp()),lYe=E;_z=RO.default=(0,sYe.default)((0,lYe.jsx)("path",{d:"M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1m0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-1.41-6.8-6.8v.02C4.42 6.45 3 9.05 3 12c0 4.97 4.02 9 9 9 4.97 0 9-4.03 9-9s-4.03-9-9-9zm7 9c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1M6 12c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1"}),"AvTimer");const uYe=W(Mr)`
925
+ position: relative;
926
+ min-height: 60vh;
927
+ width: 99%;
928
+
929
+ ${({theme:e})=>e.breakpoints.down("md")} {
930
+ min-height: 40vh;
931
+ }
932
+ `,cYe=W(_R)`
933
+ padding: 18px 16px 24px;
934
+ border-radius: 0px;
935
+ `,dYe=W(Op)`
936
+ color: ${({theme:e})=>e.extraColors.textDark};
937
+ .MuiInputBase-input {
938
+ padding: 2px;
939
+ padding-left: 8px;
940
+ ${({theme:e})=>e.typography.subtitle2};
941
+ }
942
+
943
+ .MuiSelect-icon {
944
+ margin-left: 8px;
945
+ transform: none !important;
946
+ }
947
+
948
+ fieldset {
949
+ border-color: ${({theme:e})=>e.extraColors.divider};
950
+ }
951
+ `,CE=W(Mr)`
952
+ display: flex;
953
+ flex-direction: row;
954
+ align-items: center;
955
+ column-gap: ${({columnGap:e})=>e||"8px"};
956
+ `,fYe=W(CE)`
957
+ ${({theme:e})=>e.breakpoints.up("md")} {
958
+ flex: 1;
959
+ }
960
+ ${({theme:e})=>e.breakpoints.down("md")} {
961
+ align-items: flex-start;
962
+ flex-direction: column;
963
+ }
964
+ `,pYe=W(dYe)`
965
+ .MuiInputBase-input {
966
+ line-height: 14px;
967
+ }
968
+ `,So={Day:1350,Hour:15e3,FifteenMinutes:5e4,FiveMinutes:60480,Minute:60480},hYe=(e,t,r)=>{const a=(t.valueOf()-e.valueOf())/K5/60;let l=a/1440*r;const u={datapointsForDuration:l,intervalType:uo.Day,limit:So.Day,numberOfDevices:r,isValid:l<=So.Day};l=a/60*r;const p={datapointsForDuration:l,intervalType:uo.Hour,limit:So.Hour,numberOfDevices:r,isValid:l<=So.Hour};l=a/15*r;const m={datapointsForDuration:l,intervalType:uo.FifteenMinutes,limit:So.FifteenMinutes,numberOfDevices:r,isValid:l<=So.FifteenMinutes};l=a/5*r;const y={datapointsForDuration:l,intervalType:uo.FiveMinutes,limit:So.FiveMinutes,numberOfDevices:r,isValid:l<=So.FiveMinutes};l=a/1*r;const b={datapointsForDuration:l,intervalType:uo.Minute,limit:So.Minute,numberOfDevices:r,isValid:l<=So.Minute};return{Day:u,Hour:p,FifteenMinutes:m,FiveMinutes:y,Minute:b}},mYe=(e,t,r)=>{const n=hYe(e,t,r);return[{disabled:!n.Day.isValid,value:n.Day.intervalType},{disabled:!n.Hour.isValid,value:n.Hour.intervalType},{disabled:!n.FifteenMinutes.isValid,value:n.FifteenMinutes.intervalType},{disabled:!n.FiveMinutes.isValid,value:n.FiveMinutes.intervalType},{disabled:!n.Minute.isValid,value:n.Minute.intervalType}]},gYe=({interval:e,startDate:t,endDate:r,numberOfDevices:n,setInterval:i})=>{const{t:o}=wr("location"),{isMobile:a}=Xc(),s=d=>{const p=d.target.value;i(p)},u=mYe(t,r,n).map(d=>E.jsx("option",{disabled:d.disabled,value:d.value,children:o(`dcim-chart.increments.${Vr.kebabCase(d.value)}`)},d.value));return E.jsxs(fYe,{children:[E.jsx(Ke,{variant:"body2",children:o("dcim-chart.increments.label")}),E.jsx(pYe,{autoWidth:!a,fullWidth:a,IconComponent:_z,native:!0,onChange:s,value:e,variant:"outlined",children:u})]})};var va=(e=>(e.Daily="daily",e.Trend="trend",e))(va||{});const sF=W(NXe,{shouldForwardProp:e=>e!=="fullWidth"})`
969
+ padding-top: 4px;
970
+ padding-bottom: 4px;
971
+ min-width: 90px;
972
+ ${({theme:e})=>e.typography.overline};
973
+ color: ${({theme:e})=>e.extraColors.textDark2};
974
+ background-color: transparent;
975
+ border: 1px solid ${({theme:e})=>e.extraColors.divider2};
976
+ cursor: pointer;
977
+
978
+ :first-of-type {
979
+ border-top-left-radius: 3px;
980
+ border-bottom-left-radius: 3px;
981
+ }
982
+
983
+ :last-of-type {
984
+ border-top-right-radius: 3px;
985
+ border-bottom-right-radius: 3px;
986
+ }
987
+
988
+ &[aria-selected='true'] {
989
+ background-color: ${({theme:e})=>e.palette.primary.main} !important;
990
+ color: ${({theme:e})=>e.palette.background.paper};
991
+ border-color: ${({theme:e})=>e.palette.primary.main};
992
+ }
993
+ `,vYe=({viewType:e})=>{const{t}=wr("location");return E.jsx(IXe,{children:E.jsxs(Kue,{value:e,children:[E.jsx(sF,{value:va.Trend,children:t("dcim-chart.view.trend")}),E.jsx(sF,{value:va.Daily,children:t("dcim-chart.view.daily")})]})})},yYe=e=>E.jsx(Kf,{...e,children:E.jsx("path",{d:"M10 0H0V20H16V6L10 0ZM3 16L5.5 12.667L7 14.667L9.5 11.334L13 16H3ZM9 7V1.5L14.5 7H9Z"})}),bYe=e=>E.jsx(Kf,{...e,children:E.jsx("path",{d:"M10 0L0 2V16L10 18V0ZM12 2V4H14V6H12V8H14V10H12V12H14V14H12V16H20V2H12ZM16 4H18V6H16V4ZM2.17578 5.29688H3.95312L4.87695 7.51172C4.95195 7.69272 5.00841 7.90262 5.06641 8.14062H5.0918C5.1248 7.99762 5.19197 7.77914 5.29297 7.49414L6.32227 5.29688H7.94336L6.00781 8.9668L8 12.7031H6.27148L5.1582 10.2891C5.1162 10.2041 5.06639 10.0329 5.02539 9.79492H5.00977C4.98477 9.90892 4.93438 10.0796 4.85938 10.3086L3.73633 12.7031H2L4.06055 8.99609L2.17578 5.29688ZM16 8H18V10H16V8ZM16 12H18V14H16V12Z"})}),lF=W(us)`
994
+ .MuiSvgIcon-root {
995
+ width: 20px;
996
+ height: 20px;
997
+ }
998
+ `;function DC(e){return e==null?"":`${e}`}function xYe(e={}){const{separator:t,decimals:r}=e;return t?r?n=>n.toFixed(r).replace(".",t):n=>`${n}`.replace(".",t):r?n=>n.toFixed(r):n=>`${n}`}function PO(e={}){const t=typeof e.quote=="string"?e.quote:'"',r=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===r)return i=>i;const n=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(n,r)),`${t}${i}${t}`)}function wYe(e={stringFormatter:PO()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function _Ye(e={stringFormatter:PO()}){return t=>{if(t===null)return"";let r=JSON.stringify(t);return r===void 0?"":(r[0]==='"'&&(r=r.replace(/^"(.+)"$/,"$1")),e.stringFormatter(r))}}const CYe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function TYe(e){var t,r,n;const i=[];let o;for(;o=CYe.exec(e);)i.push((n=(t=o[3])!==null&&t!==void 0?t:(r=o[1])===null||r===void 0?void 0:r.trim())!==null&&n!==void 0?n:o[0]);return i}function uF(e,t,r){if(t in e){const o=e[t];return o===void 0?r:o}const n=Array.isArray(t)?t:TYe(t);let i=e;for(const o of n)if(i=i==null?void 0:i[o],i===void 0)return r;return i}function Cz(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function TE(e,t){let r=!0;return e.reduce((n,i)=>(i==null&&(i=""),r?(r=!1,`${i}`):`${n}${t}${i}`),"")}var cF;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(cF||(cF={}));class SYe{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const r=Object.assign({},t);r.fields&&(r.fields=this.preprocessFieldsInfo(r.fields,r.defaultValue)),r.transforms=r.transforms||[];const n=r.formatters&&r.formatters.string||PO(),i=_Ye({stringFormatter:n}),o={header:n,undefined:DC,boolean:DC,number:xYe(),bigint:DC,string:n,symbol:wYe({stringFormatter:n}),function:i,object:i};return r.formatters=Object.assign(Object.assign({},o),r.formatters),r.delimiter=r.delimiter||",",r.eol=r.eol||`
999
+ `,r.header=r.header!==!1,r.includeEmptyRows=r.includeEmptyRows||!1,r.withBOM=r.withBOM||!1,r}preprocessFieldsInfo(t,r){return t.map(n=>{if(typeof n=="string")return{label:n,value:i=>uF(i,n,r)};if(typeof n=="object"){const i="default"in n?n.default:r;if(typeof n.value=="string"){const o=n.value;return{label:n.label||n.value,value:a=>uF(a,o,i)}}if(typeof n.value=="function"){const o=n.label||n.value.name||"",a={label:o,default:i},s=n.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(n))})}getHeader(){return TE(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((r,n)=>r.map(i=>n(i)).reduce(Cz,[]),[t])}processRow(t){if(!t)return;const r=this.opts.fields.map(n=>this.processCell(t,n));if(!(!this.opts.includeEmptyRows&&r.every(n=>n==="")))return TE(r,this.opts.delimiter)}processCell(t,r){return this.processValue(r.value(t))}processValue(t){const r=this.opts.formatters[typeof t];return r(t)}}class EYe extends SYe{constructor(t){super(t)}parse(t){const r=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(r.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const n=this.opts.header?this.getHeader():"",i=this.processData(r);return(this.opts.withBOM?"\uFEFF":"")+n+(n&&i?this.opts.eol:"")+i}preprocessData(t){const r=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||r.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof r[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?r:r.map(n=>this.preprocessRow(n)).reduce(Cz,[])}processData(t){return TE(t.map(r=>this.processRow(r)).filter(r=>r),this.opts.eol)}}var rn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(rn||(rn={}));rn.QUOTATION_MARK+"",rn.QUOTATION_MARK,rn.REVERSE_SOLIDUS+"",rn.REVERSE_SOLIDUS,rn.SOLIDUS+"",rn.SOLIDUS,rn.LATIN_SMALL_LETTER_B+"",rn.BACKSPACE,rn.LATIN_SMALL_LETTER_F+"",rn.FORM_FEED,rn.LATIN_SMALL_LETTER_N+"",rn.NEWLINE,rn.LATIN_SMALL_LETTER_R+"",rn.CARRIAGE_RETURN,rn.LATIN_SMALL_LETTER_T+"",rn.TAB;var dF;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(dF||(dF={}));var fF;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(fF||(fF={}));var pF;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(pF||(pF={}));var hF;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(hF||(hF={}));const RYe=e=>[{value:"deviceDataId",label:e("dcim-chart.export.header.deviceDataId")},{value:"deviceName",label:e("dcim-chart.export.header.deviceName")},{value:"date",label:e("dcim-chart.export.header.date")},{value:"minValue",label:e("dcim-chart.export.header.minValue")},{value:"maxValue",label:e("dcim-chart.export.header.maxValue")},{value:"pointValue",label:e("dcim-chart.export.header.pointValue")}],Tz=(e,t)=>{let r=document.getElementById("chartjs-tooltip");r||(r=document.createElement("div"),r.id="chartjs-tooltip",document.body.appendChild(r));const n=e.tooltip;if(n.opacity===0){r.style.opacity="0";return}if(r.classList.remove("above","below","no-transform"),n.yAlign?r.classList.add(n.yAlign):r.classList.add("no-transform"),n.body){const l=n.title,[u]=n.body.map(({lines:m})=>m);let d="";const p=L2(t.typography.subtitle2,["margin-block:0px"]);l.forEach(m=>{d+=`<h3 style="${p}"><strong>${m}</strong></h3>`});const h=L2(t.typography.body2,["margin-block:0px"]);u.forEach(m=>{d+=`<p style="${h}">${m}</p>`}),r.innerHTML=d}const i=e.chart.canvas.getBoundingClientRect();let o=!1;n.caretX>n.chart.width*.9&&(o=!0);const a=o?"unset":i.left+window.scrollX+n.caretX+"px",s=o?i.width+window.scrollX-n.caretX+110+"px":"unset";r.style.opacity="1",r.style.position="absolute",r.style.left=a,r.style.right=s,r.style.top=i.top+window.scrollY+n.caretY+"px",r.style.padding="8px 12px",r.style.pointerEvents="none",r.style.backgroundColor=t.palette.background.paper,r.style.boxShadow="0px 0px 0px 1px "+t.extraColors.textDark2.toString(),r.style.borderRadius=t.shape.borderRadius+"px"},PYe=(e,t,r,n)=>{if(!e)return[];const i=[];return e.forEach(o=>{const a=t.find(s=>s.id===o.deviceDataId);a!=null&&a.selected&&i.push(o)}),i.map(o=>{const{deviceDataId:a,deviceName:s,trendData:l}=o;return l.map(u=>{const{maxValue:d,minValue:p,pointValue:h}=u;let{pollDateTime:m}=u;r&&(m=m.replace(" ","T"));const g=n(m,r);return{deviceDataId:a,deviceName:s,date:g,minValue:p,maxValue:d,pointValue:h}})}).flat()};async function OYe(e,t){const r=new Blob([e]),n=URL.createObjectURL(r),i=document.createElement("a");i.download=`${t}.csv`,i.href=n,i.target="_blank",document.body.appendChild(i),i.click(),document.body.removeChild(i)}function MYe(e,t,r=!1){const n=document.createElement("a");n.download=t,r?n.href=e:n.href="data:application/octet-stream;base64,"+e,n.target="_blank",n.click()}const AYe=e=>{const{assetName:t,chartType:r,dailyRef:n,data:i,devices:o,sitecode:a,trendRef:s}=e,{t:l}=wr("location"),{formatDateTime:u}=aP(),d=()=>`${l("dcim-chart.export.file-name",{location:t,site:a,view:Vr.startCase(r)})}`;return{createFileName:d,exportCsv:()=>{const m=new EYe({fields:RYe(l)}),g=r===va.Trend,y=PYe(i,o,g,u),x=m.parse(y),b=d();OYe(x,b)},exportImage:()=>{const g=(r===va.Trend?s:n).toBase64Image()||"",y=d();MYe(g,`${y}.png`,!0)}}},IYe=e=>{const{disabled:t}=e,r=AYe(e);return E.jsxs(ud,{children:[E.jsx(lF,{color:"primary",disabled:t,onClick:r.exportImage,size:"small",children:E.jsx(yYe,{inheritViewBox:!0})}),E.jsx(lF,{color:"success",disabled:t,onClick:r.exportCsv,size:"small",children:E.jsx(bYe,{inheritViewBox:!0})})]})},$Ye="ohlc",DYe=(e,t,r,n)=>{const i=fn();return r.length?{datasets:r.map(a=>{const{deviceDataId:s,trendData:l,deviceName:u}=a;let d=[];const p=n.find(m=>m.id===s);return l.forEach(({maxValue:m,minValue:g,pointValue:y,utcPollDateTime:x})=>{const b=[],S=qi(x).getTime(),w=Vr.chain(e).filter(_=>_.ddid===s).findLast(({alertTimeStamp:_})=>QU(S,qi(_))).value();w&&b.push({x:S,y:Number(w.functionValue),alert:w}),b.push({x:S,y:Number(y)},{x:S,y:Number(g)},{x:S,y:Number(m)}),d=d.concat(b.map((_,O)=>({..._,index:O,hasAlert:w!==void 0})))}),d=d.sort((m,g)=>m.x-g.x),{animation:{duration:500,easing:"easeInOutCubic"},data:d,hidden:!(p!=null&&p.selected),label:u,pointBackgroundColor:m=>{const g=m.raw;return g.alert?i.palette.error.main:g.index===0||g.hasAlert&&g.index===1?i.extraColors.textDark:i.palette.background.paper},pointBorderColor:m=>{const g=m.raw,{borderColor:y}=m.dataset;return g.alert?i.palette.error.main:g.index===0?y==null?void 0:y.toString():i.extraColors.textDark},...t}})}:{datasets:[]}},Sz=(e=!1,t,r,n,i,o)=>({maintainAspectRatio:!1,animation:!1,scales:{x:{type:"time",time:{unit:"hour",tooltipFormat:`EEE, MMM dd, yyyy ${i}`},ticks:{minRotation:e?90:45,maxTicksLimit:e?12:24,callback:a=>Fp(Number(a),`${i} dd MMM`,{locale:t})}},y:{type:"linear"},y1:{axis:"y",type:"linear",position:"right",border:{display:!1},grid:{display:!1},ticks:{display:!1},title:{display:!0,text:r,padding:{bottom:32},font:n.typography.caption}}},font:{family:n.typography.caption.fontFamily,size:12},plugins:{legend:{display:!1},colors:{enabled:!1},annotation:o?{annotations:[{backgroundColor:n.extraColors.divider2,borderColor:cE("#000",.5),type:"box",xMin:qi(o.startDate).getTime(),xMax:qi(o.endDate).getTime()}]}:{}}}),LYe=(e,t,r)=>{const{t:n}=wr("location"),i=fn(),{adapterLocale:o}=oP(),{getTimeFormatString:a}=aP(),{isMobile:s}=Xc(),l=Sz(s,o,r,i,a(!1),e),u=kYe(n,i,t,a(!1));return Vr.merge(l,u)},kYe=(e,t,r,n)=>{const i=e("dcim-chart.point-value.daily-avg"),o=e("dcim-chart.point-value.daily-min"),a=e("dcim-chart.point-value.daily-max"),s=e("dcim-chart.point-value.current");return{scales:{x:{ticks:{source:"data"}}},plugins:{tooltip:{callbacks:{title:()=>[r],label:u=>{const d=u.raw,p=[i,o,a];d.hasAlert&&p.unshift("");let h=u.label,m=" ";if(d.alert){const{alertType:y,alertCategory:x,alertTimeStamp:b}=d.alert;m=e("dcim-chart.point-value.alert",{type:Vr.upperFirst(y),category:Vr.upperFirst(x)}),p.unshift(m),h=Fp(qi(b),`EEE, MMM dd, yyyy ${n}`)}const g=p[d.index];return[h,g,`${s}: ${u.formattedValue}`]}},enabled:!1,external:u=>Tz(u,t)}}}},NYe=({alerts:e=[],data:t=[],deviceList:r=[],plannedMaintenance:n,setChartRef:i,title:o="",yAxisLabel:a})=>{const s=LYe(n,o,a),l=DYe(e,s,t,r);return E.jsx(wz,{children:E.jsx(iz,{data:l,options:s,ref:i,type:$Ye,width:"100%"})})},FYe=(e,t,r=[],n)=>{const i=fn();return r.length?{datasets:r.map(a=>{const{deviceDataId:s,trendData:l,deviceName:u}=a,d=[],p=n.find(h=>h.id===s);return l.forEach(({pointValue:h,utcPollDateTime:m})=>{const g=qi(m).getTime();d.push({x:g,y:Number(h)})}),e==null||e.filter(h=>h.ddid===s).forEach(h=>{d.push({x:qi(h.alertTimeStamp).getTime(),y:Number(h.functionValue),alert:h})}),d.sort((h,m)=>h.x-m.x),{animation:{duration:500,easing:"easeInOutCubic"},borderColor:p==null?void 0:p.color,borderJoinStyle:"bevel",data:d,hidden:!(p!=null&&p.selected),label:u,pointBackgroundColor:h=>mF(h.raw,i),pointBorderColor:h=>mF(h.raw,i),pointBorderWidth:h=>h.raw.alert?2:0,pointRadius:2,...t}})}:{datasets:[]}};function mF(e,t){return e.alert?t.palette.error.main:t.extraColors.textDark}const jYe=(e,t,r,n)=>{const{t:i}=wr("location"),o=fn(),{adapterLocale:a}=oP(),{getTimeFormatString:s}=db(),{isMobile:l}=Xc(),u=Sz(l,a,n,o,s(!1),e),d=BYe(o,t,r,i("dcim-chart.point-value.current"));return Vr.merge(u,d)},BYe=(e,t,r,n)=>({elements:{line:{borderWidth:2}},plugins:{tooltip:{callbacks:{title:()=>[t],label:o=>[o.label,r,`${n}: ${o.formattedValue}`]},enabled:!1,external:o=>Tz(o,e)}},scales:{x:{ticks:{source:"data"}}}}),UYe=({alerts:e=[],data:t=[],deviceList:r=[],plannedMaintenance:n,setChartRef:i,title:o="",unitInfo:a="",yAxisLabel:s})=>{const l=jYe(n,o,a,s),u=FYe(e,l,t,r);return E.jsx(wz,{children:E.jsx(oz,{data:u,options:l,ref:i,width:"100%"})})},qYe=W(mo)`
1000
+ flex-direction: row;
1001
+ align-items: inherit;
1002
+ gap: 8px;
1003
+
1004
+ ${({theme:e})=>e.breakpoints.down("sm")} {
1005
+ flex-direction: column;
1006
+ }
1007
+ `,HYe=W(Op)`
1008
+ color: ${({theme:e})=>e.extraColors.textDark};
1009
+ .MuiInputBase-input {
1010
+ padding: 2px;
1011
+ padding-left: 8px;
1012
+ ${({theme:e})=>e.typography.subtitle2};
1013
+ }
1014
+
1015
+ .MuiSelect-icon {
1016
+ margin-left: 8px;
1017
+ transform: none !important;
1018
+ }
1019
+
1020
+ fieldset {
1021
+ border-color: ${({theme:e})=>e.extraColors.divider};
1022
+ }
1023
+ `,WYe=({isMobile:e,metric:t,options:r,setMetric:n,title:i})=>E.jsxs(qYe,{children:[E.jsx(Ke,{whiteSpace:"nowrap",variant:"body2",children:i}),E.jsx(HYe,{autoWidth:!e,fullWidth:e,onChange:o=>n(o.target.value),value:t,variant:"outlined",children:r.map(o=>E.jsx(PR,{value:o,children:o},o))})]}),zYe=W(uYe)`
1024
+ padding-top: 40%;
1025
+ `,VYe=W(ic)`
1026
+ position: absolute;
1027
+ top: 0;
1028
+ left: 0;
1029
+ width: 100%;
1030
+ height: 100%;
1031
+ `,GYe=()=>E.jsxs(cYe,{children:[E.jsxs(mo,{direction:"row",alignItems:"center",justifyContent:"space-between",marginBottom:3,children:[E.jsx(CE,{children:E.jsx(ic,{width:125,variant:"rectangular"})}),E.jsx(CE,{children:E.jsx(ic,{width:"30vw",variant:"rectangular"})}),E.jsx(ic,{width:125,variant:"rectangular"})]}),E.jsx(zYe,{children:E.jsx(VYe,{variant:"rectangular",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}})})]}),KYe=e=>{const{label:t,setShowAlerts:r,showAlerts:n}=e,i=(o,a)=>r(a);return E.jsx(ev,{control:E.jsx(WB,{style:{padding:"0 9px"},checked:n,onChange:i}),label:E.jsx(Ke,{variant:"body2",children:t})})},XYe=e=>gF[e%gF.length],gF=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5","#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6","#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476"],YYe=W(ud)`
1032
+ ${({theme:e})=>e.breakpoints.down("sm")} {
1033
+ align-items: center;
1034
+
1035
+ flex-wrap: wrap;
1036
+
1037
+ div {
1038
+ width: auto;
1039
+ }
1040
+
1041
+ p {
1042
+ width: 100%;
1043
+ }
1044
+
1045
+ p:nth-of-type(2) {
1046
+ margin-top: 4px;
1047
+ }
1048
+ }
1049
+ `,vF=W(IR)`
1050
+ min-width: 225px;
1051
+
1052
+ .MuiInputBase-root {
1053
+ padding-right: 8px;
1054
+ }
1055
+
1056
+ .MuiInputBase-input {
1057
+ padding: 4px 8px;
1058
+ ${({theme:e})=>e.typography.subtitle2};
1059
+ }
1060
+
1061
+ svg {
1062
+ width: 16px;
1063
+ height: 16px;
1064
+ }
1065
+
1066
+ fieldset {
1067
+ border: 1px solid ${({theme:e})=>e.extraColors.divider};
1068
+ border-radius: 3px;
1069
+ }
1070
+ `,ZYe=(e,t)=>({onAccept:n=>{const[i,o]=n,a={...e};i&&(a.startDate=Sa(i)),o&&(a.endDate=Tc(o)),t(a)}}),JYe=({dateInterval:e,setDateInterval:t})=>{const{t:r}=wr("location"),{dateTimeFormatUserPreferenceString:n}=db(),{isMobile:i}=Xc(),{onAccept:o}=ZYe(e,t);return E.jsx(pxe,{disableFuture:!0,disableMaskedInput:!0,inputFormat:n,onAccept:o,onChange:()=>null,reduceAnimations:!0,disableAutoMonthSwitching:!0,renderInput:(a,s)=>E.jsxs(YYe,{children:[E.jsx(Ke,{variant:"body2",children:r("dcim-chart.date-range.from")}),E.jsx(vF,{...a,inputProps:{...a.inputProps,readOnly:!0,style:{cursor:"pointer"}},InputProps:{...a.InputProps,endAdornment:E.jsx(W$,{position:"end",children:E.jsx(ak,{})})}}),i&&E.jsx(Ke,{variant:"caption",children:r("dcim-chart.utc")}),E.jsx(Ke,{variant:"body2",children:r("dcim-chart.date-range.to")}),E.jsx(vF,{...s,inputProps:{...s.inputProps,readOnly:!0,style:{cursor:"pointer"}},InputProps:{...s.InputProps,endAdornment:E.jsx(W$,{position:"end",children:E.jsx(ak,{})})}}),E.jsx(Ke,{variant:"caption",children:r("dcim-chart.utc")})]}),value:[e.startDate,e.endDate]})},QYe=async e=>{let t=[];try{const r=await eH({...e,leasedSpaceName:e.leasedSpaceName}),n=await J5(e);t=(r==null?void 0:r.content)||[],t=t.concat(n==null?void 0:n.content)}catch{return t}return t},eZe=(e,t)=>{const r=`${Qn.DCIM_ALERTS}-${Qn.DCIM_HISTORICAL_ALERTS}`;return Oa([r,e],()=>QYe(e),{refetchOnWindowFocus:!1,...t})},tZe=(e,t,r)=>{const n=[];return e&&t&&n.push(qge(new Date(e),new Date(t))),r&&n.push(r),n.join(" ")},rZe=e=>{const{t}=wr(["location","notifications"]),{adapterLocale:r,localeText:n}=oP(),{isMobile:i}=Xc(),{assetName:o,endDate:a,functionName:s,interval:l,leasedSpaceName:u,sitecode:d,startDate:p,subCategory:h=""}=e,[m,g]=qr({startDate:Sa(Date.parse(p)),endDate:Tc(Date.parse(a))}),[y,x]=qr(va.Trend),[b,S]=qr(!0),[w,_]=qr(s),[O,C]=qr([]),[T,M]=qr(l||uo.Hour),[D,$]=qr([]);It(()=>{T===uo.Day&&x(va.Daily)},[T,M]);const[N,B]=qr(null),[q,U]=qr(null),F=Z5(u,{enabled:!!d&&!!o}),j=Y5({endDate:m.endDate.toISOString(),functionName:s,interval:T,leasedSpaceName:u,startDate:m.startDate.toISOString(),subCategory:h},{enabled:F.isSuccess}),V=eZe({endDate:m.endDate.toISOString(),leasedSpaceName:u,startDate:m.startDate.toISOString()}),z=z$e(d,o,m.startDate.toISOString(),m.endDate.toISOString());It(()=>{var fe;const Ae=((fe=j.data)==null?void 0:fe.portalTrendData)||[],ve=Ae.map((Ee,_e)=>({color:XYe(_e),id:Ee.deviceDataId,name:Ee.deviceName,selected:_e===0}));C(ve),$(Ae)},[j.data]);const Q=At((Ae,ve)=>{x(ve),ve===va.Trend&&M(uo.Hour)},[]),oe=tZe(p,a,s),ae=j.isLoading||F.isLoading||V.isLoading,he=O.filter(Ae=>Ae.selected).length;return E.jsxs(WR,{children:[E.jsx(VR,{assetName:o,sitecode:d}),E.jsxs(zR,{container:!0,spacing:{xs:2.5,md:0},children:[E.jsx(zr,{item:!0,xs:12,sm:3,md:2,lg:2,children:E.jsx(oYe,{devices:O,isLoading:ae,setDevices:C,title:h})}),E.jsx(zr,{item:!0,xs:12,sm:9,md:10,lg:10,children:E.jsx(Mr,{children:E.jsxs(CXe,{onChange:Q,value:y,children:[E.jsxs(GXe,{children:[E.jsx(Bye,{adapterLocale:r,dateAdapter:UXe,localeText:{...n,end:"",start:""},children:E.jsx(JYe,{dateInterval:m,setDateInterval:g})}),y===va.Trend&&E.jsx(gYe,{endDate:m.endDate,interval:T,numberOfDevices:O.length,setInterval:M,startDate:m.startDate}),E.jsxs(KXe,{children:[E.jsx(vYe,{viewType:y}),E.jsx(IYe,{assetName:o,chartType:y,dailyRef:q,data:D,devices:O,disabled:j.isLoading||he===0,sitecode:d||"",trendRef:N})]})]}),ae?E.jsx(GYe,{}):E.jsxs(XXe,{elevation:i?0:1,children:[E.jsxs(YXe,{children:[E.jsx(WYe,{isMobile:i,metric:w,options:[s],setMetric:_,title:t("dcim-chart.y-axis-metric")}),E.jsxs(ZXe,{children:[E.jsxs(ud,{children:[E.jsx(VXe,{}),E.jsx(Ke,{variant:"caption",children:oe})]}),E.jsx(JXe,{children:t("notifications:type.planned_site_maintenance")}),E.jsx(Ke,{variant:"caption",children:t("dcim-chart.timezone.utc")})]}),E.jsx(KYe,{label:t("dcim-chart.show-alert-data"),setShowAlerts:S,showAlerts:b})]}),E.jsx(iF,{value:"trend",children:E.jsx(UYe,{alerts:b?V.data:[],data:D,deviceList:O,plannedMaintenance:z.data,setChartRef:B,title:`${h} | UTC`,unitInfo:oe,yAxisLabel:s})}),E.jsx(iF,{value:"daily",children:E.jsx(NYe,{alerts:b?V.data:[],data:D,deviceList:O,plannedMaintenance:z.data,setChartRef:U,title:`${h} | UTC`,yAxisLabel:s})})]})]})})})]})]})},nZe=()=>{const e=window.location.search.slice(1),t=ab.parse(e),{assetName:r,endDate:n,functionName:i,interval:o,sitecode:a,startDate:s,subCategory:l}=t,u=`${a}-${r}`;return It(()=>{window.dispatchEvent(new CustomEvent(x1,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),E.jsx(kR,{children:E.jsx(rZe,{assetName:r,endDate:n,functionName:i,interval:o,leasedSpaceName:u,sitecode:a,startDate:s,subCategory:l})})},iZe=()=>{const e=window.location.search.slice(1),t=ab.parse(e),{assetName:r,sitecode:n}=t,i=`${n}-${r}`;return It(()=>{window.dispatchEvent(new CustomEvent(x1,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),E.jsx(kR,{children:E.jsx(TKe,{assetName:r,date:new Date,leasedSpaceName:i,sitecode:n})})},oZe=W(Mr)`
1071
+ display: flex;
1072
+ flex-direction: column;
1073
+ gap: 42px;
1074
+
1075
+ ${({theme:e})=>e.breakpoints.down("md")} {
1076
+ gap: 26px;
1077
+ }
1078
+ `,yF=W(Ke)`
1079
+ font-size: 12px;
1080
+ max-width: 240px;
1081
+ line-height: 16px;
1082
+ ${({theme:e})=>e.breakpoints.down("lg")} {
1083
+ gap: 26px;
1084
+ max-width: 100%;
1085
+ }
1086
+ ${({theme:e})=>e.breakpoints.up("lg")} {
1087
+ padding-top: 47px;
1088
+ }
1089
+ `,aZe=({assetName:e,leasedSpaceName:t,sitecode:r,type:n})=>{const{t:i}=wr("location"),o=Ts(sv.breakpoints.down("sm")),a=Ts(sv.breakpoints.down("lg")),[s,l]=qr({category:Pc,type:n||Vn.CUSTOM}),u=(d,p)=>{l(h=>({...h,[d]:p}))};return E.jsx("div",{children:E.jsxs(WU,{children:[E.jsxs(gme,{children:[E.jsx(mme,{children:e}),E.jsx(Ke,{variant:"subtitle1",children:r})]}),E.jsxs(zr,{container:!0,spacing:{xs:2.5,md:3},children:[E.jsx(zr,{item:!0,xs:12,sm:4,md:4,lg:3,xl:2,children:E.jsxs(oZe,{children:[E.jsx(OP,{leasedSpaceName:t,filters:s,handleFilters:u,disableOptionHistory:!0,disableOptionAll:!0,isDefinitionsView:!0}),E.jsx(xH,{leasedSpaceName:t,filters:s,handleFilters:u,isDefinitionsView:!0}),a&&!o&&E.jsx(yF,{variant:"body2",children:i("alerts.definitions.warning-message")})]})}),E.jsx(zr,{item:!0,xs:12,sm:8,md:8,lg:7,xl:7,children:E.jsx(d4,{leasedSpaceName:t,alertType:s.type,alertCategory:s.category,title:i("alerts.definitions.title"),isDefinitionsView:!0})}),!a&&E.jsx(zr,{item:!0,xs:12,lg:2,xl:3,children:E.jsx(yF,{variant:"body2",children:i("alerts.definitions.warning-message")})})]})]})})},sZe=()=>{const e=window.location.search.slice(1),t=ab.parse(e),{assetName:r,sitecode:n,type:i}=t,o=`${n}-${r}`;return It(()=>{window.dispatchEvent(new CustomEvent(x1,{detail:{location:{route:{hideAccountSwitcher:!0}}}}))},[]),E.jsx(kR,{children:E.jsx(aZe,{assetName:r,date:new Date,leasedSpaceName:o,sitecode:n,type:i})})},XJe=[{path:"/details",element:E.jsx(iZe,{})},{path:"/chart",element:E.jsx(nZe,{})},{path:"/alert",element:E.jsx(YVe,{})},{path:"/alerts-definitions",element:E.jsx(sZe,{})},{path:"/*",element:E.jsx(WY,{to:"/details",replace:!0})}];class OO extends cc{draw(){const{data:t}=this.getMeta(),r=Object.values(Vr.groupBy(t,"x")),{radius:n,borderColor:i}=t[0].options,o=this.chart.ctx;o.strokeStyle=i,o.lineWidth=1,o.beginPath(),r.forEach(a=>{const[s,l]=a.slice(-2);o.moveTo(s.x,s.y-n),o.lineTo(l.x,l.y+n),o.stroke()}),super.draw()}}OO.id="ohlc";OO.defaults=cc.defaults;/*!
1090
+ * chartjs-plugin-annotation v2.2.1
1091
+ * https://www.chartjs.org/chartjs-plugin-annotation/index
1092
+ * (c) 2023 chartjs-plugin-annotation Contributors
1093
+ * Released under the MIT License
1094
+ */const bF={modes:{point(e,t){return Mg(e,t,{intersect:!0})},nearest(e,t,r){return cZe(e,t,r)},x(e,t,r){return Mg(e,t,{intersect:r.intersect,axis:"x"})},y(e,t,r){return Mg(e,t,{intersect:r.intersect,axis:"y"})}}};function MO(e,t,r){return(bF.modes[r.mode]||bF.modes.nearest)(e,t,r)}function lZe(e,t,r){return r!=="x"&&r!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,r,!0)}function uZe(e,t,r){return r==="x"?{x:e.x,y:t.y}:r==="y"?{x:t.x,y:e.y}:t}function Mg(e,t,r){return e.visibleElements.filter(n=>r.intersect?n.inRange(t.x,t.y):lZe(n,t,r.axis))}function cZe(e,t,r){let n=Number.POSITIVE_INFINITY;return Mg(e,t,r).reduce((i,o)=>{const a=o.getCenterPoint(),s=uZe(t,a,r.axis),l=Ic(t,s);return l<n?(i=[o],n=l):l===n&&i.push(o),i},[]).sort((i,o)=>i._index-o._index).slice(0,1)}const dZe=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Tl=.001,O1=(e,t,r)=>Math.min(r,Math.max(t,e));function fZe(e,t,r){for(const n of Object.keys(e))e[n]=O1(e[n],t,r);return e}function pZe(e,t,r,n){if(!e||!t||r<=0)return!1;const i=n/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(r+i,2)}function Ez(e,{x:t,y:r,x2:n,y2:i},o,a){const s=a/2,l=e.x>=t-s-Tl&&e.x<=n+s+Tl,u=e.y>=r-s-Tl&&e.y<=i+s+Tl;return o==="x"?l:(o==="y"||l)&&u}function cd(e,t){const{centerX:r,centerY:n}=e.getProps(["centerX","centerY"],t);return{x:r,y:n}}function hZe(e,t,r,n=!0){const i=r.split(".");let o=0;for(const a of t.split(".")){const s=i[o++];if(parseInt(a,10)<parseInt(s,10))break;if(dZe(s,a)){if(n)throw new Error(`${e} v${r} is not supported. v${t} or newer is required.`);return!1}}return!0}const Rz=e=>typeof e=="string"&&e.endsWith("%"),Pz=e=>parseFloat(e)/100,Oz=e=>O1(Pz(e),0,1);function AO(e,t){return t==="start"?0:t==="end"?e:Rz(t)?Oz(t)*e:e/2}function Rs(e,t,r=!0){return typeof t=="number"?t:Rz(t)?(r?Oz(t):Pz(t))*e:e}function mZe(e,t){const{x:r,width:n}=e,i=t.textAlign;return i==="center"?r+n/2:i==="end"||i==="right"?r+n:r}function IO(e,t="center"){return yt(e)?{x:mt(e.x,t),y:mt(e.y,t)}:(e=mt(e,t),{x:e,y:e})}function Mz(e){return e&&(mi(e.xValue)||mi(e.yValue))}function ph(e,t,r,n=!1){const i=r.init;if(i){if(i===!0)return Iz(t,n)}else return;return gZe(t,n,Kt(i,[{chart:e,properties:t,options:r}]))}function Az(e,t,r){let n=!1;return t.forEach(i=>{Yn(e[i])?(n=!0,r[i]=e[i]):mi(r[i])&&delete r[i]}),n}function Iz({centerX:e,centerY:t},r){return r?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function gZe(e,t,r){if(r===!0)return Iz(e,t);if(yt(r))return r}const LC=new Map,vZe=e=>isNaN(e)||e<=0,yZe=e=>e.reduce(function(t,r){return t+=r.string,t},"");function M1(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function $O(e,{x:t,y:r},n){n&&(e.translate(t,r),e.rotate(Sn(n)),e.translate(-t,-r))}function Ps(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function dd(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function DO(e,t){const r=t.content;if(M1(r))return{width:Rs(r.width,t.width),height:Rs(r.height,t.height)};const n=t.font,i=ar(n)?n.map(l=>ln(l)):[ln(n)],o=t.textStrokeWidth,a=ar(r)?r:[r],s=a.join()+yZe(i)+o+(e._measureText?"-spriting":"");return LC.has(s)||LC.set(s,CZe(e,a,i,o)),LC.get(s)}function $z(e,t,r){const{x:n,y:i,width:o,height:a}=t;e.save(),dd(e,r);const s=Ps(e,r);e.fillStyle=r.backgroundColor,e.beginPath(),Zv(e,{x:n,y:i,w:o,h:a,radius:fZe(lc(r.borderRadius),0,Math.min(o,a)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=r.borderShadowColor,e.stroke()),e.restore()}function bZe(e,t,r){const n=r.content;if(M1(n)){e.save(),e.globalAlpha=EZe(r.opacity,n.style.opacity),e.drawImage(n,t.x,t.y,t.width,t.height),e.restore();return}const i=ar(n)?n:[n],o=r.font,a=ar(o)?o.map(p=>ln(p)):[ln(o)],s=r.color,l=ar(s)?s:[s],u=mZe(t,r),d=t.y+r.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=r.textAlign,xZe(e,r)&&TZe(e,{x:u,y:d},i,a),SZe(e,{x:u,y:d},i,{fonts:a,colors:l}),e.restore()}function xZe(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function wZe(e,t,r,n){const{radius:i,options:o}=t,a=o.pointStyle,s=o.rotation;let l=(s||0)*fO;if(M1(a)){e.save(),e.translate(r,n),e.rotate(l),e.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),e.restore();return}vZe(i)||_Ze(e,{x:r,y:n,radius:i,rotation:s,style:a,rad:l})}function _Ze(e,{x:t,y:r,radius:n,rotation:i,style:o,rad:a}){let s,l,u,d;switch(e.beginPath(),o){default:e.arc(t,r,n,0,Ni),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(a)*n,r-Math.cos(a)*n),a+=Xv,e.lineTo(t+Math.sin(a)*n,r-Math.cos(a)*n),a+=Xv,e.lineTo(t+Math.sin(a)*n,r-Math.cos(a)*n),e.closePath();break;case"rectRounded":d=n*.516,u=n-d,s=Math.cos(a+Ii)*u,l=Math.sin(a+Ii)*u,e.arc(t-s,r-l,d,a-Zt,a-kn),e.arc(t+l,r-s,d,a-kn,a),e.arc(t+s,r+l,d,a,a+kn),e.arc(t-l,r+s,d,a+kn,a+Zt),e.closePath();break;case"rect":if(!i){u=Math.SQRT1_2*n,e.rect(t-u,r-u,2*u,2*u);break}a+=Ii;case"rectRot":s=Math.cos(a)*n,l=Math.sin(a)*n,e.moveTo(t-s,r-l),e.lineTo(t+l,r-s),e.lineTo(t+s,r+l),e.lineTo(t-l,r+s),e.closePath();break;case"crossRot":a+=Ii;case"cross":s=Math.cos(a)*n,l=Math.sin(a)*n,e.moveTo(t-s,r-l),e.lineTo(t+s,r+l),e.moveTo(t+l,r-s),e.lineTo(t-l,r+s);break;case"star":s=Math.cos(a)*n,l=Math.sin(a)*n,e.moveTo(t-s,r-l),e.lineTo(t+s,r+l),e.moveTo(t+l,r-s),e.lineTo(t-l,r+s),a+=Ii,s=Math.cos(a)*n,l=Math.sin(a)*n,e.moveTo(t-s,r-l),e.lineTo(t+s,r+l),e.moveTo(t+l,r-s),e.lineTo(t-l,r+s);break;case"line":s=Math.cos(a)*n,l=Math.sin(a)*n,e.moveTo(t-s,r-l),e.lineTo(t+s,r+l);break;case"dash":e.moveTo(t,r),e.lineTo(t+Math.cos(a)*n,r+Math.sin(a)*n);break}e.fill()}function CZe(e,t,r,n){e.save();const i=t.length;let o=0,a=n;for(let s=0;s<i;s++){const l=r[Math.min(s,r.length-1)];e.font=l.string;const u=t[s];o=Math.max(o,e.measureText(u).width+n),a+=l.lineHeight}return e.restore(),{width:o,height:a}}function TZe(e,{x:t,y:r},n,i){e.beginPath();let o=0;n.forEach(function(a,s){const l=i[Math.min(s,i.length-1)],u=l.lineHeight;e.font=l.string,e.strokeText(a,t,r+u/2+o),o+=u}),e.stroke()}function SZe(e,{x:t,y:r},n,{fonts:i,colors:o}){let a=0;n.forEach(function(s,l){const u=o[Math.min(l,o.length-1)],d=i[Math.min(l,i.length-1)],p=d.lineHeight;e.beginPath(),e.font=d.string,e.fillStyle=u,e.fillText(s,t,r+p/2+a),a+=p,e.fill()})}function EZe(e,t){const r=zl(e)?e:t;return zl(r)?O1(r,0,1):1}const xF={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function kc(e,t,r){return t=typeof t=="number"?t:e.parse(t),cn(t)?e.getPixelForValue(t):r}function Gl(e,t,r){const n=t[r];if(n||r==="scaleID")return n;const i=r.charAt(0),o=Object.values(e).filter(a=>a.axis&&a.axis===i);return o.length?o[0].id:i}function Dz(e,t){if(e){const r=e.options.reverse,n=kc(e,t.min,r?t.end:t.start),i=kc(e,t.max,r?t.start:t.end);return{start:n,end:i}}}function Lz(e,t){const{chartArea:r,scales:n}=e,i=n[Gl(n,t,"xScaleID")],o=n[Gl(n,t,"yScaleID")];let a=r.width/2,s=r.height/2;return i&&(a=kc(i,t.xValue,i.left+i.width/2)),o&&(s=kc(o,t.yValue,o.top+o.height/2)),{x:a,y:s}}function LO(e,t){const r=e.scales,n=r[Gl(r,t,"xScaleID")],i=r[Gl(r,t,"yScaleID")];if(!n&&!i)return{};let{left:o,right:a}=n||e.chartArea,{top:s,bottom:l}=i||e.chartArea;const u=wF(n,{min:t.xMin,max:t.xMax,start:o,end:a});o=u.start,a=u.end;const d=wF(i,{min:t.yMin,max:t.yMax,start:l,end:s});return s=d.start,l=d.end,{x:o,y:s,x2:a,y2:l,width:a-o,height:l-s,centerX:o+(a-o)/2,centerY:s+(l-s)/2}}function kz(e,t){if(!Mz(t)){const r=LO(e,t);let n=t.radius;(!n||isNaN(n))&&(n=Math.min(r.width,r.height)/2,t.radius=n);const i=n*2,o=r.centerX+t.xAdjust,a=r.centerY+t.yAdjust;return{x:o-n,y:a-n,x2:o+n,y2:a+n,centerX:o,centerY:a,width:i,height:i,radius:n}}return PZe(e,t)}function RZe(e,t){const{scales:r,chartArea:n}=e,i=r[t.scaleID],o={x:n.left,y:n.top,x2:n.right,y2:n.bottom};return i?OZe(i,o,t):MZe(r,o,t),o}function Nz(e,t,r){const n=LO(e,t);return n.initProperties=ph(e,n,t,r),n.elements=[{type:"label",optionScope:"label",properties:$Ze(e,n,t),initProperties:n.initProperties}],n}function PZe(e,t){const r=Lz(e,t),n=t.radius*2;return{x:r.x-t.radius+t.xAdjust,y:r.y-t.radius+t.yAdjust,x2:r.x+t.radius+t.xAdjust,y2:r.y+t.radius+t.yAdjust,centerX:r.x+t.xAdjust,centerY:r.y+t.yAdjust,radius:t.radius,width:n,height:n}}function wF(e,t){const r=Dz(e,t)||t;return{start:Math.min(r.start,r.end),end:Math.max(r.start,r.end)}}function OZe(e,t,r){const n=kc(e,r.value,NaN),i=kc(e,r.endValue,n);e.isHorizontal()?(t.x=n,t.x2=i):(t.y=n,t.y2=i)}function MZe(e,t,r){for(const n of Object.keys(xF)){const i=e[Gl(e,r,n)];if(i){const{min:o,max:a,start:s,end:l,startProp:u,endProp:d}=xF[n],p=Dz(i,{min:r[o],max:r[a],start:i[s],end:i[l]});t[u]=p.start,t[d]=p.end}}}function AZe({properties:e,options:t},r,n,i){const{x:o,x2:a,width:s}=e;return Fz({start:o,end:a,borderWidth:t.borderWidth},{position:n.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:r.width})}function IZe({properties:e,options:t},r,n,i){const{y:o,y2:a,height:s}=e;return Fz({start:o,end:a,borderWidth:t.borderWidth},{position:n.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:r.height})}function Fz(e,t){const{start:r,end:n,borderWidth:i}=e,{position:o,padding:{start:a,end:s},adjust:l}=t,u=n-i-r-a-s-t.size;return r+i/2+l+AO(u,o)}function $Ze(e,t,r){const n=r.label;n.backgroundColor="transparent",n.callout.display=!1;const i=IO(n.position),o=Nn(n.padding),a=DO(e.ctx,n),s=AZe({properties:t,options:r},a,i,o),l=IZe({properties:t,options:r},a,i,o),u=a.width+o.width,d=a.height+o.height;return{x:s,y:l,x2:s+u,y2:l+d,width:u,height:d,centerX:s+u/2,centerY:l+d/2,rotation:n.rotation}}function uu(e,t,r){const n=Math.cos(r),i=Math.sin(r),o=t.x,a=t.y;return{x:o+n*(e.x-o)-i*(e.y-a),y:a+i*(e.x-o)+n*(e.y-a)}}const SE=["enter","leave"],kO=SE.concat("click");function DZe(e,t,r){t.listened=Az(r,kO,t.listeners),t.moveListened=!1,t._getElements=MO,SE.forEach(n=>{Yn(r[n])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(n=>{!t.listened&&Yn(n.click)&&(t.listened=!0),t.moveListened||SE.forEach(i=>{Yn(n[i])&&(t.listened=!0,t.moveListened=!0)})})}function LZe(e,t,r){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return kZe(e,t,r);case"click":return NZe(e,t,r)}}function kZe(e,t,r){if(!e.moveListened)return;let n;t.type==="mousemove"?n=MO(e,t,r.interaction):n=[];const i=e.hovered;e.hovered=n;const o={state:e,event:t};let a=_F(o,"leave",i,n);return _F(o,"enter",n,i)||a}function _F({state:e,event:t},r,n,i){let o;for(const a of n)i.indexOf(a)<0&&(o=jz(a.options[r]||e.listeners[r],a,t)||o);return o}function NZe(e,t,r){const n=e.listeners,i=MO(e,t,r.interaction);let o;for(const a of i)o=jz(a.options.click||n.click,a,t)||o;return o}function jz(e,t,r){return Kt(e,[t.$context,r])===!0}const ey=["afterDraw","beforeDraw"];function FZe(e,t,r){const n=t.visibleElements;t.hooked=Az(r,ey,t.hooks),t.hooked||n.forEach(i=>{t.hooked||ey.forEach(o=>{Yn(i.options[o])&&(t.hooked=!0)})})}function CF(e,t,r){if(e.hooked){const n=t.options[r]||e.hooks[r];return Kt(n,[t.$context])}}function jZe(e,t,r){const n=WZe(e.scales,t,r);let i=TF(t,n,"min","suggestedMin");i=TF(t,n,"max","suggestedMax")||i,i&&Yn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function BZe(e,t){for(const r of e)qZe(r,t)}function TF(e,t,r,n){if(cn(t[r])&&!UZe(e.options,r,n)){const i=e[r]!==t[r];return e[r]=t[r],i}}function UZe(e,t,r){return mi(e[t])||mi(e[r])}function qZe(e,t){for(const r of["scaleID","xScaleID","yScaleID"]){const n=Gl(t,e,r);n&&!t[n]&&HZe(e,r)&&console.warn(`No scale found with id '${n}' for annotation '${e.id}'`)}}function HZe(e,t){if(t==="scaleID")return!0;const r=t.charAt(0);for(const n of["Min","Max","Value"])if(mi(e[r+n]))return!0;return!1}function WZe(e,t,r){const n=t.axis,i=t.id,o=n+"ScaleID",a={min:mt(t.min,Number.NEGATIVE_INFINITY),max:mt(t.max,Number.POSITIVE_INFINITY)};for(const s of r)s.scaleID===i?SF(s,t,["value","endValue"],a):Gl(e,s,o)===i&&SF(s,t,[n+"Min",n+"Max",n+"Value"],a);return a}function SF(e,t,r,n){for(const i of r){const o=e[i];if(mi(o)){const a=t.parse(o);n.min=Math.min(n.min,a),n.max=Math.max(n.max,a)}}}class fd extends Ki{inRange(t,r,n,i){const{x:o,y:a}=uu({x:t,y:r},this.getCenterPoint(i),Sn(-this.options.rotation));return Ez({x:o,y:a},this.getProps(["x","y","x2","y2"],i),n,this.options.borderWidth)}getCenterPoint(t){return cd(this,t)}draw(t){t.save(),$O(t,this.getCenterPoint(),this.options.rotation),$z(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,r){return Nz(t,r)}}fd.id="boxAnnotation";fd.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};fd.defaultRoutes={borderColor:"color",backgroundColor:"color"};fd.descriptors={label:{_fallback:!0}};const Bz=["left","bottom","top","right"];class hh extends Ki{inRange(t,r,n,i){const{x:o,y:a}=uu({x:t,y:r},this.getCenterPoint(i),Sn(-this.rotation));return Ez({x:o,y:a},this.getProps(["x","y","x2","y2"],i),n,this.options.borderWidth)}getCenterPoint(t){return cd(this,t)}draw(t){const r=this.options,n=!mi(this._visible)||this._visible;!r.display||!r.content||!n||(t.save(),$O(t,this.getCenterPoint(),this.rotation),VZe(t,this),$z(t,this,r),bZe(t,QZe(this),r),t.restore())}resolveElementProperties(t,r){let n;if(Mz(r))n=Lz(t,r);else{const{centerX:s,centerY:l}=LO(t,r);n={x:s,y:l}}const i=Nn(r.padding),o=DO(t.ctx,r),a=zZe(n,o,r,i);return{initProperties:ph(t,a,r),pointX:n.x,pointY:n.y,...a,rotation:r.rotation}}}hh.id="labelAnnotation";hh.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};hh.defaultRoutes={borderColor:"color"};function zZe(e,t,r,n){const i=t.width+n.width+r.borderWidth,o=t.height+n.height+r.borderWidth,a=IO(r.position,"center"),s=EF(e.x,i,r.xAdjust,a.x),l=EF(e.y,o,r.yAdjust,a.y);return{x:s,y:l,x2:s+i,y2:l+o,width:i,height:o,centerX:s+i/2,centerY:l+o/2}}function EF(e,t,r=0,n){return e-AO(t,n)+r}function VZe(e,t){const{pointX:r,pointY:n,options:i}=t,o=i.callout,a=o&&o.display&&ZZe(t,o);if(!a||eJe(t,o,a))return;if(e.save(),e.beginPath(),!Ps(e,o))return e.restore();const{separatorStart:l,separatorEnd:u}=GZe(t,a),{sideStart:d,sideEnd:p}=XZe(t,a,l);(o.margin>0||i.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(u.x,u.y)),e.moveTo(d.x,d.y),e.lineTo(p.x,p.y);const h=uu({x:r,y:n},t.getCenterPoint(),Sn(-t.rotation));e.lineTo(h.x,h.y),e.stroke(),e.restore()}function GZe(e,t){const{x:r,y:n,x2:i,y2:o}=e,a=KZe(e,t);let s,l;return t==="left"||t==="right"?(s={x:r+a,y:n},l={x:s.x,y:o}):(s={x:r,y:n+a},l={x:i,y:s.y}),{separatorStart:s,separatorEnd:l}}function KZe(e,t){const{width:r,height:n,options:i}=e,o=i.callout.margin+i.borderWidth/2;return t==="right"?r+o:t==="bottom"?n+o:-o}function XZe(e,t,r){const{y:n,width:i,height:o,options:a}=e,s=a.callout.start,l=YZe(t,a.callout);let u,d;return t==="left"||t==="right"?(u={x:r.x,y:n+Rs(o,s)},d={x:u.x+l,y:u.y}):(u={x:r.x+Rs(i,s),y:r.y},d={x:u.x,y:u.y+l}),{sideStart:u,sideEnd:d}}function YZe(e,t){const r=t.side;return e==="left"||e==="top"?-r:r}function ZZe(e,t){const r=t.position;return Bz.includes(r)?r:JZe(e,t)}function JZe(e,t){const{x:r,y:n,x2:i,y2:o,width:a,height:s,pointX:l,pointY:u,centerX:d,centerY:p,rotation:h}=e,m={x:d,y:p},g=t.start,y=Rs(a,g),x=Rs(s,g),b=[r,r+y,r+y,i],S=[n+x,o,n,o],w=[];for(let _=0;_<4;_++){const O=uu({x:b[_],y:S[_]},m,Sn(h));w.push({position:Bz[_],distance:Ic(O,{x:l,y:u})})}return w.sort((_,O)=>_.distance-O.distance)[0].position}function QZe({x:e,y:t,width:r,height:n,options:i}){const o=i.borderWidth/2,a=Nn(i.padding);return{x:e+a.left+o,y:t+a.top+o,width:r-a.left-a.right-i.borderWidth,height:n-a.top-a.bottom-i.borderWidth}}function eJe(e,t,r){const{pointX:n,pointY:i}=e,o=t.margin;let a=n,s=i;return r==="left"?a+=o:r==="right"?a-=o:r==="top"?s+=o:r==="bottom"&&(s-=o),e.inRange(a,s)}const NO=(e,t,r)=>({x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}),EE=(e,t,r)=>NO(t,r,Math.abs((e-t.y)/(r.y-t.y))).x,RF=(e,t,r)=>NO(t,r,Math.abs((e-t.x)/(r.x-t.x))).y,mf=e=>e*e,tJe=(e,t,{x:r,y:n,x2:i,y2:o},a)=>a==="y"?{start:Math.min(n,o),end:Math.max(n,o),value:t}:{start:Math.min(r,i),end:Math.max(r,i),value:e},PF=(e,t,r,n)=>(1-n)*(1-n)*e+2*(1-n)*n*t+n*n*r,RE=(e,t,r,n)=>({x:PF(e.x,t.x,r.x,n),y:PF(e.y,t.y,r.y,n)}),OF=(e,t,r,n)=>2*(1-n)*(t-e)+2*n*(r-t),MF=(e,t,r,n)=>-Math.atan2(OF(e.x,t.x,r.x,n),OF(e.y,t.y,r.y,n))+.5*Zt;class mh extends Ki{inRange(t,r,n,i){const o=this.options.borderWidth/2;if(n!=="x"&&n!=="y"){const a={mouseX:t,mouseY:r},{path:s,ctx:l}=this;if(s){Ps(l,this.options);const{chart:d}=this.$context,p=t*d.currentDevicePixelRatio,h=r*d.currentDevicePixelRatio,m=l.isPointInStroke(s,p,h)||PE(this,a,i);return l.restore(),m}const u=mf(o);return oJe(this,a,u,i)||PE(this,a,i)}return rJe(this,{mouseX:t,mouseY:r},n,{hBorderWidth:o,useFinalPosition:i})}getCenterPoint(t){return cd(this,t)}draw(t){const{x:r,y:n,x2:i,y2:o,cp:a,options:s}=this;if(t.save(),!Ps(t,s))return t.restore();dd(t,s);const l=Math.sqrt(Math.pow(i-r,2)+Math.pow(o-n,2));if(s.curve&&a)return pJe(t,this,a,l),t.restore();const{startOpts:u,endOpts:d,startAdjust:p,endAdjust:h}=Uz(this),m=Math.atan2(o-n,i-r);t.translate(r,n),t.rotate(m),t.beginPath(),t.moveTo(0+p,0),t.lineTo(l-h,0),t.shadowColor=s.borderShadowColor,t.stroke(),OE(t,0,p,u),OE(t,l,-h,d),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,r){const n=RZe(t,r),{x:i,y:o,x2:a,y2:s}=n,l=nJe(n,t.chartArea),u=l?iJe({x:i,y:o},{x:a,y:s},t.chartArea):{x:i,y:o,x2:a,y2:s,width:Math.abs(a-i),height:Math.abs(s-o)};if(u.centerX=(a+i)/2,u.centerY=(s+o)/2,u.initProperties=ph(t,u,r),r.curve){const p={x:u.x,y:u.y},h={x:u.x2,y:u.y2};u.cp=fJe(u,r,Ic(p,h))}const d=aJe(t,u,r.label);return d._visible=l,u.elements=[{type:"label",optionScope:"label",properties:d,initProperties:u.initProperties}],u}}mh.id="lineAnnotation";const AF={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};mh.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},AF),fill:!1,length:12,start:Object.assign({},AF),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},hh.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};mh.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};mh.defaultRoutes={borderColor:"color"};function rJe(e,{mouseX:t,mouseY:r},n,{hBorderWidth:i,useFinalPosition:o}){const a=tJe(t,r,e.getProps(["x","y","x2","y2"],o),n);return a.value>=a.start-i&&a.value<=a.end+i||PE(e,{mouseX:t,mouseY:r},o,n)}function nJe({x:e,y:t,x2:r,y2:n},{top:i,right:o,bottom:a,left:s}){return!(e<s&&r<s||e>o&&r>o||t<i&&n<i||t>a&&n>a)}function IF({x:e,y:t},r,{top:n,right:i,bottom:o,left:a}){return e<a&&(t=RF(a,{x:e,y:t},r),e=a),e>i&&(t=RF(i,{x:e,y:t},r),e=i),t<n&&(e=EE(n,{x:e,y:t},r),t=n),t>o&&(e=EE(o,{x:e,y:t},r),t=o),{x:e,y:t}}function iJe(e,t,r){const{x:n,y:i}=IF(e,t,r),{x:o,y:a}=IF(t,e,r);return{x:n,y:i,x2:o,y2:a,width:Math.abs(o-n),height:Math.abs(a-i)}}function oJe(e,{mouseX:t,mouseY:r},n=Tl,i){const{x:o,y:a,x2:s,y2:l}=e.getProps(["x","y","x2","y2"],i),u=s-o,d=l-a,p=mf(u)+mf(d),h=p===0?-1:((t-o)*u+(r-a)*d)/p;let m,g;return h<0?(m=o,g=a):h>1?(m=s,g=l):(m=o+h*u,g=a+h*d),mf(t-m)+mf(r-g)<=n}function PE(e,{mouseX:t,mouseY:r},n,i){const o=e.label;return o.options.display&&o.inRange(t,r,i,n)}function aJe(e,t,r){const n=r.borderWidth,i=Nn(r.padding),o=DO(e.ctx,r),a=o.width+i.width+n,s=o.height+i.height+n;return lJe(t,r,{width:a,height:s,padding:i},e.chartArea)}function sJe(e){const{x:t,y:r,x2:n,y2:i}=e,o=Math.atan2(i-r,n-t);return o>Zt/2?o-Zt:o<Zt/-2?o+Zt:o}function lJe(e,t,r,n){const{width:i,height:o,padding:a}=r,{xAdjust:s,yAdjust:l}=t,u={x:e.x,y:e.y},d={x:e.x2,y:e.y2},p=t.rotation==="auto"?sJe(e):Sn(t.rotation),h=uJe(i,o,p),m=cJe(e,t,{labelSize:h,padding:a},n),g=e.cp?RE(u,e.cp,d,m):NO(u,d,m),y={size:h.w,min:n.left,max:n.right,padding:a.left},x={size:h.h,min:n.top,max:n.bottom,padding:a.top},b=DF(g.x,y)+s,S=DF(g.y,x)+l;return{x:b-i/2,y:S-o/2,x2:b+i/2,y2:S+o/2,centerX:b,centerY:S,pointX:g.x,pointY:g.y,width:i,height:o,rotation:v4(p)}}function uJe(e,t,r){const n=Math.cos(r),i=Math.sin(r);return{w:Math.abs(e*n)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*n)}}function cJe(e,t,r,n){let i;const o=dJe(e,n);return t.position==="start"?i=$F({w:e.x2-e.x,h:e.y2-e.y},r,t,o):t.position==="end"?i=1-$F({w:e.x-e.x2,h:e.y-e.y2},r,t,o):i=AO(1,t.position),i}function $F(e,t,r,n){const{labelSize:i,padding:o}=t,a=e.w*n.dx,s=e.h*n.dy,l=a>0&&(i.w/2+o.left-n.x)/a,u=s>0&&(i.h/2+o.top-n.y)/s;return O1(Math.max(l,u),0,.25)}function dJe(e,t){const{x:r,x2:n,y:i,y2:o}=e,a=Math.min(i,o)-t.top,s=Math.min(r,n)-t.left,l=t.bottom-Math.max(i,o),u=t.right-Math.max(r,n);return{x:Math.min(s,u),y:Math.min(a,l),dx:s<=u?1:-1,dy:a<=l?1:-1}}function DF(e,t){const{size:r,min:n,max:i,padding:o}=t,a=r/2;return r>i-n?(i+n)/2:(n>=e-o-a&&(e=n+o+a),i<=e+o+a&&(e=i-o-a),e)}function Uz(e){const t=e.options,r=t.arrowHeads&&t.arrowHeads.start,n=t.arrowHeads&&t.arrowHeads.end;return{startOpts:r,endOpts:n,startAdjust:LF(e,r),endAdjust:LF(e,n)}}function LF(e,t){if(!t||!t.display)return 0;const{length:r,width:n}=t,i=e.options.borderWidth/2,o={x:r,y:n+i};return Math.abs(EE(0,o,{x:0,y:i}))}function OE(e,t,r,n){if(!n||!n.display)return;const{length:i,width:o,fill:a,backgroundColor:s,borderColor:l}=n,u=Math.abs(t-i)+r;e.beginPath(),dd(e,n),Ps(e,n),e.moveTo(u,-o),e.lineTo(t+r,0),e.lineTo(u,o),a===!0?(e.fillStyle=s||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=n.borderShadowColor,e.stroke()}function fJe(e,t,r){const{x:n,y:i,x2:o,y2:a,centerX:s,centerY:l}=e,u=Math.atan2(a-i,o-n),d=IO(t.controlPoint,0),p={x:s+Rs(r,d.x,!1),y:l+Rs(r,d.y,!1)};return uu(p,{x:s,y:l},u)}function kF(e,{x:t,y:r},{angle:n,adjust:i},o){!o||!o.display||(e.save(),e.translate(t,r),e.rotate(n),OE(e,0,-i,o),e.restore())}function pJe(e,t,r,n){const{x:i,y:o,x2:a,y2:s,options:l}=t,{startOpts:u,endOpts:d,startAdjust:p,endAdjust:h}=Uz(t),m={x:i,y:o},g={x:a,y:s},y=MF(m,r,g,0),x=MF(m,r,g,1)-Zt,b=RE(m,r,g,p/n),S=RE(m,r,g,1-h/n),w=new Path2D;e.beginPath(),w.moveTo(b.x,b.y),w.quadraticCurveTo(r.x,r.y,S.x,S.y),e.shadowColor=l.borderShadowColor,e.stroke(w),t.path=w,t.ctx=e,kF(e,b,{angle:y,adjust:p},u),kF(e,S,{angle:x,adjust:h},d)}class gh extends Ki{inRange(t,r,n,i){const o=this.options.rotation,a=this.options.borderWidth;if(n!=="x"&&n!=="y")return hJe({x:t,y:r},this.getProps(["width","height","centerX","centerY"],i),o,a);const{x:s,y:l,x2:u,y2:d}=this.getProps(["x","y","x2","y2"],i),p=a/2,h=n==="y"?{start:l,end:d}:{start:s,end:u},m=uu({x:t,y:r},this.getCenterPoint(i),Sn(-o));return m[n]>=h.start-p-Tl&&m[n]<=h.end+p+Tl}getCenterPoint(t){return cd(this,t)}draw(t){const{width:r,height:n,centerX:i,centerY:o,options:a}=this;t.save(),$O(t,this.getCenterPoint(),a.rotation),dd(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;const s=Ps(t,a);t.ellipse(i,o,n/2,r/2,Zt/2,0,2*Zt),t.fill(),s&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,r){return Nz(t,r,!0)}}gh.id="ellipseAnnotation";gh.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},fd.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};gh.defaultRoutes={borderColor:"color",backgroundColor:"color"};gh.descriptors={label:{_fallback:!0}};function hJe(e,t,r,n){const{width:i,height:o,centerX:a,centerY:s}=t,l=i/2,u=o/2;if(l<=0||u<=0)return!1;const d=Sn(r||0),p=n/2||0,h=Math.cos(d),m=Math.sin(d),g=Math.pow(h*(e.x-a)+m*(e.y-s),2),y=Math.pow(m*(e.x-a)-h*(e.y-s),2);return g/Math.pow(l+p,2)+y/Math.pow(u+p,2)<=1.0001}class A1 extends Ki{inRange(t,r,n,i){const{x:o,y:a,x2:s,y2:l,width:u}=this.getProps(["x","y","x2","y2","width"],i),d=this.options.borderWidth;if(n!=="x"&&n!=="y")return pZe({x:t,y:r},this.getCenterPoint(i),u/2,d);const p=d/2,h=n==="y"?{start:a,end:l,value:r}:{start:o,end:s,value:t};return h.value>=h.start-p&&h.value<=h.end+p}getCenterPoint(t){return cd(this,t)}draw(t){const r=this.options,n=r.borderWidth;if(r.radius<.1)return;t.save(),t.fillStyle=r.backgroundColor,dd(t,r);const i=Ps(t,r);wZe(t,this,this.centerX,this.centerY),i&&!M1(r.pointStyle)&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore(),r.borderWidth=n}resolveElementProperties(t,r){const n=kz(t,r);return n.initProperties=ph(t,n,r,!0),n}}A1.id="pointAnnotation";A1.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};A1.defaultRoutes={borderColor:"color",backgroundColor:"color"};class I1 extends Ki{inRange(t,r,n,i){if(n!=="x"&&n!=="y")return this.options.radius>=.1&&this.elements.length>1&&gJe(this.elements,t,r,i);const o=uu({x:t,y:r},this.getCenterPoint(i),Sn(-this.options.rotation)),a=this.elements.map(u=>n==="y"?u.bY:u.bX),s=Math.min(...a),l=Math.max(...a);return o[n]>=s&&o[n]<=l}getCenterPoint(t){return cd(this,t)}draw(t){const{elements:r,options:n}=this;t.save(),t.beginPath(),t.fillStyle=n.backgroundColor,dd(t,n);const i=Ps(t,n);let o=!0;for(const a of r)o?(t.moveTo(a.x,a.y),o=!1):t.lineTo(a.x,a.y);t.closePath(),t.fill(),i&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,r){const n=kz(t,r),{sides:i,rotation:o}=r,a=[],s=2*Zt/i;let l=o*fO;for(let u=0;u<i;u++,l+=s){const d=mJe(n,r,l);d.initProperties=ph(t,n,r),a.push(d)}return n.elements=a,n}}I1.id="polygonAnnotation";I1.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};I1.defaultRoutes={borderColor:"color",backgroundColor:"color"};function mJe({centerX:e,centerY:t},{radius:r,borderWidth:n},i){const o=n/2,a=Math.sin(i),s=Math.cos(i),l={x:e+a*r,y:t-s*r};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+a*(r+o),bY:t-s*(r+o)}}}function gJe(e,t,r,n){let i=!1,o=e[e.length-1].getProps(["bX","bY"],n);for(const a of e){const s=a.getProps(["bX","bY"],n);s.bY>r!=o.bY>r&&t<(o.bX-s.bX)*(r-s.bY)/(o.bY-s.bY)+s.bX&&(i=!i),o=s}return i}const Cs={box:fd,ellipse:gh,label:hh,line:mh,point:A1,polygon:I1};Object.keys(Cs).forEach(e=>{Or.describe(`elements.${Cs[e].id}`,{_fallback:"plugins.annotation.common"})});const vJe={update:Object.assign},yJe=kO.concat(ey),NF=(e,t)=>yt(t)?AE(e,t):e,ME=e=>e==="color"||e==="font";function FO(e="line"){return Cs[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function bJe(e,t,r,n){const i=wJe(e,r.animations,n),o=t.annotations,a=TJe(t.elements,o);for(let s=0;s<o.length;s++){const l=o[s],u=qz(a,s,l.type),d=l.setContext(CJe(e,u,l)),p=u.resolveElementProperties(e,d);p.skip=xJe(p),"elements"in p&&(_Je(u,p.elements,d,i),delete p.elements),mi(u.x)||Object.assign(u,p),Object.assign(u,p.initProperties),p.options=Hz(d),i.update(u,p)}}function xJe(e){return isNaN(e.x)||isNaN(e.y)}function wJe(e,t,r){return r==="reset"||r==="none"||r==="resize"?vJe:new bO(e,t)}function _Je(e,t,r,n){const i=e.elements||(e.elements=[]);i.length=t.length;for(let o=0;o<t.length;o++){const a=t[o],s=a.properties,l=qz(i,o,a.type,a.initProperties),u=r[a.optionScope].override(a);s.options=Hz(u),n.update(l,s)}}function qz(e,t,r,n){const i=Cs[FO(r)];let o=e[t];return(!o||!(o instanceof i))&&(o=e[t]=new i,Object.assign(o,n)),o}function Hz(e){const t=Cs[FO(e.type)],r={};r.id=e.id,r.type=e.type,r.drawTime=e.drawTime,Object.assign(r,AE(e,t.defaults),AE(e,t.defaultRoutes));for(const n of yJe)r[n]=e[n];return r}function AE(e,t){const r={};for(const n of Object.keys(t)){const i=t[n],o=e[n];ME(n)&&ar(o)?r[n]=o.map(a=>NF(a,i)):r[n]=NF(o,i)}return r}function CJe(e,t,r){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:r.id,type:"annotation"}))}function TJe(e,t){const r=t.length,n=e.length;if(n<r){const i=r-n;e.splice(n,0,...new Array(i))}else n>r&&e.splice(r,n-r);return e}var SJe="2.2.1";const ns=new Map,EJe=kO.concat(ey);var RJe={id:"annotation",version:SJe,beforeRegister(){hZe("chart.js","3.7",$l.version)},afterRegister(){$l.register(Cs)},afterUnregister(){$l.unregister(Cs)},beforeInit(e){ns.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,r){const n=ns.get(e),i=n.annotations=[];let o=r.annotations;yt(o)?Object.keys(o).forEach(a=>{const s=o[a];yt(s)&&(s.id=a,i.push(s))}):ar(o)&&i.push(...o),BZe(i,e.scales)},afterDataLimits(e,t){const r=ns.get(e);jZe(e,t.scale,r.annotations.filter(n=>n.display&&n.adjustScaleRange))},afterUpdate(e,t,r){const n=ns.get(e);DZe(e,n,r),bJe(e,n,r,t.mode),n.visibleElements=n.elements.filter(i=>!i.skip&&i.options.display),FZe(e,n,r)},beforeDatasetsDraw(e,t,r){tg(e,"beforeDatasetsDraw",r.clip)},afterDatasetsDraw(e,t,r){tg(e,"afterDatasetsDraw",r.clip)},beforeDraw(e,t,r){tg(e,"beforeDraw",r.clip)},afterDraw(e,t,r){tg(e,"afterDraw",r.clip)},beforeEvent(e,t,r){const n=ns.get(e);LZe(n,t.event,r)&&(t.changed=!0)},afterDestroy(e){ns.delete(e)},_getState(e){return ns.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!EJe.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Cs[FO(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:ME,_fallback:!0},_indexable:ME}},additionalOptionScopes:[""]};function tg(e,t,r){const{ctx:n,chartArea:i}=e,o=ns.get(e);r&&ch(n,i);const a=PJe(o.visibleElements,t).sort((s,l)=>s.element.options.z-l.element.options.z);for(const s of a)OJe(n,i,o,s);r&&dh(n)}function PJe(e,t){const r=[];for(const n of e)if(n.options.drawTime===t&&r.push({element:n,main:!0}),n.elements&&n.elements.length)for(const i of n.elements)i.options.display&&i.options.drawTime===t&&r.push({element:i});return r}function OJe(e,t,r,n){const i=n.element;n.main?(CF(r,i,"beforeDraw"),i.draw(e,t),CF(r,i,"afterDraw")):i.draw(e,t)}const MJe={id:"chartBackground",beforeDraw:(e,t,r)=>{const{ctx:n,height:i,width:o}=e;n.save(),n.globalCompositeOperation="destination-over",n.fillStyle=r.color||"#FFFFFF",n.fillRect(0,0,o,i),n.restore()}};/*!
1095
+ * chartjs-adapter-date-fns v3.0.0
1096
+ * https://www.chartjs.org
1097
+ * (c) 2022 chartjs-adapter-date-fns Contributors
1098
+ * Released under the MIT license
1099
+ */const AJe={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};j4._date.override({_id:"date-fns",formats:function(){return AJe},parse:function(e,t){if(e===null||typeof e>"u")return null;const r=typeof e;return r==="number"||e instanceof Date?e=we(e):r==="string"&&(typeof t=="string"?e=eP(e,t,new Date,this.options):e=qi(e,this.options)),Lp(e)?e.getTime():null},format:function(e,t){return Fp(e,t,this.options)},add:function(e,t,r){switch(r){case"millisecond":return Dp(e,t);case"second":return ZU(e,t);case"minute":return YU(e,t);case"hour":return XU(e,t);case"day":return ep(e,t);case"week":return JU(e,t);case"month":return Ol(e,t);case"quarter":return Dme(e,t);case"year":return vT(e,t);default:return e}},diff:function(e,t,r){switch(r){case"millisecond":return kp(e,t);case"second":return i3(e,t);case"minute":return r3(e,t);case"hour":return t3(e,t);case"day":return KR(e,t);case"week":return o3(e,t);case"month":return XR(e,t);case"quarter":return n3(e,t);case"year":return a3(e,t);default:return 0}},startOf:function(e,t,r){switch(t){case"second":return Yve(e);case"minute":return Ume(e);case"hour":return bT(e);case"day":return Sa(e);case"week":return Mf(e);case"isoWeek":return Mf(e,{weekStartsOn:+r});case"month":return uf(e);case"quarter":return qme(e);case"year":return cf(e);default:return e}},endOf:function(e,t){switch(t){case"second":return Vme(e);case"minute":return Wme(e);case"hour":return Hme(e);case"day":return Tc(e);case"week":return xg(e);case"month":return fv(e);case"quarter":return zme(e);case"year":return bg(e);default:return e}}});$l.register(bE,xE,hs,OO,Og,mp,RJe,MJe,jGe,zGe,QGe);export{oJ as C,HJe as D,qJe as E,Wce as L,WJe as P,FJe as Q,BJe as R,V5 as S,zJe as T,jJe as a,hfe as b,Cj as c,wL as d,E as j,VJe as q,XJe as r,UJe as u};